Fix spacing
[gcc.git] / gcc / ChangeLog
1 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2
3 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4 Add mthumb/march=armv7-a multilib.
5 Add mthumb/march=armv7-r multilib.
6 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
7
8 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
9
10 * config/v850/t-rtems: Add more multilibs.
11
12 2013-05-10 Richard Biener <rguenther@suse.de>
13
14 PR tree-optimization/57214
15 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
16 not propagate from SSA names that occur in abnormal PHI nodes.
17
18 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
19
20 * stor-layout.c (element_precision): New function.
21 * machmode.h (element_precision): Declare it.
22 * tree.c (build_minus_one_cst): New function.
23 (element_precision): Likewise.
24 * tree.h (build_minus_one_cst): Declare new function.
25 (element_precision): Likewise.
26 * fold-const.c (operand_equal_p): Use element_precision.
27 (fold_binary_loc): Handle vector types.
28 * convert.c (convert_to_integer): Use element_precision.
29 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
30 separately.
31
32 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
33
34 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
35 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
36 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
37 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
38 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
39 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
40 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
41 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
42 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
43 (Uuw8): New constraints.
44 (Usb4): Move into alphabetical order.
45 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
46 (sd8_operand, ub8_operand, uw8_operand): New predicates.
47 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
48 previously unnamed patterns.
49 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
50 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
51 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
52 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
53 of set_attr_alternative/if_then_else. Use extended_mips16 instead
54 of specific lengths.
55
56 2013-05-10 Jakub Jelinek <jakub@redhat.com>
57
58 * config/i386/i386.md (rotateinv): New code attr.
59 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
60 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
61 roll $31, %eax, etc.
62
63 PR tree-optimization/45216
64 PR tree-optimization/57157
65 * tree-ssa-forwprop.c (simplify_rotate): New function.
66 (ssa_forward_propagate_and_combine): Call it.
67
68 2013-05-10 Richard Biener <rguenther@suse.de>
69
70 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
71 disable peeling when we version for aliasing.
72 (vector_alignment_reachable_p): Honor explicit user alignment.
73 (vect_supportable_dr_alignment): Likewise.
74 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
75 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
76 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
77 then peeling to arrange for the cost-model check to come first.
78
79 2013-05-10 Alan Modra <amodra@gmail.com>
80
81 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
82 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
83 * configure: Regenerate.
84
85 2013-05-10 Alan Modra <amodra@gmail.com>
86
87 PR target/55033
88 * varasm.c (default_elf_select_section): Move !DECL_P check..
89 (get_named_section): ..to here before calling get_section_name.
90 Adjust assertion.
91 (default_section_type_flags): Add DECL_P check.
92 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
93 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
94
95 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
96
97 * config/epiphany/epiphany.c (epiphany_expand_prologue):
98 When using gen_stack_adjust_str with a register offset, add a
99 REG_FRAME_RELATED_EXPR note.
100
101 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
102
103 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
104 (*vec_extractv4si_zext_mem): Ditto.
105 (*vec_extractv2di): Add 0->x and x->x alternatives.
106 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
107 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
108
109 2013-05-09 Jason Merrill <jason@redhat.com>
110
111 N3639 C++1y VLA support
112 * gimplify.c (gimplify_vla_decl): Don't touch an existing
113 DECL_VALUE_EXPR.
114
115 * tree.c (build_constructor_va): New.
116 * tree.h: Declare it.
117
118 2013-05-09 Martin Jambor <mjambor@suse.cz>
119
120 PR lto/57084
121 * gimple-fold.c (canonicalize_constructor_val): Call
122 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
123
124 2013-05-09 Jan Hubicka <jh@suse.cz>
125 Richard Biener <rguenther@suse.de>
126
127 PR lto/54095
128 * symtab.c (symtab_make_decl_local): Do not add private names.
129
130 2013-05-09 Jan Hubicka <jh@suse.cz>
131
132 PR lto/54095
133 * symtab.c (insert_to_assembler_name_hash): Handle clones.
134 (unlink_from_assembler_name_hash): Likewise.
135 (symtab_prevail_in_asm_name_hash, symtab_register_node,
136 symtab_unregister_node, symtab_initialize_asm_name_hash,
137 change_decl_assembler_name): Update.
138
139 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
140
141 * config/aarch64/aarch64.md: New movtf split.
142 (*movtf_aarch64): Update.
143 (aarch64_movdi_tilow): Handle TF modes and rename to
144 aarch64_movdi_<mode>low.
145 (aarch64_movdi_tihigh): Handle TF modes and rename to
146 aarch64_movdi_<mode>high
147 (aarch64_movtihigh_di): Handle TF modes and rename to
148 aarch64_mov<mode>high_di
149 (aarch64_movtilow_di): Handle TF modes and rename to
150 aarch64_mov<mode>low_di
151 (aarch64_movtilow_tilow): Remove spurious whitespace.
152 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
153 splits.
154 (aarch64_print_operand): Update.
155
156 2013-05-09 Alan Modra <amodra@gmail.com>
157
158 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
159 powerpc64le.
160 * configure: Regenerate.
161
162 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
163
164 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
165 splitter preparation statements.
166 * config/i386/sse.md (*vec_extract* splitters): Ditto.
167 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
168 adjust_address_nv.
169
170 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
171
172 * gimple-ssa-strength-reduction.c (count_candidates): Change
173 return value to int.
174 (analyze_candidates_and_replace): Change type of length to int.
175
176 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
177
178 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
179 (*vec_extract<mode>): Use VI12_128 mode iterator.
180 (*vec_extract<mode>_mem): Ditto.
181 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
182 attribute.
183
184 2013-05-08 Diego Novillo <dnovillo@google.com>
185
186 PR bootstrap/54659
187
188 Revert:
189 2012-08-17 Diego Novillo <dnovillo@google.com>
190
191 PR bootstrap/54281
192 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
193 * config.in: Regenerate.
194 * configure: Regenerate.
195 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
196
197 2013-05-08 Jan Hubicka <jh@suse.cz>
198
199 PR lto/54095
200 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
201 * cgraph.h (symtab_node_base): Add unique_name.
202 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
203 input_overwrite_node, input_varpool_node): Stream unique_name.
204 * cgraphclones.c (cgraph_create_virtual_clone,
205 cgraph_function_versioning): Set unique_name.
206 * ipa.c (function_and_variable_visibility): Set unique_name.
207
208 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
209
210 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
211 (alloc_cand_and_find_basis): Restrict conditional candidate
212 processing to CAND_MULTs.
213
214 2013-05-08 Jan Hubicka <jh@suse.cz>
215
216 PR lto/54095
217 lto-symtab.c (lto_symtab_symbol_p): New function.
218 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
219 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
220 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
221 Skip static symbols.
222
223 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
224
225 PR tree-optimization/57200
226 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
227 Only call inform if the preceding warning_at returns true.
228
229 2013-05-07 Han Shen <shenhan@google.com>
230
231 * cfgexpand.c (record_or_union_type_has_array_p): New function.
232 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
233 * common.opt (fstack-protector-strong): New option.
234 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
235 * doc/invoke.texi (Optimization Options): Document
236 "-fstack-protector-strong".
237 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
238
239 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
240
241 * config/mips/mips.c (mips_machine_reorg2): Return 0.
242
243 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
244
245 * ira.c (update_equiv_regs): Add insn having equiv memory even if
246 it is not lhs of the insn.
247 (setup_reg_equiv): Remove insn having equiv memory which it is not
248 lhs of the insn.
249 * lra-constraints.c (process_address): Try to improve generation
250 code for address base + disp.
251 (lra_constraints): Make correct the code for checking insn setting
252 up backward equivalence. Remove insn only if it is in the init
253 insn list.
254 * lra-eliminations.c (update_reg_eliminate): Change return value.
255 (lra_eliminate): Use the result.
256
257 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
258
259 * config/i386/sse.md (ssescalarnummask): New mode attribute.
260 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
261 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
262 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
263 register target operands.
264 (*vec_extractv8hi_sse2): New pattern.
265 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
266 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
267 (*vec_extract<mode>_mem): New insn and split pattern.
268
269 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
270
271 * config/arm/arm.c (arm_asan_shadow_offset): New function.
272 (TARGET_ASAN_SHADOW_OFFSET): Define.
273 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
274 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
275
276 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
277
278 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
279 (incr_vec_index): Return -1 if increment not found.
280 (create_add_on_incoming_edge): Assert if increment not found.
281 (record_increment): Limit number of increments recorded.
282 (all_phi_incrs_profitable): Return false if an increment not found.
283 (replace_profitable_candidates): Don't process increments that were
284 not recorded.
285 (analyze_candidates_and_replace): Limit size of incr_vec.
286
287 2013-05-07 Richard Biener <rguenther@suse.de>
288
289 * calls.c (special_function_p): setjmp-like functions are leaf.
290 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
291 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
292
293 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
294
295 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
296 (aarch64_simd_mov<mode>): New expander.
297 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
298 (aarch64_simd_mov_to_<mode>high): Likewise.
299 (aarch64_simd_mov_from_<mode>low): Likewise.
300 (aarch64_simd_mov_from_<mode>high): Likewise.
301 (aarch64_dup_lane<mode>): Update.
302 (aarch64_dup_lanedi): New instruction pattern.
303 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
304 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
305
306 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
307
308 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
309 (replace_mult_candidate): Remove unnecessary argument; remove
310 unnecessary parameter from call to introduce_cast_before_cand.
311 (replace_unconditional_candidate): Remove unnecessary parameter
312 from call to replace_mult_candidate.
313 (replace_conditional_candidate): Likewise.
314 (insert_initializers): Use make_temp_ssa_name.
315 (introduce_cast_before_cand): Remove unnecessary argument; use
316 make_temp_ssa_name.
317 (replace_one_candidate): Remove unnecessary argument; remove
318 unnecessary parameter from calls to introduce_cast_before_cand.
319 (replace_profitable_candidates): Remove unnecessary parameters
320 from calls to replace_one_candidate.
321
322 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
323
324 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
325 phi def as possibly hiding a basis for a CAND_ADD whose operands
326 have been commuted in the analysis.
327 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
328
329 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
330
331 * config/aarch64/aarch64.md
332 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
333 shift value between 0-4.
334
335 2013-05-07 Richard Biener <rguenther@suse.de>
336
337 * double-int.h (rshift): New overload.
338 * double-int.c (rshift): New function.
339 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
340 (create_reference_ops_from_ref): Remove.
341 (vn_reference_insert): Use shared ops for constructing the
342 reference and copy it.
343
344 2013-05-07 Richard Biener <rguenther@suse.de>
345
346 PR middle-end/57190
347 * tree-eh.c (sink_clobbers): Properly propagate
348 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
349
350 2013-05-07 Jakub Jelinek <jakub@redhat.com>
351
352 PR tree-optimization/57149
353 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
354 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
355 collect_phi_def_edges, execute_late_warn_uninitialized): Use
356 uninit_undefined_value_p instead of ssa_undefined_value_p.
357
358 PR debug/57184
359 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
360 for modifier == EXPAND_INITIALIZER.
361
362 2013-05-07 Anton Blanchard <anton@samba.org>
363
364 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
365 for powerpc64 little endian.
366 * configure: Regenerate.
367
368 2013-05-06 Graham Stott <grahams@btinternet.com>
369
370 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
371 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
372 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
373 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
374
375 2013-05-06 Graham Stott <grahams@btinternet.com>
376
377 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
378 codes which allow non-lvalues.
379
380 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
381
382 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
383 components are all 1s.
384 (integer_minus_onep): New function.
385 * tree.h (integer_minus_onep): Declare it.
386 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
387 integer_minus_onep instead of integer_all_onesp.
388
389 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
390
391 PR target/52933
392 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
393 variations of these patterns.
394
395 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
396
397 * config/i386/i386.md (isa): Add x64_sse4 member.
398 (enabled): Handle x64_sse4.
399 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
400 instruction for 64bit SSE4_1 targets. Update insn attributes.
401 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
402 instruction for SSE4_1 targets. Update insn attributes.
403 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
404 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
405 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
406 const_1 selector.
407 (*vec_extractv4si): Rename from *sse4_1_pextrd.
408 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
409 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
410
411 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
412
413 PR target/57108
414 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
415
416 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
417
418 * final.c (do_assembler_dialects): Don't handle curly braces and
419 vertical bar escaped by % as dialect delimiters.
420 (output_asm_insn): Print curly braces and vertical bar if escaped
421 by % and ASSEMBLER_DIALECT defined.
422 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
423 * doc/tm.texi: Regenerated.
424
425 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
426
427 * config/mips/mips.c: Include tree-pass.h.
428 (mips_reorg): Split in pre- and post-dbr_schedule parts.
429 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
430 (pass_mips_machine_reorg2): New machine specific pass.
431 (insert_pass_mips_machine_reorg2): New pass plugin definition.
432 (mips_option_override): Register the new pass.
433 * rtl.h (cleanup_barriers): Remove prototype.
434 (dbr_schedule): Likewise.
435 * jump.c (cleanup_barriers): Make static.
436 * reorg.c (dbr_schedule): Likewise.
437
438 2013-05-06 Richard Biener <rguenther@suse.de>
439
440 PR tree-optimization/57185
441 * tree-parloops.c (add_field_for_reduction): Handle anonymous
442 SSA names properly.
443
444 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
445
446 PR target/57106
447 * config/i386/i386.c (add_parameter_dependencies): Add dependence
448 between "first_arg" and "insn", not "last" and "insn".
449
450 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
451
452 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
453 (find_candidates_in_block): Re-enable slsr_process_phi.
454 (create_phi_basis): Fix double counting of candidate adjustment.
455
456 2013-05-06 Richard Biener <rguenther@suse.de>
457
458 PR middle-end/57147
459 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
460 the edge is also fallthru, preserve it and just clear the
461 abnormal flag.
462 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
463 also complex, preserve that and just clear the fallthru flag.
464 * tree-inline.c (update_ssa_across_abnormal_edges): Also
465 update virtual operands.
466
467 2013-05-06 Alan Modra <amodra@gmail.com>
468
469 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
470 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
471 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
472 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
473 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
474 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
475
476 2013-05-06 Alan Modra <amodra@gmail.com>
477
478 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
479 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
480 (DEFAULT_ASM_ENDIAN): Define.
481 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
482 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
483 Update -K PIC clause from sysv4.h.
484 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
485 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
486
487 2013-05-06 Alan Modra <amodra@gmail.com>
488
489 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
490 twice for little-endian.
491 (ashrdi3_no_power, ashrdi3): Support little-endian.
492
493 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
494
495 PR target/55303
496 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
497 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
498 related expanders.
499 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
500 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
501 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
502 New predicates.
503
504 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
505 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
506
507 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
508 * config/pa/pa.opt: Make mbig-switch a no-op.
509 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
510 (CASE_VECTOR_MODE): Always return SImode.
511 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
512 for the !TARGET_BIG_SWITCH case.
513 * config/pa/pa-linux.h: Likewise.
514 * config/pa/pa-openbsd.h: Likewise.
515 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
516 * config/pa/pa.md (short_jump): Remove define_insn.
517 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
518 (casesi0): Remove define_insn.
519 (type): Remove btable_branch.
520 (pa_combine_type): Likewise.
521 (in_nullified_branch_delay): Likewise.
522 (in_call_delay): Likewise.
523 (define_delay): Likewise.
524 (define_insn_reservation "Z3"): Likewise.
525 (define_insn_reservation "Z4"): Likewise.
526 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
527 (pa_adjust_insn_length): Remove adjustment for btable branches.
528 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
529 and mno-big-switch
530
531 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
532
533 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
534 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
535 Add m->r,x alternatives.
536 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
537 splitters using SWI48x mode iterator.
538 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
539 TARGET_64BIT. Add m->x alternative.
540 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
541 Add o->x alternative. Enable for TARGET_SSE.
542 (sse_storeq): Remove expander.
543 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
544 with memory input operand.
545 (*vec_extractv2di_1 splitter): New.
546 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
547 * config/i386/i386.md (ssevecmodelower): New mode attribute.
548
549 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
550
551 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
552 (INT_LOWPART): Delete.
553 (extract_MB): Adjust.
554 (extract_ME): Adjust.
555 (print_operand): Adjust.
556
557 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
558
559 * config/rs6000/predicates.md (reg_or_add_cint_operand,
560 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
561 (reg_or_logical_cint_operand, easy_fp_constant,
562 logical_const_operand): Delete "CONST_DOUBLE" case.
563 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
564 "HOST_BITS_PER_WIDE_INT == 64" test.
565 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
566 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
567 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
568 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
569 test.
570 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
571 CONST_DOUBLE DImode/VOIDmode case.
572 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
573 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
574 CONST_DOUBLE VOIDmode case.
575 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
576 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
577 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
578 Delete CONST_DOUBLE case.
579 (splitters for mov FMOVE64 const_double): Delete
580 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
581 "HOST_BITS_PER_WIDE_INT >= 64" test.
582 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
583 case.
584 (mov DI const_double): Delete.
585
586 2013-05-04 Jakub Jelinek <jakub@redhat.com>
587
588 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
589 on op shows all bits zero in mode of a lowpart subreg, return zero.
590
591 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
592
593 PR target/57150
594 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
595 to save TFmode registers and DImode to save TImode registers for
596 caller save operations.
597 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
598 mark being partially clobbered since they only use the first
599 double word.
600
601 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
602 and TDmode only use the upper 64-bits of each VSX register.
603
604 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
605
606 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
607 (find_candidates_in_block): Disable slsr_process_phi.
608
609 2013-05-03 Guozhi Wei <carrot@google.com>
610
611 * coverage.c (coverage_obj_init): Move the construction of gcov
612 constructor to ...
613 (build_init_ctor): ... here.
614
615 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
616
617 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
618 (slsr_cand_d): Redefine def_phi.
619 (stride_status, phi_adjust_status, count_phis_status): New enums.
620 (find_phi_def): New.
621 (find_basis_for_base_expr): New.
622 (find_basis_for_candidate): Handle hidden bases.
623 (alloc_cand_and_find_basis): Handle phi candidates.
624 (slsr_process_phi): New.
625 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
626 (create_mul_imm_cand): Likewise.
627 (create_add_ssa_cand): Exclude phi base candidates.
628 (create_add_imm_cand): Likewise.
629 (slsr_process_cast): Likewise.
630 (slsr_process_copy): Likewise.
631 (find_candidates_in_block): Handle phi candidates.
632 (dump_candidate): Likewise.
633 (unconditional_cands): Delete.
634 (unconditional_cands_with_known_stride_p): Delete.
635 (phi_dependent_cand_p): New.
636 (cand_increment): Handle phi-dependent candidates.
637 (replace_dependent): Delete.
638 (replace_mult_candidate): New.
639 (replace_unconditional_candidate): New.
640 (incr_vec_index): Move to avoid forward reference.
641 (create_add_on_incoming_edge): New.
642 (create_phi_basis): New.
643 (replace_dependents): Delete.
644 (replace_conditional_candidate): New.
645 (phi_add_costs): New.
646 (replace_uncond_cands_and_profitable_phis): New.
647 (record_increment): Handle phi adjustments.
648 (record_phi_increments): New.
649 (record_increments): Handle phi adjustments.
650 (phi_incr_cost): New.
651 (lowest_cost_path): Handle phis.
652 (total_savings): Likewise.
653 (analyze_increments): Likewise.
654 (ncd_with_phi): New.
655 (ncd_of_cand_and_phis): New.
656 (nearest_common_dominator_for_cands): Handle phi increments.
657 (all_phi_incrs_profitable): New.
658 (replace_profitable_candidates): Handle phi-dependent candidates.
659 (analyze_candidates_and_replace): Likewise.
660
661 2013-05-03 Teresa Johnson <tejohnson@google.com>
662
663 PR bootstrap/57154
664 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
665 do not exceed REG_BR_PROB_BASE.
666
667 2013-05-03 Jeff Law <law@redhat.com>
668
669 PR tree-optimization/57144
670 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
671 operand of the condition will bit into the new type when eliminating
672 a cast feeding a condition.
673
674 2013-05-03 Jakub Jelinek <jakub@redhat.com>
675
676 PR rtl-optimization/57130
677 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
678 of COMPARE as in_code to the recursive call if needed.
679
680 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
681
682 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
683 (enabled): Handle new members.
684 * config/i386/sse.md (*vec_concatv2si): Merge from
685 *vec_concatv2si_sse2 and vec_concatv2si_sse.
686 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
687
688 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
689
690 PR tree-optimization/57027
691 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
692 for fnms opportunity, check we got the prerequisite kind
693 of tree / gimple before using accessor functions.
694
695 2013-05-03 Richard Biener <rguenther@suse.de>
696
697 * double-int.h (lshift): New overload without precision
698 and arith argument.
699 (operator *=, operator +=, operator -=): Move ...
700 * double-int.c (operator *=, operator +=, operator -=): ... here
701 and implement more efficiently.
702 (mul_double_with_sign): Remove.
703 (lshift_double): Adjust to take unsinged shift argument, push
704 dispatching code to callers.
705 (mul_double_wide_with_sign): Add early out for callers that
706 are not interested in high parts or overflow.
707 (lshift): New function.
708 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
709 dispatch code here.
710 (lrotate, rrotate): Use logical shifts.
711 * expr.c (get_inner_reference): Use lshift.
712 * fixed-value.c (do_fixed_divide): Likewise.
713 * tree-dfa.c (get_ref_base_and_extent): Likewise.
714 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
715 (indirect_refs_may_alias_p): Likewise.
716 (stmt_kills_ref_p_1): Likewise.
717
718 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
719
720 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
721
722 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
723
724 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
725 scalar form of FABD instruction.
726
727 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
728
729 * lra-constraints.c (process_alt_operands): Add checking alt
730 number to choose the best alternative.
731
732 2013-05-02 Richard Biener <rguenther@suse.de>
733
734 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
735 bitmap and its handling.
736 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
737
738 2013-05-02 Richard Biener <rguenther@suse.de>
739
740 PR middle-end/57140
741 * tree-inline.c (copy_loops): Properly handle removed loops.
742 (copy_cfg_body): Mark destination loops for fixup if source
743 loops needed fixup.
744
745 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
746
747 PR target/56732
748 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
749 generating simple_return for naked functions.
750
751 2013-05-02 Martin Jambor <mjambor@suse.cz>
752
753 PR middle-end/56988
754 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
755 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
756 flags match.
757 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
758 ipa_agg_replacement_value structures.
759 (known_aggs_to_agg_replacement_list): Likewise.
760 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
761 (read_agg_replacement_chain): Likewise.
762 (ipcp_transform_function): Also check that by_ref flags match.
763
764 2013-05-02 Richard Biener <rguenther@suse.de>
765
766 * graphds.h (struct graph): Add obstack member.
767 * graphds.c (new_graph): Initialize obstack and allocate
768 vertices from it.
769 (add_edge): Allocate edge from the obstack.
770 (free_graph): Free the obstack instead of all edges and vertices.
771
772 2013-05-02 Teresa Johnson <tejohnson@google.com>
773
774 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
775 divides.
776 * cfg.c (update_bb_profile_for_threading): Ditto.
777 * tree-inline.c (copy_bb): Ditto.
778 (copy_edges_for_bb): Ditto.
779 (initialize_cfun): Ditto.
780 (copy_cfg_body): Ditto.
781 (expand_call_inline): Ditto.
782 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
783 (estimate_node_size_and_time): Ditto.
784 (inline_merge_summary): Ditto.
785 * cgraphclones.c (cgraph_clone_edge): Ditto.
786 (cgraph_clone_node): Ditto.
787 * sched-rgn.c (compute_dom_prob_ps): Ditto.
788 (compute_trg_info): Ditto.
789
790 2013-05-02 Ian Bolton <ian.bolton@arm.com>
791
792 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
793 S reg when fp attribute set.
794 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
795
796 2013-05-02 Ian Bolton <ian.bolton@arm.com>
797
798 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
799 New pattern.
800 (*and_one_cmplsi3_compare0_uxtw): Likewise.
801 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
802 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
803
804 2013-05-02 Richard Biener <rguenther@suse.de>
805
806 * tree-scalar-evolution.c (scev_info_hasher): Remove.
807 (struct instantiate_cache_entry): New type.
808 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
809 (struct instantiate_cache_type): New type.
810 (set_instantiated_value, get_instantiated_value): Remove.
811 (get_instantiated_value_entry): New function.
812 (instantiate_scev_name): Use the new cache and adjust.
813 (instantiate_scev_poly): Adjust.
814 (instantiate_scev_binary): Likewise.
815 (instantiate_array_ref): Likewise.
816 (instantiate_scev_convert): Likewise.
817 (instantiate_scev_not): Likewise.
818 (instantiate_scev_3): Likewise.
819 (instantiate_scev_2): Likewise.
820 (instantiate_scev_r): Likewise.
821 (instantiate_scev): Likewise.
822 (resolve_mixers): Likewise.
823
824 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
825
826 PR target/57091
827 * lra-constraints.c (best_small_class_operands_num): Remove.
828 (process_alt_operands): Remove small_class_operands_num. Take
829 small classes operands into losers and only if the operand is not
830 matched. Modify debugging output.
831 (curr_insn_transform): Remove best_small_class_operands_num.
832 Print insn name.
833
834 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
835
836 * config/aarch64/aarch64-builtins.c
837 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
838 * config/aarch64/aarch64-simd-builtins.def
839 (reduc_splus_): Add new modes.
840 (reduc_uplus_): New.
841 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
842 (reduc_uplus_v4sf): Likewise.
843 (reduc_splus_v4sf): Likewise.
844 (aarch64_addv<mode>): Likewise.
845 (reduc_uplus_<mode>): Likewise.
846 (reduc_splus_<mode>): Likewise.
847 (aarch64_addvv2di): Likewise.
848 (reduc_uplus_v2di): Likewise.
849 (reduc_splus_v2di): Likewise.
850 (aarch64_addvv2si): Likewise.
851 (reduc_uplus_v2si): Likewise.
852 (reduc_splus_v2si): Likewise.
853 (reduc_<sur>plus_<mode>): New.
854 (reduc_<sur>plus_v2di): Likewise.
855 (reduc_<sur>plus_v2si): Likewise.
856 (reduc_<sur>plus_v4sf): Likewise.
857 (aarch64_addpv4sf): Likewise.
858 * config/aarch64/arm_neon.h
859 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
860 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
861 add UNSPEC_SADDV, UNSPEC_UADDV.
862 (SUADDV): New.
863 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
864
865 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
866
867 * config/aarch64/arm_neon.h
868 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
869
870 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
871
872 * config/aarch64/aarch64-builtins
873 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
874
875 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
876
877 * config/aarch64/aarch64-simd-builtins.def
878 (reduc_smax_): New.
879 (reduc_smin_): Likewise.
880 (reduc_umax_): Likewise.
881 (reduc_umin_): Likewise.
882 (reduc_smax_nan_): Likewise.
883 (reduc_smin_nan_): Likewise.
884 (fmax): Remove.
885 (fmin): Likewise.
886 (smax): Update for V2SF, V4SF and V2DF modes.
887 (smin): Likewise.
888 (smax_nan): New.
889 (smin_nan): Likewise.
890 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
891 (<su><maxmin><mode>3): ...This, refactor.
892 (s<maxmin><mode>3): New.
893 (<maxmin_uns><mode>3): Likewise.
894 (reduc_<maxmin_uns>_<mode>): Refactor.
895 (reduc_<maxmin_uns>_v4sf): Likewise.
896 (reduc_<maxmin_uns>_v2si): Likewise.
897 (aarch64_<fmaxmin><mode>: Remove.
898 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
899 new builtin names.
900 (vmin<q>_f<32,64>): Likewise.
901 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
902 (FMAXMIN): New.
903 (su): Add mappings for smax, smin, umax, umin.
904 (maxmin): New.
905 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
906 (FMAXMIN): Rename as...
907 (FMAXMIN_UNS): ...This.
908 (maxminv): Remove.
909 (fmaxminv): Likewise.
910 (fmaxmin): Likewise.
911 (maxmin_uns): New.
912 (maxmin_uns_op): Likewise.
913
914 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
915
916 * config/aarch64/arm_neon.h
917 (vac<ge, gt><sd>_f<32, 64>): Rename to...
918 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
919 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
920
921 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
922
923 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
924 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
925
926 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
927
928 * config/aarch64/aarch64-simd.md
929 (vcond<mode>_internal): Handle special cases for constant masks.
930 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
931 (vcondu<mode><mode>): Likewise.
932 (vcond<v_cmp_result><mode>): New.
933
934 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
935
936 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
937 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
938 * config/aarch64/aarch64-simd-builtins.def
939 (cmeq): Update to BUILTIN_VALLDI.
940 (cmgt): Likewise.
941 (cmge): Likewise.
942 (cmle): Likewise.
943 (cmlt): Likewise.
944 * config/aarch64/arm_neon.h
945 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
946 to builtins or C as appropriate.
947
948 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
949
950 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
951 (cmgeu): ...This.
952 (cmhi): Rename to...
953 (cmgtu): ...This.
954 * config/aarch64/aarch64-simd.md
955 (simd_mode): Add SF.
956 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
957 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
958 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
959 (cstore<mode>_neg): ...This.
960 * config/aarch64/iterators.md
961 (VALLF): new.
962 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
963 (COMPARISONS): New.
964 (UCOMPARISONS): Likewise.
965 (optab): Add missing comparisons.
966 (n_optab): New.
967 (cmp_1): Likewise.
968 (cmp_2): Likewise.
969 (CMP): Likewise.
970 (cmp): Remove.
971 (VCMP_S): Likewise.
972 (VCMP_U): Likewise.
973 (V_cmp_result): Add DF, SF modes.
974 (v_cmp_result): Likewise.
975 (v): Likewise.
976 (vmtype): Likewise.
977 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
978
979 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
980
981 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
982 define_insn to define_insn_and_split.
983 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
984 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
985 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
986 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
987 (thumb2_negscc): Likewise.
988
989 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
990
991 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
992
993 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
994
995 * config/arm/thumb2.md: Remove trailing whitespaces.
996
997 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
998
999 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1000 Use gen_int_mode rather than GEN_INT.
1001
1002 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
1003
1004 * value-prof.c (stream_in_histogram_value): Remove the strayed
1005 debug_gimple_stmt.
1006
1007 2013-04-30 Richard Biener <rguenther@suse.de>
1008
1009 PR middle-end/57122
1010 * cfghooks.c (split_edge): Properly check for the loop latch edge.
1011
1012 2013-04-30 Richard Biener <rguenther@suse.de>
1013
1014 PR middle-end/57107
1015 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1016
1017 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
1018
1019 PR rtl-optimization/56957
1020 PR rtl-optimization/57105
1021 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1022 variable. Use just INSN_UID for determining whether an insn
1023 should be only disconnected from the insn stream.
1024 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1025
1026 2013-04-30 Jakub Jelinek <jakub@redhat.com>
1027
1028 PR tree-optimization/57104
1029 * tsan.c (instrument_expr): Don't instrument accesses to
1030 DECL_HARD_REGISTER VAR_DECLs.
1031
1032 2013-04-30 Richard Biener <rguenther@suse.de>
1033
1034 * function.h (loops_for_fn): New inline function.
1035 (set_loops_for_fn): Likewise.
1036 * cfgloop.h (place_new_loop): Add struct function parameter.
1037 (get_loop): Likewise.
1038 (get_loops): Likewise.
1039 (number_of_loops): Likewise.
1040 (fel_next): Adjust.
1041 (fel_init): Likewise.
1042 * cfg.c (get_loop_copy): Adjust.
1043 * cfgloop.c (flow_loops_dump): Likewise.
1044 (record_loop_exits): Likewise.
1045 (verify_loop_structure): Likewise.
1046 * cfgloopanal.c (mark_irreducible_loops): Likewise.
1047 (estimate_reg_pressure_cost): Likewise.
1048 (mark_loop_exit_edges): Likewise.
1049 * cfgloopmanip.c (place_new_loop): Likewise.
1050 (add_loop): Likewise.
1051 (duplicate_loop): Likewise.
1052 * graph.c (draw_cfg_nodes): Likewise.
1053 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1054 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1055 (extract_affine_chrec): Likewise.
1056 (build_scop_iteration_domain): Likewise.
1057 * graphite.c (graphite_initialize): Likewise.
1058 * ira-build.c (create_loop_tree_nodes): Likewise.
1059 (more_one_region_p): Likewise.
1060 (rebuild_regno_allocno_maps): Likewise.
1061 (mark_loops_for_removal): Likewise.
1062 (mark_all_loops_for_removal): Likewise.
1063 (remove_unnecessary_regions): Likewise.
1064 (ira_build): Likewise.
1065 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1066 * loop-init.c (fix_loop_structure): Likewise.
1067 (gate_rtl_move_loop_invariants): Likewise.
1068 (gate_rtl_unswitch): Likewise.
1069 (gate_rtl_unroll_and_peel_loops): Likewise.
1070 (rtl_doloop): Likewise.
1071 * lto-streamer-in.c (input_cfg): Likewise.
1072 * lto-streamer-out.c (output_cfg): Likewise.
1073 * modulo-sched.c (sms_schedule): Likewise.
1074 * predict.c (tree_estimate_probability): Likewise.
1075 (tree_estimate_probability_driver): Likewise.
1076 (estimate_loops): Likewise.
1077 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1078 (move_sese_region_to_fn): Likewise.
1079 (debug_loop_num): Likewise.
1080 * tree-chrec.c (chrec_evaluate): Likewise.
1081 (hide_evolution_in_other_loops_than_loop): Likewise.
1082 (chrec_component_in_loop_num): Likewise.
1083 (reset_evolution_in_loop): Likewise.
1084 (evolution_function_is_invariant_rec_p): Likewise.
1085 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1086 * tree-inline.c (copy_loops): Likewise.
1087 (copy_cfg_body): Likewise.
1088 (tree_function_versioning): Likewise.
1089 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1090 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1091 Likewise.
1092 (add_to_evolution_1): Likewise.
1093 (scev_const_prop): Likewise.
1094 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1095 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1096 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1097 (tree_ssa_lim_initialize): Likewise.
1098 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1099 (verify_loop_closed_ssa): Likewise.
1100 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
1101 (tree_ssa_loop_im): Likewise.
1102 (tree_ssa_loop_unswitch): Likewise.
1103 (tree_vectorize): Likewise.
1104 (check_data_deps): Likewise.
1105 (tree_ssa_loop_ivcanon): Likewise.
1106 (tree_ssa_loop_bounds): Likewise.
1107 (tree_complete_unroll): Likewise.
1108 (tree_complete_unroll_inner): Likewise.
1109 (tree_parallelize_loops): Likewise.
1110 (tree_ssa_loop_prefetch): Likewise.
1111 (tree_ssa_loop_ivopts): Likewise.
1112 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1113 * tree-vectorizer.c (vectorize_loops): Likewise.
1114
1115 2013-04-29 Mike Frysinger <vapier@gentoo.org>
1116
1117 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1118 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1119 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1120 with EABI_LINK_SPEC.
1121
1122 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1123
1124 PR target/44578
1125 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1126 alternative.
1127
1128 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1129
1130 PR target/57097
1131 * lra-constraints.c (process_alt_operands): Discourage a bit more
1132 using memory for pseudos. Print cost dump for alternatives.
1133 Modify cost values for conflicts with early clobbers.
1134 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1135
1136 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1137
1138 PR target/57098
1139 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1140
1141 2013-04-29 Ian Bolton <ian.bolton@arm.com>
1142
1143 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1144 from/to S register.
1145 (movdi_aarch64): Support LDR/STR from/to D register.
1146
1147 2013-04-29 Ian Bolton <ian.bolton@arm.com>
1148
1149 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1150 or higher by default.
1151
1152 2013-04-29 Richard Biener <rguenther@suse.de>
1153
1154 PR middle-end/57075
1155 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1156 even if not adding abnormal edges for calls that can make
1157 abnormal gotos.
1158
1159 2013-04-29 Richard Biener <rguenther@suse.de>
1160
1161 PR middle-end/57103
1162 * tree-cfg.c (move_stmt_op): Fix condition under which to update
1163 TREE_BLOCK.
1164 (move_stmt_r): Remove redundant checking.
1165
1166 2013-04-29 Teresa Johnson <tejohnson@google.com>
1167
1168 PR bootstrap/57077
1169 * basic-block.h (apply_scale): New function.
1170 (apply_probability): Use apply_scale.
1171 * gimple-streamer-in.c (input_bb): Ditto.
1172 * lto-streamer-in.c (input_cfg): Ditto.
1173 * lto-cgraph.c (merge_profile_summaries): Ditto.
1174 * tree-optimize.c (execute_fixup_cfg): Ditto.
1175 * tree-inline.c (copy_bb): Update comment to use apply_scale.
1176 (copy_edges_for_bb): Ditto.
1177 (copy_cfg_body): Ditto.
1178
1179 2013-04-29 Tom de Vries <tom@codesourcery.com>
1180
1181 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1182 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1183 (tail_merge_optimize): Handle current_loops == NULL.
1184
1185 2013-04-26 Jeff Law <law@redhat.com>
1186
1187 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1188 (simplify_cond_using_ranges): Generalize code to simplify
1189 COND_EXPRs where one argument is a constant and the other
1190 is an SSA_NAME created by an integral type conversion.
1191
1192 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1193
1194 * config/arm/arm.md (store_minmaxsi): Use only when
1195 optimize_insn_for_size_p.
1196
1197 2013-04-29 Christian Bruel <christian.bruel@st.com>
1198
1199 PR target/57108
1200 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1201
1202 2013-04-29 Richard Biener <rguenther@suse.de>
1203
1204 PR middle-end/57089
1205 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1206 loop tree make sure to schedule a fixup for the child as well.
1207 (expand_omp_for_generic): Properly add loops.
1208 (expand_omp_for_static_nochunk): Likewise.
1209 (expand_omp_for_static_chunk): Likewise.
1210 (expand_omp_for): For the degenerate case fixup loops.
1211 (expand_omp_sections): Fix default bb placement in loops.
1212 (expand_omp_atomic_pipeline): Properly add loops.
1213
1214 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1215
1216 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1217
1218 2013-04-29 Tom de Vries <tom@codesourcery.com>
1219
1220 * tree-ssa-tail-merge.c: Update header comment.
1221
1222 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1223
1224 * config/aarch64/arm_neon.h
1225 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1226 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1227 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1228 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1229 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1230 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1231 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1232 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1233
1234 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1235
1236 * config/aarch64/aarch64-simd.md
1237 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1238 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1239 fix_trunc, fixuns_trunc.
1240 (ftrunc<VDQF:mode>2): New.
1241 * config/aarch64/iterators.md (optab): Add fix, fixuns.
1242 (fix_trunc_optab): New.
1243
1244 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1245
1246 * config/aarch64/aarch64-builtins.c
1247 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1248 iceilf, lround, iroundf.
1249
1250 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1251
1252 PR target/54349
1253 * config/i386/i386.h (enum ix86_tune_indices)
1254 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1255 New, split from X86_TUNE_INTER_UNIT_MOVES.
1256 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1257 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1258 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1259 (TARGET_INTER_UNIT_MOVES): Remove.
1260 * config/i386/i386.c (initial_ix86_tune_features): Update.
1261 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1262 (ix86_expand_convert_uns_didf_sse): Use
1263 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1264 (ix86_expand_vector_init_one_nonzero): Ditto.
1265 (ix86_expand_vector_init_interleave): Ditto.
1266 (inline_secondary_memory_needed): Return true for moves from SSE class
1267 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1268 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1269 * config/i386/constraints.md (Yi, Ym): Depend on
1270 TARGET_INTER_UNIT_MOVES_TO_VEC.
1271 (Yj, Yn): New constraints.
1272 * config/i386/i386.md (*movdi_internal): Change constraints of
1273 operand 1 from Yi to Yj and from Ym to Yn.
1274 (*movsi_internal): Ditto.
1275 (*movdf_internal): Ditto.
1276 (*movsf_internal): Ditto.
1277 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1278 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1279 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1280 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1281 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1282 * config/i386/sse.md (movdi_to_sse): Ditto.
1283 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1284 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1285 TARGET_INTER_UNIT_MOVES.
1286 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1287 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1288 instead of TARGET_INTER_UNIT_MOVES.
1289 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1290 operand 1 from Yi to Yj and from Ym to Yn.
1291
1292 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1293
1294 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1295 (float_truncate_hi_): Likewise.
1296 (float_extend_lo_): Likewise.
1297 (float_truncate_lo_): Likewise.
1298 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1299 (aarch64_float_extend_lo_v2df): Likewise.
1300 (vec_unpacks_hi_v4sf): Likewise.
1301 (aarch64_float_truncate_lo_v2sf): Likewise.
1302 (aarch64_float_truncate_hi_v4sf): Likewise.
1303 (vec_pack_trunc_v2df): Likewise.
1304 (vec_pack_trunc_df): Likewise.
1305
1306 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1307
1308 * config/aarch64/aarch64-builtins.c
1309 (aarch64_fold_builtin): Fold float conversions.
1310 * config/aarch64/aarch64-simd-builtins.def
1311 (floatv2si, floatv4si, floatv2di): New.
1312 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1313 * config/aarch64/aarch64-simd.md
1314 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1315 * config/aarch64/iterators.md (FLOATUORS): New.
1316 (optab): Add float, floatuns.
1317 (su_optab): Likewise.
1318
1319 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1320
1321 * config/aarch64/aarch64-builtins.c
1322 (aarch64_builtin_vectorized_function): Use new names for
1323 fcvt builtins.
1324 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1325 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1326 (fcvtzu): Split as...
1327 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1328 (fcvtas): Split as...
1329 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1330 (fcvtau): Split as...
1331 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1332 (fcvtps): Split as...
1333 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1334 (fcvtpu): Split as...
1335 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1336 (fcvtms): Split as...
1337 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1338 (fcvtmu): Split as...
1339 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1340 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1341 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1342 (lfrintnusf, lfrintnudf): Likewise.
1343 * config/aarch64/aarch64-simd.md
1344 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1345 define_insn.
1346 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1347 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1348 (fcvt_pattern): Likewise.
1349
1350 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1351
1352 * config/aarch64/aarch64-simd.md
1353 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1354 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1355
1356 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1357
1358 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1359 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1360 (vrnd<a,m,n,p>_f32): Implement using builtins.
1361 (vrnd<i,x><q>_f<32, 64>): New.
1362
1363 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1364
1365 * config/aarch64/aarch64-builtins.c
1366 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1367 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1368 (frintz): Rename to...
1369 (btrunc): ...this.
1370 (frintp): Rename to...
1371 (ceil): ...this.
1372 (frintm): Rename to...
1373 (floor): ...this.
1374 (frinti): Rename to...
1375 (nearbyint): ...this.
1376 (frintx): Rename to...
1377 (rint): ...this.
1378 (frinta): Rename to...
1379 (round): ...this.
1380 * config/aarch64/aarch64-simd.md
1381 (aarch64_frint<frint_suffix><mode>): Delete.
1382 (<frint_pattern><mode>2): Convert to insn.
1383 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1384 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1385 (frint_pattern): Likewise.
1386 (frint_suffix): Likewise.
1387
1388 2013-04-29 Richard Biener <rguenther@suse.de>
1389
1390 PR tree-optimization/57081
1391 * loop-init.c: Include tree-flow.h.
1392 (loop_optimizer_finalize): Free number of iteration estimates.
1393 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1394
1395 2013-04-29 Jakub Jelinek <jakub@redhat.com>
1396
1397 PR tree-optimization/57083
1398 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1399 non-singleton shift count range, zero extend low_bound for uns case.
1400
1401 * config/i386/predicates.md (general_vector_operand): New predicate.
1402 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1403 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1404 if they aren't nonimmediate operands. If their original values
1405 satisfy const_vector_equal_evenodd_p, don't shift them.
1406 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1407 predicates. For the SSE4.1 case force operands[{1,2}] into registers
1408 if not nonimmediate_operand.
1409 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1410 instead of register_operand.
1411 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1412
1413 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
1414
1415 * stor-layout.c (finalize_size_functions): Allocate a structure and
1416 reset cfun before dumping the functions.
1417
1418 2013-04-27 Jakub Jelinek <jakub@redhat.com>
1419
1420 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1421
1422 PR target/56866
1423 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1424 use xop_pmacsdqh if uns_p.
1425 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1426 the immediate rotate count.
1427
1428 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1429
1430 * rtl.h (struct rtx_def): Add comment for field jump.
1431 (LRA_SUBREG_P): New macro.
1432 * recog.c (register_operand): Check LRA_SUBREG_P.
1433 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1434 stack frame.
1435 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1436 (lra_final_code_change): Skip subreg change for operators.
1437 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1438 if there are no operand changes.
1439 * lra-constraints.c (curr_insn_set): New.
1440 (match_reload): Set LRA_SUBREG_P.
1441 (emit_spill_move): Ditto.
1442 (check_and_process_move): Use curr_insn_set. Process only single
1443 set insns. Don't initialize sec_mem_p and change_p.
1444 (simplify_operand_subreg): Use LRA_SUBREG_P.
1445 (reg_in_class_p): New function.
1446 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1447 of #ifdef. Add code to remove cycling.
1448 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1449 non-null disp. Reload inner instead of disp when base and index
1450 are null. Try to put lo_sum into register.
1451 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1452 (check_and_process_move): Move code for move cost check to
1453 simple_move_p. Remove equiv_substitution.
1454 (simple_move_p): New function.
1455 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1456 curr_insn_set. Call check_and_process_move only for single set
1457 insns. Use the new function. Move call of check_and_process_move
1458 after operand equiv substitution and address process.
1459
1460 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1461
1462 PR go/57045
1463 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1464 with nonlocal goto receivers or returns twice calls, ignore
1465 unininitialized values from abnormal edges to nl goto receiver
1466 or returns twice call.
1467
1468 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1469
1470 PR tree-optimization/57051
1471 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1472 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1473 bitsize.
1474
1475 2013-04-26 Richard Biener <rguenther@suse.de>
1476
1477 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1478 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1479 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1480 (fixup_loop_arrays_after_move): New function.
1481 (move_sese_region_to_fn): Properly outline the loop tree parts
1482 of the SESE region.
1483
1484 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
1485
1486 * config/i386/i386.md (type, unit): Fix long lines.
1487
1488 2013-04-26 Richard Biener <rguenther@suse.de>
1489
1490 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1491 (lto-streamer-out.o): Likewise.
1492 * cfgloop.c (init_loops_structure): Export, add struct function
1493 argument and adjust.
1494 (flow_loops_find): Adjust.
1495 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1496 (init_loops_structure): Declare.
1497 * lto-streamer-in.c: Include cfgloop.h.
1498 (input_cfg): Input the loop tree.
1499 * lto-streamer-out.c: Include cfgloop.h.
1500 (output_cfg): Output the loop tree.
1501 (output_struct_function_base): Do not drop PROP_loops.
1502
1503 2013-03-26 Richard Biener <rguenther@suse.de>
1504
1505 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1506 (pass_build_cfg): Provide PROP_loops.
1507 (move_sese_region_to_fn): Remove loops that are outlined into fn
1508 for now.
1509 * tree-inline.c: Include cfgloop.h.
1510 (initialize_cfun): Do not drop PROP_loops.
1511 (copy_loops): New function.
1512 (copy_cfg_body): Copy loop structure.
1513 (tree_function_versioning): Initialize destination loop tree.
1514 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1515 (pass_parallelize_loops): Do IL verification.
1516 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1517 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1518 the CFG make sure we fixup loops as well.
1519 * tree-ssa-tail-merge.c: Include cfgloop.h.
1520 (replace_block_by): When merging loop latches mark loops for fixup.
1521 * lto-streamer-out.c (output_struct_function_base): Drop
1522 PROP_loops for now.
1523 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1524 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1525 * ipa-split.c: Include cfgloop.h.
1526 (split_function): Add the new return block to the loop tree root.
1527 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1528 whether we have removed the forwarder block.
1529 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1530 * cfgloop.h (place_new_loop): Declare.
1531 * cfgloopmanip.c (place_new_loop): Export.
1532 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1533 (tree-switch-conversion.o): Likewise.
1534 (tree-complex.o): Likewise.
1535 (tree-inline.o): Likewise.
1536 (tree-ssa-tailmerge.o): Likewise.
1537 (ipa-split.o): Likewise.
1538 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1539 (tree-ssa-copy.o): Likewise.
1540 * tree-switch-conversion.c: Include cfgloop.h
1541 (process_switch): If we emit a bit-test cascade, schedule loops
1542 for fixup.
1543 * tree-complex.c: Include cfgloop.h.
1544 (expand_complex_div_wide): Properly add new basic-blocks to loops.
1545 * asan.c: Include cfgloop.h.
1546 (create_cond_insert_point): Properly add new basic-blocks to
1547 loops, schedule loop fixup.
1548 * cfgloop.c (verify_loop_structure): Check that looks are not
1549 marked for fixup.
1550 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1551 to loops.
1552 (expand_omp_for_generic): Likewise.
1553 (expand_omp_sections): Likewise.
1554 (expand_omp_atomic_pipeline): Schedule loops for fixup.
1555 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1556 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1557 is initialized, not when loops are present.
1558 * tree-parloops.c (parallelize_loops): Remove checking here.
1559 * passes.c (init_optimization_passes): Schedule a copy-propagation
1560 pass before complete unrolling of inner loops.
1561
1562 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1563
1564 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1565 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1566 (colorize_init): Add argument to _WIN32 version.
1567 * toplev.c: Include diagnostic-color.h.
1568 (process_options): Default to -fdiagnostics-color=auto if
1569 GCC_COLORS env var is in the environment.
1570 * common.opt (fdiagnostics-color=): Add Var and Init.
1571 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1572 env var is in the environment, the default is auto rather than never.
1573
1574 * diagnostic.h (file_name_as_prefix): Add context argument.
1575 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
1576 the string as locus.
1577 * langhooks.c (lhd_print_error_function): Adjust caller.
1578
1579 2013-04-25 Lawrence Crowl <crowl@google.com>
1580
1581 * var-tracking.c (shared_hash_def::htab):
1582 Change type to hash_table. Update dependent calls and types.
1583
1584 2013-04-25 Lawrence Crowl <crowl@google.com>
1585
1586 * Makefile.in: Update as needed below.
1587
1588 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1589 Move declaration to after the type's method definitons.
1590
1591 * attribs.c (htab_t scoped_attributes::attribute_hash):
1592 Change type to hash_table. Update dependent calls and types.
1593
1594 * bitmap.c (htab_t bitmap_desc_hash):
1595 Change type to hash_table. Update dependent calls and types.
1596
1597 * cselib.c (htab_t cselib_hash_table):
1598 Change type to hash_table. Update dependent calls and types.
1599
1600 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1601 (hash_string_slot_node): Move implementation into lto-streamer.h
1602 struct string_slot_hasher.
1603 (eq_string_slot_node): Likewise.
1604
1605 * data-streamer-out.c: Update output_block::string_hash_table
1606 dependent calls and types.
1607
1608 * dwarf2cfi.c (htab_t trace_index):
1609 Change type to hash_table. Update dependent calls and types.
1610
1611 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1612 Change type to hash_table. Update dependent calls and types.
1613 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1614 (htab_t optimize_external_refs::map): Likewise.
1615 (htab_t output_comp_unit::extern_map): Likewise.
1616 (htab_t output_comdat_type_unit::extern_map): Likewise.
1617 (htab_t output_macinfo::macinfo_htab): Likewise.
1618 (htab_t optimize_location_lists::htab): Likewise.
1619 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1620
1621 * except.c (htab_t ehspec_hash_type):
1622 Change type to hash_table. Update dependent calls and types.
1623 (assign_filter_values::ttypes): Likewise.
1624 (assign_filter_values::ehspec): Likewise.
1625 (sjlj_assign_call_site_values::ar_hash): Likewise.
1626 (convert_to_eh_region_ranges::ar_hash): Likewise.
1627
1628 * gcse.c (htab_t pre_ldst_table):
1629 Change type to hash_table. Update dependent calls and types.
1630
1631 * ggc-common.c (htab_t saving_htab):
1632 Change type to hash_table. Update dependent calls and types.
1633 (htab_t loc_hash): Likewise.
1634 (htab_t ptr_hash): Likewise.
1635 (call_count): Rename ggc_call_count.
1636 (call_alloc): Rename ggc_call_alloc.
1637 (loc_descriptor): Rename make_loc_descriptor.
1638 (add_statistics): Rename ggc_add_statistics.
1639
1640 * ggc-common.c (saving_htab):
1641 Change type to hash_table. Update dependent calls and types.
1642
1643 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1644 (push_gimplify_context): Likewise.
1645 (pop_gimplify_context): Likewise.
1646 (struct gimple_temp_hash_elt): Added.
1647 (struct gimplify_hasher): Likewise.
1648 (struct gimplify_ctx.temp_htab):
1649 Change type to hash_table. Update dependent calls and types.
1650
1651 * gimple-fold.c: Include gimplify-ctx.h.
1652
1653 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1654 Change type to hash_table. Update dependent calls and types.
1655 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1656 avoid potential global name collision.
1657
1658 * gimplify.c: Include gimplify-ctx.h.
1659 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1660 (htab_t gimplify_ctx::temp_htab):
1661 Update dependent calls and types for new type hash_table.
1662 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1663 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1664
1665 * gimplify-ctx.h: New.
1666 (struct gimple_temp_hash_elt): Move from gimplify.c.
1667 (class gimplify_hasher): New.
1668 (struct gimplify_ctx): Move from gimple.h.
1669 (htab_t gimplify_ctx::temp_htab):
1670 Change type to hash_table. Update dependent calls and types.
1671
1672 * graphite-clast-to-gimple.c: Include graphite-htab.h.
1673 (htab_t ivs_params::newivs_index):
1674 Change type to hash_table. Update dependent calls and types.
1675 (htab_t ivs_params::params_index): Likewise.
1676 (htab_t print_generated_program::params_index): Likewise.
1677 (htab_t gloog::newivs_index): Likewise.
1678 (htab_t gloog::params_index): Likewise.
1679
1680 * graphite.c: Include graphite-htab.h.
1681 4htab_t graphite_transform_loops::bb_pbb_mapping):
1682 Change type to hash_table. Update dependent calls and types.
1683
1684 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1685 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1686 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1687
1688 * graphite-dependences.c: Include graphite-htab.h.
1689 (loop_is_parallel_p): Change hash table type of parameter.
1690
1691 * graphite-htab.h: New.
1692 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1693 (extern find_pbb_via_hash): Move from graphite-poly.h.
1694 (extern loop_is_parallel_p): Move from graphite-poly.h.
1695 (extern get_loop_body_pbbs): Move from graphite-poly.h.
1696
1697 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1698 (extern loop_is_parallel_p): Move to graphite-htab.h.
1699 (extern get_loop_body_pbbs): Move to graphite-htab.h.
1700
1701 * haifa-sched.c (htab_t delay_htab):
1702 Change type to hash_table. Update dependent calls and types.
1703 (htab_t delay_htab_i2): Likewise.
1704
1705 * ira-color.c (htab_t allocno_hard_regs_htab):
1706 Change type to hash_table. Update dependent calls and types.
1707
1708 * ira-costs.c (htab_t cost_classes_htab):
1709 Change type to hash_table. Update dependent calls and types.
1710
1711 * loop-invariant.c (htab_t merge_identical_invariants::eq):
1712 Change type to hash_table. Update dependent calls and types.
1713
1714 * loop-iv.c (htab_t bivs):
1715 Change type to hash_table. Update dependent calls and types.
1716
1717 * loop-unroll.c (htab_t opt_info::insns_to_split):
1718 Change type to hash_table. Update dependent calls and types.
1719 (htab_t opt_info::insns_with_var_to_expand): Likewise.
1720
1721 * lto-streamer.h (struct string_slot): Move from data-streamer.h
1722 (struct string_slot_hasher): New.
1723 (htab_t output_block::string_hash_table):
1724 Change type to hash_table. Update dependent calls and types.
1725
1726 * lto-streamer-in.c (freeing_string_slot_hasher): New.
1727 (htab_t file_name_hash_table):
1728 Change type to hash_table. Update dependent calls and types.
1729
1730 * lto-streamer-out.c: Update output_block::string_hash_table dependent
1731 calls and types.
1732
1733 * lto-streamer.c (htab_t tree_htab):
1734 Change type to hash_table. Update dependent calls and types.
1735
1736 * omp-low.c: Include gimplify-ctx.h.
1737
1738 * passes.c (htab_t name_to_pass_map):
1739 Change type to hash_table. Update dependent calls and types.
1740 (pass_traverse): Rename to passes_pass_traverse.
1741
1742 * plugin.c (htab_t event_tab):
1743 Change type to hash_table. Update dependent calls and types.
1744
1745 * postreload-gcse.c (htab_t expr_table):
1746 Change type to hash_table. Update dependent calls and types.
1747 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1748
1749 * sese.c (debug_rename_map_1): Make extern.
1750 (htab_t copy_bb_and_scalar_dependences::rename_map):
1751 Change type to hash_table. Update dependent calls and types.
1752
1753 * sese.h (extern debug_rename_map): Move to .c file.
1754
1755 * store-motion.c (htab_t store_motion_mems_table):
1756 Change type to hash_table. Update dependent calls and types.
1757
1758 * trans-mem.c (htab_t tm_new_mem_hash):
1759 Change type to hash_table. Update dependent calls and types.
1760
1761 * tree-browser.c (htab_t TB_up_ht):
1762 Change type to hash_table. Update dependent calls and types.
1763
1764 * tree-cfg.c (htab_t discriminator_per_locus):
1765 Change type to hash_table. Update dependent calls and types.
1766
1767 * tree-complex.c: Include tree-hasher.h
1768 (htab_t complex_variable_components):
1769 Change type to hash_table. Update dependent calls and types.
1770
1771 * tree-eh.c (htab_t finally_tree):
1772 Change type to hash_table. Update dependent calls and types.
1773
1774 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1775 struct int_tree_hasher.
1776 (extern int_tree_map_eq): Likewise.
1777 (uid_decl_map_hash): Removed.
1778 (extern decl_tree_map_eq): Likewise.
1779
1780 * tree-hasher.h: New.
1781 (struct int_tree_hasher): New.
1782 (typedef int_tree_htab_type): New.
1783
1784 * tree-inline.c: Include gimplify-ctx.h.
1785
1786 * tree-mudflap.c: Include gimplify-ctx.h.
1787
1788 * tree-parloops.c: Include tree-hasher.h.
1789 (htab_t eliminate_local_variables_stmt::decl_address):
1790 Change type to hash_table. Update dependent calls and types.
1791 (htab_t separate_decls_in_region::decl_copies): Likewise.
1792
1793 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1794 Change type to hash_table. Update dependent calls and types.
1795
1796 * tree-sra.c (candidates):
1797 Change type to hash_table. Update dependent calls and types.
1798
1799 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1800 in tree-flow.h.
1801 (int_tree_map_hash): Likewise.
1802
1803 * tree-ssa-dom.c (htab_t avail_exprs):
1804 Change type to hash_table. Update dependent calls and types.
1805
1806 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1807 Change type to hash_table. Update dependent calls and types.
1808
1809 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1810 Change type to hash_table. Update dependent calls and types.
1811
1812 * tree-ssa-phiopt.c (seen_ssa_names):
1813 Change type to hash_table. Update dependent calls and types.
1814
1815 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1816 Change type to hash_table. Update dependent calls and types.
1817
1818 * tree-ssa-uncprop.c (equiv):
1819 Change type to hash_table. Update dependent calls and types.
1820
1821 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1822
1823 PR rtl-optimization/57003
1824 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1825 call note_stores with kill_clobbered_value callback again after
1826 killing regs_invalidated_by_call.
1827
1828 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1829
1830 * config/aarch64/aarch64-simd.md
1831 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1832 (aarch64_simd_bsl<mode>): Likewise.
1833 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1834
1835 2013-04-25 Marek Polacek <polacek@redhat.com>
1836
1837 PR tree-optimization/57066
1838 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1839
1840 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
1841
1842 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1843
1844 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1845
1846 * config/aarch64/aarch64-builtins.c
1847 (aarch64_fold_builtin): New.
1848 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1849 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1850 * config/aarch64/aarch64-simd-builtins.def (abs): New.
1851 * config/aarch64/arm_neon.h
1852 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1853
1854 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1855 Tejas Belagod <tejas.belagod@arm.com>
1856
1857 * config/aarch64/aarch64-builtins.c
1858 (aarch64_gimple_fold_builtin): New.
1859 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1860 * config/aarch64/aarch64-simd-builtins.def (addv): New.
1861 * config/aarch64/aarch64-simd.md (addpv4sf): New.
1862 (addvv4sf): Update.
1863 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1864
1865 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1866
1867 * config/aarch64/aarch64.md
1868 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1869
1870 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1871
1872 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1873 (*ngcsi_uxtw): New pattern.
1874
1875 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1876 Julian Brown <julian@codesourcery.com>
1877
1878 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1879 (TB_DREG): Add T_V4HF.
1880 (v4hf_UP): New macro.
1881 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1882 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1883 Handle initialisation of V4HF. Adjust initialisation of reinterpret
1884 built-ins.
1885 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1886 (arm_vector_mode_supported_p): Handle V4HF.
1887 (arm_mangle_map): Handle V4HFmode.
1888 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1889 * config/arm/arm_neon_builtins.def: Add entries for
1890 vcvtv4hfv4sf, vcvtv4sfv4hf.
1891 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1892 (neon_vcvtv4hfv4sf): Likewise.
1893 * config/arm/neon-gen.ml: Handle half-precision floating point
1894 features.
1895 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1896 * config/arm/arm_neon.h: Regenerate.
1897 * config/arm/neon.ml (type elts): Add F16.
1898 (type vectype): Add T_float16x4, T_floatHF.
1899 (type vecmode): Add V4HF.
1900 (type features): Add Requires_FP_bit feature.
1901 (elt_width): Handle F16.
1902 (elt_class): Likewise.
1903 (elt_of_class_width): Likewise.
1904 (mode_of_elt): Refactor.
1905 (type_for_elt): Handle F16, fix error messages.
1906 (vectype_size): Handle T_float16x4.
1907 (vcvt_sh): New function.
1908 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1909 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1910 (string_of_mode): Handle V4HF.
1911 * doc/arm-neon-intrinsics.texi: Regenerate.
1912
1913 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1914
1915 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1916 format specifier in 'X' case.
1917
1918 2013-04-25 Alan Modra <amodra@gmail.com>
1919
1920 PR target/57052
1921 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1922 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1923 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1924 Repeat for many other rotate/shift and mask patterns using subregs.
1925 Name lshiftrt insns.
1926 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1927 on WORDS_BIG_ENDIAN.
1928
1929 2013-04-25 Alan Modra <amodra@gmail.com>
1930
1931 * config.gcc: Support little-endian powerpc-linux targets.
1932 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1933 (LINK_OS_LINUX_SPEC): Define.
1934 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1935 Preserve MASK_LITTLE_ENDIAN.
1936 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1937 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1938 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1939 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1940 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1941 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1942 Correct fp word order for little-endian. Don't shift toc entries
1943 smaller than a word for little-endian.
1944 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1945 (bswapdi2 splits): Correct low-part subreg for little-endian.
1946 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1947 low/high where such is correct only for be.
1948 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1949 little-endian for -mcall-aixdesc.
1950
1951 2013-04-25 Alan Modra <amodra@gmail.com>
1952
1953 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1954 replace_equiv_address_nv.
1955
1956 2013-04-25 Alan Modra <amodra@gmail.com>
1957
1958 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1959
1960 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1961
1962 Revert:
1963 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1964 * rtl.h (struct rtx_def): ...
1965
1966 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1967
1968 PR rtl-optimizations/57046
1969 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1970 for multi-reg splits.
1971
1972 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1973
1974 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1975
1976 2013-04-24 Sterling Augustine <saugustine@google.com>
1977
1978 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1979 (comp_dir_string, debug_str_dwo_section): New.
1980 (DEBUG_STR_DWO_SECTION): Rename to ...
1981 (DEBUG_DWO_STR_SECTION): ... this.
1982 (DEBUG_NORM_STR_SECTION): Delete.
1983 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1984 (DEBUG_STR_DWO_SECTION_FLAGS): New.
1985 (find_AT_string): Move most logic to ...
1986 (find_AT_string_in_table): ... here. New.
1987 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1988 add_skeleton_AT_string. Delete logic.
1989 (output_skeleton_debug_sections): Remove call to
1990 add_top_level_skeleton_die_attrs.
1991 (add_comp_dir_attribute): Move logic to comp_dir_string.
1992 (dwarf2out_init): Initialize debug_str_dwo_section.
1993 (output_indirect_string): Call find_string_form.
1994 (output_indirect_strings): Rewrite.
1995 (prune_unused_types): Empty skeleton_debug_str_hash.
1996 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1997 (dwarf2out_finish): Call output_indirect_strings.
1998
1999 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2000
2001 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2002
2003 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2004
2005 * rtl.h (struct rtx_def): Add comment for field jump.
2006 (LRA_SUBREG_P): New macro.
2007 * recog.c (register_operand): Check LRA_SUBREG_P.
2008 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2009 stack frame.
2010 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2011 (lra_final_code_change): Skip subreg change for operators.
2012 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2013 if there are no operand changes.
2014 * lra-constraints.c (curr_insn_set): New.
2015 (match_reload): Set LRA_SUBREG_P.
2016 (emit_spill_move): Ditto.
2017 (check_and_process_move): Use curr_insn_set. Process only single
2018 set insns. Don't initialize sec_mem_p and change_p.
2019 (simplify_operand_subreg): Use LRA_SUBREG_P.
2020 (reg_in_class_p): New function.
2021 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2022 of #ifdef. Add code to remove cycling.
2023 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2024 non-null disp. Reload inner instead of disp when base and index
2025 are null. Try to put lo_sum into register.
2026 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2027 (check_and_process_move): Move code for move cost check to
2028 simple_move_p. Remove equiv_substitution.
2029 (simple_move_p): New function.
2030 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2031 curr_insn_set. Call check_and_process_move only for single set
2032 insns. Use the new function. Move call of check_and_process_move
2033 after operand equiv substitution and address process.
2034
2035 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2036
2037 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2038 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2039 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2040
2041 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2042
2043 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2044
2045 2013-04-24 Marek Polacek <polacek@redhat.com>
2046
2047 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2048 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2049 (select_loops_exit_conditions): Likewise.
2050 (number_of_iterations_for_all_loops): Likewise.
2051 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2052 (scev_analysis): Likewise.
2053
2054 2013-04-02 Catherine Moore <clm@codesourcery.com>
2055 Chao-ying Fu <fu@mips.com>
2056
2057 * config/mips/micromips.md (jraddiusp): New pattern.
2058 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2059 instruction if possible.
2060
2061 2013-04-24 Alan Modra <amodra@gmail.com>
2062
2063 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2064
2065 2013-04-24 Julian Brown <julian@codesourcery.com>
2066 Chung-Lin Tang <cltang@codesourcery.com>
2067
2068 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
2069 dependency behavior in enumeration type DIE generation. Add TODO note
2070 to comments about future DW_FORM_sdata/udata re-work of related code.
2071
2072 2013-04-23 Lawrence Crowl <crowl@google.com>
2073
2074 * Makefile.in: Update as needed below.
2075
2076 * hash-table.h (class hash_table):
2077 Correct many methods with parameter types compare_type to the correct
2078 value_type. (Correct code was unlikely to notice the change.)
2079 (hash_table::elements_with_deleted) New.
2080 (class hashtable::iterator): New.
2081 (hashtable::begin()): New.
2082 (hashtable::end()): New.
2083 (FOR_EACH_HASH_TABLE_ELEMENT): New.
2084
2085 * statistics.c (statistics_hashes):
2086 Change type to hash_table. Update dependent calls and types.
2087
2088 * tree-into-ssa.c (var_infos):
2089 Change type to hash_table. Update dependent calls and types.
2090
2091 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2092 Change type to hash_table. Update dependent calls and types.
2093
2094 * tree-ssa-loop-im.c (struct mem_ref.refs):
2095 Change type to hash_table. Update dependent calls and types.
2096
2097 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2098 Change type to hash_table. Update dependent calls and types.
2099
2100 * tree-ssa-sccvn.c (vn_tables_s::nary):
2101 Change type to hash_table. Update dependent calls and types.
2102 (vn_tables_s::phis): Likewise.
2103 (vn_tables_s::references): Likewise.
2104
2105 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2106 (vn_reference_eq): Update parameter and return types.
2107
2108 * tree-ssa-structalias.c (pointer_equiv_class_table):
2109 Change type to hash_table. Update dependent calls and types.
2110 (location_equiv_class_table): Likewise.
2111
2112 * tree-vect-data-refs.c: Consequential changes for making
2113 peeling a hash_table.
2114
2115 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2116 (destroy_loop_vec_info): Dependent hash_table update.
2117
2118 * tree-vectorizer.h (peeling_htab):
2119 Change type to hash_table. Update dependent calls and types.
2120
2121 2013-04-23 Shiva Chen <shiva0217@gmail.com>
2122
2123 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2124 to check the register content is equal or not.
2125 * lra-constraints.c (match_reload): Use lra_assign_reg_val
2126 to assign register content record.
2127 * lra-eliminations.c (update_reg_eliminate): Use
2128 lra_update_reg_val_offset to update register content offset.
2129 * lra-int.h (struct lra_reg): Add offset member.
2130 (lra_reg_val_equal_p): New static inline function.
2131 (lra_update_reg_val_offset): New static inline function.
2132 (lra_assign_reg_val): New static inline function.
2133 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2134 to assign register content record.
2135 (initialize_lra_reg_info_element): Initial offset to zero.
2136
2137 2013-04-23 Catherine Moore <clm@codesourcery.com>
2138
2139 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2140 operands. Record compression.
2141
2142 2013-04-23 Xinliang David Li <davidxl@google.com>
2143
2144 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2145
2146 2013-04-23 Richard Biener <rguenther@suse.de>
2147
2148 PR middle-end/57036
2149 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2150 parameter, only add abnormal goto edges from the copied body
2151 if the call could perform abnormal gotos.
2152 (copy_cfg_body): Adjust.
2153
2154 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
2155
2156 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2157
2158 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
2159
2160 * coretypes.h (gimple_stmt_iterator): Add struct to make
2161 compatible with C.
2162
2163 2013-04-23 Richard Biener <rguenther@suse.de>
2164
2165 PR tree-optimization/57026
2166 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2167 from SSA names occuring in abnormal PHI nodes.
2168
2169 2013-04-22 Andi Kleen <ak@linux.intel.com>
2170
2171 * lto/lto.c (print_lto_report_1): Fix LTO report names.
2172
2173 2013-04-22 Andi Kleen <ak@linux.intel.com>
2174
2175 * lto/lto.c (print_lto_report_1): Declare early.
2176 (read_cgraph_and_symbols): Call print_lto_report_1 early.
2177
2178 2013-04-22 Andi Kleen <ak@linux.intel.com>
2179
2180 * common.opt (-flto-report-wpa): Add.
2181 * doc/invoke.texi (-flto-report-wpa): Add.
2182 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2183 (lto_main): dito.
2184
2185 2013-04-22 Xinliang David Li <davidxl@google.com>
2186
2187 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2188 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2189 * Makefile.in: New dependency
2190
2191 David Daney <ddaney.cavm@gmail.com>
2192
2193 * configure.ac (gcc_cv_as_micromips_support): Use the
2194 --fatal-warnings option.
2195 * configure: Regenerate.
2196
2197 2013-04-22 Marek Polacek <polacek@redhat.com>
2198
2199 PR sanitizer/56990
2200 * tsan.c (instrument_expr): Don't instrument expression
2201 in case its size is zero.
2202
2203 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
2204
2205 PR target/57032
2206 Revert:
2207 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2208
2209 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2210
2211 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2212
2213 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2214 (gimple_stmt_iterator): New typedef.
2215 * gimple.h (gimple_stmt_iterator): Rename to...
2216 (gimple_stmt_iterator_d): ... This.
2217 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2218 trees be valid for GIMPLE and GENERIC.
2219 (TARGET_GIMPLE_FOLD_BUILTIN): New.
2220 * gimple-fold.c (gimple_fold_call): Call target hook
2221 gimple_fold_builtin.
2222 * hooks.c (hook_bool_gsiptr_false): New.
2223 * hooks.h (hook_bool_gsiptr_false): New.
2224 * target.def (fold_stmt): New.
2225 * doc/tm.texi: Regenerate.
2226
2227 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2228
2229 PR target/57018
2230 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2231 a set sp if no stack realignment.
2232
2233 2013-04-22 Nick Clifton <nickc@redhat.com>
2234
2235 * config.gcc (tilegx-linux): Extend extra_objs rather than
2236 overwriting it.
2237 (tilepro-linux): Likewise.
2238
2239 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2240
2241 * config/aarch64/aarch64-builtins.c
2242 (CF): Remove.
2243 (CF0, CF1, CF2, CF3, CF4, CF10): New.
2244 (VAR<1-12>): Add MAP parameter.
2245 (BUILTIN_*): Likewise.
2246 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2247 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2248 (aarch64_ushl_n<mode>): Likewise.
2249 (aarch64_sshr_n<mode>): Likewise.
2250 (aarch64_ushr_n<mode>): Likewise.
2251 (aarch64_<maxmin><mode>): Likewise.
2252 (aarch64_sqrt<mode>): Likewise.
2253 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2254 (vshr<q>_n_*): Likewise.
2255
2256 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2257
2258 * config/aarch64/aarch64-builtins.c
2259 (aarch64_simd_builtin_type_mode): Handle SF types.
2260 (sf_UP): Define.
2261 (BUILTIN_GPF): Define.
2262 (aarch64_init_simd_builtins): Handle SF types.
2263 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2264 (frecps): Likewise.
2265 (frecpx): Likewise.
2266 * config/aarch64/aarch64-simd.md
2267 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2268 (aarch64_frecpe<mode>): New.
2269 (aarch64_frecps<mode>): Likewise.
2270 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2271 (v8type): Add frecp<esx>.
2272 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2273 (aarch64_frecps<mode>): Likewise.
2274 * config/aarch64/iterators.md (FRECP): New.
2275 (frecp_suffix): Likewise.
2276 * config/aarch64/arm_neon.h
2277 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2278
2279 2013-04-22 Christian Bruel <christian.bruel@st.com>
2280
2281 PR target/56995
2282 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2283 (REG_CLASS_NAMES): Idem.
2284 (REG_CLASS_CONTENTS): Idem.
2285 (REGCLASS_HAS_FP_REG): Idem.
2286 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2287 (sh_conditional_register_usage): Idem.
2288
2289 2013-04-21 Jeff Law <law@redhat.com>
2290
2291 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2292 (ssa_forward_propagate_and_combine): Use it.
2293
2294 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2295
2296 * lra.c: Update the flow chart diagram.
2297
2298 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2299
2300 PR rtl-optimization/56847
2301 * lra-constraints.c (process_alt_operands): Discourage alternative
2302 with non-matche doffsettable memory constraint fro memory with
2303 known offset.
2304
2305 2013-04-19 Richard Biener <rguenther@suse.de>
2306
2307 PR tree-optimization/56982
2308 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2309 function.
2310 * gimplify.c (gimplify_call_expr): Notice special calls.
2311 (gimplify_modify_expr): Likewise.
2312 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2313 abnormal control flow receivers.
2314 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2315 in the same way as cfun->has_nonlocal_labels.
2316 (gimple_purge_dead_abnormal_call_edges): Likewise.
2317 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2318 receivers start a basic-block.
2319
2320 2013-04-19 Richard Biener <rguenther@suse.de>
2321
2322 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2323 member ...
2324 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
2325 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2326 (SLP_TREE_LOAD_PERMUTATION): Add.
2327 (vect_transform_slp_perm_load): Adjust prototype.
2328 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2329 (vect_free_slp_instance): Likewise.
2330 (vect_create_new_slp_node): Likewise.
2331 (vect_supported_slp_permutation_p): Remove.
2332 (vect_slp_rearrange_stmts): Adjust.
2333 (vect_supported_load_permutation_p): Likewise. Inline
2334 vect_supported_slp_permutation_p here.
2335 (vect_analyze_slp_instance): Compute load permutations per
2336 slp node instead of per instance.
2337 (vect_get_slp_defs): Adjust.
2338 (vect_transform_slp_perm_load): Likewise.
2339 (vect_schedule_slp_instance): Remove redundant code.
2340 (vect_schedule_slp): Remove hack for PR56270, add it ...
2341 * tree-vect-stmts.c (vectorizable_load): ... here, do not
2342 CSE loads for SLP. Adjust.
2343
2344 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2345
2346 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2347 spelling in two comments.
2348
2349 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2350
2351 PR target/56797
2352 * config/arm/arm.c (load_multiple_sequence): Require SP
2353 as base register for loads if SP is in the register list.
2354
2355 2013-04-19 Martin Jambor <mjambor@suse.cz>
2356
2357 PR tree-optimization/56718
2358 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2359 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2360 and made public. Adjusted all callers.
2361 (ipa_intraprocedural_devirtualization): New function.
2362 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2363 (ipa_intraprocedural_devirtualization): Likewise.
2364 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2365
2366 2013-04-19 Richard Biener <rguenther@suse.de>
2367
2368 PR tree-optimization/57000
2369 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2370
2371 2013-04-19 Terry Guo <terry.guo@arm.com>
2372
2373 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2374 Replace with ...
2375 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
2376 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2377 (cortex_m4_fmacs): Use new reservations.
2378 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2379
2380 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2381
2382 PR rtl-optimization/56999
2383 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2384 related code.
2385 (lra_coalesce): Remove split_origin_bitmap and related code.
2386 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2387 ranges if necessary.
2388
2389 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
2390
2391 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2392 New array.
2393 (ix86_expand_call): Remove clobbered_registers array and use
2394 x86_64_ms_sysv_extra_clobbered_registers instead.
2395 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2396 Declare here.
2397 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2398 predicate.
2399 * config/i386/i386.md (*call_rex64_ms_sysv): Use
2400 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
2401 (*call_value_rex64_ms_sysv): Ditto.
2402
2403 2013-04-18 Cary Coutant <ccoutant@google.com>
2404
2405 * dwarf2out.c (output_pubnames): Check die_perennial_p of
2406 parent instead of die_mark.
2407
2408 2013-04-18 Diego Novillo <dnovillo@google.com>
2409
2410 * gimple.c (create_gimple_tmp): New.
2411 (get_expr_type): New.
2412 (build_assign): New.
2413 (build_type_cast): New.
2414 * gimple.h (enum ssa_mode): Define.
2415 (gimple_seq_set_location): New.
2416 * asan.c (build_check_stmt): Change some gimple_build_* calls
2417 to use build_assign and build_type_cast.
2418
2419 2013-04-18 Richard Biener <rguenther@suse.de>
2420
2421 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2422 handle negative step. Remove redundant checks.
2423 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2424 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2425 for negative step and grouped loads fail to vectorize.
2426
2427 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2428
2429 * emit-rtl.c (reset_insn_used_flags): New function.
2430 (reset_all_used_flags): Use it.
2431 (verify_insn_sharing): New function.
2432 (verify_rtl_sharing): Fix verification for SEQUENCEs.
2433
2434 2013-04-18 Jakub Jelinek <jakub@redhat.com>
2435
2436 PR tree-optimization/56984
2437 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2438 and (x >> M) >= N don't register any assertion if N << M is the
2439 minimum value.
2440
2441 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2442
2443 * lower-subreg.c (resolve_simple_move): If called self-recursive,
2444 do not delete_insn insns that have not yet been emitted, only
2445 unlink them with remove_insn.
2446 * df-scan.c (df_insn_delete): Revert r197492.
2447
2448 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
2449
2450 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2451 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2452
2453 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2454
2455 * config/arm/arm.md (movsicc_insn): Convert define_insn into
2456 define_insn_and_split.
2457 (and_scc,ior_scc,negscc): Likewise.
2458 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2459
2460 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2461
2462 * config/arm/arm.c (use_return_insn): Return 0 for targets that
2463 can benefit from using a sequence of LDRD instructions in epilogue
2464 instead of a single LDM instruction.
2465
2466 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2467
2468 PR 45688
2469 * doc/extend.texi: Fix typo.
2470
2471 2013-04-17 Richard Biener <rguenther@suse.de>
2472
2473 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2474 (vect_build_slp_tree): ... here.
2475 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2476 match. Remove special-casing of mismatched complex loads.
2477 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2478 re-try the match with swapped commutative operands.
2479 (vect_supported_load_permutation_p): Remove special-casing of
2480 mismatched complex loads.
2481 (vect_analyze_slp_instance): Adjust.
2482
2483 2013-04-17 Richard Biener <rguenther@suse.de>
2484
2485 PR rtl-optimization/56921
2486 * cfgloop.h (struct loop): Add simple_loop_desc member.
2487 (struct niter_desc): Mark with GTY(()).
2488 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2489 * loop-iv.c (get_simple_loop_desc): Likewise.
2490 (free_simple_loop_desc): Likewise.
2491
2492 Revert
2493 2013-04-16 Richard Biener <rguenther@suse.de>
2494
2495 PR rtl-optimization/56921
2496 * loop-init.c (pass_rtl_move_loop_invariants): Add
2497 TODO_do_not_ggc_collect to todo_flags_finish.
2498 (pass_rtl_unswitch): Same.
2499 (pass_rtl_unroll_and_peel_loops): Same.
2500 (pass_rtl_doloop): Same.
2501
2502 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2503
2504 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2505 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2506 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2507 references.
2508 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2509 * tree-streamer.c (record_common_node): Adjust reference in comment.
2510
2511 2013-04-17 Terry Guo <terry.guo@arm.com>
2512
2513 * config/arm/cortex-m4.md: Add a new bypass.
2514
2515 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2516
2517 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2518 New pattern.
2519 (*subs_<optab><mode>_multp2): New pattern.
2520 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2521 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2522
2523 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2524
2525 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2526 (*subs_mul_imm_<mode>): New pattern.
2527
2528 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
2529
2530 PR target/56948
2531 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2532 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
2533 (vsx_movti_32bit): Change j->wa to O->wa.
2534
2535 2013-04-16 Richard Biener <rguenther@suse.de>
2536
2537 PR rtl-optimization/56921
2538 * loop-init.c (pass_rtl_move_loop_invariants): Add
2539 TODO_do_not_ggc_collect to todo_flags_finish.
2540 (pass_rtl_unswitch): Same.
2541 (pass_rtl_unroll_and_peel_loops): Same.
2542 (pass_rtl_doloop): Same.
2543
2544 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
2545
2546 * config/arm/arm.c (emit_multi_reg_push): New declaration
2547 for an existing function.
2548 (arm_emit_strd_push): New function.
2549 (arm_expand_prologue): Used here.
2550 (arm_emit_ldrd_pop): New function.
2551 (arm_expand_epilogue): Used here.
2552 (arm_get_frame_offsets): Update condition.
2553 (arm_emit_multi_reg_pop): Add a special case for load of a single
2554 register with writeback.
2555
2556 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
2557
2558 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2559 description.
2560
2561 2013-04-16 Richard Biener <rguenther@suse.de>
2562
2563 PR tree-optimization/56756
2564 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2565 (first_mem_ref_loc): New.
2566 (execute_sm): Place the load temporarily before a previous
2567 access instead of in the latch edge to ensure its SSA dependencies
2568 are defined at points dominating the load.
2569
2570 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
2571
2572 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2573 correct fix by moving header and footer insn to the footer of
2574 the merged basic block. Clear BB_END of the merged-away block.
2575
2576 PR middle-end/43631
2577 * emit-rtl.c (make_note_raw): New function.
2578 (link_insn_into_chain): New static inline function.
2579 (add_insn): Use it.
2580 (add_insn_before, add_insn_after): Factor insn chain linking code...
2581 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2582 using link_insn_into_chain.
2583 (note_outside_basic_block_p): New helper function for emit_note_after
2584 and emit_note_before.
2585 (emit_note_after): Use nobb variant of add_insn_after if the note
2586 should not be contained in a basic block.
2587 (emit_note_before): Use nobb variant of add_insn_before if the note
2588 should not be contained in a basic block.
2589 (emit_note_copy): Use make_note_raw.
2590 (emit_note): Likewise.
2591 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2592 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2593 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2594 the moved barrier the tail of the basic block it follows.
2595 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2596
2597 2013-04-15 Jakub Jelinek <jakub@redhat.com>
2598
2599 PR tree-optimization/56962
2600 * gimple-ssa-strength-reduction.c (record_increment): Only set
2601 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2602 either rhs1 or rhs2 is equal to c->base_expr.
2603
2604 2013-04-15 Richard Biener <rguenther@suse.de>
2605
2606 PR tree-optimization/56933
2607 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2608 member.
2609 (GROUP_READ_WRITE_DEPENDENCE): Remove.
2610 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2611 * tree-vect-data-refs.c (vect_analyze_group_access): Move
2612 dependence check ...
2613 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2614 ... here.
2615 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2616 GROUP_READ_WRITE_DEPENDENCE.
2617
2618 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2619
2620 * emit-rtl.c (reset_all_used_flags): New function.
2621 (verify_rtl_sharing): Call reset_all_used_flags before and after
2622 performing the checks.
2623
2624 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625
2626 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2627 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2628 * config/arm/constraints.md (De): New constraint.
2629 * config/arm/neon.md (anddi3_neon): Delete.
2630 (neon_vand<mode>): Expand to standard anddi3 pattern.
2631 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2632 Move earlier in the file.
2633 (neon_inv_logic_op2): Likewise.
2634 (arm_anddi_operand_neon): New predicate.
2635
2636 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2637
2638 * configure.ac (gcc_cv_ld_as_needed): Set
2639 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2640 Use -z ignore, -z record on *-*-solaris2*.
2641 (HAVE_LD_AS_NEEDED): Update comment.
2642 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2643 * configure: Regenerate.
2644 * config.in: Regenerate.
2645 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2646 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2647 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2648 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2649 equivalents. Fix markup.
2650 * doc/tm.texi: Regenerate.
2651
2652 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
2653
2654 * config/i386/i386.opt: New option mstack-protector-guard=.
2655 * config/i386/i386-opts.h: Add enum stack_protector_guard.
2656 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2657 TARGET_SSP_TLS_GUARD.
2658 * config/i386/i386.c (ix86_option_override_internal): Set
2659 ix86_stack_protector_guard.
2660 * config/i386/i386.md (stack_protect_set): Enable for
2661 TARGET_SSP_TLS_GUARD only.
2662 (stack_protect_set_<mode>): Ditto.
2663 (stack_protect_test): Ditto.
2664 (stack_protect_test_<mode>): Ditto.
2665 * doc/invoke.texi (i386 Option): Document.
2666
2667 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2668
2669 PR target/56890
2670 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2671 (S_MODES): Set H_MODE bit.
2672 (SF_MODES): Set only S_MODE and SF_MODE bits.
2673 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2674 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2675 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2676 <MODE_FLOAT>: Likewise.
2677
2678 2013-04-15 Joey Ye <joey.ye@arm.com>
2679
2680 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2681
2682 2013-04-15 Joey Ye <joey.ye@arm.com>
2683
2684 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2685 for real far jump.
2686 (thumb_far_jump_used_p): Count instruction size and set
2687 far_jump_used.
2688
2689 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
2690
2691 * reorg.c (fill_simple_delay_slots): Reindent block of code.
2692 * resource.c (mark_target_live_regs): Reformat conditional block.
2693
2694 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2695
2696 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2697 notes, they are emitted only just before final.
2698 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2699
2700 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2701
2702 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2703 * cfgrtl.c (delete_insn): Call it here instead.
2704 * lra-spills.c (lra_final_code_change): Use delete_insn.
2705 * haifa-sched.c (sched_remove_insn): Likewise.
2706 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2707 returning to the nop pool.
2708 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2709 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
2710
2711 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2712
2713 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2714 * doc/tm.texi: Regenerated.
2715
2716 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
2717
2718 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2719 QImode checks.
2720
2721 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2722
2723 * df-core.c (df_find_def): Compare register numbers.
2724 (df_find_use): Likewise.
2725
2726 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2727
2728 PR target/56903
2729 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2730 lra_in_progress for return.
2731
2732 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2733
2734 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2735 define_insn into define_insn_and_split and emit movsicc patterns.
2736
2737 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2738
2739 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2740
2741 2013-04-12 Richard Biener <rguenther@suse.de>
2742
2743 * tree-pass.h (TODO_do_not_ggc_collect): New.
2744 * passes.c (execute_one_ipa_transform_pass): Honor
2745 TODO_do_not_ggc_collect.
2746 (execute_one_pass): Likewise.
2747
2748 Revert
2749 2013-04-10 Richard Biener <rguenther@suse.de>
2750
2751 * passes.c (init_optimization_passes): Remove reload pass.
2752 * ira.c (do_reload): Merge into ...
2753 (ira): ... this.
2754 (rest_of_handle_reload): Remove.
2755 (pass_reload): Likewise.
2756 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2757 of reload for vzeroupper pass placement.
2758
2759 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2760
2761 PR tree-optimization/56918
2762 PR tree-optimization/56920
2763 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2764 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2765 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
2766 use wide_mul_with_sign method.
2767
2768 2013-04-12 Richard Biener <rguenther@suse.de>
2769
2770 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2771 not be considered a gimple constant.
2772
2773 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2774
2775 * fold-const.c (const_binop): Handle vector shifts by a scalar.
2776 (fold_binary_loc): Call const_binop also for mixed vector-scalar
2777 operations.
2778
2779 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
2780 Jakub Jelinek <jakub@redhat.com>
2781
2782 * opts.c: Include diagnostic-color.h.
2783 (common_handle_option): Handle OPT_fdiagnostics_color_.
2784 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2785 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2786 (diagnostic-color.o): New.
2787 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2788 (diagnostic_color_rule): New enum.
2789 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2790 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2791 the location string.
2792 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2793 either NULL, or color kind.
2794 * diagnostic-color.c: New file.
2795 * diagnostic-color.h: New file.
2796 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2797 arguments.
2798 * doc/invoke.texi (-fdiagnostics-color): Document.
2799 * pretty-print.h (pp_show_color): Define.
2800 (struct pretty_print_info): Add show_color field.
2801 * diagnostic.c: Include diagnostic-color.h.
2802 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2803 macros. Colorize error:, warning: etc. strings and also the location
2804 string.
2805 (diagnostic_show_locus): Colorize the caret line.
2806 * pretty-print.c: Include diagnostic-color.h.
2807 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2808 inside of %< %> quotes or quoted through q format modifier.
2809
2810 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2811
2812 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2813
2814 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2815
2816 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2817 code in CC_NZ mode.
2818 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2819 pattern.
2820
2821 2013-04-11 Marek Polacek <polacek@redhat.com>
2822
2823 PR tree-optimization/48184
2824 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2825
2826 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2827
2828 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2829 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2830 (skip_simple_arithmetic): Tidy up.
2831 * tree.h (skip_simple_constant_arithmetic): Declare.
2832
2833 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2834
2835 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2836
2837 2013-04-11 Richard Biener <rguenther@suse.de>
2838
2839 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2840 generate vector constants.
2841
2842 2013-04-11 Richard Biener <rguenther@suse.de>
2843
2844 PR tree-optimization/56878
2845 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2846 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2847 New function.
2848 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2849 Prefer to align the DR with the most invariant base address.
2850
2851 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2852
2853 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2854 comment.
2855
2856 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2857
2858 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2859 floating-point vector comparisons against 0.
2860
2861 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2862
2863 PR tree-optimization/56899
2864 * fold-const.c (extract_muldiv_1): Apply distributive law
2865 only if TYPE_OVERFLOW_WRAPS (ctype).
2866
2867 2013-04-11 Bin Cheng <bin.cheng@arm.com>
2868
2869 PR target/56124
2870 * ira-costs.c (scan_one_insn): Check whether the source rtx of
2871 loading has side effect.
2872
2873 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
2874
2875 * config/sparc/sparc.c: Include tree-pass.h.
2876 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2877 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
2878 head of file. Change return type. Split off gate function.
2879 (sparc_gate_work_around_errata): New function.
2880 (pass_work_around_errata): New pass definition.
2881 (insert_pass_work_around_errata) New pass insert definition to
2882 insert pass_work_around_errata just after delayed-branch scheduling.
2883 (sparc_option_override): Insert the pass.
2884 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2885
2886 2013-04-10 David S. Miller <davem@davemloft.net>
2887
2888 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2889 or -mcpu=hypersparc.
2890
2891 * target.def (cstore_mode): New hook.
2892 * target.h: Include insn-codes.h
2893 * targhooks.c: Likewise.
2894 (default_cstore_mode): New function.
2895 * targhooks.h: Declare it.
2896 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2897 * doc/tm.texi: Rebuild.
2898 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2899 target hook, rather than inspecting the insn_data.
2900 * config/sparc/sparc.c (sparc_cstore_mode): New function.
2901 (TARGET_CSTORE_MODE): Redefine.
2902 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2903 result patterns.
2904 * config/sparc/predicates.md (cstore_result_operand): New special
2905 predicate.
2906 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2907 Use it for operand 0.
2908 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2909 (*snesi_special): Likewise.
2910 (*snesi_zero): Likewise.
2911 (*seqsi_zero): Likewise.
2912 (*sltu_insn): Likewise.
2913 (*sgeu_insn): Likewise.
2914 (*seqdi_special): Make operand 0 and comparison operation be of
2915 DImode.
2916 (*snedi_special): Likewise.
2917 (*snedi_special_vis3): Likewise.
2918 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2919 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2920 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2921 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2922 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2923 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2924 (*sltu_extend_sp64): Likewise.
2925 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2926 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2927 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2928 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2929 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2930
2931 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2932
2933 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2934 (aarch64_start_file): Use the new function.
2935
2936 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2937 Jason Merrill <jason@redhat.com>
2938
2939 * common.opt: Add -gdwarf.
2940 * opts.c (common_handle_option): Handle it.
2941 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2942
2943 2013-04-10 Richard Biener <rguenther@suse.de>
2944
2945 * passes.c (execute_todo): Do not call ggc_collect conditional here.
2946 (execute_one_ipa_transform_pass): But unconditionally here.
2947 (execute_one_pass): And here.
2948 (init_optimization_passes): Remove reload pass.
2949 * tree-pass.h (TODO_ggc_collect): Remove.
2950 (pass_reload): Likewise.
2951 * ira.c (do_reload): Merge into ...
2952 (ira): ... this.
2953 (rest_of_handle_reload): Remove.
2954 (pass_reload): Likewise.
2955 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2956 of reload for vzeroupper pass placement.
2957 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2958 and todo_flags_finish of all passes.
2959
2960 2013-04-10 Richard Biener <rguenther@suse.de>
2961
2962 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2963 first_const_oprnd field, rename first_def_type to first_op_type.
2964 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2965 (vect_get_and_check_slp_defs): Always use the type of the
2966 operand. Allow mixed vect_external_def, vect_constant_def types.
2967 (vect_get_constant_vectors): Handle mixed vect_external_def,
2968 vect_constant_def types.
2969
2970 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
2971
2972 PR tree-optimization/55524
2973 * tree-ssa-math-opts.c
2974 (convert_mult_to_fma): Don't use an fms construct
2975 when we don't have an fms operation, but fnma, and it looks
2976 likely that we'll be able to use the latter.
2977
2978 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2979
2980 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2981 function.
2982 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2983 inline fail caused by overwritable functions.
2984
2985 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
2986
2987 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2988 unnecessary bits in the constant power of two case.
2989
2990 2013-04-10 Richard Biener <rguenther@suse.de>
2991
2992 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2993 broken code swapping operands.
2994 (vect_build_slp_tree): Do not compute load permutations here.
2995 (vect_analyze_slp_instance): Compute load permutations here,
2996 after building the SLP tree.
2997
2998 2013-04-09 Christian Bruel <christian.bruel@st.com>
2999
3000 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3001 of next/prev_real_insn.
3002
3003 2013-04-09 Jan Hubicka <jh@suse.cz>
3004
3005 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3006 Drop aliased parameter.
3007 (function_and_variable_visibility): Do not handle alias pairs.
3008 * cgraph.c (varpool_externally_visible_p): Update prototype.
3009 * varpool.c (varpool_add_new_variable): Update.
3010
3011 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3012
3013 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3014
3015 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
3016
3017 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3018
3019 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3020
3021 2013-04-09 Marek Polacek <polacek@redhat.com>
3022
3023 PR tree-optimization/48762
3024 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
3025
3026 2013-04-09 Richard Biener <rguenther@suse.de>
3027
3028 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3029 dealing with cost.
3030 (vect_build_slp_tree): Likewise.
3031 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3032 calculating the cost of a SLP instance.
3033 (vect_analyze_slp_instance): Use it from here, after building
3034 the SLP tree.
3035
3036 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3037
3038 PR middle-end/56883
3039 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3040 expand_omp_for_static_chunk): Use simple_p = true in
3041 force_gimple_operand_gsi calls when assigning to addressable decls.
3042
3043 2013-04-09 Jeff Law <law@redhat.com>
3044
3045 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3046 when the boolean was created by converting a wider object which
3047 had a boolean range.
3048
3049 2013-04-09 Richard Biener <rguenther@suse.de>
3050
3051 * tree-vectorizer.h (slp_void_p): Remove.
3052 (slp_tree): Typedef before _slp_tree declaration.
3053 (struct _slp_tree): Use a vector of slp_tree as children.
3054 (vect_get_place_in_interleaving_chain): Remove.
3055 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3056 Move ...
3057 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3058 and make static.
3059 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3060 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3061 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3062 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3063 Use slp_node instead of slp_void_p and adjust.
3064
3065 2013-04-09 Richard Biener <rguenther@suse.de>
3066
3067 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3068 work that is not necessary.
3069
3070 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3071
3072 PR tree-optimization/56854
3073 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3074 forward into clobber stmts if it would change MEM_REF lhs into
3075 non-MEM_REF.
3076
3077 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
3078
3079 * tree.c (type_hash_lookup, type_hash_add): Make static.
3080 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3081
3082 2013-04-09 Richard Biener <rguenther@suse.de>
3083
3084 * tree.h (unsave_expr_now): Remove.
3085 * tree-inline.c (mark_local_for_remap_r): Remove.
3086 (unsave_expr_1): Likewise.
3087 (unsave_r): Likewise.
3088 (unsave_expr_now): Likewise.
3089 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3090 (propagate_tree_value): Likewise.
3091
3092 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
3093
3094 * doc/rtl.texi (sequence): Rewrite documentation to match the
3095 current use of SEQUENCE rtl objects.
3096 * rtl.def (SEQUENCE): Likewise.
3097
3098 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3099 Update documentation.
3100 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3101 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3102
3103 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3104
3105 2013-04-08 Teresa Johnson <tejohnson@google.com>
3106
3107 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3108 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
3109 methods.
3110 (estimate_edge_size_and_time): Add comment to suggest using rounding
3111 methods.
3112 (estimate_node_size_and_time): Ditto.
3113 (remap_edge_change_prob): Use helper rounding divide methods.
3114 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3115 (gimple_mod_pow2_value_transform): Ditto.
3116 (gimple_mod_subtract_transform): Ditto.
3117 (gimple_ic_transform): Ditto.
3118 (gimple_stringops_transform): Ditto.
3119 * stmt.c (conditional_probability): Ditto.
3120 (emit_case_dispatch_table): Ditto.
3121 * lto-cgraph.c (merge_profile_summaries): Ditto.
3122 * tree-optimize.c (execute_fixup_cfg): Ditto.
3123 * cfgcleanup.c (try_forward_edges): Ditto.
3124 * cfgloopmanip.c (scale_loop_profile): Ditto.
3125 (loopify): Ditto.
3126 (duplicate_loop_to_header_edge): Ditto.
3127 (lv_adjust_loop_entry_edge): Ditto.
3128 * tree-vect-loop.c (vect_transform_loop): Ditto.
3129 * profile.c (compute_branch_probabilities): Ditto.
3130 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3131 * lto-streamer-in.c (input_cfg): Ditto.
3132 * gimple-streamer-in.c (input_bb): Ditto.
3133 * ipa-cp.c (update_profiling_info): Ditto.
3134 (update_specialized_profile): Ditto.
3135 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3136 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
3137 rounding methods.
3138 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3139 (compute_trg_info): Ditto.
3140 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3141 (purge_dead_edges): Ditto.
3142 * loop-unswitch.c (unswitch_loop): Ditto.
3143 * cgraphclones.c (cgraph_clone_edge): Ditto.
3144 (cgraph_clone_node): Ditto.
3145 * tree-inline.c (copy_bb): Ditto.
3146 (copy_edges_for_bb): Ditto.
3147 (initialize_cfun): Ditto.
3148 (copy_cfg_body): Ditto.
3149 (expand_call_inline): Ditto.
3150
3151 2013-04-08 Kai Tietz <ktietz@redhat.com>
3152
3153 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3154 TARGET_CYGWIN64 by TARGET_64BIT.
3155
3156 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3157
3158 * config/epiphany/epiphany.md (GPR_1): New constant.
3159 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3160 * config/epiphany/epiphany.c (gen_compare_reg):
3161 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3162 is already in place.
3163 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3164 Don't require being called during rtl expansion; If y operlaps r0,
3165 return 0.
3166 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3167 (epiphany_expand_epilogue): Likewise.
3168
3169 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3170 Don't use CC_FPmode for ORDERED / UNORDERED.
3171 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3172
3173 * config/epiphany/constraints.md (CnL): New constraint.
3174 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3175 * config/epiphany/predicates.md (add_operand): Allow 1024.
3176
3177 * config/epiphany/epiphany.md (logical_op): New code iterator.
3178 (op_mnc): New code attribute.
3179 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3180 (mov_f+1, mov_f+2): New peephole2 patterns.
3181
3182 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3183 (cstoresi4): Also allow re-use of zero result when doing a NE
3184 comparison to a non-zero operand.
3185 Use (clobber (scratch)) for first insn if the gpr output is not needed.
3186
3187 * config/epiphany/epiphany.md (<insn_opname>v2si3):
3188 Use gen_addsi3_i / gen_subsi3_i.
3189
3190 2013-04-08 Jakub Jelinek <jakub@redhat.com>
3191
3192 PR c++/34949
3193 PR c++/50243
3194 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3195 contain anything but clobbers, at most one __builtin_stack_restore,
3196 optionally debug stmts and final resx, and if it has at least one
3197 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
3198 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3199 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3200 which isn't defaut definition, remove them.
3201 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3202 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3203 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3204 with MEM_REF LHS with SSA_NAME address.
3205
3206 2013-04-08 Jeff Law <law@redhat.com>
3207
3208 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
3209
3210 2013-04-08 Richard Biener <rguenther@suse.de>
3211
3212 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3213 extra newline.
3214 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3215 determined vector type.
3216 (vect_analyze_data_refs): Likewise.
3217 (vect_get_new_vect_var): Adjust.
3218 (vect_create_destination_var): Preserve SSA name versions.
3219 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3220 not dump anything here.
3221
3222 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3223
3224 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3225 Add member lr_slot_known.
3226 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3227 if necessary.
3228 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3229 Remove code that sets lr_slot_offset according to what a previous
3230 version of epiphany_emit_save_restore used to do.
3231 (epiphany_emit_save_restore): When doing an lr save or restore,
3232 set/verify lr_slot_known and lr_slot_offset.
3233
3234 2013-04-08 Xinyu Qi <xyqi@marvell.com>
3235
3236 PR target/54338
3237 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
3238 in ALL_REGS.
3239
3240 2013-04-08 Richard Biener <rguenther@suse.de>
3241
3242 * alias.c (find_base_term): Fix thinko in previous change.
3243
3244 2013-04-08 Jakub Jelinek <jakub@redhat.com>
3245
3246 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3247 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3248 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
3249 if possible to compute val.
3250 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3251 For QImode integers don't require anything about precision. Use
3252 const_with_all_bytes_same to find out if the constant doesn't have
3253 repeated bytes in it.
3254
3255 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3256
3257 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3258 within mode size.
3259
3260 2013-04-08 Marek Polacek <polacek@redhat.com>
3261
3262 PR rtl-optimization/48182
3263 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3264 value to 1.
3265
3266 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3267
3268 PR target/55487
3269 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3270 nuses, make sure we have a label.
3271
3272 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3273
3274 PR target/56843
3275 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3276 (rs6000_emit_swdiv_low_precision): Remove.
3277 (rs6000_emit_swdiv): Rewrite to handle between one and four
3278 iterations of Newton-Raphson generally; modify required number of
3279 iterations for some cases.
3280 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3281
3282 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
3283
3284 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3285 set-but-unused variable.
3286
3287 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3288 basic blocks of released function bodies garbage-collectable.
3289
3290 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3291 (struct rtl_opt_pass): Add TODO_df_finish.
3292
3293 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3294
3295 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3296
3297 * config/arm/constraints.md (q): New constraint.
3298 * config/arm/ldrdstrd.md: New file.
3299 * config/arm/arm.md (ldrdstrd.md) New include.
3300 (arm_movdi): Use "q" instead of "r" constraint
3301 for double-word memory access.
3302 (movdf_soft_insn): Likewise.
3303 * config/arm/vfp.md (movdi_vfp): Likewise.
3304 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
3305 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
3306 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3307 (mem_ok_for_ldrd_strd): Likewise.
3308 (output_move_double): Update assertion.
3309
3310 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3311
3312 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3313
3314 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3315
3316 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3317 define_insn_and_split.
3318 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3319
3320 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3321
3322 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3323 define_insn_and_split.
3324 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3325 (shiftsi3_compare): New pattern.
3326 (rrx): New pattern.
3327 * config/arm/unspecs.md (UNSPEC_RRX): New.
3328
3329 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3330
3331 * config/arm/arm.md (negdi_extendsidi): New pattern.
3332 (negdi_zero_extendsidi): Likewise.
3333
3334 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3335
3336 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3337 define_insn_and_split.
3338 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3339 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3340
3341 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3342
3343 * config/arm/arm.md (arm_subdi3): Convert define_insn into
3344 define_insn_and_split.
3345 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3346 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3347
3348 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3349
3350 * config/arm/arm.md (subsi3_carryin): New pattern.
3351 (subsi3_carryin_const): Likewise.
3352 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3353 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3354
3355 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3356
3357 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3358
3359 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3360
3361 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
3362 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
3363
3364 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3365
3366 * config/arm/arm.c (arm_expand_builtin): Change fcode
3367 type to unsigned int.
3368
3369 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3370
3371 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3372
3373 2013-04-04 Ian Lance Taylor <iant@google.com>
3374
3375 * doc/standards.texi (Standards): The Go frontend supports the Go 1
3376 language standard.
3377
3378 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
3379
3380 PR middle-end/56729
3381 * df-scan.c (df_insn_delete): Disable failing assert.
3382
3383 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3384
3385 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3386 New function prototype.
3387 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3388 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3389 (arm_builtin_vectorized_function): New function.
3390
3391 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3392
3393 * config/arm/arm_neon_builtins.def: New file.
3394 * config/arm/arm.c (neon_builtin_data): Move contents to
3395 arm_neon_builtins.def.
3396 (enum arm_builtins): Include neon builtin definitions.
3397 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
3398 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
3399
3400 2013-04-04 Marek Polacek <polacek@redhat.com>
3401
3402 PR tree-optimization/48186
3403 * predict.c (maybe_hot_frequency_p): Return false if
3404 HOT_BB_FREQUENCY_FRACTION is 0.
3405 (cgraph_maybe_hot_edge_p): Likewise.
3406
3407 2013-04-04 Richard Biener <rguenther@suse.de>
3408
3409 PR tree-optimization/56826
3410 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3411 more accurately.
3412
3413 2013-04-04 Richard Biener <rguenther@suse.de>
3414
3415 PR tree-optimization/56213
3416 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
3417 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
3418
3419 2013-04-04 Richard Biener <rguenther@suse.de>
3420
3421 PR tree-optimization/56837
3422 * tree-loop-distribution.c (classify_partition): For non-zero
3423 values require that the value has the same precision as its
3424 mode to be useful as memset value.
3425
3426 2013-04-03 Nick Clifton <nickc@redhat.com>
3427
3428 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
3429 (fmssf4): Use fmsf.s on E3V5 architectures.
3430 (fnmasf4): Use fnmaf.s on E3V5 architectures.
3431 (fnmssf4): Use fnmsf.s on E3V5 architectures.
3432
3433 2013-04-03 Jeff Law <law@redhat.com>
3434
3435 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3436 (lra-eliminations.o): Likewise.
3437
3438 2013-04-03 Teresa Johnson <tejohnson@google.com>
3439
3440 * gcov-io.c (compute_working_sets): Moved most of body of old
3441 compute_working_sets here from profile.c.
3442 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3443 (gcov_working_set_t): Moved typedef here from basic-block.h
3444 (compute_working_set): Declare.
3445 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3446 (get_working_sets): Renamed from compute_working_set,
3447 replace most of body with call to new compute_working_sets.
3448 (get_exec_counts): Replace call to compute_working_sets
3449 to get_working_sets.
3450 * profile.h (get_working_sets): Renamed from compute_working_set.
3451 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3452 to get_working_sets.
3453 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3454 * gcov-dump.c (dump_working_sets): New function.
3455
3456 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3457
3458 * hwint.c (sext_hwi, zext_hwi): New functions.
3459 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3460 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3461 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3462 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3463 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3464 (sext_hwi, zext_hwi): New functions.
3465
3466 2013-04-03 Jeff Law <law@redhat.com>
3467
3468 PR tree-optimization/56799
3469 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3470 back test for widening conversion erroneously dropped in prior change.
3471
3472 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3473
3474 PR target/56809
3475 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3476 instead of next_real_insn.
3477
3478 2013-04-03 Marek Polacek <polacek@redhat.com>
3479
3480 PR sanitizer/55702
3481 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3482
3483 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3484
3485 PR target/56809
3486 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3487 next_real_insn.
3488 (thumb1_output_casesi): Likewise.
3489 (thumb2_output_casesi): Likewise.
3490
3491 2013-04-03 Richard Biener <rguenther@suse.de>
3492
3493 PR tree-optimization/56817
3494 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3495 Split out ...
3496 (tree_unroll_loops_completely_1): ... new function to manually
3497 walk the loop tree, properly defering outer loops of unrolled
3498 loops to later iterations.
3499
3500 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3501
3502 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3503 (vectorizable_load): Likewise.
3504 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3505 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3506
3507 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3508
3509 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3510 BIT_FIELD_REF.
3511
3512 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3513
3514 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3515
3516 2013-04-03 Bin Cheng <bin.cheng@arm.com>
3517
3518 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3519
3520 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3521
3522 PR tree-optimization/56790
3523 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3524 folding.
3525
3526 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3527
3528 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3529 Handle VEC_MERGE.
3530 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3531 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3532 equal arguments.
3533
3534 2013-04-03 Jakub Jelinek <jakub@redhat.com>
3535
3536 PR c/19449
3537 * tree.h (force_folding_builtin_constant_p): New decl.
3538 * builtins.c (force_folding_builtin_constant_p): New variable.
3539 (fold_builtin_constant_p): Fold immediately also if
3540 force_folding_builtin_constant_p.
3541
3542 2013-04-03 Richard Biener <rguenther@suse.de>
3543
3544 PR tree-optimization/56812
3545 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3546 DRs of the same interleaving chain are independent.
3547
3548 2013-04-02 Jason Merrill <jason@redhat.com>
3549
3550 * gdbinit.in (pbb): Use debug fn.
3551
3552 2013-04-02 Lawrence Crowl <crowl@google.com>
3553
3554 * sese.h (struct ivtype_map_elt_s): Remove unused.
3555 (extern debug_ivtype_map): Remove unused.
3556 (extern eq_ivtype_map_elts): Remove unused.
3557 * sese.c (debug_ivtype_map): Removed unused.
3558 (debug_ivtype_map_1): Removed unused.
3559 (debug_ivtype_elt): Remove unused.
3560 (eq_ivtype_map_elts): Remove unused.
3561
3562
3563 2013-04-02 Kai Tietz <ktietz@redhat.com>
3564
3565 PR target/52790
3566 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3567 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3568 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3569 function.
3570 (legitimize_pe_coff_symbol): Likewise.
3571 (is_imported_p): New helper-function.
3572 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3573 for Windows x64 targets.
3574 (ix86_expand_prologue): Optimize for pe-coff targets.
3575 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3576 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3577 medium/large code-model.
3578 (legitimize_pic_address): Likewise.
3579 (legitimize_tls_address): Likewise.
3580 (ix86_expand_call): Likewise.
3581 (x86_output_mi_thunk): Likewise.
3582 (get_dllimport_decl): Add new beimport argument.
3583 (construct_plt_address): Don't assert for x64 pe-coff targets.
3584 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3585 targets.
3586 (SYMBOL_FLAG_STUBVAR): New macro.
3587 (SYMBOL_REF_STUBVAR_P): Likewise.
3588 * config/i386/winnt.c (stub_list): New structure.
3589 (stub_head): New local variable.
3590 (i386_pe_record_stub): New function.
3591 (i386_pe_file_end): Emit refptr-stubs.
3592
3593 2013-04-02 Jakub Jelinek <jakub@redhat.com>
3594
3595 PR rtl-optimization/56745
3596 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3597 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3598
3599 PR c++/34949
3600 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3601 and both of them are MEM_REFs, just compare first argument for
3602 equality and attempt to deal even with differing offsets.
3603
3604 PR c++/34949
3605 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3606 of gimple_clobber_p to be MEM_REF.
3607 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3608 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
3609 after gimplification.
3610 * asan.c (get_mem_ref_of_assignment): Don't instrument
3611 gimple_clobber_p stmts.
3612 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3613 gimple_clobber_p stmt if they have MEM_REF lhs and
3614 are dead because of another gimple_clobber_p stmt.
3615 * tree-ssa-live.c (clear_unused_block_pointer): Treat
3616 gimple_clobber_p stmts like debug stmts.
3617 (remove_unused_locals): Remove clobbers with MEM_REF lhs
3618 that refer to unused VAR_DECLs or uninitialized values.
3619 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3620 gimple_clobber_p stmts if they refer to removed parameters.
3621 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3622 formatting.
3623
3624 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
3625
3626 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3627 using SWI48 mode attribute.
3628
3629 2013-04-02 Wei Mi <wmi@google.com>
3630
3631 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3632 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3633 *<rotate_insn><mode>3_mask in i386.md.
3634
3635 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
3636
3637 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3638
3639 2013-04-02 Richard Biener <rguenther@suse.de>
3640
3641 PR tree-optimization/56778
3642 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3643 Runtime alias tests are not supported for gather loads.
3644 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3645 stmts referenced from SSA operands before updating SSA form.
3646
3647 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
3648 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3649
3650 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
3651 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3652 * config/arm/cortex-a53.md: New file.
3653 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3654 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3655 * config/arm/arm.c (arm_issue_rate): Likewise.
3656 * config/arm/arm-tune.md: Regenerate
3657 * config/arm/arm-tables.opt: Regenerate.
3658 * config/arm/arm-cores.def: Add cortex-a53.
3659
3660 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
3661
3662 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3663 non-static link.
3664
3665 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3666
3667 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3668 scalar load/store operations using B/H registers.
3669 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3670
3671 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3672
3673 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3674 scalar move.
3675 * config/aarch64/aarch64.c
3676 (aarch64_simd_scalar_immediate_valid_for_move): New.
3677 * config/aarch64/aarch64-protos.h
3678 (aarch64_simd_scalar_immediate_valid_for_move): New.
3679 * config/aarch64/constraints.md (Dh, Dq): New.
3680 * config/aarch64/iterators.md (hq): New.
3681
3682 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
3683
3684 * reorg.c (get_branch_condition): Deal with conditional returns.
3685 (fill_simple_delay_slots): Remove dead code dealing with jumps.
3686
3687 2013-04-01 Wei Mi <wmi@google.com>
3688
3689 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3690 Truncate operand 2 using %b asm operand modifier.
3691 (*<shift_insn><mode>3_mask): Ditto.
3692 (*<rotate_insn><mode>3_mask): Ditto.
3693
3694 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
3695
3696 PR middle-end/56798
3697 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3698
3699 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3700
3701 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3702 of next_real_insn.
3703 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3704
3705 2013-03-30 Lawrence Crowl <crowl@google.com>
3706
3707 * dse.c (clear_alias_sets): Remove never set.
3708 (disqualified_clear_alias_sets): Remove never set.
3709 (clear_alias_mode_pool): Remove never set.
3710 (dse_step0): Remove condition that is never true.
3711 (canon_address): Remove condition that is never true.
3712 (dse_step7): Remove condition that is never true.
3713 (rest_of_handle_dse): Remove condition that is never true.
3714 (rest_of_handle_dse::did_global): Remove never read from above.
3715 (dse_step2_spill): Remove never called from above.
3716 (dse_step5_spill): Remove never called from above.
3717
3718 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3719
3720 * doc/md.texi (Standard Names) <casesi>: Update documentation for
3721 JUMP_TABLE_DATA changes.
3722 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3723 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3724 (Insns) <jump_table_data>: New entry.
3725 * doc/tm.texi: Regenerate.
3726
3727 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3728
3729 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3730 for table jump at the end of a basic block using tablejump_p.
3731 * targhooks.c (default_invalid_within_doloop): Likewise.
3732 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3733 target hook implementation that is identical to the default hook.
3734 (rs6000_invalid_within_doloop): Remove.
3735
3736 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3737 unused variable from tablejump_p call.
3738
3739 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3740 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3741 (INSN_DELETED_P): Likewise.
3742 (emit_jump_table_data): New prototype.
3743 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3744 after 4th as unused.
3745 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3746 * sched-vis.c (print_insn): Likewise.
3747 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3748 insn for compatibility with back ends that use next_active_insn to
3749 identify jump table data.
3750 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3751 (remove_insn): Likewise.
3752 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3753 to be emitted.
3754 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3755 (emit_jump_table_data): New function.
3756
3757 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3758 basic block, a JUMP_TABLE_DATA never is.
3759 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3760 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3761 off from code handling real insns.
3762 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3763 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3764 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3765 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3766 is not a NONDEBUG_INSN_P.
3767 * ira-costs.c (scan_one_insn): Likewise.
3768 * jump.c (mark_all_labels): Likewise.
3769 (mark_jump_label_1): Likewise.
3770 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3771 * lra.c (get_insn_freq): Expect all insns reaching here to be in
3772 a basic block.
3773 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3774 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3775 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3776 JUMP_TABLE_DATA_P insns.
3777 (calculate_elim_costs_all_insns): Likewise.
3778 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3779 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3780 (delete_output_reload): Code style fixups.
3781 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3782 insn flags on this non-insn.
3783 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3784 as scheduling barriers, for pre-change compatibility.
3785 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3786 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3787
3788 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3789 redundant JUMP_TABLE_DATA_P test.
3790 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3791 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3792 (frv_for_each_packet): Likewise.
3793 * config/i386/i386.c (min_insn_size): Likewise.
3794 (ix86_avoid_jump_mispredicts): Likewise.
3795 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3796 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3797 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3798 (mips16_insn_length): Robustify.
3799 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3800 (mips16_split_long_branches): Likewise.
3801 * config/pa/pa.c (pa_combine_instructions): Likewise.
3802 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3803 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3804 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3805 as contributing to pool range lengths.
3806 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3807 Remove redundant JUMP_TABLE_DATA_P test.
3808 (sh_loop_align): Likewise.
3809 (split_branches): Likewise.
3810 (sh_insn_length_adjustment): Likewise.
3811 * config/spu/spu.c (get_branch_target): Likewise.
3812
3813 2013-03-29 Jan Hubicka <jh@suse.cz>
3814
3815 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3816 gcov streaming; stream hot bb threshold to ltrans.
3817 * predict.c (get_hot_bb_threshold): Break out from ....
3818 (maybe_hot_count_p): ... here.
3819 (set_hot_bb_threshold): New function.
3820 * lto-section-in.c (lto_section_name): Add profile.
3821 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3822 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3823 and data-streamer.h
3824 (histogram_entry): New structure.
3825 (histogram, histogram_pool): New global vars.
3826 (histogram_hash): New structure.
3827 (histogram_hash::hash): New method.
3828 (histogram_hash::equal): Likewise.
3829 (account_time_size): New function.
3830 (cmp_counts): New function.
3831 (dump_histogram): New function.
3832 (ipa_profile_generate_summary): New function.
3833 (ipa_profile_write_summary): New function.
3834 (ipa_profile_read_summary): New function.
3835 (ipa_profile): Decide on threshold.
3836 (pass_ipa_profile): Add ipa_profile_write_summary and
3837 ipa_profile_read_summary.
3838 * Makefile.in (ipa.o): Update dependencies.
3839 * lto-streamer.h (LTO_section_ipa_profile): New section.
3840
3841 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3842
3843 * tree.h (VAR_P): New.
3844
3845 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3846
3847 PR lto/56777
3848 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3849
3850 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
3851
3852 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3853 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3854 (control_flow_insn_p): Likewise.
3855 * cfgrtl.c (duplicate_insn_chain): Likewise.
3856 * final.c (get_attr_length_1): Likewise.
3857 (shorten_branches): Likewise.
3858 (final_scan_insn): Likewise.
3859 * function.c (instantiate_virtual_regs): Likewise.
3860 * gcse.c (insert_insn_end_basic_block): Likewise.
3861 * ira-costs.c (scan_one_insn): Likewise.
3862 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3863 * lra.c (check_rtl): Likewise.
3864 * reload1.c (elimination_costs_in_insn): Likewise.
3865 * reorg.c (follow_jumps): Likewise.
3866
3867 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3868 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3869 (thumb_far_jump_used_p): Likewise.
3870 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3871 (workaround_speculation): Likewise.
3872 (add_sched_insns_for_speculation): Likewise.
3873 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3874 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3875 (frv_for_each_packet): Likewise.
3876 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3877 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3878 (final_emit_insn_group_barriers): Likewise.
3879 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3880 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3881 (mips16_insn_length): Likewise.
3882 * config/pa/pa.c (pa_reorg): Likewise.
3883 (pa_combine_instructions): Likewise.
3884 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3885 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3886 (sh_reorg): Likewise.
3887 (split_branches): Likewise.
3888 * config/spu/spu.c (get_branch_target): Likewise.
3889
3890 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3891 JUMP_TABLE_DATA_P.
3892
3893 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3894
3895 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3896 Fix declaration name.
3897
3898 2013-03-28 Lawrence Crowl <crowl@google.com>
3899
3900 * graphds.h (struct graph.indicies): Remove unused.
3901 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3902 (SCOP_ORIGINAL_PDDRS): Remove unused.
3903 * sese.h (extern insert_loop_close_phis): Removed unused.
3904 (extern insert_guard_phis): Removed unused.
3905 (extern ivtype_map_elt_info): Removed unused.
3906 (new_ivtype_map_elt): Removed unused.
3907 * sese.c (ivtype_map_elt_info): Removed unused.
3908
3909 2013-03-28 Lawrence Crowl <crowl@google.com>
3910
3911 * Makefile.in: Add several missing include dependences.
3912 (DUMPFILE_H): New.
3913 (test-dump.o): New. This object is not added to any executable,
3914 but is present for ad-hoc testing.
3915 * bitmap.c
3916 (debug (const bitmap_head_def &)): New.
3917 (debug (const bitmap_head_def *)): New.
3918 * bitmap.h
3919 (extern debug (const bitmap_head_def &)): New.
3920 (extern debug (const bitmap_head_def *)): New.
3921 * cfg.c
3922 (debug (edge_def &)): New.
3923 (debug (edge_def *)): New.
3924 * cfghooks.c
3925 (debug (basic_block_def &)): New.
3926 (debug (basic_block_def *)): New.
3927 * dumpfile.h
3928 (dump_node (const_tree, int, FILE *)): Correct source file.
3929 * dwarf2out.c
3930 (debug (die_struct &)): New.
3931 (debug (die_struct *)): New.
3932 * dwarf2out.h
3933 (extern debug (die_struct &)): New.
3934 (extern debug (die_struct *)): New.
3935 * gimple-pretty-print.c
3936 (debug (gimple_statement_d &)): New.
3937 (debug (gimple_statement_d *)): New.
3938 * gimple-pretty-print.h
3939 (extern debug (gimple_statement_d &)): New.
3940 (extern debug (gimple_statement_d *)): New.
3941 * ira-build.c
3942 (debug (ira_allocno_copy &)): New.
3943 (debug (ira_allocno_copy *)): New.
3944 (debug (ira_allocno &)): New.
3945 (debug (ira_allocno *)): New.
3946 * ira-int.h
3947 (extern debug (ira_allocno_copy &)): New.
3948 (extern debug (ira_allocno_copy *)): New.
3949 (extern debug (ira_allocno &)): New.
3950 (extern debug (ira_allocno *)): New.
3951 * ira-lives.c
3952 (debug (live_range &)): New.
3953 (debug (live_range *)): New.
3954 * lra-int.h
3955 (debug (lra_live_range &)): New.
3956 (debug (lra_live_range *)): New.
3957 * lra-lives.c
3958 (debug (lra_live_range &)): New.
3959 (debug (lra_live_range *)): New.
3960 * omega.c
3961 (debug (omega_pb_d &)): New.
3962 (debug (omega_pb_d *)): New.
3963 * omega.h
3964 (extern debug (omega_pb_d &)): New.
3965 (extern debug (omega_pb_d *)): New.
3966 * print-rtl.c
3967 (debug (const rtx_def &)): New.
3968 (debug (const rtx_def *)): New.
3969 * print-tree.c
3970 (debug_tree (tree): Move within file.
3971 (debug_raw (const tree_node &)): New.
3972 (debug_raw (const tree_node *)): New.
3973 (dump_tree_via_hooks (const tree_node *, int)): New.
3974 (debug (const tree_node &)): New.
3975 (debug (const tree_node *)): New.
3976 (debug_verbose (const tree_node &)): New.
3977 (debug_verbose (const tree_node *)): New.
3978 (debug_head (const tree_node &)): New.
3979 (debug_head (const tree_node *)): New.
3980 (debug_body (const tree_node &)): New.
3981 (debug_body (const tree_node *)): New.
3982 (debug_vec_tree (tree): Move and reimplement in terms of dump.
3983 (debug (vec<tree, va_gc> &)): New.
3984 (debug (vec<tree, va_gc> *)): New.
3985 * rtl.h
3986 (extern debug (const rtx_def &)): New.
3987 (extern debug (const rtx_def *)): New.
3988 * sbitmap.c
3989 (debug_raw (simple_bitmap_def &)): New.
3990 (debug_raw (simple_bitmap_def *)): New.
3991 (debug (simple_bitmap_def &)): New.
3992 (debug (simple_bitmap_def *)): New.
3993 * sbitmap.h
3994 (extern debug (simple_bitmap_def &)): New.
3995 (extern debug (simple_bitmap_def *)): New.
3996 (extern debug_raw (simple_bitmap_def &)): New.
3997 (extern debug_raw (simple_bitmap_def *)): New.
3998 * sel-sched-dump.c
3999 (debug (vinsn_def &)): New.
4000 (debug (vinsn_def *)): New.
4001 (debug_verbose (vinsn_def &)): New.
4002 (debug_verbose (vinsn_def *)): New.
4003 (debug (expr_def &)): New.
4004 (debug (expr_def *)): New.
4005 (debug_verbose (expr_def &)): New.
4006 (debug_verbose (expr_def *)): New.
4007 (debug (vec<rtx> &)): New.
4008 (debug (vec<rtx> *)): New.
4009 * sel-sched-dump.h
4010 (extern debug (vinsn_def &)): New.
4011 (extern debug (vinsn_def *)): New.
4012 (extern debug_verbose (vinsn_def &)): New.
4013 (extern debug_verbose (vinsn_def *)): New.
4014 (extern debug (expr_def &)): New.
4015 (extern debug (expr_def *)): New.
4016 (extern debug_verbose (expr_def &)): New.
4017 (extern debug_verbose (expr_def *)): New.
4018 (extern debug (vec<rtx> &)): New.
4019 (extern debug (vec<rtx> *)): New.
4020 * sel-sched-ir.h
4021 (_list_iter_cond_expr): Make inline instead of static.
4022 * sreal.c
4023 (debug (sreal &)): New.
4024 (debug (sreal *)): New.
4025 * sreal.h
4026 (extern debug (sreal &)): New.
4027 (extern debug (sreal *)): New.
4028 * tree.h
4029 (extern debug_raw (const tree_node &)): New.
4030 (extern debug_raw (const tree_node *)): New.
4031 (extern debug (const tree_node &)): New.
4032 (extern debug (const tree_node *)): New.
4033 (extern debug_verbose (const tree_node &)): New.
4034 (extern debug_verbose (const tree_node *)): New.
4035 (extern debug_head (const tree_node &)): New.
4036 (extern debug_head (const tree_node *)): New.
4037 (extern debug_body (const tree_node &)): New.
4038 (extern debug_body (const tree_node *)): New.
4039 (extern debug (vec<tree, va_gc> &)): New.
4040 (extern debug (vec<tree, va_gc> *)): New.
4041 * tree-cfg.c
4042 (debug (struct loop &)): New.
4043 (debug (struct loop *)): New.
4044 (debug_verbose (struct loop &)): New.
4045 (debug_verbose (struct loop *)): New.
4046 * tree-dump.c: Add header dependence.
4047 * tree-flow.h
4048 (extern debug (struct loop &)): New.
4049 (extern debug (struct loop *)): New.
4050 (extern debug_verbose (struct loop &)): New.
4051 (extern debug_verbose (struct loop *)): New.
4052 * tree-data-ref.c
4053 (debug (data_reference &)): New.
4054 (debug (data_reference *)): New.
4055 (debug (vec<data_reference_p> &)): New.
4056 (debug (vec<data_reference_p> *)): New.
4057 (debug (vec<ddr_p> &)): New.
4058 (debug (vec<ddr_p> *)): New.
4059 * tree-data-ref.h
4060 (extern debug (data_reference &)): New.
4061 (extern debug (data_reference *)): New.
4062 (extern debug (vec<data_reference_p> &)): New.
4063 (extern debug (vec<data_reference_p> *)): New.
4064 (extern debug (vec<ddr_p> &)): New.
4065 (extern debug (vec<ddr_p> *)): New.
4066 * tree-ssa-alias.c
4067 (debug (pt_solution &)): New.
4068 (debug (pt_solution *)): New.
4069 * tree-ssa-alias.h
4070 (extern debug (pt_solution &)): New.
4071 (extern debug (pt_solution *)): New.
4072 * tree-ssa-alias.c
4073 (debug (_var_map &)): New.
4074 (debug (_var_map *)): New.
4075 (debug (tree_live_info_d &)): New.
4076 (debug (tree_live_info_d *)): New.
4077 * tree-ssa-alias.h
4078 (extern debug (_var_map &)): New.
4079 (extern debug (_var_map *)): New.
4080 (extern debug (tree_live_info_d &)): New.
4081 (extern debug (tree_live_info_d *)): New.
4082
4083 2013-03-28 Jan Hubicka <jh@suse.cz>
4084
4085 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4086
4087 2013-03-28 Ian Bolton <ian.bolton@arm.com>
4088
4089 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4090 record only when desired or required.
4091
4092 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
4093
4094 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4095 *vec_extractv2di_1_rex64. Use x64 isa attribute.
4096
4097 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4098
4099 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4100 (*andsi3_compare0_uxtw): New pattern.
4101 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4102 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4103
4104 2013-03-28 Jan Hubicka <jh@suse.cz>
4105
4106 * data-streamer-in.c (streamer_read_gcov_count): New function.
4107 * gimple-streamer-out.c: Include value-prof.h.
4108 (output_gimple_stmt): Output histogram.
4109 (output_bb): Use streamer_write_gcov_count.
4110 * value-prof.c: Include data-streamer.h
4111 (dump_histogram_value): Add HIST_TYPE_MAX.
4112 (stream_out_histogram_value): New function.
4113 (stream_in_histogram_value): New function.
4114 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4115 (stream_out_histogram_value, stream_in_histogram_value): Declare.
4116 * data-streamer-out.c (streamer_write_gcov_count): New function.
4117 (streamer_write_gcov_count_stream): New function.
4118 * lto-cgraph.c (lto_output_edge): Update counter streaming.
4119 (lto_output_node): Likewise.
4120 (input_node, input_edge): Likewise.
4121 * lto-streamer-out.c (output_cfg): Update streaming.
4122 * lto-streamer-in.c (input_cfg): Likewise.
4123 * data-streamer.h (streamer_write_gcov_count,
4124 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4125 * gimple-streamer-in.c: Include value-prof.h
4126 (input_gimple_stmt): Input histograms.
4127 (input_bb): Update profile streaming.
4128
4129 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
4130
4131 * genmodes.c (emit_max_int): New function.
4132 (emit_insn_modes_h): Added call to emit_max_function.
4133 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4134 Added doc.
4135 * machmode.def: Fixed comment.
4136
4137 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
4138
4139 * combine.c (try_combine): Removed useless assert.
4140 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4141
4142 2013-03-28 Marek Polacek <polacek@redhat.com>
4143 Richard Biener <rguenther@suse.de>
4144
4145 PR tree-optimization/56695
4146 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4147 build signed result of a vector comparison.
4148 * tree-cfg.c (verify_gimple_comparison): Check that a result
4149 of a vector comparison has signed type.
4150
4151 2013-03-28 Richard Biener <rguenther@suse.de>
4152
4153 PR tree-optimization/37021
4154 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4155 do not restrict gaps between groups.
4156 * tree-vect-stmts.c (vectorizable_load): Properly account for
4157 a gap between groups.
4158
4159 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
4160
4161 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4162 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4163 is not enabled.
4164
4165 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
4166
4167 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4168 * doc/extend.texi (Named Address Spaces): Ditto.
4169 (Variable Attributes): Ditto.
4170
4171 2013-03-27 Kai Tietz <ktietz@redhat.com>
4172
4173 * config.build: Add support for cygwin x64 target.
4174 * config.gcc: Likewise.
4175 * config.host: Likewise.
4176 * configure.ac: Likewise
4177 * configure: Regenerated.
4178
4179 2013-03-27 Kai Tietz <ktietz@redhat.com>
4180
4181 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4182 * config/i386/t-cygwin-w64: New file.
4183 * config/i386/cygwin-w64.h: New file.
4184 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4185 and add support for x64-cygwin target.
4186 (CPP_SPEC): Likewise.
4187 (CXX_WRAP_SPEC_LIST): Undefine before define.
4188 (LIBGCJ_SONAME): Use 15 as version.
4189
4190 2013-03-27 Richard Biener <rguenther@suse.de>
4191
4192 PR tree-optimization/56716
4193 * tree-ssa-structalias.c (perform_var_substitution): Adjust
4194 dumping for ref nodes.
4195
4196 2013-03-27 Martin Jambor <mjambor@suse.cz>
4197
4198 PR tree-optimization/55334
4199 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4200 restricted pointers to arrays.
4201
4202 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4203
4204 * Makefile.in (.SUFFIXES): Add .cc.
4205 (.c.o): Apply same recipe for implicit rule .cc.o.
4206
4207 2013-03-27 Richard Biener <rguenther@suse.de>
4208
4209 PR tree-optimization/37021
4210 * tree-vect-data-refs.c (vect_check_strided_load): Allow
4211 REALPART/IMAGPART_EXPRs around the supported refs.
4212 * tree-ssa-structalias.c (find_func_aliases): Assume that
4213 floating-point values are not used to transfer pointers.
4214
4215 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4216
4217 * target.def (TARGET_HAS_IFUNC_P): New target hook.
4218 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4219 * doc/tm.texi: Regenerate.
4220 * targhooks.h (default_has_ifunc_p): New.
4221 * targhooks.c (default_has_ifunc_p): Ditto.
4222 * config/linux-protos.h: New file.
4223 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
4224 this hook for linux which disables support of indirect functions in
4225 android.
4226 * config/linux-android.c: New file.
4227 * config/t-linux-android.c: Ditto.
4228 * config.gcc: Added new object file linux-android.o.
4229 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
4230 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
4231 * varasm.c (do_assemble_alias): Likewise.
4232 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4233 doesn't support indirect functions.
4234 * configure: Regenerate.
4235
4236 2013-03-27 Bin Cheng <bin.cheng@arm.com>
4237
4238 PR target/56102
4239 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4240 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4241 mult-word mode.
4242
4243 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4244
4245 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4246
4247 2013-03-27 Terry Guo <terry.guo@arm.com>
4248
4249 * config/arm/arm-cores.def: Added core cortex-r7.
4250 * config/arm/arm-tune.md: Regenerated.
4251 * config/arm/arm-tables.opt: Regenerated.
4252 * doc/invoke.texi: Added entry for core cortex-r7.
4253
4254 2013-03-27 Walter Lee <walt@tilera.com>
4255
4256 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4257 double-decrement of next_scratch_regno.
4258
4259 2013-03-27 Walter Lee <walt@tilera.com>
4260
4261 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
4262 input operands.
4263 (insn_v1mulus): Ditto.
4264 (insn_v2muls): Ditto.
4265
4266 2013-03-27 Walter Lee <walt@tilera.com>
4267
4268 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
4269 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4270
4271 2013-03-27 Walter Lee <walt@tilera.com>
4272
4273 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
4274 (*sibcall_value): Ditto.
4275
4276 2013-03-27 Walter Lee <walt@tilera.com>
4277
4278 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4279 (insn_mnz_v8qi): ... this ...
4280 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
4281 vector equivalent.
4282 (insn_v<n>mnz): Replaced by ...
4283 (insn_v1mnz): ... this ...
4284 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
4285 equivalent.
4286 (insn_mz_<mode>): Replaced by ...
4287 (insn_mz_v8qi): ... this ...
4288 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
4289 vector equivalent.
4290 (insn_v<n>mz): Replaced by ...
4291 (insn_v1mz): ... this ...
4292 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
4293 equivalent.
4294
4295 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
4296
4297 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4298
4299 2013-03-26 Roland McGrath <mcgrathr@google.com>
4300
4301 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4302 than fprintf with a non-constant, non-format string.
4303
4304 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4305
4306 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4307 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
4308 operand 0 predicate.
4309 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4310 attribute. Use general_x64nomem_operand as operand 1 predicate.
4311 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4312 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4313 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4314 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4315 (mov<mode>_insv_1): Remove expander. Merge insn with
4316 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4317 Use general_x64nomem_operand as operand 1 predicate.
4318 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4319 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4320 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4321 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4322 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
4323 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4324 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4325 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4326 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
4327 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4328 (general_x64nomem_operand): Ditto.
4329
4330 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
4331
4332 * config/rtems.opt: Add -pthread option.
4333
4334 2013-03-26 Richard Biener <rguenther@suse.de>
4335
4336 * alias.c (find_base_term): Avoid redundant and not used recursion.
4337 (base_alias_check): Get the initial base term from the caller.
4338 (true_dependence_1): Compute and pass base terms to base_alias_check.
4339 (write_dependence_p): Likewise.
4340 (may_alias_p): Likewise.
4341
4342 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
4343
4344 * config/aarch64/aarch64.c (aarch64_classify_address): Support
4345 PC-relative load in SI modes and above only.
4346
4347 2013-03-26 Xinyu Qi <xyqi@marvell.com>
4348
4349 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
4350 * config/arm/iwmmxt.md (WCGR0): Update.
4351 (WCGR1, WCGR2, WCGR3): Likewise.
4352
4353 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4354
4355 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4356 Use x64 and nox64 isa attributes.
4357
4358 2013-03-26 Richard Biener <rguenther@suse.de>
4359
4360 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4361 alignment computations and rely on get_object_alignment_1
4362 for the !TYPE_P case.
4363 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4364
4365 2013-03-26 Walter Lee <walt@tilera.com>
4366
4367 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4368 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4369
4370 2013-03-25 Jeff Law <law@redhat.com>
4371
4372 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4373 check for INTEGRAL_TYPE_P that was missing due to checking in
4374 wrong version of prior patch.
4375
4376 2013-03-25 Walter Lee <walt@tilera.com>
4377
4378 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4379 TILEGX_INSN_SHUFFLEBYTES1.
4380 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4381 shufflebytes1.
4382 (tilegx_builtins): Ditto.
4383 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4384
4385 2013-03-25 Walter Lee <walt@tilera.com>
4386
4387 * config/tilegx/tilegx.md (floatsisf2): New pattern.
4388 (floatunssisf2): New pattern.
4389 (floatsidf2): New pattern.
4390 (floatunssidf2): New pattern.
4391
4392 2013-03-25 Walter Lee <walt@tilera.com>
4393
4394 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4395 tests for constraint J, K, N, P.
4396
4397 2013-03-25 Walter Lee <walt@tilera.com>
4398
4399 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4400 Use indirect/pcrel encoding.
4401 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4402 Ditto.
4403
4404 2013-03-25 Steve Ellcey <sellcey@mips.com>
4405
4406 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4407 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4408 * config/mips/mips.c (mips_option_override): Set IMADD default.
4409 * config/mips/mips.h (PTF_AVOID_IMADD): New.
4410 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4411 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4412 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4413 * doc/invoke.texi (-mimadd/-mno-imadd): New.
4414
4415 2013-03-25 Jeff Law <law@redhat.com>
4416
4417 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4418 slightly to avoid creating and folding useless trees. Simplify
4419 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4420
4421 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
4422
4423 * config/i386/i386.md (*zero_extendsidi2): Merge with
4424 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
4425 * config/i386/predicates.md (x86_64_zext_operand): Rename from
4426 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
4427 targets. Clarify comment.
4428
4429 2013-03-25 Martin Jambor <mjambor@suse.cz>
4430
4431 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4432 pass-through jump functions differently.
4433 (ipa_read_jump_function): Likewise. Also use setter functions to set
4434 up jump functions.
4435
4436 2013-03-25 Martin Jambor <mjambor@suse.cz>
4437
4438 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4439 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4440 process it.
4441 (ipa_get_indirect_edge_target): New function.
4442 (devirtualization_time_bonus): New parameter known_aggs, pass it to
4443 ipa_get_indirect_edge_target. Update all callers.
4444 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
4445 ipa_get_indirect_edge_target_1 instead of calling
4446 ipa_get_indirect_edge_target.
4447 (create_specialized_node): Pass aggvlas to
4448 ipcp_discover_new_direct_edges.
4449
4450 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4451
4452 * config/arm/arm.md (f_sels, f_seld): New types.
4453 (*cmov<mode>): New pattern.
4454 * config/arm/predicates.md (arm_vsel_comparison_operator): New
4455 predicate.
4456
4457 2013-03-25 Kai Tietz <ktietz@redhat.com>
4458
4459 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4460 POSIX-printf for mingw-hosted builds.
4461
4462 2013-03-25 Richard Biener <rguenther@suse.de>
4463
4464 PR middle-end/56694
4465 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4466 must-not-throw stmt location.
4467
4468 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4469
4470 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4471 Emit load-acquire versions when acq is true.
4472 (arm_emit_store_exclusive): Add rel parameter.
4473 Emit store-release versions when rel is true.
4474 (arm_split_compare_and_swap): Use acquire-release instructions
4475 instead.
4476 of barriers when appropriate.
4477 (arm_split_atomic_op): Likewise.
4478 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4479 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4480 (VUNSPEC_SLX): Likewise.
4481 (VUNSPEC_LDA): Likewise.
4482 (VUNSPEC_STL): Likewise.
4483 * config/arm/sync.md (atomic_load<mode>): New pattern.
4484 (atomic_store<mode>): Likewise.
4485 (arm_load_acquire_exclusive<mode>): Likewise.
4486 (arm_load_acquire_exclusivesi): Likewise.
4487 (arm_load_acquire_exclusivedi): Likewise.
4488 (arm_store_release_exclusive<mode>): Likewise.
4489
4490 2013-03-25 Catherine Moore <clm@codesourcery.com>
4491
4492 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4493 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4494 * config/mip/predicates.md (lwsp_swsp_operand,
4495 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4496 sb16_operand, db4_operand, db7_operand, ib3_operand,
4497 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4498 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4499 andi16_operand): New predicates.
4500 * config/mips/mips.md (compression): New attribute.
4501 (enabled): New attribute.
4502 (length): Consider compression in computing length.
4503 (shift_compression): New code attribute.
4504 (*add<mode>3): New operands. Record compression.
4505 (sub<mode>3): Likewise.
4506 (one_cmpl<mode>2): Likewise.
4507 (*and<mode>3): Likewise.
4508 (*ior<mode>3): Likewise.
4509 (unnamed pattern for xor): Likewise.
4510 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4511 (*<optab><mode>3): Likewise.
4512 (*mov<mode>_internal: Likewise.
4513 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4514 (mips_unsigned_immediate_p): New.
4515 (umips_lwsp_swsp_address_p): New.
4516 (m16_based_address_p): New.
4517 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4518 (mips_unsigned_immediate_p): New prototype.
4519 (lwsp_swsp_address_p): New prototype.
4520 (m16_based_address_p): New prototype.
4521 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4522 (mips_signed_immediate_p): New function.
4523 (m16_based_address_p): New function.
4524 (lwsp_swsp_address_p): New function.
4525 (mips_print_operand_punctuation): Recognize short delay slot insns
4526 for microMIPS.add<mode>3"
4527
4528 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4529
4530 PR target/56720
4531 * config/arm/iterators.md (v_cmp_result): New mode attribute.
4532 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4533
4534 2013-03-25 Richard Biener <rguenther@suse.de>
4535
4536 PR tree-optimization/56689
4537 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4538 any edge.
4539
4540 2013-03-25 Richard Biener <rguenther@suse.de>
4541
4542 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4543 of bitmap.
4544 (memory_references): Likewise.
4545 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4546 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4547 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4548 (gather_mem_refs_in_loops): Fold into ...
4549 (analyze_memory_references): ... this. Move initialization
4550 to tree_ssa_lim_initialize.
4551 (fill_always_executed_in): Rename to ...
4552 (fill_always_executed_in_1): ... this.
4553 (fill_always_executed_in): Move contains_call computation to
4554 this new function from ...
4555 (tree_ssa_lim_initialize): ... here.
4556 (tree_ssa_lim): Call fill_always_executed_in.
4557
4558 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4559
4560 * postreload.c (reload_combine): Fix code detecting returns.
4561
4562 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4563
4564 * function.c (emit_use_return_register_into_block): On cc0 targets,
4565 do not emit the sequence between cc0 setter and user.
4566
4567 2013-03-25 Kai Tietz <ktietz@redhat.com>
4568
4569 * config/i386/predicates.md (local_symbolic_operand): Interpret
4570 dll-imported symbols as none-local.
4571
4572 2013-03-25 Richard Biener <rguenther@suse.de>
4573
4574 * tree-ssa-loop-im.c (struct depend): Remove.
4575 (struct lim_aux_data): Make depends a vec of gimples.
4576 (free_lim_aux_data): Adjust.
4577 (add_dependency): Likewise.
4578 (set_level): Likewise.
4579
4580 2013-03-25 Richard Biener <rguenther@suse.de>
4581
4582 PR middle-end/56434
4583 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4584 the pointer returned by calls with ECF_MALLOC set.
4585
4586 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4587
4588 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4589
4590 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4591
4592 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4593 using MMXMODE mode iterator.
4594 (*move<mode>_internal): Merge with *movv2sf_internal and
4595 *movv2sf_internal_rex64 using MMXMODE mode iterator.
4596
4597 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4598
4599 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4600 (record_last_mem_set_info): Likewise.
4601
4602 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4603 of XNEWVEC followed by memset.
4604 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4605
4606 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4607
4608 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4609 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4610 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4611 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4612 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4613 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4614 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4615 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4616 BARRIER_P instead of GET_CODE.
4617
4618 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4619
4620 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4621 inaccuracy in the probing code.
4622
4623 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4624 (ctrapdi4): Likewise.
4625
4626 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4627
4628 * calls.c (expand_call): Add missing guard to code handling return
4629 of non-BLKmode structures in MSB.
4630 * function.c (expand_function_end): Likewise.
4631
4632 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4633
4634 * combine.c (try_combine): Adjust comment. Do not add the set of
4635 insn #0 if the destination indirectly is set or dies in insn #2.
4636 Tidy up code to distribute a new note.
4637
4638 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4639
4640 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4641 also for alternatives 16 and 17.
4642
4643 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4644
4645 * config/i386/sse.md (*mov<mode>_internal): Merge with
4646 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
4647 Emit insn template depending on type attribute. Use
4648 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4649 movd instead of movq mnemonic for interunit moves. Rewrite mode
4650 attribute calculation. Remove unit attribute calculation.
4651 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4652 Set prefix_data16 attribute for DImode ssemov types.
4653 Use Ym instead of y for SSE-MMX conversion alternatives.
4654 Reorder operand constraints.
4655
4656 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
4657
4658 * df.h (df_insn_delete): Adjust prototype.
4659 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4660 and let it decide whether mark the basic block dirty.
4661 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4662 * df-scan.c (df_insn_info_delete): New helper function, split
4663 off from df_insn_delete.
4664 (df_scan_free_bb_info): Use it.
4665 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4666 Likewise.
4667 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
4668 that the insn is actually an insn and it has a non-NULL basic block.
4669 Do not mark basic block dirty if only deleting a DEBUG_INSN.
4670
4671 2013-03-22 Richard Biener <rguenther@suse.de>
4672
4673 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4674 dep_ref members.
4675 (mem_ref_alloc): Do not allocate them.
4676 (refs_independent_p): Do not query or maintain a cache.
4677
4678 2013-03-22 Richard Biener <rguenther@suse.de>
4679
4680 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4681 (gather_mem_refs_in_loops): Do not compute it.
4682 (analyze_memory_references): Do not allocate it.
4683 (tree_ssa_lim_finalize): Do not free it.
4684 (for_all_locs_in_loop): Do not query all_refs_in_loop.
4685
4686 2013-03-22 Richard Biener <rguenther@suse.de>
4687
4688 * is-a.h (as_a): Use gcc_checking_assert.
4689
4690 2013-03-22 Ian Bolton <ian.bolton@arm.com>
4691
4692 * config/aarch64/aarch64.c (aarch64_print_operand): New
4693 format specifier for printing a constant in hex.
4694 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4695 format specifier for printing second operand.
4696
4697 2013-03-22 Richard Biener <rguenther@suse.de>
4698
4699 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4700 bitmaps.
4701 (gather_mem_refs_in_loops): Perform store accumulation here.
4702 (create_vop_ref_mapping_loop): Remove.
4703 (create_vop_ref_mapping): Likewise.
4704 (analyze_memory_references): Initialize refs_stored_in_loop.
4705 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4706 (record_indep_loop): Remove.
4707 (record_dep_loop): New function.
4708 (ref_indep_loop_p_1): Adjust to only walk over references
4709 in the loop, not its subloops.
4710 (ref_indep_loop_p): Rename to ...
4711 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4712 maintaining a more fine-grained cache.
4713 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4714 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4715
4716 2013-03-22 Richard Biener <rguenther@suse.de>
4717
4718 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4719 (struct mem_ref): Make accesses_in_loop a vec of a vec of
4720 aggregate mem_ref_loc.
4721 (free_mem_ref_locs): Inline into ...
4722 (memref_free): ... this and adjust.
4723 (mem_ref_alloc): Adjust.
4724 (mem_ref_locs_alloc): Remove.
4725 (record_mem_ref_loc): Adjust.
4726 (get_all_locs_in_loop): Rewrite into ...
4727 (for_all_locs_in_loop): ... this iterator.
4728 (rewrite_mem_ref_loc): New functor.
4729 (rewrite_mem_refs): Use for_all_locs_in_loop.
4730 (sm_set_flag_if_changed): New functor.
4731 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4732 (ref_always_accessed): New functor.
4733 (ref_always_accessed_p): Use for_all_locs_in_loop.
4734
4735 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4736
4737 * tree-pass.h (PROP_gimple_lvec): New.
4738 * passes.c (dump_properties): Handle PROP_gimple_lvec.
4739 (init_optimization_passes): Move pass_lower_vector.
4740 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4741 PROP_gimple_lvec.
4742 (pass_lower_vector): Provide PROP_gimple_lvec.
4743 (pass_lower_vector_ssa): Likewise.
4744 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4745
4746 2013-03-21 Mark Wielaard <mjw@redhat.com>
4747
4748 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4749
4750 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4751
4752 * config/i386/i386.md (*movdi_internal): Disparage slightly
4753 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
4754 conversion alternatives.
4755
4756 2013-03-21 Jakub Jelinek <jakub@redhat.com>
4757
4758 PR middle-end/48087
4759 * diagnostic.def (DK_WERROR): New kind.
4760 * diagnostic.h (werrorcount): Define.
4761 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4762 promoted to DK_ERROR, increment DK_WERROR counter instead of
4763 DK_ERROR counter.
4764 * toplev.c (toplev_main): Call print_ignored_options even if
4765 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
4766 even if just werrorcount is non-zero.
4767
4768 PR debug/55608
4769 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4770 on failure.
4771 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4772 (string_cst_pool_decl): New function.
4773 (optimize_one_addr_into_implicit_ptr): New function.
4774 (resolve_addr_in_expr): Optimize DWARF location expression
4775 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4776 which doesn't live in memory, but has DW_AT_location or
4777 DW_AT_const_value, or refers to a string literal, into
4778 DW_OP_GNU_implicit_pointer.
4779 (optimize_location_into_implicit_ptr): New function.
4780 (resolve_addr): If removing DW_AT_location of a variable because
4781 it was DW_OP_addr of address of the variable, but the variable doesn't
4782 live in memory, try to emit const value attribute for the initializer.
4783
4784 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4785
4786 * tree.h (VECTOR_TYPE_P): New macro.
4787 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4788 TYPE_MODE): Use it.
4789 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4790 VEC_COND_EXPR cannot be lvalues.
4791 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4792
4793 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4794
4795 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4796 Restrict the transformation to equal modes.
4797
4798 2013-03-21 Richard Biener <rguenther@suse.de>
4799
4800 PR tree-optimization/39326
4801 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4802 (MEM_ANALYZABLE): Adjust.
4803 (record_mem_ref_loc): Move bitmap ops ...
4804 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4805 unanalyzable refs, do not record locations for it.
4806 (analyze_memory_references): Allocate ref zero as shared
4807 unanalyzable ref.
4808 (refs_independent_p): Do not test for unanalyzed mems here.
4809 (ref_indep_loop_p_1): Special-case disambiguation against
4810 the unanalyzed ref.
4811 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4812
4813 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4814
4815 * config/arm/arm-protos.h (tune_params): Add
4816 prefer_neon_for_64bits field.
4817 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4818 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4819 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4820 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4821 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4822 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4823 (arm_option_override): Handle -mneon-for-64bits new option.
4824 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4825 (prefer_neon_for_64bits): Declare new variable.
4826 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4827 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4828 (arch_enabled): Handle new arch types. Remove support for onlya8
4829 and nota8.
4830 (one_cmpldi2): Use new arch names.
4831 (zero_extend<mode>di2, extend<mode>di2): Ditto.
4832 * config/arm/arm.opt (mneon-for-64bits): Add option.
4833 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4834 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4835 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4836 of onlya8.
4837 * doc/invoke.texi (-mneon-for-64bits): Document.
4838
4839 2013-03-21 Richard Biener <rguenther@suse.de>
4840
4841 PR tree-optimization/39326
4842 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4843 (sort_bbs_in_loop_postorder_cmp): New function.
4844 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4845
4846 2013-03-21 Richard Biener <rguenther@suse.de>
4847
4848 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4849 (vect_insert_into_interleaving_chain): Likewise.
4850 (vect_drs_dependent_in_basic_block): Inline ...
4851 (vect_slp_analyze_data_ref_dependence): ... here. New function,
4852 split out from ...
4853 (vect_analyze_data_ref_dependence): ... here. Simplify.
4854 (vect_check_interleaving): Simplify.
4855 (vect_analyze_data_ref_dependences): Likewise. Split out ...
4856 (vect_slp_analyze_data_ref_dependences): ... this new function.
4857 (dr_group_sort_cmp): New function.
4858 (vect_analyze_data_ref_accesses): Compute data-reference groups
4859 here instead of in vect_analyze_data_ref_dependence. Use
4860 a more efficient algorithm.
4861 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4862 vect_slp_analyze_data_ref_dependences. Call
4863 vect_analyze_data_ref_accesses earlier.
4864 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4865 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4866 (vect_slp_analyze_data_ref_dependences): New prototype.
4867
4868 2013-03-21 Richard Biener <rguenther@suse.de>
4869
4870 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4871 ref is stored in the loop.
4872 (find_refs_for_sm): Walk only over all stores.
4873 (store_motion_loop): Allocate from lim_bitmap_obstack.
4874 (store_motion): Likewise.
4875
4876 2013-03-21 Richard Biener <rguenther@suse.de>
4877
4878 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4879 Update virtual SSA form.
4880
4881 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4882
4883 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4884 * configure: Regenerate.
4885 * config.in: Regenerate.
4886 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4887 if !HAVE_LD_EH_FRAME_CIEV3.
4888
4889 2013-03-21 Richard Biener <rguenther@suse.de>
4890
4891 * tree-cfg.c (verify_expr_no_block): New function.
4892 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4893 nor DECL_VALUE_EXPR have locations with associated blocks.
4894 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4895 (clear_unused_block_pointer): Remove code dealing with
4896 blocks in DECL_DEBUG_EXPR locations.
4897
4898 2013-03-21 Richard Biener <rguenther@suse.de>
4899
4900 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4901 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
4902 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4903 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4904 instead of DECL_DEBUG_EXPR_IS_FROM.
4905 * gimplify.c (gimplify_modify_expr): Likewise.
4906 * tree-cfg.c (verify_expr_location_1): Likewise.
4907 * tree-complex.c (create_one_component_var): Likewise.
4908 * tree-sra.c (create_access_replacement): Likewise.
4909 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4910 (clear_unused_block_pointer): Likewise.
4911 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4912 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4913 * var-tracking.c (var_debug_decl): Likewise.
4914 (track_expr_p): Likewise.
4915 * tree-inline.c (add_local_variables): Likewise. Set
4916 DECL_HAS_DEBUG_EXPR_P after copying it.
4917 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4918 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4919
4920 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4921
4922 PR bootstrap/56656
4923 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4924 * configure: Regenerate.
4925 * config.in: Regenerate.
4926 * config/i386/i386.md (*movdf_internal): Use
4927 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4928 movd instead of movq mnemonic for interunit moves.
4929 (*movdi_internal): Ditto.
4930
4931 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4932
4933 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4934 (abd<mode>_3): New pattern.
4935 (aba<mode>_3): New pattern.
4936 (fabd<mode>_3): New pattern.
4937
4938 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4939
4940 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4941 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4942 occurrence of REGISTER_PREFIX as its empty string.
4943
4944 2013-03-20 Jeff Law <law@redhat.com>
4945
4946 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4947 addititional equivalences for equality comparisons between an SSA_NAME
4948 and a constant where the SSA_NAME was set from a widening conversion.
4949
4950 2013-03-20 Walter Lee <walt@tilera.com>
4951
4952 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4953
4954 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4955
4956 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4957 depending on type attribute.
4958 (*movti_internal): Ditto.
4959 (*movtf_internal): Ditto.
4960 (*movxf_internal): Ditto.
4961 (*movdf_internal): Ditto.
4962 (*movsf_internal): Ditto.
4963
4964 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4965
4966 * config/i386/i386.md (*movti_internal): Set prefix attribute to
4967 maybe_vex for sselog1 and ssemov types.
4968 (*movdi_internal): Reorder operand constraints.
4969 (*movsi_internal): Ditto. Set prefix attribute to
4970 maybe_vex for sselog1 and ssemov types.
4971 (*movtf_internal): Set prefix attribute to maybe_vex
4972 for sselog1 and ssemov types.
4973 (*movdf_internal): Ditto. Set prefix_data16 attribute for
4974 DImode ssemov types. Reorder operand constraints.
4975 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
4976 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
4977 attribute for SImode ssemov types. Reorder operand constraints.
4978
4979 2013-03-20 Martin Jambor <mjambor@suse.cz>
4980
4981 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4982 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4983
4984 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
4985
4986 * config/rs6000/predicates.md (indexed_address, update_address_mem
4987 update_indexed_address_mem): New predicates.
4988 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4989 attribute for load/store instructions.
4990 * config/rs6000/dfp.md (movsd_store): Likewise.
4991 (movsd_load): Likewise.
4992 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4993 (unnamed HI->DI extend define_insn): Likewise.
4994 (unnamed SI->DI extend define_insn): Likewise.
4995 (unnamed QI->SI extend define_insn): Likewise.
4996 (unnamed QI->HI extend define_insn): Likewise.
4997 (unnamed HI->SI extend define_insn): Likewise.
4998 (unnamed HI->SI extend define_insn): Likewise.
4999 (extendsfdf2_fpr): Likewise.
5000 (movsi_internal1): Likewise.
5001 (movsi_internal1_single): Likewise.
5002 (movhi_internal): Likewise.
5003 (movqi_internal): Likewise.
5004 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5005 attribute for load/store instructions.
5006 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5007 instructions.
5008 (mov<mode>_softfloat): Likewise.
5009 (mov<mode>_hardfloat32): Likewise.
5010 (mov<mode>_hardfloat64): Likewise.
5011 (mov<mode>_softfloat64): Likewise.
5012 (movdi_internal32): Likewise.
5013 (movdi_internal64): Likewise.
5014 (probe_stack_<mode>): Likewise.
5015
5016 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5017
5018 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5019 floating point, and decimal floating point to reload iterator.
5020
5021 * config/rs6000/constraints.md (wl constraint): New constraints to
5022 return FLOAT_REGS if certain options are used to reduce the number
5023 of separate patterns that exist in the file.
5024 (wx constraint): Likewise.
5025 (wz constraint): Likewise.
5026
5027 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5028 -mdebug=reg, print wg, wl, wx, and wz constraints.
5029 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5030 Initialize the reload functions for 64-bit binary/decimal floating
5031 point types.
5032 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5033 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5034 create the buffer on the stack to overcome not having a 32-bit
5035 load and store.
5036 (rs6000_emit_move): Likewise.
5037 (rs6000_secondary_memory_needed_rtx): Likewise.
5038 (rs6000_alloc_sdmode_stack_slot): Likewise.
5039 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5040 via xxlxor, just like DFmode 0.0.
5041
5042 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5043 define as 1 if we are running on a power7 or newer.
5044 (enum r6000_reg_class_enum): Add new constraints.
5045
5046 * config/rs6000/dfp.md (movsd): Delete, combine with binary
5047 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5048 with other moves by using conditional constraits (wg). Use LFIWZX
5049 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
5050 (movsd splitter): Likewise.
5051 (movsd_hardfloat): Likewise.
5052 (movsd_softfloat): Likewise.
5053
5054 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5055 binary and decimal floating point moves.
5056 (fmove_ok): New attributes to combine binary and decimal floating
5057 point moves, and to combine power6x (mfpgpr) moves along normal
5058 floating moves.
5059 (real_value_to_target): Likewise.
5060 (f32_lr): Likewise.
5061 (f32_lm): Likewise.
5062 (f32_li): Likewise.
5063 (f32_sr): Likewise.
5064 (f32_sm): Likewise.
5065 (f32_si): Likewise.
5066 (movsf): Combine binary and decimal floating point moves. Combine
5067 power6x (mfpgpr) moves with other moves by using conditional
5068 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
5069 (mov<mode> for SFmode/SDmode); Likewise.
5070 (SFmode/SDmode splitters): Likewise.
5071 (movsf_hardfloat): Likewise.
5072 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5073 (movsf_softfloat): Likewise.
5074 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5075
5076 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5077 wx and wz constraints.
5078
5079 * config/rs6000/constraints.md (wg constraint): New constraint to
5080 return FLOAT_REGS if -mmfpgpr (power6x) was used.
5081
5082 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5083 constraint.
5084
5085 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5086 -mdebug=reg, print wg, wl, wx, and wz constraints.
5087 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5088 Initialize the reload functions for 64-bit binary/decimal floating
5089 point types.
5090 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5091 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5092 create the buffer on the stack to overcome not having a 32-bit
5093 load and store.
5094 (rs6000_emit_move): Likewise.
5095 (rs6000_secondary_memory_needed_rtx): Likewise.
5096 (rs6000_alloc_sdmode_stack_slot): Likewise.
5097 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5098 via xxlxor, just like DFmode 0.0.
5099
5100 * config/rs6000/dfp.md (movdd): Delete, combine with binary
5101 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5102 with other moves by using conditional constraits (wg). Use LFIWZX
5103 and STFIWX for loading SDmode on power7.
5104 (movdd splitters): Likewise.
5105 (movdd_hardfloat32): Likewise.
5106 (movdd_softfloat32): Likewise.
5107 (movdd_hardfloat64_mfpgpr): Likewise.
5108 (movdd_hardfloat64): Likewise.
5109 (movdd_softfloat64): Likewise.
5110
5111 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5112 64-bit binary and decimal floating point moves.
5113 (FMOVE64X): Likewise.
5114 (movdf): Combine 64-bit binary and decimal floating point moves.
5115 Combine power6x (mfpgpr) moves with other moves by using
5116 conditional constraits (wg).
5117 (mov<mode> for DFmode/DDmode): Likewise.
5118 (DFmode/DDmode splitters): Likewise.
5119 (movdf_hardfloat32): Likewise.
5120 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5121 (movdf_softfloat32): Likewise.
5122 (movdf_hardfloat64_mfpgpr): Likewise.
5123 (movdf_hardfloat64): Likewise.
5124 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5125 (movdf_softfloat64): Likewise.
5126 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5127 (reload_<mode>_load): Move to later in the file so they aren't in
5128 the middle of the floating point move insns.
5129 (reload_<mode>_store): Likewise.
5130
5131 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5132 constraint.
5133
5134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5135 constraint if -mdebug=reg.
5136 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5137 Enable using dd reload support if needed.
5138
5139 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5140 binary and decimal floating point moves in rs6000.md.
5141 (movtd_internal): Likewise.
5142
5143 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5144 decimal floating point moves.
5145 (movtf): Likewise.
5146 (movtf_internal): Likewise.
5147 (mov<mode>_internal, TDmode/TFmode): Likewise.
5148 (movtf_softfloat): Likewise.
5149 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5150
5151 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5152 movdi_internal64, using wg constraint for move direct operations.
5153 (movdi_internal64): Likewise.
5154
5155 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5156 MODES_TIEABLE_P for selected modes. Print the numerical value of
5157 the various virtual registers. Use GPR/FPR first/last values,
5158 instead of hard coding the register numbers. Print which modes
5159 have reload functions registered.
5160 (rs6000_option_override_internal): If -mdebug=reg, trace the options
5161 settings before/after setting cpu, target and subtarget settings.
5162 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5163 and for secondary reload failures in rs6000_secondary_reload_inner.
5164 (rs6000_secondary_reload_fail): Likewise.
5165 (rs6000_secondary_reload_inner): Likewise.
5166
5167 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5168 macros for first/last GPR and FPR registers.
5169 (LAST_GPR_REGNO): Likewise.
5170 (FIRST_FPR_REGNO): Likewise.
5171 (LAST_FPR_REGNO): Likewise.
5172
5173 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5174 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5175 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5176 (vcond<mode><mode>): Likewise.
5177 (vcondu<mode><mode>): Likewise.
5178 (vector_gtu<mode>): Likewise.
5179 (vector_gte<mode>): Likewise.
5180 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
5181 to prevent the compiler from converting DImode operations to TImode.
5182 (ior<mode>3): Likewise.
5183 (and<mode>3): Likewise.
5184 (one_cmpl<mode>2): Likewise.
5185 (nor<mode>3): Likewise.
5186 (andc<mode>3): Likewise.
5187
5188 * config/rs6000/constraints.md (wt constraint): New constraint
5189 that returns VSX_REGS if TImode is allowed in VSX registers.
5190
5191 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5192 constant under VSX.
5193
5194 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5195 similar to TImode, but it is restricted to being in the GPRs.
5196
5197 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5198 TImode to occupy a single VSX register.
5199
5200 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5201 -mvsx-timode for power7/power8.
5202 (power7 cpu): Likewise.
5203 (power8 cpu): Likewise.
5204
5205 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5206 sure that TFmode/TDmode take up two registers if they are ever
5207 allowed in the upper VSX registers.
5208 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5209 registers.
5210 (rs6000_init_hard_regno_mode_ok): Likewise.
5211 (rs6000_debug_reg_global): Add debugging for PTImode and wt
5212 constraint. Print if LRA is turned on.
5213 (rs6000_option_override_internal): Give an error if -mvsx-timode
5214 and VSX is not enabled.
5215 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
5216 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5217 to reg+offset addressing. Use PTImode when checking offset
5218 addresses for validity.
5219 (reg_offset_addressing_ok_p): Likewise.
5220 (rs6000_legitimate_offset_address_p): Likewise.
5221 (rs6000_legitimize_address): Likewise.
5222 (rs6000_legitimize_reload_address): Likewise.
5223 (rs6000_legitimate_address_p): Likewise.
5224 (rs6000_eliminate_indexed_memrefs): Likewise.
5225 (rs6000_emit_move): Likewise.
5226 (rs6000_secondary_reload): Likewise.
5227 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
5228 reloads to fpr registers to continue to use reg+offset addressing,
5229 but 64-bit reloads to altivec registers need reg+reg addressing.
5230 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5231 it. Treat LO_SUM like a PLUS operation.
5232 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
5233 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
5234 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5235 registers to share a register with a smaller sized type, since VSX
5236 puts scalars in the upper 64-bits.
5237 (print_operand): Add support for PTImode.
5238 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5239 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5240 registers, but don't have arithmetic support.
5241 (rs6000_memory_move_cost): Add test for VSX.
5242 (rs6000_opt_masks): Add -mvsx-timode.
5243
5244 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5245 for TImode.
5246 (VSs): Likewise.
5247 (VSr): Use wt constraint for TImode.
5248 (VSv): Drop TImode support.
5249 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5250 (vsx_movti_64bit): Likewise.
5251 (vsx_movti_32bit): Likewise.
5252 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5253 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5254 one '?' on the appropriate output constraint. Do not allow TImode
5255 logical operations on 32-bit systems.
5256 (vsx_ior<mode>3): Likewise.
5257 (vsx_xor<mode>3): Likewise.
5258 (vsx_one_cmpl<mode>2): Likewise.
5259 (vsx_nor<mode>3): Likewise.
5260 (vsx_andc<mode>3): Likewise.
5261 (vsx_concat_<mode>): Likewise.
5262 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5263
5264 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5265 OPTION_MASK_VSX_TIMODE.
5266 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5267 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5268
5269 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5270 (TI2 iterator): New iterator for TImode, PTImode.
5271 (wd mode attribute): Add values for vector types.
5272 (movti_string): Replace TI move operations with operations for TImode
5273 and PTImode. Add support for TImode being allowed in VSX registers.
5274 (mov<mode>_string, TImode/PTImode): Likewise.
5275 (movti_ppc64): Likewise.
5276 (mov<mode>_ppc64, TImode/PTImode): Likewise.
5277 (TI mode splitters): Likewise.
5278
5279 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5280 constraint.
5281
5282 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
5283
5284 PR tree-optimization/56355
5285 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5286 Also handle integers with undefined overflow.
5287
5288 2013-03-20 Catherine Moore <clm@codesourcery.com>
5289 Maciej W. Rozycki <macro@codesourcery.com>
5290 Tom de Vries <tom@codesourcery.com>
5291 Nathan Sidwell <nathan@codesourcery.com>
5292 Iain Sandoe <iain@codesourcery.com>
5293 Nathan Froyd <froydnj@codesourcery.com>
5294 Chao-ying Fu <fu@mips.com>
5295
5296 * doc/extend.texi: (micromips, nomicromips, nocompression):
5297 Document new function attributes.
5298 * doc/invoke.texi (minterlink-compressed, mmicromips,
5299 m14k, m14ke, m14kec): Document new options.
5300 (minterlink-mips16): Update documentation.
5301 * doc/md.texi (ZC, ZD): Document new constraints.
5302 * configure.ac (gcc_cv_as_micromips): Check if linker
5303 supports the .set micromips directive.
5304 * configure: Regenerate.
5305 * config.in: Regenerate.
5306 * config/mips/mips-tables.opt: Regenerate.
5307 * config/mips/micromips.md: New file.
5308 * constraints.md (ZC, ZD): New constraints.
5309 * config/mips/predicates.md (movep_src_register): New predicate.
5310 (movep_src_operand): New predicate.
5311 (non_volatile_mem_operand): New predicate.
5312 * config/mips/mips.md (multimem): New type.
5313 (length): Differentiate between 17-bit and 18-bit branch offsets.
5314 (MOVEP1, MOVEP2): New mode iterator.
5315 (mov_<load>l): Use ZC constraint.
5316 (mov_<load>r): Likewise.
5317 (mov_<store>l): Likewise.
5318 (mov_<store>r): Likewise.
5319 (*branch_equality<mode>_inverted): Add microMIPS support.
5320 (*branch_equality<mode>): Likewise.
5321 (*jump_absolute): Likewise.
5322 (indirect_jump_<mode>): Likewise.
5323 (tablejump_<mode>): Likewise.
5324 (<optab>_internal): Likewise.
5325 (sibcall_internal): Likewise.
5326 (sibcall_value_internal): Likewise.
5327 (prefetch): Use constraint ZD.
5328 * config/mips/mips.opt (minterlink-compressed): New option.
5329 (minterlink-mips16): Now an alias for minterlink-compressed.
5330 (mmicromips): New option.
5331 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5332 (compare_and_swap_12): Likewise.
5333 (sync_add<mode>): Likewise.
5334 (sync_<optab>_12): Likewise.
5335 (sync_old_<optab>_12): Likewise.
5336 (sync_new_<optab>_12): Likewise.
5337 (sync_nand_12): Likewise.
5338 (sync_old_nand_12): Likewise.
5339 (sync_new_nand_12): Likewise.
5340 (sync_sub<mode>): Likewise.
5341 (sync_old_add<mode>): Likewise.
5342 (sync_old_sub<mode>): Likewise.
5343 (sync_new_add<mode>): Likewise.
5344 (sync_new_sub<mode>): Likewise.
5345 (sync_<optab><mode>): Likewise.
5346 (sync_old_<optab><mode>): Likewise.
5347 (sync_new_<optab><mode>): Likewise.
5348 (sync_nand<mode>): Likewise.
5349 (sync_old_nand<mode>): Likewise.
5350 (sync_new_nand<mode>): Likewise.
5351 (sync_lock_test_and_set<mode>): Likewise.
5352 (test_and_set_12): Likewise.
5353 (atomic_compare_and_swap<mode>): Likewise.
5354 (atomic_exchange<mode>_llsc): Likewise.
5355 (atomic_fetch_add<mode>_llsc): Likewise.
5356 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5357 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5358 (umips_save_restore_pattern_p): Likewise.
5359 (umips_load_store_pair_p): Likewise.
5360 (umips_output_load_store_pair): Likewise.
5361 (umips_movep_target_p): Likewise.
5362 (umips_12bit_offset_address_p): Likewise.
5363 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5364 (mips_base_mips16): Rename this...
5365 (mips_base_compression_flags): ...to this. Update all uses.
5366 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5367 (mips_mips16_decl_p): Delete.
5368 (mips_nomips16_decl_p): Delete.
5369 (mips_get_compress_on_flags): New function.
5370 (mips_get_compress_off_flags): New function.
5371 (mips_get_compress_mode): New function.
5372 (mips_get_compress_on_name): New function.
5373 (mips_get_compress_off_name): New function.
5374 (mips_insert_attributes): Support multiple compression types.
5375 (mips_merge_decl_attributes): Likewise.
5376 (umips_12bit_offset_address_p): New function.
5377 (mips_start_function_definition): Emit .set micromips directive.
5378 (mips_call_may_need_jalx_p): New function.
5379 (mips_function_ok_for_sibcall): Add microMIPS support.
5380 (mips_print_operand_punctuation): Support short delay slots and
5381 compact jumps.
5382 (umips_swm_mask, umips_swm_encoding): New.
5383 (umips_build_save_restore): New function.
5384 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5385 (was_mips16_p): Remove.
5386 (old_compression_mode): New.
5387 (mips_set_compression_mode): New function.
5388 (mips_set_current_function): Add microMIPS support.
5389 (mips_option_override): Likewise.
5390 (umips_save_restore_pattern_p): New function.
5391 (umips_output_save_restore): New function.
5392 (umips_load_store_pair_p_1): New function.
5393 (umips_load_store_pair_p): New function.
5394 (umips_output_load_store_pair_1): New function.
5395 (umips_output_load_store_pair): New function.
5396 (umips_movep_target_p) New function.
5397 (mips_prepare_pch_save): Add microMIPS support.
5398 * config/mips/mips.h (TARGET_COMPRESSION): New.
5399 (TARGET_CPU_CPP_BUILTINS): Update macro
5400 to use new compression flags and to support microMIPS.
5401 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5402 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5403 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5404 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5405 (ASM_SPEC): Support mmicromips and mno-micromips.
5406 (M16STORE_REG_P): New macro.
5407 (MIPS_CALL): Support TARGET_MICROMIPS.
5408 (MICROMIPS_J): New macro.
5409 (mips_base_mips16): Rename this...
5410 (mips_base_compression_flags): ...to this.
5411 (UMIPS_12BIT_OFFSET_P): New macro.
5412 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5413 (MULTILIB_DIRNAMES): Likewise.
5414 2013-03-20 Richard Biener <rguenther@suse.de>
5415
5416 PR tree-optimization/56661
5417 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5418 the result does not have to be distinct.
5419
5420 2013-03-20 Richard Biener <rguenther@suse.de>
5421
5422 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5423 remap_gimple_op_r.
5424
5425 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5426 Steven Bosscher <steven@gcc.gnu.org>
5427
5428 PR rtl-optimization/56605
5429 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5430
5431 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5432
5433 PR bootstrap/56656
5434 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5435 that require movd instead of movq.
5436
5437 2013-03-20 Richard Biener <rguenther@suse.de>
5438
5439 * tree-ssa-structalias.c (struct variable_info): Add pointer
5440 to the first field of an aggregate with sub-vars. Make
5441 this and the pointer to the next subfield its ID.
5442 (vi_next): New function.
5443 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5444 storedanything_id, integer_id): Increment by one.
5445 (new_var_info, get_call_vi, lookup_call_clobber_vi,
5446 get_call_clobber_vi): Adjust.
5447 (solution_set_expand): Simplify and speedup.
5448 (solution_set_add): Inline into ...
5449 (set_union_with_increment): ... this. Adjust accordingly.
5450 (do_sd_constraint): Likewise.
5451 (do_ds_constraint): Likewise.
5452 (do_complex_constraint): Simplify.
5453 (build_pred_graph): Adjust.
5454 (solve_graph): Likewise. Simplify and speedup.
5455 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5456 get_constraint_for_component_ref, get_constraint_for_1,
5457 first_vi_for_offset, first_or_preceding_vi_for_offset,
5458 create_function_info_for, create_variable_info_for_1,
5459 create_variable_info_for, intra_create_variable_infos): Adjust.
5460 (init_base_vars): Push NULL for ID zero.
5461 (compute_points_to_sets): Adjust.
5462
5463 2013-03-20 Richard Biener <rguenther@suse.de>
5464
5465 * cfgloop.c (verify_loop_structure): Streamline and avoid
5466 ICEing on corrupt loop tree.
5467 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5468 loop tree.
5469
5470 2013-03-20 Richard Biener <rguenther@suse.de>
5471
5472 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5473 check whether an SSA update is needed.
5474
5475 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5476
5477 * config/mips/constraints.md (T): Rename to...
5478 (Yf): ...this.
5479 (U): Rename to...
5480 (Yd): ...this.
5481 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5482 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5483
5484 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5485
5486 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5487 (*subsi3_carryin_uxtw): Likewise.
5488
5489 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5490
5491 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5492 (*rorsi3_insn_uxtw): Likewise.
5493
5494 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5495
5496 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5497 (*extrsi5_insn_uxtw): Likewise.
5498
5499 2013-03-19 Richard Biener <rguenther@suse.de>
5500
5501 PR tree-optimization/56273
5502 * passes.c (init_optimization_passes): Move second VRP after DOM.
5503
5504 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
5505
5506 * config/i386/i386.md (*movti_internal): Merge from
5507 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5508 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5509 nox64 isa attributes.
5510
5511 2013-03-18 Richard Biener <rguenther@suse.de>
5512
5513 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5514 (unite): Likewise.
5515 (merge_node_constraints): Likewise.
5516 (build_succ_graph): Likewise.
5517 (valid_graph_edge): Inline into single caller.
5518 (unify_nodes): Likewise. Use bitmap_set_bit return value
5519 and cache varinfo.
5520 (scc_visit): Fix formatting and variable use.
5521 (do_sd_constraint): Use gcc_checking_assert.
5522 (do_ds_constraint): Likewise.
5523 (do_complex_constraint): Likewise.
5524 (condense_visit): Likewise. Cleanup.
5525 (dump_pred_graph): New function.
5526 (perform_var_substitution): Dump the pred-graph before
5527 variable substitution.
5528 (find_equivalent_node): Use gcc_checking_assert.
5529 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5530
5531 2013-03-18 Richard Biener <rguenther@suse.de>
5532
5533 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5534 Remove cond_expr_stmt_list argument and do not gimplify the
5535 built expression.
5536 (vect_loop_versioning): Adjust.
5537 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5538 Cleanup to use less temporaries.
5539 (vect_create_data_ref_ptr): Cleanup.
5540
5541 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5542
5543 PR tree-optimization/56635
5544 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5545 require types_compatible_p types.
5546
5547 2013-03-18 Nick Clifton <nickc@redhat.com>
5548
5549 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5550 spurious backslash.
5551
5552 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5553 Add missing line to comment describing function.
5554
5555 2013-03-18 Richard Biener <rguenther@suse.de>
5556
5557 PR tree-optimization/56210
5558 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5559 Handle string / character search functions.
5560 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5561
5562 2013-03-18 Richard Biener <rguenther@suse.de>
5563
5564 PR middle-end/56483
5565 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5566 and implement properly.
5567 * gimple.h (gimple_cond_single_var_p): Remove.
5568
5569 2013-03-18 Richard Biener <rguenther@suse.de>
5570
5571 * tree-data-ref.h (find_data_references_in_loop): Declare.
5572 * tree-data-ref.c (get_references_in_stmt): Use a stack
5573 vector pre-allocated in the callers.
5574 (find_data_references_in_stmt): Adjust.
5575 (graphite_find_data_references_in_stmt): Likewise.
5576 (create_rdg_vertices): Likewise.
5577 (find_data_references_in_loop): Export.
5578 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5579 Compute dependences here...
5580 (vect_analyze_data_refs): ...not here. When we encounter
5581 a non-vectorizable data reference in basic-block vectorization
5582 truncate the data reference vector. Do not bother to
5583 fixup data-dependence information for gather loads.
5584 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5585 of data references, as reported.
5586
5587 2013-03-18 Richard Biener <rguenther@suse.de>
5588
5589 PR tree-optimization/3713
5590 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
5591 has_constants and expr.
5592 (stmt_has_constants): Properly valueize SSA names when deciding
5593 whether the stmt has constants.
5594
5595 2013-03-18 Richard Biener <rguenther@suse.de>
5596
5597 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5598 whole function when there is nothing to do.
5599 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5600 * tree-vectorizer.c (vectorize_loops): Update virtual and
5601 loop-closed SSA once.
5602 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5603
5604 2013-03-18 Richard Biener <rguenther@suse.de>
5605
5606 PR middle-end/56113
5607 * domwalk.c (bb_postorder): New global static.
5608 (cmp_bb_postorder): New function.
5609 (walk_dominator_tree): Replace scheme imposing an order for
5610 visiting dominator sons by one sorting them at the time they
5611 are pushed on the stack.
5612
5613 2013-03-18 Richard Biener <rguenther@suse.de>
5614
5615 PR tree-optimization/39326
5616 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5617 (struct mem_ref): Replace mem member with ao_ref typed member.
5618 (MEM_ANALYZABLE): Adjust.
5619 (memref_eq): Likewise.
5620 (mem_ref_alloc): Likewise.
5621 (gather_mem_refs_stmt): Likewise.
5622 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5623 (execute_sm_if_changed_flag_set): Adjust.
5624 (execute_sm): Likewise.
5625 (ref_always_accessed_p): Likewise.
5626 (refs_independent_p): Likewise.
5627 (can_sm_ref_p): Likewise.
5628
5629 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5630
5631 PR c/56566
5632 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5633 return 1 even for !unsignedp.
5634
5635 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5636
5637 * config/i386/i386.md (isa): Add x64 and nox64.
5638 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5639 (*pushtf): Enable *roF alternative for x64 isa only.
5640 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
5641 mode attribute of integer alternatives to DImode for TARGET_64BIT.
5642 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
5643 (*movtf_internal): Merge from *movtf_internal_rex64 and
5644 *movtf_internal_sse. Use x64 and nox64 isa attributes.
5645 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
5646 nox64 isa attributes.
5647 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
5648 nox64 isa attributes.
5649 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5650
5651 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5652
5653 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5654
5655 2013-03-17 Jakub Jelinek <jakub@redhat.com>
5656
5657 PR target/56640
5658 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5659 class names. Remove trailing comma after "ALL_REGS".
5660
5661 2013-03-16 Jan Hubicka <jh@suse.cz>
5662
5663 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5664 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5665 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5666 of cgraph_get_create_node.
5667 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5668
5669 2013-03-16 Jason Merrill <jason@redhat.com>
5670
5671 PR debug/49090
5672 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5673 with DW_AT_default_value.
5674
5675 2013-03-16 Jakub Jelinek <jakub@redhat.com>
5676
5677 * BASE-VER: Set to 4.9.0.
5678
5679 2013-03-14 Andi Kleen <ak@linux.intel.com>
5680
5681 PR target/56619
5682 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5683 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5684 Document _x* TSX intrinsics.
5685
5686 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5687 David Holsgrove <david.holsgrove@xilinx.com>
5688
5689 * configure.ac: Add MicroBlaze TLS support detection.
5690 * configure: Regenerate.
5691 * config/microblaze/microblaze-protos.h
5692 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5693 symbol_mentioned_p, label_mentioned_p): Add prototypes.
5694 * config/microblaze/microblaze.c (microblaze_address_type): Add
5695 ADDRESS_TLS and tls_reloc address types.
5696 (microblaze_address_info): Add tls_reloc.
5697 (TARGET_HAVE_TLS): Define.
5698 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5699 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5700 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5701 load_tls_operand, microblaze_call_tls_get_addr,
5702 microblaze_legitimize_tls_address): New functions.
5703 (microblaze_classify_unspec): Handle UNSPEC_TLS.
5704 (get_base_reg): Use microblaze_tls_symbol_p.
5705 (microblaze_classify_address): Handle TLS.
5706 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5707 label_mentioned_p and microblaze_tls_referenced_p.
5708 (microblaze_legitimize_address): Handle TLS.
5709 (microblaze_address_insns): Handle ADDRESS_TLS.
5710 (pic_address_needs_scratch): Handle TLS.
5711 (print_operand_address): Handle TLS.
5712 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5713 (microblaze_expand_move): Handle TLS.
5714 (microblaze_legitimate_constant_p): Check
5715 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5716 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5717 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5718 (PIC_OFFSET_TABLE_REGNUM): Set.
5719 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5720 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5721 (addsi3, movsi_internal2, movdf_internal): Update constraints
5722 * config/microblaze/predicates.md (arith_plus_operand): Define
5723 (move_operand): Redefine as move_src_operand,
5724 check microblaze_tls_referenced_p.
5725
5726 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5727
5728 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5729 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5730
5731 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5732
5733 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5734 CC mode for AND.
5735
5736 2013-03-14 Jakub Jelinek <jakub@redhat.com>
5737
5738 PR tree-optimization/53265
5739 * common.opt (Waggressive-loop-optimizations): New option.
5740 * tree-ssa-loop-niter.c: Include tree-pass.h.
5741 (do_warn_aggressive_loop_optimizations): New function.
5742 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
5743 if number_of_latch_executions returned constant.
5744 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5745 early. If number_of_latch_executions returned constant, set
5746 nb_iterations_upper_bound back to it.
5747 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5748 field.
5749 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5750 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5751
5752 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5753 (MULTILIB_OSDIRNAMES): Set.
5754 * genmultilib: If defaultosdirname doesn't start with :: , set
5755 defaultosdirname2 instead, clear it and emit two . multilib_raw
5756 entries instead of just one.
5757
5758 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
5759
5760 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5761 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5762 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5763 (SUBTARGET_OVERRIDE_OPTIONS): New.
5764
5765 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
5766
5767 PR target/49880
5768 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5769 (musermode): Convert to Var(TARGET_USERMODE).
5770 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5771 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5772 * config/sh/sh.c (sh_option_override): Use
5773 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5774 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5775 condition.
5776 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5777 TARGET_SH4.
5778 (udivsi3_i4_single, divsi3_i4_single): Use
5779 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5780
5781 2013-03-13 Dave Korn <dave.korn.cygwin@....>
5782
5783 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5784 default setting.
5785
5786 2013-03-13 Richard Biener <rguenther@suse.de>
5787
5788 PR tree-optimization/56608
5789 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5790 calls when vectorizing basic-blocks.
5791
5792 2013-03-13 Jakub Jelinek <jakub@redhat.com>
5793
5794 PR plugins/45078
5795 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5796 tm_file.
5797
5798 2013-03-12 Jakub Jelinek <jakub@redhat.com>
5799
5800 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5801
5802 2013-03-11 Jan Hubicka <jh@suse.cz>
5803
5804 PR lto/56557
5805 * lto-streamer-out.c (output_symbol_p): Skip references from
5806 constructors of external variables.
5807
5808 2013-03-11 Jan Hubicka <jh@suse.cz>
5809
5810 PR middle-end/56571
5811 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5812 from pseudos.
5813 * emit-rtl.c (verify_rtx_sharing): Likewise.
5814 (copy_insn_1): Likewise.
5815 * rtl.c (copy_rtx): Likewise.
5816
5817 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
5818
5819 PR target/56591
5820 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5821 output_operand_lossage message.
5822
5823 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
5824
5825 PR target/56470
5826 * arm.c (shift_op): Validate RTL pattern on the fly.
5827 (arm_print_operand, case 'S'): Don't use shift_operator to validate
5828 the RTL.
5829
5830 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5831
5832 PR target/56347
5833 * config/pa/pa.md (call_value): Check for calls to powf and direct to
5834 new call patterns that clobber %fr12.
5835 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5836 split and postreload patterns.
5837 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5838 registers %fr12 and %fr12R as call used.
5839
5840 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
5841
5842 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5843 (canon_address, record_store, replace_read, check_mem_read_rtx,
5844 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5845 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5846 rest_of_handle_dse): Likewise.
5847
5848 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5849
5850 PR middle-end/56524
5851 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5852 Add base_optabs.
5853 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5854 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5855 (save_optabs_if_changed): Replace with...
5856 (init_tree_optimization_optabs): ...this.
5857 * optabs.c (save_optabs_if_changed): Rename to...
5858 (init_tree_optimization_optabs): ...this. Take the optimization node
5859 as argument. Do nothing if the base optabs are already correct.
5860 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5861 to recompute optabs.
5862 * function.h (function): Remove optabs field.
5863 * function.c (invoke_set_current_function_hook): Call
5864 init_tree_optimization_optabs. Use the result to initialize
5865 this_fn_optabs.
5866
5867 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
5868
5869 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5870 if GTMA_HAS_NO_INSTRUMENTATION.
5871 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5872 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5873 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5874 * gimple-pretty-print.c (dump_gimple_transaction): Handle
5875 GTMA_HAS_NO_INSTRUMENTATION.
5876
5877 2013-03-08 Jakub Jelinek <jakub@redhat.com>
5878
5879 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5880 libasan_preinit.o.
5881
5882 2013-03-08 Marek Polacek <polacek@redhat.com>
5883 Jakub Jelinek <jakub@redhat.com>
5884
5885 PR tree-optimization/56478
5886 * predict.c (is_comparison_with_loop_invariant_p): Change the
5887 type of loop_step to tree.
5888 (predict_loops): Adjust.
5889 (predict_iv_comparison): Perform the computations on double_ints.
5890
5891 2013-03-08 Richard Biener <rguenther@suse.de>
5892
5893 PR tree-optimization/56570
5894 * tree-cfg.c (verify_expr_location_1): Verify locations for
5895 DECL_DEBUG_EXPR.
5896 * tree-sra.c (create_access_replacement): Strip locations
5897 from DECL_DEBUG_EXPRs.
5898
5899 2013-03-08 Richard Biener <rguenther@suse.de>
5900
5901 * tree-inline.c (expand_call_inline): Do not associate
5902 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5903 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5904
5905 2013-03-08 Richard Biener <rguenther@suse.de>
5906
5907 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5908 or block changes with -Og. Fix for location / block encoding
5909 changes and PHI arguments with locations.
5910
5911 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
5912
5913 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5914 for all counters.
5915 (struct output_info): Likewise.
5916 (register_overhead): Remove bad gcc_assert.
5917 (bitmap_find_bit): If there is only a single bitmap element, do not
5918 count a miss as a search.
5919 (print_statistics): Update for counter type changes.
5920 (dump_bitmap_statistics): Likewise. Print headers such that they
5921 are properly lined up with the printed counters.
5922
5923 2013-03-07 Jakub Jelinek <jakub@redhat.com>
5924
5925 PR tree-optimization/56559
5926 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5927 check that it has only a single use.
5928
5929 2013-03-07 Richard Biener <rguenther@suse.de>
5930
5931 * doc/invoke.texi (fwhole-program): Discourage use in combination
5932 with -flto.
5933
5934 2013-03-06 Jakub Jelinek <jakub@redhat.com>
5935
5936 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5937
5938 PR tree-optimization/56539
5939 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5940 instead of GSI_CONTINUE_LINKING as last argument to
5941 force_gimple_operand_gsi. Adjust function comment.
5942
5943 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5944 aarch64-cores.def.
5945
5946 PR middle-end/56548
5947 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5948 promoted mode, convert the result back to the original mode.
5949
5950 2013-03-06 Richard Biener <rguenther@suse.de>
5951
5952 PR middle-end/56294
5953 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5954 (insert_updated_phi_nodes_compare_uids): New function.
5955 (update_ssa): Sort symbols_to_rename after UID before
5956 traversing it to insert PHI nodes.
5957
5958 2013-03-06 Richard Biener <rguenther@suse.de>
5959
5960 PR middle-end/50494
5961 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5962 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5963
5964 Revert
5965 2013-02-13 Richard Biener <rguenther@suse.de>
5966
5967 PR lto/50494
5968 * varasm.c (output_constant_def_1): Get the decl representing
5969 the constant as argument.
5970 (output_constant_def): Wrap output_constant_def_1.
5971 (make_decl_rtl): Use output_constant_def_1 with the decl
5972 representing the constant.
5973 (build_constant_desc): Optionally re-use a decl already
5974 representing the constant.
5975 (tree_output_constant_def): Adjust.
5976
5977 2013-03-06 Joey Ye <joey.ye@arm.com>
5978
5979 PR lto/50293
5980 * gcc.c (convert_white_space): New function.
5981 (main): Handles white space in function name.
5982
5983 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5984
5985 PR target/56529
5986 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5987 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
5988 to SH_DIV_CALL_TABLE for TARGET_SH2.
5989 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5990 list.
5991 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5992 call-table options.
5993
5994 2013-03-05 Sterling Augustine <saugustine@google.com>
5995 Cary Coutant <ccoutant@google.com>
5996
5997 PR debug/55364
5998 * dwarf2out.c (resolve_addr): Don't call
5999 remove_loc_list_addr_table_entries a second time for the same
6000 expression.
6001
6002 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6003
6004 PR debug/56510
6005 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6006 (avoid_complex_debug_insns): New function.
6007 (expand_debug_locations): Call it.
6008
6009 PR rtl-optimization/56484
6010 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6011 lifetimes of hard registers on small register class machines.
6012
6013 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6014
6015 * config/microblaze/microblaze-protos.h: Rename
6016 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6017 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
6018 fast_interrupt.
6019 (microblaze_fast_interrupt_function_p): New function.
6020 (microblaze_is_interrupt_handler): Rename to
6021 microblaze_is_interrupt_variant and add fast_interrupt check.
6022 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6023 (save_restore_insns): Likewise.
6024 (compute_frame_size): Likewise.
6025 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6026 (microblaze_globalize_label): Likewise.
6027 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6028 * config/microblaze/microblaze.md: Use wrapper
6029 microblaze_is_interrupt_variant.
6030
6031 2013-03-05 Kai Tietz <ktietz@redhat.com>
6032
6033 * sdbout.c (sdbout_one_type): Switch to current function's section
6034 supporting cold/hot.
6035
6036 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6037
6038 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6039 -mxl-reorder.
6040
6041 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6042
6043 PR middle-end/56461
6044 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6045 if VALGRIND_GET_VBITS is defined, temporarily make object
6046 memory all defined, and restore previous valgrind addressability
6047 and definability afterwards. Free this_object at the end.
6048
6049 PR middle-end/56461
6050 * lra.c (lra): Call lra_clear_live_ranges if live_p,
6051 right before calling lra_create_live_ranges, also call it
6052 when clearing live_p. Only call lra_clear_live_ranges
6053 at the end if live_p.
6054
6055 PR middle-end/56461
6056 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6057
6058 2013-03-05 Richard Biener <rguenther@suse.de>
6059
6060 PR tree-optimization/56521
6061 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6062 value-id.
6063
6064 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
6065
6066 PR c++/55135
6067 * except.h (remove_unreachable_eh_regions): New prototype.
6068 * except.c (remove_eh_handler_splicer): New function, split out
6069 of remove_eh_handler.
6070 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
6071 warning about running it on many EH regions one at a time.
6072 (remove_unreachable_eh_regions_worker): New function, walk the
6073 EH tree in depth-first order and remove non-marked regions.
6074 (remove_unreachable_eh_regions): New function.
6075 * tree-eh.c (mark_reachable_handlers): New function, split out
6076 from remove_unreachable_handlers.
6077 (remove_unreachable_handlers): Use mark_reachable_handlers and
6078 remove_unreachable_eh_regions.
6079 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6080 and remove_unreachable_eh_regions.
6081
6082 2013-03-05 Richard Biener <rguenther@suse.de>
6083
6084 PR middle-end/56525
6085 * loop-init.c (fix_loop_structure): Remove loops in two stages,
6086 not freeing them until the end.
6087
6088 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6089
6090 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6091
6092 2013-03-05 Richard Biener <rguenther@suse.de>
6093
6094 PR tree-optimization/56270
6095 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6096 of loads after scheduling an SLP instance.
6097
6098 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6099
6100 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6101 tic6x.exp.
6102 (check_gcc_parallelize): Run guality.exp as a separate job from
6103 vect.exp with unsorted.exp and $(dg_target_exps) separately from
6104 struct-layout-1.exp with stackalign.exp.
6105
6106 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6107
6108 PR middle-end/56461
6109 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6110 load_index sbitmap even if some bit in it isn't set.
6111
6112 PR middle-end/56461
6113 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6114 (discover_iteration_bound_by_body_walk): Change queues to
6115 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
6116 spelling in comment. Call safe_push on queues[bound_index] directly.
6117 Release queues[queue_index] in every iteration unconditionally.
6118 Release bounds vector.
6119
6120 PR middle-end/56461
6121 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6122 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6123 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6124 inner_phis vector.
6125
6126 2013-03-05 Richard Biener <rguenther@suse.de>
6127
6128 PR lto/56515
6129 * tree-inline.c (remap_blocks_to_null): New function.
6130 (expand_call_inline): When expanding a call stmt without
6131 an associated block inline remap all callee blocks to NULL.
6132
6133 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6134
6135 PR rtl-optimization/56494
6136 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6137 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6138 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6139
6140 PR middle-end/56461
6141 * sel-sched-ir.c (free_sched_pools): Release
6142 succs_info_pool.stack[succs_info_pool.max_top] vectors too
6143 if succs_info_pool.max_top isn't -1.
6144
6145 PR bootstrap/56509
6146 * opts.c (opts_obstack, opts_concat): Moved to...
6147 * opts-common.c (opts_obstack, opts_concat): ... here.
6148
6149 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6150
6151 PR middle-end/56461
6152 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6153
6154 2013-03-04 Martin Jambor <mjambor@suse.cz>
6155
6156 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6157 all appropriate places.
6158
6159 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
6160
6161 PR tree-optimization/56424
6162 * ipa-split.c (split_function): Do not set the RSO flag if result is
6163 not by reference and its type is a register type.
6164
6165 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
6166
6167 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
6168 (microblaze_legitimate_pic_operand): Likewise
6169 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
6170 new function microblaze_legitimate_pic_operand
6171 * config/microblaze/microblaze-protos.h
6172 (microblaze_legitimate_pic_operand): Declare.
6173
6174 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6175
6176 * config/microblaze/predicates.md (call_insn_simple_operand):
6177 New predicate for supported rtx code types.
6178 * config/microblaze/microblaze.md (call_internal1): Use
6179 call_insn_simple_operand predicate.
6180
6181 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6182
6183 PR middle-end/56461
6184 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6185 partitions.ordered_remove.
6186
6187 PR middle-end/56461
6188 * tree-vect-stmts.c (vectorizable_conversion): Don't call
6189 vec_oprnds0.create (1) for modifier == NONE.
6190
6191 PR middle-end/56461
6192 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6193 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6194 vec_oprnds1 right before pushing anything to it for
6195 scalar_shift_arg.
6196
6197 PR middle-end/56461
6198 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6199 set nbbs to 0 instead of having separate code path.
6200 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6201 instead of false as last argument if returning NULL.
6202
6203 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
6204
6205 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6206 the attribute is now called "target" instead of "option".
6207 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6208 * doc/tm.texi.in (Target Attributes): Likewise document the correct
6209 attribute/pragma name for TARGET_OPTION_VALID_P and
6210 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
6211 * doc/tm.texi: Regenerated.
6212
6213 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
6214
6215 * config/microblaze/microblaze.c:
6216 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
6217 * config/microblaze/microblaze.h: Add -mxl-reorder to
6218 DRIVER_SELF_SPECS.
6219 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6220 instructions emitted if TARGET_REORDER.
6221 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6222 or 0 for -m/-mno case, but initialises as 2 to detect default use case
6223 separately.
6224
6225 2013-03-01 Xinliang David Li <davidxl@google.com>
6226
6227 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6228 walk length.
6229
6230 2013-03-01 Jakub Jelinek <jakub@redhat.com>
6231
6232 PR middle-end/56461
6233 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6234 vector even when returning true. Fix up function comment formatting.
6235
6236 PR middle-end/56461
6237 * ira-build.c (ira_loop_nodes_count): New variable.
6238 (create_loop_tree_nodes): Initialize it.
6239 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6240
6241 PR middle-end/56461
6242 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6243 method on dr_chain and result_chain.
6244 * tree-vect-stmts.c (vectorizable_store): Only call
6245 result_chain.create if j == 0.
6246
6247 PR middle-end/56461
6248 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6249 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6250 before overwriting it.
6251
6252 2013-03-01 Tobias Burnus <burnus@net-b.de>
6253
6254 * doc/extended.texi (C Extensions): Change order in @menu
6255 to match @node.
6256 (Other MIPS Built-in Functions): Move last MIPS entry before
6257 "picoChip Built-in Functions".
6258 (SH Built-in Functions): Move after RX Built-in Functions.
6259 * doc/gcc.texi (Introduction): Change order in @menu
6260 to match @node.
6261 * doc/md.texi (Constraints): Ditto.
6262 * gty.texi (Type Information): Ditto.
6263 (User-provided marking routines for template types): Make
6264 subsection.
6265 * doc/invoke.texi (AArch64 Options): Move before
6266 "Adapteva Epiphany Options".
6267
6268 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6269 Jakub Jelinek <jakub@redhat.com>
6270
6271 PR sanitizer/56454
6272 * asan.c (gate_asan): Lookup no_sanitize_address instead of
6273 no_address_safety_analysis attribute.
6274 * doc/extend.texi (no_address_safety_attribute): Rename to
6275 no_sanitize_address attribute, mention no_address_safety_analysis
6276 attribute as deprecated alias.
6277
6278 2013-02-28 Jakub Jelinek <jakub@redhat.com>
6279
6280 PR middle-end/56461
6281 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6282 type to vec<vec<tree> > *.
6283 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
6284 to be vec<tree> instead of vec<tree> *, set vec_defs
6285 to vNULL and call vec_defs.create (number_of_vects), adjust other
6286 uses of vec_defs.
6287 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6288 vectorizable_condition): Adjust vect_get_slp_defs callers.
6289
6290 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6291
6292 * config/aarch64/aarch64.c
6293 (aarch64_float_const_representable): Remove unused variable.
6294
6295 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6296
6297 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6298
6299 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6300
6301 * config/aarch64/aarch64-builtins.c
6302 (aarch64_init_simd_builtins): Make static.
6303
6304 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6305
6306 * config/aarch64/aarch64.c
6307 (aarch64_simd_make_constant): Make static.
6308
6309 2013-02-28 Martin Jambor <mjambor@suse.cz>
6310
6311 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6312 with no initialization to the RHS of debug statements.
6313
6314 2013-02-28 Martin Jambor <mjambor@suse.cz>
6315
6316 PR tree-optimization/56294
6317 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6318 Adjust dumping.
6319 (get_access_replacement): Do not call create_access_replacement.
6320 Assert a replacement exists.
6321 (get_repl_default_def_ssa_name): Create the replacement declaration
6322 itself.
6323
6324 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6325
6326 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6327 final_end_function.
6328
6329 2013-02-28 Marek Polacek <polacek@redhat.com>
6330
6331 PR rtl-optimization/56466
6332 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6333 if we're changing a loop.
6334 (peel_loops_completely): Likewise.
6335
6336 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
6337
6338 PR c++/55813
6339 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6340
6341 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6342
6343 PR target/56445
6344 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6345 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6346 INTX_FTYPE_FX, FX_FTYPE_INTX.
6347 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6348
6349 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6350
6351 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6352 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6353 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6354 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6355 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6356 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6357 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6358 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6359 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6360 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6361 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6362 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6363 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6364 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6365 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6366 (avrxmega6): Increase max flash segments from 5 to 6.
6367 * config/avr/t-multilib: Regenerate.
6368 * config/avr/avr-tables.opt: Regenerate.
6369 * doc/avr-mmcu.texi: Regenerate.
6370
6371 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6372
6373 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6374 (avr_device_to_arch): Rename to avr_device_to_ld.
6375 (avr_device_to_as): New prototype.
6376 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6377 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6378 * config/avr/driver-avr.c (avr_device_to_as): New.
6379 (avr_device_to_arch): Rename to avr_device_to_ld.
6380
6381 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6382
6383 PR middle-end/56461
6384 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6385 method on dr_chain and result_chain.
6386
6387 PR middle-end/56461
6388 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6389 pointer_set_destroy on not_executed_last_iteration.
6390
6391 PR middle-end/56461
6392 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
6393
6394 PR middle-end/56461
6395 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6396 FOR_EACH_DEFINED_FUNCTION when freeing state.
6397
6398 PR middle-end/56461
6399 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6400 pool_free.
6401 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6402 overwriting it.
6403
6404 PR middle-end/56461
6405 * ipa-cp.c (decide_whether_version_node): Call vec_free on
6406 known_aggs[i].items and release known_aggs vector.
6407
6408 PR middle-end/56461
6409 * ipa-reference.c (propagate): Free node_info even for alias nodes.
6410
6411 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6412
6413 * config/microblaze/microblaze.c (microblaze_emit_compare):
6414 Use xor for EQ/NE comparisions.
6415 * config/microblaze/microblaze.md (cstoresf4): Add constraints
6416 (cbranchsf4): Adjust operator to comparison_operator.
6417
6418 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6419
6420 PR middle-end/56461
6421 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6422 vector.
6423 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6424 vec_safe_push, always update *slot.
6425 (redirect_edge_var_map_clear): Use vec_free.
6426 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6427 (free_var_map_entry): Use vec_free.
6428 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6429 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6430
6431 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
6432
6433 PR middle-end/45472
6434 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6435 when the may_trap_p bit of the exprs being merged differs.
6436 Reorder tests for speculativeness in the logical and operator.
6437
6438 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6439
6440 * incpath.c (add_standard_paths): Use reconcat instead of concat
6441 where appropriate and avoid leaking memory.
6442
6443 * opts.h: Include obstack.h.
6444 (opts_concat): New prototype.
6445 (opts_obstack): New declaration.
6446 * opts.c (opts_concat): New function.
6447 (opts_obstack): New variable.
6448 (init_options_struct): Call gcc_init_obstack on opts_obstack.
6449 (finish_options): Use opts_concat instead of concat
6450 and XOBNEWVEC instead of XNEWVEC.
6451 * opts-common.c (generate_canonical_option, decode_cmdline_option,
6452 generate_option): Likewise.
6453 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6454 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6455
6456 PR target/56455
6457 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6458 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6459
6460 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6461
6462 PR middle-end/56461
6463 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6464
6465 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6466
6467 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6468 (arm_block_move_unaligned_straight): Likewise.
6469 (arm_adjust_block_mem): Likewise.
6470
6471 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6472
6473 PR target/48901
6474 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6475 temp, cond and label.
6476 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6477
6478 PR target/52500
6479 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6480 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6481
6482 PR target/52501
6483 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6484 of prologue/epilogue functions.
6485
6486 PR target/52550
6487 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6488 Remove unused variable cfa_offset.
6489 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6490
6491 PR target/54639
6492 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6493 type promotion to unsigned.
6494
6495 PR target/54640
6496 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6497 for HOST_WIDE_INT of 32 bit / same size as int.
6498 (arm_block_move_unaligned_straight): Likewise.
6499 (arm_adjust_block_mem): Likewise.
6500
6501 PR target/54662
6502 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6503 ALL_CFLAGS.
6504
6505 2013-02-26 Marek Polacek <polacek@redhat.com>
6506
6507 PR tree-optimization/56426
6508 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6509
6510 2013-02-26 Richard Biener <rguenther@suse.de>
6511
6512 PR target/56444
6513 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6514 unused variable loops.
6515
6516 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6517
6518 PR tree-optimization/56448
6519 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6520 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6521 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6522 later operands of the references, or even first operand for
6523 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6524
6525 PR tree-optimization/56443
6526 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6527 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6528 to type_for_mode langhook.
6529
6530 2013-02-25 Matt Turner <mattst88@gmail.com>
6531
6532 * doc/invoke.texi: Document r4700.
6533
6534 2013-02-25 Richard Biener <rguenther@suse.de>
6535
6536 PR tree-optimization/56175
6537 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6538 split out from ...
6539 (simplify_bitwise_binary): ... here. Also guard the conversion
6540 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6541
6542 2013-02-25 Catherine Moore <clm@codesourcery.com>
6543
6544 Revert:
6545 2013-02-24 Catherine Moore <clm@codesourcery.com>
6546 Maciej W. Rozycki <macro@codesourcery.com>
6547 Tom de Vries <tom@codesourcery.com>
6548 Nathan Sidwell <nathan@codesourcery.com>
6549 Iain Sandoe <iain@codesourcery.com>
6550 Nathan Froyd <froydnj@codesourcery.com>
6551 Chao-ying Fu <fu@mips.com>
6552
6553 * doc/extend.texi: (micromips, nomicromips, nocompression):
6554 Document new function attributes.
6555 * doc/invoke.texi (minterlink-compressed, mmicromips,
6556 m14k, m14ke, m14kec): Document new options.
6557 (minterlink-mips16): Update documentation.
6558 * doc/md.texi (ZC, ZD): Document new constraints.
6559 * configure.ac (gcc_cv_as_micromips): Check if linker
6560 supports the .set micromips directive.
6561 * configure: Regenerate.
6562 * config.in: Regenerate.
6563 * config/mips/mips-tables.opt: Regenerate.
6564 * config/mips/micromips.md: New file.
6565 * constraints.md (ZC, AD): New constraints.
6566 * config/mips/predicates.md (movep_src_register): New predicate.
6567 (movep_src_operand): New predicate.
6568 (non_volatile_mem_operand): New predicate.
6569 * config/mips/mips.md (multimem): New type.
6570 (length): Differentiate between 17-bit and 18-bit branch offsets.
6571 (MOVEP1, MOVEP2): New mode iterator.
6572 (mov_<load>l): Use ZC constraint.
6573 (mov_<load>r): Likewise.
6574 (mov_<store>l): Likewise.
6575 (mov_<store>r): Likewise.
6576 (*branch_equality<mode>_inverted): Add microMIPS support.
6577 (*branch_equality<mode>): Likewise.
6578 (*jump_absolute): Likewise.
6579 (indirect_jump_<mode>): Likewise.
6580 (tablejump_<mode>): Likewise.
6581 (<optab>_internal): Likewise.
6582 (sibcall_internal): Likewise.
6583 (sibcall_value_internal): Likewise.
6584 (prefetch): Use constraint ZD.
6585 * config/mips/mips.opt (minterlink-compressed): New option.
6586 (minterlink-mips16): Now an alias for minterlink-compressed.
6587 (mmicromips): New option.
6588 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6589 (compare_and_swap_12): Likewise.
6590 (sync_add<mode>): Likewise.
6591 (sync_<optab>_12): Likewise.
6592 (sync_old_<optab>_12): Likewise.
6593 (sync_new_<optab>_12): Likewise.
6594 (sync_nand_12): Likewise.
6595 (sync_old_nand_12): Likewise.
6596 (sync_new_nand_12): Likewise.
6597 (sync_sub<mode>): Likewise.
6598 (sync_old_add<mode>): Likewise.
6599 (sync_old_sub<mode>): Likewise.
6600 (sync_new_add<mode>): Likewise.
6601 (sync_new_sub<mode>): Likewise.
6602 (sync_<optab><mode>): Likewise.
6603 (sync_old_<optab><mode>): Likewise.
6604 (sync_new_<optab><mode>): Likewise.
6605 (sync_nand<mode>): Likewise.
6606 (sync_old_nand<mode>): Likewise.
6607 (sync_new_nand<mode>): Likewise.
6608 (sync_lock_test_and_set<mode>): Likewise.
6609 (test_and_set_12): Likewise.
6610 (atomic_compare_and_swap<mode>): Likewise.
6611 (atomic_exchange<mode>_llsc): Likewise.
6612 (atomic_fetch_add<mode>_llsc): Likewise.
6613 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6614 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6615 (umips_save_restore_pattern_p): Likewise.
6616 (umips_load_store_pair_p): Likewise.
6617 (umips_output_load_store_pair): Likewise.
6618 (umips_movep_target_p): Likewise.
6619 (umips_12bit_offset_address_p): Likewise.
6620 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6621 (mips_base_mips16): Rename this...
6622 (mips_base_compression_flags): ...to this. Update all uses.
6623 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6624 (mips_mips16_decl_p): Delete.
6625 (mips_nomips16_decl_p): Delete.
6626 (mips_get_compress_on_flags): New function.
6627 (mips_get_compress_off_flags): New function.
6628 (mips_get_compress_mode): New function.
6629 (mips_get_compress_on_name): New function.
6630 (mips_get_compress_off_name): New function.
6631 (mips_insert_attributes): Support multiple compression types.
6632 (mips_merge_decl_attributes): Likewise.
6633 (umips_12bit_offset_address_p): New function.
6634 (mips_start_function_definition): Emit .set micromips directive.
6635 (mips_call_may_need_jalx_p): New function.
6636 (mips_function_ok_for_sibcall): Add microMIPS support.
6637 (mips_print_operand_punctuation): Support short delay slots and
6638 compact jumps.
6639 (umips_swm_mask, umips_swm_encoding): New.
6640 (umips_build_save_restore): New function.
6641 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6642 (was_mips16_p): Remove.
6643 (old_compression_mode): New.
6644 (mips_set_compression_mode): New function.
6645 (mips_set_current_function): Add microMIPS support.
6646 (mips_option_override): Likewise.
6647 (umips_save_restore_pattern_p): New function.
6648 (umips_output_save_restore): New function.
6649 (umips_load_store_pair_p_1): New function.
6650 (umips_load_store_pair_p): New function.
6651 (umips_output_load_store_pair_1): New function.
6652 (umips_output_load_store_pair): New function.
6653 (umips_movep_target_p) New function.
6654 (mips_prepare_pch_save): Add microMIPS support.
6655 * config/mips/mips.h (TARGET_COMPRESSION): New.
6656 (TARGET_CPU_CPP_BUILTINS): Update macro
6657 to use new compression flags and to support microMIPS.
6658 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6659 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6660 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6661 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6662 (ASM_SPEC): Support mmicromips and mno-micromips.
6663 (M16STORE_REG_P): New macro.
6664 (MIPS_CALL): Support TARGET_MICROMIPS.
6665 (MICROMIPS_J): New macro.
6666 (mips_base_mips16): Rename this...
6667 (mips_base_compression_flags): ...to this.
6668 (UMIPS_12BIT_OFFSET_P): New macro.
6669 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6670 (MULTILIB_DIRNAMES): Likewise.
6671
6672 2013-02-25 Tom de Vries <tom@codesourcery.com>
6673
6674 PR rtl-optimization/56131
6675 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6676 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6677 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6678
6679 2013-02-25 Tobias Burnus <burnus@net-b.de>
6680
6681 * doc/invoke.texi (-fsanitize=): Move from optimization
6682 to debugging options.
6683
6684 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6685
6686 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6687
6688 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6689 Alexander Monakov <amonakov@ispras.ru>
6690
6691 PR middle-end/56077
6692 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6693 flush pending lists also on non-jumps. Adjust comment.
6694
6695 2013-02-24 Catherine Moore <clm@codesourcery.com>
6696 Maciej W. Rozycki <macro@codesourcery.com>
6697 Tom de Vries <tom@codesourcery.com>
6698 Nathan Sidwell <nathan@codesourcery.com>
6699 Iain Sandoe <iain@codesourcery.com>
6700 Nathan Froyd <froydnj@codesourcery.com>
6701 Chao-ying Fu <fu@mips.com>
6702
6703 * doc/extend.texi: (micromips, nomicromips, nocompression):
6704 Document new function attributes.
6705 * doc/invoke.texi (minterlink-compressed, mmicromips,
6706 m14k, m14ke, m14kec): Document new options.
6707 (minterlink-mips16): Update documentation.
6708 * doc/md.texi (ZC, ZD): Document new constraints.
6709 * configure.ac (gcc_cv_as_micromips): Check if linker
6710 supports the .set micromips directive.
6711 * configure: Regenerate.
6712 * config.in: Regenerate.
6713 * config/mips/mips-tables.opt: Regenerate.
6714 * config/mips/micromips.md: New file.
6715 * constraints.md (ZC, AD): New constraints.
6716 * config/mips/predicates.md (movep_src_register): New predicate.
6717 (movep_src_operand): New predicate.
6718 (non_volatile_mem_operand): New predicate.
6719 * config/mips/mips.md (multimem): New type.
6720 (length): Differentiate between 17-bit and 18-bit branch offsets.
6721 (MOVEP1, MOVEP2): New mode iterator.
6722 (mov_<load>l): Use ZC constraint.
6723 (mov_<load>r): Likewise.
6724 (mov_<store>l): Likewise.
6725 (mov_<store>r): Likewise.
6726 (*branch_equality<mode>_inverted): Add microMIPS support.
6727 (*branch_equality<mode>): Likewise.
6728 (*jump_absolute): Likewise.
6729 (indirect_jump_<mode>): Likewise.
6730 (tablejump_<mode>): Likewise.
6731 (<optab>_internal): Likewise.
6732 (sibcall_internal): Likewise.
6733 (sibcall_value_internal): Likewise.
6734 (prefetch): Use constraint ZD.
6735 * config/mips/mips.opt (minterlink-compressed): New option.
6736 (minterlink-mips16): Now an alias for minterlink-compressed.
6737 (mmicromips): New option.
6738 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6739 (compare_and_swap_12): Likewise.
6740 (sync_add<mode>): Likewise.
6741 (sync_<optab>_12): Likewise.
6742 (sync_old_<optab>_12): Likewise.
6743 (sync_new_<optab>_12): Likewise.
6744 (sync_nand_12): Likewise.
6745 (sync_old_nand_12): Likewise.
6746 (sync_new_nand_12): Likewise.
6747 (sync_sub<mode>): Likewise.
6748 (sync_old_add<mode>): Likewise.
6749 (sync_old_sub<mode>): Likewise.
6750 (sync_new_add<mode>): Likewise.
6751 (sync_new_sub<mode>): Likewise.
6752 (sync_<optab><mode>): Likewise.
6753 (sync_old_<optab><mode>): Likewise.
6754 (sync_new_<optab><mode>): Likewise.
6755 (sync_nand<mode>): Likewise.
6756 (sync_old_nand<mode>): Likewise.
6757 (sync_new_nand<mode>): Likewise.
6758 (sync_lock_test_and_set<mode>): Likewise.
6759 (test_and_set_12): Likewise.
6760 (atomic_compare_and_swap<mode>): Likewise.
6761 (atomic_exchange<mode>_llsc): Likewise.
6762 (atomic_fetch_add<mode>_llsc): Likewise.
6763 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6764 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6765 (umips_save_restore_pattern_p): Likewise.
6766 (umips_load_store_pair_p): Likewise.
6767 (umips_output_load_store_pair): Likewise.
6768 (umips_movep_target_p): Likewise.
6769 (umips_12bit_offset_address_p): Likewise.
6770 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6771 (mips_base_mips16): Rename this...
6772 (mips_base_compression_flags): ...to this. Update all uses.
6773 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6774 (mips_mips16_decl_p): Delete.
6775 (mips_nomips16_decl_p): Delete.
6776 (mips_get_compress_on_flags): New function.
6777 (mips_get_compress_off_flags): New function.
6778 (mips_get_compress_mode): New function.
6779 (mips_get_compress_on_name): New function.
6780 (mips_get_compress_off_name): New function.
6781 (mips_insert_attributes): Support multiple compression types.
6782 (mips_merge_decl_attributes): Likewise.
6783 (umips_12bit_offset_address_p): New function.
6784 (mips_start_function_definition): Emit .set micromips directive.
6785 (mips_call_may_need_jalx_p): New function.
6786 (mips_function_ok_for_sibcall): Add microMIPS support.
6787 (mips_print_operand_punctuation): Support short delay slots and
6788 compact jumps.
6789 (umips_swm_mask, umips_swm_encoding): New.
6790 (umips_build_save_restore): New function.
6791 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6792 (was_mips16_p): Remove.
6793 (old_compression_mode): New.
6794 (mips_set_compression_mode): New function.
6795 (mips_set_current_function): Add microMIPS support.
6796 (mips_option_override): Likewise.
6797 (umips_save_restore_pattern_p): New function.
6798 (umips_output_save_restore): New function.
6799 (umips_load_store_pair_p_1): New function.
6800 (umips_load_store_pair_p): New function.
6801 (umips_output_load_store_pair_1): New function.
6802 (umips_output_load_store_pair): New function.
6803 (umips_movep_target_p) New function.
6804 (mips_prepare_pch_save): Add microMIPS support.
6805 * config/mips/mips.h (TARGET_COMPRESSION): New.
6806 (TARGET_CPU_CPP_BUILTINS): Update macro
6807 to use new compression flags and to support microMIPS.
6808 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6809 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6810 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6811 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6812 (ASM_SPEC): Support mmicromips and mno-micromips.
6813 (M16STORE_REG_P): New macro.
6814 (MIPS_CALL): Support TARGET_MICROMIPS.
6815 (MICROMIPS_J): New macro.
6816 (mips_base_mips16): Rename this...
6817 (mips_base_compression_flags): ...to this.
6818 (UMIPS_12BIT_OFFSET_P): New macro.
6819 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6820 (MULTILIB_DIRNAMES): Likewise.
6821
6822 2013-02-24 Jakub Jelinek <jakub@redhat.com>
6823
6824 PR target/52555
6825 * target-globals.c (save_target_globals): For init_reg_sets and
6826 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6827
6828 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
6829
6830 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6831 * config/aarch64/t-aarch64
6832 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6833
6834 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
6835
6836 PR inline-asm/56148
6837 * lra-constraints.c (process_alt_operands): Reload operand
6838 conflicting with earlier clobber only if no more other conflicting
6839 operands.
6840
6841 2013-02-22 Jakub Jelinek <jakub@redhat.com>
6842
6843 PR sanitizer/56393
6844 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6845 if not linking a shared library.
6846
6847 2013-02-22 Seth LaForge <sethml@google.com>
6848
6849 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6850
6851 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
6852
6853 * config/arm/arm.md (split for extendsidi): Update condition.
6854 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6855 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6856 (qhs_zextenddi_cstr): Likewise.
6857
6858 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6859
6860 PR middle-end/56420
6861 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6862 avoid signed wrapping.
6863 (expand_mult): Handle properly multiplication by
6864 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
6865 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
6866 in the compiler if coeff is HOST_WIDE_INT_MIN.
6867 (expand_divmod): Don't make ext_op1 static, change it's type to
6868 uhwi. Avoid undefined behavior in -INTVAL (op1).
6869
6870 PR rtl-optimization/50339
6871 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6872 field.
6873 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6874 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6875 into splitting_ashiftrt field.
6876 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6877 ASHIFTRT.
6878 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6879 choices.
6880
6881 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
6882
6883 PR middle-end/56108
6884 * trans-mem.c (execute_tm_mark): Do not expand transactions that
6885 are sure to go irrevocable.
6886
6887 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
6888
6889 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6890 scalars are valid operands.
6891
6892 2013-02-21 Martin Jambor <mjambor@suse.cz>
6893
6894 PR tree-optimization/56310
6895 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6896 only matching indices and non-negative final offsets.
6897 (intersect_aggregates_with_edge): Pass src_idx to
6898 agg_replacements_to_vector. Pass src_idx insstead of index to
6899 intersect_with_agg_replacements.
6900
6901 2013-02-21 Martin Jambor <mjambor@suse.cz>
6902
6903 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6904 instead of hard-wired defaults.
6905
6906 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
6907
6908 * doc/invoke.texi (MIPS Options): Update documentation of the
6909 floating-point multiply-accumulate instruction restrictions.
6910
6911 2013-02-21 Kostya Serebryany <kcc@google.com>
6912
6913 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6914 asan_shadow_offset on x86_64 linux.
6915
6916 2013-02-21 Richard Biener <rguenther@suse.de>
6917
6918 PR tree-optimization/56415
6919 Revert
6920 2013-02-11 Richard Biener <rguenther@suse.de>
6921
6922 PR tree-optimization/56273
6923 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6924 first VRP run.
6925
6926 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6927
6928 PR bootstrap/56258
6929 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6930 instead of @itemx.
6931
6932 PR inline-asm/56405
6933 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6934 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6935
6936 2013-02-20 Jan Hubicka <jh@suse.cz>
6937
6938 PR tree-optimization/56265
6939 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6940 when target is referenced for first time.
6941
6942 2013-02-20 Richard Biener <rguenther@suse.de>
6943
6944 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6945 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6946 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6947 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6948 not return anything.
6949 (rename_ssa_copies): Do not remove unused locals.
6950 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6951 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6952 * passes.c (execute_function_todo): Do not schedule unused locals
6953 removal if cleanup_tree_cfg did something.
6954 * tree-ssa-live.c (remove_unused_locals): Dump statistics
6955 about the number of removed locals.
6956
6957 2013-02-20 Richard Biener <rguenther@suse.de>
6958
6959 PR tree-optimization/56398
6960 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6961
6962 2013-02-20 Martin Jambor <mjambor@suse.cz>
6963
6964 PR tree-optimization/55334
6965 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6966 restricted pointers to arrays.
6967
6968 2013-02-20 Richard Biener <rguenther@suse.de>
6969 Jakub Jelinek <jakub@redhat.com>
6970
6971 PR tree-optimization/56396
6972 * tree-ssa-ccp.c (n_const_val): New static variable.
6973 (get_value): Return NULL for SSA names we don't have a lattice
6974 entry for.
6975 (ccp_initialize): Initialize n_const_val.
6976 * tree-ssa-copy.c (n_copy_of): New static variable.
6977 (init_copy_prop): Initialize n_copy_of.
6978 (get_value): Return NULL_TREE for SSA names we don't have a
6979 lattice entry for.
6980
6981 2013-02-20 Martin Jambor <mjambor@suse.cz>
6982
6983 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6984
6985 2013-02-20 Richard Biener <rguenther@suse.de>
6986
6987 * genpreds.c (write_lookup_constraint): Do not compare first
6988 letter of the constraint again.
6989
6990 2013-02-20 Richard Biener <rguenther@suse.de>
6991
6992 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6993 and ceil_log2.
6994 (get_use_iv_cost): Terminate hashtable walk when coming across
6995 an empty entry.
6996
6997 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
6998
6999 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7000 reassociation for avx2 targets.
7001
7002 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7003
7004 * config/microblaze/microblaze.c: microblaze_has_clz = 0
7005 Add version check for v8.10.a to enable microblaze_has_clz
7006 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
7007 version and TARGET_PATTERN_COMPARE check
7008 * config/microblaze/microblaze.md: New clzsi2 instruction
7009
7010 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7011
7012 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
7013 function before branching.
7014
7015 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
7016
7017 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7018 DUMP_INSN_RTX_UID.
7019 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7020
7021 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
7022
7023 PR middle-end/55889
7024 * sel-sched.c: Include ira.h.
7025 (implicit_clobber_conflict_p): New function.
7026 (moveup_expr): Use it.
7027 * Makefile.in (sel-sched.o): Depend on ira.h.
7028
7029 2013-02-19 Richard Biener <rguenther@suse.de>
7030
7031 PR tree-optimization/56384
7032 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7033 (vn_hash_type): Split out from ...
7034 (vn_hash_constant_with_type): ... here.
7035 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7036 (vn_phi_eq): Compare types from vn_phi_s structure.
7037 (vn_phi_lookup): Populate vn_phi_s type.
7038 (vn_phi_insert): Likewise.
7039
7040 2013-02-19 Jakub Jelinek <jakub@redhat.com>
7041
7042 PR tree-optimization/56350
7043 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7044 if haven't found reduction or nested cycle operand, rather than
7045 asserting we must find it.
7046
7047 PR tree-optimization/56381
7048 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7049 to fold_build3.
7050
7051 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
7052 Jakub Jelinek <jakub@redhat.com>
7053
7054 PR target/52555
7055 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7056 (swap_optab_enable): Same.
7057 (init_all_optabs): Use argument instead of global.
7058 * tree.h (struct tree_optimization_option): New field target_optabs.
7059 * expr.h (init_all_optabs): Add argument to prototype.
7060 (TREE_OPTIMIZATION_OPTABS): New.
7061 (save_optabs_if_changed): Protoize.
7062 * optabs.h: Declare this_fn_optabs.
7063 * optabs.c (save_optabs_if_changed): New.
7064 Declare this_fn_optabs.
7065 (init_optabs): Add argument to init_all_optabs() call.
7066 * function.c (invoke_set_current_function_hook): Handle per
7067 function optabs.
7068 * function.h (struct function): New field optabs.
7069 * config/mips/mips.c (mips_set_mips16_mode): Handle when
7070 optimization_current_node has changed.
7071 * target-globals.h (save_target_globals_default_opts): Protoize.
7072 * target-globals.c (save_target_globals_default_opts): New.
7073
7074 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7075
7076 PR target/56347
7077 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7078 registers %fr12 and %fr12R as call used.
7079
7080 PR target/56214
7081 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
7082 and HImode, require all displacements to be an integer multiple of
7083 their mode size.
7084 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7085 only allow QImode and HImode when reload is in progress and strict is
7086 true. Likewise for symbolic addresses. Use base14_operand to check
7087 displacements in REG+BASE addresses.
7088
7089 2013-02-18 Richard Biener <rguenther@suse.de>
7090
7091 PR tree-optimization/56366
7092 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7093 handle sign-conversion of outer-loop initial induction value.
7094
7095 2013-02-18 Richard Biener <rguenther@suse.de>
7096
7097 PR middle-end/56349
7098 * cfghooks.c (merge_blocks): If we merge a latch into another
7099 block adjust references to it.
7100 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7101 (verify_loop_structure): Verify that a recorded latch is in fact
7102 a latch.
7103
7104 2013-02-18 Richard Biener <rguenther@suse.de>
7105
7106 PR tree-optimization/56321
7107 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7108 order SSA name release and virtual operand unlinking.
7109
7110 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7111
7112 * config/microblaze/microblaze.md (save_stack_block): Define.
7113 (restore_stack_block): Likewise.
7114
7115 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7116
7117 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7118 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7119 * config/microblaze/microblaze.c (microblaze_option_override):
7120 Bail out early for PIC modes when target does not support PIC.
7121
7122 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7123
7124 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
7125 Replace with a microblaze version.
7126 (microblaze_trampoline_init): Adapt for microblaze.
7127 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
7128 microblaze.
7129
7130 2013-02-16 Jakub Jelinek <jakub@redhat.com>
7131 Dodji Seketeli <dodji@redhat.com>
7132
7133 PR asan/56330
7134 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
7135 (instrument_mem_region_access): Do not forget to always put
7136 instrumentation of the of 'base' and 'base + len' in a "if (len !=
7137 0) statement, even for cases where either 'base' or 'base + len'
7138 are not instrumented -- because they have been previously
7139 instrumented. Simplify the logic by putting all the statements
7140 instrument 'base + len' inside a sequence, and then insert that
7141 sequence right before the current insertion point. Then, to
7142 instrument 'base + len', just get an iterator on that statement.
7143 And do not forget to update the pointer to iterator the function
7144 received as argument.
7145
7146 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
7147
7148 PR rtl-optimization/56348
7149 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7150
7151 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
7152
7153 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7154 (clean_graph_dump_file): Pass base to start_graph_dump.
7155
7156 2013-02-14 Richard Henderson <rth@redhat.com>
7157
7158 PR target/55941
7159 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7160
7161 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
7162
7163 * collect2-aix.h: Define F_LOADONLY.
7164
7165 2013-02-14 Richard Biener <rguenther@suse.de>
7166
7167 PR lto/50494
7168 * varasm.c (output_constant_def_1): Get the decl representing
7169 the constant as argument.
7170 (output_constant_def): Wrap output_constant_def_1.
7171 (make_decl_rtl): Use output_constant_def_1 with the decl
7172 representing the constant.
7173 (build_constant_desc): Optionally re-use a decl already
7174 representing the constant.
7175 (tree_output_constant_def): Adjust.
7176
7177 2013-02-14 Dodji Seketeli <dodji@redhat.com>
7178
7179 Fix an asan crash
7180 * asan.c (instrument_builtin_call): Really put the length of the
7181 second source argument into src1_len.
7182
7183 2013-02-13 Jakub Jelinek <jakub@redhat.com>
7184
7185 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7186 argument. If it is false, don't create edge from then_bb to
7187 fallthru_bb.
7188 (insert_if_then_before_iter): Pass true to it.
7189 (build_check_stmt): Pass false to it.
7190 (transform_statements): Flush hash table only on extended basic
7191 block boundaries, rather than at the beginning of every bb.
7192 Don't flush hash table on nonfreeing_call_p calls.
7193 * tree-flow.h (nonfreeing_call_p): New prototype.
7194 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7195
7196 2013-02-13 David S. Miller <davem@davemloft.net>
7197
7198 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7199
7200 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
7201
7202 PR target/56184
7203 * ira.c (max_regno_before_ira): Move from ...
7204 (ira): ... here.
7205 (fix_reg_equiv_init): Use max_regno_before_ira instead of
7206 vec_safe_length.
7207
7208 2013-02-13 Jakub Jelinek <jakub@redhat.com>
7209
7210 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7211
7212 2013-02-13 Richard Biener <rguenther@suse.de>
7213
7214 PR lto/56295
7215 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7216 globals in MEM_REFs.
7217
7218 2013-02-13 Richard Biener <rguenther@suse.de>
7219
7220 * loop-init.c (loop_optimizer_init): Clear loop state when
7221 re-initializing preserved loops.
7222 * loop-unswitch.c (unswitch_single_loop): Return whether
7223 we unswitched the loop. Do not verify loop state here.
7224 (unswitch_loops): When we unswitched a loop discover new loops.
7225
7226 2013-02-13 Kostya Serebryany <kcc@google.com>
7227
7228 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7229 on x86_64 linux.
7230 * sanitizer.def: Rename __asan_init to __asan_init_v1.
7231
7232 2013-02-12 Dodji Seketeli <dodji@redhat.com>
7233
7234 Avoid instrumenting duplicated memory access in the same basic block
7235 * Makefile.in (asan.o): Add new dependency on hash-table.h
7236 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7237 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7238 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7239 (free_mem_ref_resources, has_mem_ref_been_instrumented)
7240 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7241 (get_mem_ref_of_assignment): New functions.
7242 (get_mem_refs_of_builtin_call): Extract from
7243 instrument_builtin_call and tweak a little bit to make it fit with
7244 the new signature.
7245 (instrument_builtin_call): Use the new
7246 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
7247 of is_gimple_builtin_call.
7248 (instrument_derefs, instrument_mem_region_access): Insert the
7249 instrumented memory reference into the hash table.
7250 (maybe_instrument_assignment): Renamed instrument_assignment into
7251 this, and change it to advance the iterator when instrumentation
7252 actually happened and return true in that case. This makes it
7253 homogeneous with maybe_instrument_assignment, and thus give a
7254 chance to callers to be more 'regular'.
7255 (transform_statements): Clear the memory reference hash table
7256 whenever we enter a new BB, when we cross a function call, or when
7257 we are done transforming statements. Use
7258 maybe_instrument_assignment instead of instrumentation. No more
7259 need to special case maybe_instrument_assignment and advance the
7260 iterator after calling it; it's now handled just like
7261 maybe_instrument_call. Update comment.
7262
7263 2013-02-13 Richard Biener <rguenther@suse.de>
7264
7265 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7266 Fix loop discovery code.
7267
7268 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
7269
7270 PR inline-asm/56148
7271 * lra-constraints.c (process_alt_operands): Match early clobber
7272 operand with itself. Check conflicts with earlyclobber only if
7273 the operand is not reloaded. Prefer to reload conflicting operand
7274 if earlyclobber and matching operands are the same.
7275
7276 2013-02-12 Richard Biener <rguenther@suse.de>
7277
7278 PR lto/56297
7279 * lto-streamer-out.c (write_symbol): Do not output symbols
7280 for hard register variables.
7281
7282 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
7283
7284 PR target/54222
7285 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7286 (umulsidi3_insn, mulsidi3_insn): New insns.
7287
7288 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
7289
7290 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7291 (struct tune_params): Add vec_costs field.
7292 * config/arm/arm.c (arm_builtin_vectorization_cost)
7293 (arm_add_stmt_cost): New functions.
7294 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7295 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7296 (arm_default_vec_cost): New struct of type cpu_vec_costs.
7297 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7298 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7299 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7300 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7301
7302 2013-02-12 Richard Biener <rguenther@suse.de>
7303
7304 PR lto/56295
7305 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7306 decls again if possible.
7307
7308 2013-02-12 Richard Biener <rguenther@suse.de>
7309
7310 PR middle-end/56288
7311 * tree-ssa.c (verify_ssa_name): Fix check, move
7312 SSA_NAME_IN_FREE_LIST check up.
7313
7314 2013-02-12 Jakub Jelinek <jakub@redhat.com>
7315 Steven Bosscher <steven@gcc.gnu.org>
7316
7317 PR rtl-optimization/56151
7318 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7319 equal to op0 or op1, and last_insn pattern is CODE operation
7320 with MEM dest and one of the operands matches that MEM.
7321
7322 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
7323
7324 * doc/extend.texi: Document Function Multiversioning and "default"
7325 parameter string to target attribute.
7326 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7327 target attribute parameter is "default".
7328 (ix86_compare_version_priority): Remove checks for target attribute.
7329 (ix86_mangle_function_version_assembler_name): Change error to sorry.
7330 Remove check for target attribute equal to NULL. Add assert.
7331 (ix86_generate_version_dispatcher_body): Change error to sorry.
7332
7333 2013-02-11 Iain Sandoe <iain@codesourcery.com>
7334 Jack Howarth <howarth@bromo.med.uc.edu>
7335 Patrick Marlier <patrick.marlier@gmail.com>
7336
7337 PR libitm/55693
7338 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7339 define ENDFILE_SPEC as TM_DESTRUCTOR.
7340 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7341
7342 2013-02-11 Alexander Potapenko <glider@google.com>
7343 Jack Howarth <howarth@bromo.med.uc.edu>
7344 Jakub Jelinek <jakub@redhat.com>
7345
7346 PR sanitizer/55617
7347 * config/darwin.c (cdtor_record): Rename ctor_record.
7348 (sort_cdtor_records): Rename sort_ctor_records.
7349 (finalize_dtors): New routine to sort destructors by
7350 priority before use in assemble_integer.
7351 (machopic_asm_out_destructor): Use finalize_dtors if needed.
7352
7353 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
7354
7355 PR rtl-optimization/56275
7356 * simplify-rtx.c (avoid_constant_pool_reference): Check that
7357 offset is non-negative and less than cmode size before
7358 calling simplify_subreg.
7359
7360 2013-02-11 Richard Biener <rguenther@suse.de>
7361
7362 PR tree-optimization/56264
7363 * cfgloop.h (fix_loop_structure): Adjust prototype.
7364 * loop-init.c (fix_loop_structure): Return the number of
7365 newly discovered loops.
7366 * tree-cfgcleanup.c (repair_loop_structures): When new loops
7367 are discovered, do a full loop-closed SSA rewrite.
7368
7369 2013-02-11 Richard Biener <rguenther@suse.de>
7370
7371 PR tree-optimization/56273
7372 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7373 first VRP run.
7374 (check_array_ref): Fix missing newline in dumps.
7375 (search_for_addr_array): Likewise.
7376
7377 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
7378
7379 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7380
7381 2013-02-09 Jakub Jelinek <jakub@redhat.com>
7382
7383 PR target/56256
7384 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7385
7386 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
7387
7388 PR rtl-optimization/56246
7389 * lra-constraints.c (simplify_operand_subreg): Try to reuse
7390 reload pseudo.
7391 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7392 constraints are satisfied.
7393
7394 2013-02-08 Jeff Law <law@redhat.com>
7395
7396 PR debug/53948
7397 * emit-rtl.c (reg_is_parm_p): New function.
7398 * regs.h (reg_is_parm_p): New prototype.
7399 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7400 callee-clobbered registers.
7401
7402 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7403
7404 PR target/56043
7405 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7406 If there is no implicit builtin declaration, just return NULL.
7407
7408 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7409
7410 * config/i386/sse.md (FMAMODEM): New mode iterator.
7411 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7412 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7413
7414 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7415
7416 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7417 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7418 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7419
7420 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7421
7422 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7423 (microblaze*-*-elf): Likewise.
7424 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7425 LINK_SPEC.
7426 * config/microblaze/microblaze-c.c: Add builtin defines for
7427 _LITTLE_ENDIAN and _BIG_ENDIAN.
7428 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7429 add to TARGET_DEFAULT flags.
7430 Expand ASM_SPEC and LINK_SPEC.
7431 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7432 * config/microblaze/microblaze.md: Update extendsidi2 and
7433 movdi_internal instructions to use low-order / high-order reg
7434 print_operands.
7435 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7436 options and inversemask / mask of LITTLE_ENDIAN.
7437 * config/microblaze/t-microblaze: Expand multilib options to
7438 include mlittle-endian (le) and update exceptions patterns.
7439
7440 2013-02-08 Jakub Jelinek <jakub@redhat.com>
7441
7442 PR rtl-optimization/56195
7443 * lra-constraints.c (get_reload_reg): Don't reuse regs
7444 if they have smaller mode than requested, if they have
7445 wider mode than requested, try to return a SUBREG.
7446
7447 PR tree-optimization/56250
7448 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7449 if type is unsigned and code isn't MULT_EXPR.
7450
7451 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7452
7453 PR tree-optimization/56064
7454 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7455 bits according to mode.
7456 * fixed-value.h (fixed_from_double_int)
7457 (const_fixed_from_double_int): Adjust comments.
7458
7459 2013-02-08 Richard Biener <rguenther@suse.de>
7460
7461 PR lto/56231
7462 * lto-streamer.h (struct data_in): Remove current_file, current_line
7463 and current_col members.
7464 * lto-streamer-out.c (lto_output_location): Stream changed bits
7465 en-block for efficiency.
7466 * lto-streamer-in.c (clear_line_info): Remove.
7467 (lto_input_location): Cache current file, line and column
7468 globally via local statics. Read changed bits en-block.
7469 (input_function): Do not call clear_line_info.
7470 (lto_read_body): Likewise.
7471 (lto_input_toplevel_asms): Likewise.
7472
7473 2013-02-08 Michael Matz <matz@suse.de>
7474
7475 PR tree-optimization/52448
7476 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7477 (nt_call_phase): New static.
7478 (add_or_mark_expr): Only mark accesses with newer phase than any
7479 call seen.
7480 (nonfreeing_call_p): New.
7481 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7482 (nt_fini_block): Keep blocks marked as visited.
7483 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7484
7485 2013-02-08 Richard Biener <rguenther@suse.de>
7486
7487 * ira.c (ira): Free broken dominator information.
7488
7489 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7490
7491 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7492
7493 2013-02-08 Marek Polacek <polacek@redhat.com>
7494
7495 * cfgloop.c (verify_loop_structure): Add more checking of headers.
7496
7497 2013-02-08 Richard Biener <rguenther@suse.de>
7498
7499 PR middle-end/56181
7500 * cfgloop.h (flow_loops_find): Adjust.
7501 (bb_loop_header_p): Declare.
7502 * cfgloop.c (bb_loop_header_p): New function split out from ...
7503 (flow_loops_find): ... here. Adjust function signature,
7504 support incremental loop structure update.
7505 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7506 * cfgloopmanip.c (fix_loop_structure): Move ...
7507 * loop-init.c (fix_loop_structure): ... here.
7508 (apply_loop_flags): Split out from ...
7509 (loop_optimizer_init): ... here.
7510 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7511 in incremental mode, only remove dead loops here.
7512
7513 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7514
7515 PR target/54222
7516 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7517 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7518 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7519 (*round<mode>3.libgcc): New insns for fixed-modes.
7520 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7521 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7522 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7523 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7524 implementations. Define to __builtin_avr_absFX,
7525 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7526 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7527 __builtin_avr_countlsFX, respectively.
7528 * config/avr/avr-c.c (target.h): Include it.
7529 (enum avr_builtin_id): New enum.
7530 (avr_resolve_overloaded_builtin): New static function.
7531 (avr_register_target_pragmas): Use it to set
7532 targetm.resolve_overloaded_builtin.
7533 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7534 tree nodes used by DEF_BUILTIN.
7535 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7536 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7537 <AVR_BUILTIN_xxBITS>: Same.
7538
7539 2013-02-08 Richard Biener <rguenther@suse.de>
7540
7541 * cfgloop.c (verify_loop_structure): Properly handle
7542 a loop exiting to another loop header.
7543 * ira-int.h (ira_loops): Remove.
7544 * ira.c (ira_loops): Remove.
7545 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7546 (do_reload): Use loop_optimizer_finalize.
7547 * ira-build.c (create_loop_tree_nodes): Use get_loops and
7548 number_of_loops to access the loop tree.
7549 (more_one_region_p): Likewise.
7550 (finish_loop_tree_nodes): Likewise.
7551 (rebuild_regno_allocno_maps): Likewise.
7552 (mark_loops_for_removal): Likewise.
7553 (mark_all_loops_for_removal): Likewise.
7554 (remove_unnecessary_regions): Likewise.
7555 (ira_build): Likewise.
7556 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7557
7558 2013-02-08 Richard Biener <rguenther@suse.de>
7559
7560 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7561 * ipa-pure-const.c (analyze_function): Avoid calling
7562 mark_irreducible_loops twice.
7563 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7564
7565 2013-02-07 David S. Miller <davem@davemloft.net>
7566
7567 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7568 on 'reg'.
7569 * var-tracking.c (vt_add_function_parameter): Test the presence of
7570 HAVE_window_save properly and do not remap argument registers when
7571 we have a leaf function.
7572
7573 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
7574
7575 PR bootstrap/56227
7576 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7577 instead of "ll".
7578 * config/i386/i386.c (ix86_print_operand): Ditto.
7579
7580 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7581
7582 * lra-constraints.c (process_alt_operands): Fix recently added comment.
7583
7584 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7585
7586 PR rtl-optimization/56225
7587 * lra-constraints.c (process_alt_operands): Check that reload hard
7588 reg can hold value for strict_low_part.
7589
7590 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7591
7592 PR debug/56154
7593 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7594 dwarf2out_end_function.
7595 (in_first_function_p, maybe_at_text_label_p,
7596 first_loclabel_num_not_at_text_label): New variables.
7597 (dwarf2out_var_location): In the first function find out
7598 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7599 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7600 functions.
7601
7602 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
7603
7604 PR rtl-optimization/56178
7605 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7606 SUBREG of a register. Tidy up related block of code.
7607 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7608 note if the source is a register or a SUBREG of a register.
7609
7610 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7611
7612 PR target/56228
7613 * config/rs6000/rs6000.md (ptrm): New mode attr.
7614 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7615 call_value_indirect_aix<pttrsize>,
7616 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7617 m in constraints.
7618
7619 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7620
7621 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7622 if -bnortl. Convert to strcmp and strncmp.
7623
7624 2013-02-07 Alan Modra <amodra@gmail.com>
7625
7626 PR target/54009
7627 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7628 addresses won't wrap when offsetting.
7629 (rs6000_secondary_reload): Provide secondary reloads needed for
7630 wrapping LO_SUM addresses.
7631
7632 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
7633
7634 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7635 MACH, just __MACH__.
7636
7637 2013-02-06 Richard Biener <rguenther@suse.de>
7638
7639 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7640 instead of calling fix_loop_structure.
7641
7642 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7643
7644 PR middle-end/56217
7645 * omp-low.c (use_pointer_for_field): Return false if
7646 lower_send_shared_vars doesn't generate any copy-out code.
7647
7648 2013-02-06 Tom de Vries <tom@codesourcery.com>
7649
7650 PR rtl-optimization/56131
7651 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7652 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
7653 of the label is NULL. Add comment.
7654
7655 2013-02-05 Jakub Jelinek <jakub@redhat.com>
7656
7657 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7658
7659 PR sanitizer/55374
7660 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7661 (STATIC_LIBTSAN_LIBS): Likewise.
7662 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7663 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7664 is defined, don't add anything else beyond that.
7665 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7666 (LINK_COMMAND_SPEC): Use them.
7667
7668 PR tree-optimization/56205
7669 * tree-stdarg.c (check_all_va_list_escapes): Return true if
7670 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7671 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7672
7673 2013-02-05 Richard Biener <rguenther@suse.de>
7674
7675 PR tree-optimization/53342
7676 PR tree-optimization/53185
7677 * tree-vectorizer.h (vect_check_strided_load): Remove.
7678 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7679 not disallow peeling for vectorized strided loads.
7680 (vect_check_strided_load): Make static and simplify.
7681 (vect_analyze_data_refs): Adjust.
7682 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7683 correctly when vectorizing strided loads.
7684
7685 2013-02-05 Richard Biener <rguenther@suse.de>
7686
7687 * doc/install.texi: Refer to ISL, not PPL.
7688
7689 2013-02-05 Jan Hubicka <jh@suse.cz>
7690
7691 PR tree-optimization/55789
7692 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7693
7694 2013-02-05 Jan Hubicka <jh@suse.cz>
7695
7696 PR tree-optimization/55789
7697 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7698 the dead call anyway.
7699
7700 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
7701
7702 PR sanitizer/55374
7703 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7704
7705 2013-02-04 Alexander Potapenko <glider@google.com>
7706 Jack Howarth <howarth@bromo.med.uc.edu>
7707 Jakub Jelinek <jakub@redhat.com>
7708
7709 PR sanitizer/55617
7710 * config/darwin.c (sort_ctor_records): Stabilized qsort
7711 on constructor priority by using original position.
7712 (finalize_ctors): New routine to sort constructors by
7713 priority before use in assemble_integer.
7714 (machopic_asm_out_constructor): Use finalize_ctors if needed.
7715
7716 2013-02-04 Jakub Jelinek <jakub@redhat.com>
7717
7718 PR libstdc++/54314
7719 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7720 about visibility on artificial decls.
7721 * config/sol2.c (solaris_assemble_visibility): Likewise.
7722
7723 2013-02-04 Kai Tietz <ktietz@redhat.com>
7724
7725 PR target/56186
7726 * config/i386/i386.c (function_value_ms_64): Add additional valtype
7727 argument and improve checking of return-argument types for 16-byte
7728 modes.
7729 (ix86_function_value_1): Add additional valtype argument on call
7730 of function_value_64.
7731 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7732 handling infunction_value_64 function.
7733
7734 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7735
7736 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7737
7738 2013-02-04 Richard Biener <rguenther@suse.de>
7739
7740 PR tree-optimization/56188
7741 * tree-ssa-structalias.c (label_visit): Consider case with
7742 initially non-empty points-to set.
7743 (perform_var_substitution): Dump node mapping and clean up.
7744
7745 2013-02-04 Richard Guenther <rguenther@suse.de>
7746
7747 PR lto/56168
7748 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7749 node prevail as last resort.
7750 (lto_symtab_merge_decls): Remove guard on LTRANS here.
7751 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7752
7753 2013-02-04 Richard Biener <rguenther@suse.de>
7754
7755 PR tree-optimization/56113
7756 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7757 Merge into ...
7758 (equiv_class_lookup_or_add): ... this.
7759 (label_visit): Adjust and fix error in previous patch.
7760 (perform_var_substitution): Adjust.
7761
7762 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7763
7764 * config/sh/divtab.c: Fix formatting and comments throughout the file.
7765 * config/sh/sh4-300.md: Likewise.
7766 * config/sh/sh4a.md: Likewise.
7767 * config/sh/constraints.md: Likewise.
7768 * config/sh/sh.md: Likewise.
7769 * config/sh/netbsd-elf.h: Likewise.
7770 * config/sh/predicates.md: Likewise.
7771 * config/sh/sh-protos.h: Likewise.
7772 * config/sh/ushmedia.h: Likewise.
7773 * config/sh/linux.h: Likewise.
7774 * config/sh/sh.c: Likewise.
7775 * config/sh/superh.h: Likewise.
7776 * config/sh/elf.h: Likewise.
7777 * config/sh/sh4.md: Likewise.
7778 * config/sh/sh.h: Likewise.
7779
7780 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7781
7782 * config/pa/constraints.md: Adjust unused letters. Change "T"
7783 constraint to match_test floating_point_store_memory_operand().
7784 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7785 (base14_operand): New.
7786 (floating_point_store_memory_operand): New.
7787 (integer_store_memory_operand): Revise to use base14_operand and
7788 reg_plus_base_memory_operand.
7789 (move_dest_operand): Allow symbolic_memory_operands.
7790 (symbolic_memory_operand): Check for LO_SOM.
7791 (symbolic_operand): Change default case to break.
7792 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7793 CONST_DOUBLE values to be reloaded by putting them into memory when
7794 the destination is a floating point register.
7795 (movdf): Remove code to handle CONST_DOUBLE.
7796 (movsf): Likewise.
7797 (reload_indf_r1): New.
7798 (reload_insf_r1): New.
7799 Consistently use "Q" and "T" constraints with integer and floating
7800 point move instructions, respectively.
7801 (movdi): Remove FAIL.
7802 Change predicate for source operand unamed DImode move from
7803 general_operand to move_src_operand.
7804 (umulsidi3): Change predicate for destination operand to
7805 register_operand.
7806 Likewise for similar unamed patterns.
7807 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7808 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7809 (hppa_legitimize_address): Simplify mask calculation.
7810 (pa_emit_move_sequence): Revised handling of secondary reloads from
7811 REG+D addresses for floating point loads and stores. Directly handle
7812 loading CONST0_RTX (mode) to a floating point register.
7813 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7814 to floating point registers. Don't restrict secondary reloads to
7815 floating point registers to integer modes. Revise some comments and
7816 cleanup some code.
7817 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7818 (pa_legitimate_address_p): New.
7819 (pa_legitimize_reload_address): New.
7820 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7821 (STRICT_REG_OK_FOR_BASE_P): New.
7822 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7823 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7824
7825 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
7826 Andrew Dixie <andrewd@gentrack.com>
7827
7828 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7829 flag set.
7830
7831 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
7832
7833 * expmed.c (extract_bit_field_1): Pass the full width of the
7834 structure to get_best_reg_extraction_insn.
7835
7836 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7837
7838 PR target/54601
7839 * configure.ac (use_cxa_atexit): Add AIX.
7840 * configure: Regenerate.
7841
7842 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7843
7844 2013-02-01 Jakub Jelinek <jakub@redhat.com>
7845
7846 PR debug/54793
7847 * final.c (need_profile_function): New variable.
7848 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7849 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7850 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7851 notes, targetm.asm_out.function_prologue doesn't emit anything,
7852 HAVE_prologue and profiler should be emitted before prologue,
7853 set need_profile_function instead of emitting it.
7854 (final_scan_insn): If need_profile_function, emit
7855 profile_function on the first NOTE_INSN_BASIC_BLOCK or
7856 NOTE_INSN_FUNCTION_BEG note.
7857
7858 2013-02-01 Richard Henderson <rth@redhat.com>
7859
7860 * config/rs6000/rs6000.md (smulditi3): New.
7861 (umulditi3): New.
7862
7863 * config/alpha/alpha.md (umulditi3): New.
7864
7865 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7866
7867 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7868 (ASM_OUTPUT_ALIGNED_LOCAL): New.
7869
7870 2013-02-01 Richard Biener <rguenther@suse.de>
7871
7872 PR tree-optimization/56113
7873 * tree-ssa-structalias.c (label_visit): Reduce work for
7874 single-predecessor nodes.
7875
7876 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
7877
7878 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7879 range isn't testing for zero.
7880
7881 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
7882
7883 PR middle-end/56113
7884 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7885
7886 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
7887 Nick Clifton <nickc@redhat.com>
7888
7889 * config/v850/constraints.md (Q): Define as a memory constraint.
7890 * config/v850/predicates.md (label_ref_operand): New predicate.
7891 (e3v5_shift_operand): New predicate.
7892 (ior_operator): New predicate.
7893 * config/v850/t-v850: Add e3v5 multilib.
7894 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7895 (v850_gen_movdi): Prototype.
7896 * config/v850/v850.c: Add support for e3v5 architecture.
7897 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7898 TARGET_V850E_UP.
7899 (construct_save_jarl): Add e3v5 long JARL support.
7900 (v850_adjust_insn_length): New function. Adjust length of call
7901 insns when using e3v5 instructions.
7902 (v850_gen_movdi): New function: Generate instructions to move a
7903 DImode value.
7904 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7905 (CPP_SPEC): Define __v850e3v5__ as appropriate.
7906 (TARGET_USE_FPU): Enable for e3v5.
7907 (CONST_OK_FOR_W): New macro.
7908 (ADJUST_INSN_LENGTH): Define.
7909 * config/v850/v850.md (UNSPEC_LOOP): Define.
7910 (attr cpu): Add v850e3v5.
7911 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7912 (movdi): New pattern.
7913 (movdi_internal): New pattern.
7914 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7915 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7916 (cstoresf4): Likewise.
7917 (cstoredf4): Likewise.
7918 (insv): New pattern.
7919 (rotlso3_a): New pattern.
7920 (rotlsi3_b): New pattern
7921 (rotlsi3_v850e3v5): New pattern.
7922 (doloop_begin): New pattern.
7923 (fix_loop_counter): New pattern.
7924 (doloop_end): New pattern.
7925 (branch_normal): Add e3v5 long branch support.
7926 (branch_invert): Likewise.
7927 (branch_z_normal): Likewise.
7928 (branch_z_invert): Likewise.
7929 (branch_nz_normal): Likewise.
7930 (branch_nz_invert): Likewise.
7931 (call_internal_short): Add e3v5 register-indirect JARL support.
7932 (call_internal_long): Likewise.
7933 (call_value_internal_short): Likewise.
7934 (call_value_internal_long): Likewise.
7935 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7936 (mloop): New option.
7937 * config.gcc: Add support for configuring v840e3v5 target.
7938 * doc/invoke.texi: Document new v850 specific command line options.
7939
7940 2013-01-31 Paul Koning <ni1d@arrl.net>
7941
7942 PR debug/55059
7943 PR debug/54508
7944 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7945 children if parent is a class.
7946 (prune_unused_types_prune): Don't add DW_AT_declaration.
7947
7948 2013-01-31 Richard Biener <rguenther@suse.de>
7949
7950 PR tree-optimization/56157
7951 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7952 match up operand with SLP child.
7953
7954 2013-01-31 Jason Merrill <jason@redhat.com>
7955
7956 PR debug/54410
7957 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7958 parameters the first time.
7959 (gen_scheduled_generic_parms_dies): Check completeness here.
7960
7961 2013-01-31 Richard Biener <rguenther@suse.de>
7962
7963 PR middle-end/53073
7964 * common.opt (faggressive-loop-optimizations): New flag,
7965 enabled by default.
7966 * doc/invoke.texi (faggressive-loop-optimizations): Document.
7967 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7968 infer_loop_bounds_from_undefined by it.
7969
7970 2013-01-31 Richard Biener <rguenther@suse.de>
7971
7972 PR tree-optimization/56150
7973 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7974 visit virtual operands.
7975 (find_uses_to_rename_bb): Likewise.
7976
7977 2013-01-31 Richard Biener <rguenther@suse.de>
7978
7979 PR tree-optimization/56150
7980 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7981 mixed store non-store stmts.
7982
7983 2013-01-30 Jakub Jelinek <jakub@redhat.com>
7984
7985 PR sanitizer/55374
7986 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7987 LIBASAN_EARLY_SPEC is defined.
7988 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7989 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7990 before %o.
7991 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7992
7993 PR c++/55742
7994 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7995 invalid args instead of ICEing on it.
7996 (ix86_valid_target_attribute_tree): Return error_mark_node if
7997 ix86_valid_target_attribute_inner_p failed.
7998 (ix86_valid_target_attribute_p): Return false only if
7999 ix86_valid_target_attribute_tree returned error_mark_node. Allow
8000 target("default") attribute.
8001 (sorted_attr_string): Change argument from const char * to tree,
8002 merge in all target attribute arguments rather than just one.
8003 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
8004 instead of free. Avoid using strcat.
8005 (ix86_mangle_function_version_assembler_name): Mangle
8006 target("default") as if no target attribute is present. Adjust
8007 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
8008 instead of xmalloc and XDELETEVEC instead of free.
8009 (ix86_function_versions): Don't return true if one of the decls
8010 doesn't have target attribute. If they don't and one of the decls
8011 is DECL_FUNCTION_VERSIONED, report an error. Adjust
8012 sorted_attr_string caller. Use XDELETEVEC instead of free.
8013 (ix86_supports_function_versions): Remove.
8014 (make_name): Fix up formatting.
8015 (make_dispatcher_decl): Remove resolver_name and its initialization.
8016 Avoid leaking memory.
8017 (is_function_default_version): Return true if there is
8018 target("default") attribute rather than no target attribute at all.
8019 (make_resolver_func): Avoid leaking memory.
8020 (ix86_generate_version_dispatcher_body): Likewise.
8021 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8022 * target.def (supports_function_versions): Remove.
8023 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8024 * doc/tm.texi: Regenerated.
8025
8026 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
8027
8028 PR rtl-optimization/56144
8029 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8030 for values with side effects.
8031
8032 2013-01-30 Richard Biener <rguenther@suse.de>
8033
8034 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8035 (sparseset_pop): Likewise.
8036 * cfganal.c (compute_idf): Likewise. Increase work-stack size
8037 to be able to use quick_push in the worker loop.
8038
8039 2013-01-30 Marek Polacek <polacek@redhat.com>
8040
8041 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8042
8043 2013-01-30 Richard Biener <rguenther@suse.de>
8044
8045 PR lto/56147
8046 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
8047
8048 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
8049
8050 PR tree-optimization/56064
8051 * fixed-value.c (fixed_from_double_int): New function.
8052 * fixed-value.h (fixed_from_double_int): New prototype.
8053 (const_fixed_from_double_int): New static inline function.
8054 * fold-const.c (native_interpret_fixed): New static function.
8055 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8056 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8057 (native_encode_fixed): New static function.
8058 (native_encode_expr) <FIXED_CST>: Use it.
8059 (native_interpret_int): Move double_int worker code to...
8060 * double-int.c (double_int::from_buffer): ...this new static method.
8061 * double-int.h (double_int::from_buffer): Prototype it.
8062
8063 2013-01-30 Richard Biener <rguenther@suse.de>
8064
8065 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8066 New pointer-map and obstack.
8067 (init_alias_vars): Allocate pointer-map and obstack.
8068 (delete_points_to_sets): Free them.
8069 (find_what_var_points_to): Cache result.
8070 (find_what_p_points_to): Adjust for changed interface of
8071 find_what_var_points_to.
8072 (compute_points_to_sets): Likewise.
8073 (ipa_pta_execute): Likewise.
8074
8075 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8076
8077 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8078 * configure: Regenerate.
8079 * config.in: Regenerate.
8080 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8081 #nobits/#progbits if supported.
8082
8083 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
8084
8085 PR target/56121
8086 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8087 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8088 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8089
8090 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8091
8092 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8093 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
8094
8095 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8096
8097 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8098 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
8099
8100 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8101
8102 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8103 declaration.
8104 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8105 * config/arm/cortex-a7.md: New bypasses using
8106 arm_mac_accumulator_is_result.
8107
8108 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8109
8110 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
8111 (cortex_a7_neon_mla): Likewise.
8112 (cortex_a7_fpfmad): New reservation.
8113 (cortex_a7_fpmacs): Use ffmas and update required units.
8114 (cortex_a7_fpmuld): Update required units and latency.
8115 (cortex_a7_fpmacd): Likewise.
8116 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8117 (cortex_a7_neon). Likewise.
8118 (bypass) Update participating units.
8119
8120 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8121
8122 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8123 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8124 from fmac to ffma.
8125 * config/arm/vfp11.md (vfp_farith): Use ffmas.
8126 (vfp_fmul): Use ffmad.
8127 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8128 (cortex_r4_fmacd): Use ffmad.
8129 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8130 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
8131 (cortex_a9_fmacd): Use ffmad.
8132 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8133 (cortex_a8_vfp_macd): Use ffmad.
8134 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8135 (cortex_a5_fpmacd): Use ffmad.
8136 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8137 (cortex_a15_vfp_macd): Use ffmad.
8138 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
8139
8140 2013-01-29 Jason Merrill <jason@redhat.com>
8141
8142 PR libstdc++/54314
8143 * varasm.c (default_assemble_visibility): Don't warn about
8144 visibility on artificial decls.
8145
8146 2013-01-29 Richard Biener <rguenther@suse.de>
8147
8148 PR tree-optimization/56113
8149 * tree-ssa-structalias.c (equiv_class_lookup): Also return
8150 the bitmap leader.
8151 (label_visit): Free duplicate bitmaps and record the leader instead.
8152 (perform_var_substitution): Adjust.
8153
8154 2013-01-29 Richard Biener <rguenther@suse.de>
8155
8156 PR tree-optimization/55270
8157 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8158 the CFG, schedule loops for fixup.
8159
8160 2013-01-29 Nick Clifton <nickc@redhat.com>
8161
8162 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8163 SP_REG.
8164
8165 2013-01-28 Leif Ekblad <leif@rdos.net>
8166
8167 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8168 * config/i386/i386.h (TARGET_RDOS): New macro.
8169 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8170 * config/i386/i386.c (ix86_option_override_internal): For 64bit
8171 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8172 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8173 DEFAULT_LARGE_SECTION_THRESHOLD.
8174 * config/i386/i386.md (R14_REG, R15_REG): New constants.
8175 * config/i386/rdos.h: New file.
8176 * config/i386/rdos64.h: New file.
8177
8178 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
8179
8180 PR other/54814
8181 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8182 TEST_HARD_REG_BIT.
8183
8184 2013-01-28 Jakub Jelinek <jakub@redhat.com>
8185
8186 PR rtl-optimization/56117
8187 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8188 call cselib_lookup_from_insn on the MEM before calling
8189 add_insn_mem_dependence.
8190
8191 2013-01-28 Richard Biener <rguenther@suse.de>
8192
8193 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8194 to a stmt that didn't have one.
8195 (copy_phis_for_bb): Likewise for PHI arguments.
8196 (copy_debug_stmt): Likewise for debug stmts.
8197
8198 2013-01-28 Richard Biener <rguenther@suse.de>
8199
8200 PR tree-optimization/56034
8201 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
8202 (partition_builtin_p): Adjust.
8203 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
8204 it is the last partition.
8205 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8206 up the vertex for the definition.
8207 (classify_partition): Classify whether a partition is a
8208 PKIND_REDUCTION, thus has uses outside of the loop.
8209 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8210 Merge all PKIND_REDUCTION partitions into the last partition.
8211 (tree_loop_distribution): Seed partitions from reductions as well.
8212
8213 2013-01-28 Jakub Jelinek <jakub@redhat.com>
8214
8215 PR tree-optimization/56125
8216 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8217 pow(x,c) into sqrt(x) * powi(x, n/2) or
8218 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8219 optimizing for size.
8220 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8221 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8222 integer.
8223
8224 PR tree-optimization/56094
8225 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8226 to UNKNOWN_LOCATION while gimplifying expr.
8227
8228 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
8229
8230 PR target/56114
8231 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8232 operand 0 in movabs insn template for -masm=intel asm alternative.
8233 (*movabs<mode>_2): Ditto for operand 1.
8234
8235 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
8236
8237 PR target/54663
8238 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8239 of microblaze-c.o
8240
8241 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8242
8243 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8244 tm_file.
8245
8246 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8247
8248 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8249 Undef to avoid warning.
8250
8251 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8252
8253 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8254 * configure: Regenerate.
8255
8256 2013-01-25 Jakub Jelinek <jakub@redhat.com>
8257
8258 PR tree-optimization/56098
8259 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8260 for stmts with volatile ops.
8261 (cond_store_replacement): Don't optimize if assign has volatile ops.
8262 (cond_if_else_store_replacement_1): Don't optimize if either
8263 then_assign or else_assign have volatile ops.
8264 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8265 volatile ops.
8266
8267 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8268
8269 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8270
8271 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8272
8273 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8274 missing ':' in asm example.
8275
8276 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
8277
8278 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8279 entries into lane and laneq entries.
8280 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8281 Remove AdvSIMD scalar modes.
8282 (aarch64_sq<r>dmulh_laneq<mode>): New.
8283 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8284 modes.
8285 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8286 builtin implementations to relfect changes in RTL in aarch64-simd.md.
8287 * config/aarch64/iterators.md (VCOND): New.
8288 (VCONQ): New.
8289
8290 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8291
8292 PR target/54222
8293 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8294 Add NULL LIBNAME argument to existing definitions.
8295 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8296 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8297 * config/avr/avr.c (DEF_BUILTIN): Same.
8298 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8299 (avr_expand_builtin): Expand to a vanilla call if a libgcc
8300 implementation is available (DECL_ASSEMBLER_NAME is set).
8301 (avr_fold_absfx): New static function.
8302 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8303 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8304 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8305 AVR_BUILTIN_ABSLLK.
8306 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8307 (abshk, absk, abslk, absllk): Provide as static inline functions.
8308
8309 2013-01-25 Marek Polacek <polacek@redhat.com>
8310
8311 PR tree-optimization/56035
8312 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8313
8314 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
8315
8316 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8317 (*movtf_internal_rex64): Add (!o,C) alternative
8318 (*movxf_internal_rex64): Ditto.
8319 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8320
8321 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
8322
8323 * doc/invoke.texi: fix typo.
8324 * doc/objc.texi: fix typo.
8325
8326 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8327
8328 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8329 for the first two alternatives.
8330
8331 2013-01-24 Diego Novillo <dnovillo@google.com>
8332
8333 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
8334 (ggc-zone.o): Remove.
8335 * configure.ac: Remove option --with-gc.
8336 * configure: Re-generate.
8337 * doc/install.texi: Remove documentation for --with-gc.
8338 * gengtype.c (write_enum_defn): Remove. Update all users.
8339 (write_Types_process_field): Remove generation of gt_e_* argument.
8340 (output_type_enum): Remove. Update all users.
8341 (write_enum_defn): Remove. Update all users.
8342 (enum alloc_zone): Remove. Update all users.
8343 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
8344 * ggc-common.c (ggc_splay_alloc): Remove first argument.
8345 Update all callers.
8346 (struct ptr_data): Remove field TYPE. Update all users.
8347 (gt_pch_note_object): Remove argument TYPE. Update all users.
8348 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8349 Update all users.
8350 * ggc-none.c (ggc_alloc_typed_stat): Remove.
8351 (struct alloc_zone): Remove.
8352 (ggc_internal_alloc_zone_stat): Remove.
8353 (ggc_internal_cleared_alloc_zone_stat): Remove.
8354 * ggc-page.c (ggc_alloc_typed_stat): Remove.
8355 (ggc_pch_count_object): Remove last argument. Update all users.
8356 (ggc_pch_alloc_object): Remove last argument. Update all users.
8357 (struct alloc_zone): Remove.
8358 * ggc-zone.c: Remove.
8359 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
8360 (struct alloc_zone): Remove.
8361 (ggc_alloc_typed_stat): Remove.
8362 (ggc_alloc_typed): Remove.
8363 (ggc_splay_alloc): Remove first argument.
8364 (rtl_zone): Remove. Update all users.
8365 (tree_zone): Remove. Update all users.
8366 (tree_id_zone): Remove. Update all users.
8367 (ggc_internal_zone_alloc_stat): Remove. Update all users.
8368 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
8369 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
8370 * tree-ssanames.c: Remove references to zone allocator in comments.
8371
8372 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
8373
8374 * config/avr/avr.c (avr_out_fract): Make register numbers that
8375 might be outside of source operand signed.
8376
8377 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
8378
8379 * config/i386/constraints.md (Yf): New constraint.
8380 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8381 of f constraint to conditionaly disable x87 register preferences.
8382 (*movdf_internal): Ditto.
8383 (*movsf_internal): Ditto.
8384
8385 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
8386
8387 PR inline-asm/55934
8388 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8389 that have operands with impossible constraints.
8390 Add a FIXME for a speed-up opportunity.
8391 * lra-constraints.c (process_alt_operands): Verify that a class
8392 selected from constraints on asms is valid for the operand mode.
8393 (curr_insn_transform): Remove incorrect comment.
8394
8395 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
8396
8397 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8398 TOC operand is a valid symbol ref in the constant pool.
8399
8400 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8401
8402 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
8403
8404 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
8405
8406 PR target/54222
8407 * config/avr/stdfix.h: New file.
8408 * t-avr (stdfix-gcc.h): New rule to build it.
8409 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8410
8411 2013-01-23 Kostya Serebryany <kcc@google.com>
8412
8413 * config/darwin.h: remove dependency on
8414 CoreFoundation (asan on Mac OS).
8415
8416 2013-01-23 Jakub Jelinek <jakub@redhat.com>
8417
8418 PR target/49069
8419 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8420 instead of cmpdi_operand for first comparison operand.
8421 Don't assert that comparison operands aren't both constants.
8422
8423 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8424
8425 * doc/install.texi (Downloading the Source): Update references to
8426 downloading separate components.
8427
8428 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8429
8430 * doc/extend.texi (__int128): Improve grammar.
8431
8432 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
8433
8434 PR target/56028
8435 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8436 alternative to (o,r).
8437 (*movdi_internal_rex64): Remove (!o,n) alternative.
8438 (DImode immediate->memory splitter): Remove.
8439 (DImode immediate->memory peephole2): Remove.
8440 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8441 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8442 alternative to (!o,*r).
8443 (*movtf_internal_sse): New pattern.
8444 (*movxf_internal_rex64): New pattern.
8445 (*movxf_internal): Disable for TARGET_64BIT.
8446 (*movdf_internal_rex64): Remove (!o,F) alternative.
8447
8448 2013-01-22 Jakub Jelinek <jakub@redhat.com>
8449
8450 PR middle-end/56074
8451 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8452 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8453 * tree-vect-loop-manip.c (find_loop_location): Also ignore
8454 stmt locations where LOCATION_LOCUS of the stmt location is
8455 UNKNOWN_LOCATION or BUILTINS_LOCATION.
8456
8457 PR target/55686
8458 * config/i386/i386.md (UNSPEC_STOS): New.
8459 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8460 *strsetqi_1): Add UNSPEC_STOS.
8461
8462 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
8463
8464 PR c++/56067
8465 * doc/invoke.texi: Remove left over -Wsynth example.
8466
8467 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8468
8469 PR tree-optimization/56051
8470 * fold-const.c (fold_binary_loc): Don't fold
8471 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8472 a narrowing conversion, or widening conversion from signed
8473 to unsigned.
8474
8475 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8476
8477 PR rtl-optimization/56023
8478 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8479 dependent on debug instruction.
8480
8481 2013-01-21 Martin Jambor <mjambor@suse.cz>
8482
8483 PR middle-end/56022
8484 * function.c (allocate_struct_function): Call
8485 invoke_set_current_function_hook earlier.
8486
8487 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8488
8489 * reload1.c (init_reload): Only initialize reload_obstack
8490 during the first call.
8491
8492 2013-01-21 Marek Polacek <polacek@redhat.com>
8493
8494 * cfgloop.c (verify_loop_structure): Fix up grammar.
8495
8496 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8497
8498 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8499 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8500
8501 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8502
8503 PR target/56058
8504 * config/arm/marvell-pj4.md: Update copyright year.
8505 Fix up use of alu to alu_reg and simple_alu_imm.
8506
8507 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8508
8509 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8510
8511 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8512
8513 PR target/55433
8514 * lra-constraints.c (curr_insn_transform): Don't reuse original
8515 insn for secondary memory move when memory mode should be different.
8516
8517 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8518
8519 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8520 atomic_storedi_1): New patterns.
8521
8522 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8523
8524 btver2 pipeline descriptions.
8525 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8526 descriptions.
8527 * config/i386/i386.md (btver2_decode): New type attributes.
8528 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8529 type attributes.
8530 * config/i386/btver2.md: New file describing btver2 pipelines.
8531
8532 2013-01-19 Andrew Pinski <apinski@cavium.com>
8533
8534 PR tree-optimization/52631
8535 * tree-ssa-sccvn (visit_use): Before looking up the original
8536 statement, try looking up the simplified expression.
8537
8538 2013-01-19 Anthony Green <green@moxielogic.com>
8539
8540 * config/moxie/moxie.c (moxie_expand_prologue): Set
8541 current_function_static_stack_size.
8542
8543 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8544
8545 PR tree-optimization/56029
8546 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8547 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8548
8549 2013-01-18 Sharad Singhai <singhai@google.com>
8550
8551 PR tree-optimization/55995
8552 * dumpfile.c (dump_loc): Print location only if available.
8553 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8554
8555 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
8556
8557 PR target/55433
8558 * lra-constraints.c (curr_insn_transform): Reuse original insn for
8559 secondary memory move.
8560 (inherit_reload_reg): Use rclass instead of cl for
8561 check_secondary_memory_needed_p.
8562
8563 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8564
8565 PR middle-end/56015
8566 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8567 the case where writing real complex part of target modifies op1.
8568
8569 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
8570
8571 * config/aarch64/aarch64-simd.md
8572 (aarch64_vcond_internal<mode>): Handle unordered cases.
8573 * config/aarch64/iterators.md (v_cmp_result): New.
8574
8575 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
8576 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8577
8578 * config/arm/marvell-pj4.md: New file.
8579 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8580 * config/arm/arm.md (generic_sched): Add marvell_pj4.
8581 (generic_vfp): Likewise.
8582 * config/arm/arm-cores.def: Add marvell-pj4.
8583 * config/arm/arm-tune.md: Regenerate.
8584 * config/arm/arm-tables.opt: Regenerate.
8585 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8586 * doc/invoke.texi: Document marvell-pj4.
8587
8588 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
8589
8590 * config/aarch64/arm_neon.h: Map scalar types to standard types.
8591
8592 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8593
8594 PR debug/54114
8595 PR debug/54402
8596 PR debug/49888
8597 * var-tracking.c (negative_power_of_two_p): New.
8598 (global_get_addr_cache, local_get_addr_cache): New.
8599 (get_addr_from_global_cache, get_addr_from_local_cache): New.
8600 (vt_canonicalize_addr): Rewrite using the above. Adjust the
8601 heading comment.
8602 (vt_stack_offset_p): Remove.
8603 (vt_canon_true_dep): Always canonicalize loc's address.
8604 (clobber_overlapping_mems): Make sure we have a MEM.
8605 (local_get_addr_clear_given_value): New.
8606 (val_reset): Clear local cached entries.
8607 (compute_bb_dataflow): Create and release the local cache.
8608 Disable duplicate MEMs clobbering.
8609 (emit_notes_in_bb): Clobber MEMs likewise.
8610 (vt_emit_notes): Create and release the local cache.
8611 (vt_initialize, vt_finalize): Create and release the global
8612 cache, respectively.
8613 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8614
8615 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8616
8617 PR libmudflap/53359
8618 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8619 not found in the symtab.
8620
8621 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8622
8623 PR debug/56006
8624 PR rtl-optimization/55547
8625 PR rtl-optimization/53827
8626 PR debug/53671
8627 PR debug/49888
8628 * alias.c (offset_overlap_p): New, factored out of...
8629 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
8630 the conservative special case for symbolic constants. Don't
8631 adjust zero sizes on alignment.
8632
8633 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
8634
8635 PR rtl-optimization/52573
8636 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8637 REG_UNUSED for the same register.
8638
8639 2013-01-17 Richard Biener <rguenther@suse.de>
8640 Marek Polacek <polacek@redhat.com>
8641
8642 PR rtl-optimization/55833
8643 * loop-unswitch.c (unswitch_loops): Move loop verification...
8644 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
8645 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8646 Set it to true when we're removing a loop from hierarchy tree in
8647 an irreducible region.
8648 (fix_bb_placements): Adjust caller.
8649 (fix_loop_placements): Likewise.
8650
8651 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
8652
8653 * config/avr/builtins.def (DEF_BUILTIN): Factor out
8654 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8655 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8656 Remove ID. Adjust comments.
8657 * config/avr/avr-c.c (avr_builtin_name): Remove.
8658 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8659 * config/avr/avr.c (avr_tolower): New static function.
8660 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
8661 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8662 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8663 default expansion.
8664
8665 2013-01-17 Jan Hubicka <jh@suse.cz>
8666
8667 PR tree-optimization/55273
8668 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8669
8670 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
8671
8672 PR target/55981
8673 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8674 store through atomic_store<mode>_1.
8675 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8676
8677 2013-01-17 Martin Jambor <mjambor@suse.cz>
8678
8679 PR tree-optimizations/55264
8680 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8681 for virtual methods.
8682 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8683 virtual methods before inlining is over.
8684 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8685 virtual functions.
8686 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8687 non-virtual.
8688
8689 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
8690
8691 PR rtl-optimization/56005
8692 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8693 pending reads for prefetch.
8694
8695 2013-01-16 Ian Bolton <ian.bolton@arm.com>
8696
8697 * config/aarch64/aarch64.md
8698 (*cstoresi_neg_uxtw): New pattern.
8699 (*cmovsi_insn_uxtw): New pattern.
8700 (*<optab>si3_uxtw): New pattern.
8701 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8702 (*<optab>si3_insn_uxtw): New pattern.
8703 (*bswapsi2_uxtw): New pattern.
8704
8705 2013-01-16 Richard Biener <rguenther@suse.de>
8706
8707 * tree-inline.c (tree_function_versioning): Remove set but
8708 never used variable.
8709
8710 2013-01-16 Richard Biener <rguenther@suse.de>
8711
8712 PR tree-optimization/55964
8713 * tree-flow.h (rename_variables_in_loop): Remove.
8714 (rename_variables_in_bb): Likewise.
8715 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8716 (copy_loop_before): Adjust and delete update-ssa status.
8717 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8718 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
8719 (rename_variables_in_loop): Remove.
8720 (slpeel_update_phis_for_duplicate_loop): Likewise.
8721 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8722 use available cfg machinery instead of duplicating it.
8723 Update PHI nodes and perform poor-mans SSA update here.
8724 (slpeel_tree_peel_loop_to_edge): Adjust.
8725
8726 2013-01-16 Richard Biener <rguenther@suse.de>
8727
8728 PR tree-optimization/54767
8729 PR tree-optimization/53465
8730 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8731 (vrp_visit_phi_node): For PHI arguments coming via backedges
8732 drop all symbolical range information.
8733 (execute_vrp): Compute backedges.
8734
8735 2013-01-16 Richard Biener <rguenther@suse.de>
8736
8737 * doc/install.texi: Update CLooG and ISL requirements to
8738 0.18.0 and 0.11.1.
8739
8740 2013-01-16 Christian Bruel <christian.bruel@st.com>
8741
8742 PR target/55301
8743 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8744 (broken_move): Handle UNSPECV_SP_SWITCH_B.
8745 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8746
8747 2013-01-16 DJ Delorie <dj@redhat.com>
8748
8749 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8750 (UNSPECV_SP_SWITCH_E): New.
8751 (sp_switch_1): Change to an unspec.
8752 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8753 replace $r15.
8754
8755 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
8756
8757 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8758 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8759 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8760 (expand_mem_thread_fence): Ditto.
8761 (expand_mem_signal_fence): Ditto.
8762 (expand_atomic_load): Ditto.
8763 (expand_atomic_store): Ditto.
8764
8765 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
8766
8767 PR rtl-optimization/55547
8768 PR rtl-optimization/53827
8769 PR debug/53671
8770 PR debug/49888
8771 * alias.c (memrefs_conflict_p): Set sizes to negative after
8772 AND adjustments.
8773
8774 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8775
8776 PR target/55940
8777 * function.c (thread_prologue_and_epilogue_insns): Always
8778 add crtl->drap_reg to set_up_by_prologue.set, even if
8779 stack_realign_drap is false.
8780
8781 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8782
8783 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8784 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8785 *call): Fix indention.
8786
8787 2013-01-15 Tom de Vries <tom@codesourcery.com>
8788
8789 PR target/55876
8790 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8791 Update comment.
8792
8793 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
8794
8795 PR rtl-optimization/55153
8796 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8797
8798 2013-01-15 Martin Jambor <mjambor@suse.cz>
8799
8800 PR tree-optimization/55920
8801 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8802 accesses as grp_to_be_debug_replaced.
8803
8804 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8805
8806 PR tree-optimization/55920
8807 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8808 there is non-useless type conversion needed from debug rhs to lhs,
8809 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8810
8811 2013-01-15 Joseph Myers <joseph@codesourcery.com>
8812 Mikael Pettersson <mikpe@it.uu.se>
8813
8814 PR target/43961
8815 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8816 Thumb.
8817 (ASM_OUTPUT_CASE_LABEL): Remove.
8818 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8819 * final.c (shorten_branches): Update alignment of labels before
8820 jump tables if CASE_VECTOR_SHORTEN_MODE.
8821
8822 2013-01-15 Richard Biener <rguenther@suse.de>
8823
8824 PR bootstrap/55961
8825 * system.h: Do not include gmp.h for building host tools.
8826
8827 2013-01-15 Richard Biener <rguenther@suse.de>
8828
8829 PR middle-end/55882
8830 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8831 account for bitpos when computing alignment.
8832
8833 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
8834
8835 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8836 (ix86_target_macros_internal): Likewise.
8837
8838 * config/i386/i386.c (m_CORE2I7): Removed.
8839 (m_CORE_HASWELL): New macro.
8840 (m_CORE_ALL): Likewise.
8841 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8842 (initial_ix86_arch_features): Likewise.
8843 (processor_target_table): Initializations for Core avx2.
8844 (cpu_names): New names "core-avx2".
8845 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8846 PROCESSOR_CORE_HASWELL.
8847 (ix86_issue_rate): New case.
8848 (ia32_multipass_dfa_lookahead): Likewise.
8849 (ix86_sched_init_global): Likewise.
8850
8851 * config/i386/i386.h (TARGET_HASWELL): New macro.
8852 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8853 (processor_type): New PROCESSOR_HASWELL.
8854
8855 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8856
8857 PR tree-optimization/55955
8858 * tree-vect-loop.c (vectorizable_reduction): Give up early on
8859 *SHIFT_EXPR and *ROTATE_EXPR codes.
8860
8861 PR tree-optimization/48766
8862 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8863 -ftrapv disable -fwrapv.
8864
8865 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8866
8867 PR target/55974
8868 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8869 etc. to 1 and not to __flash.
8870 Use LL suffix for __INT24_MAX__ with -mint8.
8871 Use ULL suffix for __UINT24_MAX__ with -mint8.
8872
8873 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8874
8875 * config/avr/avr-arch.h
8876 (struct base_arch_s): Use typedef avr_arch_t instead.
8877 (struct arch_info_s): Use typedef avr_arch_info_t instead.
8878 (struct mcu_type_s): Use typedef avr_mcu_t instead.
8879 * config/avr/avr.c: Same.
8880 * config/avr/avr-devices.c: Same.
8881 * config/avr/driver-avr.c: Same.
8882 * config/avr/gen-avr-mmcu-texi.c: Same.
8883 * config/avr/avr-mcus.def: Adjust comment.
8884
8885 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
8886
8887 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8888 * config/aarch64/iterators.md (VALLDI): New.
8889
8890 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
8891 Andi Kleen <ak@linux.intel.com>
8892
8893 PR target/55948
8894 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8895 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8896 memmodel flag.
8897
8898 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8899
8900 * config/avr/avr-stdint.h: Remove trailing blanks.
8901 * config/avr/avr-log.h: Same.
8902 * config/avr/avr-arch.h: Same.
8903 * config/avr/avr-devices.c: Same.
8904 * config/avr/avr-dimode.md: Same.
8905 * config/avr/predicates.md: Same.
8906 * config/avr/avr-c.c: Same. And fix typo.
8907
8908 * config/avr/avr-protos.h: Same. And:
8909 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8910 (init_cumulative_args): Rename to avr_init_cumulative_args.
8911 (expand_prologue): Rename to avr_expand_prologue.
8912 (expand_epilogue): Rename to avr_expand_epilogue.
8913 (adjust_insn_length): Rename to avr_adjust_insn_length.
8914 (notice_update_cc): Rename to avr_notice_update_cc.
8915 (final_prescan_insn): Rename to avr_final_prescan_insn.
8916 * config/avr/avr.c: Same.
8917 * config/avr/avr.h: Same.
8918 * config/avr/avr.md: Remove trailing blanks.
8919 (prologue): Use avr_expand_prologue.
8920 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8921
8922 2013-01-14 Richard Biener <rguenther@suse.de>
8923
8924 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8925 verify_location, collect_subblocks): New functions.
8926 (verify_gimple_in_cfg): Verify that locations only reference
8927 BLOCKs in the functions BLOCK tree.
8928
8929 2013-01-14 Richard Biener <rguenther@suse.de>
8930
8931 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8932 PHI argument.
8933 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8934 unshare reference.
8935 (insert_out_of_ssa_copy_on_edge): Likewise.
8936 (rewrite_close_phi_out_of_ssa): Likewise.
8937 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8938 debug expressions.
8939 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8940 propagated constants.
8941 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8942 can not be shared.
8943
8944 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8945
8946 * config/avr/avr-modes.def: Add GPL copyright notice.
8947
8948 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
8949
8950 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8951 MEMMODEL_MASK to determine memory model.
8952 (atomic_store<mode>): Ditto from operands[2].
8953 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8954
8955 2013-01-13 Jakub Jelinek <jakub@redhat.com>
8956
8957 PR fortran/55935
8958 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8959 (fold_gimple_assign): Don't call unshare_expr here.
8960 (fold_ctor_reference): Call unshare_expr.
8961
8962 2013-01-13 Terry Guo <terry.guo@arm.com>
8963
8964 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8965 * doc/fragments.texi: Document MULTILIB_REUSE.
8966 * gcc.c (multilib_reuse): New internal spec.
8967 (set_multilib_dir): Also search multilib from multilib_reuse.
8968 * genmultilib (tmpmultilib3): Refactor code.
8969 (tmpmultilib4): Ditto.
8970 (multilib_reuse): New multilib argument.
8971
8972 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
8973
8974 * Makefile.in: Update copyright.
8975
8976 2013-01-12 Tom de Vries <tom@codesourcery.com>
8977
8978 PR middle-end/55890
8979 * calls.c (expand_call): Check if arg_nr is valid.
8980
8981 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8982
8983 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8984 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8985 documentation. Add missing '__' in front of
8986 __builtin_ia32_packssdw256.
8987
8988 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8989
8990 PR target/55719
8991 * config/s390/s390.c (s390_preferred_reload_class): Do not return
8992 NO_REGS for larl operands.
8993 (s390_reload_larl_operand): Use s390_load_address instead of
8994 emit_move_insn.
8995
8996 2013-01-11 Richard Biener <rguenther@suse.de>
8997
8998 * tree-cfg.c (verify_node_sharing_1): Split out from ...
8999 (verify_node_sharing): ... here.
9000 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9001
9002 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
9003
9004 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9005 Substitute TREECHECKING.
9006 * configure: Regenerate.
9007 * Makefile.in (TREECHECKING): New.
9008
9009 2013-01-11 Richard Guenther <rguenther@suse.de>
9010
9011 PR tree-optimization/44061
9012 * tree-vrp.c (extract_range_basic): Compute zero as
9013 value-range for __builtin_constant_p of function parameters.
9014
9015 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
9016
9017 Update copyright years.
9018
9019 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
9020
9021 PR rtl-optimization/55672
9022 * lra-eliminations.c (mark_not_eliminable): Permit addition with
9023 const to be eliminable.
9024
9025 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
9026
9027 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9028 * configure: Regenerate.
9029
9030 2013-01-10 Richard Biener <rguenther@suse.de>
9031
9032 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
9033
9034 2013-01-10 Richard Biener <rguenther@suse.de>
9035
9036 PR bootstrap/55792
9037 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9038 locations for virtual PHI arguments.
9039 (rewrite_update_phi_arguments): Likewise.
9040
9041 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
9042
9043 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9044 on to assembler.
9045
9046 2013-01-10 Jakub Jelinek <jakub@redhat.com>
9047
9048 PR tree-optimization/55921
9049 * tree-complex.c (expand_complex_asm): New function.
9050 (expand_complex_operations_1): Call it for GIMPLE_ASM.
9051
9052 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9053
9054 PR target/55718
9055 * config/s390/s390.c (s390_symref_operand_p)
9056 (s390_loadrelative_operand_p): Merge the two functions.
9057 (s390_check_qrst_address, print_operand_address): Add parameters
9058 to s390_loadrelative_operand_p invokation.
9059 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9060 (s390_reload_larl_operand, s390_secondary_reload): Use
9061 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9062 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9063
9064 2013-01-09 Mike Stump <mikestump@comcast.net>
9065
9066 * dse.c (record_store): Remove unnecessary assert.
9067
9068 2013-01-09 Jan Hubicka <jh@suse.cz>
9069
9070 PR tree-optimization/55569
9071 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9072 * cfgloop.h (scale_loop_profile): Likewise.
9073
9074 2013-01-09 Jan Hubicka <jh@suse.cz>
9075
9076 PR lto/45375
9077 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9078 functions.
9079 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9080
9081 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9082
9083 PR middle-end/55114
9084 * expr.h (maybe_emit_group_store): Declare.
9085 * expr.c (maybe_emit_group_store): New function.
9086 * builtins.c (expand_builtin_int_roundingfn): Call it.
9087 (expand_builtin_int_roundingfn_2): Likewise.
9088
9089 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
9090
9091 PR rtl-optimization/55829
9092 * lra-constraints.c (match_reload): Add code for absent output.
9093 (curr_insn_transform): Add code for reloads of matched inputs
9094 without output.
9095
9096 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
9097
9098 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9099 attribute of movddup insn to DF.
9100 (*vec_interleave_lowv2df): Ditto.
9101 (vec_dupv2df): Ditto.
9102
9103 2013-01-09 Jan Hubicka <jh@suse.cz>
9104
9105 PR tree-optimiation/55875
9106 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9107 EVERY_ITERATION parameter.
9108 (number_of_iterations_exit): Check if exit is executed every iteration.
9109 (idx_infer_loop_bounds): Similarly here.
9110 (n_of_executions_at_most): Simplify
9111 to only test for cases where statement is dominated by the
9112 particular bound; handle correctly the "postdominance" test.
9113 (scev_probably_wraps_p): Use max loop iterations info
9114 as a global bound first.
9115
9116 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
9117 Nick Clifton <nickc@redhat.com>
9118
9119 * config/v850/v850.md (cbranchsf4): New pattern.
9120 (cstoresf4): New pattern.
9121 (cbranchdf4): New pattern.
9122 (cstoredf4): New pattern.
9123 (movsicc): Disallow floating point comparisons.
9124 (cmpsf_le_insn): Fix order of operators.
9125 (cmpsf_lt_insn): Likewise.
9126 (cmpsf_eq_insn): Likewise.
9127 (cmpdf_le_insn): Likewise.
9128 (cmpdf_lt_insn): Likewise.
9129 (cmpdf_eq_insn): Likewise.
9130 (cmpsf_ge_insn): Use LE comparison.
9131 (cmpdf_ge_insn): Likewise.
9132 (cmpsf_gt_insn): Use LT comparison.
9133 (cmpdf_gt_insn): Likewise.
9134 (cmpsf_ne_insn): Delete pattern.
9135 (cmpdf_ne_insn): Delete pattern.
9136 * config/v850/v850.c (v850_gen_float_compare): Use
9137 gen_cmpdf_eq_insn for NE comparison.
9138 (v850_float_z_comparison_operator)
9139 (v850_float_nz_comparison_operator): Move from here ...
9140 * config/v850/predicates.md: ... to here. Move GT and GE
9141 comparisons into v850_float_z_comparison_operator.
9142 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9143 Delete prototype.
9144 (v850_float_nz_comparison_operator): Likewise.
9145
9146 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9147
9148 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9149 with calls to gen_insvsi/gen_insvdi.
9150
9151 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9152
9153 * config/i386/i386.c (initial_ix86_tune_features): Set up
9154 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9155
9156 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
9157 Jakub Jelinek <jakub@redhat.com>
9158
9159 PR tree-optimization/48189
9160 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9161 If nitercst is 0, don't predict the exit edge.
9162
9163 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9164
9165 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9166 in asm_fprintf with reg_names.
9167 (aarch64_print_operand_address): Likewise.
9168 (aarch64_return_addr): Likewise.
9169 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9170
9171 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9172
9173 * config/pa/pa.h (VAL_U6_BITS_P): Define.
9174 (INT_U6_BITS): Likewise.
9175 * config/pa/predicates.md (uint6_operand): New predicate.
9176 (shift5_operand, shift6_operand): Likewise.
9177 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9178 arith32_operand.
9179 (lshrdi3): Use shift6_operand.
9180 (shrpsi4, shrpdi4): New insn patterns.
9181 (extzv): Delete expander.
9182 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
9183 predicates in unamed zero extract patterns. Tighten common constraint.
9184 (extv): Delete expander.
9185 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
9186 predicates in unamed sign extract patterns. Tighten common constraint.
9187 (insv): Delete expander.
9188 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
9189 predicates in unamed insert patterns. Tighten common constraint.
9190 Change uint32_operand predicate to uint6_operand predicate in unamed
9191 DImode pattern to insert constant values of type 1...1xxxx.
9192
9193 2013-01-04 Jan Hubicka <jh@suse.cz>
9194
9195 PR tree-optimization/55823
9196 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9197 issue.
9198
9199 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9200 Uros Bizjak <ubizjak@gmail.com>
9201
9202 PR rtl-optimization/55845
9203 * df-problems.c (can_move_insns_across): Stop scanning at
9204 volatile_insn_p source instruction or give up if
9205 across_from .. across_to range contains any volatile_insn_p
9206 instructions.
9207
9208 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9209
9210 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9211 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9212 Declare.
9213 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
9214 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
9215
9216 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9217
9218 PR fortran/55341
9219 * asan.c (asan_clear_shadow): New function.
9220 (asan_emit_stack_protection): Use it.
9221
9222 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9223
9224 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9225 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9226 with tab instead of space.
9227
9228 2013-01-08 Nick Clifton <nickc@redhat.com>
9229
9230 * config/rl78/rl78.c (rl78_expand_prologue): Always select
9231 register bank 0 at the start of an interrupt handler.
9232 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9233 MDBH registers.
9234
9235 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9236
9237 * config/aarch64/aarch64-simd.md
9238 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9239 (aarch64_simd_bsl): Likewise.
9240 (aarch64_vcond_internal<mode>): Likewise.
9241 (vcond<mode><mode>): Likewise.
9242 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9243 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9244
9245 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9246
9247 * config/aarch64/aarch64-builtins.c
9248 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9249
9250 2013-01-08 Martin Jambor <mjambor@suse.cz>
9251
9252 PR debug/55579
9253 * tree-sra.c (analyze_access_subtree): Return true also after
9254 potentially creating a debug-only replacement.
9255
9256 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9257
9258 PR middle-end/55890
9259 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9260
9261 PR tree-optimization/54120
9262 * tree-vrp.c (range_fits_type_p): Don't allow
9263 src_precision < precision from signed vr to unsigned_p
9264 if vr->min or vr->max is negative.
9265 (simplify_float_conversion_using_ranges): Test can_float_p
9266 against CODE_FOR_nothing.
9267
9268 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9269 Richard Biener <rguenther@suse.de>
9270
9271 PR middle-end/55851
9272 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9273 types instead of just INTEGER_TYPE types.
9274
9275 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
9276
9277 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9278 TF_SIZE): Define.
9279
9280 2013-01-07 Steve Ellcey <sellcey@mips.com>
9281
9282 PR target/42661
9283 * config/mips/mips.opt: Change mad to mmad to match documentation.
9284
9285 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9286
9287 PR target/55897
9288 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9289 .progmemx.data now.
9290
9291 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9292
9293 PR target/55897
9294 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9295 (avr_addrspace_t): Add .section_name field.
9296 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9297 array size.
9298 (avr_addrspace): Same. Initialize .section_name. Remove last
9299 NULL entry. Put __memx into .progmemx.data.
9300 (progmem_section_prefix): Remove.
9301 (avr_asm_init_sections): No need to initialize progmem_section.
9302 (avr_asm_named_section): Use avr_addrspace[].section_name to get
9303 section name prefix.
9304 (avr_asm_select_section): Ditto. And use get_unnamed_section to
9305 retrieve the progmem section.
9306 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9307 boundary to run over avr_addrspace[].
9308 (avr_register_target_pragmas): Ditto.
9309
9310 2013-01-06 Jakub Jelinek <jakub@redhat.com>
9311
9312 * varasm.c (output_constant_def_contents): For asan_protect_global
9313 protected strings, adjust DECL_ALIGN if needed, before testing for
9314 anchored symbols.
9315 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9316 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
9317 normal decls.
9318 (output_object_block): For asan protected decls, emit asan padding
9319 after their contents.
9320 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9321 (asan_finish_file): Test it here instead.
9322
9323 2013-01-07 Nick Clifton <nickc@redhat.com>
9324 Matthias Klose <doko@debian.org>
9325 Doug Kwan <dougkwan@google.com>
9326 H.J. Lu <hongjiu.lu@intel.com>
9327
9328 PR driver/55470
9329 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9330
9331 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9332
9333 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9334
9335 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
9336
9337 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9338
9339 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9340
9341 PR target/54461
9342 * doc/install.texi (Cross-Compiler-Specific Options): Document
9343 --with-avrlibc.
9344
9345 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
9346
9347 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9348 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9349 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9350 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9351 vqmovun_high_s64): Fix source operand number and update copyright.
9352
9353 2013-01-07 Richard Biener <rguenther@suse.de>
9354
9355 PR middle-end/55890
9356 * gimple.h (gimple_call_builtin_p): New overload.
9357 * gimple.c (validate_call): New function.
9358 (gimple_call_builtin_p): Likewise.
9359 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9360 Use gimple_call_builtin_p.
9361 (find_func_clobbers): Likewise.
9362 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9363 (strlen_optimize_stmt): Likewise.
9364
9365 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9366
9367 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9368 (vld1q_dup_*): Likewise.
9369 (vld1_*): Likewise.
9370 (vld1q_*): Likewise.
9371 (vld1_lane_*): Likewise.
9372 (vld1q_lane_*): Likewise.
9373
9374 2013-01-07 Richard Biener <rguenther@suse.de>
9375
9376 * lto-streamer.h (LTO_minor_version): Bump to 2.
9377
9378 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9379
9380 * config/aarch64/aarch64-protos.h
9381 (aarch64_const_double_zero_rtx_p): Rename to...
9382 (aarch64_float_const_zero_rtx_p): ...this.
9383 (aarch64_float_const_representable_p): New.
9384 (aarch64_output_simd_mov_immediate): Likewise.
9385 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9386 move immediate case.
9387 * config/aarch64/aarch64.c
9388 (aarch64_const_double_zero_rtx_p): Rename to...
9389 (aarch64_float_const_zero_rtx_p): ...this.
9390 (aarch64_print_operand): Allow printing of new constants.
9391 (aarch64_valid_floating_const): New.
9392 (aarch64_legitimate_constant_p): Check for valid floating-point
9393 constants.
9394 (aarch64_simd_valid_immediate): Likewise.
9395 (aarch64_vect_float_const_representable_p): New.
9396 (aarch64_float_const_representable_p): Likewise.
9397 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9398 (aarch64_output_simd_mov_immediate): New.
9399 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9400 (*movdf_aarch64): Likewise.
9401 * config/aarch64/constraints.md (Ufc): New.
9402 (Y): call aarch64_float_const_zero_rtx.
9403 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9404
9405 2013-01-07 Richard Biener <rguenther@suse.de>
9406
9407 PR tree-optimization/55888
9408 PR tree-optimization/55862
9409 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9410 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9411 not if it is contained therein.
9412
9413 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9414
9415 * config/avr/t-avr: Typo.
9416
9417 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9418
9419 PR55243
9420 * config/avr/t-avr: Don't automatically rebuild
9421 $(srcdir)/config/avr/t-multilib
9422 $(srcdir)/config/avr/avr-tables.opt
9423 $(srcdir)/doc/avr-mmcu.texi
9424 (avr-mcus): New phony target to build them on request.
9425 (s-avr-mlib, s-avr-mmcu-texi): Remove.
9426 * avr/avr-mcus.def: Adjust comments.
9427
9428 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
9429
9430 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9431
9432 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9433
9434 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9435
9436 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9437
9438 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9439
9440 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
9441
9442 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9443 to generate profiling.
9444 * config/rs6000/aix64.h (LIB_SPEC): Same.
9445
9446 2013-01-04 Andrew Pinski <apinski@cavium.com>
9447
9448 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9449 New function.
9450 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9451
9452 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
9453
9454 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9455 unconditionally.
9456 (ix86_expand_move): Ditto.
9457 (ix86_zero_extend_to_Pmode): Ditto.
9458 (ix86_expand_call): Ditto.
9459 (ix86_expand_special_args_builtin): Ditto.
9460 (ix86_expand_builtin): Ditto.
9461
9462 2013-01-04 Richard Biener <rguenther@suse.de>
9463
9464 PR tree-optimization/55862
9465 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9466 translating them through PHI nodes.
9467
9468 2013-01-04 Martin Jambor <mjambor@suse.cz>
9469
9470 PR tree-optimization/55755
9471 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9472 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9473
9474 2013-01-04 Marek Polacek <polacek@redhat.com>
9475
9476 PR middle-end/55859
9477 * opts.c (default_options_optimization): Clarify error message.
9478
9479 2013-01-04 Richard Biener <rguenther@suse.de>
9480
9481 PR middle-end/55863
9482 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9483 reassociation.
9484
9485 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9486
9487 PR target/53789
9488 * config/pa/pa.md (movsi): Revert previous change.
9489 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9490 references.
9491
9492 2013-01-03 Richard Henderson <rth@redhat.com>
9493
9494 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9495 after eliminating TLS symbols.
9496
9497 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
9498
9499 PR bootstrap/50167
9500 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9501 * graphite-poly.c (debug_gmp_value): Likewise.
9502
9503 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
9504
9505 PR target/55712
9506 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9507 selected code model, define __code_mode_small__, __code_model_medium__,
9508 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9509 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9510 xchg temporary register with %k. Declare temporary register as
9511 early clobbered.
9512 [__x86_64__]: For medium and large code models, preserve %rbx register.
9513
9514 2013-01-03 Richard Biener <rguenther@suse.de>
9515
9516 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9517 (dump_subscript): Adjust.
9518 (finalize_ddr_dependent): Do not dump redundant info.
9519 (analyze_siv_subscript): Adjust.
9520 (subscript_dependence_tester): Likewise.
9521 (compute_affine_dependence): Likewise.
9522
9523 2013-01-03 Richard Biener <rguenther@suse.de>
9524
9525 Revert
9526 2013-01-03 Richard Biener <rguenther@suse.de>
9527
9528 PR tree-optimization/55857
9529 * tree-vect-stmts.c (vectorizable_load): Do not setup
9530 re-alignment for invariant loads.
9531
9532 2013-01-02 Richard Biener <rguenther@suse.de>
9533
9534 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9535 invariant load do not generate a vector load from the scalar location.
9536
9537 2013-01-03 Richard Biener <rguenther@suse.de>
9538
9539 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9540 for not vectorizing.
9541 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9542 not build INDIRECT_REFs, call get_name once only.
9543 (vect_create_data_ref_ptr): Likewise. Dump base object kind
9544 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9545
9546 2013-01-03 Richard Biener <rguenther@suse.de>
9547
9548 PR tree-optimization/55857
9549 * tree-vect-stmts.c (vectorizable_load): Do not setup
9550 re-alignment for invariant loads.
9551
9552 2013-01-03 Richard Biener <rguenther@suse.de>
9553
9554 PR lto/55848
9555 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9556 prefer a built-in decl.
9557
9558 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9559
9560 * gcc.c (process_command): Update copyright notice dates.
9561 * gcov.c (print_version): Likewise.
9562 * gcov-dump.c (print_version): Likewise.
9563
9564 PR rtl-optimization/55838
9565 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9566 iv0.step, iv1.step and step.
9567
9568 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9569 Marc Glisse <marc.glisse@inria.fr>
9570
9571 PR tree-optimization/55832
9572 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9573 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9574 integer_{one,zero}_node.
9575
9576 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9577
9578 PR debug/54402
9579 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9580 * var-tracking.c (reverse_op): Don't add reverse ops to
9581 VALUEs that have already
9582 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9583
9584 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9585
9586 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9587
9588 2013-01-02 Teresa Johnson <tejohnson@google.com>
9589
9590 * dumpfile.c (dump_loc): Print filename with location.
9591 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9592 new location_t parameter to emit complete unroll message with
9593 new dump framework.
9594 (canonicalize_loop_induction_variables): Compute loops location
9595 and pass to try_unroll_loop_completely.
9596 * loop-unroll.c (report_unroll_peel): New function.
9597 (peel_loops_completely): Use new dump format with location
9598 for main dumpfile message, and invoke report_unroll_peel on success.
9599 (decide_unrolling_and_peeling): Ditto.
9600 (decide_peel_once_rolling): Remove old dumpfile message subsumed
9601 by report_unroll_peel.
9602 (decide_peel_completely): Ditto.
9603 (decide_unroll_constant_iterations): Ditto.
9604 (decide_unroll_runtime_iterations): Ditto.
9605 (decide_peel_simple): Ditto.
9606 (decide_unroll_stupid): Ditto.
9607 * cfgloop.c (get_loop_location): New function.
9608 * cfgloop.h (get_loop_location): Declare.
9609
9610 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9611
9612 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9613 NULL.
9614
9615 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9616
9617 PR middle-end/55198
9618 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9619 BLKmode objects when EXPAND_MEMORY is specified.
9620
9621 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9622
9623 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9624 in loop predicate.
9625 (fold_builtin_cpu): Do not share cpu model decls across statements.
9626
9627 2013-01-02 Jason Merrill <jason@redhat.com>
9628
9629 PR c++/55804
9630 * tree.c (build_array_type_1): Revert earlier change.
9631
9632 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
9633
9634 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9635 "cortex-a57".
9636 * config/aarch64/aarch64-tune.md: Re-generate.
9637
9638 2013-01-02 Richard Biener <rguenther@suse.de>
9639
9640 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9641 invariant load do not generate a vector load from the scalar location.
9642
9643 2013-01-02 Richard Biener <rguenther@suse.de>
9644
9645 PR bootstrap/55784
9646 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9647 * configure: Regenerate.
9648
9649 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9650
9651 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9652 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9653 (expand_builtin_int_roundingfn_2): Keep the original target around
9654 for the fallback case.
9655
9656 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9657
9658 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9659 to be clear for sign changes.
9660
9661 2013-01-01 Jan Hubicka <jh@suse.cz>
9662
9663 * ipa-inline-analysis.c: Fix formatting.
9664
9665 2013-01-01 Jakub Jelinek <jakub@redhat.com>
9666
9667 PR tree-optimization/55831
9668 * tree-vect-loop.c (get_initial_def_for_induction): Use
9669 gsi_after_labels instead of gsi_start_bb.
9670 \f
9671 Copyright (C) 2013 Free Software Foundation, Inc.
9672
9673 Copying and distribution of this file, with or without modification,
9674 are permitted in any medium without royalty provided the copyright
9675 notice and this notice are preserved.