1 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3 PR tree-optimization/52424
4 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
5 calling dom_thread_across_edge.
7 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
9 * config/avr/avr.c: Move definition of TARGET macros to end of file.
11 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
13 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
14 * config/avr/avr.c (avr_output_bld): Remove unused function.
15 (avr_out_sbxx_branch): Use "%T" to print bit position.
17 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
19 * config/avr/avr.md: Untabify.
21 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
23 * config/avr/avr.md (eqne): New code iterator.
24 (*dec-and-branchsi): Use it in text peephole's condition.
25 (*dec-and-branchhi): Ditto.
26 (*dec-and-branchqi): Ditto.
28 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
31 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
32 the device does not have the skip-bug.
34 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
36 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
37 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
38 -mpretend-cmove): New.
40 2012-02-29 Jakub Jelinek <jakub@redhat.com>
43 * df.h (struct df_d): Adjust comment that hard_regs_live_count
44 doesn't count DEBUG_INSN refs.
45 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
48 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
52 2012-02-20 Richard Guenther <rguenther@suse.de>
53 PR tree-optimization/52298
54 * tree-vect-stmts.c (vectorizable_load): Properly use
55 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
58 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
61 * gimple.h (gimple_in_transaction): New.
62 (gimple_set_in_transaction): New.
63 (struct gimple_statement_base): Add in_transaction field.
64 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
66 (tree_ssa_lim_initialize): Compute transaction bits.
67 * tree.h (compute_transaction_bits): Protoize.
68 * trans-mem.c (tm_region_init): Use the heap to store BB
70 (compute_transaction_bits): New.
72 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
74 * gcc.c (display_help): Document --help=common and sort entries
77 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
79 * doc/install.texi: Document check-$LANG specific shortcuts
81 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
84 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
86 * config/arm/arm_neon.h: Regenerate.
87 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
88 (neon_vcgeu): New insn.
89 (neon_vcgtu): Likewise.
90 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
91 (ops): Unsigned comparison intrinsics call a different
94 2012-02-28 Richard Guenther <rguenther@suse.de>
97 * config/i386/i386.c (ix86_expand_vector_set): Fix element
98 ordering for the VEC_CONCAT for two element vectors for
99 V2SFmode, V2SImode and V2DImode.
101 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
104 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
105 detecting big-endian triplets.
107 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
109 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
110 mode if there is no type information available.
112 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
114 PR tree-optimization/53207
115 * doc/invoke.texi: Document as experimental and relying on graphite.
117 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
119 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
120 of initializer to changes from r184614.
122 2012-02-28 Richard Guenther <rguenther@suse.de>
124 PR tree-optimization/52395
125 * tree-sra.c (build_ref_for_offset): Also look at the base
126 TYPE_ALIGN when figuring out the alignment of the replacement.
128 2012-02-28 Richard Guenther <rguenther@suse.de>
130 PR tree-optimization/52402
131 * ipa-prop.c (ipa_modify_call_arguments): Properly use
132 mis-aligned types when creating the accesses at the call site.
134 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
136 * config/avr/builtins.def: New file.
137 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
138 * config/avr/avr.c (enum avr_builtin_id): Use it.
139 (avr_init_builtins): Use it. And use avr_bdesc.
140 (bdesc_1arg): Remove.
141 (bdesc_2arg): Remove.
142 (bdesc_3arg): Remove.
143 (struct avr_builtin_description): Add field n_args.
144 (avr_bdesc): New static variable using builtins.def.
145 (avr_expand_builtin): Use it.
146 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
147 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
148 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
150 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
153 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
154 match only one single hard register with respective hard reg rtx.
155 (movmemx_<mode>): Ditto.
156 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
157 insn anatomy of movmem[x]_<mode>.
158 (avr_out_movmem): Same for printing assembler and operand usage.
160 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
164 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
165 address spaces located outside of device flash.
167 * config/avr/avr.h (base_arch_s): Remove field n_segments.
168 (mcu_type_s): Add field n_flash.
169 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
170 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
171 (AVR_MCU): Add N_FLASH argument.
172 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
173 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
174 macro __FLASH<n> if that address space makes sense for the device.
175 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
176 outside of target flash.
177 (avr_asm_named_section): Ditto.
178 (avr_asm_select_section): Ditto.
179 (avr_addr_space_convert): Ditto.
180 (avr_emit_movmemhi): Ditto.
181 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
182 address space is outside of device flash.
183 (avr_insert_attributes): Ditto.
184 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
185 avr_current_arch->n_segments.
187 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
190 * config/i386/i386.md (*movabs<mode>_1): Enable only for
192 (*movabs<mode>_2): Likewise.
194 2012-02-27 Jakub Jelinek <jakub@redhat.com>
197 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
198 s_register_operand in the test instead of REG_P. Don't call
199 gen_reg_rtx if it won't be used.
201 PR tree-optimization/52376
202 * ipa-split.c (split_function): Ignore CLOBBER stmts.
204 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
206 * ifcvt.c (noce_get_condition): Check condition variable is not
207 small_register_classes_for_mode_p before accepting.
209 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
211 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
213 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
216 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
217 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
219 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
221 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
223 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
225 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
227 * config/sh/predicates.md: Remove blank lines.
228 * config/sh/sh.c: Fix typos in comments.
229 * config/sh/constraints.md: Likewise.
230 * config/sh/sh.md: Remove blank lines.
231 Fix typos in comments. Use ;; as comment characters.
233 2012-02-26 Walter Lee <walt@tilera.com>
235 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
236 (replace_mov_pcrel_step2): Ditto.
238 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
241 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
242 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
243 and locs that reference values newer than the non-canonical value
244 at hand. Return the canonical value as a worst case.
245 (memrefs_conflict_p): Walk canonical value's locs.
248 * cselib.c (preserve_only_constants): Rename to...
249 (preserve_constants_and_equivs): ... this. Split out...
250 (invariant_or_equiv_p): ... this. Preserve plus expressions
251 of other preserved expressions too.
252 (cselib_reset_table): Adjust.
253 * var-tracking.c (reverse_op): Use canonical value to build
256 2012-02-23 Kai Tietz <ktietz@redhat.com>
258 * config/i386/i386.c (ix86_delegitimize_address): Handle
259 UNSPEC_PCREL plus displacement.
261 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
264 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
265 to test for unusedness in st X addressing.
267 2012-02-24 Richard Guenther <rguenther@suse.de>
270 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
271 (is_gimple_reg_type): Move inline ...
272 * gimple.h (is_gimple_reg_type): ... here.
274 2012-02-24 Richard Guenther <rguenther@suse.de>
277 * passes.c (execute_function_todo): When verifying SSA form
278 verify gimple form first.
279 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
281 2012-02-24 Richard Guenther <rguenther@suse.de>
284 * fold-const.c (fold_addr_of_array_ref_difference): New function.
285 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
287 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
289 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
291 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
293 * tree-phinodes.c (make_phi_node): Mark static.
294 * tree-flow.h (make_phi_node): Remove extern decl.
295 * doc/gimple.texi (make_phi_node): Remove documentation.
297 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
299 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
300 * tree-ssa-sccvn.c (print_scc): Ditto.
302 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
304 * doc/passes.texi (Full redundancy elimination): Fix typo.
306 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
308 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
310 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
313 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
315 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
318 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
320 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
322 * config/avr/avr.md (code_stdname): Add ior, xor.
323 (xior): New code iterator.
324 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
325 (*<code_stdname><mode>qi.byte1-3): Ditto.
327 2012-02-23 Jakub Jelinek <jakub@redhat.com>
329 PR tree-optimization/52019
330 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
333 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
335 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
336 HAVE_INITFINI_ARRAY to work around namespace pollution in
337 certain versions of newlib system headers.
338 * config.in: Regenerate.
339 * configure: Regenerate.
340 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
341 instead of HAVE_INITFINI_ARRAY.
343 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
346 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
347 is not offsettable memory reference.
349 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
352 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
353 setting avr_need_clear_bss_p for __gnu_lto* symbols.
355 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
357 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
358 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
360 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
363 library on Solaris 8 even without TLS support.
364 * configure: Regenerate.
366 2012-02-22 Richard Guenther <rguenther@suse.de>
369 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
370 for GIMPLE_DEBUG stmts.
372 2012-02-22 Martin Jambor <mjambor@suse.cz>
375 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
376 according to the base object.
378 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
380 PR rtl-optimization/50063
381 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
382 and 2 (8-bit SP) in operand 2.
383 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
384 setup to use movhi_sp_r instead of vanilla move to write SP.
385 Adjust REG_CFA notes to superseed unspec.
386 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
388 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
389 known to be off) only with TARGET_NO_INTERRUPTS. Never use
390 irq_state 1 (IRQ known to be on) here.
392 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
394 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
396 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
397 assign_hard_reg): Likewise.
399 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
401 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
403 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
406 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
407 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
409 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
411 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
412 prototype from here to...
413 * config/avr/avr.h: ...here.
415 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
418 * thumb2.md (thumb2_shiftsi3_short): Split register and
419 immediate shifts. For register shifts tie operands 0 and 1.
420 (peephole2 for above): Check that register-controlled shifts
421 have suitably tied operands.
423 2012-02-21 Quentin Neill <quentin.neill@amd.com>
426 * config/i386/bdver1.md (bdver1_call, bdver1_push,
427 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
428 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
429 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
430 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
431 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
432 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
433 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
434 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
435 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
436 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
437 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
438 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
439 bdver1_ssevector_avx256_unaligned_load,
440 bdver1_ssevector_sse128_unaligned_load,
441 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
442 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
443 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
444 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
445 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
446 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
447 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
448 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
449 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
450 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
451 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
452 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
453 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
454 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
455 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
456 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
457 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
458 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
459 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
460 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
461 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
462 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
463 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
464 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
465 bdver1_ssediv_double_load, bdver1_ssediv_double,
466 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
467 Add "bdver2" attribute.
469 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
471 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
472 default if possible and not specified otherwise.
474 2012-02-21 Richard Guenther <rguenther@suse.de>
477 * gimplify.c (create_tmp_from_val): Use the main variant type
478 for the type of the temporary we create.
480 2012-02-21 Richard Guenther <rguenther@suse.de>
482 PR tree-optimization/52324
483 * gimplify.c (gimplify_expr): When re-gimplifying expressions
484 do not gimplify a MEM_REF address operand if it is already
487 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
489 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
490 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
492 2012-02-21 Richard Guenther <rguenther@suse.de>
494 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
497 2012-02-21 Jakub Jelinek <jakub@redhat.com>
499 PR tree-optimization/52318
500 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
501 vdef also to non-pure/const call stmts in the sequence.
503 2012-02-20 David S. Miller <davem@davemloft.net>
505 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
506 don't use the "rd %pc" instruction on v9 for PIC register loads.
508 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
511 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
512 in a transaction safe function.
514 2012-02-20 Kai Tietz <ktietz@redhat.com>
517 * stor-layout.c (place_field): Handle desired_align for
520 2012-02-20 Richard Guenther <rguenther@suse.de>
522 PR tree-optimization/52298
523 * tree-vect-stmts.c (vectorizable_store): Properly use
524 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
526 (vectorizable_load): Likewise.
527 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
528 Access DR_STEP after ensuring it is not NULL.
530 2012-02-20 Jakub Jelinek <jakub@redhat.com>
532 PR tree-optimization/52286
533 * fold-const.c (fold_binary_loc): For (X & C1) | C2
534 optimization use double_int_to_tree instead of build_int_cst_wide,
535 rewrite to use double_int vars.
537 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
540 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
542 Remove -e 0 from $gcc_cv_ld invocation.
543 Only use __GLIBC_PREREQ if defined.
544 Enable on Solaris since Solaris 8 patch.
545 (gcc_SUN_LD_VERSION): New macro.
546 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
547 gcc_SUN_LD_VERSION for version number format.
548 * configure: Regenerate.
549 * varasm.c (get_elf_initfini_array_priority_section): Set
550 SECTION_NOTYPE for non-default priority.
551 Use get_section instead of get_unnamed_section to emit
552 .init_array/.fini_array with default priority.
554 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
556 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
557 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
558 (mips_start_unique_function, mips_output_mips16_rdhwr)
559 (mips_code_end): New functions.
560 (TARGET_ASM_CODE_END): Define.
562 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
564 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
565 to stubs with non-sibling calls.
567 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
569 * doc/invoke.texi (-fira-* options): Copy-edit.
570 (ira-* parameters): Copy-edit.
572 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
574 * doc/invoke.texi: Minor copy-edits to bring into conformance with
575 GCC coding conventions.
577 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
579 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
580 when used as adjectives.
582 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
584 * doc/invoke.texi: Clean up "that"/"which" confusion.
586 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
588 * system.h: Poison SMALL_REGISTER_CLASSES
589 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
590 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
592 2012-02-16 Jakub Jelinek <jakub@redhat.com>
594 PR tree-optimization/52285
595 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
596 when deciding if a call is a tail call or tail recursion.
598 2012-02-16 Kai Tietz <ktietz@redhat.com>
600 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
601 interger-constant displacement for UNSPEC_PCREL.
603 2012-02-16 Jakub Jelinek <jakub@redhat.com>
605 PR rtl-optimization/52208
606 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
607 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
609 PR tree-optimization/52255
610 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
611 loop->header has virtual PHI, but exit_e->dest doesn't, add
612 virtual PHI to exit_e->dest and adjust all uses after the loop.
615 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
616 children with clone_tree_hash, not after it.
618 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
620 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
621 extended identifiers.
623 2012-02-16 Jakub Jelinek <jakub@redhat.com>
626 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
627 a same_body_alias, also test whether e->callee isn't a former
628 or current clone of the decl this is a same body alias of.
631 * cgraphunit.c (verify_cgraph_node): Fix a typo.
633 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
635 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
637 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
640 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
641 force_reg instead of copy_to_reg for better optimization. Force
642 non-register or memory operands into a register.
644 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
646 * extend.texi: Reserve upper bits of memory model for future use.
648 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
649 Anatoly Sokolov <aesok@post.ru>
650 Eric Weddington <eric.weddington@atmel.com>
653 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
654 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
655 Rewrite initializers for .macro.
656 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
657 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
658 atxmega32d4, atxmega32x1.
659 avrxmega4: atxmega64a3, atxmega64d3.
660 avrxmega5: atxmega64a1, atxmega64a1u.
661 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
662 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
663 avrxmega7: atxmega128a1, atxmega128a1u.
664 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
665 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
666 (struct base_arch_s): Rename reserved to xmega_p.
667 Rename reserved2 to have_rampd.
668 (AVR_XMEGA): New define.
669 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
670 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
671 * config/avr/predicates.md (io_address_operand): Take into
673 (low_io_address_operand): Ditto.
674 (high_io_address_operand): Ditto.
675 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
676 (enabled, movhi_sp_r): Use them.
677 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
678 cpp_define_formatted to built-in define __AVR_ARCH__.
679 (__AVR_XMEGA__): New built-in define.
680 (__AVR_HAVE_RAMPD__): New built-in define.
681 (__AVR_HAVE_RAMPX__): New built-in define.
682 (__AVR_HAVE_RAMPY__): New built-in define.
683 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
685 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
686 (avr_option_override): Initialize them.
687 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
688 (avr_init_expanders): Initialize them. No more block several calls.
689 (emit_push_sfr): New static function.
690 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
692 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
693 (avr_print_operand): Print addreeses as symbols for
694 RAMPX, RAMPY, RAMPD, CCP.
695 (output_movhi): Handle AVR_XMEGA when writing to SP.
696 (avr_out_movhi_mr_r_xmega): New static function.
697 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
698 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
699 __RAMPD__, __CCP__ as needed.
701 * config/avr/multilib.h: Regenerate.
702 * config/avr/t-multilib: Regenerate.
703 * config/avr/avr-tables.opt: Regenerate.
705 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
707 PR tree-optimization/50561
708 * graphite-flattening.c (lst_project_loop): Do not
709 remove old scattering dimensions after flattening.
710 (lst_do_flatten): Likewise.
712 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
714 * doc/extend.texi (AVR Built-in Functions): Remove doc for
715 __builtin_avr_map8, __builtin_avr_map16.
716 Document __builtin_avr_insert_bits.
718 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
719 (insert_bits): New insn.
720 (adjust_len.map_bits): Rename to insert_bits.
721 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
722 * avr-protos.h (avr_out_map_bits): Remove.
723 (avr_out_insert_bits, avr_has_nibble_0xf): New.
724 * config/avr/constraints.md (Cxf,C0f): New.
725 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
726 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
727 New built-in define __BUILTIN_AVR_INSERT_BITS.
728 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
729 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
730 (avr_move_bits): Rewrite.
731 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
733 (avr_map_op_t): New typedef.
734 (avr_map_op): New static variable.
735 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
736 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
737 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
738 (bdesc_3arg, avr_expand_triop_builtin): New.
739 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
740 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
741 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
742 (avr_map_equal_p, avr_map_sig_p): Remove.
743 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
744 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
745 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
746 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
747 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
748 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
750 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
752 * config/c6x/c6x.md (reserve_cycles): New attribute.
753 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
754 don't reserve functional units after the branch occurs.
756 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
759 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
760 functions into non-tm_pure functions.
762 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
765 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
766 (iterative_hash_canonical_type): Likewise.
767 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
770 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
772 * haifa-sched.c (prune_ready_list): Ensure that if there is a
773 sched-group insn, it either remains alone or the entire list is pruned.
775 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
777 * doc/install.texi (Prerequisites): Fix grammar.
778 (Configuration): Likewise.
780 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
782 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
783 MPC as part of GCC before describing configuring with --with-gmp etc.
784 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
787 2012-02-14 Jakub Jelinek <jakub@redhat.com>
790 * dwarf2out.c (clone_tree_hash): New function.
791 (copy_decls_walk): Use it instead of clone_tree.
793 2012-02-14 Richard Guenther <rguenther@suse.de>
795 PR tree-optimization/52244
796 PR tree-optimization/51528
797 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
798 replacements for integral types.
800 2012-02-14 Walter Lee <walt@tilera.com>
802 * config.gcc: Handle tilegx and tilepro.
803 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
805 Add HAVE_AS_TLS check for tilegx and tilepro.
806 * configure: Regenerate.
807 * doc/contrib.texi: Add Mat Hostetter and self.
808 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
809 Document instruction intrinsics and network accessing intrinsics.
810 (TILEPro Built-in Functions): New node. Document instruction
811 intrinsics and network accessing intrinsics.
812 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
813 (Specific, tilepro-*-linux*): Likewise.
814 * doc/invoke.texi (TILE-Gx Options): New section.
815 (TILEPro Options): New section.
816 * doc/md.texi (TILE-Gx): New section.
817 (TILEPro): New section.
818 * common/config/tilegx/tilegx-common.c: New file.
819 * common/config/tilepro/tilepro-common.c: New file.
820 * config/tilegx/constraints.md: New file.
821 * config/tilegx/linux.h: New file.
822 * config/tilegx/mul-tables.c: New file.
823 * config/tilegx/predicates.md: New file.
824 * config/tilegx/sync.md: New file.
825 * config/tilegx/t-tilegx: New file.
826 * config/tilegx/tilegx-builtins.h: New file.
827 * config/tilegx/tilegx-c.c: New file.
828 * config/tilegx/tilegx-generic.md: New file.
829 * config/tilegx/tilegx-modes.def: New file.
830 * config/tilegx/tilegx-multiply.h: New file.
831 * config/tilegx/tilegx-protos.h: New file.
832 * config/tilegx/tilegx.c: New file.
833 * config/tilegx/tilegx.h: New file.
834 * config/tilegx/tilegx.md: New file.
835 * config/tilegx/tilegx.opt: New file.
836 * config/tilepro/constraints.md: New file.
837 * config/tilepro/gen-mul-tables.cc: New file.
838 * config/tilepro/linux.h: New file.
839 * config/tilepro/mul-tables.c: New file.
840 * config/tilepro/predicates.md: New file.
841 * config/tilepro/t-tilepro: New file.
842 * config/tilepro/tilepro-builtins.h: New file.
843 * config/tilepro/tilepro-c.c: New file.
844 * config/tilepro/tilepro-generic.md: New file.
845 * config/tilepro/tilepro-modes.def: New file.
846 * config/tilepro/tilepro-multiply.h: New file.
847 * config/tilepro/tilepro-protos.h: New file.
848 * config/tilepro/tilepro.c: New file.
849 * config/tilepro/tilepro.h: New file.
850 * config/tilepro/tilepro.md: New file.
851 * config/tilepro/tilepro.opt: New file.
853 2012-02-14 Jakub Jelinek <jakub@redhat.com>
855 PR tree-optimization/52210
856 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
857 vect_model_simple_cost with two entry vect_def_type array instead
860 2012-02-14 Richard Guenther <rguenther@suse.de>
863 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
864 Do not stream DECL_QUALIFIER.
865 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
866 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
867 (find_decls_types_r): Do not walk DECL_QUALIFIER.
869 2012-02-14 Jakub Jelinek <jakub@redhat.com>
872 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
875 2012-02-13 Jakub Jelinek <jakub@redhat.com>
878 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
879 * cselib.c (cselib_subst_to_values_from_insn): New function.
880 * sched-deps.c (add_insn_mem_dependence,
881 sched_analyze_1, sched_analyze_2): Use it.
883 2012-02-13 Jan Hubicka <jh@suse.cz>
886 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
888 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
890 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
891 (GTM_SELF_SPECS): Define if not already defined.
892 (driver_self_specs): Add GTM_SELF_SPECS.
893 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
894 (GTM_SELF_SPECS): Define.
895 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
896 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
898 2012-02-13 Jakub Jelinek <jakub@redhat.com>
900 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
903 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
906 * omp-low.c (expand_omp_for): If a static schedule without chunk size
907 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
909 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
912 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
914 2012-02-13 Richard Guenther <rguenther@suse.de>
917 * passes.c (enable_disable_pass): Fix typo.
919 2012-02-13 Jakub Jelinek <jakub@redhat.com>
922 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
923 XOR for reduce_bit_field if type is unsigned.
925 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
927 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
928 disallow changes from SFmode to mode with different size in FP regs.
930 2012-02-12 Robert Millan <rmh@gnu.org>
931 Gerald Pfeifer <gerald@pfeifer.com>
933 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
936 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
938 PR rtl-optimization/52175
939 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
940 to frame-related instructions.
942 2012-02-10 Jason Merrill <jason@redhat.com>
945 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
946 (demangle_new_symbols): Fill it.
947 (scan_linker_output): Walk it.
948 (start_tweaking): Split out from scan_linker_output.
949 (maybe_tweak): Update sym->chosen.
950 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
952 2012-02-11 Jakub Jelinek <jakub@redhat.com>
955 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
957 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
959 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
960 having the same mode as previous compare.
962 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
964 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
965 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
966 (nonlocal_goto_internal): Likewise.
967 (nonlocal_goto): Emit a use and an indirect jump directly.
969 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
972 * doc/extend.texi : Update comments for __atomic_compare_exchange and
973 __atomic_{is,always}_lock_free.
975 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
978 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
979 negative constant address for x32.
981 2012-02-10 Richard Henderson <rth@redhat.com>
983 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
984 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
985 for GIMPLE_TRANSACTION. Tidy if's into a switch.
987 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
988 Ira Rosen <irar@il.ibm.com>
990 PR tree-optimization/50031
991 * targhooks.c (default_builtin_vectorization_cost): Handle
993 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
994 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
995 all types of reduction and pattern statements.
996 (vect_estimate_min_profitable_iters): Likewise.
997 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
998 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
999 for explicit realigns.
1000 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
1001 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
1003 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1004 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
1005 vec_perm for VSX and handle vec_promote_demote.
1007 2012-02-10 Jakub Jelinek <jakub@redhat.com>
1010 * builtins.c (fold_builtin_atomic_always_lock_free,
1011 expand_builtin_atomic_always_lock_free,
1012 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
1013 Return and/or test boolean_true_node/boolean_false_node instead of
1014 integer_one_node/integer_zero_node.
1016 2012-02-10 Jan Hubicka <jh@suse.cz>
1019 * predict.c (predict_paths_for_bb): Prevent looping.
1020 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
1022 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
1024 * config/arm/arm.c (output_move_double): In one case properly
1025 count number of instructions that will be emitted.
1027 2012-02-10 Richard Guenther <rguenther@suse.de>
1029 PR translation/52193
1030 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
1032 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
1035 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
1037 2012-02-09 Jakub Jelinek <jakub@redhat.com>
1040 * var-tracking.c (emit_note_insn_var_location): If
1041 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
1042 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
1043 non-NOTE_DURING_CALL_P insn.
1045 2012-02-09 Bin Cheng <bin.cheng@arm.com>
1048 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
1050 2012-02-08 Magnus Granberg <zorry@gentoo.org>
1053 * gcc.c (switch_matches) Support switches with separated form,
1056 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
1058 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
1060 (RAMPZ_ADDR): Ditto.
1061 * config/avr/avr.c (avr_addr_t): New typedef.
1062 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
1063 (avr_init_expanders): Initialize it.
1064 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
1066 (expand_epilogue): Ditto.
1067 (avr_print_operand): Ditto.
1068 (avr_file_start): Ditto.
1069 (avr_emit_movmemhi): Ditto.
1071 2012-02-08 Richard Guenther <rguenther@suse.de>
1073 PR tree-optimization/46886
1074 * tree-flow.h (do_while_loop_p): Declare.
1075 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
1076 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
1078 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
1080 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
1081 always succeed for integers larger than a native word.
1083 2012-02-08 Richard Guenther <rguenther@suse.de>
1085 PR rtl-optimization/52170
1086 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
1087 properly handle integer vector modes.
1089 2012-02-08 Jakub Jelinek <jakub@redhat.com>
1091 PR gcov-profile/52150
1092 * coverage.c: Include target.h.
1093 (build_var): Call targetm.strip_name_encoding on the assembler name.
1094 Change one _ into . or $ if the target allows it.
1095 * Makefile.in (coverage.o): Depend on $(TARGET_H).
1097 PR rtl-optimization/52139
1098 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
1099 is a BARRIER after emit_insn_after_noloc, move BB_END
1100 to the last non-BARRIER insn before it.
1102 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
1105 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
1106 (mips_gimplify_va_arg_expr): Call it instead of
1107 std_gimplify_va_arg_expr.
1109 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1111 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
1112 message for -mno-pointers-to-nested-function.
1114 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
1117 * expr.c (get_inner_reference): If there is an offset, add a negative
1118 bit position to it (if any).
1120 2012-02-07 Jakub Jelinek <jakub@redhat.com>
1122 PR rtl-optimization/52060
1123 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
1124 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
1125 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
1126 and/or i0src_copy2 when needed.
1128 2012-02-07 Jakub Jelinek <jakub@redhat.com>
1130 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
1131 or LTOPLUGINSONAME if have_c.
1133 * config/freebsd-spec.h: Add comment about what macros can be defined
1135 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
1136 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
1139 2012-02-07 Richard Guenther <rguenther@suse.de>
1141 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
1142 newline in -alias dumps.
1144 2012-02-07 Kai Tietz <ktietz@redhat.com>
1145 Dave Korn <dave.korn.cygwin@gmail.com>
1148 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
1149 Take care that typinfo gets dllexport-attribute.
1151 2012-02-07 Jakub Jelinek <jakub@redhat.com>
1154 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
1155 if modifier < EXPAND_SUM call force_operand on the result.
1157 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
1159 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
1160 adding __forwarder_dst__ prefix if a forwarder_section attribute is
1162 (epiphany_function_type): Replace types for specific interrupts with
1163 EPIPHANY_FUNCTION_INTERRUPT.
1164 (EPIPHANY_INTERRUPT_P): Update.
1165 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
1166 New static function.
1167 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
1168 <disinterrupt>: Affects type identity.
1169 (epiphany_handle_interrupt_attribute): Handle variable number of
1171 (epiphany_compute_function_type): Update for new
1172 epiphany_function_type definition.
1173 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
1174 handlers with a longcall forwarder.
1175 (epiphany_start_function): Handle multiple interrupt arguments and/or
1176 forwarder_section attribute.
1178 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
1181 2012-02-07 Alan Modra <amodra@gmail.com>
1184 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
1187 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1189 PR tree-optimization/50969
1190 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
1191 use vec_perm rather than vector_stmt.
1192 (vect_model_load_cost): Likewise.
1193 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
1194 vec_perm to be the same as other vector statements.
1195 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
1196 cost of vec_perm for TARGET_VSX.
1198 2012-02-06 Richard Guenther <rguenther@suse.de>
1200 PR tree-optimization/52115
1201 * tree-sra.c (access_has_replacements_p): New function.
1202 (sra_modify_assign): Use it to decide whether a use is uninitialized.
1204 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
1207 * trans-mem.c (expand_call_tm): Add an assertion.
1208 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
1211 2012-02-06 Richard Guenther <rguenther@suse.de>
1213 PR tree-optimization/50955
1214 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
1215 raise cost of expressions that replace an address with an
1216 expression based on a different pointer.
1218 2012-02-06 Jakub Jelinek <jakub@redhat.com>
1221 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
1222 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
1224 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1227 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
1228 -Weffc++ and specify guidelines come from second edition.
1230 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
1232 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
1233 (sibcall_value_multiple_internal, call_split, call_internal_direct)
1234 (call_direct_split, call_value_split, call_value_internal_direct)
1235 (call_value_direct_split, call_value_multiple_split): Use jal and
1236 jal_macro attributes.
1238 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
1240 * reload1.c (reload_regs_reach_end_p): Replace with...
1241 (reload_reg_rtx_reaches_end_p): ...this function.
1242 (new_spill_reg_store): Update commentary.
1243 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
1244 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
1245 before setting new_spill_reg_store.
1246 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
1247 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
1248 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
1249 for non-spill reload registers.
1251 2012-02-05 Ira Rosen <irar@il.ibm.com>
1253 PR tree-optimization/52091
1254 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
1255 (vect_is_simple_use_1): Likewise.
1256 * tree-vect-loop.c (vectorizable_reduction): Update calls
1257 to vect_is_simple_use_1 and vect_is_simple_use.
1258 (vectorizable_live_operation): Likewise.
1259 * tree-vect-patterns.c (widened_name_p,
1260 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
1261 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
1262 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
1263 vectorizable_shift,vectorizable_operation, vectorizable_store,
1264 vectorizable_load): Likewise.
1265 (vect_is_simple_cond): Add an argument, pass it to
1266 vect_is_simple_use_1.
1267 (vectorizable_condition): Update calls to vect_is_simple_cond,
1269 (vect_is_simple_use): Add an argument, the statement in which
1270 OPERAND is used. Check that if OPERAND's def stmt is a double
1271 reduction phi node, the use is a phi node too.
1272 (vect_is_simple_use_1): Add an argument, pass it to
1274 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
1275 to vect_is_simple_use.
1277 2012-02-04 Jakub Jelinek <jakub@redhat.com>
1279 PR rtl-optimization/52095
1280 * modulo-sched.c (dump_insn_locator): New function.
1281 (loop_canon_p, sms_schedule): Use it.
1283 PR rtl-optimization/52113
1284 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
1285 even for decomposable shift/zext insns.
1287 2012-02-03 Jakub Jelinek <jakub@redhat.com>
1288 Zdenek Dvorak <ook@ucw.cz>
1290 PR rtl-optimization/52092
1291 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
1292 on get_iv_value result.
1294 2012-02-02 Andrew Pinski <apinski@cavium.com>
1298 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
1300 2012-02-02 Jakub Jelinek <jakub@redhat.com>
1303 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
1305 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
1307 PR rtl-optimization/49800
1308 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
1309 (sched_finish): Call regstat_free_n_sets_and_refs.
1311 2012-02-02 Jia Liu <proljc@gmail.com>
1313 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
1316 2012-02-02 Jan Hubicka <jh@suse.cz>
1317 Tom de Vries <tom@codesourcery.com>
1320 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
1321 * varpool.c (varpool_analyze_pending_decls): Likewise.
1323 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
1324 Jayant R Sonar <jayant.sonar@kpitcummins.com>
1326 * config.gcc: Add cr16-* support.
1328 * doc/extend.texi: Document cr16 extensions.
1329 * doc/install.texi: Document cr16 install.
1330 * doc/invoke.texi: Document cr16 options.
1331 * doc/md.texi: Document cr16 constraints.
1333 * common/config/cr16/cr16-common.c: New file.
1334 * config/cr16/cr16.c: New file.
1335 * config/cr16/cr16.h: New file.
1336 * config/cr16/cr16.md: New file.
1337 * config/cr16/cr16.opt: New file.
1338 * config/cr16/cr16-protos.h: New file.
1339 * config/cr16/predicates.md: New file.
1340 * config/cr16/constraints.md: New file.
1341 * config/cr16/t-cr16: New file.
1343 2012-02-02 Jakub Jelinek <jakub@redhat.com>
1346 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
1347 that operands[2] is either immediate, or q_regs_operand.
1349 PR tree-optimization/52073
1350 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
1351 a pattern stmt for pattern uses, ignore uses outside of the loop.
1353 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
1355 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
1356 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
1357 (OUT_AS1, OUT_AS2): Remove.
1359 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
1361 PR rtl-optimization/51374
1362 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
1363 to cross other volatile_refs_p insns.
1365 2012-02-01 Richard Guenther <rguenther@suse.de>
1367 * doc/invoke.texi (fno-inline): Clarify documentation.
1368 (finline-small-functions): Likewise.
1369 (finline-functions): Likewise.
1370 * common.opt (finline): Adjust comment and documentation.
1371 (finline-small-functions): Clarify documentation.
1372 (finline-functions): Likewise.
1373 (finline-functions-called-once): Likewise.
1375 2012-02-01 Tristan Gingold <gingold@adacore.com>
1377 * c-typeck.c (composite_type): Keep mode for pointers.
1379 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
1381 * function.h (regno_reg_rtx): Adjust comment.
1382 * reginfo.c (init_reg_modes_target): Only use the previous mode
1383 if it fits within one register. Remove MIPS comment.
1385 2012-01-31 Jakub Jelinek <jakub@redhat.com>
1388 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
1390 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1392 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
1393 to srak instruction.
1395 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1397 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
1399 2012-01-31 Jakub Jelinek <jakub@redhat.com>
1404 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
1406 2012-01-31 Richard Guenther <rguenther@suse.de>
1408 PR tree-optimization/51528
1409 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
1412 2012-01-31 Jakub Jelinek <jakub@redhat.com>
1417 * ree.c (add_removable_extension): Change def_map argument
1418 to unsigned *, store in def_map 1 + offset into *insn_list vector
1419 instead of pointers into the vector.
1420 (find_removable_extensions): Adjust caller.
1422 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
1424 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
1425 Transform all "* quoted-c-code" to { c-code }.
1426 Remove redundant test for "optimize" in combine patterns.
1427 Move (include "avr-dimode.md") to end of file.
1429 2012-01-30 Bin Cheng <bin.cheng@arm.com>
1432 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1433 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
1435 2012-01-30 Richard Guenther <rguenther@suse.de>
1437 PR tree-optimization/52028
1438 * tree-loop-distribution.c (ldist_gen): Properly update
1441 2012-01-30 Jakub Jelinek <jakub@redhat.com>
1444 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
1445 set_cur_line_info_table if not emitting debug info.
1447 PR tree-optimization/52046
1448 * tree-vect-patterns.c (check_bool_pattern): Give up if
1449 a comparison could throw.
1452 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
1454 2012-01-30 Richard Guenther <rguenther@suse.de>
1456 PR tree-optimization/52045
1457 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
1458 SSA form if cfgcleanup did anything.
1460 2012-01-30 Richard Guenther <rguenther@suse.de>
1462 PR tree-optimization/52045
1463 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
1464 before computing final todo.
1466 2012-01-30 Richard Guenther <rguenther@suse.de>
1468 PR tree-optimization/51528
1469 * tree-sra.c (sra_modify_assign): Re-factor in preparation
1472 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
1474 * df-problems.c (df_kill_notes): Check that the use refers
1475 to the note under examination.
1477 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
1480 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
1481 parameter and use short-lived pseudos.
1482 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
1483 (sparc_expand_vector_init): Const-ify local variables and adjust
1484 calls to above functions.
1486 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
1488 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
1490 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
1492 * doc/invoke.texi: Make usage of "compile time" and
1493 "run time"/"runtime" consistent throughout the file.
1495 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
1497 * config/alpha/alpha.c (alpha_option_override): Default to
1498 full IEEE compliance mode for Go language.
1500 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
1502 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
1503 (LINK_SSP_SPEC): Define.
1505 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1508 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
1511 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
1513 * doc/invoke.texi: Correct hyphenation of "floating point",
1514 "double precision", and related terminology throughout the file.
1516 2012-01-28 Jakub Jelinek <jakub@redhat.com>
1519 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
1520 arm_general_register_operand predicate for operand 2 instead of
1523 2012-01-27 Ian Lance Taylor <iant@google.com>
1526 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
1527 * builtins.c (expand_builtin_init_trampoline): Add onstack
1528 parameter. Change caller.
1529 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
1530 * tree.c (build_common_builtin_nodes): Declare
1531 __builtin_init_heap_trampoline.
1533 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
1535 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
1536 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
1537 * config/avr/avr.c: Ditto.
1538 (avr_regnames): Remove because unused.
1539 * config/avr/avr.md (*cpse.ne): New peephole.
1540 (*cpse.eq): New peephole from former cpse peepholes.
1542 2012-01-27 Michael Eager <eager@eagercon.com>
1544 * config/microblaze.c (microblaze_emit_compare): Correct
1545 test after pcmp instruction.
1547 2012-01-27 Richard Guenther <rguenther@suse.de>
1549 PR tree-optimization/52020
1550 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
1552 2012-01-27 Richard Guenther <rguenther@suse.de>
1554 * ipa-pure-const.c (check_stmt): Clobbers do not make a
1555 function non-const/pure.
1557 2012-01-27 Richard Guenther <rguenther@suse.de>
1559 PR tree-optimization/50444
1560 * tree-sra.c (build_ref_for_offset): Properly adjust the
1561 MEM_REF type for unaligned accesses.
1563 2012-01-27 Richard Guenther <rguenther@suse.de>
1565 PR tree-optimization/50444
1566 * expr.c (mem_ref_refers_to_non_mem_p): New function.
1567 (expand_assignment): Use it. Properly handle misaligned
1568 bases when expanding stores to component references.
1569 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
1572 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
1575 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
1576 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
1577 * tree-data-ref.c (find_data_references_in_loop): Make static.
1578 (compute_all_dependences): Change return type to bool. Bail out
1579 for too many datarefs in a loop. Move the hunk resetting the data
1580 dependences vector from ...
1581 (compute_data_dependences_for_loop): ... here. Account for
1582 compute_all_dependences returning false.
1583 (compute_data_dependences_for_bb): Likewise.
1584 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
1585 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
1587 2012-01-27 Richard Guenther <rguenther@suse.de>
1590 * expr.c (store_field): Use the alias-set of the scratch memory
1593 2012-01-27 Tom de Vries <tom@codesourcery.com>
1595 PR tree-optimization/51990
1596 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1598 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
1600 2012-01-27 Jakub Jelinek <jakub@redhat.com>
1603 * var-tracking.c (reverse_op): Don't add any reverse operation
1604 if V already has any constant locations.
1606 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
1608 * doc/invoke.texi: Correct usage of "command line" (noun)
1609 vs "command-line" (adjective) throughout.
1611 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
1613 * doc/invoke.texi (Language Independent Options): Move
1614 -Wcoverage-mismatch blurb from here....
1615 (Warning Options): ...to here.
1617 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
1619 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1620 Set rs6000_always_hint to false for 476.
1622 2012-01-27 Matthias Klose <doko@ubuntu.com>
1624 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
1626 * incpath.c (add_standard_paths): Likewise.
1628 2012-01-27 Richard Henderson <rth@redhat.com>
1630 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
1631 * config/m68k/sync.md (atomic_test_and_set): Rename from
1632 sync_test_and_setqi and adjust the operands.
1633 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
1634 and unconditionally enable.
1636 2012-01-27 Richard Henderson <rth@redhat.com>
1638 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
1639 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
1640 (ldstub): Rename from ldstubqi.
1641 (ldstub<I24MODE>): Remove.
1643 2012-01-27 Richard Henderson <rth@redhat.com>
1645 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
1646 * c-cppbuiltin.c (cpp_atomic_builtins): Define
1647 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1648 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
1649 * doc/tm.texi: Rebuild.
1651 2012-01-27 Richard Henderson <rth@redhat.com>
1653 * optabs.c (gen_atomic_test_and_set): Remove default.
1654 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
1656 2012-01-26 Jakub Jelinek <jakub@redhat.com>
1658 PR rtl-optimization/51978
1659 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
1660 (combine_reaching_defs): Likewise.
1661 (struct re_info): Remove.
1662 (add_removable_extension): Remove x and data arguments,
1663 add insn, insn_list and def_map. Use the arguments directly
1664 instead of using struct re_info.
1665 (find_removable_extensions): Don't call add_removable_extension
1666 through note_stores, instead just call it with single_set
1668 (find_and_remove_re): Pass curr_cand->expr instead of
1669 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
1671 2012-01-26 Michael Matz <matz@suse.de>
1673 PR tree-optimization/46590
1674 * cfgexpand.c: Revert last change (r183305).
1675 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
1677 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
1678 checking for emptiness.
1680 2012-01-26 Jakub Jelinek <jakub@redhat.com>
1683 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
1684 non-addressable non-BLKmode base correctly.
1686 2012-01-26 Michael Matz <matz@suse.de>
1688 PR tree-optimization/48794
1689 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
1690 regions referenced from RESX/EH_DISPATCH.
1692 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1694 * config/s390/s390.h: Make BRANCH_COST an option.
1695 * config/s390/s390.opt: New option -mbranch-cost.
1697 2012-01-26 Richard Henderson <rth@redhat.com>
1699 Revert 2012-01-24 change:
1700 * trans-mem.c (requires_barrier): Do not instrument thread local
1701 variables and emit save/restore for them.
1703 2012-01-25 Jakub Jelinek <jakub@redhat.com>
1706 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
1709 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
1711 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
1714 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
1717 Rename __pgm to __flash.
1718 Rename __pgm1 to __flash1.
1719 Rename __pgm2 to __flash2.
1720 Rename __pgm3 to __flash3.
1721 Rename __pgm4 to __flash4.
1722 Rename __pgm5 to __flash5.
1723 Rename __pgmx to __memx.
1724 * doc/extend.texi (AVR Named Address Spaces)
1725 Rename address space names as indicated above.
1726 * config/avr/avr.c (avr_addrspace): Ditto.
1728 * config/avr/avr-protos.h
1729 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
1730 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
1731 * config/avr/predicates.md: Ditto.
1732 * config/avr/avr.c Ditto, and
1733 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
1734 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
1736 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
1737 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
1738 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
1739 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
1740 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
1741 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
1742 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
1743 * config/avr/avr.c: Ditto.
1744 * config/avr/avr.md: Ditto.
1746 2012-01-25 Jason Merrill <jason@redhat.com>
1749 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
1751 2012-01-25 Jakub Jelinek <jakub@redhat.com>
1753 PR tree-optimization/51987
1754 * tree-data-ref.c (get_references_in_stmt): Handle references in
1755 non-volatile GIMPLE_ASM.
1757 2012-01-25 Richard Guenther <rguenther@suse.de>
1759 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
1760 bases are dereferenced.
1762 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
1764 PR rtl-optimization/48374
1765 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
1767 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
1769 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
1770 compute_data_dependences_for_loop returns false.
1771 * tree-parloops.c (loop_parallel_p): Likewise.
1773 2012-01-25 Richard Guenther <rguenther@suse.de>
1775 * tree.h (get_pointer_alignment_1): Declare.
1776 * builtins.c (get_pointer_alignment_1): New function.
1777 (get_pointer_alignment): Use it.
1779 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1781 PR rtl-optimization/48308
1782 * combine.c (enum undo_kind): Add UNDO_LINKS.
1783 (struct undo): Add member l to other_contents and where.
1784 (do_SUBST_LINK): New.
1786 (try_combine): Handle LOG_LINKS for the dummy i1 case.
1787 (undo_all): Handle UNDO_LINKS.
1789 2012-01-25 Richard Henderson <rth@redhat.com>
1791 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
1794 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1796 * optabs.c (gen_atomic_test_and_set): Use each argument.
1798 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1800 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
1801 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
1802 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
1803 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
1804 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
1805 TARGET_PAIRED_SINGLE_FLOAT.
1807 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1809 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
1810 (in_struct, return_val): Remove MEM documentation.
1811 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
1812 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
1813 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
1815 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1816 * cfgexpand.c (add_alias_set_conflicts): Likewise.
1817 * expr.c (store_field): Likewise.
1818 * function.c (assign_stack_temp_for_type): Likewise.
1819 * ifcvt.c (noce_try_cmove_arith): Likewise.
1820 * reload1.c (reload): Likewise.
1821 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
1822 (alpha_set_memflags): Likewise.
1823 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
1825 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1827 * rtl.h (true_dependence, canon_true_dependence): Remove varies
1829 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
1830 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
1831 (true_dependence_1, true_dependence, canon_true_dependence): Remove
1833 * cselib.c (cselib_rtx_varies_p): Delete.
1834 (cselib_invalidate_mem): Update call to canon_true_dependence.
1835 * dse.c (record_store, check_mem_read_rtx): Likewise.
1836 (scan_reads_nospill): Likewise.
1837 * cse.c (check_dependence): Likewise.
1838 (cse_rtx_varies_p): Delete.
1839 * expr.c (safe_from_p): Update call to true_dependence.
1840 * ira.c (validate_equiv_mem_from_store): Likewise.
1841 (memref_referenced_p): Likewise.
1842 * postreload-gcse.c (find_mem_conflicts): Likewise.
1843 * sched-deps.c (sched_analyze_2): Likewise.
1844 * store-motion.c (load_kills_store): Likewise.
1845 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
1846 * gcse.c (mems_conflict_for_gcse_p): Likewise.
1847 (compute_transp): Update call to canon_true_dependence.
1849 2012-01-25 Richard Henderson <rth@redhat.com>
1851 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
1852 (maybe_emit_atomic_test_and_set): New.
1853 (expand_sync_lock_test_and_set): Use it.
1854 (expand_atomic_test_and_set): Likewise.
1855 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
1856 the implementation; clarify implementation defined details.
1857 * doc/md.texi (atomic_test_and_set): Document.
1859 2012-01-25 Richard Henderson <rth@redhat.com>
1861 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
1863 2012-01-25 Richard Henderson <rth@redhat.com>
1866 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
1867 to effect no-op split.
1869 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
1872 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
1873 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
1874 (BT_FN_VOID_PTR_INT_SIZE): New.
1875 (BT_FN_UINT_UINT_VAR): Remove.
1876 (BT_FN_UINT32_UINT32_VAR): New.
1877 (BT_FN_DOUBLE_VPTR): Remove.
1878 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
1880 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
1881 (_ITM_changeTransactionMode): Same.
1882 (_ITM_memmoveRtWt): Change return type to void.
1883 (_ITM_memcpyRtWt): Same.
1884 (_ITM_memsetW): Same.
1885 (_ITM_RaRD): Change types to double.
1890 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
1892 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
1893 Patrick Marlier <patrick.marlier@gmail.com>
1895 * trans-mem.c (requires_barrier): Do not instrument thread local
1896 variables and emit save/restore for them.
1898 2012-01-24 Jason Merrill <jason@redhat.com>
1901 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
1902 output static aliases.
1904 2012-01-24 Jakub Jelinek <jakub@redhat.com>
1907 * common.opt (-pie, -shared, pie, shared): Change from Common to
1909 * gcc.c (display_help): Display help for -pie and -shared.
1911 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
1914 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
1915 Remove note on size/offset limitation.
1916 (AVR Variable Attributes): Add example how to read data located
1917 with progmem. Refer to named address spaces.
1918 * doc/invoke.texi (AVR Options): Fix typo.
1920 2012-01-24 Richard Guenther <rguenther@suse.de>
1922 Forward-port to trunk
1923 2010-09-21 Jakub Jelinek <jakub@redhat.com>
1926 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
1927 op0 isn't sufficiently aligned and there is movmisalignM
1928 insn for mode, use it to load op0 into a temporary register.
1930 2012-01-24 Jakub Jelinek <jakub@redhat.com>
1933 * target.def (const_not_ok_for_debug_p): New hook.
1934 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
1936 * doc/tm.texi: Regenerated.
1937 * dwarf2out.c (const_ok_for_output_1): If
1938 targetm.const_not_ok_for_debug_p returns true, fail.
1939 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
1941 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
1943 2012-01-23 Kai Tietz <ktietz@redhat.com>
1946 * config/i386/predicates.md (symbolic_operand): Allow
1947 UNSPEC_PCREL as PIC expression for lea.
1948 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
1949 * config/i386/i386.c (ix86_delegitimize_address): Handle
1950 UNSPEC_PCREL for none-MEM, too.
1952 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
1954 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
1955 (ipa_tm_create_version_alias): Same.
1957 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1960 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
1961 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
1963 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
1964 Patrick Marlier <patrick.marlier@gmail.com>
1965 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1968 * lto-wrapper.c (run_gcc): Pass the LTO section name to
1969 simple_object_start_read.
1971 2012-01-23 Richard Guenther <rguenther@suse.de>
1974 PR tree-optimization/51895
1975 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
1976 parameter decomposition into BLKmode components.
1978 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
1980 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
1981 fake variables for restrict-qualified pointers whose pointed-to type
1982 contains a placeholder.
1984 2012-01-23 Richard Guenther <rguenther@suse.de>
1986 PR tree-optimization/51949
1987 * ipa-split.c (execute_split_functions): Do not split malloc functions.
1989 2012-01-23 Jakub Jelinek <jakub@redhat.com>
1991 PR rtl-optimization/51933
1992 * ree.c (transform_ifelse): Return true right away if dstreg is
1993 already wider or equal to cand->mode.
1994 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
1995 (make_defs_and_copies_lists): Remove defs_list and copies_list
1996 arguments, add state argument, just truncate state->work_list
1997 instead of always allocating and freeing the vector. Assert that
1998 get_defs succeeds instead of returning 2. Changed return type to bool.
1999 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
2000 have ext_src_mode, see if it has been modified already with the
2001 right kind of extension and has been extended before from the
2002 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
2003 just return true. Remember the original mode in state->modified array.
2004 (combine_reaching_defs): Add state argument. Don't allocate and
2005 free here def_list, copied_list and vec vectors, instead just
2006 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
2007 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
2008 Add state variable, clear vectors in it, initialize state.modified
2009 if needed. Free all the vectors at the end and state.modified too.
2010 Don't skip a candidate if the extension expression has been modified.
2012 2012-01-22 Douglas B Rupp <rupp@gnat.com>
2015 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
2016 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
2017 (extra_options) interix.opt -> i386/interix.opt"
2018 (extra_objs):Add winnt-stubs.o
2019 * configure.ac: Add interix to target_os .comm on PE check.
2020 * configure: Regenerate.
2021 * config/interix3.h: Delete and move bits to..
2022 * config/interix.h: Delete and move bits to..
2023 * config/i386/i386-interix3.h: Delete and move bits to..
2024 * config/i386/i386-interix.h: ..here.
2025 (TARGET_CPU_DEFAULT): Remove redefinition.
2026 (TARGET_ASM_CONSTRUCTOR): Undefine.
2027 (SUBTARGET_SWITCHES): Define for ms-bitfields.
2028 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
2029 (PTRDIFF_TYPE): Define.
2030 (LONG_DOUBLE_TYPE_SIZE): Define.
2031 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
2032 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2033 (TARGET_SECTION_TYPE_FLAGS): Define.
2034 (ASM_DECLARE_FUNCTION_NAME): Define.
2035 (ASM_OUTPUT_EXTERNAL): Define.
2036 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
2037 (ASM_OUTPUT_ALIGNED_BSS): Define.
2038 (PCC_BITFIELD_TYPE_MATTERS): Define.
2039 (USE_CONST_SECTION): Define.
2040 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
2041 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2042 (SUPPORTS_ONE_ONLY): Remove.
2043 (I386_PE_STRIP_ENCODING): Define.
2044 * config/interix.opt: Delete and move bits to..
2045 * config/i386/interix.opt: ..here. New.
2046 (mpe-aligned-commons): Add.
2047 * config/i386/t-interix: Add copyright header.
2048 (winnt-stubs.o): Add rule.
2050 2012-01-22 Jason Merrill <jason@redhat.com>
2053 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
2054 for extra name aliases.
2056 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
2058 PR rtl-optimization/51924
2059 * ree.c (combine_set_extension): Improve debugging message.
2060 (combine_reaching_defs): Likewise.
2061 (get_defs): Rename confusingly named variable.
2062 (find_and_remove_re): Skip a candidate if the extension expression has
2065 2012-01-21 Robert Millan <rmh@gnu.org>
2066 Gerald Pfeifer <gerald@pfeifer.com>
2068 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
2069 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
2071 2012-01-20 Jakub Jelinek <jakub@redhat.com>
2073 PR tree-optimization/51914
2074 * tree-vect-stmts.c (vectorizable_conversion): For
2075 cvt_type && modifier == WIDEN, put temporary with cvt_type
2076 at the beginning of vec_dsts and set vec_dest to temporary
2079 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
2081 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
2083 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
2085 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
2086 * config/rs6000/rs6000.c: Likewise.
2088 2012-01-20 Jakub Jelinek <jakub@redhat.com>
2091 * config/arm/arm.c (arm_count_output_move_double_insns): Call
2092 output_move_double on a copy of operands array.
2094 2012-01-20 Cary Coutant <ccoutant@google.com>
2095 Dodji Seketeli <dodji@redhat.com>
2098 * dwarf2out.c (copy_declaration_context): Return ref to parent
2099 of declaration DIE, if necessary.
2100 (remove_child_or_replace_with_skeleton): Add new parameter; update
2101 caller. Place skeleton DIE under parent DIE of original declaration.
2102 Move call to copy_declaration_context to here ...
2103 (break_out_comdat_types): ... from here.
2105 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2107 PR rtl-optimization/51856
2108 * reload.c (find_reloads_subreg_address): Set the address_reloaded
2111 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2114 * config/arm/arm.c (arm_print_operand): Correct output of alignment
2115 hints for neon loads and stores.
2117 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
2121 * doc/extend.texi (Named Address Spaces): Split into subsections.
2122 (AVR Named Address Spaces): New subsection.
2123 (M32C Named Address Spaces): New subsection.
2124 (RL78 Named Address Spaces): New subsection.
2125 (SPU Named Address Spaces): New subsection.
2126 (Variable Attributes): New anchor "AVR Variable Attributes".
2127 (AVR Variable Attributes): Rewrite and avoid wording
2128 "address space" in this context.
2129 * doc/invoke.texi (AVR Options): Rewrite and add documentation
2130 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
2131 (AVR Built-in Macros): New subsubsection therein.
2132 * doc/md.texi (AVR constraints): Remove "C04", "R".
2134 2012-01-20 Richard Guenther <rguenther@suse.de>
2136 PR tree-optimization/51903
2137 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
2138 when removing stmts.
2140 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2143 * config/arm/arm.c (arm_load_pic_register): Use
2144 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
2145 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
2146 (arm_pic_static_addr): Likewise.
2147 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
2148 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
2149 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
2150 (pic_load_addr_unified): New.
2152 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
2155 * function.c (instantiate_virtual_regs_in_insn): Use
2156 delete_insn_and_edges when removing a wrong asm insn.
2158 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
2160 PR rtl-optimization/40761
2161 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
2162 Add new member loop_num.
2163 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
2164 (ira_build): Remove the parameter.
2166 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
2167 (ira.c): Do not build CFG loops for one region allocation. Remove
2168 argument from ira_build call.
2170 * ira-build.c (init_loop_tree_node): New function.
2171 (create_loop_tree_nodes): Use it. Separate the case when CFG
2172 loops are not built.
2173 (more_one_region_p): Check current_loops.
2174 (finish_loop_tree_nodes): Separate the case when CFG loops are not
2176 (add_loop_to_tree): Process loop equal to NULL too.
2177 (form_loop_tree): Separate the case when CFG loops are not built.
2178 Use explicitly number for the root.
2179 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
2181 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
2182 instead of loop->num.
2183 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
2184 (mark_all_loops_for_removal): Ditto.
2185 (remove_unnecessary_regions): Separate the case when CFG loops
2187 (ira_build): Remove the parameter. Use explicit number of regions
2188 when CFG loops are not built.
2190 * ira-color.c (print_loop_title): Separate the case for the root node.
2191 Use loop_num instead of loop->num.
2192 (move_spill_restore): Use loop_num instead of loop->num.
2194 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
2195 (change_loop): Ditto.
2196 (change_loop): Use loop_num instead of loop->num.
2198 * ira-lives.c (process_bb_node_lives): Ditto.
2200 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
2202 * ira-conflicts.c (print_allocno_conflicts): Ditto.
2204 2012-01-19 Jakub Jelinek <jakub@redhat.com>
2207 * tree-mudflap.c (mf_artificial): New function.
2208 (execute_mudflap_function_ops, execute_mudflap_function_decls,
2209 mx_register_decls, mudflap_enqueue_decl): Use it.
2212 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
2213 numbers in the insn pattern.
2215 2012-01-19 Michael Matz <matz@suse.de>
2217 PR tree-optimization/46590
2218 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
2219 use it in remembering which conflicts we already created.
2220 (add_scope_conflicts): Adjust call to above, (de)allocate helper
2223 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
2226 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
2227 (merge_and_complain): Same.
2229 2012-01-19 Jakub Jelinek <jakub@redhat.com>
2232 * config/initfini-array.h: Guard content of the header
2233 with #ifdef HAVE_INITFINI_ARRAY.
2234 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
2235 Add initfini-array.h to tm_file here.
2236 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
2237 * config.gcc: Don't add initfini-array.h to tm_file here.
2238 * configure: Regenerated.
2240 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
2242 PR rtl-optimization/51505
2243 * df-problems.c (df_kill_notes): New parameter live. Update comment.
2244 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
2245 (df_note_bb_compute): Update the call to df_kill_notes.
2247 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
2249 * trans-mem.c (requires_barrier): Remove call to is_global_var.
2251 2012-01-18 Richard Guenther <rguenther@suse.de>
2253 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
2254 of conversions to void *.
2256 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2257 Richard Sandiford <rdsandiford@googlemail.com>
2261 * optabs.h (simplify_expand_binop): Declare.
2262 * optabs.c (simplify_expand_binop): Make global.
2263 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
2264 endian targets if the source cannot be exactly covered by word
2267 2012-01-17 Jakub Jelinek <jakub@redhat.com>
2270 * hard-reg-set.h (struct hard_reg_set_container): New type.
2271 * target.h (struct hard_reg_set_container): Forward declare.
2272 * target.def (set_up_by_prologue): New target hook.
2273 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
2274 * doc/tm.texi: Regenerated.
2275 * function.c (thread_prologue_and_epilogue_insns): Change
2276 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
2277 Call targetm.set_up_by_prologue on it.
2278 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
2279 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
2281 2012-01-17 Nick Clifton <nickc@redhat.com>
2283 * config/rx/rx.c (rx_can_use_simple_return): New function.
2284 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
2285 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
2287 2012-01-17 Richard Guenther <rguenther@suse.de>
2290 * expr.c (expand_assignment): Take address-space information
2291 from the address operand of MEM_REF and TARGET_MEM_REF.
2292 (expand_expr_real_1): Likewise.
2294 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2296 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
2297 reload dump is requested.
2299 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
2302 * trans-mem.c (requires_barrier): Call may_be_aliased.
2304 2012-01-17 Jakub Jelinek <jakub@redhat.com>
2306 PR tree-optimization/51877
2307 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
2308 call arguments and fndecls compare equal, instead return false if they
2309 don't. Return true only if lhs1 and lhs2 are either both NULL, or
2310 both SSA_NAMEs that are valueized the same, or they satisfy
2313 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2315 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
2317 * configure: Regenerate.
2319 2012-01-16 Jan Hubicka <jh@suse.cz>
2323 * convert.c (convert_to_integer): Use fold_convert for
2324 converting an INTEGER_CST to integer type.
2326 2012-01-16 Jason Merrill <jason@redhat.com>
2329 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
2331 2012-01-16 Jakub Jelinek <jakub@redhat.com>
2334 * config/s390/s390.c (s390_chunkify_start): Don't skip
2335 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
2336 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
2337 If insn is followed by NOTE_INSN_VAR_LOCATION or
2338 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
2339 Don't use location of note insns.
2341 PR tree-optimization/51865
2342 * tree-inline.c (tree_function_versioning): Call remap_decl
2343 on DECL_RESULT whenever it has VOID_TYPE_P type.
2345 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
2347 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
2348 for calls to locally-binding MIPS16 functions if only the return
2349 type uses float regs.
2351 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
2352 Richard Sandiford <rdsandiford@googlemail.com>
2354 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
2355 (SYMBOL_32_HIGH): Likewise.
2356 (mips_output_tls_reloc_directive): Declare.
2357 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
2358 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
2359 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
2360 (mips_lo_relocs, mips_hi_relocs): Make extern.
2361 (mips16_stub_function): Move up file.
2362 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
2363 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
2364 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
2365 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
2366 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
2367 (mips_get_tp): Add MIPS16 support.
2368 (mips_legitimize_tls_address): Remove MIPS16 sorry().
2369 Generalize DTPREL and TPREL handling.
2370 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
2371 Add MIPS16 TLS support.
2372 (mips_output_tls_reloc_directive): New function.
2373 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
2374 * config/mips/predicates.md (symbolic_operand_with_high)
2375 (tls_reloc_operand): New predicates.
2376 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
2377 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
2378 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
2379 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
2380 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
2381 (*tls_get_tp_mips16_call_<mode>): Likewise.
2383 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
2385 PR rtl-optimization/51821
2386 * recog.c (peep2_find_free_register): Determine clobbered registers
2389 2012-01-14 Denis Chertykov <chertykov@gmail.com>
2392 * config/avr/avr-protos.h: Revert change of 2012-01-09.
2393 * config/avr/avr.c: Likewise.
2394 * config/avr/avr.h: Likewise.
2396 2012-01-13 Ian Lance Taylor <iant@google.com>
2399 * tree.h (TYPE_QUALS): Add cast to int.
2400 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
2402 2012-01-13 Ian Lance Taylor <iant@google.com>
2404 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
2405 comparing param_index to VEC_length result.
2407 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
2409 * c-decl.c: Do not include tree-mudflap.h
2410 * tree-optimize.c: Likewise.
2411 * Makefile.in: Update dependencies.
2413 2012-01-13 Richard Guenther <rguenther@suse.de>
2416 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
2417 variable-sized result always use RSO.
2419 2012-01-12 DJ Delorie <dj@redhat.com>
2421 * cfgexpand.c (convert_debug_memory_address): Allow any valid
2422 pointer type, not just the default pointer type.
2424 2012-01-09 Richard Henderson <rth@redhat.com>
2425 Denis Chertykov <chertykov@gmail.com>
2428 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
2429 * config/avr/avr.c (avr_can_eliminate): Simplify.
2430 (avr_initial_elimination_offset): Likewise.
2431 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
2432 (expand_epilogue): Likewise.
2433 (avr_legitimize_address): Gut.
2434 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
2435 (avr_hard_regno_nregs): New.
2436 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
2437 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
2438 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
2439 add soft frame pointer.
2440 (CALL_USED_REGISTERS): Likewise.
2441 (REG_CLASS_CONTENTS): Likewise.
2442 (REGISTER_NAMES): Likewise.
2443 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
2444 (HARD_FRAME_POINTER_REGNUM): New.
2445 (FRAME_POINTER_REGNUM): Use soft frame pointer.
2446 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
2447 remove the HARD_FRAME_POINTER self-elimination.
2449 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
2452 * config/avr/avr.c (avr_encode_section_info): Test for absence of
2453 DECL_EXTERNAL when checking for initializers of progmem variables.
2455 2012-01-12 Ira Rosen <irar@il.ibm.com>
2457 PR tree-optimization/51799
2458 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
2459 that the last operation is a type demotion.
2461 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
2463 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
2464 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
2466 2012-01-11 Jakub Jelinek <jakub@redhat.com>
2469 * combine.c (distribute_notes): If i3 is a noreturn call,
2470 allow old_size to be equal to args_size and make sure the
2471 noreturn call gets REG_ARGS_SIZE note.
2472 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
2473 on noreturn calls even when the delta is 0.
2475 2012-01-11 Nathan Sidwell <nathan@acm.org>
2477 * gcov.c (STRING_SIZE): Remove.
2478 (generate_results): Erase annotations for source files with no
2479 coverage information.
2481 (output_lines): Use it.
2483 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
2485 * gimple.h (gimplify_body): Remove first argument.
2486 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
2487 pointer set here, instead just pass DATA to walk_tree.
2488 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
2489 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
2490 (unvisit_body): Likewise, but with unmark_visited.
2491 (gimplify_body): Remove BODY_P argument and adjust.
2492 (gimplify_function_tree): Adjust call to gimplify_body.
2493 * omp-low.c (finalize_task_copyfn): Likewise.
2495 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
2497 * tree.h (build_function_decl_skip_args): Add boolean parameter.
2498 (build_function_type_skip_args): Delete.
2499 * tree.c (build_function_type_skip_args): Make static and add
2500 SKIP_RETURN parameter. Fix thinko in the handling of variants.
2501 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
2502 pass it to build_function_type_skip_args.
2503 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
2504 (tree_function_versioning): Likewise.
2505 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
2506 build_function_decl_skip_args.
2507 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
2508 and pass it to build_function_decl_skip_args/tree_function_versioning.
2509 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
2510 * ipa-inline-transform.c (save_inline_function_body): Likewise.
2511 * trans-mem.c (ipa_tm_create_version): Likewise.
2512 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
2513 * tree-inline.c (declare_return_variable): Remove always-true test.
2514 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
2515 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
2516 * ipa-split.c (split_function): Skip the return value for the split
2517 part if it doesn't return.
2519 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2521 PR tree-optimization/49642
2522 * ipa-split.c (forbidden_dominators): New variable.
2523 (check_forbidden_calls): New function.
2524 (dominated_by_forbidden): Likewise.
2525 (consider_split): Check for forbidden dominators.
2526 (execute_split_functions): Initialize and free forbidden
2527 dominators info; call check_forbidden_calls.
2529 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2531 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
2533 2012-01-11 Nick Clifton <nickc@redhat.com>
2535 * config/rx/rx.md (return): Define pattern.
2537 2012-01-11 Richard Guenther <rguenther@suse.de>
2539 * doc/extend.texi (malloc attribute): Adjust according to
2542 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
2543 Patrick Marlier <patrick.marlier@gmail.com>
2546 * trans-mem.c (get_cg_data): Traverse aliases if requested.
2547 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
2548 (ipa_tm_note_irrevocable): Same.
2549 (ipa_tm_scan_irr_block): Same.
2550 (ipa_tm_decrement_clone_counts): Same.
2551 (ipa_tm_scan_irr_function): Same.
2552 (ipa_tm_create_version_alias): Same.
2553 (ipa_tm_create_version): Same.
2554 (ipa_tm_transform_calls_redirect): Same.
2555 (ipa_tm_transform_calls): Same.
2556 (ipa_tm_transform_transaction): Same.
2557 (ipa_tm_execute): Same.
2559 2012-01-10 Richard Guenther <rguenther@suse.de>
2562 * opts.c (common_handle_option): Handle -Werror.
2564 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
2566 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
2569 2012-01-10 Jason Merrill <jason@redhat.com>
2571 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
2574 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2576 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
2577 supports R_386_TLS_GD_PLT reloc.
2578 (gcc_cv_as_ix86_tlsldmplt): Check if linker
2579 supports R_386_TLS_LDM_PLT reloc.
2580 * configure: Regenerate.
2581 * config.in: Regenerate.
2583 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
2586 Extend __pgmx semantics to linearize memory.
2587 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
2588 determine if code comes inline or from libgcc.
2589 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
2590 (movmem_qi, movmem_qi): Set constraint #2 to "n".
2591 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
2592 (movmemx_qi, movmemx_hi): New insns.
2593 (xload_<mode>_libgcc): Rewrite to new insn condition.
2594 (xload_<mode>): Remove insns.
2595 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
2596 cases that don't satisfy avr_xload_libgcc_p().
2597 (avr_addr_space_convert): Allow converting in any direction.
2598 (avr_addr_space_subset_p): Return always true.
2599 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
2600 (avr_emit_movmemhi): Ditto.
2601 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
2602 (avr_out_movmem): Ditto.
2603 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
2604 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
2605 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
2606 (avr_encode_section_info): Encode 'progmem' in symbol flags.
2607 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
2609 2012-01-10 Richard Guenther <rguenther@suse.de>
2611 PR tree-optimization/50913
2612 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
2613 Require data-refs to be representable by Graphite with respect
2616 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
2618 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
2619 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
2621 2012-01-10 Tom de Vries <tom@codesourcery.com>
2623 PR rtl-optimization/51271
2624 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
2625 handling annulled branch.
2627 2012-01-10 Richard Henderson <rth@redhat.com>
2629 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
2630 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
2631 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
2632 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
2633 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
2634 arm_expand_vec_perm_const): New.
2635 * config/arm/arm-protos.h: Update.
2636 * config/arm/neon.md (UNSPEC_VCONCAT): New.
2637 (*neon_vswp<VDQX>): New.
2638 (neon_vcombine<VDX>): Use neon_split_vcombine.
2639 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
2640 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
2641 (vec_perm<VE>): New.
2643 2012-01-10 Richard Henderson <rth@redhat.com>
2645 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
2646 use it if reload_completed.
2647 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
2648 arm_output_asm_insn, arm_process_output_memory_barrier,
2649 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
2650 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
2651 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
2652 arm_process_output_sync_insn, arm_output_sync_insn,
2653 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
2654 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
2655 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
2656 (emit_unlikely_jump): New.
2657 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
2658 (arm_split_atomic_op): New.
2659 * config/arm/arm-protos.h: Update.
2660 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
2661 (struct arm_sync_generator): Remove.
2662 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
2663 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
2664 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
2665 (VUNSPEC_LL, VUNSPEC_SC): New.
2666 (sync_result, sync_memory, sync_required_value, sync_new_value,
2667 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
2668 (attr length): Don't use arm_sync_loop_insns.
2669 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
2670 (movsfcc, movdfcc): Likewise.
2671 * config/arm/constraints.md (Ua): New.
2672 * config/arm/prediates.md (mem_noofs_operand): New.
2673 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
2674 (sync_clobber, sync_t2_reqd): Remove.
2675 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
2676 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
2677 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
2678 (arm_sync_compare_and_swap<SIDI>): Remove.
2679 (arm_sync_compare_and_swap<NARROW>): Remove.
2680 (arm_sync_lock_test_and_set<SIDI>): Remove.
2681 (arm_sync_lock_test_and_set<NARROW>): Remove.
2682 (arm_sync_new_<syncop><SIDI>): Remove.
2683 (arm_sync_new_<syncop><NARROW>): Remove.
2684 (arm_sync_new_nand<SIDI>): Remove.
2685 (arm_sync_new_nand<NARROW>): Remove.
2686 (arm_sync_old_<syncop><SIDI>): Remove.
2687 (arm_sync_old_<syncop><NARROW>): Remove.
2688 (arm_sync_old_nand<SIDI>): Remove.
2689 (arm_sync_old_nand<NARROW>): Remove.
2690 (*memory_barrier): Merge arm_output_memory_barrier.
2691 (atomic_compare_and_swap<QHSD>): New.
2692 (atomic_compare_and_swap<NARROW>_1): New.
2693 (atomic_compare_and_swap<SIDI>_1): New.
2694 (atomic_exchange<QHSD>): New.
2695 (cas_cmp_operand, cas_cmp_str): New.
2696 (atomic_op_operand, atomic_op_str): New.
2697 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
2698 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
2699 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
2700 (arm_load_exclusive<NARROW>): New.
2701 (arm_load_exclusivesi, arm_load_exclusivedi): New.
2702 (arm_store_exclusive<QHSD>): New.
2704 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2706 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
2707 reload patterns if -mvsx-scalar-memory.
2709 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
2710 generated, even -mno-vsx-scalar-double was used.
2711 (vsx_xscvdpsp_scalar): Likewise.
2712 (vsx_xscvspdp_scalar2): Likewise.
2714 2012-01-09 Tom de Vries <tom@codesourcery.com>
2715 Andrew Pinski <apinski@cavium.com>
2718 * reorg.c (fill_slots_from_thread): Don't speculate
2719 frame-related insns.
2721 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
2723 * sched-int.h (bb_note): Move to...
2724 * basic-block.h: ...here.
2725 * haifa-sched.c (bb_note): Move to...
2726 * cfgrtl.c: ...here.
2727 * function.c (next_block_for_reg): New function.
2728 (move_insn_for_shrink_wrap): Likewise.
2729 (prepare_shrink_wrap): Rewrite to use the above.
2731 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
2733 * gimple.c (is_gimple_non_addressable): Remove.
2734 * gimple.h: Remove is_gimple_non_addressable.
2735 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
2736 is_gimple_non_addressable.
2737 * trans-mem.c (expand_assign_tm): Same.
2739 2012-01-09 Richard Guenther <rguenther@suse.de>
2741 PR tree-optimization/51775
2742 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
2743 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
2745 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2747 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
2749 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
2751 2012-01-09 Richard Guenther <rguenther@suse.de>
2753 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
2755 2012-01-08 Jan Hubicka <jh@suse.cz>
2757 PR tree-optimize/51680
2758 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
2759 on when known_vals needs to be computed; cleanup.
2761 2012-01-08 Jan Hubicka <jh@suse.cz>
2763 PR tree-optimize/51694
2764 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
2766 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2768 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
2769 for -std=c++98 and -std=c++11 too.
2771 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
2773 * cfgloop.c (cancel_loop): Add free() of bbs array.
2775 2012-01-07 Jan Hubicka <jh@suse.cz>
2777 PR tree-optimization/51600
2778 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
2779 that benefits small functions.
2781 2012-01-07 Jan Hubicka <jh@suse.cz>
2783 * ipa-inline.c (want_inline_small_function_p): Fix formating.
2785 2012-01-07 Jan Hubicka <jh@suse.cz>
2787 PR tree-optimization/51680
2788 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
2789 whose inlining reduce unit size.
2791 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
2794 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
2795 Add canonical node to containing_mem chain after the non-canonical
2796 one, even if there weren't any locs to propagate.
2797 (remove_useless_values): Keep only canonical values.
2798 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
2799 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
2800 canonicalize mem_chain elements that are not discarded.
2802 2012-01-06 Jakub Jelinek <jakub@redhat.com>
2805 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
2806 before emitting functions.
2808 PR gcov-profile/50127
2809 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
2810 clear_aux_for_blocks.
2812 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
2815 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
2817 2012-01-06 Arnaud Charlet <charlet@adacore.com>
2819 * c-decl.c (ext_block): Moved up.
2820 (collect_all_refs, for_each_global_decl): Take ext_block into account.
2822 2012-01-06 Han Shen <shenhan@google.com>
2824 Translate built-in include paths for sysroot.
2825 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
2826 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
2828 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
2829 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
2831 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
2832 control whether sysroot should be prepended to gxx include dir.
2834 * configure: Regenerate.
2836 2012-01-06 Torvald Riegel <triegel@redhat.com>
2838 PR rtl-optimization/51771
2839 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
2840 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
2842 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
2844 PR tree-optimization/51315
2845 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
2846 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
2848 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
2851 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
2852 for shrp pattern. Correctly handle and fixup shift variable.
2853 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
2855 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2858 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
2859 note when !ACCUMULATE_OUTGOING_ARGS.
2861 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
2863 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
2865 (extract_range_from_unary_expr_1): Avoid useless computations.
2867 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2869 PR rtl-optimization/51767
2870 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
2871 of jump_block and add an extra edge for degenerated asm gotos.
2874 * stmt.c (check_unique_operand_names): Don't ICE during error
2875 reporting if i is from labels chain.
2878 * profile.c (branch_prob): Split bbs that have exit edge
2879 and need a fake entry edge too.
2881 2012-01-05 Jan Hubicka <jh@suse.cz>
2884 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
2887 2012-01-05 Richard Guenther <rguenther@suse.de>
2890 * tree-streamer-out.c (write_ts_optimization): New function.
2891 (streamer_write_tree_body): Call it.
2892 * tree-streamer-in.c (lto_input_ts_optimization): New function.
2893 (streamer_read_tree_body): Call it.
2894 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
2896 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2899 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
2900 * gimplify.c (gimplify_cleanup_point_expr): Save and set
2901 in_cleanup_point_expr before gimplify_stmt call and restore it
2903 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
2904 in_cleanup_point_expr is false.
2906 2012-01-05 Richard Guenther <rguenther@suse.de>
2909 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
2911 * toplev.c (process_options): Reject combining mudflap and LTO.
2912 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
2914 2012-01-05 Richard Guenther <rguenther@suse.de>
2916 PR tree-optimization/51760
2917 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
2919 (bit_value_unop): Handle UNDEFINED operands.
2920 (bit_value_binop): Likewise.
2922 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
2924 * config/avr/avr.c (avr_replace_prefix): Remove.
2925 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
2926 (avr_asm_function_rodata_section): Ditto.
2927 (avr_asm_select_section): Ditto.
2929 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2931 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
2934 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2937 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
2938 calls that have any non-fake successor edges.
2941 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
2943 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
2945 PR tree-optimization/51624
2946 * tree-sra.c (build_ref_for_model): When replicating a chain of
2947 COMPONENT_REFs, stop as soon as the offset would become negative.
2949 2012-01-04 Jakub Jelinek <jakub@redhat.com>
2952 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
2953 in .debug_loc on the floor.
2955 2012-01-04 Andrew Pinski <apinski@cavium.com>
2957 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
2959 2012-01-04 Andrew Pinski <apinski@cavium.com>
2960 Adam Nemet <anemet@caviumnetworks.com>
2962 * config/mips/mips.md (size): Add SI and DI.
2963 (SIZE): New mode attribute.
2964 (U): New code attribute.
2965 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
2966 (mips_lbux_<mode>): Delete.
2967 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
2968 (mips_lhx): Use gen_mips_lhx_extsi.
2969 (mips_lhx_<mode>): Delete.
2971 (mips_l<size>x): New expand.
2972 (mips_lwx_<mode>): Delete.
2973 (mips_l<GPR:size>x_<P:mode>): New pattern.
2974 (*mips_lw<u>x_<P:mode>_ext): Likewise.
2975 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
2976 * config/mips/mips.c (mips_lx_address_p): New function.
2977 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
2978 (dsp64): New availability predicate.
2979 (mips_builtins): Add an entry for __builtin_mips_ldx.
2980 * config/mips/mips.h (ISA_HAS_LBX): New define.
2981 (ISA_HAS_LBUX): Likewise.
2982 (ISA_HAS_LHX): Likewise.
2983 (ISA_HAS_LHUX): Likewise.
2984 (ISA_HAS_LWX): Likewise.
2985 (ISA_HAS_LWUX): Likewise.
2986 (ISA_HAS_LDX): Likewise.
2987 * doc/extend.texi (__builtin_mips_ldx): Document.
2989 2012-01-04 Tristan Gingold <gingold@adacore.com>
2991 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
2992 when long pointers are used.
2993 * config.build (*-*-*vms*): Handle all OpenVMS targets.
2994 (alpha64-dec-*vms*, alpha*-dec-*vms*)
2995 (ia64-hp-*vms*): Remove.
2996 * config/vms/xm-vms64.h: Delete.
2998 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
3001 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
3003 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
3005 * opts.c (finish_options): Remove duplicate sorry.
3007 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
3010 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
3013 2012-01-04 Richard Guenther <rguenther@suse.de>
3016 * tree.c (size_low_cst): New function.
3017 * tree.h (size_low_cst): Declare.
3018 * fold-const.c (fold_comparison): Use it to extract the low
3019 part of the POINTER_PLUS_EXPR offset.
3021 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
3023 Fix clearing ZERO_REG
3024 * config/avr/avr.md (cc): Add alternative "ldi".
3025 (movqi_insn): Use it in cc attribute.
3026 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
3027 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
3028 (output_reload_insisf): Use ZERO_REG to pre-clear register.
3030 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3032 * configure: Regenerate.
3034 2012-01-04 Richard Guenther <rguenther@suse.de>
3036 PR tree-optimization/49651
3037 * tree-ssa-structalias.c (type_can_have_subvars): New function.
3038 (var_can_have_subvars): Use it.
3039 (get_constraint_for_1): Only consider subfields if there can be any.
3041 2012-01-03 Jakub Jelinek <jakub@redhat.com>
3044 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
3045 to its new canonical_cselib_val and the cselib_val was in
3046 first_containing_mem chain, but the canonical_cselib_val was not,
3047 add the latter into the chain.
3048 (cselib_invalidate_mem): Compare canonical_cselib_val of
3049 addr_list chain elt with v.
3052 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
3053 dwarf2out_undef): Allocate e.info using ggc_strdup instead
3055 (output_macinfo_op): Don't ggc_strdup fd->filename.
3056 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
3057 then ggc_strdup it. Don't free inc->info or cur->info.
3058 (output_macinfo): Don't free ref->info or file->info.
3060 2012-01-03 Ira Rosen <irar@il.ibm.com>
3062 PR tree-optimization/51269
3063 * tree-vect-loop-manip.c (set_prologue_iterations): Make
3064 first_niters a pointer.
3065 (slpeel_tree_peel_loop_to_edge): Likewise.
3066 (vect_do_peeling_for_loop_bound): Update call to
3067 slpeel_tree_peel_loop_to_edge.
3068 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
3069 here. Remove it from the parameters list.
3070 (vect_do_peeling_for_alignment): Update calls and compute
3073 2012-01-03 Richard Guenther <rguenther@suse.de>
3075 PR tree-optimization/51070
3076 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
3077 Properly handle calls.
3079 2012-01-03 Richard Guenther <rguenther@suse.de>
3081 PR tree-optimization/51692
3082 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
3083 the LHS of allocation stmts.
3085 2012-01-03 Olivier Hainque <hainque@adacore.com>
3087 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
3089 2012-01-03 Olivier Hainque <hainque@adacore.com>
3091 * collect2.c (main): In AIX specific computations for vector
3092 insertions, use CONST_CAST2 to cast from char ** to const char **.
3094 2012-01-03 Richard Guenther <rguenther@suse.de>
3097 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
3098 the context of a limbo DIE when it does not already exist.
3100 2012-01-03 Jakub Jelinek <jakub@redhat.com>
3102 PR tree-optimization/51719
3103 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
3104 but direct call is, clear direct call's lhs and don't add fallthrough
3105 edge from dcall_bb to join_bb and PHIs.
3107 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3109 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
3110 the instructions emitted by the pattern.
3111 ("*TDC_insn_<mode>"): Add comment.
3113 2012-01-03 Richard Guenther <rguenther@suse.de>
3116 * fold-const.c (fold_comparison): Properly canonicalize
3117 tree offset and HOST_WIDE_INT bit position.
3119 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
3121 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
3122 operands for extzv pattern.
3124 2012-01-02 Jakub Jelinek <jakub@redhat.com>
3127 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
3130 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
3132 * doc/invoke.texi (-flto and related options): Copy-edit.
3134 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3136 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
3138 2012-01-02 Jakub Jelinek <jakub@redhat.com>
3140 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
3143 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3145 * expr.h (move_by_pieces_ninsns): Declare.
3146 * expr.c (move_by_pieces_ninsns): Make external.
3147 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
3148 (mips_store_by_pieces_p): Likewise.
3149 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
3150 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
3151 * config/mips/mips.c (mips_move_by_pieces_p): New function.
3152 (mips_store_by_pieces_p): Likewise.
3154 2012-01-02 Jakub Jelinek <jakub@redhat.com>
3156 * passes.c (register_one_dump_file): Free full_name.
3158 * reload1.c (reload): Don't allocate reg_max_ref_width here.
3159 (calculate_elim_costs_all_insns): Free offsets_at and
3160 offsets_known_at at the end and clear the pointers.
3162 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
3164 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
3165 this option introduced in r180739.
3167 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
3170 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
3171 (tmake_file target=avr): Add avr/t-multilib.
3173 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
3174 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
3175 * config/avr/genmultilib.awk: New file.
3176 * config/avr/t-multilib: New auto-generated file.
3177 * config/avr/multilib.h: New auto-generated file.
3178 * config/avr/t-avr (AVR_MCUS): New variable.
3179 (genopt.sh): Use it.
3180 (s-mlib): Depend on t-multilib.
3181 (t-multilib, multilib.h): New dependencies.
3182 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
3183 (MULTILIB_OPTIONS): Remove.
3184 (MULTILIB_MATCHES): Remove.
3185 (MULTILIB_DIRNAMES): Remove.
3186 (MULTILIB_EXCEPTIONS): Remove:
3187 * config/avr/genopt.sh: Don't use hard coded file name;
3188 pass AVR_MCUS from t-avr instead.
3190 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
3192 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
3194 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
3196 Implement light-weight DImode support.
3197 * config/avr/avr-dimode.md: New file.
3198 * config/avr/avr.md: Include it.
3199 (adjust_len): Add plus64, compare64.
3200 (HIDI): Remove code iterator.
3201 (code_stdname): New code attribute.
3202 (rotx, rotsmode): Remove DI.
3203 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
3205 * config/avr/avr-protos.h (avr_have_dimode): New.
3206 (avr_out_plus64, avr_out_compare64): New.
3207 * config/avr/avr.c (avr_out_compare): Handle DImode.
3208 (avr_have_dimode): New variable definition and initialization.
3209 (avr_out_compare64, avr_out_plus64): New functions.
3210 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
3211 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
3212 (avr_compare_pattern): Skip DImode comparisons.
3214 2012-01-02 Revital Eres <revital.eres@linaro.org>
3216 * ddg.c (def_has_ccmode_p): New function.
3217 (add_cross_iteration_register_deps,
3218 create_ddg_dep_from_intra_loop_link): Call it.
3220 2012-01-02 Richard Guenther <rguenther@suse.de>
3223 * invoke.texi (fassociative-math): Remove spurious paranthesis.
3225 2012-01-01 Jakub Jelinek <jakub@redhat.com>
3227 * gcc.c (process_command): Update copyright notice dates.
3228 * gcov.c (print_version): Likewise.
3229 * gcov-dump.c (print_version): Likewise.
3230 * mips-tfile.c (main): Likewise.
3231 * mips-tdump.c (main): Likewise.
3233 2012-01-01 Ira Rosen <irar@il.ibm.com>
3235 PR tree-optimization/51704
3236 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
3237 a use is inside the basic block or loop before accessing its vect info.
3239 2012-01-01 Jan Hubicka <jhjh@suse.cz>
3241 PR rtl-optimization/51069
3242 * cfgloopmanip.c (remove_path): Removing path making irreducible
3243 region unconditional makes BB part of the region.
3245 2012-01-01 Jakub Jelinek <jakub@redhat.com>
3247 PR tree-optimization/51683
3248 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
3249 calls with side-effects.
3250 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3252 Copyright (C) 2012 Free Software Foundation, Inc.
3254 Copying and distribution of this file, with or without modification,
3255 are permitted in any medium without royalty provided the copyright
3256 notice and this notice are preserved.