* ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
[official-gcc.git] / gcc / ChangeLog
blob106872fc15ced5da1c2b9165f41f562bc4b5989a
1 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
3         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
5 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
7         PR debug/53682
8         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
10 2012-06-21  Meador Inge  <meadori@codesourcery.com>
12         PR c/53702
13         * c-decl.c (c_push_function_context): Restore the behavior to reuse
14         the language function allocated for -Wunused-local-typedefs.
15         (c_pop_function_context): If necessary, clear the language function
16         created in c_push_function_context.  Always clear out the
17         x_cur_stmt_list field of the restored language function.
19 2012-06-21   Sterling Augustine  <saugustine@google.com>
20         Cary Coutant  <ccoutant@google.com>
22         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
23         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
24         (comdat_type_struct): New field 'skeleton_die'.
25         (breakout_comdat_types): Update it.
26         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
27         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
28         (add_pubname_string): Call want_pubnames.
29         (add_pubtype): Rework logic for calculating type name.  Call
30         is_namespace_die.  Call want_pubnames.
31         (output_pubnames): Move conditional logic deciding when to produce the
32         section from dwarf2out_finish.  Use new skeleton_die field.
33         (base_type_die): Call add_pubtype.
34         (gen_enumeration_type_die): Unconditionally call add_pubtype.
35         (gen_subprogram_die): Adjust calls to add_pubname.
36         (gen_namespace_die): Call add_pubname_string.
37         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
38         produce pubnames and pubtypes sections to output_pubnames.
39         (common.opt): New option '-gpubnames'.
40         (invoke.texi): Document it.
42 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
44         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
46 2012-06-21  Michael Matz  <matz@suse.de>
48         PR middle-end/53688
49         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
50         with correct size.
52 2012-06-21  Richard Guenther  <rguenther@suse.de>
54         * tree-inline.c (estimate_num_insns): Estimate call cost for
55         tailcalls properly.
57 2012-06-20  RĂ¼diger Sonderfeld  <ruediger@c-plusplus.de>
59         * tree.h (DECL_SOURCE_COLUMN): New accessor.
61 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
63         * config/i386/i386.md (SINCOS): New int iterator.
64         (sincos): New int attribute.
65         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
66         SINCOS int iterator.
67         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
68         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
70 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
72         * config/i386/i386.md (RDFSGSBASE): New int iterator.
73         (WRFSGSBASE): Ditto.
74         (fsgs): New int attribute.
75         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
76         RDFSGSBASE int iterator.
77         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
78         WRFSGSBASE int iterator.
80 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
82         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
83         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
84         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
85         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
86         int iterator.
88 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
90         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
92 2012-06-20  Richard Guenther  <rguenther@suse.de>
94         PR tree-optimization/30318
95         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
96         constants here.
97         (range_int_cst_singleton_p): But explicitely here.
98         (zero_nonzero_bits_from_vr): And here.
99         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
100         to cover all cases we can perform arbitrary precision
101         arithmetic with double-ints.
102         (intersect_ranges): Handle adjacent anti-ranges.
104 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
106         * config/i386/i386.md (rounding_insn): New int attribute.
107         (<rounding_insn>xf2): Macroize insn from
108         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
109         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
111 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
113         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
114         (ieee_maxmin): New int attribute.
115         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
116         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
118 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
120         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
121         * config/arm/arm.c: Do not include c-pragma.h.
122         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
123         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
124         to arm_emit_eabi_attribute.
125         * arm-c.c: Do not include output.h.
126         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
127         call to arm_emit_eabi_attribute.
128         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
130 2012-06-20  Richard Guenther  <rguenther@suse.de>
132         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
133         Allow adjusting alignment of user-aligned decls again.
135 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
137         * config/rl78/rl78-c.c: Remove unnecessary includes.
139 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
141         * config/cris/cris.c: Include cgraph.h.
142         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
144 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
146         * emit-rtl.c (need_atomic_barrier_p): New function.
147         * emit-rtl.h (need_atomic_barrier_p): Declare it.
148         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
149         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
150         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
151         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
152         (mips_process_sync_loop): Use generic version instead.
154 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
156         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
157         it is used.
159 2012-06-19  Tom de Vries  <vries@codesourcery.com>
160             Maxim Kuvyrkov  <maxim@codesourcery.com>
162         * config/mips/constraints.md (ZR): New constraint.
163         * config/mips/predicates.md (mem_noofs_operand): New predicate.
164         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
165         * config/mips/mips.h (TARGET_XLP): Define.
166         (TARGET_SYNC_AFTER_SC): Update.
167         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
168         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
169         XLP-specific swap and ldadd patterns.
170         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
172 2012-06-19  Tom de Vries  <vries@codesourcery.com>
173             Maxim Kuvyrkov  <maxim@codesourcery.com>
175         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
176         (mips_emit_post_atomic_barrier_p): New static functions.
177         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
178         accordance with memory model semantics.  Add return of CMP result for
179         compare_and_swap.
180         * config/mips/mips.md: Update comment.
181         (sync_cmp): New attribute.
182         (sync_memmodel): New attribute replacing sync_release_barrier.
183         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
184         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
185         (sync_lock_test_and_set, test_and_set_12): Update.
186         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
187         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
189 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
191         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
192         mov_si<mode>_e500_subreg0.
193         (*mov_si<mode>_e500_subreg0_elf_low)
194         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
196 2012-06-19  Richard Henderson  <rth@redhat.com>
198         * config/alpha/alpha.c: Include params.h.
199         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
200         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
202 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
204         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
205         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
206         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
207         Remove.
208         * doc/tm.texi: Regenerate.
209         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
210         .objc_class_name_*.
211         * config/darwin-c.c: Include target.h.
212         (darwin_objc_declare_unresolved_class_reference): New function.
213         (darwin_objc_declare_class_definition): New function.
214         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
215         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
217 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
219         * target.def (output_ident): New hook.
220         * targhooks.h (default_asm_output_ident_directive): Add prototype.
221         * varasm.c (assemble_asm): Only prefix a tab if the string does not
222         already start with one.
223         (default_asm_output_ident_directive): New function to emit
224         .ident as a top-level asm node while parsing, or directly to
225         asm_out_file after parsing.
226         * toplev.c (compile_file): Print a GCC .ident with
227         targetm.asm_out.output_ident.
228         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
229         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
230         * doc/tm.texi: Update.
232         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
233         (TARGET_ASM_OUTPUT_IDENT): Define.
234         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
235         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
236         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
237         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
238         (TARGET_ASM_OUTPUT_IDENT): Define.
239         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
240         (TARGET_ASM_OUTPUT_IDENT): Define.
242         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
243         * config/cris/cris.c (cris_asm_output_ident): New function.
244         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
246         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
247         Add prototype.
248         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
249         (microblaze_asm_output_ident): Rewrite to work similar to
250         default_asm_output_ident_directive for front-end .idents.
251         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
252         (TARGET_ASM_OUTPUT_IDENT): Define.
254         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
255         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
257         * config/rx/rx.c: Include cgraph.h for add_asm_node.
258         (rx_asm_output_ident): New function, similar to
259         default_asm_output_ident_directive, but handle AS100 syntax also, so
260         that #ident also works for rx in AS100 syntax.
261         (TARGET_ASM_OUTPUT_IDENT): Define.
262         * config/rx/rx.h (IDENT_ASM_OP): Remove.
264         * Makefile.in: Fix dependencies for c-family/c-lex.o.
266 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
268         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
269         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
270         (ROUNDING): Ditto.
271         (*fist<mode>2_<rounding>_1): Macroize insn from
272         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
273         (fistdi2_<rounding>): Macroize insn from
274         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
275         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
276         corresponding splitters from fistdi2_{floor,ceil} and corresponding
277         splitters using FIST_ROUNDING int iterator.
278         (fist<mode>2_<rounding>): Macroize insn from
279         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
280         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
281         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
282         splitters using FIST_ROUNDING int iterator.
283         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
284         using FIST_ROUNDING int iterator.
286 2012-06-19  Richard Henderson  <rth@redhat.com>
288         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
289         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
290         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
291         * config/i386/sse.md (sse2_mulv4si3): Delete.
292         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
293         nonimmediate_or_const_vector_operand.
295 2012-06-19  Richard Henderson  <rth@redhat.com>
297         * expmed.c (struct init_expmed_rtl): Split ...
298         (init_expmed_one_mode): ... out of ...
299         (init_expmed): ... here.  Initialize integer vector modes also.
300         (synth_mult): Handle integer vector modes.
301         (choose_mult_variant): Likewise.
302         (expand_mult_const): Likewise.
303         (expand_mult): Likewise.
304         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
306 2012-06-19  Richard Henderson  <rth@redhat.com>
308         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
309         integral vector modes.
311 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
313         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
314         (rounding): New int attribute.
315         (ROUNDING): Ditto.
316         (frndintxf2_<rounding>): Macroize insn from
317         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
318         (frndintxf2_<rounding>_i387): Macroize insn from
319         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
321 2012-06-19  Richard Guenther  <rguenther@suse.de>
323         * tree-vrp.c (union_ranges): New function.
324         (vrp_meet_1): Use union_ranges.
325         (vrp_meet): Dump what we union and call vrp_meet_1.
327 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
329         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
330         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
331         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
332         (attr write_conflict, attr core_cycles): Update.
333         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
335 2012-06-19  Richard Guenther  <rguenther@suse.de>
337         * tree-vrp.c (intersect_ranges): Handle more cases.
338         (vrp_intersect_ranges): Dump what we intersect and call ...
339         (vrp_intersect_ranges_1): ... this.
341 2012-06-19  Richard Guenther  <rguenther@suse.de>
343         PR tree-optimization/53708
344         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
345         user-supplied alignment and alignment of decls with the used
346         attribute.
348 2012-06-18  Lawrence Crowl  <crowl@google.com>
350         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
351         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
352         (TV_PHASE_STREAM_IN): New.
353         (TV_PHASE_STREAM_OUT): New.
354         * timevar.c (validate_phases): New.
355         (timevar_print): Call validate_phases.
356         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
357         to TV_PHASE_OPT_GEN.
358         * langhooks.c (write_global_declarations): Rename use of
359         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
360         TV_PHASE_CHECK_DBGINFO.
361         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
362         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
363         lang_hooks.decls.final_write_globals.
365 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
367         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
369 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
371         PR target/53712
372         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
373         (*sse4_2_pcmpistr_unaligned): New.
375 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
376             Sameera Deshpande  <sameera.deshpande@arm.com>
377             Greta Yorsh  <greta.yorsh@arm.com>
379         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
380         * config/arm/arm.c (print_multi_reg): Remove.
381         (vfp_output_fldmd): Likewise.
382         (arm_output_epilogue): Likewise.
383         * config/arm/arm.md (epilogue_insns): Update condition and code.
385 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
386             Sameera Deshpande  <sameera.deshpande@arm.com>
387             Greta Yorsh  <greta.yorsh@arm.com>
389         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
390         * config/arm/arm.c (thumb2_expand_return): New function.
391         * config/arm/arm.md (return): Update condition and code.
393 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
394             Sameera Deshpande  <sameera.deshpande@arm.com>
395             Greta Yorsh  <greta.yorsh@arm.com>
397         * config/arm/arm-protos.h (output_return_instruction): New parameter
398         and int to bool change of parameter types.
399         * config/arm/arm.c (output_return_instruction): Likewise.
400         * config/arm/arm.md (arm_simple_return): New pattern.
401         (arm_return, cond_return, cond_return_inverted): Add new arguments.
402         * config/arm/thumb2.md (thumb2_return): Update condition and code.
404 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
405             Sameera Deshpande  <sameera.deshpande@arm.com>
406             Greta Yorsh  <greta.yorsh@arm.com>
408         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
409         * config/arm/arm.c (arm_expand_epilogue): New function.
410         * config/arm/arm.md (epilogue): Update condition and code.
411         (sibcall_epilogue): Likewise.
413 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
414             Sameera Deshpande  <sameera.deshpande@arm.com>
415             Greta Yorsh  <greta.yorsh@arm.com>
417         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
418         * config/arm/arm.md (arm_addsi3) Add an alternative.
420 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
421             Sameera Deshpande  <sameera.deshpande@arm.com>
422             Greta Yorsh  <greta.yorsh@arm.com>
424         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
425         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
426         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
428 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
429             Sameera Deshpande  <sameera.deshpande@arm.com>
430             Greta Yorsh  <greta.yorsh@arm.com>
432         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
433         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
434         (pop_multiple_with_return, ldr_with_return) Likewise.
435         * config/arm/predicates.md (pop_multiple_return) New special predicate.
436         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
437         * config/arm/arm.c (arm_output_multireg_pop) New function.
438         (arm_emit_multi_reg_pop): New function.
440 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
442         * config/arm/arm.c (ldm_stm_operation_p): Require SP
443         as base register for loads if SP is in the register list.
445 2012-06-18  Richard Guenther  <rguenther@suse.de>
447         PR tree-optimization/53693
448         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
449         Reject operands with more than one use.
451 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
453         PR tree-optimization/53703
454         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
455         correctly set bb_for_def[12].
457 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
459         * config/vax/vax.h (VMS_TARGET): Remove.
461 2012-06-18  Richard Guenther  <rguenther@suse.de>
463         * tree-vrp.c (extract_range_from_assert): Split out range
464         intersecting code.
465         (intersect_ranges): New function.
466         (vrp_intersect_ranges): Likewise.
468 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
470         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
471         r187965.
473 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
475         * doc/md.texi: Document int iterators.
476         * read-rtl.c (ints): New iterator group.
477         (find_int): Int iterator group callback.
478         (apply_int_iterator): Likewise.
479         (apply_iterators): Traverse int iterator table and add all the used
480         iterators to list.
481         (initialize_iterators): Initialize data structures and callbacks for
482         int iterators.
483         (read_rtx): Parse and read mappings for int iterators.
484         (read_rtx_code): Record int iterator usage.
486 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
488         PR middle-end/53698
489         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
490         performing an addition.
492 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
494         * output.h (split_double): Move prototype to rtl.h.
495         (constructor_static_from_elts_p): Move prototype to tree.c.
496         * rtl.h (split_double): Moved here from output.h.
497         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
498         * final.c (split_double): Move from here ...
499         * rtlanal.c (split_double): ... to here.
500         * expr.c: Do not include output.h.
502 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
504         * cfglayout.h: Remove.
505         * cfglayout.c: Remove.
506         * function.h (struct function): Remove x_last_location field.
507         * function.c: Do not include cfglayout.h.
508         (expand_function_start): Do not call no-op force_next_line_note.
509         (expand_function_end): Likewise.
510         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
511         (unlink_insn_chain): Moved here from cfglayout.c.
512         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
513         into_cfg_layout_mode, outof_cfg_layout_mode,
514         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
515         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
516         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
517         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
518         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
519         cfg_layout_finalize): Likewise.
520         (rtl_can_remove_branch_p): Likewise.
521         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
522         (duplicate_insn_chain): Likewise.
523         (force_next_line_note): Remove prototype.
524         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
525         (last_location): Remove #define to emit.x_last_location.
526         (force_next_line_note): Remove no-op function.
527         (init_emit): Don't set x_last_location.
528         (block_locators_locs, block_locators_blocks, locations_locators_locs,
529         locations_locators_vals, prologue_locator, epilogue_locator,
530         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
531         Move POD to here from cfglayout.c.
532         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
533         set_curr_insn_source_location, get_curr_insn_source_location,
534         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
535         locator_scope, insn_scope, locator_location, locator_line, insn_line,
536         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
537         * cfghooks.h: Remove double-include protection.
538         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
539         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
540         * final.c: Do not include cfglayout.h.
541         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
542         (reemit_insn_block_notes): Likewise.  Make static.
543         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
544         operation_could_trap_p, tree_could_throw_p): Move from here...
545         * tree.h: ... to here.
546         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
547         * profile.c: Do not include cfghooks.h.
548         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
549         * modulo-sched.c: Likewise.
550         * loop-unswitch.c: Do not include cfglayout.h.
551         * sched-ebb.c: Likewise.
552         * tracer.c: Likewise.
553         * ddg.c: Likewise.
554         * tree-vect-loop-manip.c: Likewise.
555         * loop-init.c: Likewise.
556         * dwarf2out.c: Likewise.
557         * hw-doloop.c: Likewise.
558         * loop-unroll.c: Likewise.
559         * cfgcleanup.c: Likewise.
560         * bb-reorder.c: Likewise.
561         * sched-rgn.c: Likewise.
562         * tree-cfg.c: Likewise.
563         * config/alpha/alpha.c: Likewise.
564         * config/spu/spu.c: Likewise.
565         * config/sparc/sparc.c: Likewise.
566         * config/sh/sh.c: Likewise.
567         * config/c6x/c6x.c: Likewise.
568         * config/ia64/ia64.c: Likewise.
569         * config/rs6000/rs6000.c: Likewise.
570         * config/score/score.c: Likewise.
571         * config/mips/mips.c: Likewise.
572         * config/bfin/bfin.c: Likewise.
573         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
574         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
575         * config/spu/t-spu-elf (spu.o: $): Likewise.
576         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
578 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
580         * cfgloop.h: Do not include rtl.h.
581         (enum iv_extend_code): New.
582         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
583         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
584         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
585         an IV_EXTEND_CODE to an RTX_CODE.
586         (dump_iv_info): Update for rtx_iv field type change.
587         (iv_constant): Likewise.
588         (iv_subreg): Likewise.
589         (iv_extend): Likewise.
590         (iv_neg): Likewise.
591         (iv_add): Likewise.
592         (iv_mult): Likewise.
593         (iv_shift): Likewise.
594         (get_biv_step_1): Likewise.
595         (get_biv_step): Likewise.
596         (iv_analyze_biv): Likewise.
597         (get_iv_value): Likewise.
598         (shorten_into_mode): Likewise.
599         (canonicalize_iv_subregs): Likewise.
600         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
601         of MAY_HAVE_DEBUG_INSNS.
602         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
603         * tree-ssa-loop-prefetch.c: Likewise.
605 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
607         * expmed.c (ceil_log2): Move from here...
608         * hwint.c: ... to here for older GCCs...
609         * hwint.h: ... and here for newer GCCs.
610         * rtl.h (ceil_log2): Remove prototype.
612         * tree-phinodes.c: Do not include rtl.h.
613         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
615 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
617         * config/cris/cris.h (TARGET_ELF): Remove.
618         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
619         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
620         (LOCAL_LABEL_PREFIX): Likewise.
621         * config/cris/cris.c (cris_target_asm_named_section): Remove.
622         (cris_option_override): Simpify using TARGET_ELF==1.
623         (cris_file_start): Likewise.
624         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
626 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
628         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
630 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
632         PR middle-end/53590
633         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
635 2012-06-15  Easwaran Raman  <eraman@google.com>
637         * passes.c (init_optimization_passes): Remove pass_call_cdce
638         from its current position and insert after pass_dce.
640 2012-06-15  Walter Lee  <walt@tilera.com>
642         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
644 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
646         * arm.c (note_invalid_constants): Don't return a result.
647         (arm_memory_load_p): Delete function.
648         (arm_const_double_rtx): Delete iterator variable i;
649         (fp_immediate_constant): Likewise.
650         (fp_const_from_val): Likewise.
652         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
654 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
656         PR c++/51033
657         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
658         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
660 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
662         * config/avr/avr.c (avr_default_expand_builtin): New function.
663         (avr_expand_builtin): Use it.
664         (avr_expand_unop_builtin): Remove.
665         (avr_expand_binop_builtin): Remove.
666         (avr_expand_triop_builtin): Remove.
668 2012-06-15  Michael Matz  <matz@suse.de>
670         PR middle-end/38474
671         * cfgexpand.c (add_alias_set_conflicts): Remove.
672         (expand_used_vars): Don't call it.
673         (aggregate_contains_union_type): Remove.
674         * function.c (n_temp_slots_in_use): New static data.
675         (make_slot_available, assign_stack_temp_for_type): Update it.
676         (init_temp_slots): Zero it.
677         (remove_unused_temp_slot_addresses): Use it for quicker removal.
678         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
680 2012-06-15  Michael Matz  <matz@suse.de>
682         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
683         argument, don't emit assign statement if value is directly usable.
684         (gimplify_expr): Adjust.
686 2012-06-15  Michael Matz  <matz@suse.de>
688         * gimplify.c (gimplify_modify_expr): Fold generated statements.
689         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
691 2012-06-15  Richard Guenther  <rguenther@suse.de>
693         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
694         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
695         we assert for in set_value_range to VR_VARYING.
697 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
699         * arm.md (addsf3, adddf3): Use s_register_operand.
700         (subsf3, subdf3): Likewise.
701         (mulsf3, muldf3): Likewise.
702         (difsf3, divdf3): Likewise.
703         (movsfcc, movdfcc): Likewise.
704         * predicates.md (f_register_operand): Delete.
705         (arm_float_rhs_operand): Delete.
706         (arm_float_add_operand): Delete.
707         (arm_float_compare_operand): Use s_register_operand when
708         there's no VFP.
709         (cirrus_register_operand): Delete.
710         (cirrus_fp_register): Delete.
711         (cirrus_shift_const): Delete.
712         (cmpdi_operand): Remove Maverick support.
713         * constraints.md (f, v, H): Delete constraints.
714         (G): Update documentation.
715         * arm.c (fp_consts_inited): Convert to bool.
716         (strings_fp): Delete.
717         (values_fp): Delete.
718         (value_fp0): New variable.
719         (init_fp_table): Simplify logic.
720         (arm_const_double_rtx): Likewise.
721         (fp_immediate_constant): Likewise.
722         (fp_const_from_val): Likewise.
723         (neg_const_double_rtx_ok_for_fpa): Delete.
724         * doc/md.texi (ARM constraints): Update documentation.
726 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
728         PR tree-optimization/53636
729         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
730         stride when doing basic-block vectorization.
732 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
734         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
735         into VEC_PERM_EXPR.
737 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
739         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
740         allocate and free bbs array for the SLP case.
742         PR tree-optimization/51581
743         * expr.h (choose_multiplier): New prototype.
744         * expmed.c (choose_multiplier): No longer static.
745         Change multiplier_ptr from rtx * to UHWI *.
746         (expand_divmod): Adjust callers.
747         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
748         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
749         argument to new_stmt_vec_info.  Attempt to optimize also divisions
750         by non-pow2 constants if integer vector division isn't supported.
751         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
752         don't look at pattern stmts and sequences.
754 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
756         PR middle-end/53590
757         * common.opt (-fdelete-dead-exceptions): New switch.
758         * doc/invoke.texi (Code Gen Options): Document it.
759         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
760         insn_could_throw_p predicate.  Do not skip an insn that could throw
761         if dead exceptions can be deleted.
762         (insn_live_p): Likewise, do not return true in that case.
763         * dce.c (can_alter_cfg): New flag.
764         (deletable_insn_p): Do not return false for an insn that can throw if
765         the CFG can be altered and dead exceptions can be deleted.
766         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
767         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
768         predicate. Do not preserve an insn that could throw if dead exceptions
769         can be deleted.
770         * function.h (struct function): Add can_delete_dead_exceptions flag.
771         * function.c (allocate_struct_function): Set it.
772         * lto-streamer-in.c (input_struct_function_base): Stream it.
773         * lto-streamer-out.c (input_struct_function_base): Likewise.
774         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
775         statement that could throw as necessary if dead exceptions can be
776         deleted.
778 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
780         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
782 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
784         PR target/53568
785         * config/sh/sh.md: Add peephole for swapbsi2.
786         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
788 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
790         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
791         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
793 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
795         PR target/53639
796         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
798 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
800         * arm.c (arm_cirrus_insn_p): Delete.
801         (cirrus_reorg): Delete.
802         (arm_reorg): Don't call cirrus_reorg.
803         (arm_final_prescan_insn_p): Don't check for cirrus insns.
804         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
805         (adddi3, subdi3): Remove Maverick support.
806         (arm_adddi3): Likewise.
807         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
808         (addsf3, adddf3): Likewise.
809         (subsf3, subdf3): Likewise.
810         (mulsf3, muldf3): Likewise.
811         (ashldi3, ashrdi3, lshrdi3): Likewise.
812         (floatsisf2, floatsidf2): Likewise.
813         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
814         (arm_movdi, thumb1_movdi_insn): Likewise.
815         (arm_cmpdi_insn): Likewise.
816         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
817         (cirrus.md): Don't include.
818         * cirrus.md: Delete file.
819         * t-arm (MD_INCLUDES): Remove cirrus.md.
821 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
823         * dwarf2out.c (function_possibly_abstracted_p): New static function.
824         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
825         cgraph_function_possibly_inlined_p.
826         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
827         (process_scope_var): Do not emit concrete instances of abstracted
828         nested functions from here.
829         (gen_decl_die): Emit the abstract instance if the function is possibly
830         abstracted and not only possibly inlined.
831         (dwarf2out_finish): Find the first non-abstract parent instance and
832         attach concrete instances on the limbo list to it.
834 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
836         * arm.md (divsf3, divdf3): Remove FPA support.
837         (negsf2, negdf2): Likewise.
838         (sqrtsf2, sqrtdf2): Likewise.
839         (movdfcc): Likewise.
840         (modsf3, moddf3, movxf): Delete.
841         (push_fp_multi): Delete.
842         (fpa.md): Don't include it.
843         * fpa.md: Delete file.
844         * t-arm (MD_INCLUDES): Remove fpa.md.
846 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
848         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
849         (cost_for_stmt): Remove decl.
850         (vect_get_single_scalar_iteration_cost): Correct typo in name.
851         * tree-vect-loop.c (vect_get_cost): Remove.
852         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
853         vect_get_stmt_cost rather than vect_get_cost.
854         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
855         vect_get_cost.
856         (vect_estimate_min_profitable_iters): Correct typo in call to
857         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
858         than vect_get_cost.
859         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
860         vect_get_cost.
861         (vect_model_induction_cost): Likewise.
862         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
863         typo in call to vect_get_single_scalar_iteration_cost.
864         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
865         (cost_for_stmt): Remove unnecessary function.
866         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
868 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
870         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
871         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
872         * arm-tables.opt: Regenerated.
873         * doc/invoke.texi: Remove references to deleted options.
875 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
877         * config/h8300/genmova.sh: Modified to add offset bits of
878         mova/Sz assembly instruction for memory access.
879         * config/h8300/h8300.c: Likewise.
880         * config/h8300/mova.md: Likewise.
882 2012-06-12  Christian Bruel  <christian.bruel@st.com>
884         PR target/53621
885         * config/sh/sh.c (sh_option_override): Don't force
886          flag_omit_frame_pointer and maccumulate_outgoing_args.
887         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
889 2012-06-14  Richard Guenther  <rguenther@suse.de>
891         * tree-vrp.c (VR_INITIALIZER): New define.
892         (ranges_from_anti_range): New function.
893         (extract_range_from_binary_expr_1): Decompose operations on
894         VR_ANTI_RANGEs to operations on VR_RANGE.
895         (extract_range_from_unary_expr_1): Likewise.
896         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
897         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
898         extract_range_from_cond_expr, adjust_range_with_scev,
899         vrp_visit_assignment_or_call, vrp_visit_phi_node,
900         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
902 2012-06-13  Richard Henderson  <rth@redhat.com>
904         * hwint.h (HOST_WIDEST_INT_C): New.
905         (HOST_WIDE_INT_C): New.
906         (HOST_WIDE_INT_1): Use it.
907         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
909 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
911         PR debug/49888
912         * var-tracking.c: Include alias.h.
913         (overlapping_mems): New struct.
914         (drop_overlapping_mem_locs): New.
915         (clobber_overlapping_mems): New.
916         (var_mem_delete_and_set, var_mem_delete): Call it.
917         (val_bind): Likewise, but only if modified.
918         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
919         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
921 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
923         PR debug/47624
924         * var-tracking.c (loc_exp_dep_pool): New.
925         (vt_emit_notes): Create and release the pool.
926         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
927         (emit_notes_in_bb): Likewise.
928         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
929         (notify_dependents_of_changed_value): Likewise.
930         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
931         variables don't have a VAR_LOC_DEP_LST.
932         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
933         VALUEs or MEMs of VALUEs.
935 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
937         PR debug/52983
938         PR debug/48866
939         * dce.c (word_dce_process_block): Insert debug temps only if the
940         insn is not marked.
941         (dce_process_block): Likewise, and if debug.used is not empty,
942         and only after iterating over all DEFs that might mark the insn.
944 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
946         * common.opt (ftree-coalesce-inlined-vars): New.
947         (ftree-coalesce-vars): New.
948         * doc/invoke.texi: Document them.
949         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
950         Implement them.
952 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
954         * read-rtl.c (mapping): Remove index field.  Add current_value field.
955         Define heap vectors.
956         (iterator_group): Fix long line.  Remove num_builtins field and
957         uses_iterator fields.  Make apply_iterator take a void * parameter.
958         (iterator_use, atttribute_use): New structures.
959         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
960         (current_iterators, iterator_uses, attribute_uses): New variables.
961         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
962         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
963         (map_attr_string, apply_iterator_to_string): Remove iterator
964         and value parameters.  Look through all current iterator values
965         for a matching attribute.
966         (mode_attr_index, apply_mode_maps): Delete.
967         (apply_iterator_to_rtx): Replace with...
968         (copy_rtx_for_iterators): ...this new function.
969         (uses_iterator_p, apply_iterator_traverse): Delete.
970         (apply_attribute_uses, add_current_iterators, apply_iterators): New
971         functions.
972         (add_mapping): Remove index field.  Set current_value field.
973         (initialize_iterators): Don't set num_builtins and uses_iterator_p
974         fields.
975         (find_iterator): Delete.
976         (record_iterator_use, record_attribute_use): New functions.
977         (record_potential_iterator_use): New function.
978         (check_code_iterator): Remove handling of bellwether codes.
979         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
980         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
981         parameter.  Use the first code iterator value instead of the
982         bellwether_codes array.  Use record_potential_iterator_use for modes.
984 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
986         PR target/53568
987         * config/sh/sh.md (bswapsi2): New expander.
988         (swapbsi2): New insn.
990 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
992         PR target/53647
993         * config/i386/i386.c (ix86_tune_cost): New variable.
994         (ix86_option_override_internal): Set ix86_tune_cost.  Use
995         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
996         l1_cache_size and l2_cache_size.
998 2012-06-13  Richard Guenther  <rguenther@suse.de>
1000         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
1001         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
1002         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
1003         VR_ANTI_RANGE with VR_ANTI_RANGE.
1005 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
1007         * config.gcc (unsupported): Move obsoleted FPA-based configurations
1008         here from ...
1009         (obsolete): ... here.
1010         (arm*-*-freebsd*): Remove.
1011         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
1012         (arm*-*-uclinux*): Likewise.
1013         (arm*-*-ecos-elf): Remove.
1014         (arm*-*-rtems*): Remove.
1015         (arm*-*-elf): Remove.
1016         (arm*-wince-pe*): Remove.
1017         (arm, --with-fpu): Remove support for fpa and Maverick variants.
1018         * arm/ecos-elf.h: Delete.
1019         * arm/t-strongarm-elf: Delete.
1020         * arm/rtems-elf.h: Delete.
1021         * arm/wince-pe.h: Delete.
1022         * arm/pe.c: Delete.
1023         * arm/pe.h: Delete.
1024         * arm/t-wince-pe: Delete.
1026 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
1028         PR tree-optimization/53647
1029         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
1030         targets with no defined cache line size.
1032 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
1034         * targhooks.c (default_builtin_vectorized_conversion): Handle
1035         vec_construct, using vectype to base cost on subparts.
1036         * target.h (enum vect_cost_for_stmt): Add vec_construct.
1037         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
1038         instead of scalar_to-vec.
1039         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
1040         vec_construct in same way as default for now.
1041         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1042         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1043         Handle vec_construct, including special case for 32-bit loads.
1045 2012-06-13  Xinyu Qi <xyqi@marvell.com>
1047         * config/arm/arm.c (FL_IWMMXT2): New define.
1048         (arm_arch_iwmmxt2): New variable.
1049         (arm_option_override): Enable use of iWMMXt with VFP.
1050         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
1051         Thumb mode. Set arm_arch_iwmmxt2.
1052         (arm_expand_binop_builtin): Accept VOIDmode op.
1053         (enum arm_builtins): Revise built-in fcode.
1054         (IWMMXT2_BUILTIN): New define.
1055         (IWMMXT2_BUILTIN2): Likewise.
1056         (iwmmx2_mbuiltin): Likewise.
1057         (builtin_description bdesc_2arg): Revise built in declaration.
1058         (builtin_description bdesc_1arg): Likewise.
1059         (arm_init_iwmmxt_builtins): Revise built in initialization.
1060         (arm_expand_builtin): Revise built in expansion.
1061         (arm_output_iwmmxt_shift_immediate): New function.
1062         (arm_output_iwmmxt_tinsr): Likewise.
1063         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
1064         (arm_output_iwmmxt_tinsr): Likewise.
1065         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
1066         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
1067         (rorv4hi3, rorv2si3, rordi3): Likewise.
1068         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
1069         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
1070         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
1071         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
1072         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
1073         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
1074         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
1075         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
1076         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
1077         (ror<mode>3, ror<mode>3_di): Likewise.
1078         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
1079         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
1080         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
1081         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
1082         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
1083         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
1084         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
1085         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
1086         (All instruction patterns): Add wtype attribute.
1087         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
1088         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
1089         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
1090         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
1091         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
1092         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
1093         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
1094         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
1095         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
1096         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
1097         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
1098         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
1099         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
1100         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
1101         (iwmmxt2.md): Include.
1102         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
1103         (TARGET_IWMMXT2): New define.
1104         (TARGET_REALLY_IWMMXT2): Likewise.
1105         (arm_arch_iwmmxt2): Declare.
1106         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
1107         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
1108         Use C name-mangling for intrinsics.
1109         (__v8qi): Redefine.
1110         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
1111         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
1112         (_m_from_int): Likewise.
1113         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
1114         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
1115         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
1116         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
1117         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
1118         (_mm_tbcst_pi32): Likewise.
1119         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
1120         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
1121         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
1122         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
1123         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
1124         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
1125         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
1126         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
1127         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
1128         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
1129         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
1130         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
1131         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
1132         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
1133         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
1134         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
1135         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
1136         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
1137         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
1138         (_m_to_int): New define.
1139         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
1140         * config/arm/arm-arches.def (iwmmxt2): Likewise.
1141         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
1142         iwmmxt2.md.
1143         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
1144         (arch): Add "iwmmxt2".
1145         (arch_enabled): Handle "iwmmxt2".
1146         (wtype): New attribute.
1147         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
1148         (UNSPEC_WALIGNI): New unspec.
1149         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
1150         * config/arm/iterators.md (VMMX2): New mode_iterator.
1151         * config/arm/marvell-f-iwmmxt.md: New file.
1152         * config/arm/iwmmxt2.md: New file.
1154 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
1156         PR c/53532
1157         PR c/51034
1158         PR c/53196
1159         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
1160         if type isn't complete.
1162 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
1164         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
1166 2012-06-12  Richard Henderson  <rth@redhat.com>
1168         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
1169         iterator instead of INT.
1171 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
1173         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
1174         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
1175         declaration.
1176         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
1177         (tree_ssa_phiopt): Call gate_hoist_loads.
1178         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
1179         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
1180         hoist_adjacent_loads.
1181         (local_mem_dependence): New function.
1182         (hoist_adjacent_loads): Likewise.
1183         (gate_hoist_loads): Likewise.
1184         * common.opt (fhoist-adjacent-loads): New switch.
1185         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
1187 2012-06-12  Michael Matz  <matz@suse.de>
1189         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
1190         (nonoverlapping_memrefs_p): Don't call it here ...
1191         (true_dependence_1): ... but here.
1193 2012-06-12  Richard Guenther  <rguenther@suse.de>
1195         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
1196         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
1197         and MEM_SIZE only refines it.  Reflect that and be less conservative
1198         if either of the latter is not known.
1200 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
1202         PR rtl-optimization/53589
1203         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
1204         discovery even when e->dest != target.  If any LABEL_REF points
1205         to e->dest label, redirect it to target's label.
1207 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
1209         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
1210         condition for generating REG_FRAME_RELATED_EXPR note.
1211         (pop): Add code for generating REG_CFA_RESTORE,
1212         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
1213         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
1214         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
1216 2012-06-11  Richard Henderson  <rth@redhat.com>
1218         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
1219         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
1221         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
1223 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
1225         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
1226         Mention that this hook needs to be defined for native TLS.
1227         * doc/tm.texi: Regenerate.
1229 2012-06-11  Mike Stump  <mikestump@comcast.net>
1231         * emit-rtl.c (init_emit_once): Iterate through the
1232         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
1233         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
1234         all the MIN_MODE_PARTIAL_INT modes anymore.
1236 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
1238         * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
1240 2012-06-11  Roland McGrath  <mcgrathr@google.com>
1242         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
1243         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
1244         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
1245         operand.
1247 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
1249         PR target/53511
1250         * config/sh/sh.md (fmasf4): New expander.
1251         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
1252         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
1253         * config/sh/sh.opt (mfused-madd): Remove.
1254         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
1255         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
1256         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
1257         as extra options.
1258         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
1259         descriptions.
1261 2012-06-11  Richard Henderson  <rth@redhat.com>
1263         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
1265 2012-06-11  Richard Guenther  <rguenther@suse.de>
1267         PR middle-end/53470
1268         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
1269         replace it with the first non-BLOCK context.
1271 2012-06-11  Richard Guenther  <rguenther@suse.de>
1273         * alias.c (aliases_everything_p): Remove.
1274         (DIFFERENT_ALIAS_SETS_P): Likewise.
1275         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
1276         Do not use aliases_everything_p or special-case ANDs.  Do not
1277         special-case BLKmode moves.
1278         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
1279         - for SCATCH only.
1281 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
1283         Fix CRIS build errors with --enable-build-with-cxx.
1284         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
1285         variable "and" to "andop".
1286         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
1287         temporary variable for memory model, passing C++-type-correct
1288         parameter type to expand_mem_thread_fence.
1289         ("atomic_compare_and_swap<mode>"): Ditto.
1291 2012-06-09  Richard Henderson  <rth@redhat.com>
1293         PR c++/53602
1294         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
1295         (pass_jump): Rename from pass_jump2.
1296         (execute_jump2, pass_jump2): New.
1297         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
1298         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
1299         and ACCUMULATE_OUTGOING_ARGS test...
1300         (gate_handle_stack_adjustments): ... here.
1301         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
1302         Place new pass_jump2 after pass_stack_adjustments.
1303         * tree-pass.h (pass_jump): Declare.
1305 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
1307         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
1308         count trucation.
1310 2012-06-08  Richard Henderson  <rth@redhat.com>
1312         PR c++/53602
1313         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
1314         note to a clobber insn when no other insn is available.
1316 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
1318         * config/avr/avr.c (avr_case_values_threshold): Return 7.
1320 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
1322         * genhooks.c (main): Set progname.
1323         (emit_documentation): Remove variable found_start, always bail out
1324         when a place is missing.
1325         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
1327 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1329         PR middle-end/53580
1330         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
1331         call walk_gimple_seq_mod instead of walk_gimple_seq.
1332         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
1333         scan_omp_for, scan_omp_sections, scan_omp_single,
1334         execute_lower_omp): Adjust callers.
1335         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
1336         returns false, replace stmt with GIMPLE_NOP.
1337         (check_omp_nesting_restrictions): Instead of issuing warnings,
1338         issue errors and return false if any errors were reported.
1340 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1342         * doc/invoke.texi (fconserve-space): Remove documentation.
1344 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
1346         * config/rs6000/rs6000-tables.opt: Regenerated.
1348 2012-06-06  Richard Guenther  <rguenther@suse.de>
1350         PR tree-optimization/53081
1351         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
1352         (adjacent_dr_p): ... this and make it work for reads, too.
1353         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
1354         (struct partition_s): Change main_stmt to main_dr, add
1355         secondary_dr member.
1356         (build_size_arg_loc): Change to date data-reference and not
1357         gimplify here.
1358         (build_addr_arg_loc): New function split out from ...
1359         (generate_memset_builtin): ... here.  Use it and simplify.
1360         (generate_memcpy_builtin): New function.
1361         (generate_code_for_partition): Adjust.
1362         (classify_partition): Streamline pattern detection.  Detect memcpy.
1363         (ldist_gen): Adjust.
1364         (tree_loop_distribution): Adjust seed statements for memcpy
1365         recognition.
1367 2012-06-06  Matt Turner  <mattst88@gmail.com>
1369         * config/arm/mmintrin.h (_mm_empty): New.
1370         (_m_empty): New.
1372 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
1374         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
1375         * common.opt (fsched-pressure-algorithm=): Remove.
1376         * flag-types.h (sched_pressure_algorithm): Move to...
1377         * sched-int.h (sched_pressure_algorithm): ...here.
1378         * params.def (sched-pressure-algorithm): New param.
1379         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
1380         * common/config/s390/s390-common.c (s390_option_optimization_table):
1381         Remove OPT_fsched_pressure_algorithm_ entry.
1382         * config/s390/s390.c (s390_option_override): Set a default value for
1383         PARAM_SCHED_PRESSURE_ALGORITHM.
1385 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1387         PR target/53487
1388         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
1389         doing an unsigned compare, make sure the second argument is not a
1390         negative constant.
1391         (rs6000_emit_cmove): Don't allow floating point comparisons when
1392         generating ISEL moves.
1394 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
1396         * config/rs6000/e5500.md: New file.
1397         * config/rs6000/e6500.md: New file.
1398         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1399         e5500 and e6500.
1400         (rs6000_option_override_internal): Altivec and Spe options not
1401         allowed with e5500. Spe options not allowed with e6500. Increase
1402         move inline limit for e5500 and e6500. Disable string instructions
1403         for e5500 and e6500. Enable branch targets alignment for e5500 and
1404         e6500. Initialize rs6000_cost for e5500 and e6500.
1405         (rs6000_adjust_cost): Add extra scheduling cycles between compare
1406         and brnach for e5500 and e6500.
1407         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
1408         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
1409         e6500.
1410         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
1411         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
1412         ppce6500.
1413         Include e5500.md and e6500.md.
1414         * config/rs6000/rs6000-opt.h (processor_type): Add
1415         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
1416         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
1417         (powerpc*-*-*): Add new cores e5500, e6500.
1418         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
1420 2012-06-05  Richard Guenther  <rguenther@suse.de>
1422         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
1424 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1426         PR target/53575
1427         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
1428         is used for x86_64-*-*.
1430 2012-06-05  Richard Guenther  <rguenther@suse.de>
1432         PR tree-optimization/30442
1433         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
1434         vectorization stop analysis at the first stmt we cannot compute
1435         a data-reference for instead of giving up completely.
1437 2012-06-05  Richard Guenther  <rguenther@suse.de>
1439         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
1440         (partition_alloc): Initialize it.
1441         (partition_has_writes): New function.
1442         (rdg_flag_uses): Adjust.
1443         (rdg_flag_vertex): Likewise.
1444         (rdg_flag_vertex_and_dependent): Likewise.
1445         (rdg_flag_loop_exits): Likewise.
1446         (build_rdg_partition_for_component): Likewise.
1447         (rdg_build_partitions): Likewise.
1449 2012-06-05  Richard Guenther  <rguenther@suse.de>
1451         PR tree-optimization/53081
1452         * tree-loop-distribution.c (generate_memset_builtin): Handle all
1453         kinds of byte-sized stores.
1454         (classify_partition): Likewise.
1455         (tree_loop_distribution): Adjust seed statements used for
1456         !flag_tree_loop_distribution.
1458 2012-06-05  Alan Modra  <amodra@gmail.com>
1460         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
1461         (rs6000_emit_prologue): Ensure register used for inline saves
1462         of vector regs is not the static chain register.  Revise comment.
1464 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1466         * doc/md.texi (Standard Pattern Names For Generation): Document
1467         sincos pattern.
1469 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1471         PR bootstrap/53555
1472         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
1474 2012-06-04  Jason Merrill  <jason@redhat.com>
1476         * dwarf2out.c (is_unit_die): New.
1477         (copy_declaration_context, copy_ancestor_tree): Use it.
1478         (copy_decls_walk): Likewise.
1480 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
1482         PR c++/53524
1483         * doc/invoke.texi (Wenum-compare): Update documentation.
1485 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
1487         PR preprocessor/53463
1488         * parser.c (cp_parser_assignment_expression): Use the location
1489         for the '=' as the default location for the expression.
1491 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
1493         PR target/53559
1494         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
1495         operands.
1496         (altivec_stvlxl): Ditto.
1497         (altivec_stvrx): Ditto.
1498         (altivec_stvrxl): Ditto.
1500 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
1502         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
1503         (ira_uniform_class_p): New macro.
1505         * ira.c (setup_uniform_class_p): New function.
1506         (setup_allocno_and_important_classes): Call the function.
1507         (print_unform_and_important_classes): New function.
1508         (print_classes): Rename to print_translated_classes.
1509         (ira_debug_allocno_classes): Add call of
1510         print_unform_and_important_classes.
1512         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
1513         classes instead of pressure classes.
1515 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
1517         PR middle-end/47530
1518         * trans-mem.c (expand_block_edges): Do not skip the first
1519         statement when resetting the BB.
1521 2012-06-04  Richard Guenther  <rguenther@suse.de>
1523         * tree-data-ref.c (stores_from_loop): Remove.
1524         (stmt_with_adjacent_zero_store_dr_p): Likewise.
1525         (stores_zero_from_loop): Likewise.
1526         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
1527         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
1528         (adjacent_store_dr_p): New function.
1529         * tree-loop-distribution.c (generate_memset_builtin): Pass
1530         the RDG, use the already available data-reference.
1531         (generate_code_for_partition): Pass down RDG.
1532         (classify_partition): Inline parts of the former
1533         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
1534         (ldist_gen): Remember if there was any detected builtin and
1535         do less work if not and flag_tree_loop_distribution is not set.
1536         (tree_loop_distribution): Inline and fuse stores_from_loop
1537         and stores_zero_from_loop here.
1539 2012-06-04  Richard Guenther  <rguenther@suse.de>
1541         PR middle-end/53471
1542         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
1543         create new assembler names.
1545 2012-06-04  Richard Guenther  <rguenther@suse.de>
1547         * tree-data-ref.c (struct rdg_vertex_info): Remove.
1548         (rdg_vertex_for_stmt): Simplify using gimple_uid.
1549         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
1550         hashtable.   Record stmt data-references.
1551         (hash_stmt_vertex_info): Remove.
1552         (eq_stmt_vertex_info): Likewise.
1553         (hash_stmt_vertex_del): Likewise.
1554         (build_empty_rdg): Simplify.
1555         (build_rdg): Adjust.
1556         (free_rdg): Likewise.
1557         (ref_base_address): Remove.
1558         (have_similar_memory_accesses): Likewise.
1559         * tree-data-ref.h (create_rdg_vertices): Remove.
1560         (struct rdg_vertex): Add datarefs member.
1561         (RDGV_DATAREFS): New define.
1562         (RDG_DATAREFS): Likewise.
1563         (have_similar_memory_accesses): Remove.
1564         (rdg_has_similar_memory_accesses): Likewise.
1565         * tree-loop-distribution.c (ref_base_address): Re-implement here.
1566         (similar_memory_accesses): Re-implement using existing data-references.
1567         (tree_loop_distribution): Initialize stmt uids for the stmt to
1568         RDG index mapping.
1569         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1570         access stmt vinfo for stmts in loop.
1572 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1574         PR target/53461
1575         * config/m68k/m68k.md ("tablejump"): Fix check for
1576         CASE_VECTOR_PC_RELATIVE.
1578 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1580         * output.h (merge_weak, assemble_alias,
1581         initializer_constant_valid_p,
1582         initializer_constant_valid_for_bitfield_p): Move protos from here...
1583         * tree.h: ... to here.
1584         * cgraphclones.c: Do not include output.h.
1585         * gimplify.c: Likewise.
1586         * reload.c: Likewise.
1587         * recog.c: Likewise.
1588         * tree-ssa-loop-ivopts.c: Likewise.
1589         * tree-switch-conversion.c: Likewise.
1590         * c-parser.c: Likewise.
1591         * c-typeck.c: Likewise.
1592         * Makefile.in: Fix dependencies.
1594 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
1596         PR target/46261
1597         * config/avr/avr-stdint.h: New file.
1598         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
1599         newlib-stdint.h
1601 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
1603         PR tree-optimization/53550
1604         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
1605         is POINTER_TYPE_P, use sizetype as step type instead of type.
1607 2012-06-04  Richard Guenther  <rguenther@suse.de>
1609         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
1610         (ref_base_address_1): Likewise.
1611         (remove_similar_memory_refs): Likewise.
1612         * tree-data-ref.h (remove_similar_memory_refs): Remove.
1613         * tree-loop-distribution.c (classify_partition): Do not classify
1614         as builtin if -ftree-loop-distribute-patterns is not enabled.
1615         (fuse_partitions_with_similar_memory_accesses): Inline ...
1616         (ldist_gen): ... here.  Fuse all non-builtin partitions if
1617         -ftree-loop-distribution is not enabled.  Properly return
1618         the number of created partitions.  Do not update SSA form here but ...
1619         (tree_loop_distribution): ... once here for the whole function.
1620         Only walk innermost loops, constrain loops we consider here
1621         further.  Do not call remove_similar_memory_refs.
1622         (distribute_loop): Do not check number of loop nodes here.
1624 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1626         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
1628 2012-06-03  Martin Jambor  <mjambor@suse.cz>
1630         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
1631         (ipa_get_jf_known_type_base_type): Likewise.
1632         (ipa_get_jf_known_type_component_type): Likewise.
1633         (ipa_get_jf_constant): Likewise.
1634         (ipa_get_jf_pass_through_formal_id): Likewise.
1635         (ipa_get_jf_pass_through_operation): Likewise.
1636         (ipa_get_jf_ancestor_offset): Likewise.
1637         (ipa_get_jf_ancestor_type): Likewise.
1638         (ipa_get_jf_ancestor_formal_id): Likewise.
1639         (ipa_get_jf_member_ptr_pfn): Likewise.
1640         * ipa-prop.c (ipa_set_jf_known_type): New function.
1641         (ipa_set_jf_constant): Likewise.
1642         (ipa_set_jf_simple_pass_through): Likewise.
1643         (ipa_set_jf_arith_pass_through): Likewise.
1644         (ipa_set_ancestor_jf): Likewise.
1645         (fill_member_ptr_cst_jump_function): Moved up and renamed to
1646         ipa_set_jf_member_ptr_cst.
1647         (detect_type_change_1): Use the new jump function creation functions.
1648         (compute_complex_assign_jump_func): Likewise.
1649         (compute_complex_ancestor_jump_func): Likewise.
1650         (compute_known_type_jump_func): Likewise.
1651         (compute_scalar_jump_functions): Likewise.
1652         (compute_pass_through_member_ptrs): Likewise.
1653         (determine_cst_member_ptr): Likewise.
1654         (combine_known_type_and_ancestor_jfs): Likewise.
1655         (try_make_edge_direct_simple_call): Likewise.
1656         (try_make_edge_direct_virtual_call): Likewise.
1657         (update_indirect_edges_after_inlining): Likewise.
1658         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
1659         access functions.  Incorporat NOP_EXPR and BINFO handling from its
1660         callers.
1661         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
1662         which was in its callers.
1663         (ipa_value_from_jfunc): Use jump function access functions.  Some
1664         functionality moved to functions above.
1665         (propagate_vals_accross_ancestor): Likewise.
1666         (propagate_vals_accross_pass_through): Use jump function access
1667         functions.
1668         (propagate_accross_jump_function): Likewise.
1669         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
1670         access functions.
1671         (inline_merge_summary): Likewise.
1673 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1675         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
1676         * config/pa/pa.c (pa_attr_length_millicode_call): Use
1677         MAX_PCREL17F_OFFSET instead of fixed offset.
1678         (pa_attr_length_call): Likewise.
1679         (pa_attr_length_indirect_call): Likewise.
1681 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
1683         PR target/53512
1684         * config/sh/sh.opt (mfsca, mfsrra): New options.
1685         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
1686         condition.
1687         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
1688         (sinssf2, cossf2): Fold expanders to ...
1689         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
1690         TARGET_FSCA condition.
1691         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
1692         TARGET_FSCA.
1693         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
1694         -mno-fsca, -mfsrra, -mno-fsrra.
1696 2012-06-03  Matt Turner  <mattst88@gmail.com>
1698         * config/mips/4600.md (r4700_imul_si): New.
1699         (r4700_imul_di): New.
1700         (r4700_fmul_single): New.
1701         (r4700_fmul_double): New.
1702         * config/mips/mips-cpus.def: Add r4700.
1703         * config/mips/mips.c: Likewise.
1704         * config/mips/mips.md: Likewise.
1705         * config/mips/mips-tables.opt: Regenerate.
1707 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
1709         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
1710         new function sparc_initial_elimination_offset.
1711         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
1712         function.
1713         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
1714         Prototype it.
1716 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
1718         * expmed.c (expand_mult, choose_multiplier): Change
1719         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
1720         * expr.c (convert_modes): Likewise.
1721         * explow.c (plus_constant): Likewise.
1722         * fixed-value.c (fixed_saturate1, fixed_saturate2)
1723         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
1724         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
1725         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
1726         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
1727         (do_fixed_shift, fixed_convert, fixed_convert)
1728         (fixed_convert_from_int, fixed_convert_from_int)
1729         (fixed_convert_from_real): Likewise.
1730         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
1731         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
1732         * varasm.c (output_constructor_bitfield): Likewise.
1733         * tree-vrp.c (register_edge_assert_for_2): Likewise.
1734         * double-int.c (rshift_double, lshift_double): Likewise.
1735         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
1736         Likewise.
1737         * simplify-rtx.c (mode_signbit_p)
1738         (simplify_const_unary_operation, simplify_binary_operation_1)
1739         (simplify_immed_subreg): Likewise.
1740         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
1741         * tree-vect-generic.c (build_replicated_const): Likewise.
1742         * dbxout.c (stabstr_O): Likewise.
1743         * emit-rtl.c (immed_double_int_const, immed_double_const)
1744         (gen_lowpart_common, init_emit_once): Likewise.
1745         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
1746         (widest_int_cst_value, upper_bound_in_type): Likewise.
1747         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
1748         (fixup_unsigned_type): Likewise.
1749         * real.c (real_to_integer2, real_from_integer): Likewise.
1750         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
1751         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
1753 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1755         PR middle-end/53501
1756         * fold-const.c (fold_binary_loc): Refine previous change.
1758 2012-06-01  Olivier Hainque  <hainque@adacore.com>
1760         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
1761         the "do {" part of the do-while(0) loop.
1763 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1765         * config/i386/i386.c (x86_sched_reorder): New function.
1766         Added new function x86_sched_reorder.
1768 2012-06-01  Richard Guenther  <rguenther@suse.de>
1770         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1771         Handle PHIs.
1772         (classify_partition): Likewise.
1774 2012-06-01  Richard Guenther  <rguenther@suse.de>
1776         * tree-loop-distribution.c (enum partition_kind): New enum.
1777         (struct partition_s): Add kind and main_stmt members.
1778         (partition_alloc): Initialize kind to PKIND_NORMAL.
1779         (partition_builtin_p): New function.
1780         (copy_loop_before): Remove failure path and assert instead.
1781         (generate_loops_for_partition): Likewise.
1782         (generate_memset_zero): Fold into ...
1783         (generate_memset_builtin): ... this.
1784         (classify_partition): New function with code from
1785         can_generate_builtin and generate_builtin.
1786         (generate_builtin): Remove.
1787         (can_generate_builtin): Likewise.
1788         (fuse_partitions_with_similar_memory_accesses): Call
1789         partition_builtin_p instead of can_generate_builtin.
1790         (rdg_build_partitions): Do not call
1791         fuse_partitions_with_similar_memory_accesses here...
1792         (ldist_gen): ... but here after classifying all partitions.
1793         Remove failure path of generate_code_for_partition.
1794         (generate_code_for_partition): Generate code according
1795         to partition classification.
1797 2012-06-01  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
1798             Jonathan Wakely  <jwakely.gcc@gmail.com>
1800         PR c++/50134
1801         * doc/invoke.texi (Warning Options): Explain purpose and differences
1802         between -Wmissing-prototypes and -Wmissing-declarations.
1804 2012-06-01  Christian Bruel  <christian.bruel@st.com>
1806         * gcc.c (save_switch): Add user_p parameter.
1807         (read_specs): Likewise.
1808         (set_specs): Likewise.
1809         (validate_switches): Likewise.
1810         (validate_switches_from_spec): Likewise.
1811         (validate_all_switches): Pass on user_p parameter.
1812         (struct spec_list): Add user_p field.
1813         (struct switchstr): Add known field.
1814         (save_switch): Add known parameter.
1815         (INIT_STATIC_SPEC): Initialize user_p;
1816         (driver_unknown_option_callbac): call save_switch if
1817         OPT_SPECIAL_unknown.
1818         (driver_handle_option): Propagate OPT_specs.
1819         (do_spec_1): Set validated only if known.
1820         (check_live_switch): Likewise.
1821         (validate_switches): Set validated if known or user_spec.
1823 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
1825         Add CRIS atomic patterns for 1, 2, and 4 bytes.
1826         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
1827         * config/cris/cris-protos.h: Declare it.
1828         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
1829         (TARGET_DEFAULT): Add alignment by 32.
1830         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
1831         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
1832         TARGET_CPU_DEFAULT == 32.
1833         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
1834         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
1835         numbers by replacing the define_constants for all UNSPECs with the
1836         equivalent define_c_enum construct.
1837         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
1838         * config/cris/sync.md: New file.
1840 2012-05-31  Matt Turner  <mattst88@gmail.com>
1842         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
1843         (r4600_imul_di): New.
1844         (r4600_idiv_si): Rename from r4600_idiv.
1845         (r4600_idiv_di): New.
1847 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
1849         * output.h (__gcc_host_wide_int__): Move to hwint.h.
1850         (decl_default_tls_model): Move to tree.h
1851         (dump_file): Move to system.h.
1852         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
1853         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
1854         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
1855         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
1856         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
1857         dbxout_stab_value_internal_label,
1858         dbxout_stab_value_internal_label_diff): Move from here ...
1859         * dbxout.h: ... to here.
1860         * system.h (dump_file): Moved here from output.h.
1861         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
1862         * tree.h (decl_default_tls_model): Moved here from output.h.
1863         * varasm.c (default_stabs_asm_out_destructor,
1864         default_stabs_asm_out_constructor): Move from here ...
1865         * dbxout.c: ... to here.
1867         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
1869         * collect2.h (dump_file): Rename to dump_ld_file.
1870         * collect2.c: Likewise.
1871         * tlink.c: Likewise.
1873         * alias.c: Do not include output.h.
1874         * auto-inc-dec.c: Likewise.
1875         * bt-load.c: Likewise.
1876         * caller-save.c: Likewise.
1877         * cfg.c: Likewise.
1878         * cfgbuild.c: Likewise.
1879         * cfgcleanup.c: Likewise.
1880         * cfglayout.c: Likewise.
1881         * cfgloop.c: Likewise.
1882         * cfgloopanal.c: Likewise.
1883         * cfgloopmanip.c: Likewise.
1884         * cfgrtl.c: Likewise.
1885         * cgraph.c: Likewise.
1886         * cgraphclones.c: Likewise.
1887         * combine-stack-adj.c: Likewise.
1888         * combine.c: Likewise.
1889         * cprop.c: Likewise.
1890         * cse.c: Likewise.
1891         * cselib.c: Likewise.
1892         * dbgcnt.c: Likewise.
1893         * df-problems.c: Likewise.
1894         * df-scan.c: Likewise.
1895         * dojump.c: Likewise.
1896         * fwprop.c: Likewise.
1897         * gcse.c: Likewise.
1898         * graph.c: Likewise.
1899         * haifa-sched.c: Likewise.
1900         * hw-doloop.c: Likewise.
1901         * ipa-inline-transform.c: Likewise.
1902         * ipa-pure-const.c: Likewise.
1903         * ipa-reference.c: Likewise.
1904         * ipa-utils.c: Likewise.
1905         * ira-build.c: Likewise.
1906         * ira-emit.c: Likewise.
1907         * lcm.c: Likewise.
1908         * loop-doloop.c: Likewise.
1909         * loop-invariant.c: Likewise.
1910         * loop-iv.c: Likewise.
1911         * loop-unroll.c: Likewise.
1912         * loop-unswitch.c: Likewise.
1913         * lto-cgraph.c: Likewise.
1914         * lto-section-in.c: Likewise.
1915         * lto-streamer-in.c: Likewise.
1916         * mcf.c: Likewise.
1917         * mode-switching.c: Likewise.
1918         * postreload-gcse.c: Likewise.
1919         * postreload.c: Likewise.
1920         * predict.c: Likewise.
1921         * profile.c: Likewise.
1922         * ree.c: Likewise.
1923         * reg-stack.c: Likewise.
1924         * regcprop.c: Likewise.
1925         * regmove.c: Likewise.
1926         * regstat.c: Likewise.
1927         * reload1.c: Likewise.
1928         * sched-ebb.c: Likewise.
1929         * sel-sched-dump.c: Likewise.
1930         * simplify-rtx.c: Likewise.
1931         * stor-layout.c: Likewise.
1932         * store-motion.c: Likewise.
1933         * tracer.c: Likewise.
1934         * tree-affine.c: Likewise.
1935         * tree-cfg.c: Likewise.
1936         * tree-cfgcleanup.c: Likewise.
1937         * tree-dfa.c: Likewise.
1938         * tree-into-ssa.c: Likewise.
1939         * tree-nomudflap.c: Likewise.
1940         * tree-optimize.c: Likewise.
1941         * tree-pretty-print.c: Likewise.
1942         * tree-profile.c: Likewise.
1943         * tree-ssa-address.c: Likewise.
1944         * tree-ssa-ccp.c: Likewise.
1945         * tree-ssa-copy.c: Likewise.
1946         * tree-ssa-dom.c: Likewise.
1947         * tree-ssa-loop-ch.c: Likewise.
1948         * tree-ssa-loop-im.c: Likewise.
1949         * tree-ssa-loop-manip.c: Likewise.
1950         * tree-ssa-loop-niter.c: Likewise.
1951         * tree-ssa-loop-prefetch.c: Likewise.
1952         * tree-ssa-loop-unswitch.c: Likewise.
1953         * tree-ssa-loop.c: Likewise.
1954         * tree-ssa-propagate.c: Likewise.
1955         * tree-ssa-structalias.c: Likewise.
1956         * tree-ssa-tail-merge.c: Likewise.
1957         * tree-ssa-threadedge.c: Likewise.
1958         * tree-ssa-threadupdate.c: Likewise.
1959         * tree-ssa-uncprop.c: Likewise.
1960         * tree-ssa-uninit.c: Likewise.
1961         * tree-ssa.c: Likewise.
1962         * value-prof.c: Likewise.
1963         * var-tracking.c: Likewise.
1964         * web.c: Likewise.
1966         * config/m32r/m32r.c: Include dbxout.h.
1967         * config/pa/pa.c: Likewise.
1968         * config/rs6000/rs6000.c: Likewise.
1970         * Makefile.in: Fix dependencies.
1971         * config/rs6000/t-rs5000: Likewise.
1973 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
1975         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
1976         * gimple.h (block_in_transaction): Check for flag_tm.
1978 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
1980         PR tree-optimization/52558
1981         * cfg.c (alloc_aux_for_edge): Fix comment.
1982         (alloc_aux_for_edge): Remove static.
1983         * basic-block.h (alloc_aux_for_edge): Protoize.
1984         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
1985         (execute_sm_if_changed_flag): New.
1986         (execute_sm_if_changed_flag_set): New.
1987         (execute_sm): Do not generate data races unless requested.
1988         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
1989         (tree_ssa_lim_finalize): Call free_aux_for_edges.
1990         * gimple.h (block_in_transaction): New.
1991         (gimple_in_transaction): Use block_in_transaction.
1993 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
1995         PR target/51345
1996         * config/avr/avr.opt (-msp8): Document it.
1997         * doc/invoke.texi (AVR Options): Ditto.  And document related
1998         built-in macros.
2000 2012-05-31   Diego Novillo  <dnovillo@google.com>
2002         * configure.ac (CXX_FOR_BUILD): Define and substitute.
2003         (BUILD_CXXFLAGS): Define and substitute.
2004         * Makefile.in (BUILD_CXXFLAGS): Define.
2005         (CXX_FOR_BUILD): Define.
2006         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
2007         (LINKER_FOR_BUILD): Likewise.
2008         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
2009         (BUILD_LINKERFLAGS): Likewise.
2010         * configure: Regenerate.
2012 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2014         * Makefile.in: Fix many dependencies.
2015         * tree-profile.c: Don't include regs.h.
2016         * tree-vectorizer.c: Don't include cfglayout.h.
2017         * tree-vect-stmts.c: Likewise.
2018         * tree-vect-slp.c: Likewise.
2019         * tree-vect-loop.c: Likewise.
2020         * reg-stack.c: Likewise.
2021         * tree-ssa-loop-manip.c: Likewise.
2022         * toplev.c: Likewise.
2023         * varasm.c: Don't include cfglayout.h, basic-block.h,
2024         and tree-iterator.h.
2025         * tree-cfgcleanup.c: Don't include cfglayout.h.
2026         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
2027         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
2028         * cgraphclones.c: Don't include plugin.h.
2030 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
2032         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
2033         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
2034         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
2036 2012-05-31  Richard Guenther  <rguenther@suse.de>
2038         * tree-loop-distribution.c (struct partition_s): New struct,
2039         typedef and vector type.
2040         (partition_alloc, partition_free): New functions.
2041         (generate_loops_for_partition, generate_builtin,
2042         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
2043         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2044         build_rdg_partition_for_component, can_generate_builtin,
2045         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
2046         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
2047         number_of_rw_in_partition, partition_contains_all_rw,
2048         ldist_gen): Use partition_t instead of bitmap.
2050 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
2052         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
2053         * doc/avr-mmcu.texi: Regenerate.
2055 2012-05-31  Richard Guenther  <rguenther@suse.de>
2057         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
2058         Use FOR_EACH_SSA_DEF_OPERAND.
2059         (generate_builtin): Adjust.
2060         (stmt_generated_in_another_partition): Remove.
2061         (add_scalar_computations_to_partition): Likewise.
2062         (rdg_build_partitions): Do not call
2063         add_scalar_computations_to_partition.
2065 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2067         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
2068         double ints throughout.
2069         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
2070         Check that the position of the field is representable as an integer.
2072 2012-05-31  Richard Guenther  <rguenther@suse.de>
2074         * tree-data-ref.c (dr_analyze_innermost): Properly convert
2075         the MEM_REF offset to sizetype.
2077 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
2079         * doc/invoke.texi (AVR Options): Fix typos.
2081 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
2083         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
2084         and -mcpu= options.
2085         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
2086         non-v32 into --march=v0_v10.
2088 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2090         * ira-int.h (target_ira_int): Rename x_move_cost to
2091         x_ira_register_move_cost, x_may_move_in_cost to
2092         x_ira_may_move_in_cost and x_may_move_out_cost to
2093         x_ira_may_move_out_cost.  Delete the old fields with
2094         those names and also x_ira_max_register_move_cost,
2095         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
2096         (move_cost, may_move_in_cost, may_move_out_cost)
2097         (ira_max_register_move_cost, ira_max_may_move_in_cost)
2098         (ira_max_may_move_out_cost): Delete.
2099         * ira.c (init_move_cost): Rename to...
2100         (ira_init_register_move_cost): ...this, deleting the old
2101         function with that name.  Apply above variable renamings.
2102         Retain asserts for null fields.
2103         (ira_init_once): Don't initialize register move costs here.
2104         (free_register_move_costs): Apply above variable renamings.
2105         Remove code for deleted fields.
2107 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2109         * ira.c (init_move_cost): Adjust choice of subclasses to match
2110         the current ira_init_register_move_cost choice.  Use
2111         ira_class_subset_p instead of reg_class_subset_p.
2112         (ira_init_register_move_cost): Assert that move_cost,
2113         may_move_in_cost and may_move_out_cost already hold the desired
2114         values for their ira_* equivalents.  For the latter two,
2115         ignore classes that can't store a register of the given mode.
2117 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2119         * ira.c (setup_allocno_and_important_classes): Use
2120         ira_class_hard_regs_num to check whether a class has any
2121         allocatable registers.
2122         (ira_init_register_move_cost): Likewise.
2124 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2126         * ira.c (init_move_cost): Adjust local variable names to match
2127         file conventions.  Use ira_assert instead of gcc_assert.
2129 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2131         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
2132         Move these definitions and associated target_globals fields to...
2133         * ira-int.h: ...here.
2134         * rtl.h (init_move_cost): Delete.
2135         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
2136         * ira.c: ...here, making the latter static.
2138 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2140         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
2141         and ira_register_move_cost instead of init_move_cost and move_cost.
2143 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2145         * ira.h (target_ira): Delete x_ira_available_class_regs.
2146         (ira_available_class_regs): Delete.
2147         * ira.c (setup_available_class_regs): Delete.
2148         (setup_alloc_classes): Don't call it.
2149         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
2150         ira_available_class_regs.
2151         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
2152         (model_spill_cost): Likewise.
2153         * ira-build.c (low_pressure_loop_node_p): Likewise.
2154         * ira-color.c (color_pass): Likewise.
2155         * ira-emit.c (change_loop): Likewise.
2156         * ira-lives.c (inc_register_pressure, dec_register_pressure)
2157         (single_reg_class, ira_implicitly_set_insn_hard_regs)
2158         (process_bb_node_lives): Likewise.
2159         * loop-invariant.c (gain_for_invariant): Likewise.
2161 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2163         PR target/52999
2164         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
2165         (pa_section_type_flags): New.
2166         (pa_legitimate_constant_p): Revert previous change.
2168 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2170         * ira.c (allocate_initial_values): Make static.
2172 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
2174         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
2175         Generate tls_initial_exec_64_sun only when !TARGET_X32.
2177 2012-05-30  Richard Guenther  <rguenther@suse.de>
2179         PR middle-end/53501
2180         * fold-const.c (fold_binary_loc): Make sure to call
2181         fold_plusminus_mult_expr with the original sign of operands.
2183 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2185         * Makefile.in: Fix many dependencies.
2186         (DWARF2_H): Depend on dwarf2.def.
2187         (RTL_ERROR_H): Depend on rtl-error.h.
2188         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
2189         all gimple-pretty-print.h and tree-pretty-print.h references.
2191 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
2193         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
2194         concatenations.
2196 2012-05-30  Richard Guenther  <rguenther@suse.de>
2198         PR middle-end/53522
2199         * tree-emutls.c (gen_emutls_addr): Do not add globals to
2200         referenced-vars.
2202 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2204         * explow.c (probe_stack_range): Restore simple control flow and stop
2205         again when the probe cannot be generated if HAVE_check_stack.
2207 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
2209         PR rtl-optimization/53519
2210         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
2211         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
2213 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2215         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
2217 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
2219         PR debug/53453
2220         * doc/tm.texi: Update.
2221         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
2222         * target.def (force_at_comp_dir): New hook.
2223         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
2224         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
2226 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
2228         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
2229         Darwin >= 10.
2230         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
2231         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2233 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
2235         PR target/51340
2236         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
2237         flag_unsafe_math_optimizations is set.
2238         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
2239         Update description of -mfused-madd.
2241 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
2243         PR target/52941
2244         * config/sh/predicates.md (atomic_arith_operand,
2245         atomic_logical_operand): New predicates.
2246         * config/sh/sh.c (sh_option_override): Check atomic options.
2247         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
2248         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
2249         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
2250         UNSUPPORTED_HARD_ATOMIC_CPU.
2251         * config/sh/sync.md: Update description comments.
2252         (I12): New mode iterator.
2253         (fetchop_predicate, fetchop_constraint): New code attributes.
2254         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2255         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2256         atomic_fetch_<fetchop_name>si_hard,
2257         atomic_fetch_<fetchop_name><mode>_hard,
2258         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2259         atomic_<fetchop_name>_fetchsi_hard,
2260         atomic_<fetchop_name>_fetch<mode>_hard,
2261         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2262         atomic_test_and_set_hard): New insns.
2263         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
2264         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
2265         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
2266         atomic_test_and_set_soft): Use same formatting for the first line of
2267         the asm block as in new insns above.
2268         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
2269         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
2270         atomic_test_and_set): Integrate new *_hard insns into expanders.
2271         * config/sh/sh.opt (mhard-atomic): New option.
2272         * doc/invoke.texi (SH Options): Document it.
2274 2012-05-29  Meador Inge  <meadori@codesourcery.com>
2276         * c-decl.c (c_push_function_context): Always create a new language
2277         function.
2278         (c_pop_function_context): Clear the language function created in
2279         c_push_function_context.
2281 2012-05-29  Matt Turner  <mattst88@gmail.com>
2283         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
2284         (define_bypass "ev6_fcmov"): New.
2286 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2288         * integrate.c: Remove.
2289         * integrate.h: Remove.
2290         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
2291         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
2292         * config/rs6000/t-rs6000: Likewise
2293         * config/spu/t-spu-elf: Likewise.
2294         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
2295         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
2296         from integrate.h to here.
2297         (initial_value_entry): New prototype.
2298         * reload.h (allocate_initial_values): Remove prototype.
2299         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
2300         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
2301         integrate.c.
2302         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
2303         set_decl_abstract_flags, set_block_abstract_flags): Move from
2304         integrate.c to here, the only user.
2305         * expmed.c (extract_fixed_bit_field): Remove outdated comment
2306         about integrate.c.
2307         * function.c: Don't include integrate.h.
2308         (struct initial_value_pair, struct initial_value_struct,
2309         get_hard_reg_initial_val, has_hard_reg_initial_val,
2310         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
2311         integrate.c to here.
2312         (initial_value_entry): New function.
2313         * genemit.c (main): Don't print integrate.h include line.
2314         * ira.c: Don't include integrate.h.
2315         (allocate_initial_values): Move from integrate.c to here.
2316         (ira): Update allocate_initial_values call.
2317         * tree-inline.c: Don't include integrate.h.
2318         (function_attribute_inlinable_p): Moved from integrate.c to here.
2319         * cfgexpand.c: Don't include integrate.h.
2320         * except.c: Likewise.
2321         * langhooks.c: Likewise.
2322         * passes.c: Likewise.
2323         * toplev.c: Likewise.
2324         * config/frv/frv.c: Likewise.
2325         * config/pa/pa.c: Likewise.
2326         * config/spu/spu.c: Likewise.
2327         * config/epiphany/epiphany.c: Likewise.
2328         * config/mep/mep.c: Likewise.
2329         * config/score/score.c: Likewise.
2330         * config/picochip/picochip.c: Likewise.
2331         * config/sh/sh.c: Likewise.
2332         * config/alpha/alpha.c: Likewise.
2333         * config/microblaze/microblaze.c: Likewise.
2334         * config/mips/mips.c: Likewise.
2335         * config/v850/v850.c: Likewise.
2336         * config/mmix/mmix.c: Likewise.
2337         * config/bfin/bfin.c: Likewise.
2338         * config/arm/arm.c: Likewise.
2339         * config/s390/s390.c: Likewise.
2340         * config/m32r/m32r.c: Likewise.
2341         * config/rs6000/rs6000.c: Likewise.
2342         * config/c6x/c6x.c: Include function.h instead of integrate.h.
2343         * config/tilegx/tilegx.c: Likewise.
2344         * config/tilepro/tilepro.c: Likewise.
2346 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
2348         * config/avr/t-avr (s-avr-mmcu-texi): Call
2349         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
2351 2012-05-29  Michael Matz  <matz@suse.de>
2353         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
2354         assign_temp): Remove 'keep' argument.
2355         (mark_temp_addr_taken): Remove prototype.
2356         * tree.h (expand_decl): Remove prototype.
2357         * function.c (struct temp_slot): Remove addr_taken and keep member.
2358         (assign_stack_temp_for_type) Don't initialize above, remove
2359         keep argument.
2360         (assign_stack_temp, assign_temp): Remove keep argument.
2361         (mark_temp_addr_taken): Remove.
2362         (preserve_temp_slots): Remove handling of addr_taken and keep members.
2363         (free_temp_slots): Ditto.
2364         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
2365         dead code.
2366         * stmt.c (expand_asm_operands): Remove dead code.
2367         (expand_decl): Remove.
2368         * c-decl.c (finish_struct): Don't call expand_decl.
2369         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
2370         and assign_stack_temp.
2371         * calls.c (save_fixed_argument_area, initialize_argument_information,
2372         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
2373         * expmed.c (extract_bit_field_1): Ditto.
2374         * expr.c (emit_group_load_1, emit_group_store,
2375         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
2376         store_field, expand_constructor, expand_cond_expr_using_cmove,
2377         expand_expr_real_2, expand_expr_real_1): Ditto.
2378         * stmt.c (expand_asm_operands, expand_return): Ditto.
2380         * function.c (pop_temp_slots): Call free_temp_slots.
2381         * calls.c (store_one_arg): Don't call preserve_temp_slots or
2382         free_temp_slots.
2383         * expr.c (expand_assignment): Don't call free_temp_slots.
2385         * config/arm/arm.c (neon_expand_vector_init): Ditto.
2386         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
2387         (ix86_expand_vector_extract): Ditto.
2388         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
2389         ia64_expand_movxf_movrf): Ditto.
2390         * config/mips/mips.c (mips_expand_vi_general): Ditto.
2391         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
2392         extendsfdf2): Ditto.
2393         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
2394         rs6000_expand_vector_set, rs6000_expand_vector_extract,
2395         rs6000_allocate_stack_temp): Ditto.
2396         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
2397         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2398         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
2399         sparc_expand_vector_init): Ditto.
2401 2012-05-29  Michael Matz  <matz@suse.de>
2403         * c-tree.h (c_expand_decl): Remove prototype.
2405         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
2406         a kept temp.
2407         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
2408         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
2409         COMPOUND_LITERAL_EXPR.
2410         * function.c (expand_function_start): Don't call expand_decl,
2411         instead assert that we have RTL assigned.
2412         * tree-ssa-live.c (remove_unused_locals): Clear
2413         nonlocal_goto_save_area if its backing variable is removed.
2414         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
2415         as mem inputs.
2416         (expand_decl): Assert that this does nothing.
2417         * calls.c (expand_call): Don't call mark_temp_addr_taken.
2419 2012-05-29  Richard Guenther  <rguenther@suse.de>
2421         PR tree-optimization/53516
2422         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
2423         bitfield accesses.
2424         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2426 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2428         * LANGUAGES: Fix typos.
2429         * Makefile.in: Fix typos.
2430         * alias.c: Fix typos.
2431         * auto-inc-dec.c: Fix typos.
2432         * bb-reorder.c: Fix typos.
2433         * cfgcleanup.c: Fix typos.
2434         * cgraph.c: Fix typos.
2435         * cgraph.h: Fix typos.
2436         * cgraphunit.c: Fix typos.
2437         * collect2-aix.h: Fix typos.
2438         * collect2.c: Fix typos.
2439         * compare-elim.c: Fix typos.
2440         * config/alpha/vms.h: Fix typos.
2441         * config/arm/README-interworking: Fix typos.
2442         * config/arm/arm.c: Fix typos.
2443         * config/arm/iterators.md: Fix typos.
2444         * config/arm/vxworks.h: Fix typos.
2445         * config/avr/avr.c: Fix typos.
2446         * config/avr/avr.h: Fix typos.
2447         * config/avr/avr.md: Fix typos.
2448         * config/avr/builtins.def: Fix typos.
2449         * config/c6x/c6x.c: Fix typos.
2450         * config/cr16/cr16.c: Fix typos.
2451         * config/cr16/cr16.md: Fix typos.
2452         * config/cris/cris.md: Fix typos.
2453         * config/darwin.c: Fix typos.
2454         * config/darwin.opt: Fix typos.
2455         * config/i386/i386-c.c: Fix typos.
2456         * config/i386/i386.c: Fix typos.
2457         * config/ia64/ia64.c: Fix typos.
2458         * config/m68k/cf.md: Fix typos.
2459         * config/mep/mep.c: Fix typos.
2460         * config/microblaze/microblaze.c: Fix typos.
2461         * config/microblaze/microblaze.h: Fix typos.
2462         * config/mn10300/mn10300.c: Fix typos.
2463         * config/mn10300/mn10300.md: Fix typos.
2464         * config/pa/pa.c: Fix typos.
2465         * config/picochip/picochip.h: Fix typos.
2466         * config/rs6000/a2.md: Fix typos.
2467         * config/rs6000/rs6000.c: Fix typos.
2468         * config/rs6000/vector.md: Fix typos.
2469         * config/rx/rx.md: Fix typos.
2470         * config/rx/rx.opt: Fix typos.
2471         * config/s390/2097.md: Fix typos.
2472         * config/s390/s390.c: Fix typos.
2473         * config/s390/s390.h: Fix typos.
2474         * config/sh/sh.c: Fix typos.
2475         * config/sh/sh.md: Fix typos.
2476         * config/sparc/sync.md: Fix typos.
2477         * config/spu/spu.c: Fix typos.
2478         * config/spu/spu.md: Fix typos.
2479         * config/vms/vms.c: Fix typos.
2480         * config/vxworks-dummy.h: Fix typos.
2481         * config/vxworks.h: Fix typos.
2482         * cselib.c: Fix typos.
2483         * df-scan.c: Fix typos.
2484         * df.h: Fix typos.
2485         * doc/extend.texi: Fix typos.
2486         * doc/install.texi: Fix typos.
2487         * doc/invoke.texi: Fix typos.
2488         * doc/md.texi: Fix typos.
2489         * doc/plugins.texi: Fix typos.
2490         * doc/rtl.texi: Fix typos.
2491         * dse.c: Fix typos.
2492         * dwarf2asm.c: Fix typos.
2493         * dwarf2out.c: Fix typos.
2494         * except.h: Fix typos.
2495         * expr.c: Fix typos.
2496         * fold-const.c: Fix typos.
2497         * gcc.c: Fix typos.
2498         * gcse.c: Fix typos.
2499         * genautomata.c: Fix typos.
2500         * gengtype-state.c: Fix typos.
2501         * gengtype.c: Fix typos.
2502         * genhooks.c: Fix typos.
2503         * gimple-fold.c: Fix typos.
2504         * gimple-pretty-print.c: Fix typos.
2505         * gimple.c: Fix typos.
2506         * gimple.h: Fix typos.
2507         * gimplify.c: Fix typos.
2508         * graphite-interchange.c: Fix typos.
2509         * graphite-sese-to-poly.c: Fix typos.
2510         * ifcvt.c: Fix typos.
2511         * input.c: Fix typos.
2512         * ipa-cp.c: Fix typos.
2513         * ipa-inline-analysis.c: Fix typos.
2514         * ipa-inline-transform.c: Fix typos.
2515         * ipa-inline.c: Fix typos.
2516         * ipa-pure-const.c: Fix typos.
2517         * ipa-ref.h: Fix typos.
2518         * ipa-reference.c: Fix typos.
2519         * ipa-utils.c: Fix typos.
2520         * ipa.c: Fix typos.
2521         * ira-emit.c: Fix typos.
2522         * ira-lives.c: Fix typos.
2523         * lto-streamer.c: Fix typos.
2524         * lto-streamer.h: Fix typos.
2525         * lto-wrapper.c: Fix typos.
2526         * mcf.c: Fix typos.
2527         * mode-switching.c: Fix typos.
2528         * modulo-sched.c: Fix typos.
2529         * plugin.c: Fix typos.
2530         * postreload.c: Fix typos.
2531         * sched-deps.c: Fix typos.
2532         * sel-sched-ir.c: Fix typos.
2533         * sel-sched-ir.h: Fix typos.
2534         * sel-sched.c: Fix typos.
2535         * sese.c: Fix typos.
2536         * stor-layout.c: Fix typos.
2537         * target-hooks-macros.h: Fix typos.
2538         * target.def: Fix typos.
2539         * trans-mem.c: Fix typos.
2540         * tree-eh.c: Fix typos.
2541         * tree-predcom.c: Fix typos.
2542         * tree-sra.c: Fix typos.
2543         * tree-ssa-address.c: Fix typos.
2544         * tree-ssa-loop-ivopts.c: Fix typos.
2545         * tree-ssa-loop-niter.c: Fix typos.
2546         * tree-ssa-math-opts.c: Fix typos.
2547         * tree-ssa-pre.c: Fix typos.
2548         * tree-ssa-propagate.c: Fix typos.
2549         * tree-ssa-reassoc.c: Fix typos.
2550         * tree-ssa-sccvn.c: Fix typos.
2551         * tree-ssa-ter.c: Fix typos.
2552         * tree-ssa-uninit.c: Fix typos.
2553         * tree-ssanames.c: Fix typos.
2554         * tree-vect-generic.c: Fix typos.
2555         * tree-vect-slp.c: Fix typos.
2556         * tree.c: Fix typos.
2557         * tree.h: Fix typos.
2558         * varasm.c: Fix typos.
2559         * varpool.c: Fix typos.
2561 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2563         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
2565 2012-05-29  Richard Guenther  <rguenther@suse.de>
2567         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
2568         for globals.
2569         (add_referenced_var_1): Re-organize.  Assert we are not
2570         called for globals.
2571         (remove_referenced_var): Likewise.
2572         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
2573         * tree-mudflap.c (execute_mudflap_function_ops): Do not
2574         call add_referenced_var on globals.
2575         * matrix-reorg.c (transform_access_sites): Likewise.
2577 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2579         * alias.c (reg_known_value): Make this a VEC.
2580         (reg_known_equiv_p): Make this an sbitmap.
2581         (reg_known_value_size): Remove.
2582         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
2583         set_reg_known_equiv_p): Update for reg_known_value and
2584         reg_known_value_size data structure change.
2585         (init_alias_analysis, end_alias_analysis): Likewise.
2587 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
2589         PR middle-end/53510
2590         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
2591         to avoid leaking memory.  No need to handle memory allocation
2592         failure.  Double string_len on each reallocation instead of adding 2.
2593         * gcov.c (read_line): Likewise.
2595 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
2597         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
2598         New macros.
2599         * config/cris/cris.md ("trap"): Define, enabled for
2600         TARGET_TRAP_USING_BREAK8.
2601         * config/cris/cris.opt (mtrap-using-break8): New option.
2603 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2605         PR c++/25137
2606         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
2607         for C++.
2609 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
2611         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
2612         (Standard Names): Fix typos in documentation of atomic patterns.
2614 2012-05-27  Nathan Sidwell  <nathan@acm.org>
2616         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
2618 2012-05-26  Jason Merrill  <jason@redhat.com>
2620         PR c++/53220
2621         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
2622         about array compound literals.
2624 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2626         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
2627         if CLEANUP_NO_INSN_DEL.
2628         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
2629         from cfg_layout_merge_blocks.
2630         (emit_nop_for_unique_locus_between): New function.
2631         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
2632         (cfg_layout_merge_blocks): Likewise.
2634 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
2635             Paolo Bonzini  <bonzini@gnu.org>
2637         * df-scan.c (df_def_record_1): Assert a parallel must contain an
2638         EXPR_LIST at this point.  Receive the LOC and move its extraction...
2639         (df_defs_record): ... here. Change if-else to a switch statement.
2640         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
2641         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
2642         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
2643         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
2644         regs_invalidated_by_call.
2645         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
2646         df_get_call_refs().
2648 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2650         PR lto/52178
2651         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
2652         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
2654 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2656         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
2657         software floating point emulation.  No longer build the multilibs
2658         with -mstrict-align.
2660 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
2662         PR middle-end/53008
2663         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
2664         accessed indirectly.
2665         (ipa_tm_create_version): Same.
2667 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
2669         PR target/53474
2670         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
2671         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
2673 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2675         PR target/53435
2676         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
2677         (ix86_expand_vec_perm): Use int mode instead of float.
2678         (expand_vec_perm_pshufb): Remove handling of useseless type
2679         conversion.
2681 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2683         PR ada/52362
2684         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
2685         gnu_ld variables to yes.
2686         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
2687         (HAVE_GNU_AS): Likewise.
2688         * config.in: Regenerate.
2689         * configure: Likewise.
2691 2012-05-25  Tristan Gingold  <gingold@adacore.com>
2693         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
2694         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
2695         and preferred_alignment.
2697 2012-05-25  Tristan Gingold  <gingold@adacore.com>
2699         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
2701 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
2703         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
2704         volatile bitfields case.
2706 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
2708         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
2709         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
2710         (adjacent_mem_locations): Move some code to and call...
2711         (get_memref_parts): ...new function.
2712         (mem_locations_overlap): New function.
2713         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
2714         (is_mem_ref): Rename to...
2715         (find_mem_ref): ...this. Return MEM rtx.
2716         (get_store_dest): Remove function.
2717         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
2718         new parameter and adjust calls.
2719         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
2720         mem refs overlap for true_store_to_load_dep_costly.
2721         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
2722         passed to adjacent_mem_locations.
2723         (is_costly_group): Walk resolved dependency list.
2724         (force_new_group): Emit group ending nop for Power6/Power7.
2725         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
2726         (group_ending_nop): New define_insn.
2728 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
2730         Make unwound macro expansion trace less redundant
2731         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
2732         context of macro definition in the trace, when it's redundant.
2733         Update comments.
2735 2012-05-24  Richard Guenther  <rguenther@suse.de>
2737         PR middle-end/53460
2738         * tree-profile.c (tree_profiling): Cleanup the CFG if
2739         execute_fixup_cfg requests it.
2741 2012-05-24  Richard Guenther  <rguenther@suse.de>
2743         * tree-flow.h (create_var_ann): Remove.
2744         * tree-dfa.c (create_var_ann): Remove and inline into its
2745         single caller ...
2746         (add_referenced_var_1): ... here.
2747         * varpool.c (add_new_static_var): Do not call add_referenced_var
2748         for global vars.
2749         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2750         * tree-switch-conversion.c (build_one_array): Likewise.
2751         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
2752         * tree-flow-inline.h (gimple_referenced_vars): Guard against
2753         NULL fn argument.
2754         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
2755         gimple_referenced_vars instead of gimple_in_ssa_p.
2756         (copy_tree_body_r): Likewise.
2757         (setup_one_parameter): Likewise.
2758         (declare_return_variable): Likewise.
2759         (tree_function_versioning): Likewise.
2761 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
2763         PR tree-optimization/53465
2764         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
2765         vr0 into *vr, then vrp_meet that.
2766         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
2767         have any equivalences.
2768         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
2769         first time.
2771 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
2773         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
2774         hard registers.
2775         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
2776         check end_regno - 1 is a hard register.
2778 2012-05-24  Richard Guenther  <rguenther@suse.de>
2780         * varpool.c (add_new_static_var): Remove call to create_var_ann.
2781         * tree-ssa-operands.c (create_vop_var): Likewise.
2783 2012-05-24  Richard Guenther  <rguenther@suse.de>
2785         PR bootstrap/53466
2786         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
2787         handle globals.
2788         (remove_unused_locals): Pass global_unused_vars to
2789         remove_unused_scope_block_p.  Restore code walking all
2790         referenced vars and pruning them.
2792 2012-05-23  Jan Hubicka  <jh@suse.cz>
2794         * tree.h (alias_diag_flags): Remove.
2795         (alias_pair): Remove emitted_diags.
2796         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
2797         symbol_alias_set_t, symbol_alias_set_destroy,
2798         symbol_alias_set_contains, propagate_aliases_backward): Remove.
2799         * toplev.c (compile_file): Do not call finish_aliases_2
2800         * cgraphunit.c (cgraph_process_new_functions): Do not call
2801         finish_aliases_1.
2802         (handle_alias_pairs): Output diagnostics about aliases to externals.
2803         (assemble_thunks_and_aliases): Use do_assemble_alias.
2804         (output_weakrefs): Likewise.
2805         (finalize_compilation_unit): Do not call finish_aliases_1.
2806         * ipa.c (symtab_remove_unreachable_nodes): De not call
2807         remove_unreachable_alias_pairs.
2808         * varasm.c (do_assemble_alias): Export.
2809         (symbol_alias_set_create, symbol_alias_set_destroy,
2810         symbol_alias_set_contains, symbol_alias_set_insert,
2811         propagate_aliases_forward, propagate_aliases_backward,
2812         propagate_aliases_backward, trivially_visible_alias,
2813         trivially_defined_alias, remove_unreachable_alias_pairs,
2814         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
2815         * output.h (do_assemble_alias): Declare.
2816         * varpool.c (varpool_remove_unreferenced_decls): Do not call
2817         finish_aliases_1.
2819 2012-05-23  Martin Jambor  <mjambor@suse.cz>
2821         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
2823 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2825         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
2826         size handling.
2827         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
2828         (iterative_hash_gimple_type): Adjust comment.
2829         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
2830         domain for an array type instead of the domain type itself.
2832 2012-05-23  Richard Guenther  <rguenther@suse.de>
2834         PR tree-optimization/53438
2835         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
2837 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
2839         PR target/53448
2840         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
2841         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
2842         ASM_OUTPUT_ALIGN.
2844 2012-05-23  Richard Guenther  <rguenther@suse.de>
2846         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
2847         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
2848         via the global_unused_vars bitmap.
2849         (remove_unused_locals): Handle global vars in local-decls via
2850         a global_unused_vars bitmap instead of the used flag in the
2851         var annotation.  Simplify global variable handling and removal.
2853 2012-05-22  Jan Hubicka  <jh@suse.cz>
2855         PR middle-end/53426
2856         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
2857         from other partitions.
2859 2012-05-22  Jan Hubicka  <jh@suse.cz>
2861         PR middle-end/53161
2862         * symtab.c (symtab_register_node): Fix ordering issue.
2864 2012-05-22  Steven Drake <sbd@NetBSD.org>
2866         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
2868 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
2870         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
2871         Use strip_name_encoding target hook.
2873 2012-05-22  Richard Guenther  <rguenther@suse.de>
2875         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
2876         (init_function_for_compilation): Remove.
2877         * tree-dfa.c (find_vars_r): Take struct function argument.
2878         (find_referenced_vars_in): Adjust.
2879         * tree-ssa-operands.c (clobber_stats): Remove.
2880         (create_vop_var): Take struct function argument.  Mark
2881         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
2882         (init_ssa_operands): Take struct function argument.
2883         (fini_ssa_operands): Do not dump dead stats.
2884         * tree-ssa-operands.h (init_ssa_operands): Take struct function
2885         argument.
2886         * cgraphunit.c (init_lowered_empty_function): Adjust.
2887         * lto-streamer-in.c (input_cfg): Likewise.
2888         * tree-inline.c (initialize_cfun): Likewise.
2889         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
2890         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
2891         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
2892         virtual operands are not registers.
2894 2012-05-22  Richard Guenther  <rguenther@suse.de>
2896         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
2898 2012-05-22  Richard Guenther  <rguenther@suse.de>
2900         PR middle-end/53437
2901         * tree-inline.c (setup_one_parameter): Create a dummy init
2902         statement for unused parameters when not optimizing.
2904 2012-05-22  Richard Guenther  <rguenther@suse.de>
2906         * tree-flow.h (add_referenced_var_1): Declare.
2907         (add_referenced_var): Define.
2908         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
2909         (add_referenced_var): Rename to ...
2910         (add_referenced_var_1): ... this.  Take struct function argument.
2912 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2914         PR target/53334
2915         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
2916         * config/arm/arm.c (arm_validize_comparison): Define.
2917         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
2918         arm_validize_comparison.
2919         ("cbranchdi4"): Likewise.
2920         ("cstoredi4"): Likewise.
2921         ("movsicc"): Likewise.
2922         ("movsfcc"): Likewise.
2923         ("movdfcc"): Likewise.
2925 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
2927         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
2928         the mw_reg_pool size.
2930 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
2932         PR tree-optimization/53336
2933         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
2934         non-integer integral types to offset type and vice versa.
2936 2012-05-22  Alan Modra  <amodra@gmail.com>
2938         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2939         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2940         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
2941         V_SAVE_INLINE): Delete.
2942         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
2943         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
2944         For ELF targets, use out-of-line restores for -Os and any number
2945         of regs if the restore exits, and out-of-line gp save for two or
2946         more regs.  Use save_reg_p to test for holes in reg restore set.
2947         Replace "#if" with "if".
2949 2012-05-22  Alan Modra  <amodra@gmail.com>
2951         * config/rs6000/rs6000.c (save_reg_p): New function.
2952         (first_reg_to_save, first_fp_reg_to_save): Use it here.
2953         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
2954         (emit_frame_save): Use gen_frame_store.
2955         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
2956         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
2957         vrsave and toc.
2958         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
2959         vrsave, toc, gp and fp restores.
2961 2012-05-22  Alan Modra  <amodra@gmail.com>
2963         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
2964         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
2965         Move function pointer variables after forward declarations.
2966         (rs6000_builtin_support_vector_misalignment): Make static.
2967         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
2968         (rs6000_function_value, rs6000_can_eliminate): Likewise.
2970 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
2972         PR rtl-optimization/53373
2973         * caller-save.c (save_call_clobbered_regs): Look into a possible
2974         PARALLEL manually rather than using single_set on a call insn.
2976 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
2978         PR tree-optimization/53436
2979         * omp-low.c (omp_build_component_ref): New function.
2980         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
2982 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
2984         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
2985         arguments to bool.
2986         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
2987         Do not print '.' here.  Output operand lossage error for unhandled
2988         sizes.  Move.
2989         <case '*'>: Move.
2990         <case '&'>: Ditto.
2991         <case 'Y'>: Ditto.
2992         <case 'z'>: Hardcode "code" argument into error strings.
2993         <case 'Z'>: Ditto.
2994         <case 'D'>: Merge AVX and non-AVX codes.
2995         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
2996         Update call to put_condition_code.
2998 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
3000         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
3001         CC_STATUS_INIT.
3002         (clzsi2): New expander.
3003         (*clzsi2_68k): New insn.
3004         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
3006 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
3008         * gimple.h (gimple_set_in_transaction): Remove.
3009         (gimple_in_transaction): Look in BB instead.
3010         (gimple_statement_base): Remove in_transaction field.
3011         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
3012         * trans-mem.c (compute_transaction_bits): Place transaction bit
3013         information into basic blocks.
3015 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
3017         * expr.c (get_def_for_expr_class): Define only if
3018         HAVE_conditional_move.
3019         (convert_tree_comp_to_rtx): Likewise.
3021 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
3023         PR target/53399
3024         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
3025         for TARGET_BMI.
3026         (ffssi2_no_cmove): Ditto.
3027         (*ffs<mode>_1): Remove insn pattern.
3028         (*tzcnt<mode>_1): New insn pattern.
3029         (*bsf<mode>1): Ditto.
3031 2012-05-21  Richard Guenther  <rguenther@suse.de>
3033         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
3034         more referenced vars.
3035         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
3036         flag on variables that have a var-annotation.
3038 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3040         PR c/53418
3041         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
3042         from folded operands before wrapping another around the
3043         conditional expression.
3045 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
3047         PR tree-optimization/53366
3048         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
3049         tests if complex_numbers == 2, but there are non-complex number loads
3050         too.
3052         PR tree-optimization/53409
3053         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
3054         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
3056         PR tree-optimization/53410
3057         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
3058         instead of build_int_cst (type, 0) where vector types might be
3059         involved. Instead of build_int_cst (type, 1) convert the original
3060         integer_onep argument to the desired type.
3062 2012-05-21  Michael Matz  <matz@suse.de>
3064         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
3065         (simplify_test_exp): Handle one more case of distributive law,
3066         decrease cost threshold.
3067         (tests_attr_p, get_attr_order): New functions.
3068         (optimize_attrs): Use topological order, inline only cheap values.
3069         (write_attr_set): Reset our_known_true after some time.
3071 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3073         PR target/53425
3074         * config/i386/i386.c (type_natural_mode): Warn passing SSE
3075         vector argument without SSE enabled changes the ABI.
3077 2012-05-21  Richard Guenther  <rguenther@suse.de>
3079         PR tree-optimization/53408
3080         * tree-vect-loop.c (vectorizable_induction): Properly check
3081         the restriction that we cannot handle induction results from
3082         the inner loop outside of the outer loop.
3084 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3086         PR target/53416
3087         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
3088         (UNSPECV_RDRAND): This.
3089         (rdrand<mode>_1): Updated.
3091 2012-05-21  Richard Guenther  <rguenther@suse.de>
3093         * tree-loop-distribution.c (can_generate_builtin): Reject
3094         volatile stmts.
3096 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
3098         * Makefile.in (options.c): Add options.h to included header
3099         files, before tm.h.
3101 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
3103         * tree-parloops.c : Add myself to contributors, update
3104         TODO list, add link to wiki.
3106 2012-05-21  Alan Modra  <amodra@gmail.com>
3108         * config/rs6000/predicates.md (input_operand): Don't match
3109         constant pool addresses.  Remove label_ref, high and plus from
3110         match_code list.  Remove redundant CONSTANT_P test.
3111         (splat_input_operand): Similarly update match_code list.
3112         (small_toc_ref): New predicate.
3113         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
3114         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
3115         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
3116         register checks to..
3117         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
3118         generated by create_TOC_reference.
3119         (rs6000_legitimize_address): Update cerate_TOC_reference call.
3120         (rs6000_delegitimize_address): Handle new rtl for toc refs.
3121         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
3122         (use_toc_relative_ref): New function, split out from..
3123         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
3124         create_TOC_reference calls.
3125         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
3126         of medium/large model toc addresses.  Use use_toc_relative_ref.
3127         (print_operand): Formatting, style.  Adjust for toc changes.
3128         (print_operand_address): Likewise.
3129         (rs6000_output_addr_const_extra): Likewise.
3130         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
3131         than a PLUS.  Use this formulation for both high and low part
3132         of -mcmodel=medium/large toc reference too.  Before reload,
3133         always use the small model formulation.
3134         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
3135         a PLUS in high part of addresses here.
3136         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3137         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3138         (largetoc_high, largetoc_low): Move earlier.  Cope when no
3139         base reg available.
3140         (largetoc_high_plus): New insn.
3141         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
3142         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
3143         (tocref): ..instead do so here, new insn and split.
3145 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3147         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3148         RDRND, F16C and FSGSBASE.
3150 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3152         PR rtl-optimzation/53373
3153         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
3154         call pattern.  Update split patterns.
3155         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
3156         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
3158 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
3160         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
3161         for outer loops.
3163 2012-05-18  Jan Hubicka  <jh@suse.cz>
3165         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
3166         (cgraph_process_new_functions): Process also aliases.
3167         * lto-streamer-out.c (struct sets): Remove.
3168         (trivally_defined_alias): Remove.
3169         (output_alias_pair_p): Remove.
3170         (output_unreferenced_globals): Remove.
3171         (produce_symtab); Do not handle alias pairs.
3172         (produce_asm_for_decls): Likewise.
3173         * lto-streamer-in.c (input_alias_pairs): Remove.
3174         (lto_read_body): Do not input alias pairs.
3175         (lto_input_constructors_and_inits): Remove.
3177 2012-05-18  Jan Hubicka  <jh@suse.cz>
3179         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
3180         aliases.
3182 2012-05-18  Jan Hubicka  <jh@suse.cz>
3184         * cgraphbuild.c (record_reference): Update.
3185         * lto-cgraph.c (lto_output_varpool_node): External vars
3186         are not in other partition even if they are not output
3187         in current partition.
3188         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
3189         argument; fix.
3190         (canonicalize_constructor_val): Take FROM_DECL argument.
3191         (fold_ctor_reference, fold_string_cst_ctor_reference,
3192         fold_array_ctor_reference, fold_nonarray_ctor_reference,
3193         fold_ctor_reference): Likewise.
3194         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
3195         * gimple.h (gimple_fold_builtin): Likewise.
3197 2012-05-18  Olivier Hainque  <hainque@adacore.com>
3199         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
3200         $(libsubdir) as libexecsubdir.
3202 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3204         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
3205         relied on signed overflow behavior.
3207 2012-05-18  Richard Guenther  <rguenther@suse.de>
3209         PR tree-optimization/53346
3210         * tree-loop-distribution.c (ldist_gen): Make sure to apply
3211         builtin transform even when only a single partition with
3212         all reads/writes exists.
3214 2012-05-18  Richard Guenther  <rguenther@suse.de>
3216         PR tree-optimization/53390
3217         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
3218         strided loads.
3220 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3222         * tree-ssa-reassoc.c (bip_map): Remove decl.
3223         (completely_remove_stmt): Remove function.
3224         (remove_def_if_absorbed_call): Remove function.
3225         (remove_visited_stmt_chain): Remove __builtin_powi handling.
3226         (possibly_move_powi): Remove function.
3227         (rewrite_expr_tree): Remove calls to possibly_move_powi.
3228         (rewrite_expr_tree_parallel): Likewise.
3229         (attempt_builtin_powi): Build multiplies explicitly rather than
3230         relying on the ops vector and rank system.
3231         (transform_stmt_to_copy): New function.
3232         (transform_stmt_to_multiply): Likewise.
3233         (reassociate_bb): Handle leftover operations after __builtin_powi
3234         optimization; build a final multiply if necessary.
3236 2012-05-18  Jan Hubicka  <jh@suse.cz>
3238         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
3239         (mark_functions_to_output): Fix sanity check.
3240         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
3242 2012-05-18  Richard Guenther  <rguenther@suse.de>
3244         * tree-flow.h (mark_symbols_for_renaming): Remove.
3245         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
3246         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
3247         (copy_debug_stmt): Likewise.
3248         (expand_call_inline): Likewise.
3249         (declare_return_variable): Mark the return variable for renaming
3250         if necessary.
3252 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
3254         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
3255         prototype.
3256         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
3257         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
3258         (ashrdi3,lshrdi3): Likewise.
3259         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
3261 2012-05-18  Meador Inge  <meadori@codesourcery.com>
3263         PR rtl-optimization/53352
3264         * cse.c (equiv_constant): Ignore paradoxical subregs.
3266 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
3268         PR rtl-optimization/53125
3269         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
3270         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
3271         die in the basic block.  Correctly top off REG_FREQ and
3272         REG_FREQ_CALLS_CROSSED.
3273         Remove do_not_gen.
3274         (regstat_compute_ri): Allocate and free local_live_last_luid.
3275         Remove do_not_gen.
3276         (regstat_bb_compute_calls_crossed): Correctly top off
3277         REG_FREQ_CALLS_CROSSED.
3279 2012-05-17  Jan Hubicka  <jh@suse.cz>
3281         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
3282         constructor over decl without.
3283         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
3284         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
3285         * cgraphunit.c (process_function_and_variable_attributes): Finalize
3286         extrnal decls.
3287         (mark_functions_to_output): Also accept bodies for functions with
3288         clones.
3289         (output_in_order): Skip external vars.
3290         * lto-cgraph.c (lto_output_node): External functions are never in other
3291         partition.
3292         (lto_output_varpool_node): Likewise.
3293         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
3294         forgotten initializers.
3295         * ipa.c (process_references): Handle external vars.
3296         (symtab_remove_unreachable_nodes): Update to handle external vars.
3297         (varpool_externally_visible_p): External vars are externally visible.
3298         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3299         * varpool.c (varpool_remove_node): Remove constructor.
3300         (decide_is_variable_needed): Handle externals.
3301         (varpool_remove_unreferenced_decls): Likewise.
3303 2012-05-17  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3305         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
3306         (enable_warning_as_error): Do not special case Wuninitialized.
3307         * optc-gen.awk: Add sanity checks.
3309 2012-05-17  Jan Hubicka   <jh@suse.cz>
3311         * ipa-reference.c (is_proper_for_analysis): Do not check flags
3312         that might change as result of global optimization.
3313         (analyze_function): Do not check analyzed and externally_visible
3314         flags; be happy about address dereferences.
3315         (propagate): Prune all_module_statics so it really contains just
3316         statics; prune all the local summaries.
3317         (ipa_reference_write_optimization_summary): Simplify.
3319 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
3321         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
3322         * config/m68k/m68k-tables.opt: Regenerated.
3323         * doc/invoke.texi (M680x0 Options): Document.
3325 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
3326             Patrick Marlier  <patrick.marlier@gmail.com>
3328         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
3329         indirect calls.
3331 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3333         * configure: Regenerated.
3335 2012-05-16  Andrew Pinski  <apinski@cavium.com>
3337         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
3338         GIMPLE_ASSIGN.
3340 2012-05-16  David S. Miller  <davem@davemloft.net>
3342         * jump.c (delete_related_insns): If we remove a CALL, make sure
3343         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
3345 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3347         PR tree-optimization/53217
3348         * tree-ssa-reassoc.c (bip_map): New static variable.
3349         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
3350         (attempt_builtin_powi): Save feeding multiplies on a stack.
3351         (reassociate_bb): Create and destroy bip_map.
3353 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3355         * Makefile.in (install-no-fixedincludes): New target, former toplevel
3356         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
3357         Add comments and improve stamp preservation across the whole sequence.
3358         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
3360 2012-05-16  Richard Guenther  <rguenther@suse.de>
3362         * tree-inline.c (insert_init_stmt): Do not call
3363         mark_symbols_for_renaming.
3364         (setup_one_parameter): Avoid initializing unused parameters.
3365         (declare_return_variable): Properly handle DECL_BY_REFERENCE
3366         return vars in SSA form.
3368 2012-05-16  Richard Guenther  <rguenther@suse.de>
3370         * tree-flow.h (get_virtual_var): Remove.
3371         * tree-dfa.c (get_virtual_var): Likewise.
3373 2012-05-16  Richard Guenther  <rguenther@suse.de>
3375         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
3376         Remove set-only bitmap of new names.
3377         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
3378         CFG hooks.
3379         * tree-flow.h (ssa_names_to_replace): Remove.
3380         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
3382 2012-05-16  Richard Guenther  <rguenther@suse.de>
3384         PR tree-optimization/53364
3385         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3386         detect a view-conversion of the decl.
3388 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3390         PR preprocessor/7263
3391         * c-tree.h (enum c_declspec_word): Declare new enum.
3392         (struct c_declspecs::locations): New member.
3393         (declspecs_add_qual, declspecs_add_scspec)
3394         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
3395         location parameter.
3396         * c-decl.c (build_null_declspecs): Initialize the new struct
3397         c_declspecs::locations member.
3398         (declspecs_add_addrspace): Take a location parameter for the
3399         address space.  Store it onto declaration specifiers.
3400         (declspecs_add_qual): Likewise, take a location parameter for the
3401         qualifier.
3402         (declspecs_add_type): Likewise, take a location parameter for the
3403         type specifier.
3404         (declspecs_add_scspec): Likewise, take a location parameter for
3405         the storage class specifier.
3406         (declspecs_add_attrs): Likewise, take a location parameter for the
3407         first attribute.
3408         (declspecs_add_alignas): Likewise, take a location parameter for
3409         the alignas token.
3410         (finish_declspecs): For diagnostics, use the location of the
3411         relevant declspec, instead of the global input_location.
3412         * c-parser.c (c_parser_parameter_declaration): Pass the precise
3413         virtual location of the declspec to the declspecs-setters.
3414         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
3415         repeatedly.
3417 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3419         * configure.ac: Stack protector enabling for Android targets.
3420         * configure: Regenerate.
3422 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
3424         * ira.c (pseudo_move_insn): Delete.
3425         (find_moveable_pseudos): Don't set it.
3426         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
3427         the definitions of the original pseudo.  Delete all of them.
3429 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3431         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3432         PROCESSOR_PPC8548.
3433         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
3434         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
3435         * config/rs6000/8540.md: indicate that the units/patterns apply to
3436         ppc8548 as well.
3438         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
3439         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
3440         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
3441         related flags,  check that what is queried is supported by the selected
3442         configuration. Rework the single/double_float and MASK_STRING resets to
3443         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
3444         costs for PROCESSOR_PPC8548 as well.
3445         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
3446         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
3447         statement instead of a sequence of ifs.
3449         * config/rs6000/rs6000.h (TARGET_E500): Remove.
3450         (TARGET_NO_LWSYNC): Adjust accordingly.
3451         * config/rs6000/e500.h (TARGET_E500): Remove.
3452         (CHECK_E500_OPTIONS): Adjust accordingly.
3453         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
3454         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
3455         * config/rs6000/linuxspe.h: Likewise.
3456         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
3457         superfluous comments.
3458         * config/rs6000/e500-double.h: Remove.
3460         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
3461         default to with_cpu=8548 if --enable-e500-double, and to 8540
3462         otherwise.
3463         (set misc flags section): For powerpc*|rs6000*, remove inclusion
3464         of e500-double.h for --enable-e500-double.
3466 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3468         * Makefile.in (s-header-vars): Resort to -n instead of trailing
3469         -e d in sed invocation.
3471 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
3473         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
3474         source-code.
3475         * doc/tm.texi: Regenerate.
3477 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3479         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
3481 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
3483         PR target/53358
3484         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3485         that operands[2] is either immediate, or q_regs_operand.
3487 2012-05-15  Richard Guenther  <rguenther@suse.de>
3489         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
3490         (assemble_thunk): Likewise.  Manually rename and register
3491         function arguments.
3493 2012-05-15  Richard Guenther  <rguenther@suse.de>
3495         PR tree-optimization/53355
3496         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
3497         by constants.
3499 2012-05-15  Tristan Gingold  <gingold@adacore.com>
3501         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
3503 2012-05-15  Richard Guenther  <rguenther@suse.de>
3505         * gimple.c (gimple_set_modified): Move ...
3506         * gimple.h (gimple_set_modified): ... here.
3508 2012-05-15  Tristan Gingold  <gingold@adacore.com>
3510         * ira-color.c (move_spill_restore): Add a guard.
3512 2012-05-15  Tristan Gingold  <gingold@adacore.com>
3514         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
3515         plus_constant.
3517 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3519         * gimplify.c (gimplify_init_constructor): Do a block move for very
3520         small objects as well.
3522 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
3524         * ira.c (find_moveable_pseudos): Skip registers whose
3525         DF_REG_EQ_USE_COUNT is nonzero.
3527 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
3529         * doc/md.texi (fma): Define to only be applicable for single rounding.
3531 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
3533         PR target/46098
3534         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3535         generate target register for "load" class builtins.
3537         Revert:
3538         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
3540         PR target/46098
3541         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3542         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3543         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3544         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3545         (<sse>_movu<ssemodesuffix>): New expander.
3546         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3547         (avx_movdqu<avxmodesuffix>): New expander.
3548         (*sse2_movdqu): Rename from sse2_movdqu.
3549         (sse2_movdqu): New expander.
3551 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
3553         PR target/52607
3554         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
3555         (canonicalize_perm): ... new function.
3556         (expand_vec_perm_2vperm2f128_vshuf): New function.
3557         (ix86_expand_vec_perm_const_1): Call it.
3559 2012-05-14  Andrew Pinski  <apinski@cavium.com>
3560             H.J. Lu  <hongjiu.lu@intel.com>
3561             Jakub Jelinek  <jakub@redhat.com>
3563         PR target/53315
3564         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
3565         (xbegin): Updated.
3567 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
3569         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3570         lineno 1 the same as lineno 0 before first start file directive.
3571         (optimize_macinfo_range): Likewise.
3573         * dwarf2out.c (have_macinfo): Define.
3574         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3575         attribute, don't force empty compilation unit and don't emit any
3576         .debug_macinfo/.debug_macro section if macinfo_table is empty.
3578 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
3580         PR target/53344
3581         * config/avr/avr.c (avr_const_address_lo16): Remove.
3582         (avr_assemble_integer):  Print ".byte lo8(x)",
3583         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
3584         .warning if 3-byte address is assembled.
3585         * doc/extend.texi (AVR Named Address Spaces): Document that
3586         binutils 2.23 is needed to assemble 3-byte addresses.
3588 2012-05-14  Richard Guenther  <rguenther@suse.de>
3590         * tree-vect-data-refs.c (vect_setup_realignment): Remove
3591         call to mark_symbols_for_renaming.
3592         (vect_permute_load_chain): Likewise.
3593         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
3594         instead of calling mark_symbols_for_renaming.
3595         * tree-vect-stmts.c (read_vector_array): Remove call to
3596         mark_symbols_for_renaming.
3597         (write_vector_array): Likewise.
3598         (vectorizable_call): Likewise.
3599         (vectorizable_store): Likewise.
3600         (vectorizable_load): Likewise.
3601         * matrix-reorg.c (transform_allocation_sites): Likewise.
3602         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
3603         (create_expression_by_pieces): Likewise.
3605 2012-05-14  Richard Guenther  <rguenther@suse.de>
3607         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
3608         of statements for renaming.
3609         (force_gimple_operand_1): Likewise, consistently for both
3610         calls to force_gimple_operand and force_gimple_operand_gsi.
3612 2012-05-14  Richard Guenther  <rguenther@suse.de>
3614         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
3615         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
3616         to update_ssa.
3617         (expand_omp_for): Likewise.
3618         (expand_omp_for_generic): Adjust conditional add to referenced vars.
3619         Use make_rename_temp for temporaries that should be rewritten into
3620         SSA form.
3621         (expand_omp_for_static_nochunk): Likewise.
3622         (expand_omp_atomic_pipeline): Likewise.
3624 2012-05-14  Richard Guenther  <rguenther@suse.de>
3626         PR tree-optimization/53331
3627         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
3628         strided loads.
3629         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
3631 2012-05-14  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3633         PR 53063
3634         * doc/options.texi: (LangEnabledBy): Document it.
3635         * optc-gen.awk: Handle LangEnabledBy.
3636         * opth-gen.awk: Generate declaration for lang-specific functions.
3637         * opt-read.awk: Record lang numbers.
3638         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
3639         (lang_sanitized_name): New.
3641 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3643         * attribs.c (decl_attributes): Avoid emitting a warning if
3644         ATTR_FLAG_BUILT_IN.
3645         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
3646         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
3647         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
3648         define a string "1".
3649         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
3650         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
3651         BUILT_IN_STRCPY): Use it for these functions.
3652         * postreload.c (reload_combine): Deal with SETs inside
3653         CALL_INSN_FUNCTION_USAGE.
3654         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
3655         Look for REG_RETURNED notes and use a cheap restore if possible.
3656         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
3657         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
3658         * ira-build.c (ira_create_allocno, create_cap_allocno,
3659         propagate_allocno_info, propagate_some_info_from_allocno,
3660         copy_info_to_removed_store_destination, ira_flattening): Handle it.
3661         * ira-lives.c (pseudo_regno_single_word_and_live_p,
3662         find_call_crossed_cheap_reg): New static functions.
3663         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
3664         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
3665         a REG_RETURNED note in that case.
3666         * ira.c (setup_reg_renumber): Change assert to allow cases where
3667         allocnos only cross calls for which they are cheap to restore.
3668         * ira-costs.c (ira_tune_allocno_costs): Compare
3669         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
3670         than 0.
3671         * reg-notes.def (REG_RETURNED): New note.
3672         * cse.c (cse_insn): Likewise.
3673         * sched-deps.c (sched_analyze_insn): Likewise.
3674         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
3675         * calls.c (decl_return_flags): New static function.
3676         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
3677         functions that return one of their arguments.
3678         * regcprop.c (struct kill_set_value_data): New.
3679         (kill_set_value): Interpret data as a pointer to such a struct.
3680         Do nothing if the caller wants the register to be ignored.
3681         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
3683 2012-05-14  Richard Guenther  <rguenther@suse.de>
3685         PR tree-optimization/53340
3686         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
3688 2012-05-14  Richard Guenther  <rguenther@suse.de>
3690         * gimplify.c (gimplify_expr): Remove odd code.
3692 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3694         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
3695         into a PLUS_EXPR byte offset.
3697         * tree-ssa-pre.c (can_value_number_call): Delete.
3698         (compute_avail): Skip all statements with side effects.
3699         <GIMPLE_CALL>: Skip calls to internal functions.
3701 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
3703         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
3705 2012-05-13  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3707         * common.opt (Wtype-limits): Use EnabledBy.
3709 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
3711         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
3712         (pushtf splitter): Ditto.
3713         (movtf): Ditto.
3714         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
3715         (<code>tf2): Enable for TARGET_SSE.
3716         (*absnegtf2_sse): Ditto.
3717         (copysign<mode>3): Enable TFmode for TARGET_SSE.
3718         (copysign<mode>3_const): Ditto.
3719         (copysign<mode>3_var): Ditto.
3720         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
3721         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
3722         (*<code>tf3): Ditto.
3723         * config/i386/i386.c (struct builtin_description bdesc_args)
3724         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
3725         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
3726         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
3727         Emit a normal call if SSE isn't available.
3729 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
3731         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
3732         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3733         (<code><mode>3): Ditto.
3734         (*andnot<mode>3): Ditto.
3735         (*andnottf3): Ditto.
3736         (*<code><mode>3): Ditto.
3737         (<code>tf3): Ditto.
3739 2012-05-13  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3741         * optc-gen.awk: Error instead of warning for conflicting help.
3743 2012-05-12  Jason Merrill  <jason@redhat.com>
3745         PR debug/53235
3746         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
3747         comdat types.
3749 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3751         * function.c (requires_stack_frame_p): If the function can throw
3752         non-call exceptions, return true if the insn can throw internally.
3754 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
3756         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
3758 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
3760         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3761         ORDERED and UNORDERED conditions.
3763 2012-05-11  Richard Guenther  <rguenther@suse.de>
3765         * tree-flow.h (referenced_var_check_and_insert): Remove.
3766         (find_new_referenced_vars): Likewise.
3767         * tree-dfa.c (referenced_var_check_and_insert): Make static.
3768         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
3769         * tree-inline.c (copy_bb): Use find_referenced_vars_in
3770         instead of find_new_referenced_vars.
3771         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3773 2012-05-11  Richard Guenther  <rguenther@suse.de>
3775         * tree-pass.h (pass_rest_of_compilation,
3776         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
3777         Remove.
3778         * passes.c (pass_all_optimizations, pass_postreload,
3779         pass_all_early_optimizations): Make static.
3780         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
3781         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
3782         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
3783         (delete_tree_ssa): Do not call fini_phinodes.
3784         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
3786 2012-05-11  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3788         PR 53063
3789         * doc/options.texi (EnabledBy): Document
3790         * opts.c: Include opts.h and options.h before tm.h.
3791         (finish_options): Do not handle some sub-options here...
3792         (common_handle_option): ... instead call common_handle_option_auto
3793         here.
3794         * optc-gen.awk: Handle EnabledBy.
3795         * opth-gen.awk: Declare common_handle_option_auto.
3796         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
3797         (Wmaybe-uninitialized): Likewise.
3798         (Wunused-but-set-variable): Likewise.
3799         (Wunused-function): Likewise.
3800         (Wunused-label): Likewise.
3801         (Wunused-value): Likewise.
3802         (Wunused-variable): Likewise.
3803         * opt-read.awk: Create opt_numbers array.
3805 2012-05-11  Richard Guenther  <rguenther@suse.de>
3807         PR tree-optimization/53295
3808         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
3809         strides.
3810         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
3811         strides when analyzing data-references in a loop context.
3812         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
3813         non-constant strides for now.
3814         (vect_enhance_data_refs_alignment): Ignore data references
3815         that are strided loads.
3816         (vect_analyze_data_ref_access): Handle non-constant strides.
3817         (vect_check_strided_load): Verify the data-reference is a load.
3818         (vect_analyze_data_refs): Restructure to make strided load
3819         support not dependent on gather support.
3820         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
3821         when doing strided or gather loads.
3822         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
3823         integer_zerop to compare stride with zero.
3825 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3827         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
3829 2012-05-11  Jan Hubicka  <jh@suse.cz>
3831         PR bootstrap/53300
3832         * varpool.c (varpool_assemble_decl): Also output constat pool entries
3833         that output_constant_pool missed.
3835 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
3837         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
3838         MULTILIB_EXTRA_OPTS.
3840 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
3842         PR target/53291
3843         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
3845 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
3847         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
3848         optimization for TARGET_AVX.
3849         (*movti_internal_sse): Ditto.
3850         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3851         (*movdi_internal): Ditto.
3852         (*movsi_internal): Ditto.
3853         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
3854         (*movdf_internal_rex64): Ditto.
3855         (*movfd_internal): Ditto.
3856         (*movsf_internal): Ditto.
3857         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
3859 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3861         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
3862         reference as size attribute.
3864 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3865             Tristan Gingold  <gingold@adacore.com>
3867         * doc/md.texi (Standard Names): Document probe_stack_address.
3868         * explow.c (emit_stack_probe): Handle probe_stack_address.
3869         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
3870         (UNSPECV_PROBE_STACK_RANGE): Likewise.
3871         (probe_stack_address): New insn.
3872         (probe_stack_range): Likewise.
3873         * config/ia64/ia64.c: Include common/common-target.h.
3874         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
3875         checking is enabled.
3876         (ia64_emit_probe_stack_range): New function.
3877         (output_probe_stack_range): Likewise.
3878         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
3879         builtin stack checking is enabled.
3880         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
3881         and UNSPECV_PROBE_STACK_ADDRESS.
3882         (unknown_for_bundling_p): New predicate.
3883         (group_barrier_needed): Use important_for_bundling_p.
3884         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
3885         (issue_nops_and_insn): Likewise.
3886         (bundling): Likewise.
3887         (final_emit_insn_group_barriers): Likewise.
3888         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
3889         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
3890         (STACK_CHECK_PROTECT): Likewise.
3891         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3893 2012-05-10  Jan Hubicka  <jh@suse.cz>
3895         * ipa-inline.c (update_all_callee_keys): Remove.
3896         (inline_small_functions): Simplify priority updating.
3898 2012-05-10  Jan Hubicka  <jh@suse.cz>
3900         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
3902 2012-05-10  Jan Hubicka  <jh@suse.cz>
3904         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
3905         (symtab_remove_unreachable_nodes): ... this one.
3906         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
3907         * cgraphunit.c (ipa_passes): Update.
3908         * cgraphclones.c (cgraph_materialize_all_clones): Update.
3909         * cgraph.c (cgraph_release_function_body): Only turn initial
3910         into error mark when initial was previously set.
3911         * ipa-inline.c (ipa_inline): Update.
3912         * ipa.c: Include ipa-inline.h
3913         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
3914         (enqueue_node): New function.
3915         (process_references): Update.
3916         (symtab_remove_unreachable_nodes): Cleanup.
3917         * passes.c (execute_todo, execute_one_pass): Update.
3919 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3921         PR rtl-optimization/53125
3922         * ira.c (ira): Call find_moveable_pseudos and
3923         move_unallocated_pseudos if only ira_conflicts_p is true.
3925 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
3927         * config/i386/i386.md (*movoi_internal_avx): Handle
3928         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
3929         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3930         (*movti_internal_sse): Ditto.
3931         (*movtf_internal): Ditto.
3932         * config/i386/sse.md (ssePSmode): New mode attribute.
3933         (*move<mode>_internal): Use ssePSmode.
3934         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
3935         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
3936         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
3937         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
3939 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3941         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
3942         DECL_ORIGINAL_TYPE if it is present.
3944 2012-05-10  Nick Clifton  <nickc@redhat.com>
3946         PR target/53120
3947         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
3948         a "0" constraint to being a (match_dup 0).
3950 2012-05-10  Richard Guenther  <rguenther@suse.de>
3952         * stor-layout.c (byte_from_pos): Amend comment.
3954 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3956         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
3957         Document requirement to call in constructors.
3959         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
3961 2012-05-10  Richard Guenther  <rguenther@suse.de>
3963         * tree.h (TYPE_IS_SIZETYPE): Remove.
3964         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
3965         (extract_muldiv_1): Likewise.
3966         * gimple.c (gtc_visit): Likewise.
3967         (gimple_types_compatible_p): Likewise.
3968         (iterative_hash_canonical_type): Likewise.
3969         (gimple_canonical_types_compatible_p): Likewise.
3970         * gimplify.c (gimplify_one_sizepos): Likewise.
3971         * print-tree.c (print_node): Likewise.
3972         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
3974 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
3976         PR target/52908
3977         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
3978         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
3979         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
3980         instead of xop_mulv2div2di3_low.
3981         (xop_p<macs>dql): Fix vec_select selector.
3982         (xop_p<macs>dqh): Ditto.
3983         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
3984         (xop_mulv2div2di3_high): Ditto.
3986 2012-05-09  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3988         PR c++/53289
3989         * diagnostic.h (diagnostic_context): Add last_location.
3990         * diagnostic.c (diagnostic_initialize): Initialize it.
3991         (diagnostic_show_locus): Use it.
3993 2012-05-09  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3995         * doc/extend.texi (Function Attributes): Point xref to section
3996         about Pragmas.
3998 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
4000         * config/i386/i386.c (*movdf_internal_rex64): Remove
4001         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4002         Calculate "mode" attribute according to
4003         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4004         (*movdf_internal): Ditto.
4006 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
4008         PR target/44141
4009         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
4010         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
4011         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4012         or when optimizing for size.
4013         * config/i386/sse.md (*mov<mode>_internal): Remove
4014         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4015         Calculate "mode" attribute according to optimize_function_for_size_p
4016         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4017         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
4018         depending on the mode of the instruction.  Calculate "mode" attribute
4019         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
4020         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
4021         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
4023 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
4025         PR target/53256
4026         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
4027         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
4028         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
4029         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
4030         (expand_prologue): Move initialization of cfun->machine->is_naked,
4031         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
4032         (avr_set_current_function): ...this new static function.
4033         (TARGET_SET_CURRENT_FUNCTION): New define.
4034         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
4035         checking attributes of current_function_decl.
4036         (avr_regs_to_save): Ditto.
4037         (signal_function_p): Rename to avr_signal_function_p.
4038         (interrupt_function_p): Rename to avr_interrupt_function_p.
4040         * doc/extend.texi (Function Attributes): Better explanation of
4041         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
4042         alphabetical order.
4044 2012-05-09  Michael Matz  <matz@suse.de>
4046         PR tree-optimization/53185
4047         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
4048         peeling when we see strided loads.
4050 2012-05-09  Matthias Klose  <doko@ubuntu.com>
4052         * gcc-ar.c (main): Don't check for execute bits for the plugin.
4054 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4056         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
4057         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
4058         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
4059         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
4060         (USE_LOAD_POST_INCREMENT): Define.
4061         (USE_LOAD_PRE_INCREMENT): Define.
4062         (USE_LOAD_POST_DECREMENT): Define.
4063         (USE_LOAD_PRE_DECREMENT): Define.
4064         (USE_STORE_PRE_DECREMENT): Define.
4065         (USE_STORE_PRE_INCREMENT): Define.
4066         (USE_STORE_POST_DECREMENT): Define.
4067         (USE_STORE_POST_INCREMENT): Define.
4068         (arm_auto_incmodes): Add enumeration.
4069         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
4070         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
4072 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
4074         PR tree-optimization/53226
4075         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
4076         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
4077         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
4078         doesn't need to be revisited, look for earliest stmt with
4079         !gimple_plf (stmt, GF_PLF_1) if something changed.
4081 2012-05-09  Terry Guo  <terry.guo@arm.com>
4083         * genmultilib: Update copyright dates.
4084         * doc/fragments.texi: Ditto.
4086 2012-05-09  Terry Guo  <terry.guo@arm.com>
4088         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
4089         * genmultilib (MULTILIB_REQUIRED): New.
4090         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
4092 2012-05-09  Richard Guenther  <rguenther@suse.de>
4094         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4095         (vect_do_peeling_for_loop_bound): Likewise.
4096         (vect_do_peeling_for_alignment): Likewise.
4097         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
4098         (vect_do_peeling_for_loop_bound): Get check_profitability and
4099         threshold as parameters.
4100         (vect_do_peeling_for_alignment): Likewise.
4101         (vect_loop_versioning): Likewise.
4102         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
4103         and threshold here.  Control where to put the check here.
4105 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
4107         PR middle-end/53249
4108         * dwarf2out.h (get_address_mode): Move declaration to...
4109         * rtl.h: ...here.
4110         * dwarf2out.c (get_address_mode): Move definition to...
4111         * rtlanal.c: ...here.
4112         * var-tracking.c (get_address_mode): Delete.
4113         * combine.c (find_split_point): Use get_address_mode instead of
4114         targetm.addr_space.address_mode.
4115         * cselib.c (cselib_record_sets): Likewise.
4116         * dse.c (canon_address, record_store): Likewise.
4117         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
4118         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
4119         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
4120         (expand_expr_real_1): Likewise.
4121         * ifcvt.c (noce_try_cmove_arith): Likewise.
4122         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
4123         * reload.c (find_reloads): Likewise.
4124         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
4125         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
4127 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
4129         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
4130         information from the instruction produced.
4132 2012-05-09  Richard Guenther  <rguenther@suse.de>
4134         * stor-layout.c (bit_from_pos): Document.
4135         (byte_from_pos): Likewise.  Optimize.
4136         (pos_from_bit): Likewise.
4137         (normalize_offset): Use pos_from_bit instead of replicating it.
4139 2012-05-09  Alan Modra  <amodra@gmail.com>
4141         PR target/53271
4142         * config/rs6000/rs6000.c (gen_frame_set): New function.
4143         (gen_frame_load, gen_frame_store): New functions.
4144         (rs6000_savres_rtx): Use the above.
4145         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
4146         Correct mode used for CR2 in save/restore_world patterns.
4147         Don't emit instructions for eh_return frame unwind reg info.
4149 2012-05-08  Jan Hubicka  <jh@suse.cz>
4151         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
4152         with VALUE_EXPR.
4153         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
4154         are removable.
4155         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
4156         need to wrapup.
4157         (compile_file): Do not output variables.
4158         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
4159         output it.
4160         * langhooks.c: Include timevar.h
4161         (write_global_declarations): Finalize compilation unit after wrapup;
4162         set timevars correctly.
4163         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
4164         not to be added to varpool.
4165         * varpool.c (varpool_assemble_decl): Sanity check that we are called
4166         only on cases where it makes sense; skip constant pool and value expr
4167         vars.
4169 2012-05-08  David S. Miller  <davem@davemloft.net>
4171         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
4172         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
4173         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
4175 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
4177         PR rtl-optimization/53278
4178         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
4179         speed_p code from earlier patch.
4181 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
4183         PR target/51244
4184         * config/sh/sh.md (*branch_true, *branch_false): New insns.
4186 2012-05-08  Teresa Johnson  <tejohnson@google.com>
4188         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
4189         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
4191 2012-05-08  Jan Hubicka  <jh@suse.cz>
4193         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
4194         (cgraph_create_node_1): Rename to ...
4195         (cgraph_create_empty_node): ... this one; export.
4196         (cgraph_create_node): Update.
4197         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
4198         (cgraph_create_edge_including_clones): Likewise.
4199         (cgraph_find_replacement_node): Likewise.
4200         (cgraph_clone_edge): Likewise.
4201         (cgraph_clone_node): Likewise.
4202         (clone_function_name): Likewise.
4203         (cgraph_create_virtual_clone): Likewise.
4204         (cgraph_remove_node_and_inline_clones): Likewise.
4205         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
4206         * cgraph.h: Reorder declarations so they match file of origin.
4207         (cgraph_create_empty_node): Declare.
4208         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
4209         (cgraph_copy_node_for_versioning): Likewise.
4210         (cgraph_function_versioning): Likewise.
4211         (cgraph_materialize_clone): Likewise.
4212         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4213         (cgraph_materialize_all_clones): Likewise.
4214         * cgraphclones.c: New file.
4215         * Makefile.in: Update for cgraphclones.
4217 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
4219         PR target/53176
4220         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
4221         (ix86_rtx_costs): Handle SET.
4223 2012-05-08  Michael Matz  <matz@suse.de>
4225         * basic-block.h (struct rtl_bb_info): Remove visited member and
4226         move head_ member to ...
4227         (struct basic_block_def.basic_block_il_dependent): ... the new
4228         member x, replacing but containing old member rtl.
4229         (enum bb_flags): New BB_VISITED flag.
4230         (BB_HEADER, BB_FOOTER): New macros.
4232         * jump.c (mark_all_labels): Adjust.
4233         * cfgcleanup.c (try_optimize_cfg): Adjust.
4234         * cfglayout.c (record_effective_endpoints): Adjust.
4235         (relink_block_chain): Ditto (and don't fiddle with visited).
4236         (fixup_reorder_chain): Adjust.
4237         (fixup_fallthru_exit_predecessor): Ditto.
4238         (cfg_layout_duplicate_bb): Ditto.
4239         * combine.c (update_cfg_for_uncondjump): Adjust.
4240         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
4241         (bb_visited_trace): New accessor.
4242         (mark_bb_visited): Move in front.
4243         (rotate_loop): Use bb_visited_trace.
4244         (find_traces_1_round): Ditto.
4245         (emit_barrier_after): Ditto.
4246         (copy_bb): Ditto, and initialize visited on resize.
4247         (reorder_basic_blocks): Initize visited member.
4248         (duplicate_computed_gotos): Clear bb flags at start, use
4249         BB_VISITED flags.
4251         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
4252         (rtl_verify_flow_info_1): Ditto.
4253         (cfg_layout_split_block): Ditto.
4254         (cfg_layout_delete_block): Ditto.
4255         (cfg_layout_merge_blocks): Ditto.
4256         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
4258 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
4260         PR target/53272
4261         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
4262         when a constant source operand matches an "I" constraint, the "no
4263         CC0 change" applies to a register-destination only, not a
4264         strict_low_part-destination.
4266 2012-05-08  Richard Guenther  <rguenther@suse.de>
4268         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
4269         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
4271 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
4273         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
4275         * doc/avr-mmcu.texi: New auto-generated file.
4276         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
4277         to document all valid -mmcu= arguments.
4279         * config/avr/avr.h (arch_info_s): New struct definition.
4280         * config/avr/avr-devices.c (avr_texinfo): New variable.
4281         * config/avr/gen-avr-mmcu-texi.c: New file.
4282         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
4284 2012-05-08  Dehao Chen  <dehao@google.com>
4286         * predict.c (find_qualified_ssa_name): New.
4287         (find_ssa_name_in_expr): New.
4288         (find_ssa_name_in_assign_stmt): New.
4289         (is_comparison_with_loop_invariant_p): New.
4290         (is_bound_expr_similar): New.
4291         (predict_iv_comparison): New.
4292         (predict_loops): Add heuristic for loop-nested branches that compare an
4293         induction variable to a loop bound variable.
4294         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
4296 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
4298         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
4299         TARGET_BDVER2 defines where appropriate.
4301 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
4303         * configure.ac (PLUGIN_LD): Rename into...
4304         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
4305         * config.in: Regenerate.
4306         * configure: Likewise.
4307         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
4309 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
4311         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
4312         computation using the precision of the index type.
4313         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
4314         (fold_array_ctor_reference): Do index computations in the index type.
4316 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
4318         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
4319         down to plus_constant.
4320         (expand_epilogue): Ditto.
4322 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4324         * postreload.c (reload_cse_regs): Make static.
4325         * reload.h (reload_cse_regs): Remove prototype.
4327 2012-05-07  Richard Henderson  <rth@redhat.com>
4329         * config/alpha/alpha.md (clear_cache): New pattern.
4331 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4333         PR middle-end/53245
4334         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
4335         is folded to a type boundary value, verify that the resulting case
4336         label is still a care range.
4338 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
4340         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
4341         only for TARGET_GENERIC, when not optimizing for size.
4342         (*ffs<mode>_1): Ditto.
4344 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4346         * tree-cfg.c (verify_gimple_switch): Tighten checks.
4348 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
4350         PR tree-optimization/53239
4351         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
4352         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
4354 2012-05-07  Richard Guenther  <rguenther@suse.de>
4356         PR tree-optimization/53195
4357         * tree-inline.c (setup_one_parameter): Properly add referenced
4358         vars from the parameters new known value.
4360 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4362         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
4363         (sched_branch_type): Remove.
4364         (m68k_sched_md_init_global): Don't allocate it.
4365         (m68k_sched_md_finish_global): Don't free it.
4366         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
4367         * config/m68k/m68k.md: Set the type of insns using
4368         m68k_sched_branch_type to bcc directly.
4370 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4372         * config/sol2.c (solaris_override_options): New function.
4373         * config/sol2-protos.h (solaris_override_options): Declare.
4374         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
4376 2012-05-07  Richard Guenther  <rguenther@suse.de>
4378         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
4379         whether we failed to compute data dependences.
4380         (loop_prefetch_arrays): Fail if we failed.
4382 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
4383             Paolo Bonzini  <bonzini@gnu.org>
4385         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
4386         Emit bsf when optimizing for size.
4387         (*ffs<mode>_1): Ditto.
4389 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
4391         PR target/53250
4392         * config/sh/sh.c (sh_rtx_costs): Handle SET.
4394 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
4396         PR target/53227
4397         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
4398         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
4399         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
4400         (bswapsi2): Ditto.
4401         (*bswapdi2_doubleword): New insn pattern.
4402         (*bswap<mode>2): Rename from *bswap<mode>2_1.
4404 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
4406         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
4407         (mips_set_reg_reg_cost): Likewise.
4408         (mips_rtx_costs): Handle SET.
4410 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
4412         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
4413         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
4414         to compute the cost of moves.  Set the mode of the target register.
4416 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
4418         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
4419         plus_constant function.
4420         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
4421         that the mode is sensible.
4422         (use_anchored_address, round_push, allocate_dynamic_stack_space)
4423         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
4424         plus_constant.
4426         * alias.c (canon_rtx): Likewise.
4427         (init_alias_analysis): Likewise.
4428         * builtins.c (expand_builtin_return_addr)
4429         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
4430         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
4431         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
4432         (expand_builtin_stpcpy): Likewise.
4433         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
4434         (compute_argument_addresses, internal_arg_pointer_based_exp)
4435         (expand_call, emit_library_call_value_1): Likewise.
4436         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
4437         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
4438         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
4439         * cse.c (insert_const_anchor, find_reg_offset_for_const)
4440         (use_related_value, fold_rtx): Likewise.
4441         * cselib.c (cselib_subst_to_values): Likewise.
4442         * dse.c (record_store, check_mem_read_rtx): Likewise.
4443         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
4444         * emit-rtl.c (adjust_address_1): Likewise.
4445         * except.c (sjlj_emit_function_enter)
4446         (expand_builtin_extract_return_addr)
4447         (expand_builtin_frob_return_addr): Likewise.
4448         * expmed.c (expand_divmod): Likewise.
4449         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
4450         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
4451         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
4452         * function.c (assign_stack_local_1)
4453         (instantiate_virtual_regs_in_rtx): Likewise.
4454         * optabs.c (prepare_cmp_insn): Likewise.
4455         * recog.c (offsettable_address_addr_space_p): Likewise.
4456         * reload.c (find_reloads_address, form_sum)
4457         (find_reloads_subreg_address): Likewise.
4458         * reload1.c (init_reload, eliminate_regs_1)
4459         (eliminate_regs_in_insn): Likewise.
4460         * simplify-rtx.c (simplify_unary_operation_1)
4461         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
4462         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
4463         (vt_add_function_parameter): Likewise.
4465         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
4466         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
4467         * config/alpha/alpha.c (alpha_legitimize_address_1)
4468         (get_unaligned_address, alpha_expand_unaligned_load)
4469         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
4470         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
4471         (alpha_expand_builtin_establish_vms_condition_handler)
4472         (alpha_setup_incoming_varargs, emit_frame_store_1)
4473         (alpha_expand_prologue, alpha_expand_epilogue)
4474         (alpha_use_linkage): Likewise.
4475         * config/alpha/alpha.md: Likewise.
4477         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
4478         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
4479         (thumb_legitimize_address, arm_gen_load_multiple_1)
4480         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
4481         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
4482         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
4483         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
4484         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
4485         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
4486         (thumb_expand_movmemqi, arm_set_return_address)
4487         (thumb_set_return_address): Likewise.
4488         * config/arm/arm.md: Likewise.
4490         * config/avr/avr.c (avr_incoming_return_addr_rtx)
4491         (avr_prologue_setup_frame, expand_epilogue)
4492         (avr_const_address_lo16): Likewise.
4494         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
4495         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
4496         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
4497         (bfin_output_mi_thunk): Likewise.
4499         * config/c6x/c6x.c (c6x_initialize_trampoline)
4500         (c6x_output_mi_thunk): Likewise.
4502         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
4503         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
4505         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
4506         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
4507         (cris_emit_movem_store, cris_trampoline_init): Likewise.
4508         * config/cris/cris.md: Likewise.
4510         * config/darwin.c (machopic_indirect_data_reference)
4511         (machopic_legitimize_pic_address): Likewise.
4513         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
4514         (epiphany_expand_prologue, epiphany_expand_epilogue)
4515         (epiphany_trampoline_init): Likewise.
4516         * config/epiphany/epiphany.md: Likewise.
4518         * config/fr30/fr30.c (fr30_move_double): Likewise.
4520         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
4521         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
4522         (frv_index_memory, unspec_got_name, frv_find_base_term)
4523         (frv_output_dwarf_dtprel): Likewise.
4525         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
4526         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
4528         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
4529         * config/i386/i386.c (setup_incoming_varargs_64)
4530         (setup_incoming_varargs_ms_64, choose_baseaddr)
4531         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
4532         (ix86_emit_probe_stack_range, ix86_expand_prologue)
4533         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
4534         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
4535         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
4536         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
4537         (x86_output_mi_thunk): Likewise.
4538         * config/i386/i386.md: Likewise.
4540         * config/ia64/ia64.c (ia64_expand_load_address)
4541         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
4542         (do_spill, ia64_trampoline_init): Likewise.
4544         * config/iq2000/iq2000.c (iq2000_va_start)
4545         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
4546         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
4547         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
4549         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4551         * config/m32c/m32c.c (m32c_return_addr_rtx)
4552         (m32c_expand_insv): Likewise.
4554         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
4555         (m32r_legitimize_pic_address, m32r_print_operand)
4556         (m32r_print_operand_address): Likewise.
4558         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
4559         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
4560         (EH_RETURN_HANDLER_RTX): Likewise.
4561         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
4562         (m68k_expand_epilogue, legitimize_pic_address)
4563         (m68k_output_mi_thunk): Likewise.
4564         * config/m68k/m68k.md: Likewise.
4566         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4567         (mcore_expand_epilog): Likewise.
4568         * config/mcore/mcore.md: Likewise.
4570         * config/mep/mep.c (mep_allocate_initial_value)
4571         (mep_expand_prologue, mep_expand_epilogue): Likewise.
4573         * config/microblaze/microblaze.c (double_memory_operand)
4574         (microblaze_block_move_loop): Likewise.
4576         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
4577         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
4578         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
4579         (mips_expand_prologue, mips_epilogue_set_cfa)
4580         (mips_expand_epilogue): Likewise.
4581         * config/mips/mips.md: Likewise.
4583         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
4584         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
4586         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
4587         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
4589         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4590         (EH_RETURN_HANDLER_RTX): Likewise.
4591         * config/moxie/moxie.c (moxie_static_chain): Likewise.
4593         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
4594         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
4595         (pa_return_addr_rtx, hppa_builtin_saveregs)
4596         (pa_trampoline_init): Likewise.
4597         * config/pa/pa.md: Likewise.
4599         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
4601         * config/picochip/picochip.c (picochip_static_chain): Likewise.
4603         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
4604         * config/rs6000/rs6000.c (rs6000_legitimize_address)
4605         (setup_incoming_varargs, print_operand, rs6000_return_addr)
4606         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
4607         (rs6000_emit_epilogue)
4608         (rs6000_machopic_legitimize_pic_address): Likewise.
4610         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
4612         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
4613         (DYNAMIC_CHAIN_ADDRESS): Likewise.
4614         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
4615         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
4616         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
4617         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
4618         (s390_emit_epilogue, s390_function_profiler): Likewise.
4619         * config/s390/s390.md: Likewise.
4621         * config/score/score.c (score_add_offset, score_prologue): Likewise.
4623         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
4624         (sh_output_mi_thunk): Likewise.
4625         * config/sh/sh.md: Likewise.
4627         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
4628         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
4629         * config/sparc/sparc.c (sparc_legitimize_pic_address)
4630         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
4631         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
4632         (emit_and_preserve): Likewise.
4633         * config/sparc/sparc.md: Likewise.
4635         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4636         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
4637         (spu_setup_incoming_varargs, ea_load_store_inline)
4638         (spu_expand_load): Likewise.
4640         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
4641         (combine_bnp): Likewise.
4643         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4644         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
4645         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
4647         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4648         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
4649         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
4651         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
4652         * config/v850/v850.md: Likewise.
4654         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
4655         (EH_RETURN_HANDLER_RTX): Likewise.
4656         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
4657         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
4658         (print_operand_address, vax_trampoline_init): Likewise.
4660         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
4661         (xtensa_function_value_regno_p): Likewise.
4663 2012-05-04  Andrew Pinski  <apinski@cavium.com>
4665         * expr.c (get_def_for_expr_class): New function.
4666         (convert_tree_comp_to_rtx): New function.
4667         (expand_cond_expr_using_cmove): New function.
4668         (expand_expr_real_2 <case COND_EXPR>): Call
4669         expand_cond_expr_using_cmove first and return if it succeeds.
4670         Remove the check for HAVE_conditional_move since we should have
4671         already converted it to a conditional move.
4672         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
4673         modes of DImode for 32bits and TImode.
4675 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
4677         PR other/29442
4678         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
4679         (print_md_ptr_loc, print_c_condition): Use them.
4680         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
4681         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
4682         attr_file, dfa_file, latency_file): New global variables.
4683         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
4684         write_upcase, write_indent, write_length_unit_log, write_test_expr,
4685         write_attr_get, write_insn_cases, write_eligible_delay,
4686         write_const_num_delay_slots): Accept FILE pointer and toss it around.
4687         Update all callers.
4688         (write_header, open_outfile, handle_arg): New funcions.
4689         (make_automaton_attrs): Write prototypes as extern to the output
4690         files.
4691         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
4692         names from the command line.  Open the output files and write out
4693         internal functions for DFA functions to dfa_file_name, insn latency
4694         functions to latency_file_name, and everything else to attr_file.
4695         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
4696         (BACKEND): Build libbackend first.
4697         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
4698         (.PRECIOUS): Likewise.
4699         (insn-dfatab.o): New rule.
4700         (insn-latencytab.o): New rule.
4701         (simple_rtl_generated_c): Do not include insn-attrtab.c.
4702         (s-attrtab): New rule.
4704 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
4706         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
4707         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
4708         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
4709         * reorg.c (get_jump_flags): Do not set the removed flags.
4711         * doc/md.texi (attr_flag): Update for abovementioned changes.
4713 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
4715         PR target/53228
4716         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
4717         (TARGET_CMOV): Rename from TARGET_CMOVE.
4718         (TARGET_CMOVE): New define.
4719         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
4720         Do not set TARGET_CMOVE here.
4722 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
4724         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
4725         * opts.c (finish_options): Activate -Wunused-local-typedefs if
4726         -Wunused is activated.
4727         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
4729 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4731         * config/s390/s390.md (*movmem_short, *clrmem_short)
4732         (*cmpmem_short): Move the mode check from the insn condition to
4733         the match_scratch.
4735 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4737         PR tree-optimization/52633
4738         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
4739         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
4740         (vect_recog_over_widening_pattern): Remove handling of code that was
4741         already detected as over-widening pattern.  Remove special handling
4742         of "unsigned" cases.  Instead, support general case of conversion
4743         of the shift result to another type.
4745 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4747         * tree-vect-patterns.c (vect_single_imm_use): New function.
4748         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
4749         (vect_recog_over_widening_pattern): Likewise.
4750         (vect_recog_widen_shift_pattern): Likewise.
4752 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4754         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
4755         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
4756         (vect_recog_widen_mult_pattern): Likewise.
4757         (vect_operation_fits_smaller_type): Likewise.
4758         (vect_recog_over_widening_pattern): Likewise.
4759         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
4761 2012-05-04  Richard Guenther  <rguenther@suse.de>
4763         PR lto/50602
4764         * lto-wrapper.c (merge_and_complain): Complain about mismatches
4765         of -freg-struct-return and -fpcc-struct-return.
4766         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
4767         from the input file options and ignore those from the link
4768         command line.
4770 2012-05-04  Richard Guenther  <rguenther@suse.de>
4772         PR tree-optimization/53168
4773         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
4774         memory reads when the result is a constant we can pun.
4776 2012-05-04  Richard Guenther  <rguenther@suse.de>
4778         * common.opt (flto-report): Do not mark as Optimization.
4780 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4782         PR target/48496
4783         * recog.c (constrain_operands): If extra constraints are present, also
4784         accept pseudo-registers with equivalent memory locations during reload.
4786 2012-05-04  Olivier Hainque  <hainque@adacore.com>
4788         * collect2.c (may_unlink_output_file): New global.
4789         (maybe_unlink): Honor it.
4790         * collect2.h: Add extern for it.
4791         * tlink.c (do_tlink): Set it to true if the link succeeded.
4793 2012-05-04  Olivier Hainque  <hainque@adacore.com>
4795         * gcc.c (eval_spec_function): Finalize/restore the current string
4796         obstack state as part of the context push/pop operations.
4798 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
4800         PR rtl-optimization/52804
4801         * reload1.c (reload_reg_reaches_end_p): Check whether successor
4802         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
4803         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
4804         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
4805         RELOAD_FOR_OUTADDR_ADDRESS.
4807 2012-05-04  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
4809         PR c++/24985
4810         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
4811         for macro expansion.
4813 2012-05-03  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
4815         * flags.h (flag_permissive): Do not declare.
4816         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
4817         option specially.
4818         * toplev.c (flag_permissive): Do not define.
4819         * c-tree.h (system_header_p): Delete unused.
4821 2012-05-03  David S. Miller  <davem@davemloft.net>
4823         PR target/52684
4824         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
4825         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
4826         (sparc_emit_float_lib_cmp): Likewise.
4828 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4830         PR target/53199
4831         * config/rs6000/rs6000.md (bswapdi splitters): If
4832         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
4833         default) is used, generate an alternate sequence that does not
4834         depend on using indexed addressing.
4836 2012-05-03  Jason Merrill  <jason@redhat.com>
4838         * gengtype.c (write_types): Fix warning message.
4839         (write_local): Likewise.
4841 2012-05-02  Jason Merrill  <jason@redhat.com>
4843         * dwarf2out.c (struct external_ref, build_local_stub): New.
4844         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
4845         (optimize_external_refs, optimize_external_refs_1): New.
4846         (change_AT_die_ref): New.
4847         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
4848         (build_abbrev_table): Take the external refs hashtable.
4849         (output_comp_unit): Get it from optimize_external_refs and pass it in.
4851 2012-05-03  Jan Hubicka  <jh@suse.cz>
4853         PR middle-end/53093
4854         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
4856 2012-05-03  Jan Hubicka  <jh@suse.cz>
4858         PR middle-end/53106
4859         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
4861 2012-05-03  Jason Merrill  <jason@redhat.com>
4863         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
4864         use_debug_types to discriminate the die_id union.
4865         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
4866         (build_abbrev_table, output_die): Likewise.
4867         (prune_unused_types_walk_attribs): Likewise.
4868         (generate_type_signature, copy_declaration_context): Set it.
4869         (remove_child_or_replace_with_skeleton): Set it.
4870         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
4871         check use_debug_types.
4872         (dwarf2out_finish): Do break_out_includes after .debug_types.
4874 2012-05-03  Jason Merrill  <jason@redhat.com>
4876         * dwarf2out.c (modified_type_die): Use scope_die_for.
4877         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
4878         (uses_local_type_r, uses_local_type): New.
4879         (scope_die_for): Keep a type that uses a local type in local scope.
4880         Use get_context_die for namespace and type scope.
4882 2012-05-03  Jason Merrill  <jason@redhat.com>
4884         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
4885         pc thunk.
4886         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
4887         (dwarf2out_finish): Likewise.
4889 2012-05-03  Martin Jambor  <mjambor@suse.cz>
4891         * builtins.c (get_object_alignment_1): Return whether we can determine
4892         the alignment or conservatively assume byte alignment.  Return the
4893         alignment by reference.  Use get_pointer_alignment_1 for dereference
4894         alignment.
4895         (get_pointer_alignment_1): Return whether we can determine the
4896         alignment or conservatively assume byte alignment.  Return the
4897         alignment by reference.  Use get_ptr_info_alignment to get SSA name
4898         alignment.
4899         (get_object_alignment): Update call to get_object_alignment_1.
4900         (get_object_or_type_alignment): Likewise, fall back to type alignment
4901         only when it returned false.
4902         (get_pointer_alignment): Update call to get_pointer_alignment_1.
4903         * fold-const.c (get_pointer_modulus_and_residue): Update call to
4904         get_object_alignment_1.
4905         * ipa-prop.c (ipa_modify_call_arguments): Update call to
4906         get_pointer_alignment_1.
4907         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
4908         of MEM_REF or TARGET_MEM_REF only when it returns false.
4909         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
4910         get_object_alignment_1.
4911         (ccp_finalize): Use set_ptr_info_alignment.
4912         * tree.h (get_object_alignment_1): Update declaration.
4913         (get_pointer_alignment_1): Likewise.
4914         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
4915         (dump_gimple_stmt): Likewise.
4916         * tree-flow.h (ptr_info_def): Updated comments of fields align and
4917         misalign.
4918         (get_ptr_info_alignment): Declared.
4919         (mark_ptr_info_alignment_unknown): Likewise.
4920         (set_ptr_info_alignment): Likewise.
4921         (adjust_ptr_info_misalignment): Likewise.
4922         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
4923         and set alignment of SSA names.
4924         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
4925         mark_ptr_info_alignment_unknown.
4926         * tree-ssanames.c (get_ptr_info_alignment): New function.
4927         (mark_ptr_info_alignment_unknown): Likewise.
4928         (set_ptr_info_alignment): Likewise.
4929         (adjust_ptr_info_misalignment): Likewise.
4930         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
4931         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4932         Likewise.
4933         (bump_vector_ptr): Likewise.
4934         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
4935         (vectorizable_store): Likewise.
4936         (vectorizable_load): Likewise.
4938 2012-05-03  Michael Matz  <matz@suse.de>
4940         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
4941         in front of basic_block_def.
4942         (struct basic_block_def): Make il.gimple the full struct, not a
4943         pointer.
4944         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
4946         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
4947         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
4948         NULL il.gimple, which can't happen anymore.
4949         * gimple.h (bb_seq): il.gimple can't be NULL.
4950         (bb_seq_add): Ditto.
4951         (set_bb_seq): Adjust.
4952         (gsi_start_bb, gsi_last_bb): Tidy.
4953         * lto-streamer-in.c (make_new_block): Don't zero members that
4954         are zeroed already, don't allocate a gimple_bb_info.
4955         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
4956         (remove_bb): Clear all il.gimple members.
4957         (gimple_verify_flow_info): Adjust for flat il.gimple.
4958         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
4960         * coretypes.h (const_gimple_seq): Remove typedef.
4961         * gimple.h (gimple_seq_first): Take gimple_seq.
4962         (gimple_seq_first_stmt): Ditto.
4963         (gimple_seq_last): Ditto.
4964         (gimple_seq_last_stmt): Ditto.
4965         (gimple_seq_empty_p): Ditto.
4967 2012-05-03  Richard Guenther  <rguenther@suse.de>
4969         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
4970         operations.
4971         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
4972         (compute_avail): Do not add possibly trapping operations to
4973         EXP_GEN if they might not be executed in the block.
4975 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
4977         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
4979 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
4981         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
4982         information as early as possible.  Update dominance info instead of
4983         discarding it.
4985 2012-05-03  Richard Guenther  <rguenther@suse.de>
4987         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
4988         (union_contains_value): Remove.
4989         (vro_valid_in_sets): Likewise.
4990         (op_valid_in_sets): New function.
4991         (valid_in_sets): Use op_valid_in_sets.
4992         (insert_into_preds_of_block): Move dumping ...
4993         (do_regular_insertion): ... here.
4994         (do_partial_partial_insertion): ... and here.  Dump that
4995         we've found a partial partial redundancy.
4996         (insert): Dump the current insert iteration.
4998 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
5000         PR plugins/53126
5001         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
5002         append program name to it and pass that as first argument
5003         to make_relative_prefix.  Always pass standard_libexec_prefix
5004         as last argument to make_relative_prefix.  If
5005         make_relative_prefix returns NULL, fall back to
5006         standard_libexec_prefix.
5008         PR debug/53174
5009         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
5010         removed.
5012         PR target/53187
5013         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
5014         mode, return that mode.
5016         PR target/53194
5017         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
5018         define __ATOMIC_HLE_* macros here.
5019         (ix86_target_macros): But here, using cpp_define_formatted.
5021 2012-05-03  Richard Guenther  <rguenther@suse.de>
5023         PR tree-optimization/53144
5024         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
5025         Rename to ...
5026         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
5027         with SSA name values.
5028         (vn_reference_lookup_3): Adjust callers.
5030 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5032         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
5033         has_fma4 for AMD processors with both fma3 and fma4 support.
5035 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
5037         PR target/53201
5038         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
5039         "-mno-hle".
5041 2012-05-03  Michael Matz  <matz@suse.de>
5043         PR bootstrap/53197
5044         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
5045         (dse_enter_block): Properly iterate the whole sequence even
5046         if the last statement was removed.
5048 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
5050         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
5051         unset flag_jump_tables.
5052         * stmt.c (expand_case): Remove special flag_pic case conditional
5053         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
5055 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
5057         * common/config/s390/s390-common.c (s390_option_optimization_table):
5058         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
5059         default when optimizing.
5061 2012-05-02  Martin Jambor  <mjambor@suse.cz>
5063         PR lto/52605
5064         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
5065         of a variable when the contect is a function.
5067 2012-05-02  Michael Matz  <matz@suse.de>
5069         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
5070         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
5071         (const_gimple_seq_node): Remove.
5072         (gimple_seq_node): Typedef as gimple.
5073         (struct gimple_statement_base): Add next and prev members,
5074         adjust all WORD markers in using structs.
5075         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
5076         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5077         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
5078         gimple are the same.
5079         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
5080         gimple_seq, adjust.
5081         (gimple_init_singleton): New function.
5082         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
5083         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
5084         (gsi_stmt): Adjust.
5085         (gsi_stmt_ptr): Remove.
5086         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
5088         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
5089         again, adjust for above changes.
5090         (update_call_edge_frequencies): Adjust for above changes.
5091         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
5092         (gsi_insert_seq_nodes_after): Ditto.
5093         (gsi_split_seq_after): Ditto.
5094         (gsi_set_stmt): Ditto.
5095         (gsi_split_seq_before): Ditto.
5096         (gsi_remove): Ditto.
5097         (gsi_insert_seq_before_without_update): Don't free sequence.
5098         (gsi_insert_seq_after_without_update): Ditto.
5099         (gsi_replace): Assert some more invariants.
5100         (gsi_insert_before_without_update, gsi_insert_after_without_update):
5101         Tidy.
5102         (gsi_for_stmt): Don't search for stmt.
5103         (gsi_insert_on_edge_immediate): Tidy.
5105         * gimple.c (gimple_alloc_k): Remove "sequences".
5106         (gimple_seq_cache): Remove.
5107         (gimple_alloc_stat): Make stmt a singleton sequence.
5108         (gimple_seq_alloc, gimple_seq_free): Remove.
5109         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
5110         (gimple_copy): Ditto.
5111         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
5112         create iterator from correct sequence.
5113         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
5115 2012-05-02  Michael Matz  <matz@suse.de>
5117         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
5118         gimple_seq.
5119         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
5120         sequence, lazily allocate it.
5121         (bb_seq_addr): New function.
5122         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
5123         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
5124         (gsi_none): New function.
5125         (gsi_start_bb): Adjust.
5126         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
5127         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
5128         (gsi_last_bb): Adjust.
5129         (gsi_seq): Adjust.
5130         * tree-flow-inline.h (phi_nodes_ptr): New function.
5132         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
5133         datastructure and interface change.
5134         (gsi_insert_seq_before_without_update): Ditto.
5135         (gsi_insert_seq_nodes_after): Ditto.
5136         (gsi_insert_seq_after_without_update): Ditto.
5137         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
5138         (gsi_split_seq_before): Ditto.
5139         (gsi_start_phis): Adjust.
5140         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
5141         (vect_transform_loop): Ditto.
5142         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
5143         gimple_seq_copy): Don't use gimple_seq_alloc.
5144         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
5145         (gimplify_seq_add_seq): Ditto.
5146         * lto-streamer-in.c (make_new_block): Ditto.
5147         * tree-cfg.c (create_bb): Ditto.
5148         * tree-sra.c (initialize_parameter_reductions): Ditto.
5150 2012-05-02  Michael Matz  <matz@suse.de>
5152         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5153         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
5154         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
5155         set_bb_seq): Move down to after gimple_statement_d definition.
5157 2012-05-02  Michael Matz  <matz@suse.de>
5159         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5160         gsi_replace_with_seq, instead of inserting itself.
5161         * gimple-iterator.c (gsi_replace_with_seq): New function.
5162         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
5163         iterator instead of statement, advance it.
5164         (ssa_forward_propagate_and_combine): Adjust call to above.
5166 2012-05-02  Michael Matz  <matz@suse.de>
5168         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
5169         gimple_seq_alloc.
5170         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
5171         * tree-nested.c (walk_gimple_omp_for): Ditto.
5172         * trans-mem.c (lower_transaction): Ditto.
5173         * tree-eh.c (do_return_redirection): Ditto.
5174         (do_goto_redirection): Ditto.
5175         (lower_try_finally_switch): Ditto.
5176         * gimplify.c (gimplify_stmt): Ditto.
5177         (gimplify_scan_omp_clauses): Ditto.
5178         (gimplify_omp_for): Ditto.
5179         (gimplify_function_tree): Ditto.
5180         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
5181         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
5182         (mf_build_check_statement_for): Ditto.
5183         (mx_register_decls): Ditto.
5184         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
5185         and don't use itertors to append.
5186         (insert_stmts): Ditto.
5187         (insert_out_of_ssa_copy): Ditto.
5188         (insert_out_of_ssa_copy_on_edge): Ditto.
5190 2012-05-02  Michael Matz  <matz@suse.de>
5192         * gimple.h (gimple_bind_body_ptr): New function.
5193         (gimple_bind_body): Use it.
5194         (gimple_catch_handler): Use gimple_catch_handler_ptr.
5195         (gimple_eh_filter_failure_ptr): New function.
5196         (gimple_eh_filter_failure): Use it.
5197         (gimple_eh_else_n_body_ptr): New function.
5198         (gimple_eh_else_n_body): Use it.
5199         (gimple_eh_else_e_body_ptr): New function.
5200         (gimple_eh_else_e_body): Use it.
5201         (gimple_try_eval_ptr): New function.
5202         (gimple_try_eval): Use it.
5203         (gimple_try_cleanup_ptr): New function.
5204         (gimple_try_cleanup): Use it.
5205         (gimple_wce_cleanup_ptr): New function.
5206         (gimple_wce_cleanup): Use it.
5207         (gimple_omp_body_ptr): New function.
5208         (gimple_omp_body): Use it.
5209         (gimple_omp_for_pre_body_ptr): New function.
5210         (gimple_omp_for_pre_body): Use it.
5211         (gimple_transaction_body_ptr): New function.
5212         (gimple_transaction_body): Use it.
5213         (gsi_split_seq_before): Adjust to return nothing and take pointer
5214         to sequence.
5215         (gsi_set_stmt): Declare.
5216         (gsi_replace_with_seq): Declare.
5217         (walk_gimple_seq_mod): Declare.
5218         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
5220         * gimple-iterator.c (gsi_set_stmt): New function.
5221         (gsi_split_seq_before): Return new sequence via pointer argument.
5222         (gsi_replace): Use gsi_set_stmt.
5224         * tree-ssa-loop-im.c (move_computations_stmt): First remove
5225         then insert stmt.
5226         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
5227         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
5228         return new stmt.
5229         (reserve_phi_args_for_new_edge): Change call to above,
5230         use gsi_set_stmt.
5232         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
5233         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
5234         iterators.  Adjust call to lower_omp.
5235         (lower_lastprivate_clauses): Adjust call to lower_omp.
5236         (lower_reduction_clauses): Ditto.
5237         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
5238         (lower_omp_sections): Don't explicitely count sequence length,
5239         nullify lowered bodies earlier, ensure stmts are part of only
5240         one sequence, adjust call to lower_omp.
5241         (lower_omp_single): Ensure stmts are part of only one sequence,
5242         adjust call to lower_omp.
5243         (lower_omp_master): Ditto.
5244         (lower_omp_ordered): Ditto.
5245         (lower_omp_critical): Ditto.
5246         (lower_omp_for): Ditto.
5247         (lower_omp_taskreg): Ditto, tidy.
5248         (lower_omp_1): Adjust calls to lower_omp.
5249         (execute_lower_omp): Ditto.
5250         (lower_omp): Adjust to take pointer to sequence.
5251         (diagnose_sb_2): Use walk_gimple_seq_mod.
5252         (diagnose_omp_structured_block_errors): Ditto and set possibly
5253         changed function body.
5254         * gimple-low.c (lower_function_body): Set function body after
5255         it stabilizes.
5256         (lower_sequence): Adjust to take pointer to sequence.
5257         (lower_omp_directive): Ensure stmt isn't put twice into the
5258         sequence, adjust call to lower_sequence.
5259         (lower_stmt): Adjust calls to lower_sequence.
5260         (lower_gimple_bind): Ditto.
5261         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
5262         * tree-nested.c (walk_body): Take pointer to sequence, use
5263         walk_gimple_seq_mod.
5264         (walk_function): Adjust call to walk_body, set possibly changed body.
5265         (walk_gimple_omp_for): Adjust calls to walk_body.
5266         (convert_nonlocal_omp_clauses): Ditto.
5267         (convert_nonlocal_reference_stmt): Ditto.
5268         (convert_local_omp_clauses): Ditto.
5269         (convert_local_reference_stmt): Ditto.
5270         (convert_tramp_reference_stmt): Ditto.
5271         (convert_gimple_call): Ditto.
5272         (convert_nl_goto_reference): Use local iterator copy.
5273         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
5274         but taking pointer to sequence, ensure gsi_start is called with
5275         callers lvalue.
5276         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
5277         asserting that the sequence head didn't change.
5278         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
5279         walk_gimple_seq_mod.
5280         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
5281         (execute_lower_tm): Ditto, and set possibly changed body.
5282         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
5283         call gsi_start with that lvalue.
5284         (replace_goto_queue_stmt_list): Ditto.
5285         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
5286         (replace_goto_queue): Ditto.
5287         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
5288         (lower_try_finally_onedest): Ditto.
5289         (lower_try_finally_copy): Ditto.
5290         (lower_try_finally_switch): Ditto.
5291         (lower_try_finally): Ditto.
5292         (lower_eh_filter): Ditto.
5293         (lower_eh_must_not_throw): Ditto.
5294         (lower_cleanup): Ditto.
5295         (lower_eh_constructs_2): Ditto.
5296         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
5297         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
5298         set possibly changed body.
5299         (optimize_double_finally): Call gsi_start with lvalue.
5301         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
5302         (gimple_split_block): Ditto.
5303         (gimple_merge_blocks): Use gsi_start_phis.
5304         (move_stmt_r): Use walk_gimple_seq_mod.
5305         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
5306         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
5307         (rebuild_cgraph_edges): Ditto.
5308         (cgraph_rebuild_references): Ditto.
5309         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
5310         * tree-inline.c (copy_phis_for_bb): Ditto.
5311         * tree-ssa-dce.c: Ditto.
5313         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
5315 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5316             Andi Kleen <ak@linux.intel.com>
5318         * coretypes.h (MEMMODEL_MASK): New.
5319         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
5320         and return new variable.
5321         (expand_builtin_atomic_exchange):  Mask memmodel values.
5322         (expand_builtin_atomic_compare_exchange): Ditto.
5323         (expand_builtin_atomic_load): Ditto.
5324         (expand_builtin_atomic_store): Ditto.
5325         (expand_builtin_atomic_clear): Ditto.
5326         * doc/extend.texi: Mention port-dependent memory model flags.
5327         * config/i386/cpuid.h (bit_HLE): New.
5328         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5329         HLE support.
5330         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
5331         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
5332         (ix86_target_string)<-mhle>: New.
5333         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5334         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
5335         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5336         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
5337         enabled for generic, generic64 and core-avx2.
5338         (ix86_print_operand): Generate HLE lock prefixes.
5339         (ix86_memmodel_check): New.
5340         (TARGET_MEMMODEL_CHECK): Ditto.
5341         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
5342         (IX86_HLE_ACQUIRE): Ditto.
5343         (IX86_HLE_RELEASE): Ditto.
5344         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
5345         * config/i386/i386.opt (mhle): Ditto.
5346         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
5347         success model to instruction emitter.
5348         (atomic_fetch_add<mode>): Ditto.
5349         (atomic_exchange<mode>): Ditto.
5350         (atomic_add<mode>): Ditto.
5351         (atomic_sub<mode>): Ditto.
5352         (atomic_<code><mode>): Ditto.
5353         (*atomic_compare_and_swap_doubledi_pic): Ditto.
5354         (atomic_compare_and_swap_single<mode>): Define and use argument
5355         for success model.
5356         (atomic_compare_and_swap_double<mode>): Ditto.
5357         * configure.ac: Check if assembler support HLE prefixes.
5358         * configure: Regenerate.
5359         * config.in: Ditto.
5361 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
5363         PR middle-end/53153
5364         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
5365         split out from ...
5366         (gimplify_switch_expr): ... here.
5367         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
5368         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
5369         to clean up case labels with values outside the index type range.
5370         (simplify_gimple_switch): Call it if something changed.
5371         Remove strange and unnecessary assert.
5373 2012-05-02  Richard Guenther  <rguenther@suse.de>
5375         * fold-const.c (div_if_zero_remainder): sizetypes no longer
5376         sign-extend.
5377         (int_const_binop_1): New worker for int_const_binop with
5378         overflowable parameter.  Pass it through to force_fit_type_double.
5379         (int_const_binop): Wrap around int_const_binop_1 with overflowable
5380         equal to one.
5381         (size_binop_loc): Call int_const_binop_1 with overflowable equal
5382         to minus one, forcing overflow detection for even unsigned types.
5383         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
5384         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
5385         * stor-layout.c (initialize_sizetypes): sizetypes no longer
5386         sign-extend.
5387         (layout_type): For zero-sized arrays ignore overflow on the
5388         size calculations.
5389         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
5390         (bit_value_binop_1): Likewise.
5391         * tree.c (double_int_to_tree): Likewise.
5392         (double_int_fits_to_tree_p): Likewise.
5393         (force_fit_type_double): Likewise.
5394         (host_integerp): Likewise.
5395         (int_fits_type_p): Likewise.
5396         * varasm.c (output_constructor_regular_field): Sign-extend the
5397         field-offset to cater for negative offsets produced by the Ada
5398         frontend.
5399         * omp-low.c (extract_omp_for_data): Convert the loop step to
5400         signed for pointer adjustments.
5402 2012-05-02  Richard Guenther  <rguenther@suse.de>
5404         * tree.c (valid_constant_size_p): New function.
5405         * tree.h (valid_constant_size_p): Declare.
5406         * cfgexpand.c (expand_one_var): Adjust check for too large
5407         variables by using valid_constant_size_p.
5408         * varasm.c (assemble_variable): Likewise.
5410         * c-decl.c (grokdeclarator): Properly check for sizes that
5411         cover more than half of the address-space.
5413 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
5415         PR tree-optimization/53163
5416         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
5417         return value from compute_all_dependences.
5419         PR rtl-optimization/53160
5420         * ree.c (combine_reaching_defs): Handle the case where cand->insn
5421         has been modified by ree pass already.
5423 2012-05-01  Ian Lance Taylor  <iant@google.com>
5425         PR c/37303
5426         * c-decl.c (build_compound_literal): Make the decl readonly if it
5427         an array of a readonly type.
5428         * gimplify.c (gimplify_compound_literal_expr): Add fallback
5429         parameter.  Change all callers.  If the decl is not addressable
5430         and is not an l-value, make it readonly.
5432 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
5434         * ira.c (allocated_reg_info_size): New static variable.
5435         (expand_reg_info): Manage it. Call
5436         setup_preferred_alternate_classes_for_new_pseudos.
5437         (ira): Don't do it here.  Remove local allocated_reg_info_size,
5438         set the global before calling find_moveable_pseudos.
5439         (find_moveable_pseudos): Call expand_reg_info rather than
5440         resize_reg_info.
5442 2012-05-01  Richard Henderson  <rth@redhat.com>
5444         * common.opt (fsync-libcalls): New.
5445         * doc/invoke.texi: Document it.
5446         * optabs.c (init_sync_libfuncs): Honor it.
5448 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
5449             Richard Sandiford  <r.sandiford@uk.ibm.com>
5451         PR rtl-optimization/52543
5452         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
5453         lower-subreg.h.
5454         * lower-subreg.h: New file.
5455         * target-globals.h (this_target_lower_subreg): Declare.
5456         (target_globals): Add lower_subreg;
5457         (restore_target_globals): Restore this_target_lower_subreg.
5458         * target-globals.c: Include it.
5459         (default_target_globals): Add default_target_lower_subreg.
5460         (save_target_globals): Initialize target_lower_subreg.
5461         * rtl.h (init_lower_subreg): Added declaration.
5462         * toplev.c (backend_init_target): Call initializer for lower-subreg
5463         pass.
5464         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
5465         (default_target_lower_subreg): New variable.
5466         (this_target_lower_subreg): Likewise.
5467         (twice_word_mode, choices): New macros.
5468         (shift_cost, compute_splitting_shift, compute_costs)
5469         (init_lower_subreg): New functions.
5470         (resolve_simple_move): Add speed_p argument.  Check choices.
5471         (find_pseudo_copy): Don't check the mode size here.
5472         (resolve_simple_move): Assert the mode size.
5473         (find_decomposable_shift_zext): Add speed_p argument and return
5474         a bool.  Check choices.
5475         (resolve_shift_zext): Add comment.
5476         (dump_shift_choices, dump_choices): New functions.
5477         (decompose_multiword_subregs): Dump list of profitable
5478         transformations.  Add code to skip non profitable transformations.
5479         Update calls to simple_move and find_decomposable_shift_zext.
5481 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
5482             Sameera Deshpande  <sameera.deshpande@arm.com>
5483             Greta Yorsh  <greta.yorsh@arm.com>
5485         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
5486         (thumb1_unexpanded_epilogue): ...this.
5487         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
5488         (thumb1_unexpanded_epilogue): ...this.
5489         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
5490         (thumb1_unexpanded_epilogue): ...this.
5492 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
5494         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
5495         comparing enumeration values.  Update comments.
5497 2012-05-01  Alan Modra  <amodra@gmail.com>
5499         PR target/53038
5500         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
5501         load_cr_save, add_crlr_cfa_restore): New functions.
5502         (rs6000_restore_saved_cr): Rename to..
5503         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
5504         (rs6000_emit_epilogue): Use new functions.  Adjust condition
5505         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
5506         regs when using out-of-line restore only when shrink wrapping.
5508 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5510         PR middle-end/53136
5511         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
5512         calls to cgraph_node_name in xstrdup.
5513         (ipa_make_edge_direct_to_target): Ditto.
5514         * cgraph.c (dump_cgraph_node): Ditto.
5515         * tree-sra.c (convert_callers_for_node): Ditto.
5516         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
5517         * ipa-cp.c (perhaps_add_new_callers): Ditto.
5518         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
5519         (cgraph_materialize_all_clones): Ditto.
5520         * ipa-inline.c (report_inline_failed_reason): Ditto.
5521         (want_early_inline_function_p): Ditto.
5522         (edge_badness): Ditto.
5523         (update_edge_key): Ditto.
5524         (flatten_function): Ditto.
5525         (ipa_inline): Ditto.
5526         (inline_always_inline_functions): Ditto.
5527         (early_inline_small_functions): Ditto.
5529 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5531         PR target/53141
5532         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
5533         constraints 0 and 1.
5535 012-04-30  Jan Hubicka  <jh@suse.cz>
5537         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
5538         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
5539         (cgraph_add_to_same_comdat_group): Remove.
5540         (cgraph_add_asm_node): Move to cgraphunit.c.
5541         (cgraph_make_decl_local): Move to symtab.c
5542         (cgraph_make_node_local_1): Update.
5543         (cgraph_can_remove_if_no_direct_calls_and): Update.
5544         (used_from_object_file_p): Update.
5545         (resolution_used_from_other_file_p): Move to symtab.c
5546         (cgraph_used_from_object_file_p): move to symtab.c
5547         (verify_cgraph_node): Verify same comdat groups.
5548         * cgraph.h (cgraph_asm_node): Rename to ...
5549         (asm_node): ... this one.
5550         (cgraph_asm_nodes): Rename to ...
5551         (asm_nodes): ... this one.
5552         (symtab_add_to_same_comdat_group): New function.
5553         (symtab_dissolve_same_comdat_group_list): New function.
5554         (symtab_used_from_object_file_p): Declare.
5555         (symtab_make_decl_local): Declare.
5556         (cgraph_add_to_same_comdat_group): Remove.
5557         (cgraph_add_asm_node): Remove.
5558         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
5559         Remove.
5560         (cgraph_finalize_compilation_unit): Rename to ...
5561         (finalize_compilation_unit): ... this one.
5562         (cgraph_optimize): Rename to ....
5563         (compile): ... this one.
5564         (add_asm_node): Declare.
5565         (fixup_same_cpp_alias_visibility): Declare.
5566         (cgraph_make_decl_local): Remove.
5567         (varpool_assemble_pending_decls): Rename to ...
5568         (varpool_output_variables): ... this one.
5569         (varpool_remove_unreferenced_decls): Remove.
5570         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
5571         (preserve_function_body_p): Make static.
5572         * toplev.c (compile_file): Update comments; update.
5573         * cgraphunit.c: Update comments.
5574         (cgraph_expand_all_functions): Rename to ...
5575         (expand_all_functions): ... this one; update.
5576         (cgraph_mark_functions_to_output): Rename to ...
5577         (mark_functions_to_output): ... this one; cleanup.
5578         (cgraph_output_pending_asms): Remove prototype.
5579         (asm_nodes, asm_last_node): New static vars.
5580         (cgraph_process_new_functions): Update.
5581         (cgraph_reset_node): Cleanup; add comment.
5582         (cgraph_add_new_function): Update.
5583         (cgraph_output_pending_asms): Rename to ...
5584         (output_asm_statements): ... this one.
5585         (add_asm_node): New function.
5586         (fixup_same_cpp_alias_visibility): New function based on code
5587         in cgraph_analyze_function.
5588         (cgraph_analyze_function): Use it.
5589         (cgraph_order_sort): Update.
5590         (cgraph_output_in_order): Update.
5591         (cgraph_function_versioning): Update.
5592         (cgraph_optimize): Rename to ...
5593         (compile): ... this one; initialize streamer hooks here.
5594         (cgraph_finalize_compilation_unit): Rename to ...
5595         (finalize_compilation_unit): ... this one; do not initialize streamer
5596         hook here.
5597         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
5598         * dwarf2out.c: Update ocmment.
5599         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
5600         * method.c (use_thunk): Likewise.
5601         * semantics.c (maybe_add_lambda_conv_op): Likewise.
5602         * decl2.c (maybe_emit_vtables): Likewise.
5603         (cp_write_global_declarations): Use finalize_compilation_unit.
5604         * parser.c (cp_parser_asm_definition): Use add_asm_node.
5605         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
5606         * c-decl.c (c_write_global_declarations): Use
5607         finalize_compilation_unit.
5608         * langhooks.c (write_global_declarations): Update.
5609         * ipa.c (cgraph_externally_visible_p): Update.
5610         (dissolve_same_comdat_group_list): Remove.
5611         (function_and_variable_visibility): Update.
5612         * symtab.c: Inlcude lto-streamer.h and rtl.h
5613         (ld_plugin_symbol_resolution_names): New.
5614         (symtab_add_to_same_comdat_group): New.
5615         (symtab_dissolve_same_comdat_group_list): New.
5616         (resolution_used_from_other_file_p): Move here from cgraph.c
5617         (symtab_used_from_object_file_p): New.
5618         (symtab_make_decl_local): New.
5619         * passes.c (register_pass): Update comments.
5620         * c-parser.c (c_parser_asm_definition): Update.
5621         * varpool.c (varpool_analyze_node): Use
5622         fixup_same_cpp_alias_visibility.
5623         (varpool_remove_unreferenced_decls): Make static.
5624         (varpool_assemble_pending_decls): Rename to ...
5625         (varpool_output_variables): ... this one; call
5626         varpool_remove_unreferenced_decls.
5627         (varpool_used_from_object_file_p): Remove.
5629 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
5631         PR c++/51033
5632         * c-typeck.c (build_array_ref): Call
5633         convert_vector_to_pointer_for_subscript.
5634         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
5636 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5638         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
5639         to compile-time "mode == <MODE>mode" checks.
5640         (and splitter): Ditto.
5642 2012-04-30  Richard Henderson  <rth@redhat.com>
5644         * config/arm/arm.md (UNSPEC_LL): New.
5645         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
5646         (arm_load_exclusivedi): Use %H0.
5648 2012-04-30  Jason Merrill  <jason@redhat.com>
5650         * dwarf2out.c (comdat_symbol_id): Add const.
5651         (union die_symbol_or_type_node): Add const to die_symbol.
5652         (output_die_symbol, output_die, output_comp_unit): Adjust.
5654 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
5656         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
5657         * config/arm/neon.md (negdi2_neon): New insn.
5658         Also add splitters for core and NEON registers.
5660 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
5662         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
5663         (arm_print_operand): Add 'x' format.
5664         * config/arm/constraints.md (Dn): Allow const_int.
5665         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
5666         Use 'x' format to print constants.
5667         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
5668         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
5669         is enabled.
5670         (movdi_vfp_cortexa8): Likewise.
5672 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
5673             Sameera Deshpande  <sameera.deshpande@arm.com>
5674             Greta Yorsh  <greta.yorsh@arm.com>
5676         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
5677         * config/arm/arm.c (ldm_stm_operation_p): New function.
5678         * config/arm/predicates.md (load_multiple_operation): Update predicate.
5679         (store_multiple_operation): Likewise.
5681         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
5682         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
5683         * config/arm/predicates.md (load_multiple_operation): Add arguments.
5684         (store_multiple_operation): Likewise.
5686 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5688         * config/i386/i386.md (and<mode>3): Expand masking operations with
5689         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
5690         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
5692 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
5694         Add -Wvarargs option
5695         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
5696         argument for the various warning_at calls.
5697         * docs/invoke.texi: Update the documentation.
5699 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
5701         Switch -ftrack-macro-expansion=2 on by default.
5702         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
5703         by default.
5705         Fix va_start related location
5706         * builtins.c (fold_builtin_next_arg): Unwinds to the first
5707         location in real source code.
5709         Make conversion warnings work on NULL with -ftrack-macro-expansion
5710         * input.h (expansion_point_location_if_in_system_header): Declare
5711         new function.
5712         * input.c (expansion_point_location_if_in_system_header): Define it.
5714         Fix -Wuninitialized for -ftrack-macro-expansion
5715         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
5716         declaration.  Use linemap_location_before_p for source locations.
5718         Strip "<built-in>" loc from displayed expansion context
5719         * input.c (expand_location_1): When expanding to spelling location
5720         in a context of a macro expansion, skip reserved system header
5721         locations.  Update comments.  * tree-diagnostic.c
5722         (maybe_unwind_expanded_macro_loc): Likewise.
5724         Make expand_location resolve to locus in main source file
5725         * input.c (expand_location_1): New.  Takes a parameter to choose
5726         whether to resolve the location to spelling or expansion point.
5727         Was factorized from ...
5728         (expand_location): ... here.
5729         (expand_location_to_spelling_point): New.  Implemented in terms of
5730         expand_location_1.
5731         * diagnostic.c (diagnostic_build_prefix): Use the new
5732         expand_location_to_spelling_point instead of expand_location.
5734         Fix PCH crash on GTYed pointer-to-scalar field of a struct
5735         * gengtype.c (write_types_process_field): Force second argument of
5736         the call to the PCH object hierarchy walker to be 'x'.
5738 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
5740         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
5741         predicate to discriminate types.
5743 2012-04-30  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5745         * doc/invoke.texi (Wmissing-format-attribute): Document as an
5746         alias of Wsuggest-attribute=format.
5747         * c-typeck.c (convert_for_assignment): Replace
5748         Wmissing-format-attribute with Wsuggest-attribute=format.
5749         (digest_init): Likewise.
5751 2012-04-29  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5753         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
5754         * common.opt (Wmissing-noreturn): Alias of
5755         -Wsuggest-attribute=noreturn.
5757 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
5759         PR target/53156
5760         * config/cris/cris.md (andqu): New peephole2.
5761         (andu): Tweak head comment.
5763 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5764             Steven Bosscher  <steven@gcc.gnu.org>
5765             Maxim Kuvyrkov  <maxim@codesourcery.com>
5767         PR tree-optimization/38785
5768         * common.opt (ftree-partial-pre): New option.
5769         * doc/invoke.texi: Document it.
5770         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
5771         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
5772         benefit speed path.
5773         (execute_pre): Use flag_tree_partial_pre.
5775 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5777         PR target/52999
5778         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
5779         in constant pool.
5781 2012-04-27  Ollie Wild  <aaw@google.com>
5783         * doc/invoke.texi (Wliteral-suffix): Document new option.
5785 2012-04-27  Tom Tromey  <tromey@redhat.com>
5787         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
5788         (dwarf_tag_name): Use get_DW_TAG_name.
5789         (dwarf_attr_name): Use get_DW_AT_name.
5790         (dwarf_form_name): Use get_DW_FORM_name.
5791         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
5793 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
5795         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
5796         arguments are -1 and 0, by negating the result of the conditional.
5798 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
5800         PR target/53138
5801         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
5803 2012-04-27  Richard Guenther  <rguenther@suse.de>
5805         * tree-flow.h (is_hidden_global_store): Remove.
5806         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
5807         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
5808         (stmt_may_clobber_global_p): Likewise.
5809         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
5810         (stmt_may_clobber_global_p): Likewise.
5811         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
5812         stmt_may_clobber_global_p.
5813         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
5815 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
5817         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
5818         place.
5820         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
5821         reorganize some fields and update comments.  Rename bit_test_uniq
5822         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
5823         (collect_switch_conv_info): New function, collects info about a
5824         GIMPLE_SWITCH into a struct switch_conv_info.
5825         (check_range): Simplify to use pre-recorded info.  Fix think-o in
5826         range-branch ratio check.
5827         (check_process_case): Remove function.
5828         (check_all_empty_except_final): New function, verifies that all
5829         non-final basic blocks are empty.
5830         (process_switch): Simplify to use pre-recorded info.  Call
5831         collect_switch_conv_info to do that.  Assert that degenerate switch
5832         statements have been cleaned up.
5834 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
5836         PR middle-end/27139
5837         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
5839 2012-04-25  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5841         PR c/53130
5842         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
5844 2012-04-27  Tom de Vries  <tom@codesourcery.com>
5846         PR tree-optimization/51879
5847         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
5848         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
5849         of ...
5850         (defs_to_varying): ... here.  Don't set use_processed.
5851         (visit_reference_op_call): Handle gimple_vdef.
5852         Handle case that lhs is NULL_TREE.
5853         (visit_use): Use mark_use_processed.  Handle calls with side-effect
5854         using visit_reference_op_call.
5856 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
5858         * sched-deps.c (fixup_sched_groups): Rename to...
5859         (chain_to_prev_insn): ...this.
5860         (chain_to_prev_insn_p): New function.
5861         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
5863 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
5865         * sched-int.h (_haifa_insn_data): Move priority_status.
5866         Add model_index.
5867         (INSN_MODEL_INDEX): New macro.
5868         * haifa-sched.c (insn_delay): New function.
5869         (sched_regno_pressure_class): Update commentary.
5870         (mark_regno_birth_or_death): Pass the liveness bitmap and
5871         pressure array as arguments, instead of using curr_reg_live and
5872         curr_reg_pressure.  Only update the pressure if the bit in the
5873         liveness set has changed.
5874         (initiate_reg_pressure_info): Always trust the live-in set for
5875         SCHED_PRESSURE_MODEL.
5876         (initiate_bb_reg_pressure_info): Update call to
5877         mark_regno_birth_or_death.
5878         (dep_list_size): Take the list as argument.
5879         (calculate_reg_deaths): New function, extracted from...
5880         (setup_insn_reg_pressure_info): ...here.
5881         (MODEL_BAR): New macro.
5882         (model_pressure_data, model_insn_info, model_pressure_limit)
5883         (model_pressure_group): New structures.
5884         (model_schedule, model_worklist, model_insns, model_num_insns)
5885         (model_curr_point, model_before_pressure, model_next_priority):
5886         New variables.
5887         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
5888         (MODEL_INSN_INFO, MODEL_INSN): New macros.
5889         (model_index, model_update_limit_points_in_group): New functions.
5890         (model_update_limit_points, model_last_use_except): Likewise.
5891         (model_start_update_pressure, model_update_pressure): Likewise.
5892         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
5893         (model_excess_cost, model_dump_pressure_points): Likewise.
5894         (model_set_excess_costs): Likewise.
5895         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
5896         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
5897         schedule as an alternative tie-breaker.  Update the call to
5898         dep_list_size.
5899         (ready_sort): Call model_set_excess_costs.
5900         (update_register_pressure): Update call to mark_regno_birth_or_death.
5901         Rely on that function to check liveness rather than doing it here.
5902         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
5903         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
5904         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
5905         (model_record_pressure, model_record_pressures): New functions.
5906         (model_record_final_pressures, model_add_successors_to_worklist)
5907         (model_promote_predecessors, model_choose_insn): Likewise.
5908         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
5909         (model_start_schedule, model_finalize_pressure_group): Likewise.
5910         (model_end_schedule): Likewise.
5911         (schedule_insn): Say when we're scheduling the next instruction
5912         in the model schedule.
5913         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
5914         (queue_to_ready): Do not add instructions that are
5915         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
5916         Always allow the next instruction in the model schedule to be added.
5917         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5918         and delay for SCHED_PRESSURE_MODEL too.
5919         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
5920         SCHED_PRIORITY_MODEL, but also take the DFA into account.
5921         (schedule_block): Call model_start_schedule and model_end_schedule.
5922         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
5923         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5924         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
5925         region_ref_regs.
5926         (sched_finish): Update accordingly.
5927         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5928         to SCHED_PRESSURE_MODEL.
5929         (add_jump_dependencies): Update call to dep_list_size.
5930         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
5931         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5932         to SCHED_PRESSURE_MODEL.
5933         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
5934         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
5935         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5936         handling to SCHED_PRESSURE_MODEL.
5938 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
5940         * common.opt (fsched-pressure-algorithm=): New option.
5941         * flag-types.h (sched_pressure_algorithm): New enum.
5942         * sched-int.h (sched_pressure_p): Replace with...
5943         (sched_pressure): ...this new variable.
5944         * haifa-sched.c (sched_pressure_p): Replace with...
5945         (sched_pressure): ...this new variable.
5946         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
5947         (update_reg_and_insn_max_reg_pressure, schedule_insn)
5948         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
5949         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
5950         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5951         (sched_analyze_insn): Likewise.
5952         * sched-rgn.c (schedule_region): Likewise.
5953         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
5955 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
5957         * PR middle-end/52997
5958         * ira.c (find_moveable_pseudos): Call resize_reg_info.
5960         PR middle-end/52940
5961         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
5962         * expr.c (convert_move): Honor unsignedp when extending partial int
5963         modes.
5964         * genmodes.c (complete_mode): Don't clear component field of partial
5965         int modes.
5966         (emit_mode_inner): Don't emit it however.
5967         (calc_wider_mode): Partial int modes widen to their component.
5969 2012-04-26  David S. Miller  <davem@davemloft.net>
5971         * config/sparc/niagara4.md: New file.
5972         * config/sparc/sparc.md: Include it.
5973         * config/sparc/sparc.c (niagara4_costs): New processor costs.
5974         (sparc_option_override): Use it.
5975         (sparc_use_sched_lookahead): Return 2 for niagara4.
5976         (sparc_issue_rate): Likewise.
5978         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
5979         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
5980         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
5981         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
5982         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
5983         alignaddrldi_vis): Set type to gsr.
5984         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
5985         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
5986         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
5987         v<vis3_shift_patname><mode>3, fmean16_vis,
5988         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
5989         fucmp<code>8<P:mode>_vis): Set type to fga.
5990         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
5991         * config/sparc/niagara.md: Likewise.
5992         * config/sparc/niagara2.md: Likewise.
5993         * config/sparc/ultra3.md: Likewise, and fix type matching for
5994         us3_ialuX reservation.
5996 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5998         * reload.c (find_reloads): Change the loop nesting when trying an
5999         alternative with swapped operands.
6001 2012-04-26  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6003         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
6004         comment. Delete unused parameter first_exp_point_map.
6005         (virt_loc_aware_diagnostic_finalizer): Update call.
6007 2012-04-26  Michael Hope  <michael.hope@linaro.org>
6008             Richard Earnshaw  <rearnsha@arm.com>
6010         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
6011         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
6012         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
6013         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
6015 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
6017         * doc/extend.texi: Document avx2 support.
6018         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
6020 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
6022         PR target/53120
6023         * config/cris/cris.md ("*andhi_lowpart_v32")
6024         ("*andqi_lowpart_v32"): Change first input-only operand from
6025         a (match_operand ...) to (match_dup 0).  Drop alternatives with
6026         const_int-matching constraints for redundancy.
6027         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
6028         three-operand alternative.
6030 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6032         PR target/53110
6033         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
6034         instead expand it as zero extension.
6036 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
6038         PR debug/52857
6039         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
6041 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6043         * common.opt (flag_debug_types_section): Default to 0.
6044         (dwarf_version): Default to 4.
6045         (dwarf_record_gcc_switches): Default to 1.
6046         (dwarf_strict): Default to 0.
6047         * toplev.c (process_options): Don't handle dwarf_strict
6048         or dwarf_version here.
6049         * config/vxworks.c (vxworks_override_options): Don't
6050         test whether dwarf_strict or dwarf_version are negative,
6051         instead test !global_options_set.x_dwarf_*.
6052         * config/darwin.c (darwin_override_options): Default to
6053         dwarf_version 2.
6054         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
6055         and -fno-debug-types-section are now the default.
6057 2012-04-25  Jan Hubicka  <jh@suse.cz>
6059         * cgraphunit.c: Update toplevel comment.
6060         (tree_rest_of_compilation): Merge into cgraph_expand_function.
6061         (cgraph_analyze_function): Make static.
6062         (cgraph_decide_is_function_needed): Make static.
6063         (cgraph_add_new_function): Use expand_function instead of
6064         rest_of_compilation.
6065         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6066         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6067         Move to cgraph.c
6068         (cgraph_inline_p): Remove.
6069         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
6070         (init_cgraph): Add comment.
6071         * cgraphbuild.c (record_reference, mark_address, mark_load,
6072         mark_store): Do not call analyze_expr hook.
6073         * cgraph.c: Update toplevel comment.
6074         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6075         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6076         Move fere from cgraphunit.c
6077         (cgraph_mark_force_output_node): Move to cgraph.h
6078         * cgraph.h: Reorder so the comments match the function placement.
6079         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
6080         (cgraph_mark_force_output_node): Move here from cgraph.c
6081         * tree.c (free_lang_data): Do not clear analyze_expr hook.
6082         * ipa-inline-transform.c (preserve_function_body_p): New function.
6083         (inline_transform): Update.
6084         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
6085         * langhooks.h (lang_hooks_for_callgraph): Remove.
6086         (lang_hooks): Remove callgraph.
6087         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
6088         * varpool.c: Remove out of date comment.
6089         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
6090         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
6092 2012-04-25  Jan Hubicka  <jh@suse.cz>
6094         PR middle-end/53089
6095         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
6096         forward declaration.
6097         (cgraph_finalize_function): Finalize them here.
6098         * symtab.c (dump_symtab): Dump ctors and dtors.
6100 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6102         PR middle-end/52979
6103         * stor-layout.c (get_best_mode): Don't return mode with bitsize
6104         larger than maxbits.  Don't compute maxbits modulo align.
6105         Also check that unit bytes long store at bitpos / unit * unit
6106         doesn't affect bits beyond bitregion_end.
6107         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
6108         would not fit into bitregion_start ... bitregion_end + 1 bit region.
6109         (store_split_bit_field): Decrease unit close to end of bitregion_end
6110         if access is restricted in order to avoid mutual recursion.
6112         PR tree-optimization/53058
6113         * double-int.h (double_int_max_value, double_int_min_value): New
6114         prototypes.
6115         * double-int.c (double_int_max_value, double_int_min_value): New
6116         functions.
6117         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
6118         or GT_EXPR with double_int_max_value instead of double_int_mask.
6120 2012-04-25  Richard Guenther  <rguenther@suse.de>
6122         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6123         * tree-vect-loop.c (vect_transform_loop): Adjust.
6124         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
6125         the maximum number of iterations for the epilogue loop.
6126         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
6128 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6130         PR c/52880
6131         * c-typeck.c (set_nonincremental_init,
6132         set_nonincremental_init_from_string): Pass true instead of false
6133         as IMPLICIT to add_pending_init.
6135 2012-04-25  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6137         * c-typeck.c (pop_init_level): Improve diagnostics.
6139 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
6141         * compare-elim.c (try_eliminate_compare): Also handle operands with
6142         implicit extensions.
6144 2012-04-25  Alan Modra  <amodra@gmail.com>
6146         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
6147         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
6148         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
6149         (no_global_regs_above): Delete.
6150         (no_global_regs): New function.
6151         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
6152         value for load multiple test.
6153         (savres_routine_syms): Increase size.
6154         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
6155         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
6156         rather than a number of boolean flags.  Update all callers.
6157         (rs6000_savres_routine_name): Generate vector save/restore names.
6158         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
6159         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
6160         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
6161         and using_store_multiple.  Expand uses.  Don't always use r11 as
6162         frame reg when needed for out-of-line saves.  Set up initial offset
6163         for out-of-line vector saves when buying stack frame.  Handle pointer
6164         reg setup for out-of-line fp save.  Emit call to out-of-line vector
6165         save function.  Choose r11 or r12 for vrsave reg when available for
6166         better scheduling.
6167         (rs6000_output_function_prologue): Don't emit .extern for ELF.
6168         (rs6000_emit_epilogue): Choose a better frame reg when restoring
6169         from back-chain to suit out-of-line vector restore functions.  Emit
6170         call to out-of-line vector restore function.  Adjust register used
6171         for cr restore.  Tweak pointer register setup for gpr restore.
6172         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
6173         FIXED_R13.
6174         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
6175         (V_SAVE_INLINE): Define.
6176         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
6178 2012-04-25  Alan Modra  <amodra@gmail.com>
6180         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
6181         out-of-line save/restore for large frames.  Don't disable
6182         out-of-line saves on ABI_AIX when using static chain reg.
6183         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
6184         clobber static chain reg, and tweak for out-of-line gpr saves
6185         that use r1.
6187 2012-04-25  Alan Modra  <amodra@gmail.com>
6189         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
6190         (rs6000_emit_prologue): Use the above to catch register overlap.
6192 2012-04-25  Alan Modra  <amodra@gmail.com>
6194         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
6195         decl.  Move logic selecting update reg to callers.  Update all callers.
6196         (rs6000_emit_allocate_stack): Add copy_off param.
6197         (emit_frame_save): Don't handle reg+reg addressing.
6198         (ptr_regno_for_savres): New function, extracted from..
6199         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
6200         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
6201         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
6202         frame offset adjustment for out-of-line save with copy from sp.
6203         Simplify condition controlling whether cr is saved early or
6204         late.  Use ptr_regno_for_savres to verify correct reg is set
6205         up for out-of-line saves.  Pass the actual pointer reg used to
6206         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
6207         function.  Rearrange spe vars so code is similar to that
6208         elsewhere in this function.  Don't update frame_off when spe
6209         save code will restore r11.  Use emit_frame_save for spe and
6210         gpr saves.  Consolidate darwin out-of-line gpr setup with that
6211         for other abis.  Don't assume frame_offset is zero and frame
6212         reg is sp when setting up altivec reg saves, and calculate
6213         exact offset requirement.
6214         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
6215         spe restore code.  Consolidate darwin out-of-line gpr setup
6216         with that for other abis.
6218 2012-04-25  Alan Modra  <amodra@gmail.com>
6220         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
6221         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
6222         the replacement.
6223         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
6224         frame_reg_to_sp.
6225         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
6226         and emit_frame_save calls.  Cope with possibly missing note.
6228 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
6230         * config/i386/i386.c (build_processor_model_struct): New function.
6231         (make_var_decl): New function.
6232         (fold_builtin_cpu): New function.
6233         (ix86_fold_builtin): New function.
6234         (make_cpu_type_builtin): New function.
6235         (ix86_init_platform_type_builtins): New function.
6236         (ix86_expand_builtin): Expand new builtins by folding them.
6237         (ix86_init_builtins): Make new builtins to detect CPU type.
6238         (TARGET_FOLD_BUILTIN): New macro.
6239         (IX86_BUILTIN_CPU_INIT): New enum value.
6240         (IX86_BUILTIN_CPU_IS): New enum value.
6241         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
6242         * config/i386/i386-builtin-types.def: New function type.
6243         * testsuite/gcc.target/builtin_target.c: New testcase.
6244         * doc/extend.texi: Document builtins.
6246 2012-04-24  Olivier Hainque  <hainque@adacore.com>
6248         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
6249         * toplev.c (process_options): Default to dwarf_version 2.
6250         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
6251         and dwarf_version 2.
6253 2012-04-24  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6255         * tree-pretty-print.h (default_tree_printer): Do not declare.
6256         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
6257         intl.h.
6258         (default_tree_diagnostic_starter): Make static.
6259         (default_tree_printer): Move to here. Make static.
6260         (tree_diagnostics_defaults): New.
6261         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
6262         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
6263         * toplev.c: Do not include tree-pass.h.
6264         (default_tree_printer): Move from here.
6265         (general_init): Use tree_diagnostics_defaults.
6267 2012-04-24  Chao-ying Fu  <fu@mips.com>
6269         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
6270         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
6271         * config/mips/gnu-user.h
6272         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
6273         (GNU_USER_TARGET_LINK_SPEC): New define.
6274         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6275         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
6276         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
6277         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
6278         GNU_USER_TARGET_ENDFILE_SPEC.
6279         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
6280         (GNU_USER_TARGET_LINK_SPEC): New define.
6281         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6282         * config/mips/linux-common.h: New file.
6284 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6286         PR target/47197
6287         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
6288         (altivec_build_resolved_builtin): Call fully_fold_convert.
6290 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
6292         PR target/53065
6293         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
6295 2012-04-24  Richard Guenther  <rguenther@suse.de>
6297         PR tree-optimization/53085
6298         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
6299         stores.
6301 2012-04-24  Richard Guenther  <rguenther@suse.de>
6303         * tree-if-conv.c (main_tree_if_conversion): Move bb under
6304         ENABLE_CHECKING.
6306 2012-04-24  Jim Meyering  <meyering@redhat.com>
6308         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
6309         absence of an define_enum call.
6311 2012-04-24  Richard Guenther  <rguenther@suse.de>
6313         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
6314         the epilogue loop is not re-used as unvectorized version
6315         record the its maximum number of iterations.
6317 2012-04-24  Andrew Pinski  <apinski@cavium.com>
6319         * tree-ssa-forwprop.c (simplify_bitwise_binary):
6320         Don't directly use def1/def2.
6322 2012-04-24  Richard Guenther  <rguenther@suse.de>
6324         PR tree-optimization/53098
6325         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
6326         comparison sign.
6328 2012-04-24  Andrew Pinski  <apinski@cavium.com>
6330         PR tree-opt/33512
6331         * tree-ssa-forwprop.c (defcodefor_name): New function.
6332         (simplify_bitwise_binary): Use defcodefor_name instead of manually
6333         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
6334         Simplify "(~X | Y) & X" to "X & Y" and
6335         "(~X & Y) | X" to "X | Y".
6337 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6339         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
6340         validate_change to add clobbers if IN_GROUP is nonzero.
6341         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
6342         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
6343         prototype.
6344         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
6345         set to false.
6346         * config/s390/s390.c (insn_invalid_p): Likewise.
6348 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
6350         PR middle-end/53084
6351         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
6352         (output_addressed_constants): Likewise.
6354         PR middle-end/52999
6355         * varasm.c (get_section): Don't ICE for section conflicts with
6356         built-in section kinds.
6358 2012-04-23  DJ Delorie  <dj@redhat.com>
6360         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
6361         (LIBSTDCXX): Change to CPP2.
6363 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6365         PR bootstrap/52878
6366         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
6367         extra_masks.
6369 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
6371         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
6372         (*addsi_2_zext): Ditto.
6373         (*add<mode>_3): Ditto.
6374         (*addsi_3_zext): Ditto.
6375         (*add<mode>_5): Ditto.
6377 2012-04-23  Andrew Pinski  <apinski@cavium.com>
6379         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
6380         (C & B) to (A OP0) & B.
6382 2012-04-23  Martin Jambor  <mjambor@suse.cz>
6384         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
6385         temporaries created for a bitfield (reverting revision 122014).
6387 2012-04-23  Richard Guenther  <rguenther@suse.de>
6389         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
6390         the condition using is_gimple_condexpr and avoid the not necessary
6391         boolification.
6392         (set_prologue_iterations): Likewise.
6393         (vect_loop_versioning): Likewise.
6395 2012-04-23  Richard Guenther  <rguenther@suse.de>
6397         PR tree-optimization/53070
6398         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
6399         (main_tree_if_conversion): Verify we succeeded in that.
6401 2012-04-23  Jan Hubicka  <jh@suse.cz>
6403         * lto-symtab.c (lto_cgraph_replace_node): Do not call
6404         mark_reahcable_node.
6405         * cgraph.c (cgraph_remove_node): Do not clear reachable.
6406         (cgraph_mark_reachable_node): Remove.
6407         (cgraph_mark_force_output_node): Do not set reachable.
6408         (dump_cgraph_node): Do not dump reachable.
6409         (cgraph_create_virtual_clone): Do not set reachable.
6410         * cgraph.h (cgraph_node): Remove reachable flag.
6411         (varpool_node): Remove reachable flag.
6412         (cgraph_mark_if_needed): Remove.
6413         (cgraph_mark_reachable_node): Remove.
6414         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
6415         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
6416         reachable.
6417         (cgraph_add_new_function): Likewise.
6418         (cgraph_mark_if_needed): Remove.
6419         (cgraph_analyze_function): Do not set target as reachable.
6420         (process_function_and_variable_attributes): Do not care about
6421         dllexport.
6422         (cgraph_analyze_functions): Do not set reachable flags.
6423         (cgraph_mark_functions_to_output): Do not check reachability.
6424         (cgraph_copy_node_for_versioning): Do not set reachable flag.
6425         (dbxout_expand_expr): Update.
6426         * c-decl.c (merge_decls): Do not track changed externs.
6427         * ipa.c: Include pointer-set.h
6428         (enqueue_cgraph_node): Use reachable pointer set.
6429         (process_references): Likewise.
6430         (cgraph_remove_unreachable_nodes): Likewise.
6431         (whole_program_function_and_variable_visibility): Do not recompute
6432         reachable.
6433         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
6435 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
6437         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
6439 2012-04-23  Richard Guenther  <rguenther@suse.de>
6441         PR c/53060
6442         * c-typeck.c (build_binary_op): Fix typo.
6444 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
6446         PR tree-optimizations/52891
6447         * tree-vect-patterns.c (adjust_bool_pattern): Use
6448         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
6449         but with non-standard precision.
6451 2012-04-22  Jan Hubicka  <jh@suse.cz>
6453         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
6454         tree refs.
6456 2012-04-22  Jan Hubicka  <jh@suse.cz>
6458         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
6459         * cgraphbuild.c (record_reference, record_type_list, mark_address,
6460         mark_load, mark_store): Do not mark varpool nodes as needed.
6461         * cgraph.c (cgraph_new_nodes): Remove.
6462         (cgraph_create_function_alias): Do not mark nodes as reachable.
6463         (cgraph_add_thunk): Likewise.
6464         (cgraph_mark_reachable_node): Do not manage the queue.
6465         * cgraph.h (cgraph_node): Remove next_needed.
6466         (varpool_nodes_queue): Remove next_needed and prev_needed.
6467         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
6468         (cgraph_new_nodes): Declare.
6469         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
6470         (varpool_analyze_pending_decls): Remove.
6471         (varpool_analyze_node): New.
6472         (varpool_mark_needed_node): Remove.
6473         (varpool_first_variable, varpool_next_variable): New inlines.
6474         (varpool_first_static_initializer, varpool_next_static_initializer):
6475         Update.
6476         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
6477         (varpool_first_defined_variable): New inline.
6478         (varpool_next_defined_variable): New inline
6479         (FOR_EACH_VARIABLE): Reimplement.
6480         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
6481         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
6482         needed flag.
6483         * cgraphunit.c (cgraph_new_nodes): Declare here.
6484         (enqueue_node): New function.
6485         (cgraph_process_new_functions): update for new
6486         node set; when constructing cgraph enqueue node for processing.
6487         (cgraph_add_new_function): Use new node set.
6488         (process_function_and_variable_attributes): Do not set varpool needed
6489         flags.
6490         (referred_to_p): New function.
6491         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
6492         when varpool is in construction.
6493         (cgraph_analyze_functions): Rewrite.
6494         (cgraph_expand_all_functions): Update.
6495         (cgraph_output_in_order): Do not analyze pending decls; do not set
6496         needed flags.
6497         (cgraph_optimize): Do not analyze pending decls.
6498         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
6499         in other partition; do not mark node as needed.
6500         * dwarf2out.c (reference_to_unused): Use analyzed flag.
6501         (premark_types_used_by_global_vars_helper): Likewise.
6502         * ipa.c (process_references): Do not call varpool_mark_needed_node.
6503         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
6504         cgrpah queues.
6505         (function_and_variable_visibility): Do not mark node as needed.
6506         (whole_program_function_and_variable_visibility): Likewise.
6507         * Makefile.in (gt-varpool.h): No longer needed.
6508         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
6509         (ipa_write_summaries): Do not use needed flag.
6510         * varpool.c: Do not include gt-varpool.h
6511         (x_varpool_nodes_queue, x_varpool_last_needed_node,
6512         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
6513         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
6514         Remove.
6515         (varpool_remove_node): Do not update the lists.
6516         (dump_varpool_node): Do not dump needed flag.
6517         (varpool_enqueue_needed_node): Remove.
6518         (varpool_mark_needed_node): Remove.
6519         (varpool_reset_queue): Remove.
6520         (varpool_finalize_decl): Move to cgraphunit.c
6521         (varpool_analyze_node): New functions based on former
6522         varpool_analyze_pending_decls.
6523         (varpool_analyze_pending_decls): Remove.
6524         (varpool_assemble_decl): Do not update the lists.
6525         (enqueue_node): New function.
6526         (varpool_remove_unreferenced_decls): Rewrite.
6527         (varpool_empty_needed_queue): Remove.
6528         (add_new_static_var): Do not mark node as needed.
6529         (varpool_create_variable_alias): Handle expansion state
6530         creation.
6531         * except.c (output_ttype): Do not mark node as needed.
6532         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
6533         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
6534         Likewise.
6535         * tree-switch-conversion.c (build_one_array): Likewise.
6537 2012-04-22  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6539         PR c/44774
6540         * doc/invoke.texi (pedantic): Rename to Wpedantic.
6541         * common.opt (Wpedantic): New.
6542         (pedantic): Alias Wpedantic.
6543         * diagnostic.c (warning_at): Likewise.
6544         * c-decl.c (diagnose_mismatched_decls): Likewise.
6545         (build_array_declarator): Likewise.
6546         (mark_forward_parm_decls):
6547         (check_bitfield_type_and_width): Likewise.
6548         (grokdeclarator): Likewise.
6549         (grokfield): Likewise.
6550         (finish_struct): Likewise.
6551         (build_enumerator): Likewise.
6552         (store_parm_decls_oldstyle): Likewise.
6553         (declspecs_add_qual): Likewise.
6554         (declspecs_add_type): Likewise.
6555         (finish_declspecs): Likewise.
6556         * c-typeck.c (composite_type): Likewise.
6557         (comp_target_types): Likewise.
6558         (build_array_ref): Likewise.
6559         (pointer_diff): Likewise.
6560         (build_unary_op): Likewise.
6561         (build_conditional_expr): Likewise.
6562         (build_c_cast): Likewise.
6563         (convert_for_assignment): Likewise.
6564         (maybe_warn_string_init): Likewise.
6565         (digest_init): Likewise.
6566         (pop_init_level): Likewise.
6567         (set_init_index): Likewise.
6568         (c_finish_goto_label): Likewise.
6569         (c_finish_return): Likewise.
6570         (do_case): Likewise.
6571         (build_binary_op): Likewise.
6572         * c-parser.c (static): Likewise.
6573         (c_parser_external_declaration): Likewise.
6574         (c_parser_declaration_or_fndef): Likewise.
6575         (c_parser_static_assert_declaration_no_se): Likewise.
6576         (c_parser_enum_specifier): Likewise.
6577         (c_parser_struct_or_union_specifier): Likewise.
6578         (c_parser_struct_declaration): Likewise.
6579         (c_parser_alignas_specifier): Likewise.
6580         (c_parser_braced_init): Likewise.
6581         (c_parser_initelt): Likewise.
6582         (c_parser_compound_statement_nostart): Likewise.
6583         (c_parser_conditional_expression): Likewise.
6584         (c_parser_alignof_expression): Likewise.
6585         (c_parser_postfix_expression): Likewise.
6586         (c_parser_postfix_expression_after_paren_): Likewise.
6587         (c_parser_objc_class_instance_variables): Likewise.
6588         (c_parser_objc_method_definition): Likewise.
6589         (c_parser_objc_methodprotolist): Likewise.
6591 2012-04-22  Ian Lance Taylor  <iant@google.com>
6593         * godump.c (go_output_typedef): Dump size of structs.
6595 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
6597         Correcting transform_to_exit_first_loop + fix to PR46886
6598         * tree-parloops.c (transform_to_exit_first_loop): Remove
6599         setting of number of iterations according to the loop pattern.
6600         Duplicate from entry to exit->src instead of loop->latch.
6601         (pallelize_loops): Remove the condition preventing do-while loops.
6602         * tree-cfg.c (bool bb_in_region_p): New.
6603         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
6604         Adjust redirection of the duplicated iteration.
6606 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
6608         PR bootstrap/53021
6609         * rtl.def (ADDRESS): Use "i" rather than "w".
6610         * rtl.h (find_base_term): Delete.
6611         (may_be_sp_based_p): Declare.
6612         * rtl.c (rtx_code_size): Remove ADDRESS special case.
6613         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
6614         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
6615         * alias.c: ...here.
6616         (find_base_term): Make static.
6617         (may_be_sp_based_p): New function.
6618         * dse.c (record_store): Use it.
6619         * store-motion.c (store_killed_in_insn): Likewise.
6621 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
6623         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
6625 2012-04-21  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6627         PR 35441
6628         * c-typeck.c (inform_declaration): New.
6629         (build_function_call_vec):  Do not pretty-print
6630         expressions when caret is enabled.
6631         (convert_arguments): Use inform_declaration.
6633 2012-04-20  Jim Meyering  <meyering@redhat.com>
6635         * genmodes.c (make_complex_modes): Don't truncate a mode name of
6636         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
6638 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6640         PR rtl-optimization/44214
6641         * fold-const.c (exact_inverse): New function.
6642         (fold_binary_loc): Fold vector and complex division by constant into
6643         multiply by recripocal with flag_reciprocal_math; fold vector division
6644         by constant into multiply by reciprocal with exact inverse.
6646 2012-04-20  Jan Hubicka  <jh@suse.cz>
6648         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
6649         force flags.
6650         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
6651         (cgraph_remove_node): Update.
6652         (cgraph_mark_needed_node): Remove.
6653         (cgraph_mark_force_output_node): New.
6654         (dump_cgraph_node): Do not dump needed flag.
6655         (cgraph_node_cannot_be_local_p_1): Update.
6656         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
6657         * cgraph.h (symtab_node_base): Add force_output flag.
6658         (cgraph_node): Remove needed flag.
6659         (varpool_node): Remove force_output flag.
6660         (cgraph_mark_needed_node): Remove.
6661         (cgraph_mark_force_output_node): New.
6662         (cgraph_only_called_directly_or_aliased_p,
6663         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
6664         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
6665         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
6666         (cgraph_add_new_function): Update.
6667         (cgraph_mark_if_needed): Update.
6668         (verify_cgraph_node): Update.
6669         (cgraph_analyze_function): Alias target is reachable.
6670         (process_function_and_variable_attributes): Update: externally_visible
6671         flag makes function reachable.
6672         (cgraph_analyze_functions): Update dumping.
6673         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6674         input_overwrite_node, input_varpool_node): Update streaming.
6675         * lto-streamer-out.c (produce_symtab): Use force_output.
6676         * ipa.c (process_references): Weakrefs must be processed.
6677         (cgraph_remove_unreachable_nodes): Likewise; update for new
6678         force_output flag.
6679         (varpool_externally_visible_p): Weakrefs are externally visible
6680         even if they are not.
6681         (function_and_variable_visibility): Update; when processing alias
6682         pair force the targets to be output.
6683         (whole_program_function_and_variable_visility): Use
6684         mark_reachable_node.
6685         * trans-mem.c (ipa_tm_mark_needed_node): Remove
6686         (ipa_tm_mark_force_output_node): New function.
6687         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
6688         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
6689         aliases.
6690         * varasm.c (mark_decl_referenced): Update.
6691         (find_decl_and_mark_needed): Remove.
6692         (find_decl): New function.
6693         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
6694         alias targets as needed.
6695         (dump_tm_clone_pairs): Update.
6696         * tree-inline.c (copy_bb): Update check.
6697         * symtab.c (dump_symtab_base): Dump force_output.
6698         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
6699         * passes.c (execute_todo): Fix dumping.
6700         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
6701         (varpool_analyze_pending_decls): Alias target is reachable.
6702         (varpool_create_variable_alias): Finalize weakrefs.
6704 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
6706         PR bootstrap/53021
6707         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
6708         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
6709         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
6710         macros instead of constants.
6711         * dse.c (record_store): Check for SP ADDRESS by comparing
6712         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
6713         XEXP to be stack_pointer_rtx.
6715 2012-04-20  Richard Guenther  <rguenther@suse.de>
6717         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
6718         update_call_from_tree when propagating into a call.
6720 2012-04-20  Alan Modra  <amodra@gmail.com>
6722         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
6723         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
6724         sp_offset to frame_off.  Move world save code earlier.
6726 2012-04-20  Richard Guenther  <rguenther@suse.de>
6728         PR tree-optimization/53050
6729         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
6730         Do only one transform on COND_EXPRs at the same time.
6732 2012-04-19  Jan Hubicka  <jh@suse.cz>
6734         * symtab.c (dump_symtab_base): Revert accidental checkin.
6736 2012-04-20  Alan Modra  <amodra@gmail.com>
6738         PR target/53040
6739         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
6740         static chain, set REST_INLINE_FPRS too.
6742 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6744         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
6745         nodes.
6747 2012-04-20  Richard Guenther  <rguenther@suse.de>
6749         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
6750         loops that can never run more often than the vectorization factor.
6752 2012-04-19  Jan Hubicka  <jh@suse.cz>
6754         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
6756 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
6758         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
6760 2012-04-19  Jim Meyering  <meyering@redhat.com>
6762         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
6763         We verified above that the string(including trailing NUL) fits in buf,
6764         so just use memcpy.
6766 2012-04-19  Richard Guenther  <rguenther@suse.de>
6768         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
6769         for dumping DECL_SECTION_NAME.
6771 2012-04-19  Michael Matz  <matz@suse.de>
6773         PR middle-end/52977
6774         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
6775         (struct tree_vector): Adjust GTY length.
6776         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
6778         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
6779         members.
6780         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
6781         caller emitted the length calulation already.
6782         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
6783         before handling any of the fields for structs.
6785 2012-04-19  Richard Guenther  <rguenther@suse.de>
6787         PR tree-optimization/53031
6788         * tree-vrp.c (adjust_range_with_scev): Revert back to
6789         using max_loop_iterations.
6791 2012-04-19  Michael Matz  <matz@suse.de>
6793         * diagnostic.c (emit_diagnostic): Move va_end call after user
6794         of the va_list.
6795         (warning, warning_at, pedwarn, permerror): Ditto.
6797 2012-04-19  Richard Guenther  <rguenther@suse.de>
6799         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
6800         array access.
6802 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
6804         PR target/53033
6805         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
6806         the case *(X+const).
6808 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6810         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
6812 2012-04-19  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6814         PR c/52283/37985
6815         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
6816         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
6818 2012-04-19  Richard Guenther  <rguenther@suse.de>
6820         PR rtl-optimization/44688
6821         * loop-iv.c (determine_max_iter): Only return max_iter.
6822         (iv_number_of_iterations): Also use the recorded loop bound
6823         on the maximum number of iterations.
6824         * loop-unroll.c (decide_unroll_runtime_iterations): Use
6825         max_iter to avoid unrolling loops that do not roll.
6826         (decide_unroll_stupid): Likewise.
6828 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6830         * targhooks.c (default_case_values_threshold): Fix code style nit.
6832         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
6833         case range and type folding from here...
6834         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
6835         type, as documented in tree.def.
6837 2012-04-18  Jan Hubicka  <jh@suse.cz>
6839         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
6840         Declare.
6841         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
6842         cgraph hash and same comdat groups.
6843         (cgraph_optimize): Verify symbol table.
6844         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
6845         (dissolve_same_comdat_group_list): Work on symtab nodes.
6846         (function_and_variable_visibility): Dissolve variable same comdat group
6847         lists, too.
6848         * symtab.c: Include timevar.h
6849         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
6851 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6853         * tree-switch-conversion.c (info): Remove global pass info.
6854         (check_range, check_process_case, check_final_bb, create_temp_arrays,
6855         free_temp_arrays, gather_default_values, build_constructors,
6856         array_value_type, build_one_array, build_arrays, gen_def_assigns,
6857         fix_phi_nodes, gen_inbound_check): Pass info around from ...
6858         (process_switch): ... here.  Unify message format.  Return a const
6859         char pointer to the failure reason message.
6860         (do_switchconv): Unify message format.  Update process_switch usage.
6862         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
6863         * tree-cfg.c (edge_to_cases): Fix documentation.
6865 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
6867         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
6869 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6871         PR tree-optimization/52976
6872         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
6873         (possibly_move_powi): New function.
6874         (rewrite_expr_tree): Call possibly_move_powi.
6875         (rewrite_expr_tree_parallel): Likewise.
6876         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
6877         call add_to_ops_vec instead.
6879 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6881         PR tree-optimization/52976
6882         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
6883         (decrement_power): Likewise.
6884         (propagate_op_to_single_use): Likewise.
6885         (zero_one_operation): Handle __builtin_pow* calls in linearized
6886         expression trees; factor logic into propagate_op_to_single_use.
6887         (undistribute_ops_list): Allow operands with repeat counts > 1.
6889 2012-04-18  Richard Guenther  <rguenther@suse.de>
6891         PR tree-optimization/44688
6892         * cfgloop.h (record_niter_bound): Declare.
6893         * tree-ssa-loop-niter.c (record_niter_bound): Export.
6894         Update the estimation with the upper bound here...
6895         (estimate_numbers_of_iterations_loop): ... instead of here.
6896         Do not forcefully reset a recorded upper bound.
6897         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
6898         Record the maximum number of loop iterations of the prologue loop.
6900 2012-04-18  Jan Hubicka  <jh@suse.cz>
6902         * lto-symtab.c (lto_cgraph_replace_node): Update.
6903         * cgraphbuild.c (record_reference, record_type_list,
6904         record_eh_tables, mark_address, mark_load, mark_store): Update.
6905         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
6906         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
6907         Update.
6908         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
6909         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
6910         * reload.c: Fix typo in comment.
6911         * rtlanal.c: Likewise.
6912         * tree-emultls.c (gen_emutls_addr): Update.
6913         * ipa-reference.c (analyze_function): Update.
6914         * cgraphunit.c (cgraph_analyze_function,
6915         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
6916         Update.
6917         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
6918         (ipa_remove_reference): Likewise.
6919         (ipa_remove_all_refering): Rename to ...
6920         (ipa_remove_all_referring): ... this one; update.
6921         (ipa_dump_references): Update.
6922         (ipa_dump_referring): Update.
6923         (ipa_clone_references): Update.
6924         (ipa_clone_refering): Rename to ...
6925         (ipa_clone_referring): ... this one; update.
6926         (ipa_ref_cannot_lead_to_return): Update.
6927         (ipa_ref_has_aliases_p): Update.
6928         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
6929         forward typedefs.
6930         (ipa_ref_type): Remove.
6931         (ipa_ref_ptr_u): Remove.
6932         (ipa_ref): Remove referencing, refered, refered_index, refering_type
6933         and refered_type; add referring, referred and referred_index.
6934         (ipa_ref_list): Rename refering to referring.
6935         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
6936         ipa_clone_references, ipa_clone_referring): Update prototypes.
6937         * lto-cgraph.c (referenced_from_other_partition_p): Update.
6938         (lto_output_ref): Update.
6939         (add_references): Update.
6940         (input_varpool_node): Update.
6941         (input_refs): Update.
6942         * ipa-ref-inline.h (ipa_ref_node): Update.
6943         (ipa_ref_varpool_node): Update.
6944         (ipa_ref_referring_node): Update.
6945         (ipa_ref_referring_varpool_node): Update.
6946         (ipa_ref_referring_ref_list): Update.
6947         (ipa_ref_referred_ref_list): Update.
6948         (ipa_ref_list_first_referring): Update.
6949         (ipa_empty_ref_list): Update.
6950         (ipa_ref_list_refering_iterate): Rename to ...
6951         (ipa_ref_list_referring_iterate): ... this one.
6952         * cse.c: Update comment.
6953         * ipa-utils.c (ipa_reverse_postorder): Update.
6954         * tree-ssa-alias.c: Update.
6955         * ipa-inline.c (reset_edge_caches): Update.
6956         (update_caller_keys): Update.
6957         * ipa-inline.h: Update comments.
6958         * jump.c: Update comment.
6959         * alias.c: Likewise.
6960         * ipa.c (process_references): Update.
6961         (cgraph_remove_unreachable_nodes): Likewise.
6962         (ipa_discover_readonly_nonaddressable_var): Likewise.
6963         (cgraph_address_taken_from_non_vtable_p): Likewise.
6964         * trans-mem.c (ipa_tm_execute): Update.
6965         * simplify-rtx.c: Fix comment.
6966         * rtl.c: Fix comment.
6967         * symtab.c (symtab_unregister_node): Update.
6968         * varpool.c (dump_varpool_node): Update.
6969         (varpool_analyze_pending_decls): Update.
6970         (assemble_aliases): Update.
6971         (varpool_for_node_and_aliases): Update.
6973 2012-04-18  Richard Guenther  <rguenther@suse.de>
6975         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
6976         use_undefined_p parameter.
6977         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6978         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6979         Likewise.
6980         (estimate_numbers_of_iterations): Likewise.
6981         (estimated_loop_iterations): Adjust.
6982         (max_loop_iterations): Likewise.
6983         (scev_probably_wraps_p): Likewise.
6984         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6985         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
6986         not max_loop_iterations.
6987         (execute_vrp): Remove explicit number of iterations estimation.
6989 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
6991         * config/i386/linux-common.h: New.
6993         * config.gcc: Add i386/linux-common.h before
6994         all i386/linux.h and i386/linux64.h usages.
6996         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
6997         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6998         * config/i386/gnu-user64.h: Likewise.
7000         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
7001         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
7002         (GNU_USER_TARGET_MATHFILE_SPEC): New.
7003         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
7005 2012-04-18  Jan Hubicka  <jh@suse.cz>
7007         * cgraph.c (cgraph_node_name): Remove.
7008         (dump_cgraph_node): Use dump_symtab_base; reformat.
7009         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
7010         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
7011         Declare.
7012         (cgraph_node_name, varpool_node_name): Remove.
7013         (cgraph_node_asm_name, varpool_node_asm_name,
7014         cgraph_node_name, varpool_node_name): New.
7015         * tree-pass.h (TODO_dump_cgraph): Rename to ...
7016         (TODO_dump_symtab): ... this one.
7017         * ipa-cp (pass_ipa_cp): Update.
7018         * ia-reference.c (generate_summary, read_write_all_from_decl,
7019         propagate, ipa_reference_read_optimization_summary): Update.
7020         * cgraphunit.c (cgraph_analyze_functions): Update.
7021         (cgraph_optimize): Update.
7022         * ipa-ref.c (ipa_dump_references): Update.
7023         (ipa_dump_refering): Update.
7024         * ipa-inline.c (pass_ipa_inline): Update.
7025         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
7026         * ipa.c (pass_ipa_function_visibility,
7027         pass_ipa_whole_program_visibility): Update.
7028         * tree-sra.c (pass_early_ipa_sra): Update.
7029         * symtab.c: Include langhooks.h
7030         (symtab_node_asm_name): New.
7031         (symtab_node_name): New.
7032         (symtab_type_names): New static var.
7033         (dump_symtab_base): New.
7034         (dump_symtab_node, dump_symtab): New.
7035         (debug_symtab_node,  debug_symtab): New.
7036         * tree-ssa-structalias.c: Dump symbol table.
7037         * pases.c (execute_todo): Handle TODO_dump_symtab instead
7038         of TODO_dump_cgraph.
7039         * varpoo.c (varpool_node_name): Remove.
7040         (dump_varpool_node): Use dump_symtab_base; reformat.
7042 2012-04-18  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
7044         * doc/invoke.texi (Language Independent Options): @item should be
7045         before @opindex.
7047 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
7049         PR bootstrap/53021
7050         * rtl.c (rtx_code_size): Handle ADDRESS.
7052 2012-04-17  Tom de Vries  <tom@codesourcery.com>
7054         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
7055         is not a STMT_LIST.
7057 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
7059         PR target/53020
7060         * config/i386/sync.md (atomic_<code><mode>): Rename to
7061         atomic_<logic><mode>.
7063 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
7065         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
7066         * alias.c (reg_base_value): Expand and update comment.
7067         (arg_base_value): New variable.
7068         (unique_id): Move up file.
7069         (unique_base_value, unique_base_value_p, known_base_value_p): New.
7070         (find_base_value): Use arg_base_value and known_base_value_p.
7071         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
7072         (find_base_term): Use known_base_value_p.
7073         (base_alias_check): Use unique_base_value_p.
7074         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
7075         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
7077 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
7079         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
7081 2012-04-17  Michael Matz  <matz@suse.de>
7083         PR tree-optimization/18437
7084         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
7085         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
7086         (vect_check_strided_load): Declare.
7087         * tree-vect-data-refs.c (vect_check_strided_load): New function.
7088         (vect_analyze_data_refs): Use it to accept strided loads.
7089         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
7091 2012-04-17  Richard Guenther  <rguenther@suse.de>
7093         PR middle-end/53011
7094         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
7095         loops when redirecting an entry or latch edge.
7097 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
7099         * sel-sched.c (sel_global_init): Revert previous change.
7101 2012-04-17  Richard Guenther  <rguenther@suse.de>
7103         * tree-flow.h (array_at_struct_end_p): Move declaration ...
7104         * tree.h (array_at_struct_end_p): ... here.
7105         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
7106         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
7108 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
7110         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
7111         COST_TABLE): Remove.
7112         (estimate_case_costs): Remove.
7113         (expand_case): Do not call estimate_case_costs
7114         to set use_cost_table.
7115         (balance_case_nodes): Do not use use_cost_table.
7117 2012-04-16  Jan Hubicka  <jh@suse.cz>
7119         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
7120         (hash_node, eq_node): Remove.
7121         (cgraph_create_node): Do not handle hashtable.
7122         (cgraph_get_node): Remove.
7123         (cgraph_insert_node_to_hashtable): Remove.
7124         (hash_node_by_assembler_name): Remove.
7125         (eq_assembler_name): Remove.
7126         (cgraph_node_for_asm): Rewrite.
7127         (cgraph_find_replacement_node): Break out from ...
7128         (cgraph_remove_node): ... here; do not maintain hashtables.
7129         (change_decl_assembler_name): Remove.
7130         (cgraph_clone_node): Do not maintain hashtables.
7131         * cgraph.h (const_symtab_node): New typedef.
7132         (cgraph_insert_node_to_hashtable): Remove.
7133         (symtab_get_node, symtab_node_for_asm,
7134         symtab_insert_node_to_hashtable): Declare.
7135         (cgraph_find_replacement_node): Declare.
7136         (cgraph_get_node, varpool_get_node): Turn into inlines.
7137         (cgraph, varpool): Work sanely on NULL pointers.
7138         (FOR_EACH_SYMBOL): New walker.
7139         * ipa-inline-transform.c (save_inline_function_body): Use
7140         symtab_insert_node_to_hashtable.
7141         * symtab.c: Include ggc.h and diagnostics.h
7142         (symtab_hash, assembler_name_hash): New static vars;
7143         (hash_node, eq_node, hash_node_by_assembler_name,
7144         eq_assembler_name, insert_to_assembler_name_hash,
7145         unlink_from_assembler_name_hash): New.
7146         (symtab_register_node): Update hashtables.
7147         (symtab_insert_node_to_hashtable): New.
7148         (symtab_unregister_node): Update hashtables.
7149         (symtab_get_node): New.
7150         (symtab_node_for_asm): New.
7151         (change_decl_assembler_name): New.
7152         * Makefile.in (symtab.o): Needs GTY.
7153         * varpool.c (varpool_hash): Remove.
7154         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
7155         (varpool_node): Rewrite using varpool_get_node.
7156         (varpool_remove_node): DO not maintain hashtables.
7157         (varpool_node_for_asm): Rewrite.
7159 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
7161         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
7162         when describing the current behavior of GCC.
7164 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
7166         * genemit.c (gen_exp): Remove ADDRESS handling.
7167         * genoutput.c (scan_operands): Likewise.
7168         * genpeep.c (match_rtx): Likewise.
7169         * genrecog.c (add_to_sequence): Likewise.
7171 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
7173         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
7175 2012-04-16  Martin Jambor  <mjambor@suse.cz>
7177         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
7178         bit-fields.
7180 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
7182         PR target/51819
7183         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
7184         hints for 'A' operand types.
7186 2012-04-16  Jan Hubicka  <jh@suse.cz>
7188         * cgraph.h (symtab_node_base): Add next and previous pointers.
7189         (cgraph_node): Remove next and preivous pointers.
7190         (varpool_node): Likewise; remove next/previous GTY marker;
7191         it is not type safe.
7192         (symtab_node_def): Update GTY marker
7193         (x_cgraph_nodes, cgraph_nodes): Remove.
7194         (symtab_nodes): New function.
7195         (cgraph_order): Rename to ...
7196         (symtab_order): ... this one.
7197         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
7198         Declare.
7199         (x_varpool_nodes, varpool_nodes): Remove.
7200         (FOR_EACH_STATIC_VARIABLE): Update.
7201         (symtab_function_p, symtab_variable_p): New function.
7202         (FOR_EACH_VARIABLE): Update.
7203         (varpool_first_variable, varpool_next_variable): New functions.
7204         (FOR_EACH_VARIABLE): Update.
7205         (cgraph_first_defined_function): Update.
7206         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
7207         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
7208         (cgraph_first_function, cgraph_next_function): New.
7209         (FOR_EACH_FUNCTION): Update.
7210         (cgraph_first_function_with_gimple_body,
7211         cgraph_next_function_with_gimple_body): Update.
7212         * symtab.c: New file.
7213         * cgraph.c: Update copyright dates.
7214         (x_cgraph_nodes, cgraph_order): Remove.
7215         (NEXT_FREE_NODE): Update.
7216         (SET_NEXT_FREE_NODE): New.
7217         (cgraph_create_node_1): Remove common code.
7218         (cgraph_create_node): Remove common code; call symtab_register_node.
7219         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
7220         (cgraph_add_asm_node): Update.
7221         (cgraph_clone_node): Register new node.
7222         * cgraphunit.c (process_function_and_variable_attributes): Update.
7223         (cgraph_analyze_functions): Update.
7224         (cgraph_analyze_functions): Update.
7225         (cgraph_output_in_order): Update.
7226         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
7227         Update.
7228         * ipa-inline.c (recursive_inlining): Update.
7229         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
7230         * ipa.c (cgraph_remove_unreachable_nodes): Update.
7231         * Makefile.in: Add symtab.o
7232         * varpool.c (x_varpool_nodes): Remove
7233         (varpool_node): Remove common code; call symtab_register_node.
7234         (varpool_remove_node): Remove common code; call symtab_unregister_node.
7236 2012-04-16  Richard Guenther  <rguenther@suse.de>
7238         PR middle-end/52977
7239         * tree.h (VECTOR_CST_NELTS): Adjust.
7240         (struct tree_vector): Add explicit length field.
7241         (make_vector_stat): Declare.
7242         (make_vector): Define.
7243         * tree.c (make_vector_stat): New function.
7244         (build_vector_stat): Use it.
7245         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
7247 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7249         PR tree-optimization/52976
7250         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
7251         (undistribute_ops_list): Ops with repeat counts aren't eligible for
7252         undistribution.
7253         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
7255 2012-04-16  Jan Hubicka  <jh@suse.cz>
7257         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
7258         New macros.
7259         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
7260         walkers to walk cgraph and varpool.
7261         * cgraph.c (cgraph_node_for_asm): Likewise.
7262         (dump_cgraph): Likewise.
7263         * value-prof.c (init_node_map): Likewise.
7264         * tree.c (free_lang_data_in_cgraph): Likewise.
7265         * tree-emutls.c: (ipa_lower_emutls): Likewise.
7266         * ipa-reference.c (generate_summary, propagate): Likewise.
7267         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
7268         cgraph_mark_functions_to_output, cgraph_output_in_order,
7269         output_weakrefs, cgraph_materialize_all_clones,
7270         cgraph_optimize): Likewise.
7271         * lto-cgraph.c (merge_profile_summaries): Likewise.
7272         (input_cgraph): Likewise.
7273         * ipa-pure-const.c (generate_summary): Likewise.
7274         (propagate): Likwise.
7275         * ipa-utils.c (ipa_reduced_postorder): Likewise.
7276         (ipa_free_postorder_info): Likewise.
7277         (ipa_reverse_postorder): Likewise.
7278         * ipa-inline.c (ipa_inline): Likewise.
7279         * matrix-reorg.c (find_matrices_decl): Likewise.
7280         (matrix_reorg): Likewise.
7281         * tree-vectorizer.c (increase_alignment): Likewise.
7282         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7283         (function_and_variable_visibility): Likewise.
7284         (whole_program_function_and_variable_visibility): Likewise.
7285         (ipa_cdtor_merge): Likewise.
7286         * trans-mem.c (ipa_tm_execute): Likewise.
7287         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
7288         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
7289         (ipa_print_all_params): Likewise.
7290         (ipa_update_after_lto_read): Likewise.
7291         * tree-profie.c (tree_profiling): Likewise.
7292         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7293         * passes.c (dump_passes): Likewise.
7294         (do_per_function): Likewise.
7295         (ipa_write_summaries): Likewise.
7296         * varpool.c (dump_varpool): Likewise.
7297         (varpool_node_for_asm): Likewise.
7298         (varpool_assemble_pending_decls): Likewise.
7300 2012-04-16  Richard Guenther  <rguenther@suse.de>
7302         PR tree-optimization/52975
7303         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
7304         condition but always mark it with TRUTH_NOT_EXPR.
7306 2012-04-16  Richard Guenther  <rguenther@suse.de>
7308         PR tree-optimization/52975
7309         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
7310         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
7311         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
7312         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
7314 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
7316         * config/i386/sse.md (ssse3_plusminus): New code iterator.
7317         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
7318         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
7319         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
7320         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
7321         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
7322         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
7324         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
7325         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
7326         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
7327         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
7328         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
7329         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
7331         (xop_plus): New code iterator.
7332         (macs): New code attribute.
7333         (macds): Ditto.
7334         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
7335         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
7336         iterator.
7337         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
7338         xop_plus code iterator.
7339         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
7340         xop_plus code iterator.
7341         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
7342         xop_plus code iterator.
7343         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
7344         xop_plus code iterator.
7346         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
7347         any_extend code iterator.
7348         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
7349         any_extend code iterator.
7350         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
7351         any_extend code iterator.
7352         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
7353         any_extend code iterator.
7354         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
7355         any_extend code iterator.
7356         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
7357         any_extend code iterator.
7359 2012-04-14  Tom de Vries  <tom@codesourcery.com>
7361         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
7362         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
7363         DELETED_LABEL note, and move it to ...
7364         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
7365         (delete_insn_and_edges): Likewise.
7366         (delete_insn_chain): Handle new return type of delete_insn.  Delete
7367         chain backwards rather than forwards.
7368         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
7369         void.
7370         * cfglayout.c (fixup_reorder_chain): Delete unused label.
7372 2012-04-14  Jan Hubicka  <jh@suse.cz>
7374         * cgraph.h: Update copyrights;
7375         (symtab_node): Turn to union typedef.
7376         (symtab_node_base): New structure.
7377         (symtab_type): Add SYMTAB_SYMBOL tag.
7378         (cgraph_node): Annotate some pinters with nested_ptr.
7379         (varpool_node): Likewise.
7380         (cgraph_local_info): Remove lto_file_data
7381         and externally_visible.
7382         (cgraph_node): Remove decl; same_comdat_group list;
7383         aux; ref_list; order; address_taken; reachable_from_other_parittion,
7384         in_other_partition; resolution.
7385         (varpool_node): Remove decl; same_comdat_group;
7386         ref_list; lto_file_data; aux; order; resolution; externally_visible;
7387         used_from_other_partition; in_other_partition.
7388         (symtab_node_def): New union.
7389         (cgraph, varpool): Update.
7390         (varpool_first_static_initializer, varpool_next_static_initializer,
7391         cgraph_only_called_directly_or_aliased_p,
7392         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
7393         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
7394         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
7395         field references.
7396         * cgraph.c: Likewise.
7397         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
7398         * cgraphbuild.c: Likewise.
7399         * lto-symtab.c: Likewise.
7400         * c-gimplify.c: Likewise.
7401         * value-prof.c: Likewise.
7402         * tree.c: Likewise.
7403         * ipa-cp.c: Likewise.
7404         * tree-emutls.c: Likewise.
7405         * ipa-inline-transform.c: Likwise.
7406         * ipa-reference.c: Likewise.
7407         * cgraphunit.c: Likewise.
7408         * ipa-ref.c: Likewise.
7409         * lto-cgraph.c: Likewise.
7410         * ipa-ref-inline.h: Likewise.
7411         * ipa-pure-const.c: Likewise.
7412         * lto-streamer-out.c: Likewise.
7413         * ipa-utils.c: Likewise.
7414         * ipa-inline.c: Likewise.
7415         * matrix-reorg.c: Likewise.
7416         * tree-eh.c: Likewise.
7417         * tree-vectorizer.c: Likewise.
7418         * ipa-split.c: Likewise.
7419         * ipa.c: Likewise.
7420         * trans-mem.c: Likewise.
7421         * ipa-inline-analysis.c: Likewise.
7422         * gimplify.c: Likewise.
7423         * cfgexpand.c: Likewise.
7424         * tree-sra.c: Likewise.
7425         * ipa-prop.c: Likewise.
7426         * varasm.c: Likewise.
7427         * tree-nested.c: Likewise.
7428         * tree-inline.c: Likewise.
7429         * tree-profile.c: Likewise.
7430         * tree-ssa-structalias.c: Likewise.
7431         * passes.c: Likewise.
7432         * varpool.c: Likewise.
7434 2012-04-14  Tom de Vries  <tom@codesourcery.com>
7436         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
7437         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
7438         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
7439         of find_edge.
7440         (gsi_advance_fw_nondebug_nonlocal): New function.
7441         (local_def): Removed function.
7442         (same_succ_hash): Use stmt_local_def.
7443         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
7444         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
7446 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7448         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
7449         and __ILP32__ for x32.
7451 2012-04-13  Martin Jambor  <mjambor@suse.cz>
7453         PR middle-end/52939
7454         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
7455         fold_ctor_reference returns a zero constant.
7457 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
7459         * config.gcc: Add i386/gnu-user-common.h before all
7460         i386/gnu-user.h and i386/gnu-user64.h usages.
7462         * config/i386/gnu-user-common.h: New.
7464         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
7465         (CC1_SPEC): Likewise.
7466         (ENDFILE_SPEC): Likewise.
7467         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
7468         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
7469         (TARGET_OS_CPP_BUILTINS): Likewise.
7470         (LIBGCC2_HAS_TF_MODE): Likewise.
7471         (LIBGCC2_TF_CEXT): Likewise.
7472         (TF_SIZE): Likewise.
7473         (TARGET_ASM_FILE_END): Likewise.
7474         (STACK_CHECK_MOVING_SP): Likewise.
7475         (STACK_CHECK_STATIC_BUILTIN): Likewise.
7476         * config/i386/gnu-user64.h: Likewise.
7478 2012-04-13  Martin Jambor  <mjambor@suse.cz>
7480         * expr.c (expand_expr_real_1): Pass type, not the expression, to
7481         set_mem_attributes for a memory temporary. Do not call the function
7482         for the memory temporary created for a bitfield.
7484 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
7486         PR debug/48866
7487         * df.h (enum debug_temp_where): New.
7488         (dead_debug_init, dead_debug_finish) Declare.
7489         (dead_debug_add, dead_debug_insert_temp): Declare.
7490         (struct dead_debug_use, struct dead_debug): Moved from...
7491         * df-problems.c: ... here.
7492         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
7493         to a debug temp.
7494         (df_create_unused_note): Likewise.
7495         (df_set_dead_notes_for_mw): Move comment where it belongs.
7496         (dead_debug_init): Export.
7497         (dead_debug_reset_uses): New, factored out of...
7498         (dead_debug_finish): ...this.  Export.
7499         (dead_debug_reset): Remove.
7500         (dead_debug_add): Export.
7501         (dead_debug_insert_before): Rename to...
7502         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
7503         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
7504         Return insertion count.
7505         (df_note_bb_compute): Adjust.
7506         * dce.c (word_dce_process_block): Adjust dead debug uses.
7507         (dce_process_block): Likewise.
7509 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
7511         * df-problems.c (df_note_bb_compute): Do not take note of
7512         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
7514 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
7516         PR debug/51570
7517         * var-tracking.c (expand_depth): New type.
7518         (onepart_aux, expand_loc_callback_data): Change depth type to it.
7519         (loc_exp_dep_alloc): Adjust initializer.
7520         (update_depth): Use new type.  Add entryvals.
7521         (vt_expand_var_loc_chain): Take note of expansions with
7522         ENTRY_VALUEs, but don't accept them right away.  Run an optional
7523         second pass accepting the minimum ENTRY_VALUE count found in the
7524         first pass.
7525         (vt_expand_loc_callback, INIT_ELCD): Adjust.
7527 2012-04-13  Tom de Vries  <tom@codesourcery.com>
7529         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
7530         parameters vuse and vuse_escaped.
7531         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
7532         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
7533         vuse1 != vuse2.
7535 2012-04-13  Richard Guenther  <rguenther@suse.de>
7537         PR tree-optimization/52969
7538         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
7539         the condition for the COND_EXPR and handle predicate negation
7540         by swapping the COND_EXPR arms.
7542 2012-04-13  Nick Clifton  <nickc@redhat.com>
7544         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
7545         TODO_dump_func flag.
7547 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
7549         PR rtl-optimization/52203
7550         PR rtl-optimization/52715
7552         Revert the 2012-03-07 fix for PR 52203.
7553         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
7554         the insn does not modify DFA right before issuing, adjust
7555         issue_rate accordingly.
7557 2012-04-13  Richard Guenther  <rguenther@suse.de>
7559         PR c/52549
7560         * c-typeck.c (pointer_diff): Remove bogus assert.
7562 2012-04-13  Richard Guenther  <rguenther@suse.de>
7564         PR c/52862
7565         * convert.c (convert_to_pointer): Remove special-casing of zero.
7567 2012-04-13  Joey Ye  <joey.ye@arm.com>
7569         * config/arm/constraints.md (Pe): New constraint.
7570         * config/arm/arm.md: New split for imm 256-510.
7572 2012-04-13  Terry Guo  <terry.guo@arm.com>
7574         * config/arm/arm-cores.def: Added core cortex-m0plus.
7575         * config/arm/arm-tune.md: Regenerated.
7576         * config/arm/arm-tables.opt: Regenerated.
7577         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
7579 2012-04-13  Alan Modra  <amodra@gmail.com>
7581         PR target/52828
7582         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
7583         tie regs on destination of sets.  Delete forward declaration.
7584         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
7585         (rs6000_emit_prologue): Likewise.
7586         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
7587         and gen_stack_tie.
7588         (is_mem_ref): Use tie_operand to recognise stack ties.
7589         * config/rs6000/predicates.md (tie_operand): New.
7590         * config/rs6000/rs6000.md (restore_stack_block): Generate new
7591         stack tie rtl.
7592         (restore_stack_nonlocal): Likewise.
7593         (stack_tie): Update.
7594         (frame_tie): Delete.
7596 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7598         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
7599         HOST_WIDE_INT_PRINT_DEC in format strings.
7601 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
7603         PR target/52932
7604         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
7605         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
7606         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
7607         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
7608         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
7609         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
7610         avx2_permvarv8si using VI4F_256 mode iterator.
7611         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
7612         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
7613         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
7614         gen_avx2_permvarv8sf.
7615         (expand_vec_perm_pshufb): Ditto.
7617 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7619         PR target/52775
7620         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
7621         the list of options to enable the FCFID instruction.
7622         (TARGET_EXTRA_BUILTINS): Adjust comment.
7624 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7626         PR tree-optimization/18589
7627         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
7628         (operand_entry): Add count field.
7629         (add_repeat_to_ops_vec): New function.
7630         (completely_remove_stmt): Likewise.
7631         (remove_def_if_absorbed_call): Likewise.
7632         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
7633         (acceptable_pow_call): New function.
7634         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
7635         entries with repeat counts when found.
7636         (repeat_factor_d): New struct and associated typedefs.
7637         (repeat_factor_vec): New static vector variable.
7638         (compare_repeat_factors): New function.
7639         (get_reassoc_pow_ssa_name): Likewise.
7640         (attempt_builtin_powi): Likewise.
7641         (reassociate_bb): Call attempt_builtin_powi.
7642         (fini_reassoc): Two new calls to statistics_counter_event.
7644 2012-04-12  Richard Guenther  <rguenther@suse.de>
7646         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
7647         * cgraph.h (tree_rest_of_compilation): Remove.
7648         * cgraph.c (cgraph_add_new_function): Move ...
7649         * cgraphunit.c (cgraph_add_new_function): ... here.
7650         (tree_rest_of_compilation): Make static.
7651         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
7652         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
7653         gate_all_early_local_passes, execute_all_early_local_passes,
7654         pass_early_local_passes, gate_all_early_optimizations,
7655         pass_all_early_optimizations): Move ...
7656         * passes.c (gate_all_optimizations, pass_all_optimizations,
7657         gate_all_early_local_passes, execute_all_early_local_passes,
7658         pass_early_local_passes, gate_all_early_optimizations,
7659         pass_all_early_optimizations): ... here.
7660         * tree-optimize.c (execute_free_datastructures): Remove.
7661         * tree-flow.h (execute_free_datastructures): Remove.
7662         * tree-optimize.c (execute_init_datastructures,
7663         pass_init_datastructures): Move ...
7664         * tree-ssa.c (execute_init_datastructures,
7665         pass_init_datastructures): ... here.
7666         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
7667         execute_free_datastructures.
7669 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
7671         * dbgcnt.def (ira_move): New counter.
7672         * ira-int.h (ira_create_new_reg): Declare function.
7673         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
7674         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
7675         no longer static.  All callers changed.
7676         * ira.c: Include "dbgcnt.h".
7677         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
7678         move_unallocated_pseudos): New static functions.
7679         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
7680         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
7681         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
7682         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
7683         to the pseudos generated in find_moveable_pseudos.
7684         * Makefile.in (ira.o): Add $(DBGCNT_H).
7686 2012-04-12  Richard Guenther  <rguenther@suse.de>
7688         PR tree-optimization/52943
7689         * tree-chrec.h (chrec_is_positive): Remove.
7690         * tree-scalar-evolution.c (chrec_is_positive): Move ...
7691         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
7692         Return false for a constant zero instead of negative.
7693         (analyze_siv_subscript_cst_affine): Handle zero difference
7694         in the initial condition explicitely.
7696 2012-04-12  Richard Guenther  <rguenther@suse.de>
7698         * tree-parloops.c (parallelize_loops): Also consult the upper
7699         bound for the number of iterations.
7700         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7701         (loop_prefetch_arrays): Likewise.
7703 2012-04-12  Richard Guenther  <rguenther@suse.de>
7705         * cfgloop.h (estimated_loop_iterations_int): Ditch
7706         'conservative' parameter.
7707         (max_stmt_executions_int): Likewise.
7708         (estimated_loop_iterations): Likewise.
7709         (max_stmt_executions): Likewise.
7710         (max_loop_iterations): Declare.
7711         (max_loop_iterations_int): Likewise.
7712         (estimated_stmt_executions): Likewise.
7713         (estimated_stmt_executions_int): Likewise.
7714         * tree-ssa-loop-niter.c (estimated_loop_iterations):
7715         Split parts to ...
7716         (max_loop_iterations): ... this.
7717         (estimated_loop_iterations_int): Split parts to ...
7718         (max_loop_iterations_int): ... this.
7719         (max_stmt_executions_int): Split parts to ...
7720         (estimated_stmt_executions_int): ... this.
7721         (max_stmt_executions): Split parts to ...
7722         (estimated_stmt_executions): ... this.
7723         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
7724         * predict.c (predict_loops): Likewise.
7725         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
7726         (analyze_siv_subscript_cst_affine): Likewise.
7727         (compute_overlap_steps_for_affine_1_2): Likewise.
7728         (analyze_subscript_affine_affine): Likewise.
7729         (init_omega_for_ddr_1): Likewise.
7730         * tree-parloops.c (parallelize_loops): Likewise.
7731         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7732         (may_eliminate_iv): Likewise.
7733         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7734         (loop_prefetch_arrays): Likewise.
7735         * tree-vrp.c (adjust_range_with_scev): Likewise.
7737 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
7739         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
7740         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
7741         Fix line width.
7742         (dump_table): Use bool type for need_align and have_df variables.
7743         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
7744         (regs_used): Remove register modifier.
7745         (barrier_align): Move variables slot, credit, jump_to_next
7746         into if block above for loop.  Use bool type for jump_to_next.
7747         (sh_function_arg): Use NULL_RTX instead of 0.
7749 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
7751         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
7752         (bswapsi2): New expander.
7754 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7756         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
7757         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
7759 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7761         PR rtl-optimization/52876
7762         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
7763         Don't call mark_reg_pointer for incompatible pointer sign extension.
7765         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
7766         directly.
7768 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
7770         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
7771         comparisons against TYPE_PRECISION.
7772         * tree-ssa-forwprop.c (combine_conversions): Likewise.
7774 2012-04-11  Xinliang David Li  <davidxl@google.com>
7776         * tree-passes.h: Remove TODO_dump_func.
7777         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
7778         * trans-mem.c: Remove TODO_dump_func.
7779         * ira.c: Remove TODO_dump_func.
7781 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7783         * config/i386/i386.c (ix86_option_override_internal): Check
7784         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
7785         after TARGET_64BIT is updated.
7787 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7789         * config/sh/sh.h: Remove old secondary reload code.
7791 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7793         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
7794         (ready_reorder): ... this function.
7796 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
7798         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
7799         sched_init calls.
7801         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
7802         insns so that no other insn is queued for a time before them.
7804         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
7805         unknown.
7807 2012-04-11  Richard Guenther  <rguenther@suse.de>
7809         PR middle-end/52621
7810         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
7811         consider loop nesting.
7812         (evolution_function_is_univariate_p): Properly check the remainder
7813         for chrecs.
7815 2012-04-11  Richard Guenther  <rguenther@suse.de>
7817         PR middle-end/52918
7818         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
7820 2012-04-11  Nick Clifton  <nickc@redhat.com>
7822         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
7823         information, if requested.
7825         * config/rx/rx.c (rx_expand_prologue): Likewise.
7827 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
7828             Michael Matz  <matz@suse.de>
7830         PR target/16458
7831         * rtlanal.c (unsigned_reg_p): New function.
7832         Update copyright notice dates.
7833         * rtl.h (unsigned_reg_p): Prototype it.
7834         Update copyright notice dates.
7835         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
7836         Update comment.
7837         * expr.c (expand_expr_real_1): Set register attributes.
7838         * stmt.c (expand_case): Likewise.
7840 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7842         PR target/50751
7843         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
7844         consider_sh2a and allow_zero.
7845         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
7846         (disp_addr_displacement): New function.
7847         (sh_address_cost): Use disp_addr_displacement function instead
7848         of DISP_ADDR_OFFSET.
7849         (sh_legitimate_address_p): Adapt to changed
7850         sh_legitimate_index_p declaration.
7851         (sh_find_mov_disp_adjust): Remove HImode check.
7852         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
7853         disp_addr_displacement and max_mov_insn_displacement.
7854         (max_mov_insn_displacement): Remove HImode check.
7855         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
7856         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
7857         * config/sh/constraints.md (K05, K13): New constraints.
7858         (K12): Correct comment.
7859         (Sdd): Do not use DISP_ADDR_P macro.
7860         (Snd, Sbw): Use satisfies_constraint_Sdd.
7861         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
7862         (*extendhisi2_compact, movhi_i): Remove.
7863         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
7864         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
7865         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
7866         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
7867         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
7868         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
7869         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
7870         CONST_OK_FOR_Kxx.
7871         Add new peepholes for HImode displacement addressing.
7873 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7875         * config/sh/sh.h (SIDI_OFF): Remove.
7876         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
7877         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
7878         or operand_subword.
7880 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7882         PR target/52624
7883         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
7884         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
7885         * doc/md.texi (Standard Names): Add bswap.
7886         * builtin-types.def (BT_UINT16): New primitive type.
7887         (BT_FN_UINT16_UINT16): New function type.
7888         * builtins.def (BUILT_IN_BSWAP16): New.
7889         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
7890         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
7891         expand_builtin_bswap.
7892         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
7893         (fold_builtin_1): Likewise.
7894         (is_inexpensive_builtin): Likewise.
7895         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
7896         missing bits for bswap to libcall code.
7897         * tree.c (build_common_tree_nodes): Build uint16_type_node.
7898         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
7899         (uint16_type_node): New define.
7900         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
7901         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
7902         above builtin.
7903         (rs6000_init_builtins): Likewise.
7904         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
7906 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7908         * doc/extend.texi (Type Attributes): Move paragraph.
7910 2012-04-11  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
7912         PR 24985
7913         * diagnostic.h (show_caret): Declare.
7914         (caret_max_width): Declare.
7915         (diagnostic_show_locus): Declare.
7916         * diagnostic.c (diagnostic_initialize): Initialize to false.
7917         (diagnostic_show_locus): New.
7918         (diagnostic_report_diagnostic): Call it.
7919         (getenv_columns): New.
7920         (adjust_line): New.
7921         (diagnostic_set_caret_max_width): New.
7922         * input.c (read_line): New.
7923         (location_get_source_line): New.
7924         * input.h (location_get_source_line): Declare.
7925         * toplev.c (general_init): Initialize show_caret from options.
7926         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
7927         * opts.c (common_handle_option): Likewise.
7928         * pretty-print.h (pp_get_prefix): New.
7929         (pp_base_get_prefix): New.
7930         * common.opt (fdiagnostics-show-caret): New option.
7931         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
7933 2012-04-11  Richard Guenther  <rguenther@suse.de>
7935         PR rtl-optimization/52881
7936         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
7938 2012-04-11  Richard Guenther  <rguenther@suse.de>
7940         PR tree-optimization/52912
7941         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
7942         manipulation code we are threading through a loop header
7943         to an exit destination.
7945 2012-04-10  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
7947         * tree.h (warn_if_unused_value): Move declaration from here.
7948         * stmt.c (warn_if_unused_value): Move definition from here.
7950 2012-04-10  Michael Matz  <matz@suse.de>
7952         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
7953         grouped_stores.
7954         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
7955         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
7956         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
7957         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
7958         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7959         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7960         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7961         (vect_record_strided_load_vectors): Rename to
7962         vect_record_grouped_load_vectors.
7963         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7964         Rename use of above macros.
7965         (vect_verify_datarefs_alignment): Ditto.
7966         (vector_alignment_reachable_p): Ditto.
7967         (vect_peeling_hash_get_lowest_cost): Ditto.
7968         (vect_enhance_data_refs_alignment): Ditto.
7969         (vect_analyze_group_access): Ditto and rename stride to groupsize.
7970         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
7971         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7972         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7973         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7974         (vect_record_strided_load_vectors): Rename to
7975         vect_record_grouped_load_vectors.
7976         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
7977         (destroy_loop_vec_info): Ditto.
7978         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
7979         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
7980         (vect_analyze_slp): Ditto.
7981         (new_bb_vec_info): Ditto.
7982         (destroy_bb_vec_info): Ditto.
7983         (vect_schedule_slp_instance): Ditto and rename strided_store to
7984         grouped_store.
7985         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
7986         vect_cost_group_size.
7987         (vect_model_store_cost): Rename use of above macros and call
7988         to vect_cost_strided_group_size.
7989         (vect_model_load_cost): Ditto.
7990         (vectorizable_store): Ditto, rename strided_store to grouped_store
7991         and calls to renamed tree-vectorizer.h functions.
7992         (vectorizable_load): Ditto.
7993         (vect_transform_stmt): Rename use of above macros and strided_store
7994         to grouped_store.
7996 2012-04-10  Jan Hubicka  <jh@suse.cz>
7998         * cgraph.h: Remove misledaing comment on ipa-ref.h.
7999         (symtab_type): New enum.
8000         (symtab_node): New structure.
8001         (cgraph_node, varpool_node): Add symbol base type.
8002         (cgraph, varpool): New accestor functions.
8003         * cgraph.c (cgraph_create_node_1): Set symbol type.
8004         * varpool.c (varpool_node): Set symbol type.
8006 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
8007             Richard Sandiford  <rdsandiford@googlemail.com>
8009         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
8011 2012-04-10  Richard Guenther  <rguenther@suse.de>
8013         PR middle-end/52888
8014         * gimple-low.c (gimple_check_call_args): Properly account for
8015         compatible aggregate types.
8017 2012-04-10  Richard Guenther  <rguenther@suse.de>
8019         * toplev.h (tree_rest_of_compilation): Remove.
8020         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8021         * cgraph.h (tree_rest_of_compilation): Declare.
8022         * tree-optimize.c (tree_rest_of_compilation): Move ...
8023         * cgraphunit.c (tree_rest_of_compilation): ... here.
8024         * cgraph.c (cgraph_add_new_function): Adjust.
8025         * Makefile.in (tree-optimize.o): Adjust.
8026         (cgraphunit.o): Likewise.
8028 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
8030         PR tree-optimization/52870
8031         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
8032         presumed pattern statement is within the same loop or basic block.
8034 2012-04-10  Tristan Gingold  <gingold@adacore.com>
8036         * gengtype.c (main): Make uintptr_t a known type.
8038 2012-04-10  Richard Guenther  <rguenther@suse.de>
8040         * tree-pass.h (tree_lowering_passes): Remove.
8041         * tree-optimize.c (tree_lowering_passes): Remove.
8042         * cgraph.c (cgraph_add_new_function): Inline relevant parts
8043         of tree_lowering_passes, avoid redundant call of early local passes.
8044         * cgraphunit.c (cgraph_lower_function): Fold into ...
8045         (cgraph_analyze_function): ... its single caller.  Inline
8046         relevant parts of tree_lowering_passes.
8048 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8050         PR other/52777
8051         * config/pa/pa.opt: Remove SIO and GNU_LD.
8053 2012-04-09  Jan Hubicka  <jh@suse.cz>
8055         PR lto/52722
8056         PR lto/51765
8057         PR lto/52634
8058         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
8059         boundary, add its target too.
8060         * lto.c (add_references_to_partition): Add also aliased nodes.
8061         (add_cgraph_node_to_partition,
8062         add_varpool_node_to_partition): Work on nodes, not functions/variables;
8063         when adding alias, add also the aliased object.
8065 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
8067         PR target/52883
8068         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
8069         VOIDmode immediate operands.
8070         * config/i386/constraints.md (Wz): New constraint.
8071         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
8073 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
8075         PR target/52717
8076         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
8077         the DECL generated for the special GOT helper.
8079 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
8081         * config/sh/constraints.md: Update list of constraints in
8082         comment block.
8083         (Sr0): Remove unused memory constraint.
8085 2012-04-08  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
8087         * tree-pretty-print.h: Update comment.
8089 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
8091         * config/sh/sh.md: Use braced string notation where applicable.
8092         (*prefetch_i4, prefetch_m2a): Merge into ...
8093         (*prefetch): ... this new insn.
8095 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
8097         * config/sh/sh.h (high_life_started): Remove
8098         * config/sh/predicates.md (general_movdst_operand): Use
8099         'reload_in_progress' instead of 'high_life_started'.
8100         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
8101         divsi_inv_fp): Likewise.
8103 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
8105         * config/sh/sh-protos.h (prepare_move_operands): Return void
8106         instead of int.
8107         * config/sh/sh.c (prepare_move_operands): Likewise.
8108         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
8110 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
8112         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
8113         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
8114         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
8115         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
8116         commutative_float_operator, noncommutative_float_operator,
8117         sh_handle_pragma): Remove.
8119 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
8121         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
8122         Use @option markup on command-line options.  Use @samp markup on
8123         literal keywords to options.  Use @code markup on code fragments.
8124         Use other markup in preference to quotation marks in the text.
8125         Add markup to some passages without any.
8127 2012-04-06  Mike Stump  <mikestump@comcast.net>
8129         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
8131 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
8133         * config/sh/sh.c (hi_const): Remove.
8134         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
8135         of hi_const.
8137 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
8139         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
8140         to bool.
8141         * config/sh/sh.c (sh_expand_t_scc): Likewise.
8142         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
8143         calling sh_expand_t_scc.
8145 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
8147         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
8148         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
8149         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
8150         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
8151         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
8152         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
8153         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
8154         sh2a_is_function_vector_call): Use bool as return type.
8155         (sh_pass_in_reg_p): Remove.
8156         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
8157         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
8158         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
8159         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
8160         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
8161         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
8162         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
8163         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
8164         sh_loads_bankedreg_p): Use bool as return type.
8165         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
8166         'register' modifier.
8168 2012-04-06  Matt Turner  <mattst88@gmail.com>
8170         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
8172 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8174         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
8175         of the destination isn't also a FP_REGS register.
8177 2012-04-05  Teresa Johnson  <tejohnson@google.com>
8178             H.J. Lu  <hongjiu.lu@intel.com>
8180         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
8181         * config/i386/i386.md (move immediate to memory peephole2):
8182         Add cases for HImode move when LCP stall avoidance is needed.
8183         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8184         X86_TUNE_LCP_STALL entry.
8186 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
8188         PR target/52882
8189         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
8190         CONST_INT operands, zero-extended with AND.
8192 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
8194         PR target/50751
8195         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
8196         first argument instead of mode size.  Move displacement calculations
8197         to ...
8198         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
8199         ... these new functions.
8200         (disp_adjust): Remove max_mov_disp field.
8201         (sh_legitimate_index_p): Use max_mov_insn_displacement and
8202         mov_insn_alignment_mask.
8203         (sh_address_cost): Use max_mov_insn_displacement.
8205 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
8207         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
8208         (arch_enabled): Handle new arch types.
8209         (one_cmpldi2): Add NEON support.
8211 2012-04-05  Richard Guenther  <rguenther@suse.de>
8213         * gimple.c (walk_gimple_op): Compute val_only for the LHS
8214         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
8215         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
8216         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8217         ... here and make static.
8218         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8219         Remove.
8221 2012-04-05  Richard Guenther  <rguenther@suse.de>
8223         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
8224         basic-block before removing it.
8226 2012-04-05  Richard Guenther  <rguenther@suse.de>
8228         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
8229         version namespace as we release the freelist.
8231 2012-04-05  Richard Guenther  <rguenther@suse.de>
8233         * tree-nrv.c (tree_nrv): Release VDEFs.
8234         * tree-sra.c (sra_modify_constructor_assign): Likewise.
8235         (sra_modify_assign): Likewise.
8236         * tree-vect-stmts.c (vect_remove_stores): Likewise.
8237         * tree-vect-loop.c (vect_transform_loop): Likewise.
8238         * tree-ssa-dom.c (optimize_stmt): Likewise.
8239         * tree-vect-slp.c (vect_schedule_slp): Likewise.
8240         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
8242 2012-04-05  Richard Guenther  <rguenther@suse.de>
8244         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
8245         cleanup.
8246         * gimple.h (gsi_remove): Adjust.
8247         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
8248         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
8249         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
8250         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
8251         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
8252         * tree-ssa-pre.c (eliminate): Likewise.
8254 2012-04-04  Mike Stump  <mikestump@comcast.net>
8256         * doc/rtl.texi (const_double): Document as sign-extending.
8257         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
8258         * emit-rtl.c (immed_double_int_const): Refine to state the
8259         value is signed.
8260         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
8261         CONST_DOUBLE integers.
8262         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
8263         negative values are converted.  Fix conversions bigger than
8264         HOST_BITS_PER_WIDE_INT.
8265         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
8266         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
8267         * explow.c (plus_constant_mode): Add.
8268         (plus_constant): Implement with plus_constant_mode.
8269         * rtl.h (plus_constant_mode): Add.
8271 2012-04-04  Richard Guenther  <rguenther@suse.de>
8273         PR tree-optimization/52808
8274         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
8275         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
8277 2012-04-04  Tristan Gingold  <gingold@adacore.com>
8279         * expr.c (expand_expr_real_2): Handle larger sizetype in
8280         POINTER_PLUS_EXPR.
8282 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8284         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
8285         to m2a-single instead of m2e.
8287 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8289         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
8290         Change type of BITOFFSET to signed.  Make sure the lower bound of
8291         the computed range is non-negative by adjusting OFFSET and BITPOS.
8292         (expand_assignment): Adjust call to get_bit_range.
8294 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
8296         * h8300/h8300.c (h8300_current_function_monitor_function_p):
8297         New function. Added to check monitor functions.
8298         (h8300_option_override): Modified to generate error/warning
8299         messages for invalid combinations of different command line
8300         options.
8301         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
8302         save EXR on stack for monitor function in case of H8S target
8303         when "-mno-exr" is passed.
8304         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
8305         Add prototype.
8306         * doc/invoke.texi: Document H8S options.
8308 2012-04-03  Tristan Gingold  <gingold@adacore.com>
8310         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
8311         of gcc_AC_FUNC_MMAP_BLACKLIST.
8312         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
8313         * Makefile.in (aclocal_deps): Add mmap.m4.
8314         * configure: Regenerate.
8315         * aclocal.m4: Regenerate.
8317 2012-04-03  Richard Guenther  <rguenther@suse.de>
8319         PR tree-optimization/52808
8320         * tracer.c (tail_duplicate): Return whether we have duplicated
8321         any block.
8322         (tracer): If we have duplicated any block, cleanup the CFG.
8323         * cfghooks.c (duplicate_block): If we duplicated a loop
8324         header but not its loop, destroy the loop because it now has
8325         multiple entries.
8326         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
8327         the cfg manipulation routines we are not creating a multiple
8328         entry loop.
8330 2012-04-03  Tristan Gingold  <gingold@adacore.com>
8332         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
8333         'byte' alignment.
8334         (vms_c_common_override_options): Allow parameterless variadic
8335         functions.
8337 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
8339         PR tree-optimization/52835
8340         * tree-data-ref.c (build_rdg): Return NULL if
8341         compute_data_dependences_for_loop failed.
8343 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8345         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
8346         for REAL_CST as well.
8347         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
8348         In the bitfield case, if the value is a REAL_CST, convert it first to
8349         an INTEGER_CST.
8351 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8353         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
8354         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
8355         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
8357         * config/i386/biarchx32.h: New.
8359 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
8361         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
8362         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8363         (arm_preferred_reload_class): New function.
8365 2012-04-02  Richard Guenther  <rguenther@suse.de>
8367         PR tree-optimization/52756
8368         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
8369         (thread_through_loop_header): After threading through the loop latch
8370         remove the split part from the loop and clear further threading
8371         opportunities that would create a multiple entry loop.
8373 2012-04-02  Richard Guenther  <rguenther@suse.de>
8375         PR rtl-optimization/52800
8376         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
8377         CLEANUP_CFG_CHANGED.
8379 2012-04-02  Richard Guenther  <rguenther@suse.de>
8381         PR middle-end/52803
8382         * loop-init.c (gate_handle_loop2): Destroy loops here if
8383         we don't enter RTL loop optimizers.
8385 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
8387         Partially revert:
8388         2012-03-29  Richard Guenther  <rguenther@suse.de>
8390         * rtl.h (extended_count): Remove.
8391         * combine.c (extended_count): Remove.
8393 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
8395         PR c++/40942
8396         * pt.c (more_specialized_fn):  Don't apply decay conversion to
8397         types of function parameters.
8399 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8401         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
8402         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
8403         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
8404         (ggc_pch_this_base): Use uintptr_t instead of size_t.
8406 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8408         PR bootstrap/52784
8409         * config/i386/i386.c (ix86_option_override_internal): Don't
8410         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
8412 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8414         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
8415         (stmt_can_make_abnormal_goto): Use it.
8416         (is_ctrl_altering_stmt): Likewise.
8418 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
8419             Kaz Kojima  <kkojima@gcc.gnu.org>
8421         * config/sh/sh.c (push_regs): Skip banked registers when
8422         resbank attribute is specified.
8423         (sh_expand_epilogue): Likewise.
8425 2012-03-30  Richard Henderson  <rth@redhat.com>
8427         PR debug/52727
8428         * combine-stack-adj.c (prev_active_insn_bb): New.
8429         (next_active_insn_bb): New.
8430         (force_move_args_size_note): New.
8431         (combine_stack_adjustments_for_block): Use it.
8433 2012-03-30  Richard Henderson  <rth@redhat.com>
8435         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
8436         (ix86_expand_vector_init_duplicate): Initialize it.
8437         (expand_vec_perm_palignr): Likewise.
8438         (ix86_expand_vec_perm_const): Likewise.
8439         (ix86_vectorize_vec_perm_const_ok): Likewise.
8440         (expand_vec_perm_blend): Use it.
8441         (expand_vec_perm_vpermil): Likewise.
8442         (expand_vec_perm_pshufb): Likewise.
8443         (expand_vec_perm_1): Likewise.
8444         (expand_vec_perm_pshuflw_pshufhw): Likewise.
8445         (expand_vec_perm_interleave2): Likewise.
8446         (expand_vec_perm_vpermq_perm_1): Likewise.
8447         (expand_vec_perm_vperm2f128): Likewise.
8448         (expand_vec_perm_interleave3): Likewise.
8449         (expand_vec_perm_vperm2f128_vblend): Likewise.
8450         (expand_vec_perm_vpshufb2_vpermq): Likewise.
8451         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
8452         (expand_vec_perm_broadcast): Likewise.
8453         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8455 2012-03-30  Richard Henderson  <rth@redhat.com>
8457         * dwarf2out.c (gen_variable_die): Initialize off.
8459 2012-03-30  Tristan Gingold  <gingold@adacore.com>
8461         * config/vms/vms-f.c: New file.
8462         * config/vms/t-vms (vms-f.o): New rule.
8463         * config.gcc (*-*-*vms*): Define fortran_target_objs.
8465 2012-03-30  Richard Guenther  <rguenther@suse.de>
8467         PR tree-optimization/52754
8468         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8469         propagate arbitrary addresses into really plain dereferences.
8471 2012-03-30  Richard Guenther <rguenther@suse.de>
8473         PR middle-end/52772
8474         * except.c (emit_to_new_bb_before): Move loop updating ...
8475         (dw2_build_landing_pads): ... here.  Use a proper block for
8476         querying the loop father.
8478 2012-03-30  Tristan Gingold  <gingold@adacore.com>
8480         * config/ia64/ia64.c (ia64_section_type_flags): Remove
8481         common_object attribute handling.
8482         (SECTION_VMS_OVERLAY): Remove
8483         (ia64_vms_common_object_attribute): Replace abort with an assert.
8484         Do not set DECL_SECTION_NAME.
8485         (ia64_vms_output_aligned_decl_common): Handle common_object
8486         attribute.
8487         (ia64_vms_elf_asm_named_section): Remove.
8488         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
8490 2012-03-30  Richard Guenther  <rguenther@suse.de>
8492         PR middle-end/52786
8493         * double-int.c (rshift_double): Remove not needed cast.
8495 2012-03-30  Richard Guenther  <rguenther@suse.de>
8497         * tree-affine.h (print_aff): Remove.
8498         * tree-affine.c (print_aff): Make static.
8499         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
8500         (get_references_in_stmt): Likewise.
8501         (print_direction_vector): Likewise.
8502         (print_dir_vectors): Likewise.
8503         (print_dist_vectors): Likewise.
8504         (dump_subscript): Likewise.
8505         (dump_ddrs): Likewise.
8506         (dump_dist_dir_vectors): Likewise.
8507         (dump_data_references): Likewise.
8508         (dump_data_dependence_relation): Likewise.
8509         (dump_data_dependence_direction): Likewise.
8510         (dump_rdg_vertex): Likewise.
8511         (dump_rdg_component): Likewise.
8512         (debug_ddrs): Declare.
8513         (struct data_ref_loc_d): Move ...
8514         * tree-data-ref.c (struct data_ref_loc_d): ... here.
8515         (get_references_in_stmt): Make static.
8516         (dump_data_references): Likewise.
8517         (dump_subscript): Likewise.
8518         (print_direction_vector): Likewise.
8519         (print_dir_vectors): Likewise.
8520         (print_dist_vectors): Likewise.
8521         (dump_data_dependence_relation): Likewise.
8522         (dump_dist_dir_vectors): Likewise.
8523         (dump_ddrs): Likewise.
8524         (dump_rdg_vertex): Likewise.
8525         (dump_rdg_component): Likewise.
8526         (debug_ddrs): New function.
8527         (access_matrix_get_index_for_parameter): Remove.
8529 2012-03-30  Tristan Gingold  <gingold@adacore.com>
8531         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
8532         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
8533         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
8534         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
8535         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
8536         (vms_patch_builtins): Handle new flags
8537         * config/vms/vms-crtlmap.map: Completed using nm on
8538         c and math system libraries.
8539         * config/vms/make-crtlmap.awk: Handle any number of flags.
8541 2012-03-30  Martin Jambor  <mjambor@suse.cz>
8543         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
8544         is a builtin_stack_save in a dominating BB.
8546 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
8548         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
8549         crossing 128bit lane boundary.
8551 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8553         * ira-color.c (setup_left_conflict_sizes_p): Process all
8554         conflicting objects.
8556 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
8558         PR tree-optimization/52760
8559         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
8560         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
8562 2012-03-29  Richard Guenther  <rguenther@suse.de>
8564         * cgraph.h (cgraph_materialize_all_clones): Remove.
8565         (reset_inline_failed): Likewise.
8566         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
8567         * cgraphbuild.c (reset_inline_failed): Remove.
8568         * rtl.h (cse_main): Remove.
8569         (extended_count): Likewise.
8570         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
8571         (cse_main): Make static.
8572         * combine.c (extended_count): Remove.
8573         (dump_combine_stats): Mark as DEBUG_FUNCTION.
8574         * basic-block.h (reorder_basic_blocks): Remove.
8575         * bb-reorder.c (reorder_basic_blocks): Make static.
8576         * Makefile.in (dse.o): Remove dse.h dependency.
8577         * dse.h: Remove.
8578         * dse.c (gate_dse): Remove.
8579         (clear_alias_mode_eq): Likewise.
8580         (clear_alias_mode_hash): Likewise.
8581         (dse_record_singleton_alias_set): Likewise.
8582         (dse_invalidate_singleton_alias_set): Likewise.
8584 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
8586         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
8587         crtbegin_so%O%s for -shared.
8588         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
8590 2012-03-29  Richard Guenther  <rguenther@suse.de>
8592         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
8593         (add_to_value): Remove.
8594         (print_value_expressions): Likewise.
8595         * tree-ssa-pre.c (add_to_value): Make static.
8596         (print_value_expressions): Likewise.
8597         * gimple.h (gimple_adjust_this_by_delta): Remove.
8598         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
8600 2012-03-29  Richard Guenther  <rguenther@suse.de>
8602         PR middle-end/50708
8603         * double-int.h (rshift_double): Remove.
8604         * double-int.c (lshift_double): Use absu_hwi to make count positive.
8605         (rshift_double): Make static, take unsigned count argument,
8606         remove handling of negative count argument.
8607         (double_int_rshift): Dispatch to lshift_double.
8609 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8611         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
8612         OPTION_MASK_ABI_64.
8614         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
8615         (SPEC_X32): Likewise.
8616         (MULTILIB_DEFAULTS): Likewise.
8618         * config/i386/i386.c (isa_opts): Remove -m64.
8619         (ix86_target_string): Properly handle -m32/-m64/-mx32.
8620         (ix86_option_override_internal): Properly
8621         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
8622         handle -m32, -m64 and -mx32.
8624         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
8625         with OPTION_ABI_X32.  Moved after TARGET_LP64.
8626         (TARGET_LP64): Changed to OPTION_ABI_64.
8628         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
8629         (mx32): Replace ISA_X32 with ABI_X32.
8631 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8633         * tree.c (tree_size) <VECTOR_CST>: New case.
8635 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
8637         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
8638         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
8640 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
8642         PR middle-end/52691
8643         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
8644         __builtin_va_start to __builtin_next_arg if the latter is
8645         builtin_decl_explicit_p rather than when it is not.
8647         PR middle-end/52750
8648         * tree-vect-generic.c (vector_element): Perform multiplication
8649         for pos in bitsizetype type instead of idx type.
8651 2012-03-28  Richard Guenther  <rguenther@suse.de>
8653         * loop-init.c (loop_optimizer_init): If loops are preserved
8654         perform incremental initialization of required loop features.
8655         (loop_optimizer_finalize): If loops are to be preserved only
8656         clean up optional loop features.
8657         (rtl_loop_done): Forcefully free loops here.
8658         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
8659         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
8660         to existing loops.
8661         (construct_init_block): Likewise.
8662         (construct_exit_block): Likewise.
8663         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
8664         the CFG after expanding.
8665         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
8666         If we needed to calculate them, free them afterwards.
8667         * tree-pass.h (PROP_loops): New define.
8668         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
8669         * basic-block.h (CLEANUP_CFG_CHANGED): New.
8670         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
8671         (cleanup_cfg): If we did something and have loops around, fix them up.
8672         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
8673         with CLEANUP_CFG_CHANGED.
8674         * cfghooks.c (merge_blocks): If we merge a loop header into
8675         its predecessor, update the loop structure.
8676         (duplicate_block): If we copy a loop latch, adjust loop state
8677         to note we may have multiple latches.
8678         (delete_basic_block): Mark loops for fixup if we remove a loop.
8679         * cfganal.c (forwarder_block_p): Protect loop latches, headers
8680         and preheaders.
8681         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
8682         (cfg_layout_can_merge_blocks_p): Likewise.
8683         * cprop.c (bypass_block): If we create a loop with multiple
8684         entries, mark it for removal.
8685         * except.c (emit_to_new_bb_before): Add the new basic-block
8686         to existing loops.
8687         * tree-eh.c (lower_resx): Likewise.
8688         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
8689         (expand_omp_taskreg): Likewise.
8690         * tree-inline.c (initialize_cfun): Likewise.
8691         * tree-mudflap.c (add_bb_to_loop): Prototype.
8692         (mf_build_check_statement_for): Properly add new basic-blocks
8693         to existing loops.
8694         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
8695         if we remove a loop.
8696         (thread_through_loop_header): Likewise.
8697         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
8698         new basic-blocks to existing loops.
8699         (expand_transaction): Likewise.
8700         * Makefile.in (except.o): Add $(CFGLOOP_H).
8701         (expr.o): Likewise.
8702         (cgraph.o): Likewise.
8703         (cprop.o): Likewise.
8704         (cfgexpand.o): Likewise.
8705         (cfganal.o): Likewise.
8706         (trans-mem.o): Likewise.
8707         (tree-eh.o): Likewise.
8709 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
8711         PR target/52692
8712         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
8713         (avr_builtin_decl): New static function.
8714         (struct avr_builtin_description, avr_bdesc): Move up.
8715         Add GTY marker. Add field fndecl. Remove redundant field id.
8716         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
8717         (avr_expand_builtin): Code cleanup because .id is removed.
8719 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
8721         PR target/52737
8722         * config.gcc (tm_file): Remove avr/multilib.h.
8724         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
8726         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
8727         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
8728         * config/avr/t-avr: Remove generation of multilib.h.
8729         * config/avr/t-multilib: Regenerate.
8730         * config/avr/multilib.h: Remove.
8731         * config/avr/avr.opt (-msp8): New option.
8732         (avr_sp8): New variable.
8733         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
8734         * config/avr/avr.h (AVR_HAVE_SPH): New define.
8735         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
8736         (avr_device_to_sp8): New prototype.
8737         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
8738         (DRIVER_SELF_SPECS): New define.
8739         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
8740         __AVR_SP8__, __AVR_HAVE_SPH__.
8741         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
8742         AVR_HAVE_8BIT_SP to decide if SP_H is present.
8743         (avr_file_start): Ditto.
8745 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
8747         PR target/52736
8748         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
8749         instead of 8 in adjust_address.
8751 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
8753         PR middle-end/51893
8754         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
8755         targets.
8757 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
8759         PR target/50751
8760         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
8761         Rearrange conditional logic.  Move displacement address calculations
8762         to ...
8763         (sh_find_mov_disp_adjust): ... this new function.
8765 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8767         * config/arm/arm.opt (mapcs): Remove MaskExists.
8768         * config/cris/linux.opt (mno-gotplt): Likewise.
8769         * config/i386/i386.opt (mhard-float): Likewise.
8770         (msse4): Likewise.
8771         (mno-sse4): Likewise.
8772         * config/m68k/m68k.opt (mhard-float): Likewise.
8773         * config/mep/mep.op (mcop32): Likewise.
8774         * config/pa/pa-hpux.opt (msio): Likewise.
8775         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
8776         * config/picochip/picochip.opt (mlittle): Likewise.
8777         * config/sh/sh.opt (mrenesas): Likewise.
8778         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
8779         * config/sparc/sparc.opt (mhard-float): Likewise.
8780         * config/v850/v850.opt (mv850es): Likewise.
8781         * config/vax/vax.opt (mg-float): Likewise.
8783 2012-03-27  Martin Jambor  <mjambor@suse.cz>
8785         PR middle-end/52693
8786         * tree-sra.c (sra_modify_assign): Do not call
8787         load_assign_lhs_subreplacements when working with an unscalarizable
8788         region.
8790 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
8792         PR target/52698
8793         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
8794         New prototype.
8795         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
8796         * config/i386/i386.c: Include reload.h.
8797         (ix86_legitimize_reload_address): New function.
8799 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8801         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
8802         hasn't been allocated.  Define a target macro for Mask and
8803         InverseMask if it hasn't been defined.  Remove MaskExists handling.
8805         * doc/options.texi: Remove MaskExists.
8807 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
8809         PR target/52667
8810         * config/sh/sh.c (find_barrier): Add equality check of last_got
8811         to avoid going above orig insn. Update comments.
8813 2012-03-27  Richard Guenther  <rguenther@suse.de>
8815         PR middle-end/52720
8816         * fold-const.c (try_move_mult_to_index): Handle &x.array more
8817         explicitely.
8819 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
8821         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
8822         of a unit before computing the offset in units.
8823         * expr.c (get_bit_range): Return the null range if the enclosing record
8824         is part of a larger bit field.
8826 2012-03-27  Tristan Gingold  <gingold@adacore.com>
8828         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
8829         * config/ia64/ia64.md: Remove mode in template.
8830         Sign extend operand in expand_simple_binop.
8831         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
8832         CASE_VECTOR_MODE instead of TARGET_ILP32.
8833         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
8835 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
8837         * varasm.c (assemble_external): #if 0 out the new assert from the
8838         previous commit, it breaks the Java and Go front ends.
8840 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
8842         * toplev.c (check_global_declaration_1): Do not call assemble_external.
8843         * expr.c (emit_block_move_libcall_fn): Likewise.
8844         (clear_storage_libcall_fn): Likewise.
8845         (expand_expr_addr_expr_1): Likewise.
8846         (expand_expr_real_1): Likewise.
8847         * calls.c (rtx_for_function_call): Likewise.
8849         * varasm.c (assemble_external): Assert this function is only called
8850         during or after expanding to RTL.
8852 2012-03-26  Martin Jambor  <mjambor@suse.cz>
8854         PR tree-optimization/50052
8855         * tree-sra.c (tree_non_aligned_mem_p): Removed.
8856         (tree_non_aligned_mem_for_access_p): Likewise.
8857         (build_accesses_from_assign): Removed strict alignment requirements
8858         checks.
8859         (access_precludes_ipa_sra_p): Likewise.
8861 2012-03-26  Richard Guenther  <rguenther@suse.de>
8863         PR tree-optimization/52701
8864         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
8865         compute and set the evolution part of PHI nodes.
8867 2012-03-26  Richard Guenther  <rguenther@suse.de>
8869         PR tree-optimization/52721
8870         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
8872 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
8874         PR tree-optimization/52686
8875         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
8876         WIDEN_LSHIFT_EXPR.
8878 2012-03-26  Tristan Gingold  <gingold@adacore.com>
8880         * config/alpha/vms.h (LINK_SPEC): Simplify.
8881         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
8882         (NAME__MAIN, SYMBOL__MAIN): Remove.
8883         (VMS_DEBUG_MAIN_POINTER): Remove.
8884         * config/ia64/vms.h: Likewise.
8885         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
8886         code to vms.c.  Call vms_start_function.
8887         * config/ia64/ia64.c (ia64_start_function): Likewise.
8888         * config/vms/vms-protos.h (vms_start_function): Declare.
8889         * config/vms/vms.c (vms_start_function): New function.
8890         * config/vms/vms.h (MATH_LIBRARY): Define.
8891         (VMS_DEBUG_MAIN_POINTER): Define.
8893 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8895         PR rtl-optimization/52629
8896         * reload1.c (count_pseudo): Short-circuit common case.
8897         (count_spilled_pseudo): Return early for pseudos without hard regs.
8898         Assert that the pseudo has got a hard reg before manipulating it.
8900 2012-03-24  Jan Hubicka  <jh@suse.cz>
8902         PR lto/51663
8903         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
8904         (decide_is_variable_needed): Do not handle toplevel reorder here.
8905         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
8906         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
8907         even at -O0.
8909 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8911         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
8912         and str_bitsize instead of more convoluted expressions.
8914 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8916         PR target/52610
8917         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
8919 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8921         PR target/52656
8922         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
8924 2012-03-23  Martin Jambor  <mjambor@suse.cz>
8926         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
8928 2012-03-23  Richard Guenther  <rguenther@suse.de>
8930         PR tree-optimization/52678
8931         * tree-vectorizer.h (struct _stmt_vec_info): Add
8932         loop_phi_evolution_part member.
8933         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
8934         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
8935         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
8936         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8937         Use the cached evolution part and the PHI nodes value from
8938         the loop preheader edge instead of re-analyzing the evolution.
8940 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8942         * config/mips/mips-tables.opt: Update.
8943         * config/mips/mips.md (processor): Add xlp.
8944         * config/mips/mips-cpus.def: Add xlp.
8945         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
8946         5KF for now.
8947         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
8948         * doc/invoke.texi: Mention XLP.
8950 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
8952         PR middle-end/52547
8953         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
8954         on any new_local_var_chain vars declared during recursing on
8955         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
8957 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
8959         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
8960         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
8961         (ASM_OUTPUT_LOCAL): Ditto.
8962         (ASM_OUTPUT_COMMON): Remove.
8963         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
8964         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
8966 2012-03-22  Jan Hubicka  <jh@suse.cz>
8968         PR middle-end/51737
8969         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
8970         parameter.
8971         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
8972         * ipa-inline-transform.c (save_inline_function_body): Remove
8973         copied clone if needed.
8974         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
8976 2012-03-22  Richard Guenther  <rguenther@suse.de>
8978         PR middle-end/52666
8979         * fold-const.c (fold_ternary_loc): Fix typo.
8981 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
8983         PR target/52496
8984         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
8985         (unspecv): Add UNSPECV_MEMORY_BARRIER.
8986         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
8987         (delay_cycles_1, delay_cycles_2): Ditto.
8988         (delay_cycles_3, delay_cycles_4): Ditto.
8989         (nopv, *nopv): Ditto.
8990         (sleep, *sleep): Ditto.
8991         (wdr, *wdr): Ditto.
8993 2012-03-22  Richard Guenther  <rguenther@suse.de>
8995         PR tree-optimization/52548
8996         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
8997         because of clobbers.
8998         (prune_clobbered_mems): New function.
8999         (compute_antic_aux): Use it to prune ANTIC_OUT.
9000         (compute_partial_antic_aux): Use it to prune PA_IN.
9001         (compute_avail): Only insert expressions into EXP_GEN that are not
9002         invalidated when translated up to the beginning of the block.
9004 2012-03-22  Richard Guenther  <rguenther@suse.de>
9006         PR tree-optimization/52638
9007         * tree-vect-stmts.c (vect_init_vector_1): New function, split
9008         out from ...
9009         (vect_init_vector): ... here.  Handle scalar vector inits.
9010         (vect_get_vec_def_for_operand): Adjust.
9011         (vectorizable_load): Likewise.
9013 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
9015         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
9016         (alpha*-*-freebsd*): Ditto.
9017         (alpha*-*-netbsd*): Ditto.
9018         (alpha*-*-openbsd*): Ditto.
9019         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
9020         (DWARF2_DEBUGGING_INFO): Remove.
9021         (PREFERRED_DEBUGGING_TYPE): Remove.
9022         (ASM_FINAL_SPEC): Remove.
9023         (IDENT_ASM_OP): Remove.
9024         (ASM_OUTPUT_IDENT): Remove.
9025         (SKIP_ASM_OP): Remove.
9026         (ASM_OUTPUT_SKIP): Remove.
9027         (ALIGN_ASM_OP): Remove.
9028         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9029         (ASM_OUTPUT_CASE_LABEL): Remove.
9030         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
9031         (COMMON_ASM_OP): Remove.
9032         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
9033         (ASCII_DATA_ASM_OP): Remove.
9034         (READONLY_DATA_SECTION_ASM_OP): Remove.
9035         (INIT_SECTION_ASM_OP): Remove.
9036         (FINI_SECTION_ASM_OP): Remove.
9037         (ASM_SECTION_START_OP): Remove.
9038         (ASM_OUTPUT_SECTION_START_FILE): Remove.
9039         (TARGET_ASM_NAMED_SECTION): Remove.
9040         (TARGET_ASM_SELECT_SECTION): Remove.
9041         (MAKE_DECL_ONE_ONLY): Remove.
9042         (TYPE_ASM_OP): Remove.
9043         (SIZE_ASM_OP): Remove.
9044         (ASM_WEAKEN_LABEL): Remove.
9045         (TYPE_OPERAND_FMT): Remove.
9046         (ASM_DECLARE_RESULT): Remove.
9047         (ASM_DECLARE_OBJECT_NAME): Remove.
9048         (ASM_FINISH_DECLARE_OBJECT): Remove.
9049         (ELF_ASCII_ESCAPES): Remove.
9050         (ELF_STRING_LIMIT): Remove.
9051         (STRING_ASM_OP): Remove.
9052         (ASM_OUTPUT_EXTERNAL): Remove.
9053         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
9054         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
9055         before define.
9056         (ASM_DECLARE_FUNCTION_NAME): Ditto.
9057         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
9058         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
9059         (ASM_OUTPUT_SKIP): Ditto.
9060         (READONLY_DATA_SECTION_ASM_OP): Remove.
9061         (USER_LABEL_PREFIX): Remove.
9062         (ASM_OUTPUT_ASCII): Remove.
9063         (ASM_OUTPUT_CASE_LABEL): Remove.
9064         (NO_DOLLAR_IN_LABEL): Undefine.
9066 2012-03-22  Richard Guenther  <rguenther@suse.de>
9068         PR tree-optimization/52459
9069         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
9070         PHI insertion for calls.
9072 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
9074         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
9075         find_sets_in_insn, canonicalize_insn): Split out from ...
9076         (cse_insn): ... here.
9077         (invalidate_from_clobbers): Take an insn instead of the pattern.
9079 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
9081         PR target/52479
9082         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
9083         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
9084         * config/sh/sh.md (sindf2, cosdf2): Remove.
9086 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9088         PR target/52642
9089         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
9090         prologue for unwinder and profiler.
9092 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
9094         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
9095         Introduce emul_name to select the right linker emulation for
9096         powerpc64-*-freebsd*.
9097         * configure: Regenerate.
9098         * config.gcc: Add bits to support powerpc64-*-freebsd*.
9099         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
9100         * config/rs6000/freebsd64.h: New file.
9101         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
9102         POWERPC_FREEBSD.
9103         (rs6000_savres_strategy): Likewise.
9104         (rs6000_savres_routine_name): Likewise.
9105         (rs6000_elf_file_end): Likewise.
9106         * config/rs6000/t-freebsd64: New file.
9107         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
9108         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
9110         * config/rs6000/freebsd64.h: Remove duplicated entries from last
9111         commit.
9112         * config/rs6000/t-freebsd64: Likewise.
9114 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
9116         PR rtl-optimization/52543
9117         PR target/52461
9118         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
9119         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
9120         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
9121         (avr_load_libgcc_p): Restrict to __flash loads.
9122         (avr_out_lpm): Only handle 1-byte loads from __flash.
9123         (avr_load_lpm): New function.
9124         (avr_find_unused_d_reg): Remove.
9125         (avr_out_lpm_no_lpmx): Remove.
9126         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
9127         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
9128         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
9129         (load_<mode>, load_<mode>_clobber): New insns.
9130         (mov<mode>): For multi-byte move from non-generic
9131         16-bit address spaces: Expand to load_<mode> resp.
9132         load_<mode>_clobber.
9133         (load<mode>_libgcc): Remove expander.
9134         (split-lpmx): Remove split.
9136 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
9138         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
9139         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
9140         All callers changed.
9141         (Fixed_core_reg): New feature.
9142         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
9143         disassembly.
9144         * neon-testgen.ml: Handle Fixed_core_reg.
9146 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
9148         * config/arm/arm.c (thumb2_reorg): Add complete support
9149         for 16-bit instructions.
9150         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
9152 2012-03-21  Richard Guenther  <rguenther@suse.de>
9154         PR tree-optimizer/52636
9155         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
9156         to the appropriate type.
9158 2012-03-21  Richard Guenther  <rguenther@suse.de>
9160         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
9161         dependencies.
9162         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
9163         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9164         * passes.c (init_optimization_passes): Remove pass_init_function,
9165         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9166         * tree-pass.h (pass_init_function): Remove.
9167         (pass_jump): Remove.
9168         (pass_initial_value_sets): Remove.
9169         (pass_unshare_all_rtl): Remove.
9170         * integrate.c (pass_initial_value_sets): Remove.
9171         * emit-rtl.c (pass_unshare_all_rtl): Remove.
9172         * tree.h (init_function_for_compilation): Remove.
9173         * function.c (init_function_for_compilation): Remove.
9174         (pass_init_function): Remove.
9175         * cfgcleanup.c (rest_of_handle_jump): Remove.
9176         (pass_jump): Remove.
9178 2012-03-20  Jason Merrill  <jason@redhat.com>
9180         * tree-streamer-in.c (streamer_alloc_tree): Call
9181         ggc_alloc_zone_cleared_tree_node instead of
9182         ggc_alloc_zone_cleared_tree_node_stat.
9184 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
9186         * doc/extend.texi (Template Instantiation): Remove anachronisms.
9188 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
9190         PR target/52607
9191         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
9192         (ix86_expand_vec_perm_const_1): Call it.
9194         * config/i386/i386.c (vselect_insn): New variable.
9195         (init_vselect_insn): New function.
9196         (expand_vselect, expand_vselect_insn): Add testing_p argument.
9197         Call init_vselect_insn if vselect_insn is NULL.  Adjust
9198         PATTERN (vselect_insn), instead of creating a new insn each time,
9199         only emit a copy of it if not testing and recog has been successful.
9200         (expand_vec_perm_pshufb, expand_vec_perm_1,
9201         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
9202         callers.
9204         PR target/52607
9205         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
9206         ("enabled" attribute): Handle avx2 and noavx2 isas.
9207         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
9208         New insns.
9209         (vec_dup<mode>): Add avx2 =x,x alternative.
9210         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
9211         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
9212         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
9213         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
9214         for V8SFmode.
9215         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
9216         if possible, handle also V8SFmode.
9218 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
9220         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
9221         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
9222         reg_or_zero_operand predicate.
9223         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
9225 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
9227         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
9228         If operand isn't UNSPEC, return 0.
9230 2012-03-20  Richard Guenther  <rguenther@suse.de>
9232         * tree-pass.h (pass_rtl_eh): Remove.
9233         * except.c (gate_handle_eh): Likewise.
9234         (rest_of_handle_eh): Likewise.
9235         (pass_rtl_eh): Likewise.
9236         (finish_eh_generation): Export.
9237         * except.h (finish_eh_generation): Declare.
9238         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
9239         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
9240         after expanding stack alignment.  Instead of compacting blocks
9241         call cleanup_cfg.
9243 2012-03-20  Richard Guenther  <rguenther@suse.de>
9245         * stor-layout.c (finish_bitfield_representative): Fallback
9246         to conservative maximum size if the padding up to the next
9247         field cannot be computed as a constant.
9248         (finish_bitfield_layout): If we cannot compute the distance
9249         between the start of the bitfield representative and the
9250         bitfield member start a new representative.
9251         * expr.c (get_bit_range): The distance between the start of
9252         the bitfield representative and the bitfield member is zero
9253         if the field offsets are not constants.
9255 2012-03-20  Tristan Gingold  <gingold@adacore.com>
9257         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
9258         convert in lowercase.
9259         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
9260         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
9261         * stor-layout.c (sizetype_tab): Adjust.
9262         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
9263         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
9264         instead of type_kind_last.
9265         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
9266         instead of size_int_kind.
9267         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
9268         * doc/tm.texi: Regenerate.
9269         * defaults.h (SIZETYPE): Provide a default value.
9270         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
9271         (SIZETYPE): Define.
9273 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
9275         * config/sh/sh.md: Use braced string notation where applicable.
9277 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9279         * config/i386/i386.md (allocate_stack): Simplify.
9281 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9283         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
9284         copy_to_mode_reg (Pmode, ...).
9285         (expand_builtin_frame_address): Ditto.
9286         * expr.c (emit_block_move_via_libcall): Ditto.
9287         (set_storage_via_libcall): Ditto.
9289         * config/i386/i386.c (ix86_expand_movmem): Ditto.
9290         (ix86_expand_setmem): Ditto.
9291         (ix86_trampoline_init): DItto.
9292         * config/i386/i386.md (cmpstrnsi): Ditto.
9294 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
9296         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
9297         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
9298         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
9299         (SH Options): Likewise.
9301 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9303         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
9304         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
9305         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
9306         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
9307         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
9309         Revert:
9310         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9312         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9313         * config/i386/i386.c (ix86_decompose_address): Use
9314         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9315         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9316         thread pointer to a register.
9318         Revert:
9319         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
9321         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
9322         if Pmode != word_mode.
9323         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
9324         Pmode == SImode for TARGET_X32.
9326         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
9327         (tls_initial_exec_x32): Likewise.
9329 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
9331         PR target/50751
9332         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
9333         DISP_ADDR_OFFSET): New macros.
9334         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
9335         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
9336         (sh_legitimize_address): Add QImode displacement handling.
9337         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
9338         vector subregs.
9339         (sh_secondary_reload): Add QImode displacement handling.
9340         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
9341         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
9342         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
9343         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
9344         to register operands only.
9345         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
9346         (extendqihi2): Change insn to expander.
9347         (*extendqihi2_compact_reg): New insn.
9348         (movqi_i, movqi): Replace with ...
9349         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
9350         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
9351         Add new peepholes for QImode displacement addressing.
9353 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
9355         PR c++/14710
9356         * doc/invoke.texi: Document -Wuseless-cast.
9358 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
9360         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
9361         * tree.h (handled_component_p): Reorder cases.
9362         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
9363         not initialize unsignedp.
9364         (loc_list_from_tree): Likewise.
9365         (fortran_common): Likewise.
9366         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9368 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9370         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
9371         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
9372         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
9373         (ix86_split_long_move): Ditto.
9374         (legitimize_tls_address): Use ix86_gen_sub3.
9375         (construct_plt_address): Assert that Pmode == DImode.
9377 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
9379         * config/i386/i386.md: Remove empty predicates and/or constraints.
9380         * config/i386/sync.md: Ditto.
9381         * config/i386/sse.md: Ditto.
9382         * config/i386/mmx.md: Ditto.
9383         * config/i386/pentium.md: Ditto.
9384         * config/i386/athlon.md: Ditto.
9386 2012-03-16  Richard Guenther  <rguenther@suse.de>
9388         PR tree-optimization/52603
9389         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
9390         comment.
9392         Revert
9393         2012-03-14  Richard Guenther  <rguenther@suse.de>
9395         PR tree-optimization/52571
9396         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9397         flag_section_anchors check ...
9398         (vect_can_force_dr_alignment_p): ... here.
9400 2012-03-16  Martin Jambor  <mjambor@suse.cz>
9402         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
9403         memory through MEM_REFs by calling extract_bit_field.
9405 2012-03-16  Richard Guenther  <rguenther@suse.de>
9407         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
9408         and REFERENCE_TYPE interpretations.
9409         (can_native_interpret_type_p): New function.
9410         (fold_ternary_loc): Use native encode/interpret to fold
9411         BIT_FIELD_REFs of constants.
9413 2012-03-16  Richard Guenther  <rguenther@suse.de>
9415         PR middle-end/52584
9416         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
9417         of vector constants and constructors.
9419 2012-03-16  Richard Guenther  <rguenther@suse.de>
9421         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9422         VIEW_CONVERT_EXPR to convert constants.
9423         (vect_is_simple_use): Treat all constants as vec_constant_def.
9425 2012-03-16  Richard Guenther  <rguenther@suse.de>
9426             Kai Tietz  <ktietz@redhat.com>
9428         PR middle-end/48814
9429         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
9430         side-effects completely in the pre-queue and use a temporary
9431         for the result.
9433 2012-03-16  Richard Guenther  <rguenther@suse.de>
9435         * stor-layout.c (finish_bitfield_representative): Fall back
9436         to the conservative maximum size if we cannot compute the
9437         size of the tail padding.
9439 2012-03-16  Tristan Gingold  <gingold@adacore.com>
9441         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
9442         __CRTL_VER and __VMS_VER.
9443         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
9444         and vms_c_get_vms_ver.
9445         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
9446         functions.
9447         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
9448         (VMS_DEFAULT_VMS_VER): Define.
9449         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
9450         (VMS_DEFAULT_VMS_VER): Define.
9452 2012-03-16  Richard Guenther  <rguenther@suse.de>
9454         * tree-vect-loop.c (get_initial_def_for_induction): Use
9455         build_constructor directly.
9456         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9457         build_vector_from_val.
9458         * tree.c (build_vector_from_val): Avoid creating a constructor
9459         first when we want a constant vector.
9461 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9463         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
9465 2012-03-16  Richard Guenther  <rguenther@suse.de>
9467         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
9468         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
9469         (struct tree_vector): Remove elements member, add variable size
9470         elts array member.
9471         (build_vector_stat): Declare.
9472         (build_vector): Define in terms of build_vector_stat.
9473         * tree.c (build_vector): Rename to ...
9474         (build_vector_stat): ... this.  Take array of trees as parameter.
9475         (build_vector_from_ctor): Adjust.
9476         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
9477         initializer_zerop): Adjust.
9478         * cfgexpand.c (expand_debug_expr): Likewise.
9479         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
9480         const_vector_from_tree): Likewise.
9481         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
9482         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
9483         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
9484         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
9485         (lto_input_ts_vector_tree_pointers): Adjust.
9486         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
9487         (write_ts_vector_tree_pointers): Adjust.
9488         * varasm.c (const_hash_1, compare_constant, copy_constant,
9489         output_constant): Adjust.
9490         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
9491         * print-tree.c (print_node): Adjust.
9492         * tree-pretty-print.c (dump_generic_node): Adjust.
9493         * tree-vect-generic.c (uniform_vector_p, vector_element,
9494         lower_vec_perm): Adjust.
9495         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
9496         * tree-vect-slp.c (vect_get_constant_vectors,
9497         vect_transform_slp_perm_load): Adjust.
9498         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
9499         * expmed.c (make_tree): Adjust.
9500         * config/i386/i386.c (ix86_expand_builtin): Adjust.
9501         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
9502         and implementation.
9503         (sparc_fold_builtin): Adjust.
9505 2012-03-16  Tristan Gingold  <gingold@adacore.com>
9507         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
9508         * config/vms/vms-stdint.h: New file.
9510 2012-03-16  Tristan Gingold  <gingold@adacore.com>
9512         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
9513         (ia64-hp-*vms*): Replaced by ...
9514         (*-*-*vms*): ... This new entry.
9516 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
9518         PR target/52568
9519         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
9520         (ix86_expand_vec_perm_const_1): Use it.
9522         PR target/52568
9523         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
9524         (avx2_permv4df): Remove.
9525         (avx2_permv4di): Macroize into...
9526         (avx2_perm<mode>): ... this using VI8F_256 iterator.
9527         (avx2_permv4di_1): Macroize into...
9528         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
9530 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
9532         * combine.c (apply_distributive_law): Do not distribute SUBREG.
9534 2012-03-15  Ira Rosen  <irar@il.ibm.com>
9535             Ulrich Weigand  <ulrich.weigand@linaro.org>
9537         * tree-vect-patterns.c (widened_name_p): Rename to ...
9538         (type_conversion_p): ... this.  Add new argument to determine
9539         if it's a promotion or demotion operation.  Check for
9540         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
9541         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
9542         widened_name_p.
9543         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
9544         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
9545         Likewise.
9546         (vect_recog_mixed_size_cond_pattern): Likewise and allow
9547         non-constant then and else clauses.
9549 2012-03-15  Ira Rosen  <irar@il.ibm.com>
9550             Ulrich Weigand  <ulrich.weigand@linaro.org>
9552         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
9553         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
9554         vect_pattern_recog.
9555         * tree-vect-patterns.c (widened_name_p): Pass basic block
9556         info to vect_is_simple_use.
9557         (vect_recog_dot_prod_pattern): Fail for basic blocks.
9558         (vect_recog_widen_sum_pattern): Likewise.
9559         (vect_handle_widen_op_by_const): Support basic blocks.
9560         (vect_operation_fits_smaller_type,
9561         vect_recog_over_widening_pattern): Likewise.
9562         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
9563         Update call to vect_is_simple_use.
9564         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
9565         Add printing.
9566         (check_bool_pattern): Add an argument, update call to
9567         vect_is_simple_use and the recursive calls.
9568         (vect_recog_bool_pattern): Update relevant function calls.
9569         Add printing.
9570         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
9571         (vect_pattern_recog_1): Check for reduction only in loops.
9572         (vect_pattern_recog): Add new argument.  Support basic blocks.
9573         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
9574         info to vect_is_simple_use_1.
9575         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
9576         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
9578 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
9579             Andrew Pinski  <apinski@cavium.com>
9581         PR middle-end/52592
9582         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
9583         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
9584         calls instead of __builtin_ir{int,ound}*.
9586 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9588         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
9589         documentation.
9591 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9593         * config.gcc (target_type_format_char): New. Document it. Set it for
9594         arm*-*-* .
9595         * configure.ac (gnu_unique_option): Use target_type_format_char
9596         in test.  Comment rationale.
9597         * configure: Regenerate .
9599 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
9601         PR tree-optimization/52267
9602         * tree-vrp.c (masked_increment): New function.
9603         (register_edge_assert_for_2): Derive ASSERT_EXPRs
9604         from (X & CST1) cmp CST2 tests.
9606 2012-03-15  Richard Guenther  <rguenther@suse.de>
9608         PR middle-end/52580
9609         * tree-data-ref.c (subscript_dependence_tester_1): Check
9610         all dimensions for non-conflicting access functions.
9612 2012-03-15  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
9614         PR c++/44783
9615         * doc/invoke.texi [C++ Language Options]: Document
9616         -ftemplate-backtrace-limit.
9618 2012-03-15  Tristan Gingold  <gingold@adacore.com>
9620         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
9621         before a parameter.
9623 2012-03-15  Tristan Gingold  <gingold@adacore.com>
9625         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
9626         use DW_OP_call_frame_cfa.
9628 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
9630         PR target/50797
9631         * config/i386/i386-opts.h (pmode): New.
9633         * config/i386/i386.c (ix86_option_override_internal): Properly
9634         check and set ix86_pmode.
9636         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
9638         * config/i386/i386.opt (maddress-mode=): New.
9640         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
9642 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9644         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
9645         (dwarf2out_do_cfi_asm): Likewise.
9646         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
9647         handling.
9648         (add_data_member_location_attribute): Likewise.
9649         (gen_array_type_die): Likewise.
9650         (gen_subprogram_die): Likewise.
9651         (gen_producer_string): Likewise.
9652         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
9653         Remove MIPS_DEBUGGING_INFO handling.
9654         (sdb_debug_hooks): Likewise.
9655         (sdbout_begin_block): Likewise.
9656         (sdbout_end_block): Likewise.
9657         (sdbout_begin_prologue): Likewise.
9658         (sdbout_start_source_file): Likewise.
9659         (sdbout_end_source_file): Likewise.
9660         (sdbout_init): Likewise.
9661         * system.h (MIPS_DEBUGGING_INFO): Poison.
9663 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9665         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
9666         (alpha_file_start) [MS_STAMP]: Remove.
9668         * config/alpha/elf.h (TARGET_GAS): Remove.
9669         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
9670         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
9671         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
9672         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
9673         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
9674         (alpha*-*-freebsd*): Likewise.
9675         (alpha*-*-netbsd*): Likewise.
9676         (alpha*-*-openbsd*): Likewise.
9677         (alpha*-*-*): Remove target_cpu_default2.
9678         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
9679         handling.
9680         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
9681         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
9682         * config/alpha/alpha.c (print_operand): Always assume
9683         TARGET_AS_SLASH_BEFORE_SUFFIX.
9684         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
9685         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
9686         ("*builtin_setjmp_receiver_er_1"): Remove.
9687         * config/alpha/alpha.opt (malpha-as): Remove.
9688         (mgas): Ignore.
9689         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
9690         -malpha-as, -mgas.
9691         Remove DEC Unix reference.
9693         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
9694         (EXTENDED_COFF): Remove.
9695         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
9696         (EXTENDED_COFF): Don't undef.
9697         * config/alpha/alpha.c (alpha_file_start): Always assume
9698         OBJECT_FORMAT_ELF.
9699         Don't set targetm.asm_file_start_file_directive.
9700         [!OBJECT_FORMAT_ELF]: Remove.
9701         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9703         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
9704         (DBX_DEBUGGING_INFO): Remove.
9705         (MIPS_DEBUGGING_INFO): Remove.
9706         (PREFERRED_DEBUGGING_TYPE): Remove.
9707         (DBX_OUTPUT_SOURCE_LINE): Remove.
9708         (SDB_OUTPUT_SOURCE_LINE): Remove.
9709         (DBX_CONTIN_LENGTH): Remove.
9710         (NO_DBX_FUNCTION_END): Remove.
9711         (ASM_STABS_OP): Remove.
9712         (ASM_STABN_OP): Remove.
9713         (ASM_STABD_OP): Remove.
9714         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
9715         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
9716         (PUT_SDB_DEF): Remove.
9717         (PUT_SDB_PLAIN_DEF): Remove.
9718         (PUT_SDB_TYPE): Remove.
9719         (sdb_label_count): Remove.
9720         (PUT_SDB_BLOCK_START): Remove.
9721         (PUT_SDB_BLOCK_END): Remove.
9722         (PUT_SDB_FUNCTION_START): Remove.
9723         (PUT_SDB_FUNCTION_END): Remove.
9724         (PUT_SDB_EPILOGUE_END): Remove.
9725         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
9726         (MIPS_DEBUGGING_INFO): Don't undef.
9727         (DBX_DEBUGGING_INFO): Don't undef.
9728         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
9729         (MIPS_DEBUGGING_INFO): Don't undef.
9730         (DBX_DEBUGGING_INFO): Don't undef.
9731         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
9732         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
9733         handling.
9734         (alpha_start_function): Likewise.
9735         (sdb_label_count): Remove.
9736         (alpha_output_filename): Remove DBX_DEBUG handling.
9737         (alpha_file_start): Likewise.
9739 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9741         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
9742         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
9743         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
9744         Solaris 8 support.
9745         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
9746         (ld_tls_support): Remove Solaris 8 references.
9747         (lwp_dir, lwp_spec): Remove support for alternate thread library.
9748         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
9749         * configure: Regenerate.
9750         * config.in: Regenerate.
9752         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
9753         * config/i386/sol2.h: Remove Solaris 8 references.
9755         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
9756         (i?86-*-solaris2.9): ... this.
9757         Remove Solaris 8 references.
9758         (Specific, *-*-solaris2*): Document Solaris 8 removal.
9759         Remove Solaris 8 references.
9761 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9763         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
9764         (mips-sgi-irix6.5*): Remove.
9765         * config.host (mips-sgi-irix*): Remove.
9766         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
9767         (set_have_as_tls): Remove *-*-irix6*.
9768         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
9769         * configure: Regenerate.
9771         * config/mips/iris6.h: Remove.
9772         * config/mips/iris6.opt: Remove.
9773         * config/mips/t-irix6: Remove.
9775         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
9776         (TARGET_IRIX6): Remove.
9777         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
9778         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
9779         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
9780         handling.
9781         (mips_file_start): Likewise.
9782         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
9784         * config/mips/driver-native.c [__sgi__]: Remove.
9785         (host_detect_local_cpu) [__sgi__]: Remove.
9787         * config/mips/gnu-user.h: Remove iris5.h reference.
9789         * config/mips/mips-modes.def: Remove IRIX 6 reference.
9790         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
9791         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
9792         Remove.
9794         * gcc.c (main): Move asm_debug initialization ...
9795         (asm_debug): ... here.
9797         * ginclude/stddef.h (__STDDEF_H__): Don't define.
9799         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
9800         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
9801         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9802         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9803         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
9804         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
9805         Remove.
9806         * doc/tm.texi: Regenerate.
9808         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
9809         IRIX 6 reference.
9810         (MIPS Options, -march): Remove IRIX reference.
9811         * doc/install.texi (Binaries, SGI IRIX): Remove.
9812         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
9813         of section.
9814         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
9816 2012-03-14  Martin Jambor  <mjambor@suse.cz>
9818         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
9819         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
9820         (expand_expr_real_1): Do not handle misalignment if modifier is
9821         EXPAND_WRITE.
9823 2012-03-14  Richard Guenther  <rguenther@suse.de>
9825         PR middle-end/52584
9826         * tree-vect-generic.c (type_for_widest_vector_mode): Take
9827         element type instead of mode, use build_vector_type_for_mode
9828         instead of the langhook, build a vector of proper signedness.
9829         (expand_vector_operations_1): Adjust.
9831 2012-03-14  Richard Guenther  <rguenther@suse.de>
9833         PR middle-end/52582
9834         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
9835         a cgraph node for a FUNCTION_DECL that comes from a constructor.
9836         (gimple_get_virt_method_for_binfo): Likewise.
9838 2012-03-14  Richard Guenther  <rguenther@suse.de>
9840         PR tree-optimization/52571
9841         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9842         flag_section_anchors check ...
9843         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
9844         DECL_COMMON variables.
9846 2012-03-14  Richard Guenther  <rguenther@suse.de>
9848         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
9849         * stor-layout.c (start_bitfield_representative): New function.
9850         (finish_bitfield_representative): Likewise.
9851         (finish_bitfield_layout): Likewise.
9852         (finish_record_layout): Call finish_bitfield_layout.
9853         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
9854         for QUAL_UNION_TYPE fields.
9855         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
9856         Stream DECL_BIT_FIELD_REPRESENTATIVE.
9857         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
9859         PR middle-end/52080
9860         PR middle-end/52097
9861         PR middle-end/48124
9862         * expr.c (get_bit_range): Unconditionally extract bitrange
9863         from DECL_BIT_FIELD_REPRESENTATIVE.
9864         (expand_assignment): Adjust call to get_bit_range.
9866 2012-03-14  Richard Guenther  <rguenther@suse.de>
9868         PR middle-end/52578
9869         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
9870         the outermost conversion is a sign-change only.
9871         (fold_binary_loc): Disregard widening and sign-changing
9872         conversions when we determine if two variables are equal
9873         for reassociation.
9874         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
9875         (T1)x if the outermost conversion is a sign-change only.
9877 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
9879         Revert:
9880         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
9882         * config/i386/predicates.md (constant_call_address_operand): Declare
9883         as special predicate.  Update all uses.
9885 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
9887         PR c/52577
9888         * c-parser.c (c_parser_postfix_expression)
9889         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
9891         * config/i386/smmintrin.h: Avoid /* within a comment.
9892         * config/i386/nmmintrin.h: Likewise.
9894 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9896         * config/i386/i386.md (xbegin): Remove constraint from expander.
9898 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9900         * config/i386/predicates.md (constant_call_address_operand): Declare
9901         as special predicate.  Update all uses.
9902         * config/i386/i386.md: Remove mode from constant_call_address_operand
9903         predicates.
9904         * config/i386/i386.c (ix86_output_call_insn): Call
9905         constant_call_address_operand with VOIDmode.
9907 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9909         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
9910         AND zero extended address correctly.
9912 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9914         * config/i386/predicates.md (tls_symbolic_operand): Declare as
9915         special predicate.
9916         (tls_modbase_operand): Ditto.
9917         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
9918         tls_modbase_operand predicates.
9920 2012-03-13  Martin Jambor  <mjambor@suse.cz>
9922         * expr.c (expand_assignment): Handle misaligned scalar writes to
9923         memory through top-level MEM_REFs by calling store_bit_field.
9925 2012-03-13  Richard Guenther  <rguenther@suse.de>
9927         PR middle-end/52134
9928         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
9929         if Y is a constant multiple of 1 << CST.
9931 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
9933         PR target/52488
9934         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
9935         offset (size) to a value the insns can deal with.
9936         (expand_epilogue): Ditto.
9938 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9940         * config/arm/neon.ml (ops): Fixup expected instructions for
9941         unsigned vector compares.
9943 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9945         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
9946         addresses only when %reg is not in word mode.
9948 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9950         * config/microblaze/microblaze.md: Fix typo.
9951         * tree-if-conv.c: Likewise.
9952         * tree-vect-patterns.c: Likewise.
9954 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9956         * config.gcc (extra_passes): Remove.
9957         * configure.ac (extra_passes): Don't substitute.
9958         * configure: Regenerate.
9959         * Makefile.in (EXTRA_PASSES): Remove.
9960         (GCC_PASSES): Remove $(EXTRA_PASSES).
9961         (MOSTLYCLEANFILES): Likewise.
9962         (native): Likewise.
9963         (install-common): Likewise.
9965 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9967         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9968         * config/i386/i386.c (ix86_decompose_address): Use
9969         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9970         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9971         thread pointer to a register.
9973 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
9975         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
9976         on tls_symbolic_operand.
9977         (tls_global_dynamic_64_<mode>): Likewise.
9979 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
9981         PR other/52545
9982         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
9983         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
9985 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
9987         PR target/52499
9988         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
9989         type from reg_class_t to enum reg_class.
9990         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
9992 2012-03-12  Andrew Pinski  <apinski@cavium.com>
9994         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
9995         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
9996         (value_replacement): Likewise.
9997         (empty_block_p): Check also if the PHIs for the block are empty.
9999 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
10001         PR target/52148
10002         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
10003         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
10004         r184615 from 2012-02-28.
10006 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
10008         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
10009         (ix86_gen_tls_local_dynamic_base_64): Likewise.
10010         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
10011         and ix86_gen_tls_local_dynamic_base_64.
10012         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
10013         ix86_gen_tls_local_dynamic_base_64.
10015         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
10016         (*tls_global_dynamic_64_<mode>): This.
10017         (tls_global_dynamic_64): Renamed to ...
10018         (tls_global_dynamic_64_<mode>): This.
10019         (*tls_local_dynamic_base_64): Renamed to ...
10020         (*tls_local_dynamic_base_64_<mode>): This.
10021         (tls_local_dynamic_base_64): Renamed to ...
10022         (tls_local_dynamic_base_64_<mode>): This.
10024 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
10026         * config/i386/i386.c (ix86_option_override_internal): Properly
10027         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
10028         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
10029         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
10030         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10032         * config/i386/sse.md (sse3_monitor64): Renamed to ...
10033         (sse3_monitor64_<mode>): This.
10035 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10037         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
10038         (ia64_function_arg_advance): Ditto.
10040 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10042         * config.gcc (mips*-*-openbsd*): Remove.
10043         * config/mips/openbsd.h: Remove.
10044         * config/mips/sdb.h: Remove.
10046         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
10047         * config/mips/mips.c (sdb_label_count): Remove.
10048         (mips_debugger_offset): Remove #if 0 code.
10049         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
10050         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
10052 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10054         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
10055         binutils reference.
10056         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
10057         Update binutils references.
10058         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
10059         Update binutils reference.
10060         Update Sun as/GNU ld caveat.
10061         Document binutils largefile requirement for LTO plugin.
10062         Remove reference to alternate libpthread.
10064 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10066         * config.gcc (alpha*-dec-osf5.1*): Remove.
10067         * config.host (alpha*-dec-osf*): Remove.
10068         * configure.ac (*-*-osf*): Remove.
10069         (alpha*-dec-osf*): Remove.
10070         * configure: Regenerate.
10072         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
10073         config/alpha/va_list.h, config/alpha/x-osf: Remove.
10075         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
10076         * config/alpha/alpha.c (struct machine_function): Update comment.
10077         (alpha_start_function): Remove Tru64 UNIX as handling for
10078         max_frame_size.
10079         * config/alpha/alpha.md ("exception_receiver"): Remove
10080         TARGET_LD_BUGGY_LDGP.
10081         ("*exception_receiver_2"): Likewise.
10082         * except.c (finish_eh_generation): Remove Tru64 reference.
10083         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
10084         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
10085         * target.def (handle_pragma_extern_prefix): Remove.
10087         * Makefile.in (mips-tfile.o-warn): Remove.
10088         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
10089         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
10090         * mips-tdump.c, mips-tfile.c: Remove.
10092         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
10093         extern_prefix.
10094         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
10095         (Specific, alpha*-dec-osf5.1): Note removal.
10096         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
10097         Remove.
10098         * doc/tm.texi: Regenerate.
10099         * doc/trouble.texi (Cross-Compiler Problems): Remove.
10101 2012-03-12  Richard Guenther  <rguenther@suse.de>
10103         * config/arm/arm.c (neon_dereference_pointer): Do not call
10104         covert during RTL expansion.
10106 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10108         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
10109         Options.  Mention -mpointer-size.
10111 2012-03-12  Richard Guenther  <rguenther@suse.de>
10113         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
10114         build_nonstandard_integer_type.
10116 2012-03-12  Richard Guenther  <rguenther@suse.de>
10118         * tree.c (signed_or_unsigned_type_for): Use
10119         build_nonstandard_integer_type.
10120         (signed_type_for): Adjust documentation.
10121         (unsigned_type_for): Likewise.
10122         * tree-pretty-print.c (dump_generic_node): Use standard names
10123         for non-standard integer types if available.
10125 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10127         * config/vms/vms.opt: Add vms-opts.h header.
10128         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
10129         target mask.
10130         (-mvms-return-codes): Document.
10131         (-mpointer-size): New option.
10132         (vms_pointer_size): Add enumeration.
10133         * config/vms/vms-opts.h: New file.
10134         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
10135         __INITIAL_POINTER_SIZE.
10136         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
10137         (C_COMMON_OVERRIDE_OPTIONS): Define.
10138         (DWARF2_ADDR_SIZE): Define.
10139         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
10140         * config/vms/vms-protos.h (vms_c_common_override_options):
10141         New prototype.
10142         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
10143         if -mno-pointer-size.
10144         (vms_c_common_override_options): New function.
10145         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10146         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10147         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
10148         and flag_vms_pointer_size.
10149         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
10150         * config.gcc (*-*-*vms*): Define xm_file.
10151         (alpha*-dec-*vms*): Do not define xm_file.
10152         (alpha64-dec-*vms*): Remove.
10153         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
10154         and tmake_file.
10156 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
10158         PR tree-optimization/51721
10159         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
10160         if (int) unsvar cmp CST.
10162 2012-03-12  Richard Guenther  <rguenther@suse.de>
10164         * tree-sra.c (create_access_replacement): Only rename the replacement
10165         if we can rewrite it into SSA form.  Properly mark register typed
10166         replacements that we cannot rewrite with TREE_ADDRESSABLE.
10167         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
10168         for aggregate or BLKmode results.
10170 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
10172         PR tree-optimization/52533
10173         * tree-vrp.c (register_edge_assert_for_2): Use double_int
10174         type for mask, only handle shifts by non-zero in-range
10175         shift count, for LE_EXPR and GT_EXPR if new_val is
10176         maximum, don't add the assertion.
10178 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
10180         * doc/invoke.texi: Document -mrtm option.
10181         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
10182         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
10183         (ix86_handle_option): Handle OPT_mrtm.
10184         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
10185         xtestintrin.h.
10186         (x86_64-*-*): Ditto.
10187         * i386-builtin-types.def (INT_FTYPE_VOID): New.
10188         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10189         __RTM__ if needed.
10190         (ix86_target_string): Define -mrtm option.
10191         (PTA_RTM): New.
10192         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
10193         Handle new option.
10194         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
10195         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
10196         IX86_BUILTIN_XTEST.
10197         (bdesc_special_args): Ditto.
10198         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
10199         (ix86_expand_special_args_builtin): Handle new built-in type.
10200         (ix86_expand_builtin): Handle XABORT instruction.
10201         * config/i386/i386.h (TARGET_RTM): New.
10202         * config/i386/i386.md (UNSPECV_XBEGIN): New.
10203         (UNSPECV_XEND): Ditto.
10204         (UNSPECV_XABORT): Ditto.
10205         (UNSPECV_XTEST): Ditto.
10206         (xbegin): Ditto.
10207         (xbegin_1): Ditto.
10208         (xend): Ditto.
10209         (xabort): Ditto
10210         (xtest): Ditto.
10211         (xtest_1): Ditto.
10212         * config/i386/i386.opt (mrtm): New.
10213         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
10214         * config/i386/rtmintrin.h: New header.
10215         * config/i386/xtestintrin.h: Ditto.
10217 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10219         * ginclude/stddef.h: Adjust previous patch.
10220         Use __VMS__ instead of VMS.
10222 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
10224         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
10225         Also convert sequences with CC setting arithmetic instruction.
10227 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
10229         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
10230         from C Language Options to Preprocessor Options.
10231         (C Dialect Options): Move -no-integrated-cpp documentation
10232         from here...
10233         (Preprocessor Options): ...to here.  Rewrite the description
10234         so it makes more sense, and remove discussion of merging front ends.
10236 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10238         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
10239         needed for loop.
10240         (ix86_expand_setmem): Likewise.
10242 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
10244         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
10245         convert_to_mode.
10247 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10249         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
10250         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
10252 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10254         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
10256 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10258         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
10259         TARGET_64BIT.
10261 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10262             Uros Bizjak  <ubizjak@gmail.com>
10264         * config/i386/predicates.md (call_insn_operand): Allow
10265         constant_call_address_operand in Pmode only.
10266         (sibcall_insn_operand): Ditto.
10267         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
10268         (*call_vzeroupper): Ditto.
10269         (*sibcall): Ditto.
10270         (*sibcall_vzeroupper): Ditto.
10271         (*call_value): Ditto.
10272         (*call_value_vzeroupper): Ditto.
10273         (*sibcall_value): Ditto.
10274         (*sibcall_value_vzeroupper): Ditto.
10275         (*indirect_jump): Ditto.
10276         (*tablejump_1): Ditto.
10277         (indirect_jump): Convert memory address to word mode for TARGET_X32.
10278         (tablejump): Ditto.
10279         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
10280         to word mode.
10282 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
10284         PR target/51244
10285         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
10286         Use movrt_negc instead of negc pattern for non-SH2A.
10287         (*movnegt): Remove.
10288         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
10290 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10292         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
10293         if Pmode != word_mode.
10294         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
10295         Pmode == SImode for TARGET_X32.
10297         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
10298         (tls_initial_exec_x32): Likewise.
10300 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
10302         PR rtl-optimization/52528
10303         * combine.c (can_combine_p): Add setting of subst_low_luid
10304         before call to expand_field_assignment().
10306 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
10308         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
10309         and related program names.
10311 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
10313         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
10315 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
10317         PR target/52530
10318         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
10319         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
10320         to set code to 'q'.
10321         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
10322         (*movdi_internal_rex64): Use %E operand modifier for lea.
10323         (*movsi_internal): Ditto.
10324         (*lea_1): Ditto.
10325         (*lea<mode>_2): Ditto.
10326         (*lea_{3,4,5,6}_zext): Ditto.
10327         (*tls_global_dynamic_32_gnu): Ditto.
10328         (*tls_global_dynamic_64): Ditto.
10329         (*tls_dynamic_gnu2_lea_32): Ditto.
10330         (*tls_dynamic_gnu2_lea_64): Ditto.
10331         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
10333 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
10335         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
10336         redefine to be NULL if the current bit-size is different from the
10337         configured bit-size.
10339         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
10340         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
10341         set the default tuning.  Add asserts to make sure the cpu and tune
10342         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
10343         test whether the index is set, instead of > 0.
10344         (rs6000_file_start): Do not reset the default cpu if the current
10345         bit-size is different from the configured bit-size.
10347 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10349         * config/vms/vms-crtlmap.map: Add comments.
10350         Add entries needed to build Ada RTS.
10352 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10354         * ginclude/stddef.h: Do not define __size_t on VMS.
10356 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10358         * c-tree.h (c_default_pointer_mode): New variable.
10359         * c-decl.c (c_default_pointer_mode): New variable.
10360         (c_build_pointer_type): New function.
10361         (grokdeclarator): Call c_build_pointer_type instead
10362         of build_pointer_type.
10364         * config/vms/vms-c.c: Include c-tree.h
10365         (saved_pointer_mode): New variable.
10366         (handle_pragma_pointer_size): New function.
10367         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
10368         (vms_c_register_pragma): Register __pointer_size and
10369         __required_pointer_size pragmas.
10371 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10373         * config/vms/vms-c.c (vms_construct_include_filename): New function.
10374         (vms_c_register_includes): Reference it.
10376 2012-03-09  Andrew Pinski  <apinski@cavium.com>
10378         PR middle-end/51988
10379         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
10380         print_generic_expr.
10381         (tree_ssa_phiopt_worker): Go through all the PHIs for
10382         value_replacement instead of just the singleton one.
10383         (value_replacement): Change return type to int.  Return 0 instead of
10384         false.
10385         Allow the middle basic block to contain more than just the defining
10386         statement.
10387         Handle non empty middle basic blocks.
10388         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
10390 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
10392         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
10393         array reference and component reference.
10394         (analyze_scalar_evolution_for_address_of): New.
10396 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
10398         PR target/49862
10399         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
10400         (hwloop_pattern_reg): Fix set but not used warning.
10401         (bfin_reorg_loops): Remove unused parameter.
10402         (bfin_reorg): Update use of bfin_reorg_loops.
10404 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10406         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
10407         with integer parameters in registers.
10408         (gen_push): Push register in word_mode instead of Pmode.
10409         (ix86_emit_save_regs): Likewise.
10410         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
10411         (gen_pop): Pop register in word_mode instead of Pmode.
10412         (ix86_emit_restore_regs_using_pop): Likewise.
10413         (ix86_expand_prologue): Replace Pmode with word_mode for push
10414         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
10415         restore RAX and R10 in word_mode.
10416         (ix86_emit_restore_regs_using_mov): Restore integer registers
10417         in word_mode.
10418         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
10419         word_mode.
10420         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
10421         (ix86_split_long_move): Likewise.
10423         * config/i386/i386.md (W): New.
10424         (*push<mode>2_prologue): Replace :P with :W.
10425         (*pop<mode>1): Likewise.
10426         (*pop<mode>1_epilogue): Likewise.
10427         (push/pop peephole2): Use word_mode scratch registers.
10429 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
10431         * config/i386/predicates.md (indirect_branch_operand): Simplify.
10433 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
10435         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
10436         for constants in [-63,63].
10438 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
10440         PR target/52530
10441         Revert:
10442         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10444         * config/i386/i386.c (ix86_print_operand_address): Only handle
10445         zero-extended DImode addresses.
10447 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10449         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
10450         * configure: Regenerate.
10452 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
10454         PR target/52496
10455         * config/avr/avr.c (avr_mem_clobber): New static function.
10456         (avr_expand_delay_cycles): Add memory clobber operand to
10457         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
10458         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
10459         (enable_interrupt, disable_interrupt): New expander.
10460         (nopv, sleep, wdr): New expanders.
10461         (delay_cycles_1): Add memory clobber.
10462         (delay_cycles_2): Add memory clobber.
10463         (delay_cycles_3): Add memory clobber.
10464         (delay_cycles_4): Add memory clobber.
10465         (cli_sei): New insn from former "enable_interrupt",
10466         "disable_interrupt" with memory clobber.
10467         (*wdt): New insn from former "wdt" with memory clobber.
10468         (*nopv): Similar, but for "nopv".
10469         (*sleep): Similar, but for "sleep".
10471 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
10472             Kaz Kojima  <kkojima@gcc.gnu.org>
10474         PR target/52503
10475         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
10476         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
10477         (SUBTARGET_OVERRIDE_OPTIONS): Define.
10479 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
10481         * config/i386/predicates.md (x86_64_zext_general_operand): New.
10482         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
10483         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
10485 2012-03-07  Walter Lee  <walt@tilera.com>
10487         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
10488         REG_CFA_* notes for the stack pointer.
10489         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
10490         EH_RETURN_STACKADJ_RTX.
10491         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
10492         generate REG_CFA_* notes for the stack pointer.
10493         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
10494         by EH_RETURN_STACKADJ_RTX.
10496 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10498         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
10499         when __AVR_3_BYTE_PC__ is defined.
10501 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
10503         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
10504         (ix86_print_operand): Handle '^'.
10505         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
10506         using P mode iterator.  Add %^ to asm template to conditionally emit
10507         addr32 prefix.
10508         (*rep_movdi_rex64): Ditto.
10509         (*strsetdi_rex_1): Ditto.
10510         (*rep_stosdi_rex64): Ditto.
10511         (*strmov{si,hi,qi}_1): Add %^ to asm template to
10512         conditionally emit addr32 prefix.
10513         (*rep_mov{si,qi}): Ditto.
10514         (*strset{si,hi,qi}): Ditto.
10515         (*rep_stos{si,qi}): Ditto.
10516         (*cmpstrnqi_nz_1): Ditto.
10517         (*cmpstrnqi_1): Ditto.
10518         (*strlenqi_1): Ditto.
10520 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
10522         * config/i386/i386.c (function_value_64): Return pointers in
10523         word_mode instead of Pmode.
10524         (ix86_promote_function_mode): Likewise.
10526 2012-03-07  Richard Guenther  <rguenther@suse.de>
10528         * coverage.c (get_gcov_type): Use type_for_mode.
10529         (get_gcov_unsigned_t): Likewise.
10530         * expr.c (store_constructor): Use type_for_mode.
10531         (try_casesi): Likewise.
10532         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
10533         (add_standard_iv_candidates): Use standard type trees.
10534         * dojump.c (do_jump): Remove dead code.
10536 2012-03-07  Richard Guenther  <rguenther@suse.de>
10538         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
10540 2012-03-07  Richard Guenther  <rguenther@suse.de>
10542         * convert.c (strip_float_extensions): Move ...
10543         * tree.c (strip_float_extensions): ... here.
10545 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10547         PR target/52484
10548         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
10550 2012-03-07  Richard Guenther  <rguenther@suse.de>
10552         * omp-low.c (extract_omp_for_data): Use signed_type_for.
10553         (expand_omp_for_generic): Likewise.
10554         (expand_omp_for_static_nochunk): Likewise.
10555         (expand_omp_for_static_chunk): Likewise.
10556         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
10557         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10558         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10559         Use unsigned_type_for.
10560         (vect_create_cond_for_align_checks): Use signed_type_for.
10562 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
10564         PR rtl-optimization/52203
10565         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
10566         all callers to pass NULL except ...
10567         (reset_sched_cycles_in_current_ebb): ... here, save the value
10568         in new variable 'empty'.  Increase issue_rate only for
10569         non-empty insns.
10571 2012-03-07  Ralf CorsĂ©pius  <ralf.corsepius@rtems.org>
10573         PR target/51417
10574         * Makefile.in: Let install-gcc-ar depend on installdirs,
10575         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
10576         Don't double canonicalize if cross-compiling.
10578 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10580         PR target/52506
10581         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
10582         to: RAMPZ, RAMPY, RAMPX, RAMPD.
10583         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
10585 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10587         PR target/52505
10588         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
10589         from RAM.
10590         * config/avr/avr.md (xload_8): Adjust insn length.
10592 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10594         PR target/52461
10595         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
10596         if RAMPZ affects reading from RAM.
10598 2012-03-07  Richard Guenther  <rguenther@suse.de>
10600         PR pch/52518
10601         PR pch/38987
10602         * doc/invoke.texi (Precompiled Headers): Remove sentence that
10603         suggests you can include PCHs from inside another header.
10605 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
10607         PR middle-end/52515
10608         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
10610 2012-03-07  Kai Tietz  <ktietz@redhat.com>
10612         * doc/invoke.texi (fwritable-relocated-rdata): Document
10613         new Cygwin/MinGW target option.
10614         * config/i386/winnt.c (i386_pe_unique_section): Ignore
10615         reloc if flag -fwritable-relocated-rdata is not set.
10616         (i386_pe_section_type_flags): Likewise.
10617         * config/i386/cygming.opt (fwritable-relocated-rdata):
10618         Add new flag variable flag_writable_rel_rdata.
10620 2012-03-07  Richard Guenther  <rguenther@suse.de>
10622         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
10623         precision against gimple constraints.
10625 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
10627         PR middle-end/52372
10628         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
10629         variables.
10630         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
10631         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
10632         variables.
10633         (init_emit_regs): Move associated initialization to...
10634         (init_emit_once): ...here.
10636 2012-03-06  Richard Henderson  <rth@redhat.com>
10638         * config/m68k/m68k.h (ISA_HAS_TAS): New.
10639         * config/m68k/sync.md (atomic_test_and_set): Use it.
10640         (atomic_test_and_set_1): Likewise.
10642 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10644         PR target/50310
10645         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
10646         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
10647         (vector_ltgt<mode>): Likewise.
10648         (vector_ordered<mode>): Likewise.
10649         (vector_unordered<mode>): Likewise.
10650         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
10652 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
10654         * trans-mem.c: New typedef for tm_region_p.
10655         Define vector types for tm_region_p.
10656         (tm_region_init): Replace region_worklist to a vector called
10657         bb_regions.
10659 2012-03-06  Richard Guenther  <rguenther@suse.de>
10661         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
10662         MEM_REF with constant pointer operand.
10664 2012-03-06  Richard Guenther  <rguenther@suse.de>
10666         PR middle-end/52493
10667         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
10669 2012-03-06  Tristan Gingold  <gingold@adacore.com>
10671         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
10672         (external_model_kind): Improve documentation.
10673         (vms_pragma_extern_model): Handle relaxed_redef.
10674         (vms_c_register_pragma): Allow expansion for nomember_alignment.
10676 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
10678         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
10679         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
10680         Some more notes on EIND usage and reorder EIND subsection.
10682 2012-03-06  Tristan Gingold  <gingold@adacore.com>
10684         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
10685         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
10687 2012-03-06  Tristan Gingold  <gingold@adacore.com>
10689         * config/vms/t-vmsnative (version): Define.
10690         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
10692 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
10694         PR rtl-optimization/52250
10695         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
10696         to put note list into.  Unconditionally call move_bb_info.
10697         (move_bb_info): Do not assert the blocks being in the same region,
10698         just drop the note list if they are not.
10700 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10702         PR target/51244
10703         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
10704         and use unified expansion logic.
10705         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
10706         closer to the existing movt insn.
10707         (negc): Rename insn to *negc.  Add new expander.
10708         (movnegt): Use xor pattern for T bit negation.  Reserve helper
10709         constant for negc pattern.
10710         (*movnegt): New insn and splitter.
10712 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
10714         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
10715         PLUS_EXPR.
10717 2012-03-05  Richard Henderson  <rth@redhat.com>
10719         * genemit.c (main): Include "target.h" in insn-emit.c.
10720         * Makefile.in (insn-emit.o): Depend on TARGET_H.
10721         * config/sh/sync.md (atomic_test_and_set): Reference
10722         targetm.atomic_test_and_set_trueval instead of
10723         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
10725 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
10727         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
10728         Make static.
10730 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10732         * langhooks.c (add_builtin_type): New function.
10733         * langhooks.h (add_builtin_type): Export it.
10734         * config/mep/mep.c (mep_init_builtins): Use it.
10735         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
10737 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
10739         PR debug/51902
10740         * tree.h (BLOCK_SAME_RANGE): Define.
10741         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
10742         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
10743         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
10744         isn't equal to supercontext fragment's fragment chain.
10745         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
10746         fragment origin.
10747         (blocks_nreverse_all): Likewise.
10748         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
10749         BLOCK_SUPERCONTEXT to supercontext fragment instead of
10750         supercontext fragment's fragment origin.
10751         * dwarf2out.c (add_high_low_attributes): If stmt has the same
10752         range as its parent (or parents thereof etc.), use the parent's
10753         DW_AT_ranges value instead of creating a new .debug_ranges range.
10755 2012-03-05  Richard Henderson  <rth@redhat.com>
10757         PR tree-opt/52242
10758         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
10759         * omp-low.c (expand_omp_atomic): Assume anything aligned to
10760         BIGGEST_ALIGNMENT is aligned.
10762 2012-03-05  Richard Henderson  <rth@redhat.com>
10764         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
10765         * config/sh/sh.c: ... here.
10767 2012-03-05  Richard Henderson  <rth@redhat.com>
10769         PR target/52481
10770         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
10771         instead of calling negqi2 directly.
10773 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
10775         PR middle-end/52463
10776         * trans-mem.c (tm_region_init): Use last_basic_block.
10778 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
10780         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
10781         * config/sh/sync.md (atomic_test_and_set): New expander.
10782         (tasb, atomic_test_and_set_soft): New insns.
10783         * config/sh/sh.opt (menable-tas): New option.
10784         * doc/invoke.texi (SH Options): Document it.
10786 2012-03-05  Richard Guenther  <rguenther@suse.de>
10788         * cfgloop.c (verify_loop_structure): Verify dominators before
10789         using them.
10790         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
10791         dominators from here.
10792         * graphite-scop-detection.c (create_sese_edges): Likewise.
10793         * loop-doloop.c (doloop_optimize_loops): Likewise.
10794         * loop-init.c (loop_optimizer_init): Likewise.
10795         * loop-unroll.c (unroll_and_peel_loops): Likewise.
10796         * loop-unswitch.c (unswitch_loops): Likewise.
10797         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10798         * tree-parloops.c (parallelize_loops): Likewise.  Verify
10799         only when checking is enabled.
10800         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
10802 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
10804         * genautomata.c (parse_automata_opt): New static function.
10805         (initiate_automaton_gen): Remove all option handling code.  Remove
10806         argc argument.  All callers changed.
10807         (main): Call init_rtx_reader_args_cb with the new function as argument.
10809 2012-03-05  Richard Guenther  <rguenther@suse.de>
10811         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
10812         * tree-if-conv.c (combine_blocks): Free post-dominator info
10813         after breaking it.
10814         * tree-parloops.c (create_parallel_loop): Free and re-compute
10815         dominator info after breaking it.
10817 2012-03-05  Richard Guenther  <rguenther@suse.de>
10819         PR middle-end/52353
10820         * optabs.h (trapv_unoptab_p): New function.
10821         (trapv_binoptab_p): Likewise.
10822         * optabs.c (expand_binop): Use emit_libcall_block_1 with
10823         a proper equiv_may_trap argument.
10824         (expand_unop): Likewise.
10825         (emit_libcall_block_1): Take extra argument whether the
10826         instruction may trap.  Renamed from ...
10827         (emit_libcall_block): ... this.  New wrapper.
10829 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
10831         PR tree-optimization/51721
10832         * tree-vrp.c (register_edge_assert_for_2): If comparing
10833         lhs of right shift by constant with an integer constant,
10834         add ASSERT_EXPRs for the rhs1 of the right shift.
10836         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
10838 2012-03-05  Richard Guenther  <rguenther@suse.de>
10840         * tree.c (integer_zerop): Handle VECTOR_CSTs.
10841         (integer_onep): Likewise.
10842         (integer_all_onesp): Likewise.
10844 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
10846         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
10848 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10850         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
10851         instead of TARGET_64BIT.
10853 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10855         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
10856         adjust_stack_insn.
10858 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10860         * config/i386/i386.c (ix86_print_operand_address): Only handle
10861         zero-extended DImode addresses.
10863 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
10865         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
10866         taken and cputaken as bool.
10868 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
10870         * config/i386/constraints.md (Ya): New internal constraint.
10871         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
10872         (*zero_extendsidi2_rex64): Add x,x alternative.
10873         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
10874         Remove flags reg clobber.  Adjust corresponding splits.
10875         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
10876         zero_extendqisi2 expanders using SWI12 mode iterator.
10877         (zero_extend<mode>si2_and): Macroize insn from
10878         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
10879         splitters.
10880         (*zero_extend<mode>si2):  Macroize insn from
10881         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
10882         (*zero_extend*2_movzbl_and): Remove insn patterns.
10883         (zero_extendqihi2_and): Merge corresponding splitter.
10884         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
10885         (*zero_extend*2_movzbl_and): Remove insn patterns.
10886         (*anddi_1): Split TYPE_IMOVX instructions.
10887         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
10888         (*andhi_1): Ditto.
10889         (and->zext splitter): Add splitter pattern.
10890         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
10892 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
10894         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
10895         x86-specific text.
10896         (Debugging Options): Likewise.
10897         (Optimize Options): Likewise.
10898         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
10899         with other architectures.  Use official processor names with correct
10900         spelling/capitalization.  Fix formatting and grammar issues.
10901         (i386 and x86-64 Windows Options): Similar cleanup here.
10903 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10905         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
10907 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10909         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
10910         DBX_REGISTER_NUMBER.
10912 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10914         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
10915         operand is CONST_INT.  Take COSTS_N_INSNS into account.
10916         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
10917         of shiftcosts.
10919 2012-03-02  Richard Henderson  <rth@redhat.com>
10921         * optabs.c (expand_atomic_test_and_set): Honor
10922         atomic_test_and_set_trueval even when atomic_test_and_set
10923         optab is not in use.
10925 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10927         PR target/48596
10928         PR target/48806
10929         * config/sh/sh.c (sh_register_move_cost): Increase cost between
10930         GENERAL_REGS and FP_REGS for SImode.
10932 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10934         PR target/49486
10935         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
10936         (absdi2): New expander.
10937         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
10939 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10941         * config/sh/sync.md (atomic_exchange<mode>): New expander.
10942         (atomic_exchange<mode>_soft): New insn.
10944 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10946         * config/sh/sync.md: Update copyright notice dates.
10947         (atomic_compare_and_swap<mode>): Use SImode for return value instead
10948         of QImode.
10949         (atomic_compare_and_swap<mode>_soft): Likewise.
10951 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10953         PR target/31640
10954         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
10955         * config/sh/sh.c: Update copyright notice dates.
10956         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
10957         alignment for TARGET_HARD_SH4.
10958         (sh_option_override): Reduce default function alignment.  Set
10959         loop alignment to 4 bytes when not optimizing for size.
10961 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
10963         PR middle-end/50335
10964         * doc/invoke.texi (floop-flatten): Remove.
10965         * toplev.c (process_options): Remove references to flag_loop_flatten.
10966         * tree-ssa-loop.c (gate_graphite_transform): Same.
10967         * common.opt (floop-flatten): Obsolete.
10968         * graphite-poly.c (apply_poly_transforms): Remove reference to
10969         flag_loop_flatten.
10970         * Makefile.in (graphite-flattening.o): Remove.
10971         * graphite-flattening.c: Remove.
10973 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
10975         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
10976         having mode compatible with the mode of previous compare.  Substitute
10977         compare mode of previous compare with the mode, compatible
10978         with eliminated and previous compare.
10980 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
10982         * config/rs6000/dfp.md (floatdidd2): New define_insn.
10984 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
10986         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
10987         compatible with CCGOCmode and CCGCmode.
10989 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
10991         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
10993 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10995         * config/arm/arm.c (arm_sat_operator_match): New function.
10996         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
10997         * config/arm/arm.md ("insn" attribute): Add "sat" value.
10998         ("SAT", "SATrev"): New code iterators.
10999         ("SATlo", "SAThi"): New code iterator attributes.
11000         ("*satsi_<SAT:code>"): New pattern.
11001         ("*satsi_<SAT:code>_shift"): Likewise.
11002         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
11003         and "shift" attributes.
11004         ("arm_usatsihi"): Add "insn" attribute.
11005         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
11006         by powers of two.  Do not allow shift by 32.
11008 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
11010         PR target/46716
11011         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
11012         to pass the argument in the register of "natural" mode.
11014 2012-03-02  Richard Guenther  <rguenther@suse.de>
11016         PR tree-optimization/52406
11017         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
11018         (struct indices): Add unconstrained_base member.
11019         (struct dr_alias): Remove unused vops member.
11020         (DR_UNCONSTRAINED_BASE): New define.
11021         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
11022         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
11023         be an artificial access that covers the whole indexed object,
11024         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
11025         plain decl base-objects to their MEM_REF variant.
11026         (dr_may_alias_p): When the base-object of either data reference
11027         has unknown size use only points-to information.
11028         (compute_affine_dependence): Make dumps easier to read and
11029         more verbose.
11030         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
11031         DR_REF when looking for packed references.
11032         (vect_supportable_dr_alignment): Likewise.
11034 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
11036         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
11037         Improve conditions for peepholes of loads followed by commutative
11038         operators.
11039         * config/arm/ldmstm.md: Regenerated.
11041 2012-03-02  Richard Guenther  <rguenther@suse.de>
11043         * BASE-VER: Set to 4.8.0.
11045 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
11047         * config.gcc (obsolete): Add all ARM targets using the FPA.
11048         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
11049         * doc/install.texi: Avoid references to obsolete ARM ports.
11051 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11053         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
11055 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
11056             Joern Rennecke  <joern.rennecke@embecosm.com>
11058         * doc/extend.texi: Expand and update information on interrupt
11059         attribute for Epiphany.
11061 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
11063         * config/sh/sh-protos.h: Update copyright notice dates.
11064         * config/sh/sh.h: Likewise.
11065         * config/sh/sh.md: Likewise.
11066         * config/sh/constraints.md: Likewise.
11067         * config/sh/predicates.md: Likewise.
11069 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
11071         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
11072         * config/sh/sh.c (tertiary_reload_operand): Likewise.
11074 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
11076         * config/sh/constraints.md: Fix comment typo.
11078 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11080         PR target/52408
11081         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
11082         unsigned HOST_WIDE_INT.
11083         (zvdep_imm64): Likewise.
11084         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
11085         (vdepi_and): Likewise.
11086         Likewise for unamed 64-bit patterns.
11087         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
11089 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
11091         PR debug/52001
11092         PR rtl-optimization/52417
11093         * cselib.c (cselib_any_perm_equivs): New variable.
11094         (cselib_reset_table): Check that it's not set when not
11095         preserving constants.
11096         (cselib_add_permanent_equiv): Set it.
11097         (cselib_have_permanent_equivalences): New.
11098         (cselib_init, cselib_finish): Reset it.
11099         * cselib.h (cselib_have_permanent_equivalences): Declare.
11100         * alias.c (get_addr): Restore earlier behavior when there
11101         aren't permanent equivalences.
11103 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
11105         * config/mn10300/mn10300-modes.def: Fix copyright notice.
11106         * config/v850/v850-modes.def: Fix copyright notice.
11108 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
11110         * doc/extend.texi (AVR Built-in Functions): Document
11111         __builtin_avr_flash_segment.
11113         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
11114         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
11115         (*split.flash_segment): New insn-and-split.
11116         * config/avr/avr.c (avr_init_builtins): Add local variables:
11117         const_memx_void_node, const_memx_ptr_type_node,
11118         char_ftype_const_memx_ptr.
11120 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
11122         PR tree-optimization/52445
11123         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
11124         add ssa_name_ver, offset and size fields and change store field
11125         to bool.
11126         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
11127         (add_or_mark_expr): Likewise.  Only consider previous stores
11128         with the same size and offset.
11129         (nt_init_block): Only look at gimple_assign_single_p stmts,
11130         doesn't look at rhs2.
11132 2012-03-01  Richard Guenther  <rguenther@suse.de>
11134         PR middle-end/52443
11135         * tree-cfg.c (verify_gimple_assign_unary): Allow any
11136         conversions from integral types to pointer types.
11138 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
11140         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
11141         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
11142         unintentionally removed in r184616.
11144 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11146         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
11147         3DNow from bdver1.
11149 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
11150             Uros Bizjak  <ubizjak@gmail.com>
11152         PR target/52437
11153         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
11154         alternatives, add "e" constraint to the new last alternative
11155         and ! to last 3 alternatives.
11157 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11159         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
11160         DW_AT_artificial attributes at the end of the processing.
11161         (gen_array_type_die): Likewise.
11162         (gen_enumeration_type_die): Likewise.
11163         (gen_struct_or_union_type_die): Likewise.
11164         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
11165         the parent type.
11167 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
11169         PR middle-end/52419
11170         * expr.c (expand_assignment): If doing misaligned store that doesn't
11171         cover all mode bits, perform a RMW cycle.
11173         PR tree-optimization/52429
11174         * tree-parloops.c (separate_decls_in_region_debug): Return early
11175         if var is LABEL_DECL.
11177 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11179         PR tree-optimization/52424
11180         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
11181         calling dom_thread_across_edge.
11183 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11185         * config/avr/avr.c: Move definition of TARGET macros to end of file.
11187 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11189         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
11190         * config/avr/avr.c (avr_output_bld): Remove unused function.
11191         (avr_out_sbxx_branch): Use "%T" to print bit position.
11193 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11195         * config/avr/avr.md: Untabify.
11197 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11199         * config/avr/avr.md (eqne): New code iterator.
11200         (*dec-and-branchsi): Use it in text peephole's condition.
11201         (*dec-and-branchhi): Ditto.
11202         (*dec-and-branchqi): Ditto.
11204 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11206         PR target/49939
11207         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
11208         the device does not have the skip-bug.
11210 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
11212         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
11213         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
11214         -mpretend-cmove): New.
11216 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
11218         PR bootstrap/52397
11219         * df.h (struct df_d): Adjust comment that hard_regs_live_count
11220         doesn't count DEBUG_INSN refs.
11221         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
11222         for DEBUG_INSN refs.
11224 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11226         Partially revert:
11228         2012-02-20  Richard Guenther  <rguenther@suse.de>
11229         PR tree-optimization/52298
11230         * tree-vect-stmts.c (vectorizable_load): Properly use
11231         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
11233 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
11235         PR middle-end/51752
11236         * gimple.h (gimple_in_transaction): New.
11237         (gimple_set_in_transaction): New.
11238         (struct gimple_statement_base): Add in_transaction field.
11239         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
11240         transaction loads.
11241         (tree_ssa_lim_initialize): Compute transaction bits.
11242         * tree.h (compute_transaction_bits): Protoize.
11243         * trans-mem.c (tm_region_init): Use the heap to store BB
11244         auxilliary data.
11245         (compute_transaction_bits): New.
11247 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11249         * gcc.c (display_help): Document --help=common and sort entries
11250         alphabetically.
11252 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11254         * doc/install.texi: Document check-$LANG specific shortcuts
11256 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11258         PR target/51534
11259         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
11260         and vcgtu.
11261         * config/arm/arm_neon.h: Regenerate.
11262         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
11263         (neon_vcgeu): New insn.
11264         (neon_vcgtu): Likewise.
11265         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
11266         (ops): Unsigned comparison intrinsics call a different builtin.
11268 2012-02-28  Richard Guenther  <rguenther@suse.de>
11270         PR target/52407
11271         * config/i386/i386.c (ix86_expand_vector_set): Fix element
11272         ordering for the VEC_CONCAT for two element vectors for
11273         V2SFmode, V2SImode and V2DImode.
11275 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
11277         PR target/49448
11278         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
11279         detecting big-endian triplets.
11281 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
11283         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
11284         mode if there is no type information available.
11286 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
11288         PR tree-optimization/53207
11289         * doc/invoke.texi: Document as experimental and relying on graphite.
11291 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11293         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
11294         of initializer to changes from r184614.
11296 2012-02-28  Richard Guenther  <rguenther@suse.de>
11298         PR tree-optimization/52395
11299         * tree-sra.c (build_ref_for_offset): Also look at the base
11300         TYPE_ALIGN when figuring out the alignment of the replacement.
11302 2012-02-28  Richard Guenther  <rguenther@suse.de>
11304         PR tree-optimization/52402
11305         * ipa-prop.c (ipa_modify_call_arguments): Properly use
11306         mis-aligned types when creating the accesses at the call site.
11308 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11310         * config/avr/builtins.def: New file.
11311         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
11312         * config/avr/avr.c (enum avr_builtin_id): Use it.
11313         (avr_init_builtins): Use it. And use avr_bdesc.
11314         (bdesc_1arg): Remove.
11315         (bdesc_2arg): Remove.
11316         (bdesc_3arg): Remove.
11317         (struct avr_builtin_description): Add field n_args.
11318         (avr_bdesc): New static variable using builtins.def.
11319         (avr_expand_builtin): Use it.
11320         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
11321         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
11322         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
11324 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11326         PR target/52148
11327         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
11328         match only one single hard register with respective hard reg rtx.
11329         (movmemx_<mode>): Ditto.
11330         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
11331         insn anatomy of movmem[x]_<mode>.
11332         (avr_out_movmem): Same for printing assembler and operand usage.
11334 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11336         PR target/49868
11337         PR target/52261
11338         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
11339         address spaces located outside of device flash.
11341         * config/avr/avr.h (base_arch_s): Remove field n_segments.
11342         (mcu_type_s): Add field n_flash.
11343         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
11344         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
11345         (AVR_MCU): Add N_FLASH argument.
11346         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
11347         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
11348         macro __FLASH<n> if that address space makes sense for the device.
11349         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
11350         outside of target flash.
11351         (avr_asm_named_section): Ditto.
11352         (avr_asm_select_section): Ditto.
11353         (avr_addr_space_convert): Ditto.
11354         (avr_emit_movmemhi): Ditto.
11355         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
11356         address space is outside of device flash.
11357         (avr_insert_attributes): Ditto.
11358         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
11359         avr_current_arch->n_segments.
11361 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
11363         PR target/52352
11364         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
11365         (*movabs<mode>_2): Likewise.
11367 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
11369         PR target/52375
11370         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
11371         s_register_operand in the test instead of REG_P.  Don't call
11372         gen_reg_rtx if it won't be used.
11374         PR tree-optimization/52376
11375         * ipa-split.c (split_function): Ignore CLOBBER stmts.
11377 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
11379         * ifcvt.c (noce_get_condition): Check condition variable is not
11380         small_register_classes_for_mode_p before accepting.
11382 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
11384         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
11386 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11388         Revert:
11389         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11390         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
11391         tuning parameters.
11392         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
11394 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
11396         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
11398 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
11400         * config/sh/predicates.md: Remove blank lines.
11401         * config/sh/sh.c: Fix typos in comments.
11402         * config/sh/constraints.md: Likewise.
11403         * config/sh/sh.md: Remove blank lines.
11404         Fix typos in comments.  Use ;; as comment characters.
11406 2012-02-26  Walter Lee  <walt@tilera.com>
11408         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
11409         (replace_mov_pcrel_step2): Ditto.
11411 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
11413         PR debug/52001
11414         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
11415         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
11416         and locs that reference values newer than the non-canonical value
11417         at hand.  Return the canonical value as a worst case.
11418         (memrefs_conflict_p): Walk canonical value's locs.
11420         PR debug/52001
11421         * cselib.c (preserve_only_constants): Rename to...
11422         (preserve_constants_and_equivs): ... this.  Split out...
11423         (invariant_or_equiv_p): ... this.  Preserve plus expressions
11424         of other preserved expressions too.
11425         (cselib_reset_table): Adjust.
11426         * var-tracking.c (reverse_op): Use canonical value to build
11427         reverse operation.
11429 2012-02-23  Kai Tietz  <ktietz@redhat.com>
11431         * config/i386/i386.c (ix86_delegitimize_address): Handle
11432         UNSPEC_PCREL plus displacement.
11434 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
11436         PR target/52261
11437         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
11438         to test for unusedness in st X addressing.
11440 2012-02-24  Richard Guenther  <rguenther@suse.de>
11442         PR middle-end/52361
11443         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
11444         (is_gimple_reg_type): Move inline ...
11445         * gimple.h (is_gimple_reg_type): ... here.
11447 2012-02-24  Richard Guenther  <rguenther@suse.de>
11449         PR middle-end/52361
11450         * passes.c (execute_function_todo): When verifying SSA form
11451         verify gimple form first.
11452         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
11454 2012-02-24  Richard Guenther  <rguenther@suse.de>
11456         PR middle-end/52355
11457         * fold-const.c (fold_addr_of_array_ref_difference): New function.
11458         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
11460 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11462         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
11464 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11466         * tree-phinodes.c (make_phi_node): Mark static.
11467         * tree-flow.h (make_phi_node): Remove extern decl.
11468         * doc/gimple.texi (make_phi_node): Remove documentation.
11470 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11472         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
11473         * tree-ssa-sccvn.c (print_scc): Ditto.
11475 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11477         * doc/passes.texi (Full redundancy elimination): Fix typo.
11479 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11481         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
11483 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11485         PR bootstrap/52287
11486         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
11488 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
11490         PR c/52290
11491         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
11493 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
11495         * config/avr/avr.md (code_stdname): Add ior, xor.
11496         (xior): New code iterator.
11497         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
11498         (*<code_stdname><mode>qi.byte1-3): Ditto.
11500 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
11502         PR tree-optimization/52019
11503         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
11504         CLOBBER stmts.
11506 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11508         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
11509         HAVE_INITFINI_ARRAY to work around namespace pollution in
11510         certain versions of newlib system headers.
11511         * config.in: Regenerate.
11512         * configure: Regenerate.
11513         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
11514         instead of HAVE_INITFINI_ARRAY.
11516 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
11518         PR target/52330
11519         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
11520         is not offsettable memory reference.
11522 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
11524         PR target/18145
11525         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
11526         setting avr_need_clear_bss_p for __gnu_lto* symbols.
11528 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
11530         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
11531         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
11533 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11535         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
11536         library on Solaris 8 even without TLS support.
11537         * configure: Regenerate.
11539 2012-02-22  Richard Guenther  <rguenther@suse.de>
11541         PR middle-end/52329
11542         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
11543         for GIMPLE_DEBUG stmts.
11545 2012-02-22  Martin Jambor  <mjambor@suse.cz>
11547         PR middle-end/51782
11548         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
11549         according to the base object.
11551 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
11553         PR rtl-optimization/50063
11554         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
11555         and 2 (8-bit SP) in operand 2.
11556         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
11557         setup to use movhi_sp_r instead of vanilla move to write SP.
11558         Adjust REG_CFA notes to superseed unspec.
11559         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
11560         of vanilla move.
11561         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
11562         known to be off) only with TARGET_NO_INTERRUPTS. Never use
11563         irq_state 1 (IRQ known to be on) here.
11565 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
11567         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
11568         WORDS_BIG_ENDIAN.
11569         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
11570         assign_hard_reg): Likewise.
11572 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
11574         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
11576 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
11578         * config/avr/avr.md
11579         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
11580         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
11582 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
11584         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
11585         prototype from here to...
11586         * config/avr/avr.h: ...here.
11588 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
11590         PR target/52294
11591         * thumb2.md (thumb2_shiftsi3_short): Split register and
11592         immediate shifts.  For register shifts tie operands 0 and 1.
11593         (peephole2 for above): Check that register-controlled shifts
11594         have suitably tied operands.
11596 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
11598         PR target/52137
11599         * config/i386/bdver1.md (bdver1_call, bdver1_push,
11600         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
11601         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
11602         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
11603         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
11604         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
11605         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
11606         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
11607         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
11608         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
11609         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
11610         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
11611         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
11612         bdver1_ssevector_avx256_unaligned_load,
11613         bdver1_ssevector_sse128_unaligned_load,
11614         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
11615         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
11616         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
11617         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
11618         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
11619         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
11620         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
11621         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
11622         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
11623         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
11624         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
11625         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
11626         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
11627         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
11628         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
11629         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
11630         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
11631         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
11632         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
11633         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
11634         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
11635         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
11636         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
11637         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
11638         bdver1_ssediv_double_load, bdver1_ssediv_double,
11639         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
11640         Add "bdver2" attribute.
11642 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11644         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
11645         default if possible and not specified otherwise.
11647 2012-02-21  Richard Guenther  <rguenther@suse.de>
11649         PR middle-end/52314
11650         * gimplify.c (create_tmp_from_val): Use the main variant type
11651         for the type of the temporary we create.
11653 2012-02-21  Richard Guenther  <rguenther@suse.de>
11655         PR tree-optimization/52324
11656         * gimplify.c (gimplify_expr): When re-gimplifying expressions
11657         do not gimplify a MEM_REF address operand if it is already
11658         in suitable form.
11660 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11662         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
11663         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
11665 2012-02-21  Richard Guenther  <rguenther@suse.de>
11667         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
11668         nested_in_vect_loop.
11670 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
11672         PR tree-optimization/52318
11673         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
11674         vdef also to non-pure/const call stmts in the sequence.
11676 2012-02-21  Tristan Gingold  <gingold@adacore.com>
11678         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
11680 2012-02-20  David S. Miller  <davem@davemloft.net>
11682         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
11683         don't use the "rd %pc" instruction on v9 for PIC register loads.
11685 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
11687         PR middle-end/52141
11688         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
11689         in a transaction safe function.
11691 2012-02-20  Kai Tietz  <ktietz@redhat.com>
11693         PR target/52238
11694         * stor-layout.c (place_field): Handle desired_align for
11695         ms-bitfields, too.
11697 2012-02-20  Richard Guenther  <rguenther@suse.de>
11699         PR tree-optimization/52298
11700         * tree-vect-stmts.c (vectorizable_store): Properly use
11701         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
11702         outer loops.
11703         (vectorizable_load): Likewise.
11704         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11705         Access DR_STEP after ensuring it is not NULL.
11707 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
11709         PR tree-optimization/52286
11710         * fold-const.c (fold_binary_loc): For (X & C1) | C2
11711         optimization use double_int_to_tree instead of build_int_cst_wide,
11712         rewrite to use double_int vars.
11714 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11716         PR target/50166
11717         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
11718         Define _start.
11719         Remove -e 0 from $gcc_cv_ld invocation.
11720         Only use __GLIBC_PREREQ if defined.
11721         Enable on Solaris since Solaris 8 patch.
11722         (gcc_SUN_LD_VERSION): New macro.
11723         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
11724         gcc_SUN_LD_VERSION for version number format.
11725         * configure: Regenerate.
11726         * varasm.c (get_elf_initfini_array_priority_section): Set
11727         SECTION_NOTYPE for non-default priority.
11728         Use get_section instead of get_unnamed_section to emit
11729         .init_array/.fini_array with default priority.
11731 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
11733         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
11734         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
11735         (mips_start_unique_function, mips_output_mips16_rdhwr)
11736         (mips_code_end): New functions.
11737         (TARGET_ASM_CODE_END): Define.
11739 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
11741         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
11742         to stubs with non-sibling calls.
11744 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
11746         * doc/invoke.texi (-fira-* options): Copy-edit.
11747         (ira-* parameters): Copy-edit.
11749 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
11751         * doc/invoke.texi: Minor copy-edits to bring into conformance with
11752         GCC coding conventions.
11754 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
11756         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
11757         when used as adjectives.
11759 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
11761         * doc/invoke.texi: Clean up "that"/"which" confusion.
11763 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
11765         * system.h: Poison SMALL_REGISTER_CLASSES
11766         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
11767         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
11769 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
11771         PR tree-optimization/52285
11772         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
11773         when deciding if a call is a tail call or tail recursion.
11775 2012-02-16  Kai Tietz  <ktietz@redhat.com>
11777         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
11778         interger-constant displacement for UNSPEC_PCREL.
11780 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
11782         PR rtl-optimization/52208
11783         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
11784         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
11786         PR tree-optimization/52255
11787         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
11788         loop->header has virtual PHI, but exit_e->dest doesn't, add
11789         virtual PHI to exit_e->dest and adjust all uses after the loop.
11791         PR debug/52260
11792         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
11793         children with clone_tree_hash, not after it.
11795 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
11797         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
11798         extended identifiers.
11800 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
11802         PR middle-end/51929
11803         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
11804         a same_body_alias, also test whether e->callee isn't a former
11805         or current clone of the decl this is a same body alias of.
11807         PR translation/52264
11808         * cgraphunit.c (verify_cgraph_node): Fix a typo.
11810 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
11812         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
11814 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11816         PR target/52199
11817         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
11818         force_reg instead of copy_to_reg for better optimization.  Force
11819         non-register or memory operands into a register.
11821 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
11823         * extend.texi: Reserve upper bits of memory model for future use.
11825 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
11826             Anatoly Sokolov <aesok@post.ru>
11827             Eric Weddington <eric.weddington@atmel.com>
11829         PR target/52261
11830         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
11831         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
11832         Rewrite initializers for .macro.
11833         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
11834         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
11835         atxmega32d4, atxmega32x1.
11836         avrxmega4: atxmega64a3, atxmega64d3.
11837         avrxmega5: atxmega64a1, atxmega64a1u.
11838         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
11839         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
11840         avrxmega7: atxmega128a1, atxmega128a1u.
11841         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
11842         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
11843         (struct base_arch_s): Rename reserved to xmega_p.
11844         Rename reserved2 to have_rampd.
11845         (AVR_XMEGA): New define.
11846         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
11847         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
11848         * config/avr/predicates.md (io_address_operand): Take into
11849         account SFR offset.
11850         (low_io_address_operand): Ditto.
11851         (high_io_address_operand): Ditto.
11852         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
11853         (enabled, movhi_sp_r): Use them.
11854         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
11855         cpp_define_formatted to built-in define __AVR_ARCH__.
11856         (__AVR_XMEGA__): New built-in define.
11857         (__AVR_HAVE_RAMPD__): New built-in define.
11858         (__AVR_HAVE_RAMPX__): New built-in define.
11859         (__AVR_HAVE_RAMPY__): New built-in define.
11860         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
11862         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
11863         (avr_option_override): Initialize them.
11864         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
11865         (avr_init_expanders): Initialize them. No more block several calls.
11866         (emit_push_sfr): New static function.
11867         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
11868         Handle AVR_XMEGA.
11869         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
11870         (avr_print_operand): Print addreeses as symbols for
11871         RAMPX, RAMPY, RAMPD, CCP.
11872         (output_movhi): Handle AVR_XMEGA when writing to SP.
11873         (avr_out_movhi_mr_r_xmega): New static function.
11874         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
11875         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
11876         __RAMPD__,  __CCP__ as needed.
11878         * config/avr/multilib.h: Regenerate.
11879         * config/avr/t-multilib: Regenerate.
11880         * config/avr/avr-tables.opt: Regenerate.
11882 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
11884         PR tree-optimization/50561
11885         * graphite-flattening.c (lst_project_loop): Do not
11886         remove old scattering dimensions after flattening.
11887         (lst_do_flatten): Likewise.
11889 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
11891         * doc/extend.texi (AVR Built-in Functions): Remove doc for
11892         __builtin_avr_map8, __builtin_avr_map16.
11893         Document __builtin_avr_insert_bits.
11895         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
11896         (insert_bits): New insn.
11897         (adjust_len.map_bits): Rename to insert_bits.
11898         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
11899         * avr-protos.h (avr_out_map_bits): Remove.
11900         (avr_out_insert_bits, avr_has_nibble_0xf): New.
11901         * config/avr/constraints.md (Cxf,C0f): New.
11902         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
11903         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
11904         New built-in define __BUILTIN_AVR_INSERT_BITS.
11905         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
11906         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
11907         (avr_move_bits): Rewrite.
11908         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
11909         functions.
11910         (avr_map_op_t): New typedef.
11911         (avr_map_op): New static variable.
11912         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
11913         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
11914         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
11915         (bdesc_3arg, avr_expand_triop_builtin): New.
11916         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
11917         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
11918         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
11919         (avr_map_equal_p, avr_map_sig_p): Remove.
11920         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
11921         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11922         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
11923         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11924         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
11925         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11927 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
11929         * config/c6x/c6x.md (reserve_cycles): New attribute.
11930         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
11931         don't reserve functional units after the branch occurs.
11933 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
11935         PR middle-end/52142
11936         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
11937         functions into non-tm_pure functions.
11939 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11941         PR lto/52178
11942         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
11943         (iterative_hash_canonical_type): Likewise.
11944         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
11945         the dead edges.
11947 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
11949         * haifa-sched.c (prune_ready_list): Ensure that if there is a
11950         sched-group insn, it either remains alone or the entire list is pruned.
11952 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
11954         * doc/install.texi (Prerequisites): Fix grammar.
11955         (Configuration): Likewise.
11957 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
11959         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
11960         MPC as part of GCC before describing configuring with --with-gmp etc.
11961         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
11962         sources are present.
11964 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
11966         PR debug/51950
11967         * dwarf2out.c (clone_tree_hash): New function.
11968         (copy_decls_walk): Use it instead of clone_tree.
11970 2012-02-14  Richard Guenther  <rguenther@suse.de>
11972         PR tree-optimization/52244
11973         PR tree-optimization/51528
11974         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
11975         replacements for integral types.
11977 2012-02-14  Walter Lee  <walt@tilera.com>
11979         * config.gcc: Handle tilegx and tilepro.
11980         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
11981         tilegx and tilepro.
11982         Add HAVE_AS_TLS check for tilegx and tilepro.
11983         * configure: Regenerate.
11984         * doc/contrib.texi: Add Mat Hostetter and self.
11985         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
11986         Document instruction intrinsics and network accessing intrinsics.
11987         (TILEPro Built-in Functions): New node.  Document instruction
11988         intrinsics and network accessing intrinsics.
11989         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
11990         (Specific, tilepro-*-linux*): Likewise.
11991         * doc/invoke.texi (TILE-Gx Options): New section.
11992         (TILEPro Options): New section.
11993         * doc/md.texi (TILE-Gx): New section.
11994         (TILEPro): New section.
11995         * common/config/tilegx/tilegx-common.c: New file.
11996         * common/config/tilepro/tilepro-common.c: New file.
11997         * config/tilegx/constraints.md: New file.
11998         * config/tilegx/linux.h: New file.
11999         * config/tilegx/mul-tables.c: New file.
12000         * config/tilegx/predicates.md: New file.
12001         * config/tilegx/sync.md: New file.
12002         * config/tilegx/t-tilegx: New file.
12003         * config/tilegx/tilegx-builtins.h: New file.
12004         * config/tilegx/tilegx-c.c: New file.
12005         * config/tilegx/tilegx-generic.md: New file.
12006         * config/tilegx/tilegx-modes.def: New file.
12007         * config/tilegx/tilegx-multiply.h: New file.
12008         * config/tilegx/tilegx-protos.h: New file.
12009         * config/tilegx/tilegx.c: New file.
12010         * config/tilegx/tilegx.h: New file.
12011         * config/tilegx/tilegx.md: New file.
12012         * config/tilegx/tilegx.opt: New file.
12013         * config/tilepro/constraints.md: New file.
12014         * config/tilepro/gen-mul-tables.cc: New file.
12015         * config/tilepro/linux.h: New file.
12016         * config/tilepro/mul-tables.c: New file.
12017         * config/tilepro/predicates.md: New file.
12018         * config/tilepro/t-tilepro: New file.
12019         * config/tilepro/tilepro-builtins.h: New file.
12020         * config/tilepro/tilepro-c.c: New file.
12021         * config/tilepro/tilepro-generic.md: New file.
12022         * config/tilepro/tilepro-modes.def: New file.
12023         * config/tilepro/tilepro-multiply.h: New file.
12024         * config/tilepro/tilepro-protos.h: New file.
12025         * config/tilepro/tilepro.c: New file.
12026         * config/tilepro/tilepro.h: New file.
12027         * config/tilepro/tilepro.md: New file.
12028         * config/tilepro/tilepro.opt: New file.
12030 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
12032         PR tree-optimization/52210
12033         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
12034         vect_model_simple_cost with two entry vect_def_type array instead
12035         of an address of dt.
12037 2012-02-14  Richard Guenther  <rguenther@suse.de>
12039         PR lto/52178
12040         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12041         Do not stream DECL_QUALIFIER.
12042         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12043         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
12044         (find_decls_types_r): Do not walk DECL_QUALIFIER.
12046 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
12048         PR c/52181
12049         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
12050         newdecl.
12052 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12054         PR bootstrap/52172
12055         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
12056         * cselib.c (cselib_subst_to_values_from_insn): New function.
12057         * sched-deps.c (add_insn_mem_dependence,
12058         sched_analyze_1, sched_analyze_2): Use it.
12060 2012-02-13  Jan Hubicka  <jh@suse.cz>
12062         PR middle-end/52214
12063         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
12065 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12067         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
12068         (GTM_SELF_SPECS): Define if not already defined.
12069         (driver_self_specs): Add GTM_SELF_SPECS.
12070         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
12071         (GTM_SELF_SPECS): Define.
12072         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
12073         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
12075 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12077         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
12078         away if seen.
12080         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
12082         PR middle-end/52230
12083         * omp-low.c (expand_omp_for): If a static schedule without chunk size
12084         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
12086 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
12088         PR c/52190
12089         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
12091 2012-02-13  Richard Guenther  <rguenther@suse.de>
12093         PR translation/52211
12094         * passes.c (enable_disable_pass): Fix typo.
12096 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12098         PR middle-end/52209
12099         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
12100         XOR for reduce_bit_field if type is unsigned.
12102 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
12104         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
12105         disallow changes from SFmode to mode with different size in FP regs.
12107 2012-02-12  Robert Millan  <rmh@gnu.org>
12108             Gerald Pfeifer <gerald@pfeifer.com>
12110         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
12111         Tweak comment.
12113 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
12115         PR rtl-optimization/52175
12116         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
12117         to frame-related instructions.
12119 2012-02-10  Jason Merrill  <jason@redhat.com>
12121         PR c++/51910
12122         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
12123         (demangle_new_symbols): Fill it.
12124         (scan_linker_output): Walk it.
12125         (start_tweaking): Split out from scan_linker_output.
12126         (maybe_tweak): Update sym->chosen.
12127         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
12129 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
12131         PR debug/52132
12132         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
12134 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
12136         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
12137         having the same mode as previous compare.
12139 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12141         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
12142         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
12143         (nonlocal_goto_internal): Likewise.
12144         (nonlocal_goto): Emit a use and an indirect jump directly.
12146 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
12148         PR c/52190
12149         * doc/extend.texi : Update comments for __atomic_compare_exchange and
12150         __atomic_{is,always}_lock_free.
12152 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
12154         PR target/52146
12155         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
12156         negative constant address for TARGET_X32.
12158 2012-02-10  Richard Henderson  <rth@redhat.com>
12160         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
12161         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
12162         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
12164 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12165             Ira Rosen  <irar@il.ibm.com>
12167         PR tree-optimization/50031
12168         * targhooks.c (default_builtin_vectorization_cost): Handle
12169         vec_promote_demote.
12170         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
12171         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
12172         all types of reduction and pattern statements.
12173         (vect_estimate_min_profitable_iters): Likewise.
12174         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
12175         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
12176         for explicit realigns.
12177         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
12178         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
12179         vec_promote_demote.
12180         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12181         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
12182         vec_perm for VSX and handle vec_promote_demote.
12184 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
12186         PR middle-end/52177
12187         * builtins.c (fold_builtin_atomic_always_lock_free,
12188         expand_builtin_atomic_always_lock_free,
12189         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
12190         Return and/or test boolean_true_node/boolean_false_node instead of
12191         integer_one_node/integer_zero_node.
12193 2012-02-10  Jan Hubicka  <jh@suse.cz>
12195         PR middle-end/48600
12196         * predict.c (predict_paths_for_bb): Prevent looping.
12197         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
12199 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
12201         * config/arm/arm.c (output_move_double): In one case properly
12202         count number of instructions that will be emitted.
12204 2012-02-10  Richard Guenther  <rguenther@suse.de>
12206         PR translation/52193
12207         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
12209 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
12211         PR middle-end/52140
12212         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
12214 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
12216         PR debug/52165
12217         * var-tracking.c (emit_note_insn_var_location): If
12218         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
12219         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
12220         non-NOTE_DURING_CALL_P insn.
12222 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
12224         PR middle-end/51867
12225         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
12227 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
12229         PR driver/48524
12230         * gcc.c (switch_matches) Support switches with separated form,
12231         -D and -U.
12233 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
12235         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
12236         (SP_ADDR): Ditto.
12237         (RAMPZ_ADDR): Ditto.
12238         * config/avr/avr.c (avr_addr_t): New typedef.
12239         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
12240         (avr_init_expanders): Initialize it.
12241         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
12242         SREG_ADDR.
12243         (expand_epilogue): Ditto.
12244         (avr_print_operand): Ditto.
12245         (avr_file_start): Ditto.
12246         (avr_emit_movmemhi): Ditto.
12248 2012-02-08  Richard Guenther  <rguenther@suse.de>
12250         PR tree-optimization/46886
12251         * tree-flow.h (do_while_loop_p): Declare.
12252         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
12253         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
12255 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
12257         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
12258         always succeed for integers larger than a native word.
12260 2012-02-08  Richard Guenther  <rguenther@suse.de>
12262         PR rtl-optimization/52170
12263         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
12264         properly handle integer vector modes.
12266 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
12268         PR gcov-profile/52150
12269         * coverage.c: Include target.h.
12270         (build_var): Call targetm.strip_name_encoding on the assembler name.
12271         Change one _ into . or $ if the target allows it.
12272         * Makefile.in (coverage.o): Depend on $(TARGET_H).
12274         PR rtl-optimization/52139
12275         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
12276         is a BARRIER after emit_insn_after_noloc, move BB_END
12277         to the last non-BARRIER insn before it.
12279 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
12281         PR middle-end/24306
12282         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
12283         (mips_gimplify_va_arg_expr): Call it instead of
12284         std_gimplify_va_arg_expr.
12286 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12288         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
12289         message for -mno-pointers-to-nested-function.
12291 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
12293         PR middle-end/51994
12294         * expr.c (get_inner_reference): If there is an offset, add a negative
12295         bit position to it (if any).
12297 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
12299         PR rtl-optimization/52060
12300         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
12301         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
12302         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
12303         and/or i0src_copy2 when needed.
12305 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
12307         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
12308         or LTOPLUGINSONAME if have_c.
12310         * config/freebsd-spec.h: Add comment about what macros can be defined
12311         in this header.
12312         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
12313         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
12314         here instead.
12316 2012-02-07  Richard Guenther  <rguenther@suse.de>
12318         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
12319         newline in -alias dumps.
12321 2012-02-07  Kai Tietz  <ktietz@redhat.com>
12322             Dave Korn  <dave.korn.cygwin@gmail.com>
12324         PR target/40068
12325         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
12326         Take care that typinfo gets dllexport-attribute.
12328 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
12330         PR middle-end/52074
12331         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
12332         if modifier < EXPAND_SUM call force_operand on the result.
12334 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
12336         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
12337         adding __forwarder_dst__ prefix if a forwarder_section attribute is
12338         present.
12339         (epiphany_function_type): Replace types for specific interrupts with
12340         EPIPHANY_FUNCTION_INTERRUPT.
12341         (EPIPHANY_INTERRUPT_P): Update.
12342         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
12343         New static function.
12344         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
12345         <disinterrupt>: Affects type identity.
12346         (epiphany_handle_interrupt_attribute): Handle variable number of
12347         arguments.
12348         (epiphany_compute_function_type): Update for new
12349         epiphany_function_type definition.
12350         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
12351         handlers with a longcall forwarder.
12352         (epiphany_start_function): Handle multiple interrupt arguments and/or
12353         forwarder_section attribute.
12355         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
12356         libgloss.
12358 2012-02-07  Alan Modra  <amodra@gmail.com>
12360         PR target/52107
12361         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
12362         subregs of TFmode.
12364 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12366         PR tree-optimization/50969
12367         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
12368         use vec_perm rather than vector_stmt.
12369         (vect_model_load_cost): Likewise.
12370         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
12371         vec_perm to be the same as other vector statements.
12372         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
12373         cost of vec_perm for TARGET_VSX.
12375 2012-02-06  Richard Guenther  <rguenther@suse.de>
12377         PR tree-optimization/52115
12378         * tree-sra.c (access_has_replacements_p): New function.
12379         (sra_modify_assign): Use it to decide whether a use is uninitialized.
12381 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
12383         PR middle-end/52047
12384         * trans-mem.c (expand_call_tm): Add an assertion.
12385         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
12386         functions.
12388 2012-02-06  Richard Guenther  <rguenther@suse.de>
12390         PR tree-optimization/50955
12391         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
12392         raise cost of expressions that replace an address with an
12393         expression based on a different pointer.
12395 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
12397         PR target/52129
12398         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
12399         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
12401 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
12403         PR c++/48680
12404         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
12405         -Weffc++ and specify guidelines come from second edition.
12407 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
12409         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
12410         (sibcall_value_multiple_internal, call_split, call_internal_direct)
12411         (call_direct_split, call_value_split, call_value_internal_direct)
12412         (call_value_direct_split, call_value_multiple_split): Use jal and
12413         jal_macro attributes.
12415 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
12417         * reload1.c (reload_regs_reach_end_p): Replace with...
12418         (reload_reg_rtx_reaches_end_p): ...this function.
12419         (new_spill_reg_store): Update commentary.
12420         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
12421         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
12422         before setting new_spill_reg_store.
12423         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
12424         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
12425         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
12426         for non-spill reload registers.
12428 2012-02-05  Ira Rosen  <irar@il.ibm.com>
12430         PR tree-optimization/52091
12431         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
12432         (vect_is_simple_use_1): Likewise.
12433         * tree-vect-loop.c (vectorizable_reduction): Update calls
12434         to vect_is_simple_use_1 and vect_is_simple_use.
12435         (vectorizable_live_operation): Likewise.
12436         * tree-vect-patterns.c (widened_name_p,
12437         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
12438         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
12439         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12440         vectorizable_shift,vectorizable_operation, vectorizable_store,
12441         vectorizable_load): Likewise.
12442         (vect_is_simple_cond): Add an argument, pass it to
12443         vect_is_simple_use_1.
12444         (vectorizable_condition): Update calls to vect_is_simple_cond,
12445         vect_is_simple_use.
12446         (vect_is_simple_use): Add an argument, the statement in which
12447         OPERAND is used.  Check that if OPERAND's def stmt is a double
12448         reduction phi node, the use is a phi node too.
12449         (vect_is_simple_use_1): Add an argument, pass it to
12450         vect_is_simple_use.
12451         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
12452         to vect_is_simple_use.
12454 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
12456         PR rtl-optimization/52095
12457         * modulo-sched.c (dump_insn_locator): New function.
12458         (loop_canon_p, sms_schedule): Use it.
12460         PR rtl-optimization/52113
12461         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
12462         even for decomposable shift/zext insns.
12464 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
12465             Zdenek Dvorak  <ook@ucw.cz>
12467         PR rtl-optimization/52092
12468         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
12469         on get_iv_value result.
12471 2012-02-02  Andrew Pinski  <apinski@cavium.com>
12473         PR middle-end/47982
12474         PR middle-end/43967
12475         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
12477 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
12479         PR middle-end/48071
12480         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
12482 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
12484         PR rtl-optimization/49800
12485         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
12486         (sched_finish): Call regstat_free_n_sets_and_refs.
12488 2012-02-02  Jia Liu  <proljc@gmail.com>
12490         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
12491         than operand 2.
12493 2012-02-02  Jan Hubicka  <jh@suse.cz>
12494             Tom de Vries  <tom@codesourcery.com>
12496         PR middle-end/51998
12497         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
12498         * varpool.c (varpool_analyze_pending_decls): Likewise.
12500 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
12501             Jayant R Sonar <jayant.sonar@kpitcummins.com>
12503         * config.gcc: Add cr16-* support.
12505         * doc/extend.texi: Document cr16 extensions.
12506         * doc/install.texi: Document cr16 install.
12507         * doc/invoke.texi: Document cr16 options.
12508         * doc/md.texi: Document cr16 constraints.
12510         * common/config/cr16/cr16-common.c: New file.
12511         * config/cr16/cr16.c: New file.
12512         * config/cr16/cr16.h: New file.
12513         * config/cr16/cr16.md: New file.
12514         * config/cr16/cr16.opt: New file.
12515         * config/cr16/cr16-protos.h: New file.
12516         * config/cr16/predicates.md: New file.
12517         * config/cr16/constraints.md: New file.
12518         * config/cr16/t-cr16: New file.
12520 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
12522         PR target/52086
12523         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
12524         that operands[2] is either immediate, or q_regs_operand.
12526         PR tree-optimization/52073
12527         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
12528         a pattern stmt for pattern uses, ignore uses outside of the loop.
12530 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
12532         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
12533         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
12534         (OUT_AS1, OUT_AS2): Remove.
12536 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
12538         PR rtl-optimization/51374
12539         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
12540         to cross other volatile_refs_p insns.
12542 2012-02-01  Richard Guenther  <rguenther@suse.de>
12544         * doc/invoke.texi (fno-inline): Clarify documentation.
12545         (finline-small-functions): Likewise.
12546         (finline-functions): Likewise.
12547         * common.opt (finline): Adjust comment and documentation.
12548         (finline-small-functions): Clarify documentation.
12549         (finline-functions): Likewise.
12550         (finline-functions-called-once): Likewise.
12552 2012-02-01  Tristan Gingold  <gingold@adacore.com>
12554         * c-typeck.c (composite_type): Keep mode for pointers.
12556 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
12558         * function.h (regno_reg_rtx): Adjust comment.
12559         * reginfo.c (init_reg_modes_target): Only use the previous mode
12560         if it fits within one register.  Remove MIPS comment.
12562 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
12564         PR bootstrap/52058
12565         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
12567 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12569         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
12570         to srak instruction.
12572 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
12574         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
12576 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
12578         PR bootstrap/52041
12579         PR bootstrap/52039
12580         PR target/51974
12581         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
12583 2012-01-31  Richard Guenther  <rguenther@suse.de>
12585         PR tree-optimization/51528
12586         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
12587         assigns.
12589 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
12591         PR bootstrap/52041
12592         PR bootstrap/52039
12593         PR target/51974
12594         * ree.c (add_removable_extension): Change def_map argument
12595         to unsigned *, store in def_map 1 + offset into *insn_list vector
12596         instead of pointers into the vector.
12597         (find_removable_extensions): Adjust caller.
12599 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
12601         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
12602         Transform all "* quoted-c-code" to { c-code }.
12603         Remove redundant test for "optimize" in combine patterns.
12604         Move (include "avr-dimode.md") to end of file.
12606 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
12608         PR target/51835
12609         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12610         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
12612 2012-01-30  Richard Guenther  <rguenther@suse.de>
12614         PR tree-optimization/52028
12615         * tree-loop-distribution.c (ldist_gen): Properly update
12616         virtual SSA form.
12618 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
12620         PR debug/52027
12621         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
12622         set_cur_line_info_table if not emitting debug info.
12624         PR tree-optimization/52046
12625         * tree-vect-patterns.c (check_bool_pattern): Give up if
12626         a comparison could throw.
12628         PR debug/52048
12629         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
12631 2012-01-30  Richard Guenther  <rguenther@suse.de>
12633         PR tree-optimization/52045
12634         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
12635         SSA form if cfgcleanup did anything.
12637 2012-01-30  Richard Guenther  <rguenther@suse.de>
12639         PR tree-optimization/52045
12640         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
12641         before computing final todo.
12643 2012-01-30  Richard Guenther  <rguenther@suse.de>
12645         PR tree-optimization/51528
12646         * tree-sra.c (sra_modify_assign): Re-factor in preparation
12647         for PR51528 fix.
12649 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
12651         * df-problems.c (df_kill_notes): Check that the use refers
12652         to the note under examination.
12654 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
12656         PR target/51920
12657         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
12658         parameter and use short-lived pseudos.
12659         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
12660         (sparc_expand_vector_init): Const-ify local variables and adjust
12661         calls to above functions.
12663 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
12665         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
12667 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
12669         * doc/invoke.texi: Make usage of "compile time" and
12670         "run time"/"runtime" consistent throughout the file.
12672 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
12674         * config/alpha/alpha.c (alpha_option_override): Default to
12675         full IEEE compliance mode for Go language.
12677 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
12679         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
12680         (LINK_SSP_SPEC): Define.
12682 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12684         PR target/51871
12685         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
12686         stubs.
12688 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
12690         * doc/invoke.texi: Correct hyphenation of "floating point",
12691         "double precision", and related terminology throughout the file.
12693 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
12695         PR target/52006
12696         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
12697         arm_general_register_operand predicate for operand 2 instead of
12698         register_operand.
12700 2012-01-27  Ian Lance Taylor  <iant@google.com>
12702         PR go/47656
12703         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
12704         * builtins.c (expand_builtin_init_trampoline): Add onstack
12705         parameter.  Change caller.
12706         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
12707         * tree.c (build_common_builtin_nodes): Declare
12708         __builtin_init_heap_trampoline.
12710 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
12712         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
12713         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
12714         * config/avr/avr.c: Ditto.
12715         (avr_regnames): Remove because unused.
12716         * config/avr/avr.md (*cpse.ne): New peephole.
12717         (*cpse.eq): New peephole from former cpse peepholes.
12719 2012-01-27  Michael Eager  <eager@eagercon.com>
12721         * config/microblaze.c (microblaze_emit_compare): Correct
12722         test after pcmp instruction.
12724 2012-01-27  Richard Guenther  <rguenther@suse.de>
12726         PR tree-optimization/52020
12727         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
12729 2012-01-27  Richard Guenther  <rguenther@suse.de>
12731         * ipa-pure-const.c (check_stmt): Clobbers do not make a
12732         function non-const/pure.
12734 2012-01-27  Richard Guenther  <rguenther@suse.de>
12736         PR tree-optimization/50444
12737         * tree-sra.c (build_ref_for_offset): Properly adjust the
12738         MEM_REF type for unaligned accesses.
12740 2012-01-27  Richard Guenther  <rguenther@suse.de>
12742         PR tree-optimization/50444
12743         * expr.c (mem_ref_refers_to_non_mem_p): New function.
12744         (expand_assignment): Use it.  Properly handle misaligned
12745         bases when expanding stores to component references.
12746         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
12747         refactor that case.
12749 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
12751         PR middle-end/51389
12752         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
12753         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
12754         * tree-data-ref.c (find_data_references_in_loop): Make static.
12755         (compute_all_dependences): Change return type to bool.  Bail out
12756         for too many datarefs in a loop.  Move the hunk resetting the data
12757         dependences vector from ...
12758         (compute_data_dependences_for_loop): ... here.  Account for
12759         compute_all_dependences returning false.
12760         (compute_data_dependences_for_bb): Likewise.
12761         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
12762         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
12764 2012-01-27  Richard Guenther  <rguenther@suse.de>
12766         PR middle-end/51959
12767         * expr.c (store_field): Use the alias-set of the scratch memory
12768         for storing to it.
12770 2012-01-27  Tom de Vries  <tom@codesourcery.com>
12772         PR tree-optimization/51990
12773         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12774         WITH_SIZE_EXPR.
12775         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
12777 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
12779         PR debug/52001
12780         * var-tracking.c (reverse_op): Don't add any reverse operation
12781         if V already has any constant locations.
12783 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
12785         * doc/invoke.texi: Correct usage of "command line" (noun)
12786         vs "command-line" (adjective) throughout.
12788 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
12790         * doc/invoke.texi (Language Independent Options): Move
12791         -Wcoverage-mismatch blurb from here....
12792         (Warning Options): ...to here.
12794 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
12796         * config/rs6000/rs6000.c (rs6000_option_override_internal):
12797         Set rs6000_always_hint to false for 476.
12799 2012-01-27  Matthias Klose  <doko@ubuntu.com>
12801         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
12802           system root.
12803         * incpath.c (add_standard_paths): Likewise.
12805 2012-01-27  Richard Henderson  <rth@redhat.com>
12807         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12808         * config/m68k/sync.md (atomic_test_and_set): Rename from
12809         sync_test_and_setqi and adjust the operands.
12810         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
12811         and unconditionally enable.
12813 2012-01-27  Richard Henderson  <rth@redhat.com>
12815         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12816         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
12817         (ldstub): Rename from ldstubqi.
12818         (ldstub<I24MODE>): Remove.
12820 2012-01-27  Richard Henderson  <rth@redhat.com>
12822         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12823         * c-cppbuiltin.c (cpp_atomic_builtins): Define
12824         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
12825         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
12826         * doc/tm.texi: Rebuild.
12828 2012-01-27  Richard Henderson  <rth@redhat.com>
12830         * optabs.c (gen_atomic_test_and_set): Remove default.
12831         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
12833 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
12835         PR rtl-optimization/51978
12836         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
12837         (combine_reaching_defs): Likewise.
12838         (struct re_info): Remove.
12839         (add_removable_extension): Remove x and data arguments,
12840         add insn, insn_list and def_map.  Use the arguments directly
12841         instead of using struct re_info.
12842         (find_removable_extensions): Don't call add_removable_extension
12843         through note_stores, instead just call it with single_set
12844         result if non-NULL.
12845         (find_and_remove_re): Pass curr_cand->expr instead of
12846         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
12848 2012-01-26  Michael Matz  <matz@suse.de>
12850         PR tree-optimization/46590
12851         * cfgexpand.c: Revert last change (r183305).
12852         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
12853         regs.
12854         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
12855         checking for emptiness.
12857 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
12859         PR middle-end/51895
12860         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
12861         non-addressable non-BLKmode base correctly.
12863 2012-01-26  Michael Matz  <matz@suse.de>
12865         PR tree-optimization/48794
12866         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
12867         regions referenced from RESX/EH_DISPATCH.
12869 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12871         * config/s390/s390.h: Make BRANCH_COST an option.
12872         * config/s390/s390.opt: New option -mbranch-cost.
12874 2012-01-26  Richard Henderson  <rth@redhat.com>
12876         Revert 2012-01-24 change:
12877         * trans-mem.c (requires_barrier): Do not instrument thread local
12878         variables and emit save/restore for them.
12880 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
12882         PR middle-end/51986
12883         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
12884         for pat == 0.
12886 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
12888         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
12889         ASM_OPERANDS.
12891 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
12893         PR target/49868
12894         Rename __pgm to __flash.
12895         Rename __pgm1 to __flash1.
12896         Rename __pgm2 to __flash2.
12897         Rename __pgm3 to __flash3.
12898         Rename __pgm4 to __flash4.
12899         Rename __pgm5 to __flash5.
12900         Rename __pgmx to __memx.
12901         * doc/extend.texi (AVR Named Address Spaces)
12902         Rename address space names as indicated above.
12903         * config/avr/avr.c (avr_addrspace): Ditto.
12905         * config/avr/avr-protos.h
12906         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
12907         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
12908         * config/avr/predicates.md: Ditto.
12909         * config/avr/avr.c Ditto, and
12910         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
12911         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
12913         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
12914         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
12915         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
12916         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
12917         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
12918         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
12919         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
12920         * config/avr/avr.c: Ditto.
12921         * config/avr/avr.md: Ditto.
12923 2012-01-25  Jason Merrill  <jason@redhat.com>
12925         PR c++/51992
12926         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
12928 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
12930         PR tree-optimization/51987
12931         * tree-data-ref.c (get_references_in_stmt): Handle references in
12932         non-volatile GIMPLE_ASM.
12934 2012-01-25  Richard Guenther  <rguenther@suse.de>
12936         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
12937         bases are dereferenced.
12939 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
12941         PR rtl-optimization/48374
12942         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
12944 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
12946         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
12947         compute_data_dependences_for_loop returns false.
12948         * tree-parloops.c (loop_parallel_p): Likewise.
12950 2012-01-25  Richard Guenther  <rguenther@suse.de>
12952         * tree.h (get_pointer_alignment_1): Declare.
12953         * builtins.c (get_pointer_alignment_1): New function.
12954         (get_pointer_alignment): Use it.
12956 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12958         PR rtl-optimization/48308
12959         * combine.c (enum undo_kind): Add UNDO_LINKS.
12960         (struct undo): Add member l to other_contents and where.
12961         (do_SUBST_LINK): New.
12962         (SUBST_LINK): New.
12963         (try_combine): Handle LOG_LINKS for the dummy i1 case.
12964         (undo_all): Handle UNDO_LINKS.
12966 2012-01-25  Richard Henderson  <rth@redhat.com>
12968         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
12969         mem inputs.
12971 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12973         * optabs.c (gen_atomic_test_and_set): Use each argument.
12975 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12977         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
12978         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
12979         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
12980         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
12981         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
12982         TARGET_PAIRED_SINGLE_FLOAT.
12984 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12986         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
12987         (in_struct, return_val): Remove MEM documentation.
12988         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
12989         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
12990         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
12991         and MEM_SCALAR.
12992         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12993         * cfgexpand.c (add_alias_set_conflicts): Likewise.
12994         * expr.c (store_field): Likewise.
12995         * function.c (assign_stack_temp_for_type): Likewise.
12996         * ifcvt.c (noce_try_cmove_arith): Likewise.
12997         * reload1.c (reload): Likewise.
12998         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
12999         (alpha_set_memflags): Likewise.
13000         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
13002 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
13004         * rtl.h (true_dependence, canon_true_dependence): Remove varies
13005         parameter.
13006         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
13007         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
13008         (true_dependence_1, true_dependence, canon_true_dependence): Remove
13009         varies parameter.
13010         * cselib.c (cselib_rtx_varies_p): Delete.
13011         (cselib_invalidate_mem): Update call to canon_true_dependence.
13012         * dse.c (record_store, check_mem_read_rtx): Likewise.
13013         (scan_reads_nospill): Likewise.
13014         * cse.c (check_dependence): Likewise.
13015         (cse_rtx_varies_p): Delete.
13016         * expr.c (safe_from_p): Update call to true_dependence.
13017         * ira.c (validate_equiv_mem_from_store): Likewise.
13018         (memref_referenced_p): Likewise.
13019         * postreload-gcse.c (find_mem_conflicts): Likewise.
13020         * sched-deps.c (sched_analyze_2): Likewise.
13021         * store-motion.c (load_kills_store): Likewise.
13022         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
13023         * gcse.c (mems_conflict_for_gcse_p): Likewise.
13024         (compute_transp): Update call to canon_true_dependence.
13026 2012-01-25  Richard Henderson  <rth@redhat.com>
13028         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
13029         (maybe_emit_atomic_test_and_set): New.
13030         (expand_sync_lock_test_and_set): Use it.
13031         (expand_atomic_test_and_set): Likewise.
13032         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
13033         the implementation; clarify implementation defined details.
13034         * doc/md.texi (atomic_test_and_set): Document.
13036 2012-01-25  Richard Henderson  <rth@redhat.com>
13038         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
13040 2012-01-25  Richard Henderson  <rth@redhat.com>
13042         PR target/51968
13043         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
13044         to effect no-op split.
13046 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
13048         PR lto/51698
13049         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
13050         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
13051         (BT_FN_VOID_PTR_INT_SIZE): New.
13052         (BT_FN_UINT_UINT_VAR): Remove.
13053         (BT_FN_UINT32_UINT32_VAR): New.
13054         (BT_FN_DOUBLE_VPTR): Remove.
13055         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
13057         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
13058         (_ITM_changeTransactionMode): Same.
13059         (_ITM_memmoveRtWt): Change return type to void.
13060         (_ITM_memcpyRtWt): Same.
13061         (_ITM_memsetW): Same.
13062         (_ITM_RaRD): Change types to double.
13063         (_ITM_RD): Same.
13064         (_ITM_RaWD): Same.
13065         (_ITM_RfWD): Same.
13067         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
13069 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
13070             Patrick Marlier  <patrick.marlier@gmail.com>
13072         * trans-mem.c (requires_barrier): Do not instrument thread local
13073         variables and emit save/restore for them.
13075 2012-01-24  Jason Merrill  <jason@redhat.com>
13077         PR c++/51812
13078         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
13079         output static aliases.
13081 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
13083         PR driver/47249
13084         * common.opt (-pie, -shared, pie, shared): Change from Common to
13085         Driver.
13086         * gcc.c (display_help): Display help for -pie and -shared.
13088 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
13090         PR target/49868
13091         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
13092         Remove note on size/offset limitation.
13093         (AVR Variable Attributes): Add example how to read data located
13094         with progmem.  Refer to named address spaces.
13095         * doc/invoke.texi (AVR Options): Fix typo.
13097 2012-01-24  Richard Guenther  <rguenther@suse.de>
13099         Forward-port to trunk
13100         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
13102         PR middle-end/45678
13103         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
13104         op0 isn't sufficiently aligned and there is movmisalignM
13105         insn for mode, use it to load op0 into a temporary register.
13107 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
13109         PR target/51957
13110         * target.def (const_not_ok_for_debug_p): New hook.
13111         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
13112         documentation.
13113         * doc/tm.texi: Regenerated.
13114         * dwarf2out.c (const_ok_for_output_1): If
13115         targetm.const_not_ok_for_debug_p returns true, fail.
13116         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
13117         function.
13118         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
13120 2012-01-23  Kai Tietz  <ktietz@redhat.com>
13122         PR target/51900
13123         * config/i386/predicates.md (symbolic_operand): Allow
13124         UNSPEC_PCREL as PIC expression for lea.
13125         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
13126         * config/i386/i386.c (ix86_delegitimize_address): Handle
13127         UNSPEC_PCREL for none-MEM, too.
13129 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
13131         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
13132         (ipa_tm_create_version_alias): Same.
13134 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
13136         PR libitm/51830
13137         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
13138         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
13140 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
13141             Patrick Marlier  <patrick.marlier@gmail.com>
13142             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
13144         PR lto/51916
13145         * lto-wrapper.c (run_gcc): Pass the LTO section name to
13146         simple_object_start_read.
13148 2012-01-23  Richard Guenther  <rguenther@suse.de>
13151         PR tree-optimization/51895
13152         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
13153         parameter decomposition into BLKmode components.
13155 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
13157         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
13158         fake variables for restrict-qualified pointers whose pointed-to type
13159         contains a placeholder.
13161 2012-01-23  Richard Guenther  <rguenther@suse.de>
13163         PR tree-optimization/51949
13164         * ipa-split.c (execute_split_functions): Do not split malloc functions.
13166 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
13168         PR rtl-optimization/51933
13169         * ree.c (transform_ifelse): Return true right away if dstreg is
13170         already wider or equal to cand->mode.
13171         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
13172         (make_defs_and_copies_lists): Remove defs_list and copies_list
13173         arguments, add state argument, just truncate state->work_list
13174         instead of always allocating and freeing the vector.  Assert that
13175         get_defs succeeds instead of returning 2.  Changed return type to bool.
13176         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
13177         have ext_src_mode, see if it has been modified already with the
13178         right kind of extension and has been extended before from the
13179         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
13180         just return true.  Remember the original mode in state->modified array.
13181         (combine_reaching_defs): Add state argument.  Don't allocate and
13182         free here def_list, copied_list and vec vectors, instead just
13183         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
13184         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
13185         Add state variable, clear vectors in it, initialize state.modified
13186         if needed.  Free all the vectors at the end and state.modified too.
13187         Don't skip a candidate if the extension expression has been modified.
13189 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
13191         PR target/47096
13192         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
13193          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
13194         (extra_options) interix.opt -> i386/interix.opt"
13195         (extra_objs):Add winnt-stubs.o
13196         * configure.ac: Add interix to target_os .comm on PE check.
13197         * configure: Regenerate.
13198         * config/interix3.h: Delete and move bits to..
13199         * config/interix.h: Delete and move bits to..
13200         * config/i386/i386-interix3.h: Delete and move bits to..
13201         * config/i386/i386-interix.h: ..here.
13202         (TARGET_CPU_DEFAULT): Remove redefinition.
13203         (TARGET_ASM_CONSTRUCTOR): Undefine.
13204         (SUBTARGET_SWITCHES): Define for ms-bitfields.
13205         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
13206         (PTRDIFF_TYPE): Define.
13207         (LONG_DOUBLE_TYPE_SIZE): Define.
13208         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
13209         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13210         (TARGET_SECTION_TYPE_FLAGS): Define.
13211         (ASM_DECLARE_FUNCTION_NAME): Define.
13212         (ASM_OUTPUT_EXTERNAL): Define.
13213         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
13214         (ASM_OUTPUT_ALIGNED_BSS): Define.
13215         (PCC_BITFIELD_TYPE_MATTERS): Define.
13216         (USE_CONST_SECTION): Define.
13217         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
13218         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13219         (SUPPORTS_ONE_ONLY): Remove.
13220         (I386_PE_STRIP_ENCODING): Define.
13221         * config/interix.opt: Delete and move bits to..
13222         * config/i386/interix.opt: ..here. New.
13223         (mpe-aligned-commons): Add.
13224         * config/i386/t-interix: Add copyright header.
13225         (winnt-stubs.o): Add rule.
13227 2012-01-22  Jason Merrill  <jason@redhat.com>
13229         PR c++/51832
13230         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
13231         for extra name aliases.
13233 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13235         PR rtl-optimization/51924
13236         * ree.c (combine_set_extension): Improve debugging message.
13237         (combine_reaching_defs): Likewise.
13238         (get_defs): Rename confusingly named variable.
13239         (find_and_remove_re): Skip a candidate if the extension expression has
13240         been modified.
13242 2012-01-21  Robert Millan  <rmh@gnu.org>
13243             Gerald Pfeifer  <gerald@pfeifer.com>
13245         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
13246         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
13248 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
13250         PR tree-optimization/51914
13251         * tree-vect-stmts.c (vectorizable_conversion): For
13252         cvt_type && modifier == WIDEN, put temporary with cvt_type
13253         at the beginning of vec_dsts and set vec_dest to temporary
13254         with vectype_out.
13256 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13258         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
13260 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
13262         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
13263         * config/rs6000/rs6000.c: Likewise.
13265 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
13267         PR target/51915
13268         * config/arm/arm.c (arm_count_output_move_double_insns): Call
13269         output_move_double on a copy of operands array.
13271 2012-01-20  Cary Coutant  <ccoutant@google.com>
13272             Dodji Seketeli  <dodji@redhat.com>
13274         PR debug/45682
13275         * dwarf2out.c (copy_declaration_context): Return ref to parent
13276         of declaration DIE, if necessary.
13277         (remove_child_or_replace_with_skeleton): Add new parameter; update
13278         caller.  Place skeleton DIE under parent DIE of original declaration.
13279         Move call to copy_declaration_context to here ...
13280         (break_out_comdat_types): ... from here.
13282 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13284         PR rtl-optimization/51856
13285         * reload.c (find_reloads_subreg_address): Set the address_reloaded
13286         flag to reloaded.
13288 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13290         PR target/51819
13291         * config/arm/arm.c (arm_print_operand): Correct output of alignment
13292         hints for neon loads and stores.
13294 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
13296         PR target/49868
13297         PR target/50887
13298         * doc/extend.texi (Named Address Spaces): Split into subsections.
13299         (AVR Named Address Spaces): New subsection.
13300         (M32C Named Address Spaces): New subsection.
13301         (RL78 Named Address Spaces): New subsection.
13302         (SPU Named Address Spaces): New subsection.
13303         (Variable Attributes): New anchor "AVR Variable Attributes".
13304         (AVR Variable Attributes): Rewrite and avoid wording
13305         "address space" in this context.
13306         * doc/invoke.texi (AVR Options): Rewrite and add documentation
13307         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
13308         (AVR Built-in Macros): New subsubsection therein.
13309         * doc/md.texi (AVR constraints): Remove "C04", "R".
13311 2012-01-20  Richard Guenther  <rguenther@suse.de>
13313         PR tree-optimization/51903
13314         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
13315         when removing stmts.
13317 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13319         PR target/50313
13320         * config/arm/arm.c (arm_load_pic_register): Use
13321         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
13322         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
13323         (arm_pic_static_addr): Likewise.
13324         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
13325         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
13326         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
13327         (pic_load_addr_unified): New.
13329 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
13331         PR target/51106
13332         * function.c (instantiate_virtual_regs_in_insn): Use
13333         delete_insn_and_edges when removing a wrong asm insn.
13335 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
13337         PR rtl-optimization/40761
13338         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
13339         Add new member loop_num.
13340         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
13341         (ira_build): Remove the parameter.
13343         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
13344         (ira.c): Do not build CFG loops for one region allocation.  Remove
13345         argument from ira_build call.
13347         * ira-build.c (init_loop_tree_node): New function.
13348         (create_loop_tree_nodes): Use it.  Separate the case when CFG
13349         loops are not built.
13350         (more_one_region_p): Check current_loops.
13351         (finish_loop_tree_nodes): Separate the case when CFG loops are not
13352         built.
13353         (add_loop_to_tree): Process loop equal to NULL too.
13354         (form_loop_tree): Separate the case when CFG loops are not built.
13355         Use explicitly number for the root.
13356         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
13357         an assertion.
13358         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
13359         instead of loop->num.
13360         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
13361         (mark_all_loops_for_removal): Ditto.
13362         (remove_unnecessary_regions): Separate the case when CFG loops
13363         are not built.
13364         (ira_build): Remove the parameter.  Use explicit number of regions
13365         when CFG loops are not built.
13367         * ira-color.c (print_loop_title): Separate the case for the root node.
13368         Use loop_num instead of loop->num.
13369         (move_spill_restore): Use loop_num instead of loop->num.
13371         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
13372         (change_loop): Ditto.
13373         (change_loop): Use loop_num instead of loop->num.
13375         * ira-lives.c (process_bb_node_lives): Ditto.
13377         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
13379         * ira-conflicts.c (print_allocno_conflicts): Ditto.
13381 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
13383         PR libmudflap/40778
13384         * tree-mudflap.c (mf_artificial): New function.
13385         (execute_mudflap_function_ops, execute_mudflap_function_decls,
13386         mx_register_decls, mudflap_enqueue_decl): Use it.
13388         PR target/51876
13389         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
13390         numbers in the insn pattern.
13392 2012-01-19  Michael Matz  <matz@suse.de>
13394         PR tree-optimization/46590
13395         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
13396         use it in remembering which conflicts we already created.
13397         (add_scope_conflicts): Adjust call to above, (de)allocate helper
13398         bitmap.
13400 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
13402         PR lto/51280
13403         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
13404         (merge_and_complain): Same.
13406 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
13408         PR bootstrap/50237
13409         * config/initfini-array.h: Guard content of the header
13410         with #ifdef HAVE_INITFINI_ARRAY.
13411         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
13412         Add initfini-array.h to tm_file here.
13413         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
13414         * config.gcc: Don't add initfini-array.h to tm_file here.
13415         * configure: Regenerated.
13417 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
13419         PR rtl-optimization/51505
13420         * df-problems.c (df_kill_notes): New parameter live. Update comment.
13421         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
13422         (df_note_bb_compute): Update the call to df_kill_notes.
13424 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
13426         * trans-mem.c (requires_barrier): Remove call to is_global_var.
13428 2012-01-18  Richard Guenther  <rguenther@suse.de>
13430         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
13431         of conversions to void *.
13433 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13434             Richard Sandiford  <rdsandiford@googlemail.com>
13436         PR middle-end/50325
13437         PR middle-end/51192
13438         * optabs.h (simplify_expand_binop): Declare.
13439         * optabs.c (simplify_expand_binop): Make global.
13440         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
13441         endian targets if the source cannot be exactly covered by word
13442         mode chunks.
13444 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
13446         PR bootstrap/51872
13447         * hard-reg-set.h (struct hard_reg_set_container): New type.
13448         * target.h (struct hard_reg_set_container): Forward declare.
13449         * target.def (set_up_by_prologue): New target hook.
13450         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
13451         * doc/tm.texi: Regenerated.
13452         * function.c (thread_prologue_and_epilogue_insns): Change
13453         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
13454         Call targetm.set_up_by_prologue on it.
13455         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
13456         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
13458 2012-01-17  Nick Clifton  <nickc@redhat.com>
13460         * config/rx/rx.c (rx_can_use_simple_return): New function.
13461         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
13462         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
13464 2012-01-17  Richard Guenther  <rguenther@suse.de>
13466         PR middle-end/51782
13467         * expr.c (expand_assignment): Take address-space information
13468         from the address operand of MEM_REF and TARGET_MEM_REF.
13469         (expand_expr_real_1): Likewise.
13471 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13473         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
13474         reload dump is requested.
13476 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
13478         PR other/51165
13479         * trans-mem.c (requires_barrier): Call may_be_aliased.
13481 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
13483         PR tree-optimization/51877
13484         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
13485         call arguments and fndecls compare equal, instead return false if they
13486         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
13487         both SSA_NAMEs that are valueized the same, or they satisfy
13488         operand_equal_p.
13490 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13492         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
13493         Solaris 11+.
13494         * configure: Regenerate.
13496 2012-01-16  Jan Hubicka  <jh@suse.cz>
13498         PR c/12245
13499         PR c++/14179
13500         * convert.c (convert_to_integer): Use fold_convert for
13501         converting an INTEGER_CST to integer type.
13503 2012-01-16  Jason Merrill  <jason@redhat.com>
13505         PR c++/14179
13506         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
13508 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
13510         PR bootstrap/51860
13511         * config/s390/s390.c (s390_chunkify_start): Don't skip
13512         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
13513         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
13514         If insn is followed by NOTE_INSN_VAR_LOCATION or
13515         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
13516         Don't use location of note insns.
13518         PR tree-optimization/51865
13519         * tree-inline.c (tree_function_versioning): Call remap_decl
13520         on DECL_RESULT whenever it has VOID_TYPE_P type.
13522 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
13524         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
13525         for calls to locally-binding MIPS16 functions if only the return
13526         type uses float regs.
13528 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
13529             Richard Sandiford  <rdsandiford@googlemail.com>
13531         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
13532         (SYMBOL_32_HIGH): Likewise.
13533         (mips_output_tls_reloc_directive): Declare.
13534         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
13535         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
13536         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
13537         (mips_lo_relocs, mips_hi_relocs): Make extern.
13538         (mips16_stub_function): Move up file.
13539         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
13540         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
13541         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
13542         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
13543         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
13544         (mips_get_tp): Add MIPS16 support.
13545         (mips_legitimize_tls_address): Remove MIPS16 sorry().
13546         Generalize DTPREL and TPREL handling.
13547         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
13548         Add MIPS16 TLS support.
13549         (mips_output_tls_reloc_directive): New function.
13550         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
13551         * config/mips/predicates.md (symbolic_operand_with_high)
13552         (tls_reloc_operand): New predicates.
13553         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
13554         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
13555         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
13556         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
13557         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
13558         (*tls_get_tp_mips16_call_<mode>): Likewise.
13560 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
13562         PR rtl-optimization/51821
13563         * recog.c (peep2_find_free_register): Determine clobbered registers
13564         from insn pattern.
13566 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
13568         PR target/50925
13569         * config/avr/avr-protos.h: Revert change of 2012-01-09.
13570         * config/avr/avr.c: Likewise.
13571         * config/avr/avr.h: Likewise.
13573 2012-01-13  Ian Lance Taylor  <iant@google.com>
13575         PR c++/50012
13576         * tree.h (TYPE_QUALS): Add cast to int.
13577         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
13579 2012-01-13  Ian Lance Taylor  <iant@google.com>
13581         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
13582         comparing param_index to VEC_length result.
13584 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
13586         * c-decl.c: Do not include tree-mudflap.h
13587         * tree-optimize.c: Likewise.
13588         * Makefile.in: Update dependencies.
13590 2012-01-13  Richard Guenther  <rguenther@suse.de>
13592         PR middle-end/8081
13593         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
13594         variable-sized result always use RSO.
13596 2012-01-12  DJ Delorie  <dj@redhat.com>
13598         * cfgexpand.c (convert_debug_memory_address): Allow any valid
13599         pointer type, not just the default pointer type.
13601 2012-01-09  Richard Henderson  <rth@redhat.com>
13602             Denis Chertykov  <chertykov@gmail.com>
13604         PR target/50925
13605         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
13606         * config/avr/avr.c (avr_can_eliminate): Simplify.
13607         (avr_initial_elimination_offset): Likewise.
13608         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
13609         (expand_epilogue): Likewise.
13610         (avr_legitimize_address): Gut.
13611         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
13612         (avr_hard_regno_nregs): New.
13613         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
13614         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
13615         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
13616         add soft frame pointer.
13617         (CALL_USED_REGISTERS): Likewise.
13618         (REG_CLASS_CONTENTS): Likewise.
13619         (REGISTER_NAMES): Likewise.
13620         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
13621         (HARD_FRAME_POINTER_REGNUM): New.
13622         (FRAME_POINTER_REGNUM): Use soft frame pointer.
13623         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
13624         remove the HARD_FRAME_POINTER self-elimination.
13626 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
13628         PR target/51756
13629         * config/avr/avr.c (avr_encode_section_info): Test for absence of
13630         DECL_EXTERNAL when checking for initializers of progmem variables.
13632 2012-01-12  Ira Rosen  <irar@il.ibm.com>
13634         PR tree-optimization/51799
13635         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
13636         that the last operation is a type demotion.
13638 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
13640         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
13641         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
13643 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
13645         PR bootstrap/51796
13646         * combine.c (distribute_notes): If i3 is a noreturn call,
13647         allow old_size to be equal to args_size and make sure the
13648         noreturn call gets REG_ARGS_SIZE note.
13649         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
13650         on noreturn calls even when the delta is 0.
13652 2012-01-11  Nathan Sidwell  <nathan@acm.org>
13654         * gcov.c (STRING_SIZE): Remove.
13655         (generate_results): Erase annotations for source files with no
13656         coverage information.
13657         (read_line): New.
13658         (output_lines): Use it.
13660 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13662         * gimple.h (gimplify_body): Remove first argument.
13663         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
13664         pointer set here, instead just pass DATA to walk_tree.
13665         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
13666         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
13667         (unvisit_body): Likewise, but with unmark_visited.
13668         (gimplify_body): Remove BODY_P argument and adjust.
13669         (gimplify_function_tree): Adjust call to gimplify_body.
13670         * omp-low.c (finalize_task_copyfn): Likewise.
13672 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13674         * tree.h (build_function_decl_skip_args): Add boolean parameter.
13675         (build_function_type_skip_args): Delete.
13676         * tree.c (build_function_type_skip_args): Make static and add
13677         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
13678         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
13679         pass it to build_function_type_skip_args.
13680         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
13681         (tree_function_versioning): Likewise.
13682         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
13683         build_function_decl_skip_args.
13684         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
13685         and pass it to build_function_decl_skip_args/tree_function_versioning.
13686         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
13687         * ipa-inline-transform.c (save_inline_function_body): Likewise.
13688         * trans-mem.c (ipa_tm_create_version): Likewise.
13689         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
13690         * tree-inline.c (declare_return_variable): Remove always-true test.
13691         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
13692         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
13693         * ipa-split.c (split_function): Skip the return value for the split
13694         part if it doesn't return.
13696 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13698         PR tree-optimization/49642
13699         * ipa-split.c (forbidden_dominators): New variable.
13700         (check_forbidden_calls): New function.
13701         (dominated_by_forbidden): Likewise.
13702         (consider_split): Check for forbidden dominators.
13703         (execute_split_functions): Initialize and free forbidden
13704         dominators info; call check_forbidden_calls.
13706 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13708         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
13710 2012-01-11  Nick Clifton  <nickc@redhat.com>
13712         * config/rx/rx.md (return): Define pattern.
13714 2012-01-11  Richard Guenther  <rguenther@suse.de>
13716         * doc/extend.texi (malloc attribute): Adjust according to
13717         implementation.
13719 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
13720             Patrick Marlier  <patrick.marlier@gmail.com>
13722         PR middle-end/51516
13723         * trans-mem.c (get_cg_data): Traverse aliases if requested.
13724         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
13725         (ipa_tm_note_irrevocable): Same.
13726         (ipa_tm_scan_irr_block): Same.
13727         (ipa_tm_decrement_clone_counts): Same.
13728         (ipa_tm_scan_irr_function): Same.
13729         (ipa_tm_create_version_alias): Same.
13730         (ipa_tm_create_version): Same.
13731         (ipa_tm_transform_calls_redirect): Same.
13732         (ipa_tm_transform_calls): Same.
13733         (ipa_tm_transform_transaction): Same.
13734         (ipa_tm_execute): Same.
13736 2012-01-10  Richard Guenther  <rguenther@suse.de>
13738         PR middle-end/51806
13739         * opts.c (common_handle_option): Handle -Werror.
13741 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
13743         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
13744         operand number.
13746 2012-01-10  Jason Merrill  <jason@redhat.com>
13748         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
13749         information.
13751 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13753         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
13754         supports R_386_TLS_GD_PLT reloc.
13755         (gcc_cv_as_ix86_tlsldmplt): Check if linker
13756         supports R_386_TLS_LDM_PLT reloc.
13757         * configure: Regenerate.
13758         * config.in: Regenerate.
13760 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
13762         PR target/49868
13763         Extend __pgmx semantics to linearize memory.
13764         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
13765         determine if code comes inline or from libgcc.
13766         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
13767         (movmem_qi, movmem_qi): Set constraint #2 to "n".
13768         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
13769         (movmemx_qi, movmemx_hi): New insns.
13770         (xload_<mode>_libgcc): Rewrite to new insn condition.
13771         (xload_<mode>): Remove insns.
13772         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
13773         cases that don't satisfy avr_xload_libgcc_p().
13774         (avr_addr_space_convert): Allow converting in any direction.
13775         (avr_addr_space_subset_p): Return always true.
13776         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
13777         (avr_emit_movmemhi): Ditto.
13778         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
13779         (avr_out_movmem): Ditto.
13780         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
13781         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
13782         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
13783         (avr_encode_section_info): Encode 'progmem' in symbol flags.
13784         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
13786 2012-01-10  Richard Guenther  <rguenther@suse.de>
13788         PR tree-optimization/50913
13789         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
13790         Require data-refs to be representable by Graphite with respect
13791         to any loop nest.
13793 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
13795         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
13796         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
13798 2012-01-10  Tom de Vries  <tom@codesourcery.com>
13800         PR rtl-optimization/51271
13801         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
13802         handling annulled branch.
13804 2012-01-10  Richard Henderson  <rth@redhat.com>
13806         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
13807         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
13808         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
13809         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
13810         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
13811         arm_expand_vec_perm_const): New.
13812         * config/arm/arm-protos.h: Update.
13813         * config/arm/neon.md (UNSPEC_VCONCAT): New.
13814         (*neon_vswp<VDQX>): New.
13815         (neon_vcombine<VDX>): Use neon_split_vcombine.
13816         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
13817         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
13818         (vec_perm<VE>): New.
13820 2012-01-10  Richard Henderson  <rth@redhat.com>
13822         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
13823         use it if reload_completed.
13824         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
13825         arm_output_asm_insn, arm_process_output_memory_barrier,
13826         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
13827         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
13828         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
13829         arm_process_output_sync_insn, arm_output_sync_insn,
13830         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
13831         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
13832         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
13833         (emit_unlikely_jump): New.
13834         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
13835         (arm_split_atomic_op): New.
13836         * config/arm/arm-protos.h: Update.
13837         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
13838         (struct arm_sync_generator): Remove.
13839         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
13840         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
13841         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
13842         (VUNSPEC_LL, VUNSPEC_SC): New.
13843         (sync_result, sync_memory, sync_required_value, sync_new_value,
13844         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
13845         (attr length): Don't use arm_sync_loop_insns.
13846         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
13847         (movsfcc, movdfcc): Likewise.
13848         * config/arm/constraints.md (Ua): New.
13849         * config/arm/prediates.md (mem_noofs_operand): New.
13850         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
13851         (sync_clobber, sync_t2_reqd): Remove.
13852         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
13853         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
13854         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
13855         (arm_sync_compare_and_swap<SIDI>): Remove.
13856         (arm_sync_compare_and_swap<NARROW>): Remove.
13857         (arm_sync_lock_test_and_set<SIDI>): Remove.
13858         (arm_sync_lock_test_and_set<NARROW>): Remove.
13859         (arm_sync_new_<syncop><SIDI>): Remove.
13860         (arm_sync_new_<syncop><NARROW>): Remove.
13861         (arm_sync_new_nand<SIDI>): Remove.
13862         (arm_sync_new_nand<NARROW>): Remove.
13863         (arm_sync_old_<syncop><SIDI>): Remove.
13864         (arm_sync_old_<syncop><NARROW>): Remove.
13865         (arm_sync_old_nand<SIDI>): Remove.
13866         (arm_sync_old_nand<NARROW>): Remove.
13867         (*memory_barrier): Merge arm_output_memory_barrier.
13868         (atomic_compare_and_swap<QHSD>): New.
13869         (atomic_compare_and_swap<NARROW>_1): New.
13870         (atomic_compare_and_swap<SIDI>_1): New.
13871         (atomic_exchange<QHSD>): New.
13872         (cas_cmp_operand, cas_cmp_str): New.
13873         (atomic_op_operand, atomic_op_str): New.
13874         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
13875         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
13876         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
13877         (arm_load_exclusive<NARROW>): New.
13878         (arm_load_exclusivesi, arm_load_exclusivedi): New.
13879         (arm_store_exclusive<QHSD>): New.
13881 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13883         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
13884         reload patterns if -mvsx-scalar-memory.
13886         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
13887         generated, even -mno-vsx-scalar-double was used.
13888         (vsx_xscvdpsp_scalar): Likewise.
13889         (vsx_xscvspdp_scalar2): Likewise.
13891 2012-01-09  Tom de Vries  <tom@codesourcery.com>
13892             Andrew Pinski  <apinski@cavium.com>
13894         PR debug/51471
13895         * reorg.c (fill_slots_from_thread): Don't speculate
13896         frame-related insns.
13898 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13900         * sched-int.h (bb_note): Move to...
13901         * basic-block.h: ...here.
13902         * haifa-sched.c (bb_note): Move to...
13903         * cfgrtl.c: ...here.
13904         * function.c (next_block_for_reg): New function.
13905         (move_insn_for_shrink_wrap): Likewise.
13906         (prepare_shrink_wrap): Rewrite to use the above.
13908 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
13910         * gimple.c (is_gimple_non_addressable): Remove.
13911         * gimple.h: Remove is_gimple_non_addressable.
13912         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
13913         is_gimple_non_addressable.
13914         * trans-mem.c (expand_assign_tm): Same.
13916 2012-01-09  Richard Guenther  <rguenther@suse.de>
13918         PR tree-optimization/51775
13919         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
13920         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
13922 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13924         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
13925         tuning parameters.
13926         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
13928 2012-01-09  Richard Guenther  <rguenther@suse.de>
13930         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
13932 2012-01-08  Jan Hubicka  <jh@suse.cz>
13934         PR tree-optimize/51680
13935         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
13936         on when known_vals needs to be computed; cleanup.
13938 2012-01-08  Jan Hubicka  <jh@suse.cz>
13940         PR tree-optimize/51694
13941         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
13943 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
13945         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
13946         for -std=c++98 and -std=c++11 too.
13948 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
13950         * cfgloop.c (cancel_loop): Add free() of bbs array.
13952 2012-01-07  Jan Hubicka  <jh@suse.cz>
13954         PR tree-optimization/51600
13955         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
13956         that benefits small functions.
13958 2012-01-07  Jan Hubicka  <jh@suse.cz>
13960         * ipa-inline.c (want_inline_small_function_p): Fix formating.
13962 2012-01-07  Jan Hubicka  <jh@suse.cz>
13964         PR tree-optimization/51680
13965         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
13966         whose inlining reduce unit size.
13968 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
13970         PR bootstrap/51725
13971         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
13972         Add canonical node to containing_mem chain after the non-canonical
13973         one, even if there weren't any locs to propagate.
13974         (remove_useless_values): Keep only canonical values.
13975         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
13976         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
13977         canonicalize mem_chain elements that are not discarded.
13979 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
13981         PR target/47333
13982         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
13983         before emitting functions.
13985         PR gcov-profile/50127
13986         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
13987         clear_aux_for_blocks.
13989 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
13991         PR debug/51746
13992         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
13994 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
13996         * c-decl.c (ext_block): Moved up.
13997         (collect_all_refs, for_each_global_decl): Take ext_block into account.
13999 2012-01-06  Han Shen  <shenhan@google.com>
14001         Translate built-in include paths for sysroot.
14002         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
14003         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
14005         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
14006         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
14008         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
14009         control whether sysroot should be prepended to gxx include dir.
14011         * configure: Regenerate.
14013 2012-01-06  Torvald Riegel  <triegel@redhat.com>
14015         PR rtl-optimization/51771
14016         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
14017         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
14019 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14021         PR tree-optimization/51315
14022         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
14023         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
14025 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
14027         PR target/51681
14028         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
14029         for shrp pattern.  Correctly handle and fixup shift variable.
14030         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
14032 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14034         PR debug/51762
14035         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
14036         note when !ACCUMULATE_OUTGOING_ARGS.
14038 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14040         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
14041         condition.
14042         (extract_range_from_unary_expr_1): Avoid useless computations.
14044 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14046         PR rtl-optimization/51767
14047         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
14048         of jump_block and add an extra edge for degenerated asm gotos.
14050         PR middle-end/51768
14051         * stmt.c (check_unique_operand_names): Don't ICE during error
14052         reporting if i is from labels chain.
14054         PR middle-end/44777
14055         * profile.c (branch_prob): Split bbs that have exit edge
14056         and need a fake entry edge too.
14058 2012-01-05  Jan Hubicka  <jh@suse.cz>
14060         PR middle-end/49710
14061         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
14062         unlooping loops.
14064 2012-01-05  Richard Guenther  <rguenther@suse.de>
14066         PR lto/50490
14067         * tree-streamer-out.c (write_ts_optimization): New function.
14068         (streamer_write_tree_body): Call it.
14069         * tree-streamer-in.c (lto_input_ts_optimization): New function.
14070         (streamer_read_tree_body): Call it.
14071         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
14073 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14075         PR middle-end/51761
14076         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
14077         * gimplify.c (gimplify_cleanup_point_expr): Save and set
14078         in_cleanup_point_expr before gimplify_stmt call and restore it
14079         afterwards.
14080         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
14081         in_cleanup_point_expr is false.
14083 2012-01-05  Richard Guenther  <rguenther@suse.de>
14085         PR middle-end/51764
14086         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
14087         to c.opt.
14088         * toplev.c (process_options): Reject combining mudflap and LTO.
14089         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
14091 2012-01-05  Richard Guenther  <rguenther@suse.de>
14093         PR tree-optimization/51760
14094         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
14095         not VARYING.
14096         (bit_value_unop): Handle UNDEFINED operands.
14097         (bit_value_binop): Likewise.
14099 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
14101         * config/avr/avr.c (avr_replace_prefix): Remove.
14102         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
14103         (avr_asm_function_rodata_section): Ditto.
14104         (avr_asm_select_section): Ditto.
14106 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14108         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
14109         insertion.
14111 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14113         PR bootstrap/51648
14114         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
14115         calls that have any non-fake successor edges.
14117         PR debug/51746
14118         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
14120 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14122         PR tree-optimization/51624
14123         * tree-sra.c (build_ref_for_model): When replicating a chain of
14124         COMPONENT_REFs, stop as soon as the offset would become negative.
14126 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
14128         PR debug/51695
14129         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
14130         in .debug_loc on the floor.
14132 2012-01-04  Andrew Pinski  <apinski@cavium.com>
14134         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
14136 2012-01-04  Andrew Pinski  <apinski@cavium.com>
14137             Adam Nemet  <anemet@caviumnetworks.com>
14139         * config/mips/mips.md (size): Add SI and DI.
14140         (SIZE): New mode attribute.
14141         (U): New code attribute.
14142         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
14143         (mips_lbux_<mode>): Delete.
14144         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
14145         (mips_lhx): Use gen_mips_lhx_extsi.
14146         (mips_lhx_<mode>): Delete.
14147         (mips_lwx): Delete.
14148         (mips_l<size>x): New expand.
14149         (mips_lwx_<mode>): Delete.
14150         (mips_l<GPR:size>x_<P:mode>): New pattern.
14151         (*mips_lw<u>x_<P:mode>_ext): Likewise.
14152         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
14153         * config/mips/mips.c (mips_lx_address_p): New function.
14154         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
14155         (dsp64): New availability predicate.
14156         (mips_builtins): Add an entry for __builtin_mips_ldx.
14157         * config/mips/mips.h (ISA_HAS_LBX): New define.
14158         (ISA_HAS_LBUX): Likewise.
14159         (ISA_HAS_LHX): Likewise.
14160         (ISA_HAS_LHUX): Likewise.
14161         (ISA_HAS_LWX): Likewise.
14162         (ISA_HAS_LWUX): Likewise.
14163         (ISA_HAS_LDX): Likewise.
14164         * doc/extend.texi (__builtin_mips_ldx): Document.
14166 2012-01-04  Tristan Gingold  <gingold@adacore.com>
14168         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
14169         when long pointers are used.
14170         * config.build (*-*-*vms*): Handle all OpenVMS targets.
14171         (alpha64-dec-*vms*, alpha*-dec-*vms*)
14172         (ia64-hp-*vms*): Remove.
14173         * config/vms/xm-vms64.h: Delete.
14175 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
14177         PR middle-end/51472
14178         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
14180 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
14182         * opts.c (finish_options): Remove duplicate sorry.
14184 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
14186         PR middle-end/51696
14187         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
14188         correctly.
14190 2012-01-04  Richard Guenther  <rguenther@suse.de>
14192         PR middle-end/51750
14193         * tree.c (size_low_cst): New function.
14194         * tree.h (size_low_cst): Declare.
14195         * fold-const.c (fold_comparison): Use it to extract the low
14196         part of the POINTER_PLUS_EXPR offset.
14198 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
14200         Fix clearing ZERO_REG
14201         * config/avr/avr.md (cc): Add alternative "ldi".
14202         (movqi_insn): Use it in cc attribute.
14203         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
14204         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
14205         (output_reload_insisf): Use ZERO_REG to pre-clear register.
14207 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14209         * configure: Regenerate.
14211 2012-01-04  Richard Guenther  <rguenther@suse.de>
14213         PR tree-optimization/49651
14214         * tree-ssa-structalias.c (type_can_have_subvars): New function.
14215         (var_can_have_subvars): Use it.
14216         (get_constraint_for_1): Only consider subfields if there can be any.
14218 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
14220         PR bootstrap/51725
14221         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
14222         to its new canonical_cselib_val and the cselib_val was in
14223         first_containing_mem chain, but the canonical_cselib_val was not,
14224         add the latter into the chain.
14225         (cselib_invalidate_mem): Compare canonical_cselib_val of
14226         addr_list chain elt with v.
14228         PR pch/51722
14229         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
14230         dwarf2out_undef): Allocate e.info using ggc_strdup instead
14231         of xstrdup.
14232         (output_macinfo_op): Don't ggc_strdup fd->filename.
14233         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
14234         then ggc_strdup it.  Don't free inc->info or cur->info.
14235         (output_macinfo): Don't free ref->info or file->info.
14237 2012-01-03  Ira Rosen  <irar@il.ibm.com>
14239         PR tree-optimization/51269
14240         * tree-vect-loop-manip.c (set_prologue_iterations): Make
14241         first_niters a pointer.
14242         (slpeel_tree_peel_loop_to_edge): Likewise.
14243         (vect_do_peeling_for_loop_bound): Update call to
14244         slpeel_tree_peel_loop_to_edge.
14245         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
14246         here.  Remove it from the parameters list.
14247         (vect_do_peeling_for_alignment): Update calls and compute
14248         wide_prolog_niters.
14250 2012-01-03  Richard Guenther  <rguenther@suse.de>
14252         PR tree-optimization/51070
14253         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
14254         Properly handle calls.
14256 2012-01-03  Richard Guenther  <rguenther@suse.de>
14258         PR tree-optimization/51692
14259         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
14260         the LHS of allocation stmts.
14262 2012-01-03  Olivier Hainque  <hainque@adacore.com>
14264         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
14266 2012-01-03  Olivier Hainque  <hainque@adacore.com>
14268         * collect2.c (main): In AIX specific computations for vector
14269         insertions, use CONST_CAST2 to cast from char ** to const char **.
14271 2012-01-03  Richard Guenther  <rguenther@suse.de>
14273         PR debug/51650
14274         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
14275         the context of a limbo DIE when it does not already exist.
14277 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
14279         PR tree-optimization/51719
14280         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
14281         but direct call is, clear direct call's lhs and don't add fallthrough
14282         edge from dcall_bb to join_bb and PHIs.
14284 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14286         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
14287         the instructions emitted by the pattern.
14288         ("*TDC_insn_<mode>"): Add comment.
14290 2012-01-03  Richard Guenther  <rguenther@suse.de>
14292         PR middle-end/51730
14293         * fold-const.c (fold_comparison): Properly canonicalize
14294         tree offset and HOST_WIDE_INT bit position.
14296 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
14298         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
14299         operands for extzv pattern.
14301 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
14303         PR bootstrap/51725
14304         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
14305         on mem_elt first.
14307 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
14309         * doc/invoke.texi (-flto and related options): Copy-edit.
14311 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14313         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
14315 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
14317         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
14318         New patterns.
14320 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14322         * expr.h (move_by_pieces_ninsns): Declare.
14323         * expr.c (move_by_pieces_ninsns): Make external.
14324         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
14325         (mips_store_by_pieces_p): Likewise.
14326         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
14327         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
14328         * config/mips/mips.c (mips_move_by_pieces_p): New function.
14329         (mips_store_by_pieces_p): Likewise.
14331 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
14333         * passes.c (register_one_dump_file): Free full_name.
14335         * reload1.c (reload): Don't allocate reg_max_ref_width here.
14336         (calculate_elim_costs_all_insns): Free offsets_at and
14337         offsets_known_at at the end and clear the pointers.
14339 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14341         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
14342         this option introduced in r180739.
14344 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14346         PR target/51345
14347         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
14348         (tmake_file target=avr): Add avr/t-multilib.
14350         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
14351         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
14352         * config/avr/genmultilib.awk: New file.
14353         * config/avr/t-multilib: New auto-generated file.
14354         * config/avr/multilib.h: New auto-generated file.
14355         * config/avr/t-avr (AVR_MCUS): New variable.
14356         (genopt.sh): Use it.
14357         (s-mlib): Depend on t-multilib.
14358         (t-multilib, multilib.h): New dependencies.
14359         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
14360         (MULTILIB_OPTIONS): Remove.
14361         (MULTILIB_MATCHES): Remove.
14362         (MULTILIB_DIRNAMES): Remove.
14363         (MULTILIB_EXCEPTIONS): Remove:
14364         * config/avr/genopt.sh: Don't use hard coded file name;
14365         pass AVR_MCUS from t-avr instead.
14367 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14369         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
14371 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14373         Implement light-weight DImode support.
14374         * config/avr/avr-dimode.md: New file.
14375         * config/avr/avr.md: Include it.
14376         (adjust_len): Add plus64, compare64.
14377         (HIDI): Remove code iterator.
14378         (code_stdname): New code attribute.
14379         (rotx, rotsmode): Remove DI.
14380         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
14381         as code iterator.
14382         * config/avr/avr-protos.h (avr_have_dimode): New.
14383         (avr_out_plus64, avr_out_compare64): New.
14384         * config/avr/avr.c (avr_out_compare): Handle DImode.
14385         (avr_have_dimode): New variable definition and initialization.
14386         (avr_out_compare64, avr_out_plus64): New functions.
14387         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
14388         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
14389         (avr_compare_pattern): Skip DImode comparisons.
14391 2012-01-02  Revital Eres  <revital.eres@linaro.org>
14393         * ddg.c (def_has_ccmode_p): New function.
14394         (add_cross_iteration_register_deps,
14395         create_ddg_dep_from_intra_loop_link): Call it.
14397 2012-01-02  Richard Guenther  <rguenther@suse.de>
14399         PR other/51679
14400         * invoke.texi (fassociative-math): Remove spurious paranthesis.
14402 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
14404         * gcc.c (process_command): Update copyright notice dates.
14405         * gcov.c (print_version): Likewise.
14406         * gcov-dump.c (print_version): Likewise.
14407         * mips-tfile.c (main): Likewise.
14408         * mips-tdump.c (main): Likewise.
14410 2012-01-01  Ira Rosen  <irar@il.ibm.com>
14412         PR tree-optimization/51704
14413         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
14414         a use is inside the basic block or loop before accessing its vect info.
14416 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
14418         PR rtl-optimization/51069
14419         * cfgloopmanip.c (remove_path): Removing path making irreducible
14420         region unconditional makes BB part of the region.
14422 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
14424         PR tree-optimization/51683
14425         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
14426         calls with side-effects.
14427         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14429 Copyright (C) 2012 Free Software Foundation, Inc.
14431 Copying and distribution of this file, with or without modification,
14432 are permitted in any medium without royalty provided the copyright
14433 notice and this notice are preserved.