PR target/49868
[official-gcc.git] / gcc / ChangeLog
blob051d7f2507989e2d6fc5e291682f79a282f93ba1
1 2012-03-12  Andrew Pinski  <apinski@cavium.com>
3         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
4         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
5         (value_replacement): Likewise.
6         (empty_block_p): Check also if the PHIs for the block are empty.
8 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
10         PR target/52148
11         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
12         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
13         r184615 from 2012-02-28.
15 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
18         (ix86_gen_tls_local_dynamic_base_64): Likewise.
19         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
20         and ix86_gen_tls_local_dynamic_base_64.
21         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
22         ix86_gen_tls_local_dynamic_base_64.
24         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
25         (*tls_global_dynamic_64_<mode>): This.
26         (tls_global_dynamic_64): Renamed to ...
27         (tls_global_dynamic_64_<mode>): This.
28         (*tls_local_dynamic_base_64): Renamed to ...
29         (*tls_local_dynamic_base_64_<mode>): This.
30         (tls_local_dynamic_base_64): Renamed to ...
31         (tls_local_dynamic_base_64_<mode>): This.
33 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
35         * config/i386/i386.c (ix86_option_override_internal): Properly
36         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
37         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
38         ix86_gen_one_cmpl2, ix86_gen_andsp,
39         ix86_gen_allocate_stack_worker, ix86_gen_adjust_stack_and_probe
40         and ix86_gen_probe_stack_range.
42         * config/i386/sse.md (sse3_monitor64): Renamed to ...
43         (sse3_monitor64_<mode>): This.
45 2012-03-12  Tristan Gingold  <gingold@adacore.com>
47         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
48         (ia64_function_arg_advance): Ditto.
50 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
52         * config.gcc (mips*-*-openbsd*): Remove.
53         * config/mips/openbsd.h: Remove.
54         * config/mips/sdb.h: Remove.
56         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
57         * config/mips/mips.c (sdb_label_count): Remove.
58         (mips_debugger_offset): Remove #if 0 code.
59         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
60         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
62 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
64         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
65         binutils reference.
66         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
67         Update binutils references.
68         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
69         Update binutils reference.
70         Update Sun as/GNU ld caveat.
71         Document binutils largefile requirement for LTO plugin.
72         Remove reference to alternate libpthread.
74 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
76         * config.gcc (alpha*-dec-osf5.1*): Remove.
77         * config.host (alpha*-dec-osf*): Remove.
78         * configure.ac (*-*-osf*): Remove.
79         (alpha*-dec-osf*): Remove.
80         * configure: Regenerate.
82         * config/alpha/host-osf.c, config/alpha/osf5.h,
83         config/alpha/osf5.opt, config/alpha/va_list.h, config/alpha/x-osf:
84         Remove.
86         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
87         * config/alpha/alpha.c (struct machine_function): Update comment.
88         (alpha_start_function): Remove Tru64 UNIX as handling for
89         max_frame_size.
90         * config/alpha/alpha.md ("exception_receiver"): Remove
91         TARGET_LD_BUGGY_LDGP.
92         ("*exception_receiver_2"): Likewise.
93         * except.c (finish_eh_generation): Remove Tru64 reference.
94         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
95         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
96         * target.def (handle_pragma_extern_prefix): Remove.
98         * Makefile.in (mips-tfile.o-warn): Remove.
99         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
100         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
101         * mips-tdump.c, mips-tfile.c: Remove.
103         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
104         extern_prefix.
105         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
106         (Specific, alpha*-dec-osf5.1): Note removal.
107         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
108         Remove.
109         * doc/tm.texi: Regenerate.
110         * doc/trouble.texi (Cross-Compiler Problems): Remove.
112 2012-03-12  Richard Guenther  <rguenther@suse.de>
114         * config/arm/arm.c (neon_dereference_pointer): Do not call
115         covert during RTL expansion.
117 2012-03-12  Tristan Gingold  <gingold@adacore.com>
119         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
120         Options.  Mention -mpointer-size.
122 2012-03-12  Richard Guenther  <rguenther@suse.de>
124         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
125         build_nonstandard_integer_type.
127 2012-03-12  Richard Guenther  <rguenther@suse.de>
129         * tree.c (signed_or_unsigned_type_for): Use
130         build_nonstandard_integer_type.
131         (signed_type_for): Adjust documentation.
132         (unsigned_type_for): Likewise.
133         * tree-pretty-print.c (dump_generic_node): Use standard names
134         for non-standard integer types if available.
136 2012-03-12  Tristan Gingold  <gingold@adacore.com>
138         * config/vms/vms.opt: Add vms-opts.h header.
139         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
140         target mask.
141         (-mvms-return-codes): Document.
142         (-mpointer-size): New option.
143         (vms_pointer_size): Add enumeration.
144         * config/vms/vms-opts.h: New file.
145         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
146         __INITIAL_POINTER_SIZE.
147         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
148         (C_COMMON_OVERRIDE_OPTIONS): Define.
149         (DWARF2_ADDR_SIZE): Define.
150         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
151         * config/vms/vms-protos.h (vms_c_common_override_options):
152         New prototype.
153         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
154         if -mno-pointer-size.
155         (vms_c_common_override_options): New function.
156         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
157         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
158         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
159         and flag_vms_pointer_size.
160         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
161         * config.gcc (*-*-*vms*): Define xm_file.
162         (alpha*-dec-*vms*): Do not define xm_file.
163         (alpha64-dec-*vms*): Remove.
164         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
165         and tmake_file.
167 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
169         PR tree-optimization/51721
170         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
171         if (int) unsvar cmp CST.
173 2012-03-12  Richard Guenther  <rguenther@suse.de>
175         * tree-sra.c (create_access_replacement): Only rename the
176         replacement if we can rewrite it into SSA form.  Properly
177         mark register typed replacements that we cannot rewrite
178         with TREE_ADDRESSABLE.
179         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
180         for aggregate or BLKmode results.
182 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
184         PR tree-optimization/52533
185         * tree-vrp.c (register_edge_assert_for_2): Use double_int
186         type for mask, only handle shifts by non-zero in-range
187         shift count, for LE_EXPR and GT_EXPR if new_val is
188         maximum, don't add the assertion.
190 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
192         * doc/invoke.texi: Document -mrtm option.
193         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET):
194         New.
195         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
196         (ix86_handle_option): Handle OPT_mrtm.
197         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
198         xtestintrin.h.
199         (x86_64-*-*): Ditto.
200         * i386-builtin-types.def (INT_FTYPE_VOID): New.
201         * config/i386/i386-c.c (ix86_target_macros_internal): Define
202         __RTM__ if needed.
203         (ix86_target_string): Define -mrtm option.
204         (PTA_RTM): New.
205         (ix86_option_override_internal): Extend "corei7-avx" with
206         RTM option. Handle new option.
207         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
208         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
209         IX86_BUILTIN_XTEST.
210         (bdesc_special_args): Ditto.
211         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
212         (ix86_expand_special_args_builtin): Handle new built-in type.
213         (ix86_expand_builtin): Handle XABORT instruction.
214         * config/i386/i386.h (TARGET_RTM): New.
215         * config/i386/i386.md (UNSPECV_XBEGIN): New.
216         (UNSPECV_XEND): Ditto.
217         (UNSPECV_XABORT): Ditto.
218         (UNSPECV_XTEST): Ditto.
219         (xbegin): Ditto.
220         (xbegin_1): Ditto.
221         (xend): Ditto.
222         (xabort): Ditto
223         (xtest): Ditto.
224         (xtest_1): Ditto.
225         * config/i386/i386.opt (mrtm): New.
226         * config/i386/immintrin.h: Include rtmintrin.h and
227         xtestintrin.h.
228         * config/i386/rtmintrin.h: New header.
229         * config/i386/xtestintrin.h: Ditto.
231 2012-03-12  Tristan Gingold  <gingold@adacore.com>
233         * ginclude/stddef.h: Adjust previous patch.  Use __VMS__ instead
234         of VMS.
236 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
238         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
239         Also convert sequences with CC setting arithmetic instruction.
241 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
243         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
244         from C Language Options to Preprocessor Options.
245         (C Dialect Options): Move -no-integrated-cpp documentation
246         from here...
247         (Preprocessor Options): ...to here.  Rewrite the description
248         so it makes more sense, and remove discussion of merging
249         front ends.
251 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
253         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
254         needed for loop.
255         (ix86_expand_setmem): Likewise.
257 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
259         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
260         convert_to_mode.
262 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
264         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
265         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
267 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
269         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
271 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
273         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
274         TARGET_64BIT.
276 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
277             Uros Bizjak  <ubizjak@gmail.com>
279         * config/i386/predicates.md (call_insn_operand): Allow
280         constant_call_address_operand in Pmode only.
281         (sibcall_insn_operand): Ditto.
282         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
283         (*call_vzeroupper): Ditto.
284         (*sibcall): Ditto.
285         (*sibcall_vzeroupper): Ditto.
286         (*call_value): Ditto.
287         (*call_value_vzeroupper): Ditto.
288         (*sibcall_value): Ditto.
289         (*sibcall_value_vzeroupper): Ditto.
290         (*indirect_jump): Ditto.
291         (*tablejump_1): Ditto.
292         (indirect_jump): Convert memory address to word mode for TARGET_X32.
293         (tablejump): Ditto.
294         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
295         to word mode.
297 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
299         PR target/51244
300         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
301         Use movrt_negc instead of negc pattern for non-SH2A.
302         (*movnegt): Remove.
303         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
305 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
307         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
308         if Pmode != word_mode.
309         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
310         Pmode == SImode for TARGET_X32.
312         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
313         (tls_initial_exec_x32): Likewise.
315 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
317         PR rtl-optimization/52528
318         * combine.c (can_combine_p): Add setting of subst_low_luid
319         before call to expand_field_assignment().
321 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
323         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
324         and related program names.
326 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
328         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
330 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
332         PR target/52530
333         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
334         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
335         to set code to 'q'.
336         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
337         (*movdi_internal_rex64): Use %E operand modifier for lea.
338         (*movsi_internal): Ditto.
339         (*lea_1): Ditto.
340         (*lea<mode>_2): Ditto.
341         (*lea_{3,4,5,6}_zext): Ditto.
342         (*tls_global_dynamic_32_gnu): Ditto.
343         (*tls_global_dynamic_64): Ditto.
344         (*tls_dynamic_gnu2_lea_32): Ditto.
345         (*tls_dynamic_gnu2_lea_64): Ditto.
346         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
348 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
350         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
351         redefine to be NULL if the current bit-size is different from the
352         configured bit-size.
354         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
355         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
356         set the default tuning.  Add asserts to make sure the cpu and tune
357         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
358         test whether the index is set, instead of > 0.
359         (rs6000_file_start): Do not reset the default cpu if the current
360         bit-size is different from the configured bit-size.
362 2012-03-09  Tristan Gingold  <gingold@adacore.com>
364         * config/vms/vms-crtlmap.map: Add comments.
365         Add entries needed to build Ada RTS.
367 2012-03-09  Tristan Gingold  <gingold@adacore.com>
369         * ginclude/stddef.h: Do not define __size_t on VMS.
371 2012-03-09  Tristan Gingold  <gingold@adacore.com>
373         * c-tree.h (c_default_pointer_mode): New variable.
374         * c-decl.c (c_default_pointer_mode): New variable.
375         (c_build_pointer_type): New function.
376         (grokdeclarator): Call c_build_pointer_type instead
377         of build_pointer_type.
379         * config/vms/vms-c.c: Include c-tree.h
380         (saved_pointer_mode): New variable.
381         (handle_pragma_pointer_size): New function.
382         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
383         (vms_c_register_pragma): Register __pointer_size and
384         __required_pointer_size pragmas.
386 2012-03-09  Tristan Gingold  <gingold@adacore.com>
388         * config/vms/vms-c.c (vms_construct_include_filename): New function.
389         (vms_c_register_includes): Reference it.
391 2012-03-09  Andrew Pinski  <apinski@cavium.com>
393         PR middle-end/51988
394         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
395         print_generic_expr.
396         (tree_ssa_phiopt_worker): Go through all the PHIs for
397         value_replacement instead of just the singleton one.
398         (value_replacement): Change return type to int.  Return 0 instead of
399         false.
400         Allow the middle basic block to contain more than just the defining
401         statement.
402         Handle non empty middle basic blocks.
403         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
405 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
407         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
408         array reference and component reference.
409         (analyze_scalar_evolution_for_address_of): New.
411 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
413         PR target/49862
414         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
415         (hwloop_pattern_reg): Fix set but not used warning.
416         (bfin_reorg_loops): Remove unused parameter.
417         (bfin_reorg): Update use of bfin_reorg_loops.
419 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
421         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
422         with integer parameters in registers.
423         (gen_push): Push register in word_mode instead of Pmode.
424         (ix86_emit_save_regs): Likewise.
425         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
426         (gen_pop): Pop register in word_mode instead of Pmode.
427         (ix86_emit_restore_regs_using_pop): Likewise.
428         (ix86_expand_prologue): Replace Pmode with word_mode for push
429         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
430         restore RAX and R10 in word_mode.
431         (ix86_emit_restore_regs_using_mov): Restore integer registers
432         in word_mode.
433         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
434         word_mode.
435         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
436         (ix86_split_long_move): Likewise.
438         * config/i386/i386.md (W): New.
439         (*push<mode>2_prologue): Replace :P with :W.
440         (*pop<mode>1): Likewise.
441         (*pop<mode>1_epilogue): Likewise.
442         (push/pop peephole2): Use word_mode scratch registers.
444 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
446         * config/i386/predicates.md (indirect_branch_operand): Simplify.
448 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
450         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
451         for constants in [-63,63].
453 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
455         PR target/52530
456         Revert:
457         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
459         * config/i386/i386.c (ix86_print_operand_address): Only handle
460         zero-extended DImode addresses.
462 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
464         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
465         * configure: Regenerate.
467 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
469         PR target/52496
470         * config/avr/avr.c (avr_mem_clobber): New static function.
471         (avr_expand_delay_cycles): Add memory clobber operand to
472         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
473         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
474         (enable_interrupt, disable_interrupt): New expander.
475         (nopv, sleep, wdr): New expanders.
476         (delay_cycles_1): Add memory clobber.
477         (delay_cycles_2): Add memory clobber.
478         (delay_cycles_3): Add memory clobber.
479         (delay_cycles_4): Add memory clobber.
480         (cli_sei): New insn from former "enable_interrupt",
481         "disable_interrupt" with memory clobber.
482         (*wdt): New insn from former "wdt" with memory clobber.
483         (*nopv): Similar, but for "nopv".
484         (*sleep): Similar, but for "sleep".
486 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
487             Kaz Kojima  <kkojima@gcc.gnu.org>
489         PR target/52503
490         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
491         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
492         (SUBTARGET_OVERRIDE_OPTIONS): Define.
494 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
496         * config/i386/predicates.md (x86_64_zext_general_operand): New.
497         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
498         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
500 2012-03-07  Walter Lee  <walt@tilera.com>
502         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
503         REG_CFA_* notes for the stack pointer.
504         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
505         EH_RETURN_STACKADJ_RTX.
506         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
507         generate REG_CFA_* notes for the stack pointer.
508         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
509         by EH_RETURN_STACKADJ_RTX.
511 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
513         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
514         when __AVR_3_BYTE_PC__ is defined.
516 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
518         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
519         (ix86_print_operand): Handle '^'.
520         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
521         using P mode iterator.  Add %^ to asm template to conditionally emit
522         addr32 prefix.
523         (*rep_movdi_rex64): Ditto.
524         (*strsetdi_rex_1): Ditto.
525         (*rep_stosdi_rex64): Ditto.
526         (*strmov{si,hi,qi}_1): Add %^ to asm template to
527         conditionally emit addr32 prefix.
528         (*rep_mov{si,qi}): Ditto.
529         (*strset{si,hi,qi}): Ditto.
530         (*rep_stos{si,qi}): Ditto.
531         (*cmpstrnqi_nz_1): Ditto.
532         (*cmpstrnqi_1): Ditto.
533         (*strlenqi_1): Ditto.
535 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
537         * config/i386/i386.c (function_value_64): Return pointers in
538         word_mode instead of Pmode.
539         (ix86_promote_function_mode): Likewise.
541 2012-03-07  Richard Guenther  <rguenther@suse.de>
543         * coverage.c (get_gcov_type): Use type_for_mode.
544         (get_gcov_unsigned_t): Likewise.
545         * expr.c (store_constructor): Use type_for_mode.
546         (try_casesi): Likewise.
547         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
548         (add_standard_iv_candidates): Use standard type trees.
549         * dojump.c (do_jump): Remove dead code.
551 2012-03-07  Richard Guenther  <rguenther@suse.de>
553         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
555 2012-03-07  Richard Guenther  <rguenther@suse.de>
557         * convert.c (strip_float_extensions): Move ...
558         * tree.c (strip_float_extensions): ... here.
560 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
562         PR target/52484
563         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
565 2012-03-07  Richard Guenther  <rguenther@suse.de>
567         * omp-low.c (extract_omp_for_data): Use signed_type_for.
568         (expand_omp_for_generic): Likewise.
569         (expand_omp_for_static_nochunk): Likewise.
570         (expand_omp_for_static_chunk): Likewise.
571         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
572         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
573         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
574         Use unsigned_type_for.
575         (vect_create_cond_for_align_checks): Use signed_type_for.
577 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
579         PR rtl-optimization/52203
580         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
581         all callers to pass NULL except ...
582         (reset_sched_cycles_in_current_ebb): ... here, save the value
583         in new variable 'empty'.  Increase issue_rate only for
584         non-empty insns.
586 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
588         PR target/51417
589         * Makefile.in: Let install-gcc-ar depend on installdirs,
590         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
591         Don't double canonicalize if cross-compiling.
593 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
595         PR target/52506
596         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
597         to: RAMPZ, RAMPY, RAMPX, RAMPD.
598         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
600 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
602         PR target/52505
603         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
604         from RAM.
605         * config/avr/avr.md (xload_8): Adjust insn length.
607 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
609         PR target/52461
610         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
611         if RAMPZ affects reading from RAM.
613 2012-03-07  Richard Guenther  <rguenther@suse.de>
615         PR pch/52518
616         PR pch/38987
617         * doc/invoke.texi (Precompiled Headers): Remove sentence that
618         suggests you can include PCHs from inside another header.
620 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
622         PR middle-end/52515
623         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
625 2012-03-07  Kai Tietz  <ktietz@redhat.com>
627         * doc/invoke.texi (fwritable-relocated-rdata): Document
628         new Cygwin/MinGW target option.
629         * config/i386/winnt.c (i386_pe_unique_section): Ignore
630         reloc if flag -fwritable-relocated-rdata is not set.
631         (i386_pe_section_type_flags): Likewise.
632         * config/i386/cygming.opt (fwritable-relocated-rdata):
633         Add new flag variable flag_writable_rel_rdata.
635 2012-03-07  Richard Guenther  <rguenther@suse.de>
637         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
638         precision against gimple constraints.
640 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
642         PR middle-end/52372
643         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
644         variables.
645         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
646         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
647         variables.
648         (init_emit_regs): Move associated initialization to...
649         (init_emit_once): ...here.
651 2012-03-06  Richard Henderson  <rth@redhat.com>
653         * config/m68k/m68k.h (ISA_HAS_TAS): New.
654         * config/m68k/sync.md (atomic_test_and_set): Use it.
655         (atomic_test_and_set_1): Likewise.
657 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
659         PR target/50310
660         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
661         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
662         (vector_ltgt<mode>): Likewise.
663         (vector_ordered<mode>): Likewise.
664         (vector_unordered<mode>): Likewise.
665         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
667 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
669         * trans-mem.c: New typedef for tm_region_p.
670         Define vector types for tm_region_p.
671         (tm_region_init): Replace region_worklist to a vector called
672         bb_regions.
674 2012-03-06  Richard Guenther  <rguenther@suse.de>
676         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
677         MEM_REF with constant pointer operand.
679 2012-03-06  Richard Guenther  <rguenther@suse.de>
681         PR middle-end/52493
682         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
684 2012-03-06  Tristan Gingold  <gingold@adacore.com>
686         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
687         (external_model_kind): Improve documentation.
688         (vms_pragma_extern_model): Handle relaxed_redef.
689         (vms_c_register_pragma): Allow expansion for nomember_alignment.
691 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
693         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
694         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
695         Some more notes on EIND usage and reorder EIND subsection.
697 2012-03-06  Tristan Gingold  <gingold@adacore.com>
699         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
700         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
702 2012-03-06  Tristan Gingold  <gingold@adacore.com>
704         * config/vms/t-vmsnative (version): Define.
705         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
707 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
709         PR rtl-optimization/52250
710         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
711         to put note list into.  Unconditionally call move_bb_info.
712         (move_bb_info): Do not assert the blocks being in the same region,
713         just drop the note list if they are not.
715 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
717         PR target/51244
718         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
719         and use unified expansion logic.
720         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
721         closer to the existing movt insn.
722         (negc): Rename insn to *negc.  Add new expander.
723         (movnegt): Use xor pattern for T bit negation.  Reserve helper
724         constant for negc pattern.
725         (*movnegt): New insn and splitter.
727 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
729         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
730         PLUS_EXPR.
732 2012-03-05  Richard Henderson  <rth@redhat.com>
734         * genemit.c (main): Include "target.h" in insn-emit.c.
735         * Makefile.in (insn-emit.o): Depend on TARGET_H.
736         * config/sh/sync.md (atomic_test_and_set): Reference
737         targetm.atomic_test_and_set_trueval instead of
738         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
740 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
742         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
743         Make static.
745 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
747         * langhooks.c (add_builtin_type): New function.
748         * langhooks.h (add_builtin_type): Export it.
749         * config/mep/mep.c (mep_init_builtins): Use it.
750         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
752 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
754         PR debug/51902
755         * tree.h (BLOCK_SAME_RANGE): Define.
756         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
757         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
758         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
759         isn't equal to supercontext fragment's fragment chain.
760         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
761         fragment origin.
762         (blocks_nreverse_all): Likewise.
763         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
764         BLOCK_SUPERCONTEXT to supercontext fragment instead of
765         supercontext fragment's fragment origin.
766         * dwarf2out.c (add_high_low_attributes): If stmt has the same
767         range as its parent (or parents thereof etc.), use the parent's
768         DW_AT_ranges value instead of creating a new .debug_ranges range.
770 2012-03-05  Richard Henderson  <rth@redhat.com>
772         PR tree-opt/52242
773         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
774         * omp-low.c (expand_omp_atomic): Assume anything aligned to
775         BIGGEST_ALIGNMENT is aligned.
777 2012-03-05  Richard Henderson  <rth@redhat.com>
779         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
780         * config/sh/sh.c: ... here.
782 2012-03-05  Richard Henderson  <rth@redhat.com>
784         PR target/52481
785         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
786         instead of calling negqi2 directly.
788 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
790         PR middle-end/52463
791         * trans-mem.c (tm_region_init): Use last_basic_block.
793 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
795         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
796         * config/sh/sync.md (atomic_test_and_set): New expander.
797         (tasb, atomic_test_and_set_soft): New insns.
798         * config/sh/sh.opt (menable-tas): New option.
799         * doc/invoke.texi (SH Options): Document it.
801 2012-03-05  Richard Guenther  <rguenther@suse.de>
803         * cfgloop.c (verify_loop_structure): Verify dominators before
804         using them.
805         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
806         dominators from here.
807         * graphite-scop-detection.c (create_sese_edges): Likewise.
808         * loop-doloop.c (doloop_optimize_loops): Likewise.
809         * loop-init.c (loop_optimizer_init): Likewise.
810         * loop-unroll.c (unroll_and_peel_loops): Likewise.
811         * loop-unswitch.c (unswitch_loops): Likewise.
812         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
813         * tree-parloops.c (parallelize_loops): Likewise.  Verify
814         only when checking is enabled.
815         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
817 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
819         * genautomata.c (parse_automata_opt): New static function.
820         (initiate_automaton_gen): Remove all option handling code.  Remove
821         argc argument.  All callers changed.
822         (main): Call init_rtx_reader_args_cb with the new function as argument.
824 2012-03-05  Richard Guenther  <rguenther@suse.de>
826         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
827         * tree-if-conv.c (combine_blocks): Free post-dominator info
828         after breaking it.
829         * tree-parloops.c (create_parallel_loop): Free and re-compute
830         dominator info after breaking it.
832 2012-03-05  Richard Guenther  <rguenther@suse.de>
834         PR middle-end/52353
835         * optabs.h (trapv_unoptab_p): New function.
836         (trapv_binoptab_p): Likewise.
837         * optabs.c (expand_binop): Use emit_libcall_block_1 with
838         a proper equiv_may_trap argument.
839         (expand_unop): Likewise.
840         (emit_libcall_block_1): Take extra argument whether the
841         instruction may trap.  Renamed from ...
842         (emit_libcall_block): ... this.  New wrapper.
844 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
846         PR tree-optimization/51721
847         * tree-vrp.c (register_edge_assert_for_2): If comparing
848         lhs of right shift by constant with an integer constant,
849         add ASSERT_EXPRs for the rhs1 of the right shift.
851         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
853 2012-03-05  Richard Guenther  <rguenther@suse.de>
855         * tree.c (integer_zerop): Handle VECTOR_CSTs.
856         (integer_onep): Likewise.
857         (integer_all_onesp): Likewise.
859 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
861         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
863 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
865         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
866         instead of TARGET_64BIT.
868 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
870         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
871         adjust_stack_insn.
873 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
875         * config/i386/i386.c (ix86_print_operand_address): Only handle
876         zero-extended DImode addresses.
878 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
880         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
881         taken and cputaken as bool.
883 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
885         * config/i386/constraints.md (Ya): New internal constraint.
886         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
887         (*zero_extendsidi2_rex64): Add x,x alternative.
888         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
889         Remove flags reg clobber.  Adjust corresponding splits.
890         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
891         zero_extendqisi2 expanders using SWI12 mode iterator.
892         (zero_extend<mode>si2_and): Macroize insn from
893         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
894         splitters.
895         (*zero_extend<mode>si2):  Macroize insn from
896         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
897         (*zero_extend*2_movzbl_and): Remove insn patterns.
898         (zero_extendqihi2_and): Merge corresponding splitter.
899         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
900         (*zero_extend*2_movzbl_and): Remove insn patterns.
901         (*anddi_1): Split TYPE_IMOVX instructions.
902         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
903         (*andhi_1): Ditto.
904         (and->zext splitter): Add splitter pattern.
905         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
907 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
909         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
910         x86-specific text.
911         (Debugging Options): Likewise.
912         (Optimize Options): Likewise.
913         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
914         with other architectures.  Use official processor names with correct
915         spelling/capitalization.  Fix formatting and grammar issues.
916         (i386 and x86-64 Windows Options): Similar cleanup here.
918 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
920         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
922 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
924         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
925         DBX_REGISTER_NUMBER.
927 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
929         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
930         operand is CONST_INT.  Take COSTS_N_INSNS into account.
931         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
932         of shiftcosts.
934 2012-03-02  Richard Henderson  <rth@redhat.com>
936         * optabs.c (expand_atomic_test_and_set): Honor
937         atomic_test_and_set_trueval even when atomic_test_and_set
938         optab is not in use.
940 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
942         PR target/48596
943         PR target/48806
944         * config/sh/sh.c (sh_register_move_cost): Increase cost between
945         GENERAL_REGS and FP_REGS for SImode.
947 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
949         PR target/49486
950         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
951         (absdi2): New expander.
952         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
954 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
956         * config/sh/sync.md (atomic_exchange<mode>): New expander.
957         (atomic_exchange<mode>_soft): New insn.
959 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
961         * config/sh/sync.md: Update copyright notice dates.
962         (atomic_compare_and_swap<mode>): Use SImode for return value instead
963         of QImode.
964         (atomic_compare_and_swap<mode>_soft): Likewise.
966 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
968         PR target/31640
969         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
970         * config/sh/sh.c: Update copyright notice dates.
971         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
972         alignment for TARGET_HARD_SH4.
973         (sh_option_override): Reduce default function alignment.  Set
974         loop alignment to 4 bytes when not optimizing for size.
976 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
978         PR middle-end/50335
979         * doc/invoke.texi (floop-flatten): Remove.
980         * toplev.c (process_options): Remove references to flag_loop_flatten.
981         * tree-ssa-loop.c (gate_graphite_transform): Same.
982         * common.opt (floop-flatten): Obsolete.
983         * graphite-poly.c (apply_poly_transforms): Remove reference to
984         flag_loop_flatten.
985         * Makefile.in (graphite-flattening.o): Remove.
986         * graphite-flattening.c: Remove.
988 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
990         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
991         having mode compatible with the mode of previous compare.  Substitute
992         compare mode of previous compare with the mode, compatible
993         with eliminated and previous compare.
995 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
997         * config/rs6000/dfp.md (floatdidd2): New define_insn.
999 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
1001         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
1002         compatible with CCGOCmode and CCGCmode.
1004 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
1006         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
1008 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1010         * config/arm/arm.c (arm_sat_operator_match): New function.
1011         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
1012         * config/arm/arm.md ("insn" attribute): Add "sat" value.
1013         ("SAT", "SATrev"): New code iterators.
1014         ("SATlo", "SAThi"): New code iterator attributes.
1015         ("*satsi_<SAT:code>"): New pattern.
1016         ("*satsi_<SAT:code>_shift"): Likewise.
1017         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
1018         and "shift" attributes.
1019         ("arm_usatsihi"): Add "insn" attribute.
1020         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
1021         by powers of two.  Do not allow shift by 32.
1023 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
1025         PR target/46716
1026         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
1027         to pass the argument in the register of "natural" mode.
1029 2012-03-02  Richard Guenther  <rguenther@suse.de>
1031         PR tree-optimization/52406
1032         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
1033         (struct indices): Add unconstrained_base member.
1034         (struct dr_alias): Remove unused vops member.
1035         (DR_UNCONSTRAINED_BASE): New define.
1036         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
1037         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
1038         be an artificial access that covers the whole indexed object,
1039         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
1040         plain decl base-objects to their MEM_REF variant.
1041         (dr_may_alias_p): When the base-object of either data reference
1042         has unknown size use only points-to information.
1043         (compute_affine_dependence): Make dumps easier to read and
1044         more verbose.
1045         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
1046         DR_REF when looking for packed references.
1047         (vect_supportable_dr_alignment): Likewise.
1049 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
1051         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
1052         Improve conditions for peepholes of loads followed by commutative
1053         operators.
1054         * config/arm/ldmstm.md: Regenerated.
1056 2012-03-02  Richard Guenther  <rguenther@suse.de>
1058         * BASE-VER: Set to 4.8.0.
1060 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
1062         * config.gcc (obsolete): Add all ARM targets using the FPA.
1063         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
1064         * doc/install.texi: Avoid references to obsolete ARM ports.
1066 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1068         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
1070 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
1071             Joern Rennecke  <joern.rennecke@embecosm.com>
1073         * doc/extend.texi: Expand and update information on interrupt
1074         attribute for Epiphany.
1076 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
1078         * config/sh/sh-protos.h: Update copyright notice dates.
1079         * config/sh/sh.h: Likewise.
1080         * config/sh/sh.md: Likewise.
1081         * config/sh/constraints.md: Likewise.
1082         * config/sh/predicates.md: Likewise.
1084 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
1086         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
1087         * config/sh/sh.c (tertiary_reload_operand): Likewise.
1089 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
1091         * config/sh/constraints.md: Fix comment typo.
1093 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1095         PR target/52408
1096         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
1097         unsigned HOST_WIDE_INT.
1098         (zvdep_imm64): Likewise.
1099         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
1100         (vdepi_and): Likewise.
1101         Likewise for unamed 64-bit patterns.
1102         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
1104 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
1106         PR debug/52001
1107         PR rtl-optimization/52417
1108         * cselib.c (cselib_any_perm_equivs): New variable.
1109         (cselib_reset_table): Check that it's not set when not
1110         preserving constants.
1111         (cselib_add_permanent_equiv): Set it.
1112         (cselib_have_permanent_equivalences): New.
1113         (cselib_init, cselib_finish): Reset it.
1114         * cselib.h (cselib_have_permanent_equivalences): Declare.
1115         * alias.c (get_addr): Restore earlier behavior when there
1116         aren't permanent equivalences.
1118 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
1120         * config/mn10300/mn10300-modes.def: Fix copyright notice.
1121         * config/v850/v850-modes.def: Fix copyright notice.
1123 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
1125         * doc/extend.texi (AVR Built-in Functions): Document
1126         __builtin_avr_flash_segment.
1128         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
1129         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
1130         (*split.flash_segment): New insn-and-split.
1131         * config/avr/avr.c (avr_init_builtins): Add local variables:
1132         const_memx_void_node, const_memx_ptr_type_node,
1133         char_ftype_const_memx_ptr.
1135 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
1137         PR tree-optimization/52445
1138         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
1139         add ssa_name_ver, offset and size fields and change store field
1140         to bool.
1141         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
1142         (add_or_mark_expr): Likewise.  Only consider previous stores
1143         with the same size and offset.
1144         (nt_init_block): Only look at gimple_assign_single_p stmts,
1145         doesn't look at rhs2.
1147 2012-03-01  Richard Guenther  <rguenther@suse.de>
1149         PR middle-end/52443
1150         * tree-cfg.c (verify_gimple_assign_unary): Allow any
1151         conversions from integral types to pointer types.
1153 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
1155         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
1156         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
1157         unintentionally removed in r184616.
1159 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1161         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
1162         3DNow from bdver1.
1164 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
1165             Uros Bizjak  <ubizjak@gmail.com>
1167         PR target/52437
1168         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
1169         alternatives, add "e" constraint to the new last alternative
1170         and ! to last 3 alternatives.
1172 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1174         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
1175         DW_AT_artificial attributes at the end of the processing.
1176         (gen_array_type_die): Likewise.
1177         (gen_enumeration_type_die): Likewise.
1178         (gen_struct_or_union_type_die): Likewise.
1179         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
1180         the parent type.
1182 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
1184         PR middle-end/52419
1185         * expr.c (expand_assignment): If doing misaligned store that doesn't
1186         cover all mode bits, perform a RMW cycle.
1188         PR tree-optimization/52429
1189         * tree-parloops.c (separate_decls_in_region_debug): Return early
1190         if var is LABEL_DECL.
1192 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1194         PR tree-optimization/52424
1195         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
1196         calling dom_thread_across_edge.
1198 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1200         * config/avr/avr.c: Move definition of TARGET macros to end of file.
1202 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1204         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
1205         * config/avr/avr.c (avr_output_bld): Remove unused function.
1206         (avr_out_sbxx_branch): Use "%T" to print bit position.
1208 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1210         * config/avr/avr.md: Untabify.
1212 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1214         * config/avr/avr.md (eqne): New code iterator.
1215         (*dec-and-branchsi): Use it in text peephole's condition.
1216         (*dec-and-branchhi): Ditto.
1217         (*dec-and-branchqi): Ditto.
1219 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1221         PR target/49939
1222         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
1223         the device does not have the skip-bug.
1225 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
1227         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
1228         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
1229         -mpretend-cmove): New.
1231 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
1233         PR bootstrap/52397
1234         * df.h (struct df_d): Adjust comment that hard_regs_live_count
1235         doesn't count DEBUG_INSN refs.
1236         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
1237         for DEBUG_INSN refs.
1239 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1241         Partially revert:
1243         2012-02-20  Richard Guenther  <rguenther@suse.de>
1244         PR tree-optimization/52298
1245         * tree-vect-stmts.c (vectorizable_load): Properly use
1246         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
1247         outer loops.
1249 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
1251         PR middle-end/51752
1252         * gimple.h (gimple_in_transaction): New.
1253         (gimple_set_in_transaction): New.
1254         (struct gimple_statement_base): Add in_transaction field.
1255         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
1256         transaction loads.
1257         (tree_ssa_lim_initialize): Compute transaction bits.
1258         * tree.h (compute_transaction_bits): Protoize.
1259         * trans-mem.c (tm_region_init): Use the heap to store BB
1260         auxilliary data.
1261         (compute_transaction_bits): New.
1263 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1265         * gcc.c (display_help): Document --help=common and sort entries
1266         alphabetically.
1268 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1270         * doc/install.texi: Document check-$LANG specific shortcuts
1272 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1274         PR target/51534
1275         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
1276         and vcgtu.
1277         * config/arm/arm_neon.h: Regenerate.
1278         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
1279         (neon_vcgeu): New insn.
1280         (neon_vcgtu): Likewise.
1281         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
1282         (ops): Unsigned comparison intrinsics call a different builtin.
1284 2012-02-28  Richard Guenther  <rguenther@suse.de>
1286         PR target/52407
1287         * config/i386/i386.c (ix86_expand_vector_set): Fix element
1288         ordering for the VEC_CONCAT for two element vectors for
1289         V2SFmode, V2SImode and V2DImode.
1291 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
1293         PR target/49448
1294         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
1295         detecting big-endian triplets.
1297 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
1299         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
1300         mode if there is no type information available.
1302 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
1304         PR tree-optimization/53207
1305         * doc/invoke.texi: Document as experimental and relying on graphite.
1307 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1309         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
1310         of initializer to changes from r184614.
1312 2012-02-28  Richard Guenther  <rguenther@suse.de>
1314         PR tree-optimization/52395
1315         * tree-sra.c (build_ref_for_offset): Also look at the base
1316         TYPE_ALIGN when figuring out the alignment of the replacement.
1318 2012-02-28  Richard Guenther  <rguenther@suse.de>
1320         PR tree-optimization/52402
1321         * ipa-prop.c (ipa_modify_call_arguments): Properly use
1322         mis-aligned types when creating the accesses at the call site.
1324 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1326         * config/avr/builtins.def: New file.
1327         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
1328         * config/avr/avr.c (enum avr_builtin_id): Use it.
1329         (avr_init_builtins): Use it. And use avr_bdesc.
1330         (bdesc_1arg): Remove.
1331         (bdesc_2arg): Remove.
1332         (bdesc_3arg): Remove.
1333         (struct avr_builtin_description): Add field n_args.
1334         (avr_bdesc): New static variable using builtins.def.
1335         (avr_expand_builtin): Use it.
1336         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
1337         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
1338         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
1340 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1342         PR target/52148
1343         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
1344         match only one single hard register with respective hard reg rtx.
1345         (movmemx_<mode>): Ditto.
1346         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
1347         insn anatomy of movmem[x]_<mode>.
1348         (avr_out_movmem): Same for printing assembler and operand usage.
1350 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1352         PR target/49868
1353         PR target/52261
1354         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
1355         address spaces located outside of device flash.
1357         * config/avr/avr.h (base_arch_s): Remove field n_segments.
1358         (mcu_type_s): Add field n_flash.
1359         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
1360         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
1361         (AVR_MCU): Add N_FLASH argument.
1362         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
1363         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
1364         macro __FLASH<n> if that address space makes sense for the device.
1365         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
1366         outside of target flash.
1367         (avr_asm_named_section): Ditto.
1368         (avr_asm_select_section): Ditto.
1369         (avr_addr_space_convert): Ditto.
1370         (avr_emit_movmemhi): Ditto.
1371         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
1372         address space is outside of device flash.
1373         (avr_insert_attributes): Ditto.
1374         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
1375         avr_current_arch->n_segments.
1377 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1379         PR target/52352
1380         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
1381         (*movabs<mode>_2): Likewise.
1383 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
1385         PR target/52375
1386         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
1387         s_register_operand in the test instead of REG_P.  Don't call
1388         gen_reg_rtx if it won't be used.
1390         PR tree-optimization/52376
1391         * ipa-split.c (split_function): Ignore CLOBBER stmts.
1393 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
1395         * ifcvt.c (noce_get_condition): Check condition variable is not
1396         small_register_classes_for_mode_p before accepting.
1398 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
1400         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
1402 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1404         Revert:
1405         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1406         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
1407         tuning parameters.
1408         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
1410 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
1412         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
1414 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
1416         * config/sh/predicates.md: Remove blank lines.
1417         * config/sh/sh.c: Fix typos in comments.
1418         * config/sh/constraints.md: Likewise.
1419         * config/sh/sh.md: Remove blank lines.
1420         Fix typos in comments.  Use ;; as comment characters.
1422 2012-02-26  Walter Lee  <walt@tilera.com>
1424         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
1425         (replace_mov_pcrel_step2): Ditto.
1427 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
1429         PR debug/52001
1430         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
1431         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
1432         and locs that reference values newer than the non-canonical value
1433         at hand.  Return the canonical value as a worst case.
1434         (memrefs_conflict_p): Walk canonical value's locs.
1436         PR debug/52001
1437         * cselib.c (preserve_only_constants): Rename to...
1438         (preserve_constants_and_equivs): ... this.  Split out...
1439         (invariant_or_equiv_p): ... this.  Preserve plus expressions
1440         of other preserved expressions too.
1441         (cselib_reset_table): Adjust.
1442         * var-tracking.c (reverse_op): Use canonical value to build
1443         reverse operation.
1445 2012-02-23  Kai Tietz  <ktietz@redhat.com>
1447         * config/i386/i386.c (ix86_delegitimize_address): Handle
1448         UNSPEC_PCREL plus displacement.
1450 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
1452         PR target/52261
1453         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
1454         to test for unusedness in st X addressing.
1456 2012-02-24  Richard Guenther  <rguenther@suse.de>
1458         PR middle-end/52361
1459         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
1460         (is_gimple_reg_type): Move inline ...
1461         * gimple.h (is_gimple_reg_type): ... here.
1463 2012-02-24  Richard Guenther  <rguenther@suse.de>
1465         PR middle-end/52361
1466         * passes.c (execute_function_todo): When verifying SSA form
1467         verify gimple form first.
1468         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
1470 2012-02-24  Richard Guenther  <rguenther@suse.de>
1472         PR middle-end/52355
1473         * fold-const.c (fold_addr_of_array_ref_difference): New function.
1474         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
1476 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1478         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
1480 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1482         * tree-phinodes.c (make_phi_node): Mark static.
1483         * tree-flow.h (make_phi_node): Remove extern decl.
1484         * doc/gimple.texi (make_phi_node): Remove documentation.
1486 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1488         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
1489         * tree-ssa-sccvn.c (print_scc): Ditto.
1491 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1493         * doc/passes.texi (Full redundancy elimination): Fix typo.
1495 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1497         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
1499 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
1501         PR bootstrap/52287
1502         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
1504 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
1506         PR c/52290
1507         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
1509 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
1511         * config/avr/avr.md (code_stdname): Add ior, xor.
1512         (xior): New code iterator.
1513         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
1514         (*<code_stdname><mode>qi.byte1-3): Ditto.
1516 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
1518         PR tree-optimization/52019
1519         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
1520         CLOBBER stmts.
1522 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1524         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
1525         HAVE_INITFINI_ARRAY to work around namespace pollution in
1526         certain versions of newlib system headers.
1527         * config.in: Regenerate.
1528         * configure: Regenerate.
1529         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
1530         instead of HAVE_INITFINI_ARRAY.
1532 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
1534         PR target/52330
1535         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
1536         is not offsettable memory reference.
1538 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
1540         PR target/18145
1541         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
1542         setting avr_need_clear_bss_p for __gnu_lto* symbols.
1544 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
1546         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
1547         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
1549 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1551         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
1552         library on Solaris 8 even without TLS support.
1553         * configure: Regenerate.
1555 2012-02-22  Richard Guenther  <rguenther@suse.de>
1557         PR middle-end/52329
1558         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
1559         for GIMPLE_DEBUG stmts.
1561 2012-02-22  Martin Jambor  <mjambor@suse.cz>
1563         PR middle-end/51782
1564         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
1565         according to the base object.
1567 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
1569         PR rtl-optimization/50063
1570         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
1571         and 2 (8-bit SP) in operand 2.
1572         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
1573         setup to use movhi_sp_r instead of vanilla move to write SP.
1574         Adjust REG_CFA notes to superseed unspec.
1575         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
1576         of vanilla move.
1577         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
1578         known to be off) only with TARGET_NO_INTERRUPTS. Never use
1579         irq_state 1 (IRQ known to be on) here.
1581 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
1583         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
1584         WORDS_BIG_ENDIAN.
1585         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
1586         assign_hard_reg): Likewise.
1588 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
1590         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
1592 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
1594         * config/avr/avr.md
1595         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
1596         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
1598 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
1600         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
1601         prototype from here to...
1602         * config/avr/avr.h: ...here.
1604 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
1606         PR target/52294
1607         * thumb2.md (thumb2_shiftsi3_short): Split register and
1608         immediate shifts.  For register shifts tie operands 0 and 1.
1609         (peephole2 for above): Check that register-controlled shifts
1610         have suitably tied operands.
1612 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
1614         PR target/52137
1615         * config/i386/bdver1.md (bdver1_call, bdver1_push,
1616         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
1617         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
1618         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
1619         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
1620         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
1621         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
1622         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
1623         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
1624         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
1625         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
1626         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
1627         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
1628         bdver1_ssevector_avx256_unaligned_load,
1629         bdver1_ssevector_sse128_unaligned_load,
1630         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
1631         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
1632         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
1633         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
1634         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
1635         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
1636         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
1637         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
1638         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
1639         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
1640         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
1641         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
1642         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
1643         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
1644         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
1645         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
1646         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
1647         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
1648         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
1649         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
1650         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
1651         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
1652         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
1653         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
1654         bdver1_ssediv_double_load, bdver1_ssediv_double,
1655         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
1656         Add "bdver2" attribute.
1658 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1660         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
1661         default if possible and not specified otherwise.
1663 2012-02-21  Richard Guenther  <rguenther@suse.de>
1665         PR middle-end/52314
1666         * gimplify.c (create_tmp_from_val): Use the main variant type
1667         for the type of the temporary we create.
1669 2012-02-21  Richard Guenther  <rguenther@suse.de>
1671         PR tree-optimization/52324
1672         * gimplify.c (gimplify_expr): When re-gimplifying expressions
1673         do not gimplify a MEM_REF address operand if it is already
1674         in suitable form.
1676 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1678         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
1679         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
1681 2012-02-21  Richard Guenther  <rguenther@suse.de>
1683         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
1684         nested_in_vect_loop.
1686 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
1688         PR tree-optimization/52318
1689         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
1690         vdef also to non-pure/const call stmts in the sequence.
1692 2012-02-21  Tristan Gingold  <gingold@adacore.com>
1694         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
1696 2012-02-20  David S. Miller  <davem@davemloft.net>
1698         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
1699         don't use the "rd %pc" instruction on v9 for PIC register loads.
1701 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
1703         PR middle-end/52141
1704         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
1705         in a transaction safe function.
1707 2012-02-20  Kai Tietz  <ktietz@redhat.com>
1709         PR target/52238
1710         * stor-layout.c (place_field): Handle desired_align for
1711         ms-bitfields, too.
1713 2012-02-20  Richard Guenther  <rguenther@suse.de>
1715         PR tree-optimization/52298
1716         * tree-vect-stmts.c (vectorizable_store): Properly use
1717         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
1718         outer loops.
1719         (vectorizable_load): Likewise.
1720         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1721         Access DR_STEP after ensuring it is not NULL.
1723 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
1725         PR tree-optimization/52286
1726         * fold-const.c (fold_binary_loc): For (X & C1) | C2
1727         optimization use double_int_to_tree instead of build_int_cst_wide,
1728         rewrite to use double_int vars.
1730 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1732         PR target/50166
1733         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
1734         Define _start.
1735         Remove -e 0 from $gcc_cv_ld invocation.
1736         Only use __GLIBC_PREREQ if defined.
1737         Enable on Solaris since Solaris 8 patch.
1738         (gcc_SUN_LD_VERSION): New macro.
1739         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
1740         gcc_SUN_LD_VERSION for version number format.
1741         * configure: Regenerate.
1742         * varasm.c (get_elf_initfini_array_priority_section): Set
1743         SECTION_NOTYPE for non-default priority.
1744         Use get_section instead of get_unnamed_section to emit
1745         .init_array/.fini_array with default priority.
1747 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
1749         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
1750         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
1751         (mips_start_unique_function, mips_output_mips16_rdhwr)
1752         (mips_code_end): New functions.
1753         (TARGET_ASM_CODE_END): Define.
1755 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
1757         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
1758         to stubs with non-sibling calls.
1760 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
1762         * doc/invoke.texi (-fira-* options): Copy-edit.
1763         (ira-* parameters): Copy-edit.
1765 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
1767         * doc/invoke.texi: Minor copy-edits to bring into conformance with
1768         GCC coding conventions.
1770 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
1772         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
1773         when used as adjectives.
1775 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
1777         * doc/invoke.texi: Clean up "that"/"which" confusion.
1779 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
1781         * system.h: Poison SMALL_REGISTER_CLASSES
1782         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
1783         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
1785 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
1787         PR tree-optimization/52285
1788         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
1789         when deciding if a call is a tail call or tail recursion.
1791 2012-02-16  Kai Tietz  <ktietz@redhat.com>
1793         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1794         interger-constant displacement for UNSPEC_PCREL.
1796 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
1798         PR rtl-optimization/52208
1799         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
1800         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
1802         PR tree-optimization/52255
1803         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
1804         loop->header has virtual PHI, but exit_e->dest doesn't, add
1805         virtual PHI to exit_e->dest and adjust all uses after the loop.
1807         PR debug/52260
1808         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
1809         children with clone_tree_hash, not after it.
1811 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
1813         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
1814         extended identifiers.
1816 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
1818         PR middle-end/51929
1819         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
1820         a same_body_alias, also test whether e->callee isn't a former
1821         or current clone of the decl this is a same body alias of.
1823         PR translation/52264
1824         * cgraphunit.c (verify_cgraph_node): Fix a typo.
1826 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
1828         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
1830 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1832         PR target/52199
1833         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
1834         force_reg instead of copy_to_reg for better optimization.  Force
1835         non-register or memory operands into a register.
1837 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
1839         * extend.texi: Reserve upper bits of memory model for future use.
1841 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
1842             Anatoly Sokolov <aesok@post.ru>
1843             Eric Weddington <eric.weddington@atmel.com>
1845         PR target/52261
1846         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
1847         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
1848         Rewrite initializers for .macro.
1849         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
1850         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
1851         atxmega32d4, atxmega32x1.
1852         avrxmega4: atxmega64a3, atxmega64d3.
1853         avrxmega5: atxmega64a1, atxmega64a1u.
1854         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
1855         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
1856         avrxmega7: atxmega128a1, atxmega128a1u.
1857         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
1858         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
1859         (struct base_arch_s): Rename reserved to xmega_p.
1860         Rename reserved2 to have_rampd.
1861         (AVR_XMEGA): New define.
1862         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
1863         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
1864         * config/avr/predicates.md (io_address_operand): Take into
1865         account SFR offset.
1866         (low_io_address_operand): Ditto.
1867         (high_io_address_operand): Ditto.
1868         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
1869         (enabled, movhi_sp_r): Use them.
1870         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
1871         cpp_define_formatted to built-in define __AVR_ARCH__.
1872         (__AVR_XMEGA__): New built-in define.
1873         (__AVR_HAVE_RAMPD__): New built-in define.
1874         (__AVR_HAVE_RAMPX__): New built-in define.
1875         (__AVR_HAVE_RAMPY__): New built-in define.
1876         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
1878         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
1879         (avr_option_override): Initialize them.
1880         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
1881         (avr_init_expanders): Initialize them. No more block several calls.
1882         (emit_push_sfr): New static function.
1883         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
1884         Handle AVR_XMEGA.
1885         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
1886         (avr_print_operand): Print addreeses as symbols for
1887         RAMPX, RAMPY, RAMPD, CCP.
1888         (output_movhi): Handle AVR_XMEGA when writing to SP.
1889         (avr_out_movhi_mr_r_xmega): New static function.
1890         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
1891         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
1892         __RAMPD__,  __CCP__ as needed.
1894         * config/avr/multilib.h: Regenerate.
1895         * config/avr/t-multilib: Regenerate.
1896         * config/avr/avr-tables.opt: Regenerate.
1898 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
1900         PR tree-optimization/50561
1901         * graphite-flattening.c (lst_project_loop): Do not
1902         remove old scattering dimensions after flattening.
1903         (lst_do_flatten): Likewise.
1905 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
1907         * doc/extend.texi (AVR Built-in Functions): Remove doc for
1908         __builtin_avr_map8, __builtin_avr_map16.
1909         Document __builtin_avr_insert_bits.
1911         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
1912         (insert_bits): New insn.
1913         (adjust_len.map_bits): Rename to insert_bits.
1914         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
1915         * avr-protos.h (avr_out_map_bits): Remove.
1916         (avr_out_insert_bits, avr_has_nibble_0xf): New.
1917         * config/avr/constraints.md (Cxf,C0f): New.
1918         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
1919         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
1920         New built-in define __BUILTIN_AVR_INSERT_BITS.
1921         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
1922         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
1923         (avr_move_bits): Rewrite.
1924         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
1925         functions.
1926         (avr_map_op_t): New typedef.
1927         (avr_map_op): New static variable.
1928         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
1929         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
1930         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
1931         (bdesc_3arg, avr_expand_triop_builtin): New.
1932         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
1933         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
1934         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
1935         (avr_map_equal_p, avr_map_sig_p): Remove.
1936         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
1937         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1938         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
1939         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1940         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
1941         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1943 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
1945         * config/c6x/c6x.md (reserve_cycles): New attribute.
1946         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
1947         don't reserve functional units after the branch occurs.
1949 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
1951         PR middle-end/52142
1952         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
1953         functions into non-tm_pure functions.
1955 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1957         PR lto/52178
1958         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
1959         (iterative_hash_canonical_type): Likewise.
1960         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
1961         the dead edges.
1963 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
1965         * haifa-sched.c (prune_ready_list): Ensure that if there is a
1966         sched-group insn, it either remains alone or the entire list is pruned.
1968 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1970         * doc/install.texi (Prerequisites): Fix grammar.
1971         (Configuration): Likewise.
1973 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1975         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
1976         MPC as part of GCC before describing configuring with --with-gmp etc.
1977         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
1978         sources are present.
1980 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
1982         PR debug/51950
1983         * dwarf2out.c (clone_tree_hash): New function.
1984         (copy_decls_walk): Use it instead of clone_tree.
1986 2012-02-14  Richard Guenther  <rguenther@suse.de>
1988         PR tree-optimization/52244
1989         PR tree-optimization/51528
1990         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
1991         replacements for integral types.
1993 2012-02-14  Walter Lee  <walt@tilera.com>
1995         * config.gcc: Handle tilegx and tilepro.
1996         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
1997         tilegx and tilepro.
1998         Add HAVE_AS_TLS check for tilegx and tilepro.
1999         * configure: Regenerate.
2000         * doc/contrib.texi: Add Mat Hostetter and self.
2001         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
2002         Document instruction intrinsics and network accessing intrinsics.
2003         (TILEPro Built-in Functions): New node.  Document instruction
2004         intrinsics and network accessing intrinsics.
2005         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
2006         (Specific, tilepro-*-linux*): Likewise.
2007         * doc/invoke.texi (TILE-Gx Options): New section.
2008         (TILEPro Options): New section.
2009         * doc/md.texi (TILE-Gx): New section.
2010         (TILEPro): New section.
2011         * common/config/tilegx/tilegx-common.c: New file.
2012         * common/config/tilepro/tilepro-common.c: New file.
2013         * config/tilegx/constraints.md: New file.
2014         * config/tilegx/linux.h: New file.
2015         * config/tilegx/mul-tables.c: New file.
2016         * config/tilegx/predicates.md: New file.
2017         * config/tilegx/sync.md: New file.
2018         * config/tilegx/t-tilegx: New file.
2019         * config/tilegx/tilegx-builtins.h: New file.
2020         * config/tilegx/tilegx-c.c: New file.
2021         * config/tilegx/tilegx-generic.md: New file.
2022         * config/tilegx/tilegx-modes.def: New file.
2023         * config/tilegx/tilegx-multiply.h: New file.
2024         * config/tilegx/tilegx-protos.h: New file.
2025         * config/tilegx/tilegx.c: New file.
2026         * config/tilegx/tilegx.h: New file.
2027         * config/tilegx/tilegx.md: New file.
2028         * config/tilegx/tilegx.opt: New file.
2029         * config/tilepro/constraints.md: New file.
2030         * config/tilepro/gen-mul-tables.cc: New file.
2031         * config/tilepro/linux.h: New file.
2032         * config/tilepro/mul-tables.c: New file.
2033         * config/tilepro/predicates.md: New file.
2034         * config/tilepro/t-tilepro: New file.
2035         * config/tilepro/tilepro-builtins.h: New file.
2036         * config/tilepro/tilepro-c.c: New file.
2037         * config/tilepro/tilepro-generic.md: New file.
2038         * config/tilepro/tilepro-modes.def: New file.
2039         * config/tilepro/tilepro-multiply.h: New file.
2040         * config/tilepro/tilepro-protos.h: New file.
2041         * config/tilepro/tilepro.c: New file.
2042         * config/tilepro/tilepro.h: New file.
2043         * config/tilepro/tilepro.md: New file.
2044         * config/tilepro/tilepro.opt: New file.
2046 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
2048         PR tree-optimization/52210
2049         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
2050         vect_model_simple_cost with two entry vect_def_type array instead
2051         of an address of dt.
2053 2012-02-14  Richard Guenther  <rguenther@suse.de>
2055         PR lto/52178
2056         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
2057         Do not stream DECL_QUALIFIER.
2058         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
2059         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
2060         (find_decls_types_r): Do not walk DECL_QUALIFIER.
2062 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
2064         PR c/52181
2065         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
2066         newdecl.
2068 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2070         PR bootstrap/52172
2071         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
2072         * cselib.c (cselib_subst_to_values_from_insn): New function.
2073         * sched-deps.c (add_insn_mem_dependence,
2074         sched_analyze_1, sched_analyze_2): Use it.
2076 2012-02-13  Jan Hubicka  <jh@suse.cz>
2078         PR middle-end/52214
2079         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
2081 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
2083         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
2084         (GTM_SELF_SPECS): Define if not already defined.
2085         (driver_self_specs): Add GTM_SELF_SPECS.
2086         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
2087         (GTM_SELF_SPECS): Define.
2088         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
2089         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
2091 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2093         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
2094         away if seen.
2096         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
2098         PR middle-end/52230
2099         * omp-low.c (expand_omp_for): If a static schedule without chunk size
2100         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
2102 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
2104         PR c/52190
2105         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
2107 2012-02-13  Richard Guenther  <rguenther@suse.de>
2109         PR translation/52211
2110         * passes.c (enable_disable_pass): Fix typo.
2112 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2114         PR middle-end/52209
2115         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
2116         XOR for reduce_bit_field if type is unsigned.
2118 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
2120         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
2121         disallow changes from SFmode to mode with different size in FP regs.
2123 2012-02-12  Robert Millan  <rmh@gnu.org>
2124             Gerald Pfeifer <gerald@pfeifer.com>
2126         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
2127         Tweak comment.
2129 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
2131         PR rtl-optimization/52175
2132         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
2133         to frame-related instructions.
2135 2012-02-10  Jason Merrill  <jason@redhat.com>
2137         PR c++/51910
2138         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
2139         (demangle_new_symbols): Fill it.
2140         (scan_linker_output): Walk it.
2141         (start_tweaking): Split out from scan_linker_output.
2142         (maybe_tweak): Update sym->chosen.
2143         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
2145 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
2147         PR debug/52132
2148         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
2150 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
2152         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
2153         having the same mode as previous compare.
2155 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
2157         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
2158         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
2159         (nonlocal_goto_internal): Likewise.
2160         (nonlocal_goto): Emit a use and an indirect jump directly.
2162 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
2164         PR c/52190
2165         * doc/extend.texi : Update comments for __atomic_compare_exchange and
2166         __atomic_{is,always}_lock_free.
2168 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
2170         PR target/52146
2171         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
2172         negative constant address for TARGET_X32.
2174 2012-02-10  Richard Henderson  <rth@redhat.com>
2176         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
2177         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
2178         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
2180 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2181             Ira Rosen  <irar@il.ibm.com>
2183         PR tree-optimization/50031
2184         * targhooks.c (default_builtin_vectorization_cost): Handle
2185         vec_promote_demote.
2186         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
2187         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
2188         all types of reduction and pattern statements.
2189         (vect_estimate_min_profitable_iters): Likewise.
2190         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
2191         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
2192         for explicit realigns.
2193         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
2194         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
2195         vec_promote_demote.
2196         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2197         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
2198         vec_perm for VSX and handle vec_promote_demote.
2200 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
2202         PR middle-end/52177
2203         * builtins.c (fold_builtin_atomic_always_lock_free,
2204         expand_builtin_atomic_always_lock_free,
2205         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
2206         Return and/or test boolean_true_node/boolean_false_node instead of
2207         integer_one_node/integer_zero_node.
2209 2012-02-10  Jan Hubicka  <jh@suse.cz>
2211         PR middle-end/48600
2212         * predict.c (predict_paths_for_bb): Prevent looping.
2213         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
2215 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
2217         * config/arm/arm.c (output_move_double): In one case properly
2218         count number of instructions that will be emitted.
2220 2012-02-10  Richard Guenther  <rguenther@suse.de>
2222         PR translation/52193
2223         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
2225 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
2227         PR middle-end/52140
2228         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
2230 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
2232         PR debug/52165
2233         * var-tracking.c (emit_note_insn_var_location): If
2234         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
2235         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
2236         non-NOTE_DURING_CALL_P insn.
2238 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
2240         PR middle-end/51867
2241         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
2243 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
2245         PR driver/48524
2246         * gcc.c (switch_matches) Support switches with separated form,
2247         -D and -U.
2249 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
2251         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
2252         (SP_ADDR): Ditto.
2253         (RAMPZ_ADDR): Ditto.
2254         * config/avr/avr.c (avr_addr_t): New typedef.
2255         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
2256         (avr_init_expanders): Initialize it.
2257         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
2258         SREG_ADDR.
2259         (expand_epilogue): Ditto.
2260         (avr_print_operand): Ditto.
2261         (avr_file_start): Ditto.
2262         (avr_emit_movmemhi): Ditto.
2264 2012-02-08  Richard Guenther  <rguenther@suse.de>
2266         PR tree-optimization/46886
2267         * tree-flow.h (do_while_loop_p): Declare.
2268         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
2269         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
2271 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
2273         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
2274         always succeed for integers larger than a native word.
2276 2012-02-08  Richard Guenther  <rguenther@suse.de>
2278         PR rtl-optimization/52170
2279         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
2280         properly handle integer vector modes.
2282 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
2284         PR gcov-profile/52150
2285         * coverage.c: Include target.h.
2286         (build_var): Call targetm.strip_name_encoding on the assembler name.
2287         Change one _ into . or $ if the target allows it.
2288         * Makefile.in (coverage.o): Depend on $(TARGET_H).
2290         PR rtl-optimization/52139
2291         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
2292         is a BARRIER after emit_insn_after_noloc, move BB_END
2293         to the last non-BARRIER insn before it.
2295 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
2297         PR middle-end/24306
2298         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
2299         (mips_gimplify_va_arg_expr): Call it instead of
2300         std_gimplify_va_arg_expr.
2302 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2304         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
2305         message for -mno-pointers-to-nested-function.
2307 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
2309         PR middle-end/51994
2310         * expr.c (get_inner_reference): If there is an offset, add a negative
2311         bit position to it (if any).
2313 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
2315         PR rtl-optimization/52060
2316         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
2317         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
2318         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
2319         and/or i0src_copy2 when needed.
2321 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
2323         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
2324         or LTOPLUGINSONAME if have_c.
2326         * config/freebsd-spec.h: Add comment about what macros can be defined
2327         in this header.
2328         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
2329         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
2330         here instead.
2332 2012-02-07  Richard Guenther  <rguenther@suse.de>
2334         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
2335         newline in -alias dumps.
2337 2012-02-07  Kai Tietz  <ktietz@redhat.com>
2338             Dave Korn  <dave.korn.cygwin@gmail.com>
2340         PR target/40068
2341         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
2342         Take care that typinfo gets dllexport-attribute.
2344 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
2346         PR middle-end/52074
2347         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
2348         if modifier < EXPAND_SUM call force_operand on the result.
2350 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
2352         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
2353         adding __forwarder_dst__ prefix if a forwarder_section attribute is
2354         present.
2355         (epiphany_function_type): Replace types for specific interrupts with
2356         EPIPHANY_FUNCTION_INTERRUPT.
2357         (EPIPHANY_INTERRUPT_P): Update.
2358         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
2359         New static function.
2360         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
2361         <disinterrupt>: Affects type identity.
2362         (epiphany_handle_interrupt_attribute): Handle variable number of
2363         arguments.
2364         (epiphany_compute_function_type): Update for new
2365         epiphany_function_type definition.
2366         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
2367         handlers with a longcall forwarder.
2368         (epiphany_start_function): Handle multiple interrupt arguments and/or
2369         forwarder_section attribute.
2371         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
2372         libgloss.
2374 2012-02-07  Alan Modra  <amodra@gmail.com>
2376         PR target/52107
2377         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
2378         subregs of TFmode.
2380 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2382         PR tree-optimization/50969
2383         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
2384         use vec_perm rather than vector_stmt.
2385         (vect_model_load_cost): Likewise.
2386         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
2387         vec_perm to be the same as other vector statements.
2388         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
2389         cost of vec_perm for TARGET_VSX.
2391 2012-02-06  Richard Guenther  <rguenther@suse.de>
2393         PR tree-optimization/52115
2394         * tree-sra.c (access_has_replacements_p): New function.
2395         (sra_modify_assign): Use it to decide whether a use is uninitialized.
2397 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
2399         PR middle-end/52047
2400         * trans-mem.c (expand_call_tm): Add an assertion.
2401         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
2402         functions.
2404 2012-02-06  Richard Guenther  <rguenther@suse.de>
2406         PR tree-optimization/50955
2407         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
2408         raise cost of expressions that replace an address with an
2409         expression based on a different pointer.
2411 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
2413         PR target/52129
2414         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
2415         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
2417 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2419         PR c++/48680
2420         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
2421         -Weffc++ and specify guidelines come from second edition.
2423 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
2425         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
2426         (sibcall_value_multiple_internal, call_split, call_internal_direct)
2427         (call_direct_split, call_value_split, call_value_internal_direct)
2428         (call_value_direct_split, call_value_multiple_split): Use jal and
2429         jal_macro attributes.
2431 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
2433         * reload1.c (reload_regs_reach_end_p): Replace with...
2434         (reload_reg_rtx_reaches_end_p): ...this function.
2435         (new_spill_reg_store): Update commentary.
2436         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
2437         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
2438         before setting new_spill_reg_store.
2439         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
2440         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
2441         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
2442         for non-spill reload registers.
2444 2012-02-05  Ira Rosen  <irar@il.ibm.com>
2446         PR tree-optimization/52091
2447         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
2448         (vect_is_simple_use_1): Likewise.
2449         * tree-vect-loop.c (vectorizable_reduction): Update calls
2450         to vect_is_simple_use_1 and vect_is_simple_use.
2451         (vectorizable_live_operation): Likewise.
2452         * tree-vect-patterns.c (widened_name_p,
2453         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
2454         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
2455         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
2456         vectorizable_shift,vectorizable_operation, vectorizable_store,
2457         vectorizable_load): Likewise.
2458         (vect_is_simple_cond): Add an argument, pass it to
2459         vect_is_simple_use_1.
2460         (vectorizable_condition): Update calls to vect_is_simple_cond,
2461         vect_is_simple_use.
2462         (vect_is_simple_use): Add an argument, the statement in which
2463         OPERAND is used.  Check that if OPERAND's def stmt is a double
2464         reduction phi node, the use is a phi node too.
2465         (vect_is_simple_use_1): Add an argument, pass it to
2466         vect_is_simple_use.
2467         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
2468         to vect_is_simple_use.
2470 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
2472         PR rtl-optimization/52095
2473         * modulo-sched.c (dump_insn_locator): New function.
2474         (loop_canon_p, sms_schedule): Use it.
2476         PR rtl-optimization/52113
2477         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
2478         even for decomposable shift/zext insns.
2480 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
2481             Zdenek Dvorak  <ook@ucw.cz>
2483         PR rtl-optimization/52092
2484         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
2485         on get_iv_value result.
2487 2012-02-02  Andrew Pinski  <apinski@cavium.com>
2489         PR middle-end/47982
2490         PR middle-end/43967
2491         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
2493 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
2495         PR middle-end/48071
2496         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
2498 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
2500         PR rtl-optimization/49800
2501         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
2502         (sched_finish): Call regstat_free_n_sets_and_refs.
2504 2012-02-02  Jia Liu  <proljc@gmail.com>
2506         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
2507         than operand 2.
2509 2012-02-02  Jan Hubicka  <jh@suse.cz>
2510             Tom de Vries  <tom@codesourcery.com>
2512         PR middle-end/51998
2513         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
2514         * varpool.c (varpool_analyze_pending_decls): Likewise.
2516 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
2517             Jayant R Sonar <jayant.sonar@kpitcummins.com>
2519         * config.gcc: Add cr16-* support.
2521         * doc/extend.texi: Document cr16 extensions.
2522         * doc/install.texi: Document cr16 install.
2523         * doc/invoke.texi: Document cr16 options.
2524         * doc/md.texi: Document cr16 constraints.
2526         * common/config/cr16/cr16-common.c: New file.
2527         * config/cr16/cr16.c: New file.
2528         * config/cr16/cr16.h: New file.
2529         * config/cr16/cr16.md: New file.
2530         * config/cr16/cr16.opt: New file.
2531         * config/cr16/cr16-protos.h: New file.
2532         * config/cr16/predicates.md: New file.
2533         * config/cr16/constraints.md: New file.
2534         * config/cr16/t-cr16: New file.
2536 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
2538         PR target/52086
2539         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
2540         that operands[2] is either immediate, or q_regs_operand.
2542         PR tree-optimization/52073
2543         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
2544         a pattern stmt for pattern uses, ignore uses outside of the loop.
2546 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
2548         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
2549         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
2550         (OUT_AS1, OUT_AS2): Remove.
2552 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
2554         PR rtl-optimization/51374
2555         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
2556         to cross other volatile_refs_p insns.
2558 2012-02-01  Richard Guenther  <rguenther@suse.de>
2560         * doc/invoke.texi (fno-inline): Clarify documentation.
2561         (finline-small-functions): Likewise.
2562         (finline-functions): Likewise.
2563         * common.opt (finline): Adjust comment and documentation.
2564         (finline-small-functions): Clarify documentation.
2565         (finline-functions): Likewise.
2566         (finline-functions-called-once): Likewise.
2568 2012-02-01  Tristan Gingold  <gingold@adacore.com>
2570         * c-typeck.c (composite_type): Keep mode for pointers.
2572 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
2574         * function.h (regno_reg_rtx): Adjust comment.
2575         * reginfo.c (init_reg_modes_target): Only use the previous mode
2576         if it fits within one register.  Remove MIPS comment.
2578 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
2580         PR bootstrap/52058
2581         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
2583 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2585         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
2586         to srak instruction.
2588 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2590         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
2592 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
2594         PR bootstrap/52041
2595         PR bootstrap/52039
2596         PR target/51974
2597         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
2599 2012-01-31  Richard Guenther  <rguenther@suse.de>
2601         PR tree-optimization/51528
2602         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
2603         assigns.
2605 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
2607         PR bootstrap/52041
2608         PR bootstrap/52039
2609         PR target/51974
2610         * ree.c (add_removable_extension): Change def_map argument
2611         to unsigned *, store in def_map 1 + offset into *insn_list vector
2612         instead of pointers into the vector.
2613         (find_removable_extensions): Adjust caller.
2615 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
2617         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
2618         Transform all "* quoted-c-code" to { c-code }.
2619         Remove redundant test for "optimize" in combine patterns.
2620         Move (include "avr-dimode.md") to end of file.
2622 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
2624         PR target/51835
2625         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2626         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
2628 2012-01-30  Richard Guenther  <rguenther@suse.de>
2630         PR tree-optimization/52028
2631         * tree-loop-distribution.c (ldist_gen): Properly update
2632         virtual SSA form.
2634 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
2636         PR debug/52027
2637         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
2638         set_cur_line_info_table if not emitting debug info.
2640         PR tree-optimization/52046
2641         * tree-vect-patterns.c (check_bool_pattern): Give up if
2642         a comparison could throw.
2644         PR debug/52048
2645         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
2647 2012-01-30  Richard Guenther  <rguenther@suse.de>
2649         PR tree-optimization/52045
2650         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
2651         SSA form if cfgcleanup did anything.
2653 2012-01-30  Richard Guenther  <rguenther@suse.de>
2655         PR tree-optimization/52045
2656         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
2657         before computing final todo.
2659 2012-01-30  Richard Guenther  <rguenther@suse.de>
2661         PR tree-optimization/51528
2662         * tree-sra.c (sra_modify_assign): Re-factor in preparation
2663         for PR51528 fix.
2665 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
2667         * df-problems.c (df_kill_notes): Check that the use refers
2668         to the note under examination.
2670 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
2672         PR target/51920
2673         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
2674         parameter and use short-lived pseudos.
2675         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
2676         (sparc_expand_vector_init): Const-ify local variables and adjust
2677         calls to above functions.
2679 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
2681         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
2683 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
2685         * doc/invoke.texi: Make usage of "compile time" and
2686         "run time"/"runtime" consistent throughout the file.
2688 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
2690         * config/alpha/alpha.c (alpha_option_override): Default to
2691         full IEEE compliance mode for Go language.
2693 2011-01-29  Tijl Coosemans  <tijl@coosemans.org>
2695         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
2696         (LINK_SSP_SPEC): Define.
2698 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2700         PR target/51871
2701         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
2702         stubs.
2704 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
2706         * doc/invoke.texi: Correct hyphenation of "floating point",
2707         "double precision", and related terminology throughout the file.
2709 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
2711         PR target/52006
2712         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
2713         arm_general_register_operand predicate for operand 2 instead of
2714         register_operand.
2716 2012-01-27  Ian Lance Taylor  <iant@google.com>
2718         PR go/47656
2719         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
2720         * builtins.c (expand_builtin_init_trampoline): Add onstack
2721         parameter.  Change caller.
2722         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
2723         * tree.c (build_common_builtin_nodes): Declare
2724         __builtin_init_heap_trampoline.
2726 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
2728         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
2729         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
2730         * config/avr/avr.c: Ditto.
2731         (avr_regnames): Remove because unused.
2732         * config/avr/avr.md (*cpse.ne): New peephole.
2733         (*cpse.eq): New peephole from former cpse peepholes.
2735 2012-01-27  Michael Eager  <eager@eagercon.com>
2737         * config/microblaze.c (microblaze_emit_compare): Correct
2738         test after pcmp instruction.
2740 2012-01-27  Richard Guenther  <rguenther@suse.de>
2742         PR tree-optimization/52020
2743         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
2745 2012-01-27  Richard Guenther  <rguenther@suse.de>
2747         * ipa-pure-const.c (check_stmt): Clobbers do not make a
2748         function non-const/pure.
2750 2012-01-27  Richard Guenther  <rguenther@suse.de>
2752         PR tree-optimization/50444
2753         * tree-sra.c (build_ref_for_offset): Properly adjust the
2754         MEM_REF type for unaligned accesses.
2756 2012-01-27  Richard Guenther  <rguenther@suse.de>
2758         PR tree-optimization/50444
2759         * expr.c (mem_ref_refers_to_non_mem_p): New function.
2760         (expand_assignment): Use it.  Properly handle misaligned
2761         bases when expanding stores to component references.
2762         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
2763         refactor that case.
2765 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
2767         PR middle-end/51389
2768         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
2769         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
2770         * tree-data-ref.c (find_data_references_in_loop): Make static.
2771         (compute_all_dependences): Change return type to bool.  Bail out
2772         for too many datarefs in a loop.  Move the hunk resetting the data
2773         dependences vector from ...
2774         (compute_data_dependences_for_loop): ... here.  Account for
2775         compute_all_dependences returning false.
2776         (compute_data_dependences_for_bb): Likewise.
2777         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
2778         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
2780 2012-01-27  Richard Guenther  <rguenther@suse.de>
2782         PR middle-end/51959
2783         * expr.c (store_field): Use the alias-set of the scratch memory
2784         for storing to it.
2786 2012-01-27  Tom de Vries  <tom@codesourcery.com>
2788         PR tree-optimization/51990
2789         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2790         WITH_SIZE_EXPR.
2791         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
2793 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
2795         PR debug/52001
2796         * var-tracking.c (reverse_op): Don't add any reverse operation
2797         if V already has any constant locations.
2799 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
2801         * doc/invoke.texi: Correct usage of "command line" (noun)
2802         vs "command-line" (adjective) throughout.
2804 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
2806         * doc/invoke.texi (Language Independent Options): Move
2807         -Wcoverage-mismatch blurb from here....
2808         (Warning Options): ...to here.
2810 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
2812         * config/rs6000/rs6000.c (rs6000_option_override_internal):
2813         Set rs6000_always_hint to false for 476.
2815 2012-01-27  Matthias Klose  <doko@ubuntu.com>
2817         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
2818           system root.
2819         * incpath.c (add_standard_paths): Likewise.
2821 2012-01-27  Richard Henderson  <rth@redhat.com>
2823         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
2824         * config/m68k/sync.md (atomic_test_and_set): Rename from
2825         sync_test_and_setqi and adjust the operands.
2826         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
2827         and unconditionally enable.
2829 2012-01-27  Richard Henderson  <rth@redhat.com>
2831         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
2832         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
2833         (ldstub): Rename from ldstubqi.
2834         (ldstub<I24MODE>): Remove.
2836 2012-01-27  Richard Henderson  <rth@redhat.com>
2838         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
2839         * c-cppbuiltin.c (cpp_atomic_builtins): Define
2840         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
2841         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
2842         * doc/tm.texi: Rebuild.
2844 2012-01-27  Richard Henderson  <rth@redhat.com>
2846         * optabs.c (gen_atomic_test_and_set): Remove default.
2847         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
2849 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
2851         PR rtl-optimization/51978
2852         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
2853         (combine_reaching_defs): Likewise.
2854         (struct re_info): Remove.
2855         (add_removable_extension): Remove x and data arguments,
2856         add insn, insn_list and def_map.  Use the arguments directly
2857         instead of using struct re_info.
2858         (find_removable_extensions): Don't call add_removable_extension
2859         through note_stores, instead just call it with single_set
2860         result if non-NULL.
2861         (find_and_remove_re): Pass curr_cand->expr instead of
2862         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
2864 2012-01-26  Michael Matz  <matz@suse.de>
2866         PR tree-optimization/46590
2867         * cfgexpand.c: Revert last change (r183305).
2868         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
2869         regs.
2870         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
2871         checking for emptiness.
2873 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
2875         PR middle-end/51895
2876         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
2877         non-addressable non-BLKmode base correctly.
2879 2012-01-26  Michael Matz  <matz@suse.de>
2881         PR tree-optimization/48794
2882         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
2883         regions referenced from RESX/EH_DISPATCH.
2885 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2887         * config/s390/s390.h: Make BRANCH_COST an option.
2888         * config/s390/s390.opt: New option -mbranch-cost.
2890 2012-01-26  Richard Henderson  <rth@redhat.com>
2892         Revert 2012-01-24 change:
2893         * trans-mem.c (requires_barrier): Do not instrument thread local
2894         variables and emit save/restore for them.
2896 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
2898         PR middle-end/51986
2899         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
2900         for pat == 0.
2902 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
2904         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
2905         ASM_OPERANDS.
2907 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
2909         PR target/49868
2910         Rename __pgm to __flash.
2911         Rename __pgm1 to __flash1.
2912         Rename __pgm2 to __flash2.
2913         Rename __pgm3 to __flash3.
2914         Rename __pgm4 to __flash4.
2915         Rename __pgm5 to __flash5.
2916         Rename __pgmx to __memx.
2917         * doc/extend.texi (AVR Named Address Spaces)
2918         Rename address space names as indicated above.
2919         * config/avr/avr.c (avr_addrspace): Ditto.
2921         * config/avr/avr-protos.h
2922         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
2923         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
2924         * config/avr/predicates.md: Ditto.
2925         * config/avr/avr.c Ditto, and
2926         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
2927         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
2929         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
2930         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
2931         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
2932         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
2933         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
2934         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
2935         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
2936         * config/avr/avr.c: Ditto.
2937         * config/avr/avr.md: Ditto.
2939 2012-01-25  Jason Merrill  <jason@redhat.com>
2941         PR c++/51992
2942         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
2944 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
2946         PR tree-optimization/51987
2947         * tree-data-ref.c (get_references_in_stmt): Handle references in
2948         non-volatile GIMPLE_ASM.
2950 2012-01-25  Richard Guenther  <rguenther@suse.de>
2952         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
2953         bases are dereferenced.
2955 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
2957         PR rtl-optimization/48374
2958         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
2960 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
2962         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
2963         compute_data_dependences_for_loop returns false.
2964         * tree-parloops.c (loop_parallel_p): Likewise.
2966 2012-01-25  Richard Guenther  <rguenther@suse.de>
2968         * tree.h (get_pointer_alignment_1): Declare.
2969         * builtins.c (get_pointer_alignment_1): New function.
2970         (get_pointer_alignment): Use it.
2972 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2974         PR rtl-optimization/48308
2975         * combine.c (enum undo_kind): Add UNDO_LINKS.
2976         (struct undo): Add member l to other_contents and where.
2977         (do_SUBST_LINK): New.
2978         (SUBST_LINK): New.
2979         (try_combine): Handle LOG_LINKS for the dummy i1 case.
2980         (undo_all): Handle UNDO_LINKS.
2982 2012-01-25  Richard Henderson  <rth@redhat.com>
2984         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
2985         mem inputs.
2987 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2989         * optabs.c (gen_atomic_test_and_set): Use each argument.
2991 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2993         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
2994         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
2995         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
2996         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
2997         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
2998         TARGET_PAIRED_SINGLE_FLOAT.
3000 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
3002         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
3003         (in_struct, return_val): Remove MEM documentation.
3004         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
3005         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
3006         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
3007         and MEM_SCALAR.
3008         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3009         * cfgexpand.c (add_alias_set_conflicts): Likewise.
3010         * expr.c (store_field): Likewise.
3011         * function.c (assign_stack_temp_for_type): Likewise.
3012         * ifcvt.c (noce_try_cmove_arith): Likewise.
3013         * reload1.c (reload): Likewise.
3014         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
3015         (alpha_set_memflags): Likewise.
3016         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
3018 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
3020         * rtl.h (true_dependence, canon_true_dependence): Remove varies
3021         parameter.
3022         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
3023         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
3024         (true_dependence_1, true_dependence, canon_true_dependence): Remove
3025         varies parameter.
3026         * cselib.c (cselib_rtx_varies_p): Delete.
3027         (cselib_invalidate_mem): Update call to canon_true_dependence.
3028         * dse.c (record_store, check_mem_read_rtx): Likewise.
3029         (scan_reads_nospill): Likewise.
3030         * cse.c (check_dependence): Likewise.
3031         (cse_rtx_varies_p): Delete.
3032         * expr.c (safe_from_p): Update call to true_dependence.
3033         * ira.c (validate_equiv_mem_from_store): Likewise.
3034         (memref_referenced_p): Likewise.
3035         * postreload-gcse.c (find_mem_conflicts): Likewise.
3036         * sched-deps.c (sched_analyze_2): Likewise.
3037         * store-motion.c (load_kills_store): Likewise.
3038         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
3039         * gcse.c (mems_conflict_for_gcse_p): Likewise.
3040         (compute_transp): Update call to canon_true_dependence.
3042 2012-01-25  Richard Henderson  <rth@redhat.com>
3044         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
3045         (maybe_emit_atomic_test_and_set): New.
3046         (expand_sync_lock_test_and_set): Use it.
3047         (expand_atomic_test_and_set): Likewise.
3048         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
3049         the implementation; clarify implementation defined details.
3050         * doc/md.texi (atomic_test_and_set): Document.
3052 2012-01-25  Richard Henderson  <rth@redhat.com>
3054         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
3056 2012-01-25  Richard Henderson  <rth@redhat.com>
3058         PR target/51968
3059         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
3060         to effect no-op split.
3062 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
3064         PR lto/51698
3065         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
3066         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
3067         (BT_FN_VOID_PTR_INT_SIZE): New.
3068         (BT_FN_UINT_UINT_VAR): Remove.
3069         (BT_FN_UINT32_UINT32_VAR): New.
3070         (BT_FN_DOUBLE_VPTR): Remove.
3071         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
3073         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
3074         (_ITM_changeTransactionMode): Same.
3075         (_ITM_memmoveRtWt): Change return type to void.
3076         (_ITM_memcpyRtWt): Same.
3077         (_ITM_memsetW): Same.
3078         (_ITM_RaRD): Change types to double.
3079         (_ITM_RD): Same.
3080         (_ITM_RaWD): Same.
3081         (_ITM_RfWD): Same.
3083         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
3085 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
3086             Patrick Marlier  <patrick.marlier@gmail.com>
3088         * trans-mem.c (requires_barrier): Do not instrument thread local
3089         variables and emit save/restore for them.
3091 2012-01-24  Jason Merrill  <jason@redhat.com>
3093         PR c++/51812
3094         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
3095         output static aliases.
3097 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
3099         PR driver/47249
3100         * common.opt (-pie, -shared, pie, shared): Change from Common to
3101         Driver.
3102         * gcc.c (display_help): Display help for -pie and -shared.
3104 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
3106         PR target/49868
3107         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
3108         Remove note on size/offset limitation.
3109         (AVR Variable Attributes): Add example how to read data located
3110         with progmem.  Refer to named address spaces.
3111         * doc/invoke.texi (AVR Options): Fix typo.
3113 2012-01-24  Richard Guenther  <rguenther@suse.de>
3115         Forward-port to trunk
3116         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
3118         PR middle-end/45678
3119         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
3120         op0 isn't sufficiently aligned and there is movmisalignM
3121         insn for mode, use it to load op0 into a temporary register.
3123 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
3125         PR target/51957
3126         * target.def (const_not_ok_for_debug_p): New hook.
3127         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
3128         documentation.
3129         * doc/tm.texi: Regenerated.
3130         * dwarf2out.c (const_ok_for_output_1): If
3131         targetm.const_not_ok_for_debug_p returns true, fail.
3132         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
3133         function.
3134         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
3136 2012-01-23  Kai Tietz  <ktietz@redhat.com>
3138         PR target/51900
3139         * config/i386/predicates.md (symbolic_operand): Allow
3140         UNSPEC_PCREL as PIC expression for lea.
3141         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
3142         * config/i386/i386.c (ix86_delegitimize_address): Handle
3143         UNSPEC_PCREL for none-MEM, too.
3145 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
3147         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
3148         (ipa_tm_create_version_alias): Same.
3150 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
3152         PR libitm/51830
3153         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
3154         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
3156 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
3157             Patrick Marlier  <patrick.marlier@gmail.com>
3158             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3160         PR lto/51916
3161         * lto-wrapper.c (run_gcc): Pass the LTO section name to
3162         simple_object_start_read.
3164 2012-01-23  Richard Guenther  <rguenther@suse.de>
3167         PR tree-optimization/51895
3168         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
3169         parameter decomposition into BLKmode components.
3171 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
3173         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
3174         fake variables for restrict-qualified pointers whose pointed-to type
3175         contains a placeholder.
3177 2012-01-23  Richard Guenther  <rguenther@suse.de>
3179         PR tree-optimization/51949
3180         * ipa-split.c (execute_split_functions): Do not split malloc functions.
3182 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
3184         PR rtl-optimization/51933
3185         * ree.c (transform_ifelse): Return true right away if dstreg is
3186         already wider or equal to cand->mode.
3187         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
3188         (make_defs_and_copies_lists): Remove defs_list and copies_list
3189         arguments, add state argument, just truncate state->work_list
3190         instead of always allocating and freeing the vector.  Assert that
3191         get_defs succeeds instead of returning 2.  Changed return type to bool.
3192         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
3193         have ext_src_mode, see if it has been modified already with the
3194         right kind of extension and has been extended before from the
3195         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
3196         just return true.  Remember the original mode in state->modified array.
3197         (combine_reaching_defs): Add state argument.  Don't allocate and
3198         free here def_list, copied_list and vec vectors, instead just
3199         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
3200         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
3201         Add state variable, clear vectors in it, initialize state.modified
3202         if needed.  Free all the vectors at the end and state.modified too.
3203         Don't skip a candidate if the extension expression has been modified.
3205 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
3207         PR target/47096
3208         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
3209          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
3210         (extra_options) interix.opt -> i386/interix.opt"
3211         (extra_objs):Add winnt-stubs.o
3212         * configure.ac: Add interix to target_os .comm on PE check.
3213         * configure: Regenerate.
3214         * config/interix3.h: Delete and move bits to..
3215         * config/interix.h: Delete and move bits to..
3216         * config/i386/i386-interix3.h: Delete and move bits to..
3217         * config/i386/i386-interix.h: ..here.
3218         (TARGET_CPU_DEFAULT): Remove redefinition.
3219         (TARGET_ASM_CONSTRUCTOR): Undefine.
3220         (SUBTARGET_SWITCHES): Define for ms-bitfields.
3221         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
3222         (PTRDIFF_TYPE): Define.
3223         (LONG_DOUBLE_TYPE_SIZE): Define.
3224         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
3225         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3226         (TARGET_SECTION_TYPE_FLAGS): Define.
3227         (ASM_DECLARE_FUNCTION_NAME): Define.
3228         (ASM_OUTPUT_EXTERNAL): Define.
3229         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
3230         (ASM_OUTPUT_ALIGNED_BSS): Define.
3231         (PCC_BITFIELD_TYPE_MATTERS): Define.
3232         (USE_CONST_SECTION): Define.
3233         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
3234         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3235         (SUPPORTS_ONE_ONLY): Remove.
3236         (I386_PE_STRIP_ENCODING): Define.
3237         * config/interix.opt: Delete and move bits to..
3238         * config/i386/interix.opt: ..here. New.
3239         (mpe-aligned-commons): Add.
3240         * config/i386/t-interix: Add copyright header.
3241         (winnt-stubs.o): Add rule.
3243 2012-01-22  Jason Merrill  <jason@redhat.com>
3245         PR c++/51832
3246         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
3247         for extra name aliases.
3249 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3251         PR rtl-optimization/51924
3252         * ree.c (combine_set_extension): Improve debugging message.
3253         (combine_reaching_defs): Likewise.
3254         (get_defs): Rename confusingly named variable.
3255         (find_and_remove_re): Skip a candidate if the extension expression has
3256         been modified.
3258 2012-01-21  Robert Millan  <rmh@gnu.org>
3259             Gerald Pfeifer  <gerald@pfeifer.com>
3261         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
3262         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
3264 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
3266         PR tree-optimization/51914
3267         * tree-vect-stmts.c (vectorizable_conversion): For
3268         cvt_type && modifier == WIDEN, put temporary with cvt_type
3269         at the beginning of vec_dsts and set vec_dest to temporary
3270         with vectype_out.
3272 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
3274         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
3276 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
3278         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
3279         * config/rs6000/rs6000.c: Likewise.
3281 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
3283         PR target/51915
3284         * config/arm/arm.c (arm_count_output_move_double_insns): Call
3285         output_move_double on a copy of operands array.
3287 2012-01-20  Cary Coutant  <ccoutant@google.com>
3288             Dodji Seketeli  <dodji@redhat.com>
3290         PR debug/45682
3291         * dwarf2out.c (copy_declaration_context): Return ref to parent
3292         of declaration DIE, if necessary.
3293         (remove_child_or_replace_with_skeleton): Add new parameter; update
3294         caller.  Place skeleton DIE under parent DIE of original declaration.
3295         Move call to copy_declaration_context to here ...
3296         (break_out_comdat_types): ... from here.
3298 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3300         PR rtl-optimization/51856
3301         * reload.c (find_reloads_subreg_address): Set the address_reloaded
3302         flag to reloaded.
3304 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3306         PR target/51819
3307         * config/arm/arm.c (arm_print_operand): Correct output of alignment
3308         hints for neon loads and stores.
3310 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
3312         PR target/49868
3313         PR target/50887
3314         * doc/extend.texi (Named Address Spaces): Split into subsections.
3315         (AVR Named Address Spaces): New subsection.
3316         (M32C Named Address Spaces): New subsection.
3317         (RL78 Named Address Spaces): New subsection.
3318         (SPU Named Address Spaces): New subsection.
3319         (Variable Attributes): New anchor "AVR Variable Attributes".
3320         (AVR Variable Attributes): Rewrite and avoid wording
3321         "address space" in this context.
3322         * doc/invoke.texi (AVR Options): Rewrite and add documentation
3323         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
3324         (AVR Built-in Macros): New subsubsection therein.
3325         * doc/md.texi (AVR constraints): Remove "C04", "R".
3327 2012-01-20  Richard Guenther  <rguenther@suse.de>
3329         PR tree-optimization/51903
3330         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
3331         when removing stmts.
3333 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3335         PR target/50313
3336         * config/arm/arm.c (arm_load_pic_register): Use
3337         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
3338         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
3339         (arm_pic_static_addr): Likewise.
3340         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
3341         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
3342         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
3343         (pic_load_addr_unified): New.
3345 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
3347         PR target/51106
3348         * function.c (instantiate_virtual_regs_in_insn): Use
3349         delete_insn_and_edges when removing a wrong asm insn.
3351 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
3353         PR rtl-optimization/40761
3354         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
3355         Add new member loop_num.
3356         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
3357         (ira_build): Remove the parameter.
3359         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
3360         (ira.c): Do not build CFG loops for one region allocation.  Remove
3361         argument from ira_build call.
3363         * ira-build.c (init_loop_tree_node): New function.
3364         (create_loop_tree_nodes): Use it.  Separate the case when CFG
3365         loops are not built.
3366         (more_one_region_p): Check current_loops.
3367         (finish_loop_tree_nodes): Separate the case when CFG loops are not
3368         built.
3369         (add_loop_to_tree): Process loop equal to NULL too.
3370         (form_loop_tree): Separate the case when CFG loops are not built.
3371         Use explicitly number for the root.
3372         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
3373         an assertion.
3374         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
3375         instead of loop->num.
3376         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
3377         (mark_all_loops_for_removal): Ditto.
3378         (remove_unnecessary_regions): Separate the case when CFG loops
3379         are not built.
3380         (ira_build): Remove the parameter.  Use explicit number of regions
3381         when CFG loops are not built.
3383         * ira-color.c (print_loop_title): Separate the case for the root node.
3384         Use loop_num instead of loop->num.
3385         (move_spill_restore): Use loop_num instead of loop->num.
3387         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
3388         (change_loop): Ditto.
3389         (change_loop): Use loop_num instead of loop->num.
3391         * ira-lives.c (process_bb_node_lives): Ditto.
3393         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
3395         * ira-conflicts.c (print_allocno_conflicts): Ditto.
3397 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
3399         PR libmudflap/40778
3400         * tree-mudflap.c (mf_artificial): New function.
3401         (execute_mudflap_function_ops, execute_mudflap_function_decls,
3402         mx_register_decls, mudflap_enqueue_decl): Use it.
3404         PR target/51876
3405         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
3406         numbers in the insn pattern.
3408 2012-01-19  Michael Matz  <matz@suse.de>
3410         PR tree-optimization/46590
3411         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
3412         use it in remembering which conflicts we already created.
3413         (add_scope_conflicts): Adjust call to above, (de)allocate helper
3414         bitmap.
3416 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
3418         PR lto/51280
3419         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
3420         (merge_and_complain): Same.
3422 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
3424         PR bootstrap/50237
3425         * config/initfini-array.h: Guard content of the header
3426         with #ifdef HAVE_INITFINI_ARRAY.
3427         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
3428         Add initfini-array.h to tm_file here.
3429         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
3430         * config.gcc: Don't add initfini-array.h to tm_file here.
3431         * configure: Regenerated.
3433 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
3435         PR rtl-optimization/51505
3436         * df-problems.c (df_kill_notes): New parameter live. Update comment.
3437         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
3438         (df_note_bb_compute): Update the call to df_kill_notes.
3440 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
3442         * trans-mem.c (requires_barrier): Remove call to is_global_var.
3444 2012-01-18  Richard Guenther  <rguenther@suse.de>
3446         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
3447         of conversions to void *.
3449 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3450             Richard Sandiford  <rdsandiford@googlemail.com>
3452         PR middle-end/50325
3453         PR middle-end/51192
3454         * optabs.h (simplify_expand_binop): Declare.
3455         * optabs.c (simplify_expand_binop): Make global.
3456         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
3457         endian targets if the source cannot be exactly covered by word
3458         mode chunks.
3460 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
3462         PR bootstrap/51872
3463         * hard-reg-set.h (struct hard_reg_set_container): New type.
3464         * target.h (struct hard_reg_set_container): Forward declare.
3465         * target.def (set_up_by_prologue): New target hook.
3466         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
3467         * doc/tm.texi: Regenerated.
3468         * function.c (thread_prologue_and_epilogue_insns): Change
3469         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
3470         Call targetm.set_up_by_prologue on it.
3471         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
3472         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
3474 2012-01-17  Nick Clifton  <nickc@redhat.com>
3476         * config/rx/rx.c (rx_can_use_simple_return): New function.
3477         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
3478         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
3480 2012-01-17  Richard Guenther  <rguenther@suse.de>
3482         PR middle-end/51782
3483         * expr.c (expand_assignment): Take address-space information
3484         from the address operand of MEM_REF and TARGET_MEM_REF.
3485         (expand_expr_real_1): Likewise.
3487 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3489         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
3490         reload dump is requested.
3492 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
3494         PR other/51165
3495         * trans-mem.c (requires_barrier): Call may_be_aliased.
3497 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
3499         PR tree-optimization/51877
3500         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
3501         call arguments and fndecls compare equal, instead return false if they
3502         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
3503         both SSA_NAMEs that are valueized the same, or they satisfy
3504         operand_equal_p.
3506 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3508         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
3509         Solaris 11+.
3510         * configure: Regenerate.
3512 2012-01-16  Jan Hubicka  <jh@suse.cz>
3514         PR c/12245
3515         PR c++/14179
3516         * convert.c (convert_to_integer): Use fold_convert for
3517         converting an INTEGER_CST to integer type.
3519 2012-01-16  Jason Merrill  <jason@redhat.com>
3521         PR c++/14179
3522         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
3524 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
3526         PR bootstrap/51860
3527         * config/s390/s390.c (s390_chunkify_start): Don't skip
3528         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
3529         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
3530         If insn is followed by NOTE_INSN_VAR_LOCATION or
3531         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
3532         Don't use location of note insns.
3534         PR tree-optimization/51865
3535         * tree-inline.c (tree_function_versioning): Call remap_decl
3536         on DECL_RESULT whenever it has VOID_TYPE_P type.
3538 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
3540         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
3541         for calls to locally-binding MIPS16 functions if only the return
3542         type uses float regs.
3544 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
3545             Richard Sandiford  <rdsandiford@googlemail.com>
3547         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
3548         (SYMBOL_32_HIGH): Likewise.
3549         (mips_output_tls_reloc_directive): Declare.
3550         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
3551         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
3552         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
3553         (mips_lo_relocs, mips_hi_relocs): Make extern.
3554         (mips16_stub_function): Move up file.
3555         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
3556         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
3557         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
3558         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
3559         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
3560         (mips_get_tp): Add MIPS16 support.
3561         (mips_legitimize_tls_address): Remove MIPS16 sorry().
3562         Generalize DTPREL and TPREL handling.
3563         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
3564         Add MIPS16 TLS support.
3565         (mips_output_tls_reloc_directive): New function.
3566         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
3567         * config/mips/predicates.md (symbolic_operand_with_high)
3568         (tls_reloc_operand): New predicates.
3569         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
3570         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
3571         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
3572         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
3573         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
3574         (*tls_get_tp_mips16_call_<mode>): Likewise.
3576 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
3578         PR rtl-optimization/51821
3579         * recog.c (peep2_find_free_register): Determine clobbered registers
3580         from insn pattern.
3582 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
3584         PR target/50925
3585         * config/avr/avr-protos.h: Revert change of 2012-01-09.
3586         * config/avr/avr.c: Likewise.
3587         * config/avr/avr.h: Likewise.
3589 2012-01-13  Ian Lance Taylor  <iant@google.com>
3591         PR c++/50012
3592         * tree.h (TYPE_QUALS): Add cast to int.
3593         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
3595 2012-01-13  Ian Lance Taylor  <iant@google.com>
3597         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
3598         comparing param_index to VEC_length result.
3600 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
3602         * c-decl.c: Do not include tree-mudflap.h
3603         * tree-optimize.c: Likewise.
3604         * Makefile.in: Update dependencies.
3606 2012-01-13  Richard Guenther  <rguenther@suse.de>
3608         PR middle-end/8081
3609         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
3610         variable-sized result always use RSO.
3612 2012-01-12  DJ Delorie  <dj@redhat.com>
3614         * cfgexpand.c (convert_debug_memory_address): Allow any valid
3615         pointer type, not just the default pointer type.
3617 2012-01-09  Richard Henderson  <rth@redhat.com>
3618             Denis Chertykov  <chertykov@gmail.com>
3620         PR target/50925
3621         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
3622         * config/avr/avr.c (avr_can_eliminate): Simplify.
3623         (avr_initial_elimination_offset): Likewise.
3624         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
3625         (expand_epilogue): Likewise.
3626         (avr_legitimize_address): Gut.
3627         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
3628         (avr_hard_regno_nregs): New.
3629         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
3630         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
3631         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
3632         add soft frame pointer.
3633         (CALL_USED_REGISTERS): Likewise.
3634         (REG_CLASS_CONTENTS): Likewise.
3635         (REGISTER_NAMES): Likewise.
3636         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
3637         (HARD_FRAME_POINTER_REGNUM): New.
3638         (FRAME_POINTER_REGNUM): Use soft frame pointer.
3639         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
3640         remove the HARD_FRAME_POINTER self-elimination.
3642 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
3644         PR target/51756
3645         * config/avr/avr.c (avr_encode_section_info): Test for absence of
3646         DECL_EXTERNAL when checking for initializers of progmem variables.
3648 2012-01-12  Ira Rosen  <irar@il.ibm.com>
3650         PR tree-optimization/51799
3651         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
3652         that the last operation is a type demotion.
3654 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
3656         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
3657         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
3659 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
3661         PR bootstrap/51796
3662         * combine.c (distribute_notes): If i3 is a noreturn call,
3663         allow old_size to be equal to args_size and make sure the
3664         noreturn call gets REG_ARGS_SIZE note.
3665         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
3666         on noreturn calls even when the delta is 0.
3668 2012-01-11  Nathan Sidwell  <nathan@acm.org>
3670         * gcov.c (STRING_SIZE): Remove.
3671         (generate_results): Erase annotations for source files with no
3672         coverage information.
3673         (read_line): New.
3674         (output_lines): Use it.
3676 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3678         * gimple.h (gimplify_body): Remove first argument.
3679         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
3680         pointer set here, instead just pass DATA to walk_tree.
3681         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
3682         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
3683         (unvisit_body): Likewise, but with unmark_visited.
3684         (gimplify_body): Remove BODY_P argument and adjust.
3685         (gimplify_function_tree): Adjust call to gimplify_body.
3686         * omp-low.c (finalize_task_copyfn): Likewise.
3688 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3690         * tree.h (build_function_decl_skip_args): Add boolean parameter.
3691         (build_function_type_skip_args): Delete.
3692         * tree.c (build_function_type_skip_args): Make static and add
3693         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
3694         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
3695         pass it to build_function_type_skip_args.
3696         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
3697         (tree_function_versioning): Likewise.
3698         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
3699         build_function_decl_skip_args.
3700         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
3701         and pass it to build_function_decl_skip_args/tree_function_versioning.
3702         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
3703         * ipa-inline-transform.c (save_inline_function_body): Likewise.
3704         * trans-mem.c (ipa_tm_create_version): Likewise.
3705         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
3706         * tree-inline.c (declare_return_variable): Remove always-true test.
3707         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
3708         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
3709         * ipa-split.c (split_function): Skip the return value for the split
3710         part if it doesn't return.
3712 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3714         PR tree-optimization/49642
3715         * ipa-split.c (forbidden_dominators): New variable.
3716         (check_forbidden_calls): New function.
3717         (dominated_by_forbidden): Likewise.
3718         (consider_split): Check for forbidden dominators.
3719         (execute_split_functions): Initialize and free forbidden
3720         dominators info; call check_forbidden_calls.
3722 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3724         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
3726 2012-01-11  Nick Clifton  <nickc@redhat.com>
3728         * config/rx/rx.md (return): Define pattern.
3730 2012-01-11  Richard Guenther  <rguenther@suse.de>
3732         * doc/extend.texi (malloc attribute): Adjust according to
3733         implementation.
3735 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
3736             Patrick Marlier  <patrick.marlier@gmail.com>
3738         PR middle-end/51516
3739         * trans-mem.c (get_cg_data): Traverse aliases if requested.
3740         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
3741         (ipa_tm_note_irrevocable): Same.
3742         (ipa_tm_scan_irr_block): Same.
3743         (ipa_tm_decrement_clone_counts): Same.
3744         (ipa_tm_scan_irr_function): Same.
3745         (ipa_tm_create_version_alias): Same.
3746         (ipa_tm_create_version): Same.
3747         (ipa_tm_transform_calls_redirect): Same.
3748         (ipa_tm_transform_calls): Same.
3749         (ipa_tm_transform_transaction): Same.
3750         (ipa_tm_execute): Same.
3752 2012-01-10  Richard Guenther  <rguenther@suse.de>
3754         PR middle-end/51806
3755         * opts.c (common_handle_option): Handle -Werror.
3757 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
3759         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
3760         operand number.
3762 2012-01-10  Jason Merrill  <jason@redhat.com>
3764         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
3765         information.
3767 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3769         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
3770         supports R_386_TLS_GD_PLT reloc.
3771         (gcc_cv_as_ix86_tlsldmplt): Check if linker
3772         supports R_386_TLS_LDM_PLT reloc.
3773         * configure: Regenerate.
3774         * config.in: Regenerate.
3776 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
3778         PR target/49868
3779         Extend __pgmx semantics to linearize memory.
3780         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
3781         determine if code comes inline or from libgcc.
3782         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
3783         (movmem_qi, movmem_qi): Set constraint #2 to "n".
3784         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
3785         (movmemx_qi, movmemx_hi): New insns.
3786         (xload_<mode>_libgcc): Rewrite to new insn condition.
3787         (xload_<mode>): Remove insns.
3788         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
3789         cases that don't satisfy avr_xload_libgcc_p().
3790         (avr_addr_space_convert): Allow converting in any direction.
3791         (avr_addr_space_subset_p): Return always true.
3792         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
3793         (avr_emit_movmemhi): Ditto.
3794         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
3795         (avr_out_movmem): Ditto.
3796         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
3797         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
3798         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
3799         (avr_encode_section_info): Encode 'progmem' in symbol flags.
3800         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
3802 2012-01-10  Richard Guenther  <rguenther@suse.de>
3804         PR tree-optimization/50913
3805         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
3806         Require data-refs to be representable by Graphite with respect
3807         to any loop nest.
3809 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
3811         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
3812         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
3814 2012-01-10  Tom de Vries  <tom@codesourcery.com>
3816         PR rtl-optimization/51271
3817         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
3818         handling annulled branch.
3820 2012-01-10  Richard Henderson  <rth@redhat.com>
3822         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
3823         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
3824         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
3825         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
3826         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
3827         arm_expand_vec_perm_const): New.
3828         * config/arm/arm-protos.h: Update.
3829         * config/arm/neon.md (UNSPEC_VCONCAT): New.
3830         (*neon_vswp<VDQX>): New.
3831         (neon_vcombine<VDX>): Use neon_split_vcombine.
3832         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
3833         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
3834         (vec_perm<VE>): New.
3836 2012-01-10  Richard Henderson  <rth@redhat.com>
3838         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
3839         use it if reload_completed.
3840         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
3841         arm_output_asm_insn, arm_process_output_memory_barrier,
3842         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
3843         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
3844         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
3845         arm_process_output_sync_insn, arm_output_sync_insn,
3846         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
3847         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
3848         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
3849         (emit_unlikely_jump): New.
3850         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
3851         (arm_split_atomic_op): New.
3852         * config/arm/arm-protos.h: Update.
3853         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
3854         (struct arm_sync_generator): Remove.
3855         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
3856         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
3857         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
3858         (VUNSPEC_LL, VUNSPEC_SC): New.
3859         (sync_result, sync_memory, sync_required_value, sync_new_value,
3860         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
3861         (attr length): Don't use arm_sync_loop_insns.
3862         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
3863         (movsfcc, movdfcc): Likewise.
3864         * config/arm/constraints.md (Ua): New.
3865         * config/arm/prediates.md (mem_noofs_operand): New.
3866         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
3867         (sync_clobber, sync_t2_reqd): Remove.
3868         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
3869         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
3870         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
3871         (arm_sync_compare_and_swap<SIDI>): Remove.
3872         (arm_sync_compare_and_swap<NARROW>): Remove.
3873         (arm_sync_lock_test_and_set<SIDI>): Remove.
3874         (arm_sync_lock_test_and_set<NARROW>): Remove.
3875         (arm_sync_new_<syncop><SIDI>): Remove.
3876         (arm_sync_new_<syncop><NARROW>): Remove.
3877         (arm_sync_new_nand<SIDI>): Remove.
3878         (arm_sync_new_nand<NARROW>): Remove.
3879         (arm_sync_old_<syncop><SIDI>): Remove.
3880         (arm_sync_old_<syncop><NARROW>): Remove.
3881         (arm_sync_old_nand<SIDI>): Remove.
3882         (arm_sync_old_nand<NARROW>): Remove.
3883         (*memory_barrier): Merge arm_output_memory_barrier.
3884         (atomic_compare_and_swap<QHSD>): New.
3885         (atomic_compare_and_swap<NARROW>_1): New.
3886         (atomic_compare_and_swap<SIDI>_1): New.
3887         (atomic_exchange<QHSD>): New.
3888         (cas_cmp_operand, cas_cmp_str): New.
3889         (atomic_op_operand, atomic_op_str): New.
3890         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
3891         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
3892         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
3893         (arm_load_exclusive<NARROW>): New.
3894         (arm_load_exclusivesi, arm_load_exclusivedi): New.
3895         (arm_store_exclusive<QHSD>): New.
3897 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3899         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
3900         reload patterns if -mvsx-scalar-memory.
3902         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
3903         generated, even -mno-vsx-scalar-double was used.
3904         (vsx_xscvdpsp_scalar): Likewise.
3905         (vsx_xscvspdp_scalar2): Likewise.
3907 2012-01-09  Tom de Vries  <tom@codesourcery.com>
3908             Andrew Pinski  <apinski@cavium.com>
3910         PR debug/51471
3911         * reorg.c (fill_slots_from_thread): Don't speculate
3912         frame-related insns.
3914 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
3916         * sched-int.h (bb_note): Move to...
3917         * basic-block.h: ...here.
3918         * haifa-sched.c (bb_note): Move to...
3919         * cfgrtl.c: ...here.
3920         * function.c (next_block_for_reg): New function.
3921         (move_insn_for_shrink_wrap): Likewise.
3922         (prepare_shrink_wrap): Rewrite to use the above.
3924 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
3926         * gimple.c (is_gimple_non_addressable): Remove.
3927         * gimple.h: Remove is_gimple_non_addressable.
3928         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
3929         is_gimple_non_addressable.
3930         * trans-mem.c (expand_assign_tm): Same.
3932 2012-01-09  Richard Guenther  <rguenther@suse.de>
3934         PR tree-optimization/51775
3935         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
3936         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
3938 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3940         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
3941         tuning parameters.
3942         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
3944 2012-01-09  Richard Guenther  <rguenther@suse.de>
3946         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
3948 2012-01-08  Jan Hubicka  <jh@suse.cz>
3950         PR tree-optimize/51680
3951         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
3952         on when known_vals needs to be computed; cleanup.
3954 2012-01-08  Jan Hubicka  <jh@suse.cz>
3956         PR tree-optimize/51694
3957         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
3959 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
3961         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
3962         for -std=c++98 and -std=c++11 too.
3964 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
3966         * cfgloop.c (cancel_loop): Add free() of bbs array.
3968 2012-01-07  Jan Hubicka  <jh@suse.cz>
3970         PR tree-optimization/51600
3971         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
3972         that benefits small functions.
3974 2012-01-07  Jan Hubicka  <jh@suse.cz>
3976         * ipa-inline.c (want_inline_small_function_p): Fix formating.
3978 2012-01-07  Jan Hubicka  <jh@suse.cz>
3980         PR tree-optimization/51680
3981         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
3982         whose inlining reduce unit size.
3984 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
3986         PR bootstrap/51725
3987         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
3988         Add canonical node to containing_mem chain after the non-canonical
3989         one, even if there weren't any locs to propagate.
3990         (remove_useless_values): Keep only canonical values.
3991         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
3992         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
3993         canonicalize mem_chain elements that are not discarded.
3995 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
3997         PR target/47333
3998         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
3999         before emitting functions.
4001         PR gcov-profile/50127
4002         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
4003         clear_aux_for_blocks.
4005 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
4007         PR debug/51746
4008         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
4010 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
4012         * c-decl.c (ext_block): Moved up.
4013         (collect_all_refs, for_each_global_decl): Take ext_block into account.
4015 2012-01-06  Han Shen  <shenhan@google.com>
4017         Translate built-in include paths for sysroot.
4018         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
4019         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
4021         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
4022         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
4024         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
4025         control whether sysroot should be prepended to gxx include dir.
4027         * configure: Regenerate.
4029 2012-01-06  Torvald Riegel  <triegel@redhat.com>
4031         PR rtl-optimization/51771
4032         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
4033         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
4035 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4037         PR tree-optimization/51315
4038         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
4039         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
4041 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
4043         PR target/51681
4044         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
4045         for shrp pattern.  Correctly handle and fixup shift variable.
4046         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
4048 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
4050         PR debug/51762
4051         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
4052         note when !ACCUMULATE_OUTGOING_ARGS.
4054 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4056         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
4057         condition.
4058         (extract_range_from_unary_expr_1): Avoid useless computations.
4060 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
4062         PR rtl-optimization/51767
4063         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
4064         of jump_block and add an extra edge for degenerated asm gotos.
4066         PR middle-end/51768
4067         * stmt.c (check_unique_operand_names): Don't ICE during error
4068         reporting if i is from labels chain.
4070         PR middle-end/44777
4071         * profile.c (branch_prob): Split bbs that have exit edge
4072         and need a fake entry edge too.
4074 2012-01-05  Jan Hubicka  <jh@suse.cz>
4076         PR middle-end/49710
4077         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
4078         unlooping loops.
4080 2012-01-05  Richard Guenther  <rguenther@suse.de>
4082         PR lto/50490
4083         * tree-streamer-out.c (write_ts_optimization): New function.
4084         (streamer_write_tree_body): Call it.
4085         * tree-streamer-in.c (lto_input_ts_optimization): New function.
4086         (streamer_read_tree_body): Call it.
4087         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
4089 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
4091         PR middle-end/51761
4092         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
4093         * gimplify.c (gimplify_cleanup_point_expr): Save and set
4094         in_cleanup_point_expr before gimplify_stmt call and restore it
4095         afterwards.
4096         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
4097         in_cleanup_point_expr is false.
4099 2012-01-05  Richard Guenther  <rguenther@suse.de>
4101         PR middle-end/51764
4102         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
4103         to c.opt.
4104         * toplev.c (process_options): Reject combining mudflap and LTO.
4105         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
4107 2012-01-05  Richard Guenther  <rguenther@suse.de>
4109         PR tree-optimization/51760
4110         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
4111         not VARYING.
4112         (bit_value_unop): Handle UNDEFINED operands.
4113         (bit_value_binop): Likewise.
4115 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
4117         * config/avr/avr.c (avr_replace_prefix): Remove.
4118         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
4119         (avr_asm_function_rodata_section): Ditto.
4120         (avr_asm_select_section): Ditto.
4122 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4124         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
4125         insertion.
4127 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
4129         PR bootstrap/51648
4130         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
4131         calls that have any non-fake successor edges.
4133         PR debug/51746
4134         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
4136 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4138         PR tree-optimization/51624
4139         * tree-sra.c (build_ref_for_model): When replicating a chain of
4140         COMPONENT_REFs, stop as soon as the offset would become negative.
4142 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
4144         PR debug/51695
4145         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
4146         in .debug_loc on the floor.
4148 2012-01-04  Andrew Pinski  <apinski@cavium.com>
4150         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
4152 2012-01-04  Andrew Pinski  <apinski@cavium.com>
4153             Adam Nemet  <anemet@caviumnetworks.com>
4155         * config/mips/mips.md (size): Add SI and DI.
4156         (SIZE): New mode attribute.
4157         (U): New code attribute.
4158         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
4159         (mips_lbux_<mode>): Delete.
4160         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
4161         (mips_lhx): Use gen_mips_lhx_extsi.
4162         (mips_lhx_<mode>): Delete.
4163         (mips_lwx): Delete.
4164         (mips_l<size>x): New expand.
4165         (mips_lwx_<mode>): Delete.
4166         (mips_l<GPR:size>x_<P:mode>): New pattern.
4167         (*mips_lw<u>x_<P:mode>_ext): Likewise.
4168         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
4169         * config/mips/mips.c (mips_lx_address_p): New function.
4170         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
4171         (dsp64): New availability predicate.
4172         (mips_builtins): Add an entry for __builtin_mips_ldx.
4173         * config/mips/mips.h (ISA_HAS_LBX): New define.
4174         (ISA_HAS_LBUX): Likewise.
4175         (ISA_HAS_LHX): Likewise.
4176         (ISA_HAS_LHUX): Likewise.
4177         (ISA_HAS_LWX): Likewise.
4178         (ISA_HAS_LWUX): Likewise.
4179         (ISA_HAS_LDX): Likewise.
4180         * doc/extend.texi (__builtin_mips_ldx): Document.
4182 2012-01-04  Tristan Gingold  <gingold@adacore.com>
4184         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
4185         when long pointers are used.
4186         * config.build (*-*-*vms*): Handle all OpenVMS targets.
4187         (alpha64-dec-*vms*, alpha*-dec-*vms*)
4188         (ia64-hp-*vms*): Remove.
4189         * config/vms/xm-vms64.h: Delete.
4191 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
4193         PR middle-end/51472
4194         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
4196 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
4198         * opts.c (finish_options): Remove duplicate sorry.
4200 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
4202         PR middle-end/51696
4203         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
4204         correctly.
4206 2012-01-04  Richard Guenther  <rguenther@suse.de>
4208         PR middle-end/51750
4209         * tree.c (size_low_cst): New function.
4210         * tree.h (size_low_cst): Declare.
4211         * fold-const.c (fold_comparison): Use it to extract the low
4212         part of the POINTER_PLUS_EXPR offset.
4214 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
4216         Fix clearing ZERO_REG
4217         * config/avr/avr.md (cc): Add alternative "ldi".
4218         (movqi_insn): Use it in cc attribute.
4219         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
4220         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
4221         (output_reload_insisf): Use ZERO_REG to pre-clear register.
4223 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4225         * configure: Regenerate.
4227 2012-01-04  Richard Guenther  <rguenther@suse.de>
4229         PR tree-optimization/49651
4230         * tree-ssa-structalias.c (type_can_have_subvars): New function.
4231         (var_can_have_subvars): Use it.
4232         (get_constraint_for_1): Only consider subfields if there can be any.
4234 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
4236         PR bootstrap/51725
4237         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
4238         to its new canonical_cselib_val and the cselib_val was in
4239         first_containing_mem chain, but the canonical_cselib_val was not,
4240         add the latter into the chain.
4241         (cselib_invalidate_mem): Compare canonical_cselib_val of
4242         addr_list chain elt with v.
4244         PR pch/51722
4245         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
4246         dwarf2out_undef): Allocate e.info using ggc_strdup instead
4247         of xstrdup.
4248         (output_macinfo_op): Don't ggc_strdup fd->filename.
4249         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
4250         then ggc_strdup it.  Don't free inc->info or cur->info.
4251         (output_macinfo): Don't free ref->info or file->info.
4253 2012-01-03  Ira Rosen  <irar@il.ibm.com>
4255         PR tree-optimization/51269
4256         * tree-vect-loop-manip.c (set_prologue_iterations): Make
4257         first_niters a pointer.
4258         (slpeel_tree_peel_loop_to_edge): Likewise.
4259         (vect_do_peeling_for_loop_bound): Update call to
4260         slpeel_tree_peel_loop_to_edge.
4261         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
4262         here.  Remove it from the parameters list.
4263         (vect_do_peeling_for_alignment): Update calls and compute
4264         wide_prolog_niters.
4266 2012-01-03  Richard Guenther  <rguenther@suse.de>
4268         PR tree-optimization/51070
4269         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4270         Properly handle calls.
4272 2012-01-03  Richard Guenther  <rguenther@suse.de>
4274         PR tree-optimization/51692
4275         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
4276         the LHS of allocation stmts.
4278 2012-01-03  Olivier Hainque  <hainque@adacore.com>
4280         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
4282 2012-01-03  Olivier Hainque  <hainque@adacore.com>
4284         * collect2.c (main): In AIX specific computations for vector
4285         insertions, use CONST_CAST2 to cast from char ** to const char **.
4287 2012-01-03  Richard Guenther  <rguenther@suse.de>
4289         PR debug/51650
4290         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
4291         the context of a limbo DIE when it does not already exist.
4293 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
4295         PR tree-optimization/51719
4296         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
4297         but direct call is, clear direct call's lhs and don't add fallthrough
4298         edge from dcall_bb to join_bb and PHIs.
4300 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4302         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
4303         the instructions emitted by the pattern.
4304         ("*TDC_insn_<mode>"): Add comment.
4306 2012-01-03  Richard Guenther  <rguenther@suse.de>
4308         PR middle-end/51730
4309         * fold-const.c (fold_comparison): Properly canonicalize
4310         tree offset and HOST_WIDE_INT bit position.
4312 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
4314         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
4315         operands for extzv pattern.
4317 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
4319         PR bootstrap/51725
4320         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
4321         on mem_elt first.
4323 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
4325         * doc/invoke.texi (-flto and related options): Copy-edit.
4327 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4329         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
4331 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
4333         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
4334         New patterns.
4336 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4338         * expr.h (move_by_pieces_ninsns): Declare.
4339         * expr.c (move_by_pieces_ninsns): Make external.
4340         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
4341         (mips_store_by_pieces_p): Likewise.
4342         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
4343         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
4344         * config/mips/mips.c (mips_move_by_pieces_p): New function.
4345         (mips_store_by_pieces_p): Likewise.
4347 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
4349         * passes.c (register_one_dump_file): Free full_name.
4351         * reload1.c (reload): Don't allocate reg_max_ref_width here.
4352         (calculate_elim_costs_all_insns): Free offsets_at and
4353         offsets_known_at at the end and clear the pointers.
4355 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4357         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
4358         this option introduced in r180739.
4360 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4362         PR target/51345
4363         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
4364         (tmake_file target=avr): Add avr/t-multilib.
4366         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
4367         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
4368         * config/avr/genmultilib.awk: New file.
4369         * config/avr/t-multilib: New auto-generated file.
4370         * config/avr/multilib.h: New auto-generated file.
4371         * config/avr/t-avr (AVR_MCUS): New variable.
4372         (genopt.sh): Use it.
4373         (s-mlib): Depend on t-multilib.
4374         (t-multilib, multilib.h): New dependencies.
4375         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
4376         (MULTILIB_OPTIONS): Remove.
4377         (MULTILIB_MATCHES): Remove.
4378         (MULTILIB_DIRNAMES): Remove.
4379         (MULTILIB_EXCEPTIONS): Remove:
4380         * config/avr/genopt.sh: Don't use hard coded file name;
4381         pass AVR_MCUS from t-avr instead.
4383 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4385         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
4387 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4389         Implement light-weight DImode support.
4390         * config/avr/avr-dimode.md: New file.
4391         * config/avr/avr.md: Include it.
4392         (adjust_len): Add plus64, compare64.
4393         (HIDI): Remove code iterator.
4394         (code_stdname): New code attribute.
4395         (rotx, rotsmode): Remove DI.
4396         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
4397         as code iterator.
4398         * config/avr/avr-protos.h (avr_have_dimode): New.
4399         (avr_out_plus64, avr_out_compare64): New.
4400         * config/avr/avr.c (avr_out_compare): Handle DImode.
4401         (avr_have_dimode): New variable definition and initialization.
4402         (avr_out_compare64, avr_out_plus64): New functions.
4403         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
4404         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
4405         (avr_compare_pattern): Skip DImode comparisons.
4407 2012-01-02  Revital Eres  <revital.eres@linaro.org>
4409         * ddg.c (def_has_ccmode_p): New function.
4410         (add_cross_iteration_register_deps,
4411         create_ddg_dep_from_intra_loop_link): Call it.
4413 2012-01-02  Richard Guenther  <rguenther@suse.de>
4415         PR other/51679
4416         * invoke.texi (fassociative-math): Remove spurious paranthesis.
4418 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
4420         * gcc.c (process_command): Update copyright notice dates.
4421         * gcov.c (print_version): Likewise.
4422         * gcov-dump.c (print_version): Likewise.
4423         * mips-tfile.c (main): Likewise.
4424         * mips-tdump.c (main): Likewise.
4426 2012-01-01  Ira Rosen  <irar@il.ibm.com>
4428         PR tree-optimization/51704
4429         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
4430         a use is inside the basic block or loop before accessing its vect info.
4432 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
4434         PR rtl-optimization/51069
4435         * cfgloopmanip.c (remove_path): Removing path making irreducible
4436         region unconditional makes BB part of the region.
4438 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
4440         PR tree-optimization/51683
4441         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
4442         calls with side-effects.
4443         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4445 Copyright (C) 2012 Free Software Foundation, Inc.
4447 Copying and distribution of this file, with or without modification,
4448 are permitted in any medium without royalty provided the copyright
4449 notice and this notice are preserved.