re PR target/53682 (ICE in cselib_lookup (SEGV) on i586-linux-gnu)
[official-gcc.git] / gcc / ChangeLog
blob3b86f2b632342feac2c2c47567a09c5626c108a8
1 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
3         PR debug/53682
4         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
6 2012-06-21  Meador Inge  <meadori@codesourcery.com>
8         PR c/53702
9         * c-decl.c (c_push_function_context): Restore the behavior to reuse
10         the language function allocated for -Wunused-local-typedefs.
11         (c_pop_function_context): If necessary, clear the language function
12         created in c_push_function_context.  Always clear out the
13         x_cur_stmt_list field of the restored language function.
15 2012-06-21   Sterling Augustine  <saugustine@google.com>
16         Cary Coutant  <ccoutant@google.com>
18         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
19         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
20         (comdat_type_struct): New field 'skeleton_die'.
21         (breakout_comdat_types): Update it.
22         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
23         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
24         (add_pubname_string): Call want_pubnames.
25         (add_pubtype): Rework logic for calculating type name.  Call
26         is_namespace_die.  Call want_pubnames.
27         (output_pubnames): Move conditional logic deciding when to produce the
28         section from dwarf2out_finish.  Use new skeleton_die field.
29         (base_type_die): Call add_pubtype.
30         (gen_enumeration_type_die): Unconditionally call add_pubtype.
31         (gen_subprogram_die): Adjust calls to add_pubname.
32         (gen_namespace_die): Call add_pubname_string.
33         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
34         produce pubnames and pubtypes sections to output_pubnames.
35         (common.opt): New option '-gpubnames'.
36         (invoke.texi): Document it.
38 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
40         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
42 2012-06-21  Michael Matz  <matz@suse.de>
44         PR middle-end/53688
45         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
46         with correct size.
48 2012-06-21  Richard Guenther  <rguenther@suse.de>
50         * tree-inline.c (estimate_num_insns): Estimate call cost for
51         tailcalls properly.
53 2012-06-20  RĂ¼diger Sonderfeld  <ruediger@c-plusplus.de>
55         * tree.h (DECL_SOURCE_COLUMN): New accessor.
57 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
59         * config/i386/i386.md (SINCOS): New int iterator.
60         (sincos): New int attribute.
61         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
62         SINCOS int iterator.
63         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
64         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
66 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
68         * config/i386/i386.md (RDFSGSBASE): New int iterator.
69         (WRFSGSBASE): Ditto.
70         (fsgs): New int attribute.
71         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
72         RDFSGSBASE int iterator.
73         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
74         WRFSGSBASE int iterator.
76 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
78         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
79         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
80         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
81         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
82         int iterator.
84 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
86         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
88 2012-06-20  Richard Guenther  <rguenther@suse.de>
90         PR tree-optimization/30318
91         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
92         constants here.
93         (range_int_cst_singleton_p): But explicitely here.
94         (zero_nonzero_bits_from_vr): And here.
95         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
96         to cover all cases we can perform arbitrary precision
97         arithmetic with double-ints.
98         (intersect_ranges): Handle adjacent anti-ranges.
100 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
102         * config/i386/i386.md (rounding_insn): New int attribute.
103         (<rounding_insn>xf2): Macroize insn from
104         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
105         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
107 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
109         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
110         (ieee_maxmin): New int attribute.
111         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
112         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
114 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
116         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
117         * config/arm/arm.c: Do not include c-pragma.h.
118         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
119         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
120         to arm_emit_eabi_attribute.
121         * arm-c.c: Do not include output.h.
122         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
123         call to arm_emit_eabi_attribute.
124         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
126 2012-06-20  Richard Guenther  <rguenther@suse.de>
128         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
129         Allow adjusting alignment of user-aligned decls again.
131 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
133         * config/rl78/rl78-c.c: Remove unnecessary includes.
135 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
137         * config/cris/cris.c: Include cgraph.h.
138         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
140 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
142         * emit-rtl.c (need_atomic_barrier_p): New function.
143         * emit-rtl.h (need_atomic_barrier_p): Declare it.
144         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
145         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
146         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
147         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
148         (mips_process_sync_loop): Use generic version instead.
150 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
152         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
153         it is used.
155 2012-06-19  Tom de Vries  <vries@codesourcery.com>
156             Maxim Kuvyrkov  <maxim@codesourcery.com>
158         * config/mips/constraints.md (ZR): New constraint.
159         * config/mips/predicates.md (mem_noofs_operand): New predicate.
160         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
161         * config/mips/mips.h (TARGET_XLP): Define.
162         (TARGET_SYNC_AFTER_SC): Update.
163         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
164         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
165         XLP-specific swap and ldadd patterns.
166         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
168 2012-06-19  Tom de Vries  <vries@codesourcery.com>
169             Maxim Kuvyrkov  <maxim@codesourcery.com>
171         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
172         (mips_emit_post_atomic_barrier_p): New static functions.
173         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
174         accordance with memory model semantics.  Add return of CMP result for
175         compare_and_swap.
176         * config/mips/mips.md: Update comment.
177         (sync_cmp): New attribute.
178         (sync_memmodel): New attribute replacing sync_release_barrier.
179         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
180         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
181         (sync_lock_test_and_set, test_and_set_12): Update.
182         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
183         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
185 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
187         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
188         mov_si<mode>_e500_subreg0.
189         (*mov_si<mode>_e500_subreg0_elf_low)
190         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
192 2012-06-19  Richard Henderson  <rth@redhat.com>
194         * config/alpha/alpha.c: Include params.h.
195         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
196         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
198 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
200         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
201         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
202         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
203         Remove.
204         * doc/tm.texi: Regenerate.
205         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
206         .objc_class_name_*.
207         * config/darwin-c.c: Include target.h.
208         (darwin_objc_declare_unresolved_class_reference): New function.
209         (darwin_objc_declare_class_definition): New function.
210         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
211         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
213 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
215         * target.def (output_ident): New hook.
216         * targhooks.h (default_asm_output_ident_directive): Add prototype.
217         * varasm.c (assemble_asm): Only prefix a tab if the string does not
218         already start with one.
219         (default_asm_output_ident_directive): New function to emit
220         .ident as a top-level asm node while parsing, or directly to
221         asm_out_file after parsing.
222         * toplev.c (compile_file): Print a GCC .ident with
223         targetm.asm_out.output_ident.
224         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
225         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
226         * doc/tm.texi: Update.
228         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
229         (TARGET_ASM_OUTPUT_IDENT): Define.
230         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
231         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
232         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
233         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
234         (TARGET_ASM_OUTPUT_IDENT): Define.
235         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
236         (TARGET_ASM_OUTPUT_IDENT): Define.
238         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
239         * config/cris/cris.c (cris_asm_output_ident): New function.
240         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
242         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
243         Add prototype.
244         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
245         (microblaze_asm_output_ident): Rewrite to work similar to
246         default_asm_output_ident_directive for front-end .idents.
247         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
248         (TARGET_ASM_OUTPUT_IDENT): Define.
250         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
251         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
253         * config/rx/rx.c: Include cgraph.h for add_asm_node.
254         (rx_asm_output_ident): New function, similar to
255         default_asm_output_ident_directive, but handle AS100 syntax also, so
256         that #ident also works for rx in AS100 syntax.
257         (TARGET_ASM_OUTPUT_IDENT): Define.
258         * config/rx/rx.h (IDENT_ASM_OP): Remove.
260         * Makefile.in: Fix dependencies for c-family/c-lex.o.
262 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
264         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
265         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
266         (ROUNDING): Ditto.
267         (*fist<mode>2_<rounding>_1): Macroize insn from
268         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
269         (fistdi2_<rounding>): Macroize insn from
270         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
271         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
272         corresponding splitters from fistdi2_{floor,ceil} and corresponding
273         splitters using FIST_ROUNDING int iterator.
274         (fist<mode>2_<rounding>): Macroize insn from
275         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
276         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
277         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
278         splitters using FIST_ROUNDING int iterator.
279         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
280         using FIST_ROUNDING int iterator.
282 2012-06-19  Richard Henderson  <rth@redhat.com>
284         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
285         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
286         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
287         * config/i386/sse.md (sse2_mulv4si3): Delete.
288         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
289         nonimmediate_or_const_vector_operand.
291 2012-06-19  Richard Henderson  <rth@redhat.com>
293         * expmed.c (struct init_expmed_rtl): Split ...
294         (init_expmed_one_mode): ... out of ...
295         (init_expmed): ... here.  Initialize integer vector modes also.
296         (synth_mult): Handle integer vector modes.
297         (choose_mult_variant): Likewise.
298         (expand_mult_const): Likewise.
299         (expand_mult): Likewise.
300         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
302 2012-06-19  Richard Henderson  <rth@redhat.com>
304         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
305         integral vector modes.
307 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
309         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
310         (rounding): New int attribute.
311         (ROUNDING): Ditto.
312         (frndintxf2_<rounding>): Macroize insn from
313         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
314         (frndintxf2_<rounding>_i387): Macroize insn from
315         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
317 2012-06-19  Richard Guenther  <rguenther@suse.de>
319         * tree-vrp.c (union_ranges): New function.
320         (vrp_meet_1): Use union_ranges.
321         (vrp_meet): Dump what we union and call vrp_meet_1.
323 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
325         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
326         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
327         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
328         (attr write_conflict, attr core_cycles): Update.
329         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
331 2012-06-19  Richard Guenther  <rguenther@suse.de>
333         * tree-vrp.c (intersect_ranges): Handle more cases.
334         (vrp_intersect_ranges): Dump what we intersect and call ...
335         (vrp_intersect_ranges_1): ... this.
337 2012-06-19  Richard Guenther  <rguenther@suse.de>
339         PR tree-optimization/53708
340         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
341         user-supplied alignment and alignment of decls with the used
342         attribute.
344 2012-06-18  Lawrence Crowl  <crowl@google.com>
346         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
347         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
348         (TV_PHASE_STREAM_IN): New.
349         (TV_PHASE_STREAM_OUT): New.
350         * timevar.c (validate_phases): New.
351         (timevar_print): Call validate_phases.
352         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
353         to TV_PHASE_OPT_GEN.
354         * langhooks.c (write_global_declarations): Rename use of
355         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
356         TV_PHASE_CHECK_DBGINFO.
357         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
358         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
359         lang_hooks.decls.final_write_globals.
361 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
363         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
365 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
367         PR target/53712
368         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
369         (*sse4_2_pcmpistr_unaligned): New.
371 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
372             Sameera Deshpande  <sameera.deshpande@arm.com>
373             Greta Yorsh  <greta.yorsh@arm.com>
375         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
376         * config/arm/arm.c (print_multi_reg): Remove.
377         (vfp_output_fldmd): Likewise.
378         (arm_output_epilogue): Likewise.
379         * config/arm/arm.md (epilogue_insns): Update condition and code.
381 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
382             Sameera Deshpande  <sameera.deshpande@arm.com>
383             Greta Yorsh  <greta.yorsh@arm.com>
385         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
386         * config/arm/arm.c (thumb2_expand_return): New function.
387         * config/arm/arm.md (return): Update condition and code.
389 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
390             Sameera Deshpande  <sameera.deshpande@arm.com>
391             Greta Yorsh  <greta.yorsh@arm.com>
393         * config/arm/arm-protos.h (output_return_instruction): New parameter
394         and int to bool change of parameter types.
395         * config/arm/arm.c (output_return_instruction): Likewise.
396         * config/arm/arm.md (arm_simple_return): New pattern.
397         (arm_return, cond_return, cond_return_inverted): Add new arguments.
398         * config/arm/thumb2.md (thumb2_return): Update condition and code.
400 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
401             Sameera Deshpande  <sameera.deshpande@arm.com>
402             Greta Yorsh  <greta.yorsh@arm.com>
404         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
405         * config/arm/arm.c (arm_expand_epilogue): New function.
406         * config/arm/arm.md (epilogue): Update condition and code.
407         (sibcall_epilogue): Likewise.
409 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
410             Sameera Deshpande  <sameera.deshpande@arm.com>
411             Greta Yorsh  <greta.yorsh@arm.com>
413         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
414         * config/arm/arm.md (arm_addsi3) Add an alternative.
416 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
417             Sameera Deshpande  <sameera.deshpande@arm.com>
418             Greta Yorsh  <greta.yorsh@arm.com>
420         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
421         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
422         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
424 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
425             Sameera Deshpande  <sameera.deshpande@arm.com>
426             Greta Yorsh  <greta.yorsh@arm.com>
428         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
429         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
430         (pop_multiple_with_return, ldr_with_return) Likewise.
431         * config/arm/predicates.md (pop_multiple_return) New special predicate.
432         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
433         * config/arm/arm.c (arm_output_multireg_pop) New function.
434         (arm_emit_multi_reg_pop): New function.
436 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
438         * config/arm/arm.c (ldm_stm_operation_p): Require SP
439         as base register for loads if SP is in the register list.
441 2012-06-18  Richard Guenther  <rguenther@suse.de>
443         PR tree-optimization/53693
444         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
445         Reject operands with more than one use.
447 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
449         PR tree-optimization/53703
450         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
451         correctly set bb_for_def[12].
453 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
455         * config/vax/vax.h (VMS_TARGET): Remove.
457 2012-06-18  Richard Guenther  <rguenther@suse.de>
459         * tree-vrp.c (extract_range_from_assert): Split out range
460         intersecting code.
461         (intersect_ranges): New function.
462         (vrp_intersect_ranges): Likewise.
464 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
466         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
467         r187965.
469 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
471         * doc/md.texi: Document int iterators.
472         * read-rtl.c (ints): New iterator group.
473         (find_int): Int iterator group callback.
474         (apply_int_iterator): Likewise.
475         (apply_iterators): Traverse int iterator table and add all the used
476         iterators to list.
477         (initialize_iterators): Initialize data structures and callbacks for
478         int iterators.
479         (read_rtx): Parse and read mappings for int iterators.
480         (read_rtx_code): Record int iterator usage.
482 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
484         PR middle-end/53698
485         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
486         performing an addition.
488 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
490         * output.h (split_double): Move prototype to rtl.h.
491         (constructor_static_from_elts_p): Move prototype to tree.c.
492         * rtl.h (split_double): Moved here from output.h.
493         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
494         * final.c (split_double): Move from here ...
495         * rtlanal.c (split_double): ... to here.
496         * expr.c: Do not include output.h.
498 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
500         * cfglayout.h: Remove.
501         * cfglayout.c: Remove.
502         * function.h (struct function): Remove x_last_location field.
503         * function.c: Do not include cfglayout.h.
504         (expand_function_start): Do not call no-op force_next_line_note.
505         (expand_function_end): Likewise.
506         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
507         (unlink_insn_chain): Moved here from cfglayout.c.
508         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
509         into_cfg_layout_mode, outof_cfg_layout_mode,
510         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
511         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
512         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
513         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
514         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
515         cfg_layout_finalize): Likewise.
516         (rtl_can_remove_branch_p): Likewise.
517         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
518         (duplicate_insn_chain): Likewise.
519         (force_next_line_note): Remove prototype.
520         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
521         (last_location): Remove #define to emit.x_last_location.
522         (force_next_line_note): Remove no-op function.
523         (init_emit): Don't set x_last_location.
524         (block_locators_locs, block_locators_blocks, locations_locators_locs,
525         locations_locators_vals, prologue_locator, epilogue_locator,
526         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
527         Move POD to here from cfglayout.c.
528         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
529         set_curr_insn_source_location, get_curr_insn_source_location,
530         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
531         locator_scope, insn_scope, locator_location, locator_line, insn_line,
532         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
533         * cfghooks.h: Remove double-include protection.
534         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
535         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
536         * final.c: Do not include cfglayout.h.
537         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
538         (reemit_insn_block_notes): Likewise.  Make static.
539         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
540         operation_could_trap_p, tree_could_throw_p): Move from here...
541         * tree.h: ... to here.
542         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
543         * profile.c: Do not include cfghooks.h.
544         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
545         * modulo-sched.c: Likewise.
546         * loop-unswitch.c: Do not include cfglayout.h.
547         * sched-ebb.c: Likewise.
548         * tracer.c: Likewise.
549         * ddg.c: Likewise.
550         * tree-vect-loop-manip.c: Likewise.
551         * loop-init.c: Likewise.
552         * dwarf2out.c: Likewise.
553         * hw-doloop.c: Likewise.
554         * loop-unroll.c: Likewise.
555         * cfgcleanup.c: Likewise.
556         * bb-reorder.c: Likewise.
557         * sched-rgn.c: Likewise.
558         * tree-cfg.c: Likewise.
559         * config/alpha/alpha.c: Likewise.
560         * config/spu/spu.c: Likewise.
561         * config/sparc/sparc.c: Likewise.
562         * config/sh/sh.c: Likewise.
563         * config/c6x/c6x.c: Likewise.
564         * config/ia64/ia64.c: Likewise.
565         * config/rs6000/rs6000.c: Likewise.
566         * config/score/score.c: Likewise.
567         * config/mips/mips.c: Likewise.
568         * config/bfin/bfin.c: Likewise.
569         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
570         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
571         * config/spu/t-spu-elf (spu.o: $): Likewise.
572         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
574 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
576         * cfgloop.h: Do not include rtl.h.
577         (enum iv_extend_code): New.
578         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
579         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
580         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
581         an IV_EXTEND_CODE to an RTX_CODE.
582         (dump_iv_info): Update for rtx_iv field type change.
583         (iv_constant): Likewise.
584         (iv_subreg): Likewise.
585         (iv_extend): Likewise.
586         (iv_neg): Likewise.
587         (iv_add): Likewise.
588         (iv_mult): Likewise.
589         (iv_shift): Likewise.
590         (get_biv_step_1): Likewise.
591         (get_biv_step): Likewise.
592         (iv_analyze_biv): Likewise.
593         (get_iv_value): Likewise.
594         (shorten_into_mode): Likewise.
595         (canonicalize_iv_subregs): Likewise.
596         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
597         of MAY_HAVE_DEBUG_INSNS.
598         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
599         * tree-ssa-loop-prefetch.c: Likewise.
601 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
603         * expmed.c (ceil_log2): Move from here...
604         * hwint.c: ... to here for older GCCs...
605         * hwint.h: ... and here for newer GCCs.
606         * rtl.h (ceil_log2): Remove prototype.
608         * tree-phinodes.c: Do not include rtl.h.
609         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
611 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
613         * config/cris/cris.h (TARGET_ELF): Remove.
614         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
615         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
616         (LOCAL_LABEL_PREFIX): Likewise.
617         * config/cris/cris.c (cris_target_asm_named_section): Remove.
618         (cris_option_override): Simpify using TARGET_ELF==1.
619         (cris_file_start): Likewise.
620         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
622 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
624         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
626 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
628         PR middle-end/53590
629         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
631 2012-06-15  Easwaran Raman  <eraman@google.com>
633         * passes.c (init_optimization_passes): Remove pass_call_cdce
634         from its current position and insert after pass_dce.
636 2012-06-15  Walter Lee  <walt@tilera.com>
638         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
640 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
642         * arm.c (note_invalid_constants): Don't return a result.
643         (arm_memory_load_p): Delete function.
644         (arm_const_double_rtx): Delete iterator variable i;
645         (fp_immediate_constant): Likewise.
646         (fp_const_from_val): Likewise.
648         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
650 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
652         PR c++/51033
653         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
654         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
656 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
658         * config/avr/avr.c (avr_default_expand_builtin): New function.
659         (avr_expand_builtin): Use it.
660         (avr_expand_unop_builtin): Remove.
661         (avr_expand_binop_builtin): Remove.
662         (avr_expand_triop_builtin): Remove.
664 2012-06-15  Michael Matz  <matz@suse.de>
666         PR middle-end/38474
667         * cfgexpand.c (add_alias_set_conflicts): Remove.
668         (expand_used_vars): Don't call it.
669         (aggregate_contains_union_type): Remove.
670         * function.c (n_temp_slots_in_use): New static data.
671         (make_slot_available, assign_stack_temp_for_type): Update it.
672         (init_temp_slots): Zero it.
673         (remove_unused_temp_slot_addresses): Use it for quicker removal.
674         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
676 2012-06-15  Michael Matz  <matz@suse.de>
678         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
679         argument, don't emit assign statement if value is directly usable.
680         (gimplify_expr): Adjust.
682 2012-06-15  Michael Matz  <matz@suse.de>
684         * gimplify.c (gimplify_modify_expr): Fold generated statements.
685         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
687 2012-06-15  Richard Guenther  <rguenther@suse.de>
689         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
690         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
691         we assert for in set_value_range to VR_VARYING.
693 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
695         * arm.md (addsf3, adddf3): Use s_register_operand.
696         (subsf3, subdf3): Likewise.
697         (mulsf3, muldf3): Likewise.
698         (difsf3, divdf3): Likewise.
699         (movsfcc, movdfcc): Likewise.
700         * predicates.md (f_register_operand): Delete.
701         (arm_float_rhs_operand): Delete.
702         (arm_float_add_operand): Delete.
703         (arm_float_compare_operand): Use s_register_operand when
704         there's no VFP.
705         (cirrus_register_operand): Delete.
706         (cirrus_fp_register): Delete.
707         (cirrus_shift_const): Delete.
708         (cmpdi_operand): Remove Maverick support.
709         * constraints.md (f, v, H): Delete constraints.
710         (G): Update documentation.
711         * arm.c (fp_consts_inited): Convert to bool.
712         (strings_fp): Delete.
713         (values_fp): Delete.
714         (value_fp0): New variable.
715         (init_fp_table): Simplify logic.
716         (arm_const_double_rtx): Likewise.
717         (fp_immediate_constant): Likewise.
718         (fp_const_from_val): Likewise.
719         (neg_const_double_rtx_ok_for_fpa): Delete.
720         * doc/md.texi (ARM constraints): Update documentation.
722 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
724         PR tree-optimization/53636
725         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
726         stride when doing basic-block vectorization.
728 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
730         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
731         into VEC_PERM_EXPR.
733 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
735         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
736         allocate and free bbs array for the SLP case.
738         PR tree-optimization/51581
739         * expr.h (choose_multiplier): New prototype.
740         * expmed.c (choose_multiplier): No longer static.
741         Change multiplier_ptr from rtx * to UHWI *.
742         (expand_divmod): Adjust callers.
743         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
744         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
745         argument to new_stmt_vec_info.  Attempt to optimize also divisions
746         by non-pow2 constants if integer vector division isn't supported.
747         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
748         don't look at pattern stmts and sequences.
750 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
752         PR middle-end/53590
753         * common.opt (-fdelete-dead-exceptions): New switch.
754         * doc/invoke.texi (Code Gen Options): Document it.
755         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
756         insn_could_throw_p predicate.  Do not skip an insn that could throw
757         if dead exceptions can be deleted.
758         (insn_live_p): Likewise, do not return true in that case.
759         * dce.c (can_alter_cfg): New flag.
760         (deletable_insn_p): Do not return false for an insn that can throw if
761         the CFG can be altered and dead exceptions can be deleted.
762         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
763         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
764         predicate. Do not preserve an insn that could throw if dead exceptions
765         can be deleted.
766         * function.h (struct function): Add can_delete_dead_exceptions flag.
767         * function.c (allocate_struct_function): Set it.
768         * lto-streamer-in.c (input_struct_function_base): Stream it.
769         * lto-streamer-out.c (input_struct_function_base): Likewise.
770         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
771         statement that could throw as necessary if dead exceptions can be
772         deleted.
774 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
776         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
778 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
780         PR target/53568
781         * config/sh/sh.md: Add peephole for swapbsi2.
782         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
784 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
786         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
787         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
789 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
791         PR target/53639
792         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
794 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
796         * arm.c (arm_cirrus_insn_p): Delete.
797         (cirrus_reorg): Delete.
798         (arm_reorg): Don't call cirrus_reorg.
799         (arm_final_prescan_insn_p): Don't check for cirrus insns.
800         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
801         (adddi3, subdi3): Remove Maverick support.
802         (arm_adddi3): Likewise.
803         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
804         (addsf3, adddf3): Likewise.
805         (subsf3, subdf3): Likewise.
806         (mulsf3, muldf3): Likewise.
807         (ashldi3, ashrdi3, lshrdi3): Likewise.
808         (floatsisf2, floatsidf2): Likewise.
809         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
810         (arm_movdi, thumb1_movdi_insn): Likewise.
811         (arm_cmpdi_insn): Likewise.
812         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
813         (cirrus.md): Don't include.
814         * cirrus.md: Delete file.
815         * t-arm (MD_INCLUDES): Remove cirrus.md.
817 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
819         * dwarf2out.c (function_possibly_abstracted_p): New static function.
820         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
821         cgraph_function_possibly_inlined_p.
822         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
823         (process_scope_var): Do not emit concrete instances of abstracted
824         nested functions from here.
825         (gen_decl_die): Emit the abstract instance if the function is possibly
826         abstracted and not only possibly inlined.
827         (dwarf2out_finish): Find the first non-abstract parent instance and
828         attach concrete instances on the limbo list to it.
830 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
832         * arm.md (divsf3, divdf3): Remove FPA support.
833         (negsf2, negdf2): Likewise.
834         (sqrtsf2, sqrtdf2): Likewise.
835         (movdfcc): Likewise.
836         (modsf3, moddf3, movxf): Delete.
837         (push_fp_multi): Delete.
838         (fpa.md): Don't include it.
839         * fpa.md: Delete file.
840         * t-arm (MD_INCLUDES): Remove fpa.md.
842 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
844         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
845         (cost_for_stmt): Remove decl.
846         (vect_get_single_scalar_iteration_cost): Correct typo in name.
847         * tree-vect-loop.c (vect_get_cost): Remove.
848         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
849         vect_get_stmt_cost rather than vect_get_cost.
850         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
851         vect_get_cost.
852         (vect_estimate_min_profitable_iters): Correct typo in call to
853         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
854         than vect_get_cost.
855         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
856         vect_get_cost.
857         (vect_model_induction_cost): Likewise.
858         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
859         typo in call to vect_get_single_scalar_iteration_cost.
860         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
861         (cost_for_stmt): Remove unnecessary function.
862         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
864 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
866         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
867         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
868         * arm-tables.opt: Regenerated.
869         * doc/invoke.texi: Remove references to deleted options.
871 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
873         * config/h8300/genmova.sh: Modified to add offset bits of
874         mova/Sz assembly instruction for memory access.
875         * config/h8300/h8300.c: Likewise.
876         * config/h8300/mova.md: Likewise.
878 2012-06-12  Christian Bruel  <christian.bruel@st.com>
880         PR target/53621
881         * config/sh/sh.c (sh_option_override): Don't force
882          flag_omit_frame_pointer and maccumulate_outgoing_args.
883         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
885 2012-06-14  Richard Guenther  <rguenther@suse.de>
887         * tree-vrp.c (VR_INITIALIZER): New define.
888         (ranges_from_anti_range): New function.
889         (extract_range_from_binary_expr_1): Decompose operations on
890         VR_ANTI_RANGEs to operations on VR_RANGE.
891         (extract_range_from_unary_expr_1): Likewise.
892         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
893         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
894         extract_range_from_cond_expr, adjust_range_with_scev,
895         vrp_visit_assignment_or_call, vrp_visit_phi_node,
896         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
898 2012-06-13  Richard Henderson  <rth@redhat.com>
900         * hwint.h (HOST_WIDEST_INT_C): New.
901         (HOST_WIDE_INT_C): New.
902         (HOST_WIDE_INT_1): Use it.
903         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
905 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
907         PR debug/49888
908         * var-tracking.c: Include alias.h.
909         (overlapping_mems): New struct.
910         (drop_overlapping_mem_locs): New.
911         (clobber_overlapping_mems): New.
912         (var_mem_delete_and_set, var_mem_delete): Call it.
913         (val_bind): Likewise, but only if modified.
914         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
915         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
917 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
919         PR debug/47624
920         * var-tracking.c (loc_exp_dep_pool): New.
921         (vt_emit_notes): Create and release the pool.
922         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
923         (emit_notes_in_bb): Likewise.
924         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
925         (notify_dependents_of_changed_value): Likewise.
926         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
927         variables don't have a VAR_LOC_DEP_LST.
928         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
929         VALUEs or MEMs of VALUEs.
931 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
933         PR debug/52983
934         PR debug/48866
935         * dce.c (word_dce_process_block): Insert debug temps only if the
936         insn is not marked.
937         (dce_process_block): Likewise, and if debug.used is not empty,
938         and only after iterating over all DEFs that might mark the insn.
940 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
942         * common.opt (ftree-coalesce-inlined-vars): New.
943         (ftree-coalesce-vars): New.
944         * doc/invoke.texi: Document them.
945         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
946         Implement them.
948 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
950         * read-rtl.c (mapping): Remove index field.  Add current_value field.
951         Define heap vectors.
952         (iterator_group): Fix long line.  Remove num_builtins field and
953         uses_iterator fields.  Make apply_iterator take a void * parameter.
954         (iterator_use, atttribute_use): New structures.
955         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
956         (current_iterators, iterator_uses, attribute_uses): New variables.
957         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
958         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
959         (map_attr_string, apply_iterator_to_string): Remove iterator
960         and value parameters.  Look through all current iterator values
961         for a matching attribute.
962         (mode_attr_index, apply_mode_maps): Delete.
963         (apply_iterator_to_rtx): Replace with...
964         (copy_rtx_for_iterators): ...this new function.
965         (uses_iterator_p, apply_iterator_traverse): Delete.
966         (apply_attribute_uses, add_current_iterators, apply_iterators): New
967         functions.
968         (add_mapping): Remove index field.  Set current_value field.
969         (initialize_iterators): Don't set num_builtins and uses_iterator_p
970         fields.
971         (find_iterator): Delete.
972         (record_iterator_use, record_attribute_use): New functions.
973         (record_potential_iterator_use): New function.
974         (check_code_iterator): Remove handling of bellwether codes.
975         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
976         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
977         parameter.  Use the first code iterator value instead of the
978         bellwether_codes array.  Use record_potential_iterator_use for modes.
980 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
982         PR target/53568
983         * config/sh/sh.md (bswapsi2): New expander.
984         (swapbsi2): New insn.
986 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
988         PR target/53647
989         * config/i386/i386.c (ix86_tune_cost): New variable.
990         (ix86_option_override_internal): Set ix86_tune_cost.  Use
991         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
992         l1_cache_size and l2_cache_size.
994 2012-06-13  Richard Guenther  <rguenther@suse.de>
996         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
997         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
998         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
999         VR_ANTI_RANGE with VR_ANTI_RANGE.
1001 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
1003         * config.gcc (unsupported): Move obsoleted FPA-based configurations
1004         here from ...
1005         (obsolete): ... here.
1006         (arm*-*-freebsd*): Remove.
1007         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
1008         (arm*-*-uclinux*): Likewise.
1009         (arm*-*-ecos-elf): Remove.
1010         (arm*-*-rtems*): Remove.
1011         (arm*-*-elf): Remove.
1012         (arm*-wince-pe*): Remove.
1013         (arm, --with-fpu): Remove support for fpa and Maverick variants.
1014         * arm/ecos-elf.h: Delete.
1015         * arm/t-strongarm-elf: Delete.
1016         * arm/rtems-elf.h: Delete.
1017         * arm/wince-pe.h: Delete.
1018         * arm/pe.c: Delete.
1019         * arm/pe.h: Delete.
1020         * arm/t-wince-pe: Delete.
1022 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
1024         PR tree-optimization/53647
1025         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
1026         targets with no defined cache line size.
1028 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
1030         * targhooks.c (default_builtin_vectorized_conversion): Handle
1031         vec_construct, using vectype to base cost on subparts.
1032         * target.h (enum vect_cost_for_stmt): Add vec_construct.
1033         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
1034         instead of scalar_to-vec.
1035         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
1036         vec_construct in same way as default for now.
1037         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1038         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1039         Handle vec_construct, including special case for 32-bit loads.
1041 2012-06-13  Xinyu Qi <xyqi@marvell.com>
1043         * config/arm/arm.c (FL_IWMMXT2): New define.
1044         (arm_arch_iwmmxt2): New variable.
1045         (arm_option_override): Enable use of iWMMXt with VFP.
1046         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
1047         Thumb mode. Set arm_arch_iwmmxt2.
1048         (arm_expand_binop_builtin): Accept VOIDmode op.
1049         (enum arm_builtins): Revise built-in fcode.
1050         (IWMMXT2_BUILTIN): New define.
1051         (IWMMXT2_BUILTIN2): Likewise.
1052         (iwmmx2_mbuiltin): Likewise.
1053         (builtin_description bdesc_2arg): Revise built in declaration.
1054         (builtin_description bdesc_1arg): Likewise.
1055         (arm_init_iwmmxt_builtins): Revise built in initialization.
1056         (arm_expand_builtin): Revise built in expansion.
1057         (arm_output_iwmmxt_shift_immediate): New function.
1058         (arm_output_iwmmxt_tinsr): Likewise.
1059         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
1060         (arm_output_iwmmxt_tinsr): Likewise.
1061         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
1062         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
1063         (rorv4hi3, rorv2si3, rordi3): Likewise.
1064         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
1065         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
1066         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
1067         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
1068         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
1069         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
1070         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
1071         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
1072         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
1073         (ror<mode>3, ror<mode>3_di): Likewise.
1074         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
1075         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
1076         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
1077         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
1078         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
1079         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
1080         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
1081         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
1082         (All instruction patterns): Add wtype attribute.
1083         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
1084         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
1085         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
1086         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
1087         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
1088         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
1089         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
1090         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
1091         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
1092         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
1093         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
1094         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
1095         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
1096         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
1097         (iwmmxt2.md): Include.
1098         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
1099         (TARGET_IWMMXT2): New define.
1100         (TARGET_REALLY_IWMMXT2): Likewise.
1101         (arm_arch_iwmmxt2): Declare.
1102         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
1103         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
1104         Use C name-mangling for intrinsics.
1105         (__v8qi): Redefine.
1106         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
1107         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
1108         (_m_from_int): Likewise.
1109         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
1110         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
1111         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
1112         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
1113         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
1114         (_mm_tbcst_pi32): Likewise.
1115         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
1116         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
1117         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
1118         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
1119         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
1120         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
1121         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
1122         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
1123         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
1124         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
1125         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
1126         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
1127         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
1128         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
1129         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
1130         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
1131         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
1132         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
1133         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
1134         (_m_to_int): New define.
1135         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
1136         * config/arm/arm-arches.def (iwmmxt2): Likewise.
1137         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
1138         iwmmxt2.md.
1139         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
1140         (arch): Add "iwmmxt2".
1141         (arch_enabled): Handle "iwmmxt2".
1142         (wtype): New attribute.
1143         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
1144         (UNSPEC_WALIGNI): New unspec.
1145         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
1146         * config/arm/iterators.md (VMMX2): New mode_iterator.
1147         * config/arm/marvell-f-iwmmxt.md: New file.
1148         * config/arm/iwmmxt2.md: New file.
1150 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
1152         PR c/53532
1153         PR c/51034
1154         PR c/53196
1155         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
1156         if type isn't complete.
1158 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
1160         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
1162 2012-06-12  Richard Henderson  <rth@redhat.com>
1164         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
1165         iterator instead of INT.
1167 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
1169         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
1170         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
1171         declaration.
1172         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
1173         (tree_ssa_phiopt): Call gate_hoist_loads.
1174         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
1175         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
1176         hoist_adjacent_loads.
1177         (local_mem_dependence): New function.
1178         (hoist_adjacent_loads): Likewise.
1179         (gate_hoist_loads): Likewise.
1180         * common.opt (fhoist-adjacent-loads): New switch.
1181         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
1183 2012-06-12  Michael Matz  <matz@suse.de>
1185         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
1186         (nonoverlapping_memrefs_p): Don't call it here ...
1187         (true_dependence_1): ... but here.
1189 2012-06-12  Richard Guenther  <rguenther@suse.de>
1191         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
1192         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
1193         and MEM_SIZE only refines it.  Reflect that and be less conservative
1194         if either of the latter is not known.
1196 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
1198         PR rtl-optimization/53589
1199         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
1200         discovery even when e->dest != target.  If any LABEL_REF points
1201         to e->dest label, redirect it to target's label.
1203 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
1205         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
1206         condition for generating REG_FRAME_RELATED_EXPR note.
1207         (pop): Add code for generating REG_CFA_RESTORE,
1208         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
1209         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
1210         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
1212 2012-06-11  Richard Henderson  <rth@redhat.com>
1214         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
1215         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
1217         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
1219 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
1221         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
1222         Mention that this hook needs to be defined for native TLS.
1223         * doc/tm.texi: Regenerate.
1225 2012-06-11  Mike Stump  <mikestump@comcast.net>
1227         * emit-rtl.c (init_emit_once): Iterate through the
1228         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
1229         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
1230         all the MIN_MODE_PARTIAL_INT modes anymore.
1232 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
1234         * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
1236 2012-06-11  Roland McGrath  <mcgrathr@google.com>
1238         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
1239         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
1240         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
1241         operand.
1243 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
1245         PR target/53511
1246         * config/sh/sh.md (fmasf4): New expander.
1247         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
1248         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
1249         * config/sh/sh.opt (mfused-madd): Remove.
1250         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
1251         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
1252         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
1253         as extra options.
1254         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
1255         descriptions.
1257 2012-06-11  Richard Henderson  <rth@redhat.com>
1259         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
1261 2012-06-11  Richard Guenther  <rguenther@suse.de>
1263         PR middle-end/53470
1264         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
1265         replace it with the first non-BLOCK context.
1267 2012-06-11  Richard Guenther  <rguenther@suse.de>
1269         * alias.c (aliases_everything_p): Remove.
1270         (DIFFERENT_ALIAS_SETS_P): Likewise.
1271         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
1272         Do not use aliases_everything_p or special-case ANDs.  Do not
1273         special-case BLKmode moves.
1274         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
1275         - for SCATCH only.
1277 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
1279         Fix CRIS build errors with --enable-build-with-cxx.
1280         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
1281         variable "and" to "andop".
1282         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
1283         temporary variable for memory model, passing C++-type-correct
1284         parameter type to expand_mem_thread_fence.
1285         ("atomic_compare_and_swap<mode>"): Ditto.
1287 2012-06-09  Richard Henderson  <rth@redhat.com>
1289         PR c++/53602
1290         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
1291         (pass_jump): Rename from pass_jump2.
1292         (execute_jump2, pass_jump2): New.
1293         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
1294         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
1295         and ACCUMULATE_OUTGOING_ARGS test...
1296         (gate_handle_stack_adjustments): ... here.
1297         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
1298         Place new pass_jump2 after pass_stack_adjustments.
1299         * tree-pass.h (pass_jump): Declare.
1301 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
1303         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
1304         count trucation.
1306 2012-06-08  Richard Henderson  <rth@redhat.com>
1308         PR c++/53602
1309         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
1310         note to a clobber insn when no other insn is available.
1312 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
1314         * config/avr/avr.c (avr_case_values_threshold): Return 7.
1316 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
1318         * genhooks.c (main): Set progname.
1319         (emit_documentation): Remove variable found_start, always bail out
1320         when a place is missing.
1321         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
1323 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1325         PR middle-end/53580
1326         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
1327         call walk_gimple_seq_mod instead of walk_gimple_seq.
1328         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
1329         scan_omp_for, scan_omp_sections, scan_omp_single,
1330         execute_lower_omp): Adjust callers.
1331         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
1332         returns false, replace stmt with GIMPLE_NOP.
1333         (check_omp_nesting_restrictions): Instead of issuing warnings,
1334         issue errors and return false if any errors were reported.
1336 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1338         * doc/invoke.texi (fconserve-space): Remove documentation.
1340 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
1342         * config/rs6000/rs6000-tables.opt: Regenerated.
1344 2012-06-06  Richard Guenther  <rguenther@suse.de>
1346         PR tree-optimization/53081
1347         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
1348         (adjacent_dr_p): ... this and make it work for reads, too.
1349         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
1350         (struct partition_s): Change main_stmt to main_dr, add
1351         secondary_dr member.
1352         (build_size_arg_loc): Change to date data-reference and not
1353         gimplify here.
1354         (build_addr_arg_loc): New function split out from ...
1355         (generate_memset_builtin): ... here.  Use it and simplify.
1356         (generate_memcpy_builtin): New function.
1357         (generate_code_for_partition): Adjust.
1358         (classify_partition): Streamline pattern detection.  Detect memcpy.
1359         (ldist_gen): Adjust.
1360         (tree_loop_distribution): Adjust seed statements for memcpy
1361         recognition.
1363 2012-06-06  Matt Turner  <mattst88@gmail.com>
1365         * config/arm/mmintrin.h (_mm_empty): New.
1366         (_m_empty): New.
1368 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
1370         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
1371         * common.opt (fsched-pressure-algorithm=): Remove.
1372         * flag-types.h (sched_pressure_algorithm): Move to...
1373         * sched-int.h (sched_pressure_algorithm): ...here.
1374         * params.def (sched-pressure-algorithm): New param.
1375         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
1376         * common/config/s390/s390-common.c (s390_option_optimization_table):
1377         Remove OPT_fsched_pressure_algorithm_ entry.
1378         * config/s390/s390.c (s390_option_override): Set a default value for
1379         PARAM_SCHED_PRESSURE_ALGORITHM.
1381 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1383         PR target/53487
1384         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
1385         doing an unsigned compare, make sure the second argument is not a
1386         negative constant.
1387         (rs6000_emit_cmove): Don't allow floating point comparisons when
1388         generating ISEL moves.
1390 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
1392         * config/rs6000/e5500.md: New file.
1393         * config/rs6000/e6500.md: New file.
1394         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1395         e5500 and e6500.
1396         (rs6000_option_override_internal): Altivec and Spe options not
1397         allowed with e5500. Spe options not allowed with e6500. Increase
1398         move inline limit for e5500 and e6500. Disable string instructions
1399         for e5500 and e6500. Enable branch targets alignment for e5500 and
1400         e6500. Initialize rs6000_cost for e5500 and e6500.
1401         (rs6000_adjust_cost): Add extra scheduling cycles between compare
1402         and brnach for e5500 and e6500.
1403         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
1404         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
1405         e6500.
1406         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
1407         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
1408         ppce6500.
1409         Include e5500.md and e6500.md.
1410         * config/rs6000/rs6000-opt.h (processor_type): Add
1411         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
1412         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
1413         (powerpc*-*-*): Add new cores e5500, e6500.
1414         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
1416 2012-06-05  Richard Guenther  <rguenther@suse.de>
1418         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
1420 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1422         PR target/53575
1423         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
1424         is used for x86_64-*-*.
1426 2012-06-05  Richard Guenther  <rguenther@suse.de>
1428         PR tree-optimization/30442
1429         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
1430         vectorization stop analysis at the first stmt we cannot compute
1431         a data-reference for instead of giving up completely.
1433 2012-06-05  Richard Guenther  <rguenther@suse.de>
1435         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
1436         (partition_alloc): Initialize it.
1437         (partition_has_writes): New function.
1438         (rdg_flag_uses): Adjust.
1439         (rdg_flag_vertex): Likewise.
1440         (rdg_flag_vertex_and_dependent): Likewise.
1441         (rdg_flag_loop_exits): Likewise.
1442         (build_rdg_partition_for_component): Likewise.
1443         (rdg_build_partitions): Likewise.
1445 2012-06-05  Richard Guenther  <rguenther@suse.de>
1447         PR tree-optimization/53081
1448         * tree-loop-distribution.c (generate_memset_builtin): Handle all
1449         kinds of byte-sized stores.
1450         (classify_partition): Likewise.
1451         (tree_loop_distribution): Adjust seed statements used for
1452         !flag_tree_loop_distribution.
1454 2012-06-05  Alan Modra  <amodra@gmail.com>
1456         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
1457         (rs6000_emit_prologue): Ensure register used for inline saves
1458         of vector regs is not the static chain register.  Revise comment.
1460 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1462         * doc/md.texi (Standard Pattern Names For Generation): Document
1463         sincos pattern.
1465 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1467         PR bootstrap/53555
1468         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
1470 2012-06-04  Jason Merrill  <jason@redhat.com>
1472         * dwarf2out.c (is_unit_die): New.
1473         (copy_declaration_context, copy_ancestor_tree): Use it.
1474         (copy_decls_walk): Likewise.
1476 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
1478         PR c++/53524
1479         * doc/invoke.texi (Wenum-compare): Update documentation.
1481 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
1483         PR preprocessor/53463
1484         * parser.c (cp_parser_assignment_expression): Use the location
1485         for the '=' as the default location for the expression.
1487 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
1489         PR target/53559
1490         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
1491         operands.
1492         (altivec_stvlxl): Ditto.
1493         (altivec_stvrx): Ditto.
1494         (altivec_stvrxl): Ditto.
1496 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
1498         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
1499         (ira_uniform_class_p): New macro.
1501         * ira.c (setup_uniform_class_p): New function.
1502         (setup_allocno_and_important_classes): Call the function.
1503         (print_unform_and_important_classes): New function.
1504         (print_classes): Rename to print_translated_classes.
1505         (ira_debug_allocno_classes): Add call of
1506         print_unform_and_important_classes.
1508         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
1509         classes instead of pressure classes.
1511 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
1513         PR middle-end/47530
1514         * trans-mem.c (expand_block_edges): Do not skip the first
1515         statement when resetting the BB.
1517 2012-06-04  Richard Guenther  <rguenther@suse.de>
1519         * tree-data-ref.c (stores_from_loop): Remove.
1520         (stmt_with_adjacent_zero_store_dr_p): Likewise.
1521         (stores_zero_from_loop): Likewise.
1522         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
1523         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
1524         (adjacent_store_dr_p): New function.
1525         * tree-loop-distribution.c (generate_memset_builtin): Pass
1526         the RDG, use the already available data-reference.
1527         (generate_code_for_partition): Pass down RDG.
1528         (classify_partition): Inline parts of the former
1529         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
1530         (ldist_gen): Remember if there was any detected builtin and
1531         do less work if not and flag_tree_loop_distribution is not set.
1532         (tree_loop_distribution): Inline and fuse stores_from_loop
1533         and stores_zero_from_loop here.
1535 2012-06-04  Richard Guenther  <rguenther@suse.de>
1537         PR middle-end/53471
1538         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
1539         create new assembler names.
1541 2012-06-04  Richard Guenther  <rguenther@suse.de>
1543         * tree-data-ref.c (struct rdg_vertex_info): Remove.
1544         (rdg_vertex_for_stmt): Simplify using gimple_uid.
1545         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
1546         hashtable.   Record stmt data-references.
1547         (hash_stmt_vertex_info): Remove.
1548         (eq_stmt_vertex_info): Likewise.
1549         (hash_stmt_vertex_del): Likewise.
1550         (build_empty_rdg): Simplify.
1551         (build_rdg): Adjust.
1552         (free_rdg): Likewise.
1553         (ref_base_address): Remove.
1554         (have_similar_memory_accesses): Likewise.
1555         * tree-data-ref.h (create_rdg_vertices): Remove.
1556         (struct rdg_vertex): Add datarefs member.
1557         (RDGV_DATAREFS): New define.
1558         (RDG_DATAREFS): Likewise.
1559         (have_similar_memory_accesses): Remove.
1560         (rdg_has_similar_memory_accesses): Likewise.
1561         * tree-loop-distribution.c (ref_base_address): Re-implement here.
1562         (similar_memory_accesses): Re-implement using existing data-references.
1563         (tree_loop_distribution): Initialize stmt uids for the stmt to
1564         RDG index mapping.
1565         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1566         access stmt vinfo for stmts in loop.
1568 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1570         PR target/53461
1571         * config/m68k/m68k.md ("tablejump"): Fix check for
1572         CASE_VECTOR_PC_RELATIVE.
1574 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1576         * output.h (merge_weak, assemble_alias,
1577         initializer_constant_valid_p,
1578         initializer_constant_valid_for_bitfield_p): Move protos from here...
1579         * tree.h: ... to here.
1580         * cgraphclones.c: Do not include output.h.
1581         * gimplify.c: Likewise.
1582         * reload.c: Likewise.
1583         * recog.c: Likewise.
1584         * tree-ssa-loop-ivopts.c: Likewise.
1585         * tree-switch-conversion.c: Likewise.
1586         * c-parser.c: Likewise.
1587         * c-typeck.c: Likewise.
1588         * Makefile.in: Fix dependencies.
1590 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
1592         PR target/46261
1593         * config/avr/avr-stdint.h: New file.
1594         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
1595         newlib-stdint.h
1597 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
1599         PR tree-optimization/53550
1600         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
1601         is POINTER_TYPE_P, use sizetype as step type instead of type.
1603 2012-06-04  Richard Guenther  <rguenther@suse.de>
1605         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
1606         (ref_base_address_1): Likewise.
1607         (remove_similar_memory_refs): Likewise.
1608         * tree-data-ref.h (remove_similar_memory_refs): Remove.
1609         * tree-loop-distribution.c (classify_partition): Do not classify
1610         as builtin if -ftree-loop-distribute-patterns is not enabled.
1611         (fuse_partitions_with_similar_memory_accesses): Inline ...
1612         (ldist_gen): ... here.  Fuse all non-builtin partitions if
1613         -ftree-loop-distribution is not enabled.  Properly return
1614         the number of created partitions.  Do not update SSA form here but ...
1615         (tree_loop_distribution): ... once here for the whole function.
1616         Only walk innermost loops, constrain loops we consider here
1617         further.  Do not call remove_similar_memory_refs.
1618         (distribute_loop): Do not check number of loop nodes here.
1620 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1622         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
1624 2012-06-03  Martin Jambor  <mjambor@suse.cz>
1626         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
1627         (ipa_get_jf_known_type_base_type): Likewise.
1628         (ipa_get_jf_known_type_component_type): Likewise.
1629         (ipa_get_jf_constant): Likewise.
1630         (ipa_get_jf_pass_through_formal_id): Likewise.
1631         (ipa_get_jf_pass_through_operation): Likewise.
1632         (ipa_get_jf_ancestor_offset): Likewise.
1633         (ipa_get_jf_ancestor_type): Likewise.
1634         (ipa_get_jf_ancestor_formal_id): Likewise.
1635         (ipa_get_jf_member_ptr_pfn): Likewise.
1636         * ipa-prop.c (ipa_set_jf_known_type): New function.
1637         (ipa_set_jf_constant): Likewise.
1638         (ipa_set_jf_simple_pass_through): Likewise.
1639         (ipa_set_jf_arith_pass_through): Likewise.
1640         (ipa_set_ancestor_jf): Likewise.
1641         (fill_member_ptr_cst_jump_function): Moved up and renamed to
1642         ipa_set_jf_member_ptr_cst.
1643         (detect_type_change_1): Use the new jump function creation functions.
1644         (compute_complex_assign_jump_func): Likewise.
1645         (compute_complex_ancestor_jump_func): Likewise.
1646         (compute_known_type_jump_func): Likewise.
1647         (compute_scalar_jump_functions): Likewise.
1648         (compute_pass_through_member_ptrs): Likewise.
1649         (determine_cst_member_ptr): Likewise.
1650         (combine_known_type_and_ancestor_jfs): Likewise.
1651         (try_make_edge_direct_simple_call): Likewise.
1652         (try_make_edge_direct_virtual_call): Likewise.
1653         (update_indirect_edges_after_inlining): Likewise.
1654         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
1655         access functions.  Incorporat NOP_EXPR and BINFO handling from its
1656         callers.
1657         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
1658         which was in its callers.
1659         (ipa_value_from_jfunc): Use jump function access functions.  Some
1660         functionality moved to functions above.
1661         (propagate_vals_accross_ancestor): Likewise.
1662         (propagate_vals_accross_pass_through): Use jump function access
1663         functions.
1664         (propagate_accross_jump_function): Likewise.
1665         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
1666         access functions.
1667         (inline_merge_summary): Likewise.
1669 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1671         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
1672         * config/pa/pa.c (pa_attr_length_millicode_call): Use
1673         MAX_PCREL17F_OFFSET instead of fixed offset.
1674         (pa_attr_length_call): Likewise.
1675         (pa_attr_length_indirect_call): Likewise.
1677 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
1679         PR target/53512
1680         * config/sh/sh.opt (mfsca, mfsrra): New options.
1681         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
1682         condition.
1683         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
1684         (sinssf2, cossf2): Fold expanders to ...
1685         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
1686         TARGET_FSCA condition.
1687         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
1688         TARGET_FSCA.
1689         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
1690         -mno-fsca, -mfsrra, -mno-fsrra.
1692 2012-06-03  Matt Turner  <mattst88@gmail.com>
1694         * config/mips/4600.md (r4700_imul_si): New.
1695         (r4700_imul_di): New.
1696         (r4700_fmul_single): New.
1697         (r4700_fmul_double): New.
1698         * config/mips/mips-cpus.def: Add r4700.
1699         * config/mips/mips.c: Likewise.
1700         * config/mips/mips.md: Likewise.
1701         * config/mips/mips-tables.opt: Regenerate.
1703 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
1705         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
1706         new function sparc_initial_elimination_offset.
1707         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
1708         function.
1709         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
1710         Prototype it.
1712 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
1714         * expmed.c (expand_mult, choose_multiplier): Change
1715         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
1716         * expr.c (convert_modes): Likewise.
1717         * explow.c (plus_constant): Likewise.
1718         * fixed-value.c (fixed_saturate1, fixed_saturate2)
1719         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
1720         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
1721         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
1722         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
1723         (do_fixed_shift, fixed_convert, fixed_convert)
1724         (fixed_convert_from_int, fixed_convert_from_int)
1725         (fixed_convert_from_real): Likewise.
1726         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
1727         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
1728         * varasm.c (output_constructor_bitfield): Likewise.
1729         * tree-vrp.c (register_edge_assert_for_2): Likewise.
1730         * double-int.c (rshift_double, lshift_double): Likewise.
1731         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
1732         Likewise.
1733         * simplify-rtx.c (mode_signbit_p)
1734         (simplify_const_unary_operation, simplify_binary_operation_1)
1735         (simplify_immed_subreg): Likewise.
1736         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
1737         * tree-vect-generic.c (build_replicated_const): Likewise.
1738         * dbxout.c (stabstr_O): Likewise.
1739         * emit-rtl.c (immed_double_int_const, immed_double_const)
1740         (gen_lowpart_common, init_emit_once): Likewise.
1741         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
1742         (widest_int_cst_value, upper_bound_in_type): Likewise.
1743         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
1744         (fixup_unsigned_type): Likewise.
1745         * real.c (real_to_integer2, real_from_integer): Likewise.
1746         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
1747         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
1749 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1751         PR middle-end/53501
1752         * fold-const.c (fold_binary_loc): Refine previous change.
1754 2012-06-01  Olivier Hainque  <hainque@adacore.com>
1756         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
1757         the "do {" part of the do-while(0) loop.
1759 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1761         * config/i386/i386.c (x86_sched_reorder): New function.
1762         Added new function x86_sched_reorder.
1764 2012-06-01  Richard Guenther  <rguenther@suse.de>
1766         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1767         Handle PHIs.
1768         (classify_partition): Likewise.
1770 2012-06-01  Richard Guenther  <rguenther@suse.de>
1772         * tree-loop-distribution.c (enum partition_kind): New enum.
1773         (struct partition_s): Add kind and main_stmt members.
1774         (partition_alloc): Initialize kind to PKIND_NORMAL.
1775         (partition_builtin_p): New function.
1776         (copy_loop_before): Remove failure path and assert instead.
1777         (generate_loops_for_partition): Likewise.
1778         (generate_memset_zero): Fold into ...
1779         (generate_memset_builtin): ... this.
1780         (classify_partition): New function with code from
1781         can_generate_builtin and generate_builtin.
1782         (generate_builtin): Remove.
1783         (can_generate_builtin): Likewise.
1784         (fuse_partitions_with_similar_memory_accesses): Call
1785         partition_builtin_p instead of can_generate_builtin.
1786         (rdg_build_partitions): Do not call
1787         fuse_partitions_with_similar_memory_accesses here...
1788         (ldist_gen): ... but here after classifying all partitions.
1789         Remove failure path of generate_code_for_partition.
1790         (generate_code_for_partition): Generate code according
1791         to partition classification.
1793 2012-06-01  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
1794             Jonathan Wakely  <jwakely.gcc@gmail.com>
1796         PR c++/50134
1797         * doc/invoke.texi (Warning Options): Explain purpose and differences
1798         between -Wmissing-prototypes and -Wmissing-declarations.
1800 2012-06-01  Christian Bruel  <christian.bruel@st.com>
1802         * gcc.c (save_switch): Add user_p parameter.
1803         (read_specs): Likewise.
1804         (set_specs): Likewise.
1805         (validate_switches): Likewise.
1806         (validate_switches_from_spec): Likewise.
1807         (validate_all_switches): Pass on user_p parameter.
1808         (struct spec_list): Add user_p field.
1809         (struct switchstr): Add known field.
1810         (save_switch): Add known parameter.
1811         (INIT_STATIC_SPEC): Initialize user_p;
1812         (driver_unknown_option_callbac): call save_switch if
1813         OPT_SPECIAL_unknown.
1814         (driver_handle_option): Propagate OPT_specs.
1815         (do_spec_1): Set validated only if known.
1816         (check_live_switch): Likewise.
1817         (validate_switches): Set validated if known or user_spec.
1819 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
1821         Add CRIS atomic patterns for 1, 2, and 4 bytes.
1822         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
1823         * config/cris/cris-protos.h: Declare it.
1824         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
1825         (TARGET_DEFAULT): Add alignment by 32.
1826         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
1827         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
1828         TARGET_CPU_DEFAULT == 32.
1829         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
1830         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
1831         numbers by replacing the define_constants for all UNSPECs with the
1832         equivalent define_c_enum construct.
1833         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
1834         * config/cris/sync.md: New file.
1836 2012-05-31  Matt Turner  <mattst88@gmail.com>
1838         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
1839         (r4600_imul_di): New.
1840         (r4600_idiv_si): Rename from r4600_idiv.
1841         (r4600_idiv_di): New.
1843 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
1845         * output.h (__gcc_host_wide_int__): Move to hwint.h.
1846         (decl_default_tls_model): Move to tree.h
1847         (dump_file): Move to system.h.
1848         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
1849         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
1850         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
1851         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
1852         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
1853         dbxout_stab_value_internal_label,
1854         dbxout_stab_value_internal_label_diff): Move from here ...
1855         * dbxout.h: ... to here.
1856         * system.h (dump_file): Moved here from output.h.
1857         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
1858         * tree.h (decl_default_tls_model): Moved here from output.h.
1859         * varasm.c (default_stabs_asm_out_destructor,
1860         default_stabs_asm_out_constructor): Move from here ...
1861         * dbxout.c: ... to here.
1863         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
1865         * collect2.h (dump_file): Rename to dump_ld_file.
1866         * collect2.c: Likewise.
1867         * tlink.c: Likewise.
1869         * alias.c: Do not include output.h.
1870         * auto-inc-dec.c: Likewise.
1871         * bt-load.c: Likewise.
1872         * caller-save.c: Likewise.
1873         * cfg.c: Likewise.
1874         * cfgbuild.c: Likewise.
1875         * cfgcleanup.c: Likewise.
1876         * cfglayout.c: Likewise.
1877         * cfgloop.c: Likewise.
1878         * cfgloopanal.c: Likewise.
1879         * cfgloopmanip.c: Likewise.
1880         * cfgrtl.c: Likewise.
1881         * cgraph.c: Likewise.
1882         * cgraphclones.c: Likewise.
1883         * combine-stack-adj.c: Likewise.
1884         * combine.c: Likewise.
1885         * cprop.c: Likewise.
1886         * cse.c: Likewise.
1887         * cselib.c: Likewise.
1888         * dbgcnt.c: Likewise.
1889         * df-problems.c: Likewise.
1890         * df-scan.c: Likewise.
1891         * dojump.c: Likewise.
1892         * fwprop.c: Likewise.
1893         * gcse.c: Likewise.
1894         * graph.c: Likewise.
1895         * haifa-sched.c: Likewise.
1896         * hw-doloop.c: Likewise.
1897         * ipa-inline-transform.c: Likewise.
1898         * ipa-pure-const.c: Likewise.
1899         * ipa-reference.c: Likewise.
1900         * ipa-utils.c: Likewise.
1901         * ira-build.c: Likewise.
1902         * ira-emit.c: Likewise.
1903         * lcm.c: Likewise.
1904         * loop-doloop.c: Likewise.
1905         * loop-invariant.c: Likewise.
1906         * loop-iv.c: Likewise.
1907         * loop-unroll.c: Likewise.
1908         * loop-unswitch.c: Likewise.
1909         * lto-cgraph.c: Likewise.
1910         * lto-section-in.c: Likewise.
1911         * lto-streamer-in.c: Likewise.
1912         * mcf.c: Likewise.
1913         * mode-switching.c: Likewise.
1914         * postreload-gcse.c: Likewise.
1915         * postreload.c: Likewise.
1916         * predict.c: Likewise.
1917         * profile.c: Likewise.
1918         * ree.c: Likewise.
1919         * reg-stack.c: Likewise.
1920         * regcprop.c: Likewise.
1921         * regmove.c: Likewise.
1922         * regstat.c: Likewise.
1923         * reload1.c: Likewise.
1924         * sched-ebb.c: Likewise.
1925         * sel-sched-dump.c: Likewise.
1926         * simplify-rtx.c: Likewise.
1927         * stor-layout.c: Likewise.
1928         * store-motion.c: Likewise.
1929         * tracer.c: Likewise.
1930         * tree-affine.c: Likewise.
1931         * tree-cfg.c: Likewise.
1932         * tree-cfgcleanup.c: Likewise.
1933         * tree-dfa.c: Likewise.
1934         * tree-into-ssa.c: Likewise.
1935         * tree-nomudflap.c: Likewise.
1936         * tree-optimize.c: Likewise.
1937         * tree-pretty-print.c: Likewise.
1938         * tree-profile.c: Likewise.
1939         * tree-ssa-address.c: Likewise.
1940         * tree-ssa-ccp.c: Likewise.
1941         * tree-ssa-copy.c: Likewise.
1942         * tree-ssa-dom.c: Likewise.
1943         * tree-ssa-loop-ch.c: Likewise.
1944         * tree-ssa-loop-im.c: Likewise.
1945         * tree-ssa-loop-manip.c: Likewise.
1946         * tree-ssa-loop-niter.c: Likewise.
1947         * tree-ssa-loop-prefetch.c: Likewise.
1948         * tree-ssa-loop-unswitch.c: Likewise.
1949         * tree-ssa-loop.c: Likewise.
1950         * tree-ssa-propagate.c: Likewise.
1951         * tree-ssa-structalias.c: Likewise.
1952         * tree-ssa-tail-merge.c: Likewise.
1953         * tree-ssa-threadedge.c: Likewise.
1954         * tree-ssa-threadupdate.c: Likewise.
1955         * tree-ssa-uncprop.c: Likewise.
1956         * tree-ssa-uninit.c: Likewise.
1957         * tree-ssa.c: Likewise.
1958         * value-prof.c: Likewise.
1959         * var-tracking.c: Likewise.
1960         * web.c: Likewise.
1962         * config/m32r/m32r.c: Include dbxout.h.
1963         * config/pa/pa.c: Likewise.
1964         * config/rs6000/rs6000.c: Likewise.
1966         * Makefile.in: Fix dependencies.
1967         * config/rs6000/t-rs5000: Likewise.
1969 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
1971         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
1972         * gimple.h (block_in_transaction): Check for flag_tm.
1974 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
1976         PR tree-optimization/52558
1977         * cfg.c (alloc_aux_for_edge): Fix comment.
1978         (alloc_aux_for_edge): Remove static.
1979         * basic-block.h (alloc_aux_for_edge): Protoize.
1980         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
1981         (execute_sm_if_changed_flag): New.
1982         (execute_sm_if_changed_flag_set): New.
1983         (execute_sm): Do not generate data races unless requested.
1984         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
1985         (tree_ssa_lim_finalize): Call free_aux_for_edges.
1986         * gimple.h (block_in_transaction): New.
1987         (gimple_in_transaction): Use block_in_transaction.
1989 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
1991         PR target/51345
1992         * config/avr/avr.opt (-msp8): Document it.
1993         * doc/invoke.texi (AVR Options): Ditto.  And document related
1994         built-in macros.
1996 2012-05-31   Diego Novillo  <dnovillo@google.com>
1998         * configure.ac (CXX_FOR_BUILD): Define and substitute.
1999         (BUILD_CXXFLAGS): Define and substitute.
2000         * Makefile.in (BUILD_CXXFLAGS): Define.
2001         (CXX_FOR_BUILD): Define.
2002         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
2003         (LINKER_FOR_BUILD): Likewise.
2004         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
2005         (BUILD_LINKERFLAGS): Likewise.
2006         * configure: Regenerate.
2008 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2010         * Makefile.in: Fix many dependencies.
2011         * tree-profile.c: Don't include regs.h.
2012         * tree-vectorizer.c: Don't include cfglayout.h.
2013         * tree-vect-stmts.c: Likewise.
2014         * tree-vect-slp.c: Likewise.
2015         * tree-vect-loop.c: Likewise.
2016         * reg-stack.c: Likewise.
2017         * tree-ssa-loop-manip.c: Likewise.
2018         * toplev.c: Likewise.
2019         * varasm.c: Don't include cfglayout.h, basic-block.h,
2020         and tree-iterator.h.
2021         * tree-cfgcleanup.c: Don't include cfglayout.h.
2022         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
2023         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
2024         * cgraphclones.c: Don't include plugin.h.
2026 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
2028         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
2029         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
2030         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
2032 2012-05-31  Richard Guenther  <rguenther@suse.de>
2034         * tree-loop-distribution.c (struct partition_s): New struct,
2035         typedef and vector type.
2036         (partition_alloc, partition_free): New functions.
2037         (generate_loops_for_partition, generate_builtin,
2038         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
2039         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2040         build_rdg_partition_for_component, can_generate_builtin,
2041         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
2042         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
2043         number_of_rw_in_partition, partition_contains_all_rw,
2044         ldist_gen): Use partition_t instead of bitmap.
2046 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
2048         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
2049         * doc/avr-mmcu.texi: Regenerate.
2051 2012-05-31  Richard Guenther  <rguenther@suse.de>
2053         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
2054         Use FOR_EACH_SSA_DEF_OPERAND.
2055         (generate_builtin): Adjust.
2056         (stmt_generated_in_another_partition): Remove.
2057         (add_scalar_computations_to_partition): Likewise.
2058         (rdg_build_partitions): Do not call
2059         add_scalar_computations_to_partition.
2061 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2063         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
2064         double ints throughout.
2065         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
2066         Check that the position of the field is representable as an integer.
2068 2012-05-31  Richard Guenther  <rguenther@suse.de>
2070         * tree-data-ref.c (dr_analyze_innermost): Properly convert
2071         the MEM_REF offset to sizetype.
2073 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
2075         * doc/invoke.texi (AVR Options): Fix typos.
2077 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
2079         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
2080         and -mcpu= options.
2081         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
2082         non-v32 into --march=v0_v10.
2084 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2086         * ira-int.h (target_ira_int): Rename x_move_cost to
2087         x_ira_register_move_cost, x_may_move_in_cost to
2088         x_ira_may_move_in_cost and x_may_move_out_cost to
2089         x_ira_may_move_out_cost.  Delete the old fields with
2090         those names and also x_ira_max_register_move_cost,
2091         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
2092         (move_cost, may_move_in_cost, may_move_out_cost)
2093         (ira_max_register_move_cost, ira_max_may_move_in_cost)
2094         (ira_max_may_move_out_cost): Delete.
2095         * ira.c (init_move_cost): Rename to...
2096         (ira_init_register_move_cost): ...this, deleting the old
2097         function with that name.  Apply above variable renamings.
2098         Retain asserts for null fields.
2099         (ira_init_once): Don't initialize register move costs here.
2100         (free_register_move_costs): Apply above variable renamings.
2101         Remove code for deleted fields.
2103 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2105         * ira.c (init_move_cost): Adjust choice of subclasses to match
2106         the current ira_init_register_move_cost choice.  Use
2107         ira_class_subset_p instead of reg_class_subset_p.
2108         (ira_init_register_move_cost): Assert that move_cost,
2109         may_move_in_cost and may_move_out_cost already hold the desired
2110         values for their ira_* equivalents.  For the latter two,
2111         ignore classes that can't store a register of the given mode.
2113 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2115         * ira.c (setup_allocno_and_important_classes): Use
2116         ira_class_hard_regs_num to check whether a class has any
2117         allocatable registers.
2118         (ira_init_register_move_cost): Likewise.
2120 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2122         * ira.c (init_move_cost): Adjust local variable names to match
2123         file conventions.  Use ira_assert instead of gcc_assert.
2125 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2127         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
2128         Move these definitions and associated target_globals fields to...
2129         * ira-int.h: ...here.
2130         * rtl.h (init_move_cost): Delete.
2131         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
2132         * ira.c: ...here, making the latter static.
2134 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2136         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
2137         and ira_register_move_cost instead of init_move_cost and move_cost.
2139 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
2141         * ira.h (target_ira): Delete x_ira_available_class_regs.
2142         (ira_available_class_regs): Delete.
2143         * ira.c (setup_available_class_regs): Delete.
2144         (setup_alloc_classes): Don't call it.
2145         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
2146         ira_available_class_regs.
2147         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
2148         (model_spill_cost): Likewise.
2149         * ira-build.c (low_pressure_loop_node_p): Likewise.
2150         * ira-color.c (color_pass): Likewise.
2151         * ira-emit.c (change_loop): Likewise.
2152         * ira-lives.c (inc_register_pressure, dec_register_pressure)
2153         (single_reg_class, ira_implicitly_set_insn_hard_regs)
2154         (process_bb_node_lives): Likewise.
2155         * loop-invariant.c (gain_for_invariant): Likewise.
2157 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2159         PR target/52999
2160         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
2161         (pa_section_type_flags): New.
2162         (pa_legitimate_constant_p): Revert previous change.
2164 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2166         * ira.c (allocate_initial_values): Make static.
2168 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
2170         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
2171         Generate tls_initial_exec_64_sun only when !TARGET_X32.
2173 2012-05-30  Richard Guenther  <rguenther@suse.de>
2175         PR middle-end/53501
2176         * fold-const.c (fold_binary_loc): Make sure to call
2177         fold_plusminus_mult_expr with the original sign of operands.
2179 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2181         * Makefile.in: Fix many dependencies.
2182         (DWARF2_H): Depend on dwarf2.def.
2183         (RTL_ERROR_H): Depend on rtl-error.h.
2184         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
2185         all gimple-pretty-print.h and tree-pretty-print.h references.
2187 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
2189         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
2190         concatenations.
2192 2012-05-30  Richard Guenther  <rguenther@suse.de>
2194         PR middle-end/53522
2195         * tree-emutls.c (gen_emutls_addr): Do not add globals to
2196         referenced-vars.
2198 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2200         * explow.c (probe_stack_range): Restore simple control flow and stop
2201         again when the probe cannot be generated if HAVE_check_stack.
2203 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
2205         PR rtl-optimization/53519
2206         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
2207         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
2209 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2211         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
2213 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
2215         PR debug/53453
2216         * doc/tm.texi: Update.
2217         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
2218         * target.def (force_at_comp_dir): New hook.
2219         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
2220         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
2222 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
2224         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
2225         Darwin >= 10.
2226         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
2227         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2229 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
2231         PR target/51340
2232         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
2233         flag_unsafe_math_optimizations is set.
2234         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
2235         Update description of -mfused-madd.
2237 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
2239         PR target/52941
2240         * config/sh/predicates.md (atomic_arith_operand,
2241         atomic_logical_operand): New predicates.
2242         * config/sh/sh.c (sh_option_override): Check atomic options.
2243         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
2244         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
2245         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
2246         UNSUPPORTED_HARD_ATOMIC_CPU.
2247         * config/sh/sync.md: Update description comments.
2248         (I12): New mode iterator.
2249         (fetchop_predicate, fetchop_constraint): New code attributes.
2250         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2251         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2252         atomic_fetch_<fetchop_name>si_hard,
2253         atomic_fetch_<fetchop_name><mode>_hard,
2254         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2255         atomic_<fetchop_name>_fetchsi_hard,
2256         atomic_<fetchop_name>_fetch<mode>_hard,
2257         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2258         atomic_test_and_set_hard): New insns.
2259         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
2260         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
2261         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
2262         atomic_test_and_set_soft): Use same formatting for the first line of
2263         the asm block as in new insns above.
2264         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
2265         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
2266         atomic_test_and_set): Integrate new *_hard insns into expanders.
2267         * config/sh/sh.opt (mhard-atomic): New option.
2268         * doc/invoke.texi (SH Options): Document it.
2270 2012-05-29  Meador Inge  <meadori@codesourcery.com>
2272         * c-decl.c (c_push_function_context): Always create a new language
2273         function.
2274         (c_pop_function_context): Clear the language function created in
2275         c_push_function_context.
2277 2012-05-29  Matt Turner  <mattst88@gmail.com>
2279         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
2280         (define_bypass "ev6_fcmov"): New.
2282 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2284         * integrate.c: Remove.
2285         * integrate.h: Remove.
2286         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
2287         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
2288         * config/rs6000/t-rs6000: Likewise
2289         * config/spu/t-spu-elf: Likewise.
2290         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
2291         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
2292         from integrate.h to here.
2293         (initial_value_entry): New prototype.
2294         * reload.h (allocate_initial_values): Remove prototype.
2295         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
2296         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
2297         integrate.c.
2298         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
2299         set_decl_abstract_flags, set_block_abstract_flags): Move from
2300         integrate.c to here, the only user.
2301         * expmed.c (extract_fixed_bit_field): Remove outdated comment
2302         about integrate.c.
2303         * function.c: Don't include integrate.h.
2304         (struct initial_value_pair, struct initial_value_struct,
2305         get_hard_reg_initial_val, has_hard_reg_initial_val,
2306         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
2307         integrate.c to here.
2308         (initial_value_entry): New function.
2309         * genemit.c (main): Don't print integrate.h include line.
2310         * ira.c: Don't include integrate.h.
2311         (allocate_initial_values): Move from integrate.c to here.
2312         (ira): Update allocate_initial_values call.
2313         * tree-inline.c: Don't include integrate.h.
2314         (function_attribute_inlinable_p): Moved from integrate.c to here.
2315         * cfgexpand.c: Don't include integrate.h.
2316         * except.c: Likewise.
2317         * langhooks.c: Likewise.
2318         * passes.c: Likewise.
2319         * toplev.c: Likewise.
2320         * config/frv/frv.c: Likewise.
2321         * config/pa/pa.c: Likewise.
2322         * config/spu/spu.c: Likewise.
2323         * config/epiphany/epiphany.c: Likewise.
2324         * config/mep/mep.c: Likewise.
2325         * config/score/score.c: Likewise.
2326         * config/picochip/picochip.c: Likewise.
2327         * config/sh/sh.c: Likewise.
2328         * config/alpha/alpha.c: Likewise.
2329         * config/microblaze/microblaze.c: Likewise.
2330         * config/mips/mips.c: Likewise.
2331         * config/v850/v850.c: Likewise.
2332         * config/mmix/mmix.c: Likewise.
2333         * config/bfin/bfin.c: Likewise.
2334         * config/arm/arm.c: Likewise.
2335         * config/s390/s390.c: Likewise.
2336         * config/m32r/m32r.c: Likewise.
2337         * config/rs6000/rs6000.c: Likewise.
2338         * config/c6x/c6x.c: Include function.h instead of integrate.h.
2339         * config/tilegx/tilegx.c: Likewise.
2340         * config/tilepro/tilepro.c: Likewise.
2342 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
2344         * config/avr/t-avr (s-avr-mmcu-texi): Call
2345         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
2347 2012-05-29  Michael Matz  <matz@suse.de>
2349         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
2350         assign_temp): Remove 'keep' argument.
2351         (mark_temp_addr_taken): Remove prototype.
2352         * tree.h (expand_decl): Remove prototype.
2353         * function.c (struct temp_slot): Remove addr_taken and keep member.
2354         (assign_stack_temp_for_type) Don't initialize above, remove
2355         keep argument.
2356         (assign_stack_temp, assign_temp): Remove keep argument.
2357         (mark_temp_addr_taken): Remove.
2358         (preserve_temp_slots): Remove handling of addr_taken and keep members.
2359         (free_temp_slots): Ditto.
2360         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
2361         dead code.
2362         * stmt.c (expand_asm_operands): Remove dead code.
2363         (expand_decl): Remove.
2364         * c-decl.c (finish_struct): Don't call expand_decl.
2365         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
2366         and assign_stack_temp.
2367         * calls.c (save_fixed_argument_area, initialize_argument_information,
2368         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
2369         * expmed.c (extract_bit_field_1): Ditto.
2370         * expr.c (emit_group_load_1, emit_group_store,
2371         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
2372         store_field, expand_constructor, expand_cond_expr_using_cmove,
2373         expand_expr_real_2, expand_expr_real_1): Ditto.
2374         * stmt.c (expand_asm_operands, expand_return): Ditto.
2376         * function.c (pop_temp_slots): Call free_temp_slots.
2377         * calls.c (store_one_arg): Don't call preserve_temp_slots or
2378         free_temp_slots.
2379         * expr.c (expand_assignment): Don't call free_temp_slots.
2381         * config/arm/arm.c (neon_expand_vector_init): Ditto.
2382         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
2383         (ix86_expand_vector_extract): Ditto.
2384         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
2385         ia64_expand_movxf_movrf): Ditto.
2386         * config/mips/mips.c (mips_expand_vi_general): Ditto.
2387         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
2388         extendsfdf2): Ditto.
2389         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
2390         rs6000_expand_vector_set, rs6000_expand_vector_extract,
2391         rs6000_allocate_stack_temp): Ditto.
2392         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
2393         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2394         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
2395         sparc_expand_vector_init): Ditto.
2397 2012-05-29  Michael Matz  <matz@suse.de>
2399         * c-tree.h (c_expand_decl): Remove prototype.
2401         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
2402         a kept temp.
2403         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
2404         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
2405         COMPOUND_LITERAL_EXPR.
2406         * function.c (expand_function_start): Don't call expand_decl,
2407         instead assert that we have RTL assigned.
2408         * tree-ssa-live.c (remove_unused_locals): Clear
2409         nonlocal_goto_save_area if its backing variable is removed.
2410         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
2411         as mem inputs.
2412         (expand_decl): Assert that this does nothing.
2413         * calls.c (expand_call): Don't call mark_temp_addr_taken.
2415 2012-05-29  Richard Guenther  <rguenther@suse.de>
2417         PR tree-optimization/53516
2418         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
2419         bitfield accesses.
2420         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2422 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2424         * LANGUAGES: Fix typos.
2425         * Makefile.in: Fix typos.
2426         * alias.c: Fix typos.
2427         * auto-inc-dec.c: Fix typos.
2428         * bb-reorder.c: Fix typos.
2429         * cfgcleanup.c: Fix typos.
2430         * cgraph.c: Fix typos.
2431         * cgraph.h: Fix typos.
2432         * cgraphunit.c: Fix typos.
2433         * collect2-aix.h: Fix typos.
2434         * collect2.c: Fix typos.
2435         * compare-elim.c: Fix typos.
2436         * config/alpha/vms.h: Fix typos.
2437         * config/arm/README-interworking: Fix typos.
2438         * config/arm/arm.c: Fix typos.
2439         * config/arm/iterators.md: Fix typos.
2440         * config/arm/vxworks.h: Fix typos.
2441         * config/avr/avr.c: Fix typos.
2442         * config/avr/avr.h: Fix typos.
2443         * config/avr/avr.md: Fix typos.
2444         * config/avr/builtins.def: Fix typos.
2445         * config/c6x/c6x.c: Fix typos.
2446         * config/cr16/cr16.c: Fix typos.
2447         * config/cr16/cr16.md: Fix typos.
2448         * config/cris/cris.md: Fix typos.
2449         * config/darwin.c: Fix typos.
2450         * config/darwin.opt: Fix typos.
2451         * config/i386/i386-c.c: Fix typos.
2452         * config/i386/i386.c: Fix typos.
2453         * config/ia64/ia64.c: Fix typos.
2454         * config/m68k/cf.md: Fix typos.
2455         * config/mep/mep.c: Fix typos.
2456         * config/microblaze/microblaze.c: Fix typos.
2457         * config/microblaze/microblaze.h: Fix typos.
2458         * config/mn10300/mn10300.c: Fix typos.
2459         * config/mn10300/mn10300.md: Fix typos.
2460         * config/pa/pa.c: Fix typos.
2461         * config/picochip/picochip.h: Fix typos.
2462         * config/rs6000/a2.md: Fix typos.
2463         * config/rs6000/rs6000.c: Fix typos.
2464         * config/rs6000/vector.md: Fix typos.
2465         * config/rx/rx.md: Fix typos.
2466         * config/rx/rx.opt: Fix typos.
2467         * config/s390/2097.md: Fix typos.
2468         * config/s390/s390.c: Fix typos.
2469         * config/s390/s390.h: Fix typos.
2470         * config/sh/sh.c: Fix typos.
2471         * config/sh/sh.md: Fix typos.
2472         * config/sparc/sync.md: Fix typos.
2473         * config/spu/spu.c: Fix typos.
2474         * config/spu/spu.md: Fix typos.
2475         * config/vms/vms.c: Fix typos.
2476         * config/vxworks-dummy.h: Fix typos.
2477         * config/vxworks.h: Fix typos.
2478         * cselib.c: Fix typos.
2479         * df-scan.c: Fix typos.
2480         * df.h: Fix typos.
2481         * doc/extend.texi: Fix typos.
2482         * doc/install.texi: Fix typos.
2483         * doc/invoke.texi: Fix typos.
2484         * doc/md.texi: Fix typos.
2485         * doc/plugins.texi: Fix typos.
2486         * doc/rtl.texi: Fix typos.
2487         * dse.c: Fix typos.
2488         * dwarf2asm.c: Fix typos.
2489         * dwarf2out.c: Fix typos.
2490         * except.h: Fix typos.
2491         * expr.c: Fix typos.
2492         * fold-const.c: Fix typos.
2493         * gcc.c: Fix typos.
2494         * gcse.c: Fix typos.
2495         * genautomata.c: Fix typos.
2496         * gengtype-state.c: Fix typos.
2497         * gengtype.c: Fix typos.
2498         * genhooks.c: Fix typos.
2499         * gimple-fold.c: Fix typos.
2500         * gimple-pretty-print.c: Fix typos.
2501         * gimple.c: Fix typos.
2502         * gimple.h: Fix typos.
2503         * gimplify.c: Fix typos.
2504         * graphite-interchange.c: Fix typos.
2505         * graphite-sese-to-poly.c: Fix typos.
2506         * ifcvt.c: Fix typos.
2507         * input.c: Fix typos.
2508         * ipa-cp.c: Fix typos.
2509         * ipa-inline-analysis.c: Fix typos.
2510         * ipa-inline-transform.c: Fix typos.
2511         * ipa-inline.c: Fix typos.
2512         * ipa-pure-const.c: Fix typos.
2513         * ipa-ref.h: Fix typos.
2514         * ipa-reference.c: Fix typos.
2515         * ipa-utils.c: Fix typos.
2516         * ipa.c: Fix typos.
2517         * ira-emit.c: Fix typos.
2518         * ira-lives.c: Fix typos.
2519         * lto-streamer.c: Fix typos.
2520         * lto-streamer.h: Fix typos.
2521         * lto-wrapper.c: Fix typos.
2522         * mcf.c: Fix typos.
2523         * mode-switching.c: Fix typos.
2524         * modulo-sched.c: Fix typos.
2525         * plugin.c: Fix typos.
2526         * postreload.c: Fix typos.
2527         * sched-deps.c: Fix typos.
2528         * sel-sched-ir.c: Fix typos.
2529         * sel-sched-ir.h: Fix typos.
2530         * sel-sched.c: Fix typos.
2531         * sese.c: Fix typos.
2532         * stor-layout.c: Fix typos.
2533         * target-hooks-macros.h: Fix typos.
2534         * target.def: Fix typos.
2535         * trans-mem.c: Fix typos.
2536         * tree-eh.c: Fix typos.
2537         * tree-predcom.c: Fix typos.
2538         * tree-sra.c: Fix typos.
2539         * tree-ssa-address.c: Fix typos.
2540         * tree-ssa-loop-ivopts.c: Fix typos.
2541         * tree-ssa-loop-niter.c: Fix typos.
2542         * tree-ssa-math-opts.c: Fix typos.
2543         * tree-ssa-pre.c: Fix typos.
2544         * tree-ssa-propagate.c: Fix typos.
2545         * tree-ssa-reassoc.c: Fix typos.
2546         * tree-ssa-sccvn.c: Fix typos.
2547         * tree-ssa-ter.c: Fix typos.
2548         * tree-ssa-uninit.c: Fix typos.
2549         * tree-ssanames.c: Fix typos.
2550         * tree-vect-generic.c: Fix typos.
2551         * tree-vect-slp.c: Fix typos.
2552         * tree.c: Fix typos.
2553         * tree.h: Fix typos.
2554         * varasm.c: Fix typos.
2555         * varpool.c: Fix typos.
2557 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2559         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
2561 2012-05-29  Richard Guenther  <rguenther@suse.de>
2563         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
2564         for globals.
2565         (add_referenced_var_1): Re-organize.  Assert we are not
2566         called for globals.
2567         (remove_referenced_var): Likewise.
2568         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
2569         * tree-mudflap.c (execute_mudflap_function_ops): Do not
2570         call add_referenced_var on globals.
2571         * matrix-reorg.c (transform_access_sites): Likewise.
2573 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2575         * alias.c (reg_known_value): Make this a VEC.
2576         (reg_known_equiv_p): Make this an sbitmap.
2577         (reg_known_value_size): Remove.
2578         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
2579         set_reg_known_equiv_p): Update for reg_known_value and
2580         reg_known_value_size data structure change.
2581         (init_alias_analysis, end_alias_analysis): Likewise.
2583 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
2585         PR middle-end/53510
2586         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
2587         to avoid leaking memory.  No need to handle memory allocation
2588         failure.  Double string_len on each reallocation instead of adding 2.
2589         * gcov.c (read_line): Likewise.
2591 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
2593         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
2594         New macros.
2595         * config/cris/cris.md ("trap"): Define, enabled for
2596         TARGET_TRAP_USING_BREAK8.
2597         * config/cris/cris.opt (mtrap-using-break8): New option.
2599 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2601         PR c++/25137
2602         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
2603         for C++.
2605 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
2607         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
2608         (Standard Names): Fix typos in documentation of atomic patterns.
2610 2012-05-27  Nathan Sidwell  <nathan@acm.org>
2612         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
2614 2012-05-26  Jason Merrill  <jason@redhat.com>
2616         PR c++/53220
2617         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
2618         about array compound literals.
2620 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2622         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
2623         if CLEANUP_NO_INSN_DEL.
2624         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
2625         from cfg_layout_merge_blocks.
2626         (emit_nop_for_unique_locus_between): New function.
2627         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
2628         (cfg_layout_merge_blocks): Likewise.
2630 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
2631             Paolo Bonzini  <bonzini@gnu.org>
2633         * df-scan.c (df_def_record_1): Assert a parallel must contain an
2634         EXPR_LIST at this point.  Receive the LOC and move its extraction...
2635         (df_defs_record): ... here. Change if-else to a switch statement.
2636         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
2637         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
2638         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
2639         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
2640         regs_invalidated_by_call.
2641         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
2642         df_get_call_refs().
2644 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2646         PR lto/52178
2647         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
2648         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
2650 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2652         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
2653         software floating point emulation.  No longer build the multilibs
2654         with -mstrict-align.
2656 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
2658         PR middle-end/53008
2659         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
2660         accessed indirectly.
2661         (ipa_tm_create_version): Same.
2663 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
2665         PR target/53474
2666         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
2667         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
2669 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2671         PR target/53435
2672         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
2673         (ix86_expand_vec_perm): Use int mode instead of float.
2674         (expand_vec_perm_pshufb): Remove handling of useseless type
2675         conversion.
2677 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2679         PR ada/52362
2680         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
2681         gnu_ld variables to yes.
2682         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
2683         (HAVE_GNU_AS): Likewise.
2684         * config.in: Regenerate.
2685         * configure: Likewise.
2687 2012-05-25  Tristan Gingold  <gingold@adacore.com>
2689         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
2690         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
2691         and preferred_alignment.
2693 2012-05-25  Tristan Gingold  <gingold@adacore.com>
2695         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
2697 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
2699         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
2700         volatile bitfields case.
2702 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
2704         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
2705         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
2706         (adjacent_mem_locations): Move some code to and call...
2707         (get_memref_parts): ...new function.
2708         (mem_locations_overlap): New function.
2709         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
2710         (is_mem_ref): Rename to...
2711         (find_mem_ref): ...this. Return MEM rtx.
2712         (get_store_dest): Remove function.
2713         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
2714         new parameter and adjust calls.
2715         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
2716         mem refs overlap for true_store_to_load_dep_costly.
2717         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
2718         passed to adjacent_mem_locations.
2719         (is_costly_group): Walk resolved dependency list.
2720         (force_new_group): Emit group ending nop for Power6/Power7.
2721         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
2722         (group_ending_nop): New define_insn.
2724 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
2726         Make unwound macro expansion trace less redundant
2727         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
2728         context of macro definition in the trace, when it's redundant.
2729         Update comments.
2731 2012-05-24  Richard Guenther  <rguenther@suse.de>
2733         PR middle-end/53460
2734         * tree-profile.c (tree_profiling): Cleanup the CFG if
2735         execute_fixup_cfg requests it.
2737 2012-05-24  Richard Guenther  <rguenther@suse.de>
2739         * tree-flow.h (create_var_ann): Remove.
2740         * tree-dfa.c (create_var_ann): Remove and inline into its
2741         single caller ...
2742         (add_referenced_var_1): ... here.
2743         * varpool.c (add_new_static_var): Do not call add_referenced_var
2744         for global vars.
2745         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2746         * tree-switch-conversion.c (build_one_array): Likewise.
2747         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
2748         * tree-flow-inline.h (gimple_referenced_vars): Guard against
2749         NULL fn argument.
2750         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
2751         gimple_referenced_vars instead of gimple_in_ssa_p.
2752         (copy_tree_body_r): Likewise.
2753         (setup_one_parameter): Likewise.
2754         (declare_return_variable): Likewise.
2755         (tree_function_versioning): Likewise.
2757 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
2759         PR tree-optimization/53465
2760         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
2761         vr0 into *vr, then vrp_meet that.
2762         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
2763         have any equivalences.
2764         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
2765         first time.
2767 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
2769         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
2770         hard registers.
2771         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
2772         check end_regno - 1 is a hard register.
2774 2012-05-24  Richard Guenther  <rguenther@suse.de>
2776         * varpool.c (add_new_static_var): Remove call to create_var_ann.
2777         * tree-ssa-operands.c (create_vop_var): Likewise.
2779 2012-05-24  Richard Guenther  <rguenther@suse.de>
2781         PR bootstrap/53466
2782         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
2783         handle globals.
2784         (remove_unused_locals): Pass global_unused_vars to
2785         remove_unused_scope_block_p.  Restore code walking all
2786         referenced vars and pruning them.
2788 2012-05-23  Jan Hubicka  <jh@suse.cz>
2790         * tree.h (alias_diag_flags): Remove.
2791         (alias_pair): Remove emitted_diags.
2792         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
2793         symbol_alias_set_t, symbol_alias_set_destroy,
2794         symbol_alias_set_contains, propagate_aliases_backward): Remove.
2795         * toplev.c (compile_file): Do not call finish_aliases_2
2796         * cgraphunit.c (cgraph_process_new_functions): Do not call
2797         finish_aliases_1.
2798         (handle_alias_pairs): Output diagnostics about aliases to externals.
2799         (assemble_thunks_and_aliases): Use do_assemble_alias.
2800         (output_weakrefs): Likewise.
2801         (finalize_compilation_unit): Do not call finish_aliases_1.
2802         * ipa.c (symtab_remove_unreachable_nodes): De not call
2803         remove_unreachable_alias_pairs.
2804         * varasm.c (do_assemble_alias): Export.
2805         (symbol_alias_set_create, symbol_alias_set_destroy,
2806         symbol_alias_set_contains, symbol_alias_set_insert,
2807         propagate_aliases_forward, propagate_aliases_backward,
2808         propagate_aliases_backward, trivially_visible_alias,
2809         trivially_defined_alias, remove_unreachable_alias_pairs,
2810         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
2811         * output.h (do_assemble_alias): Declare.
2812         * varpool.c (varpool_remove_unreferenced_decls): Do not call
2813         finish_aliases_1.
2815 2012-05-23  Martin Jambor  <mjambor@suse.cz>
2817         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
2819 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2821         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
2822         size handling.
2823         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
2824         (iterative_hash_gimple_type): Adjust comment.
2825         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
2826         domain for an array type instead of the domain type itself.
2828 2012-05-23  Richard Guenther  <rguenther@suse.de>
2830         PR tree-optimization/53438
2831         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
2833 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
2835         PR target/53448
2836         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
2837         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
2838         ASM_OUTPUT_ALIGN.
2840 2012-05-23  Richard Guenther  <rguenther@suse.de>
2842         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
2843         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
2844         via the global_unused_vars bitmap.
2845         (remove_unused_locals): Handle global vars in local-decls via
2846         a global_unused_vars bitmap instead of the used flag in the
2847         var annotation.  Simplify global variable handling and removal.
2849 2012-05-22  Jan Hubicka  <jh@suse.cz>
2851         PR middle-end/53426
2852         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
2853         from other partitions.
2855 2012-05-22  Jan Hubicka  <jh@suse.cz>
2857         PR middle-end/53161
2858         * symtab.c (symtab_register_node): Fix ordering issue.
2860 2012-05-22  Steven Drake <sbd@NetBSD.org>
2862         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
2864 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
2866         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
2867         Use strip_name_encoding target hook.
2869 2012-05-22  Richard Guenther  <rguenther@suse.de>
2871         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
2872         (init_function_for_compilation): Remove.
2873         * tree-dfa.c (find_vars_r): Take struct function argument.
2874         (find_referenced_vars_in): Adjust.
2875         * tree-ssa-operands.c (clobber_stats): Remove.
2876         (create_vop_var): Take struct function argument.  Mark
2877         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
2878         (init_ssa_operands): Take struct function argument.
2879         (fini_ssa_operands): Do not dump dead stats.
2880         * tree-ssa-operands.h (init_ssa_operands): Take struct function
2881         argument.
2882         * cgraphunit.c (init_lowered_empty_function): Adjust.
2883         * lto-streamer-in.c (input_cfg): Likewise.
2884         * tree-inline.c (initialize_cfun): Likewise.
2885         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
2886         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
2887         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
2888         virtual operands are not registers.
2890 2012-05-22  Richard Guenther  <rguenther@suse.de>
2892         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
2894 2012-05-22  Richard Guenther  <rguenther@suse.de>
2896         PR middle-end/53437
2897         * tree-inline.c (setup_one_parameter): Create a dummy init
2898         statement for unused parameters when not optimizing.
2900 2012-05-22  Richard Guenther  <rguenther@suse.de>
2902         * tree-flow.h (add_referenced_var_1): Declare.
2903         (add_referenced_var): Define.
2904         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
2905         (add_referenced_var): Rename to ...
2906         (add_referenced_var_1): ... this.  Take struct function argument.
2908 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2910         PR target/53334
2911         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
2912         * config/arm/arm.c (arm_validize_comparison): Define.
2913         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
2914         arm_validize_comparison.
2915         ("cbranchdi4"): Likewise.
2916         ("cstoredi4"): Likewise.
2917         ("movsicc"): Likewise.
2918         ("movsfcc"): Likewise.
2919         ("movdfcc"): Likewise.
2921 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
2923         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
2924         the mw_reg_pool size.
2926 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
2928         PR tree-optimization/53336
2929         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
2930         non-integer integral types to offset type and vice versa.
2932 2012-05-22  Alan Modra  <amodra@gmail.com>
2934         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2935         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2936         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
2937         V_SAVE_INLINE): Delete.
2938         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
2939         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
2940         For ELF targets, use out-of-line restores for -Os and any number
2941         of regs if the restore exits, and out-of-line gp save for two or
2942         more regs.  Use save_reg_p to test for holes in reg restore set.
2943         Replace "#if" with "if".
2945 2012-05-22  Alan Modra  <amodra@gmail.com>
2947         * config/rs6000/rs6000.c (save_reg_p): New function.
2948         (first_reg_to_save, first_fp_reg_to_save): Use it here.
2949         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
2950         (emit_frame_save): Use gen_frame_store.
2951         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
2952         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
2953         vrsave and toc.
2954         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
2955         vrsave, toc, gp and fp restores.
2957 2012-05-22  Alan Modra  <amodra@gmail.com>
2959         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
2960         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
2961         Move function pointer variables after forward declarations.
2962         (rs6000_builtin_support_vector_misalignment): Make static.
2963         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
2964         (rs6000_function_value, rs6000_can_eliminate): Likewise.
2966 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
2968         PR rtl-optimization/53373
2969         * caller-save.c (save_call_clobbered_regs): Look into a possible
2970         PARALLEL manually rather than using single_set on a call insn.
2972 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
2974         PR tree-optimization/53436
2975         * omp-low.c (omp_build_component_ref): New function.
2976         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
2978 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
2980         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
2981         arguments to bool.
2982         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
2983         Do not print '.' here.  Output operand lossage error for unhandled
2984         sizes.  Move.
2985         <case '*'>: Move.
2986         <case '&'>: Ditto.
2987         <case 'Y'>: Ditto.
2988         <case 'z'>: Hardcode "code" argument into error strings.
2989         <case 'Z'>: Ditto.
2990         <case 'D'>: Merge AVX and non-AVX codes.
2991         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
2992         Update call to put_condition_code.
2994 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
2996         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
2997         CC_STATUS_INIT.
2998         (clzsi2): New expander.
2999         (*clzsi2_68k): New insn.
3000         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
3002 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
3004         * gimple.h (gimple_set_in_transaction): Remove.
3005         (gimple_in_transaction): Look in BB instead.
3006         (gimple_statement_base): Remove in_transaction field.
3007         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
3008         * trans-mem.c (compute_transaction_bits): Place transaction bit
3009         information into basic blocks.
3011 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
3013         * expr.c (get_def_for_expr_class): Define only if
3014         HAVE_conditional_move.
3015         (convert_tree_comp_to_rtx): Likewise.
3017 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
3019         PR target/53399
3020         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
3021         for TARGET_BMI.
3022         (ffssi2_no_cmove): Ditto.
3023         (*ffs<mode>_1): Remove insn pattern.
3024         (*tzcnt<mode>_1): New insn pattern.
3025         (*bsf<mode>1): Ditto.
3027 2012-05-21  Richard Guenther  <rguenther@suse.de>
3029         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
3030         more referenced vars.
3031         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
3032         flag on variables that have a var-annotation.
3034 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3036         PR c/53418
3037         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
3038         from folded operands before wrapping another around the
3039         conditional expression.
3041 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
3043         PR tree-optimization/53366
3044         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
3045         tests if complex_numbers == 2, but there are non-complex number loads
3046         too.
3048         PR tree-optimization/53409
3049         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
3050         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
3052         PR tree-optimization/53410
3053         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
3054         instead of build_int_cst (type, 0) where vector types might be
3055         involved. Instead of build_int_cst (type, 1) convert the original
3056         integer_onep argument to the desired type.
3058 2012-05-21  Michael Matz  <matz@suse.de>
3060         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
3061         (simplify_test_exp): Handle one more case of distributive law,
3062         decrease cost threshold.
3063         (tests_attr_p, get_attr_order): New functions.
3064         (optimize_attrs): Use topological order, inline only cheap values.
3065         (write_attr_set): Reset our_known_true after some time.
3067 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3069         PR target/53425
3070         * config/i386/i386.c (type_natural_mode): Warn passing SSE
3071         vector argument without SSE enabled changes the ABI.
3073 2012-05-21  Richard Guenther  <rguenther@suse.de>
3075         PR tree-optimization/53408
3076         * tree-vect-loop.c (vectorizable_induction): Properly check
3077         the restriction that we cannot handle induction results from
3078         the inner loop outside of the outer loop.
3080 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3082         PR target/53416
3083         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
3084         (UNSPECV_RDRAND): This.
3085         (rdrand<mode>_1): Updated.
3087 2012-05-21  Richard Guenther  <rguenther@suse.de>
3089         * tree-loop-distribution.c (can_generate_builtin): Reject
3090         volatile stmts.
3092 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
3094         * Makefile.in (options.c): Add options.h to included header
3095         files, before tm.h.
3097 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
3099         * tree-parloops.c : Add myself to contributors, update
3100         TODO list, add link to wiki.
3102 2012-05-21  Alan Modra  <amodra@gmail.com>
3104         * config/rs6000/predicates.md (input_operand): Don't match
3105         constant pool addresses.  Remove label_ref, high and plus from
3106         match_code list.  Remove redundant CONSTANT_P test.
3107         (splat_input_operand): Similarly update match_code list.
3108         (small_toc_ref): New predicate.
3109         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
3110         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
3111         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
3112         register checks to..
3113         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
3114         generated by create_TOC_reference.
3115         (rs6000_legitimize_address): Update cerate_TOC_reference call.
3116         (rs6000_delegitimize_address): Handle new rtl for toc refs.
3117         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
3118         (use_toc_relative_ref): New function, split out from..
3119         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
3120         create_TOC_reference calls.
3121         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
3122         of medium/large model toc addresses.  Use use_toc_relative_ref.
3123         (print_operand): Formatting, style.  Adjust for toc changes.
3124         (print_operand_address): Likewise.
3125         (rs6000_output_addr_const_extra): Likewise.
3126         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
3127         than a PLUS.  Use this formulation for both high and low part
3128         of -mcmodel=medium/large toc reference too.  Before reload,
3129         always use the small model formulation.
3130         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
3131         a PLUS in high part of addresses here.
3132         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3133         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3134         (largetoc_high, largetoc_low): Move earlier.  Cope when no
3135         base reg available.
3136         (largetoc_high_plus): New insn.
3137         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
3138         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
3139         (tocref): ..instead do so here, new insn and split.
3141 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3143         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3144         RDRND, F16C and FSGSBASE.
3146 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3148         PR rtl-optimzation/53373
3149         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
3150         call pattern.  Update split patterns.
3151         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
3152         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
3154 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
3156         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
3157         for outer loops.
3159 2012-05-18  Jan Hubicka  <jh@suse.cz>
3161         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
3162         (cgraph_process_new_functions): Process also aliases.
3163         * lto-streamer-out.c (struct sets): Remove.
3164         (trivally_defined_alias): Remove.
3165         (output_alias_pair_p): Remove.
3166         (output_unreferenced_globals): Remove.
3167         (produce_symtab); Do not handle alias pairs.
3168         (produce_asm_for_decls): Likewise.
3169         * lto-streamer-in.c (input_alias_pairs): Remove.
3170         (lto_read_body): Do not input alias pairs.
3171         (lto_input_constructors_and_inits): Remove.
3173 2012-05-18  Jan Hubicka  <jh@suse.cz>
3175         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
3176         aliases.
3178 2012-05-18  Jan Hubicka  <jh@suse.cz>
3180         * cgraphbuild.c (record_reference): Update.
3181         * lto-cgraph.c (lto_output_varpool_node): External vars
3182         are not in other partition even if they are not output
3183         in current partition.
3184         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
3185         argument; fix.
3186         (canonicalize_constructor_val): Take FROM_DECL argument.
3187         (fold_ctor_reference, fold_string_cst_ctor_reference,
3188         fold_array_ctor_reference, fold_nonarray_ctor_reference,
3189         fold_ctor_reference): Likewise.
3190         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
3191         * gimple.h (gimple_fold_builtin): Likewise.
3193 2012-05-18  Olivier Hainque  <hainque@adacore.com>
3195         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
3196         $(libsubdir) as libexecsubdir.
3198 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3200         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
3201         relied on signed overflow behavior.
3203 2012-05-18  Richard Guenther  <rguenther@suse.de>
3205         PR tree-optimization/53346
3206         * tree-loop-distribution.c (ldist_gen): Make sure to apply
3207         builtin transform even when only a single partition with
3208         all reads/writes exists.
3210 2012-05-18  Richard Guenther  <rguenther@suse.de>
3212         PR tree-optimization/53390
3213         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
3214         strided loads.
3216 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3218         * tree-ssa-reassoc.c (bip_map): Remove decl.
3219         (completely_remove_stmt): Remove function.
3220         (remove_def_if_absorbed_call): Remove function.
3221         (remove_visited_stmt_chain): Remove __builtin_powi handling.
3222         (possibly_move_powi): Remove function.
3223         (rewrite_expr_tree): Remove calls to possibly_move_powi.
3224         (rewrite_expr_tree_parallel): Likewise.
3225         (attempt_builtin_powi): Build multiplies explicitly rather than
3226         relying on the ops vector and rank system.
3227         (transform_stmt_to_copy): New function.
3228         (transform_stmt_to_multiply): Likewise.
3229         (reassociate_bb): Handle leftover operations after __builtin_powi
3230         optimization; build a final multiply if necessary.
3232 2012-05-18  Jan Hubicka  <jh@suse.cz>
3234         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
3235         (mark_functions_to_output): Fix sanity check.
3236         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
3238 2012-05-18  Richard Guenther  <rguenther@suse.de>
3240         * tree-flow.h (mark_symbols_for_renaming): Remove.
3241         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
3242         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
3243         (copy_debug_stmt): Likewise.
3244         (expand_call_inline): Likewise.
3245         (declare_return_variable): Mark the return variable for renaming
3246         if necessary.
3248 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
3250         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
3251         prototype.
3252         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
3253         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
3254         (ashrdi3,lshrdi3): Likewise.
3255         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
3257 2012-05-18  Meador Inge  <meadori@codesourcery.com>
3259         PR rtl-optimization/53352
3260         * cse.c (equiv_constant): Ignore paradoxical subregs.
3262 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
3264         PR rtl-optimization/53125
3265         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
3266         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
3267         die in the basic block.  Correctly top off REG_FREQ and
3268         REG_FREQ_CALLS_CROSSED.
3269         Remove do_not_gen.
3270         (regstat_compute_ri): Allocate and free local_live_last_luid.
3271         Remove do_not_gen.
3272         (regstat_bb_compute_calls_crossed): Correctly top off
3273         REG_FREQ_CALLS_CROSSED.
3275 2012-05-17  Jan Hubicka  <jh@suse.cz>
3277         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
3278         constructor over decl without.
3279         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
3280         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
3281         * cgraphunit.c (process_function_and_variable_attributes): Finalize
3282         extrnal decls.
3283         (mark_functions_to_output): Also accept bodies for functions with
3284         clones.
3285         (output_in_order): Skip external vars.
3286         * lto-cgraph.c (lto_output_node): External functions are never in other
3287         partition.
3288         (lto_output_varpool_node): Likewise.
3289         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
3290         forgotten initializers.
3291         * ipa.c (process_references): Handle external vars.
3292         (symtab_remove_unreachable_nodes): Update to handle external vars.
3293         (varpool_externally_visible_p): External vars are externally visible.
3294         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3295         * varpool.c (varpool_remove_node): Remove constructor.
3296         (decide_is_variable_needed): Handle externals.
3297         (varpool_remove_unreferenced_decls): Likewise.
3299 2012-05-17  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3301         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
3302         (enable_warning_as_error): Do not special case Wuninitialized.
3303         * optc-gen.awk: Add sanity checks.
3305 2012-05-17  Jan Hubicka   <jh@suse.cz>
3307         * ipa-reference.c (is_proper_for_analysis): Do not check flags
3308         that might change as result of global optimization.
3309         (analyze_function): Do not check analyzed and externally_visible
3310         flags; be happy about address dereferences.
3311         (propagate): Prune all_module_statics so it really contains just
3312         statics; prune all the local summaries.
3313         (ipa_reference_write_optimization_summary): Simplify.
3315 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
3317         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
3318         * config/m68k/m68k-tables.opt: Regenerated.
3319         * doc/invoke.texi (M680x0 Options): Document.
3321 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
3322             Patrick Marlier  <patrick.marlier@gmail.com>
3324         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
3325         indirect calls.
3327 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3329         * configure: Regenerated.
3331 2012-05-16  Andrew Pinski  <apinski@cavium.com>
3333         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
3334         GIMPLE_ASSIGN.
3336 2012-05-16  David S. Miller  <davem@davemloft.net>
3338         * jump.c (delete_related_insns): If we remove a CALL, make sure
3339         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
3341 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3343         PR tree-optimization/53217
3344         * tree-ssa-reassoc.c (bip_map): New static variable.
3345         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
3346         (attempt_builtin_powi): Save feeding multiplies on a stack.
3347         (reassociate_bb): Create and destroy bip_map.
3349 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3351         * Makefile.in (install-no-fixedincludes): New target, former toplevel
3352         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
3353         Add comments and improve stamp preservation across the whole sequence.
3354         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
3356 2012-05-16  Richard Guenther  <rguenther@suse.de>
3358         * tree-inline.c (insert_init_stmt): Do not call
3359         mark_symbols_for_renaming.
3360         (setup_one_parameter): Avoid initializing unused parameters.
3361         (declare_return_variable): Properly handle DECL_BY_REFERENCE
3362         return vars in SSA form.
3364 2012-05-16  Richard Guenther  <rguenther@suse.de>
3366         * tree-flow.h (get_virtual_var): Remove.
3367         * tree-dfa.c (get_virtual_var): Likewise.
3369 2012-05-16  Richard Guenther  <rguenther@suse.de>
3371         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
3372         Remove set-only bitmap of new names.
3373         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
3374         CFG hooks.
3375         * tree-flow.h (ssa_names_to_replace): Remove.
3376         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
3378 2012-05-16  Richard Guenther  <rguenther@suse.de>
3380         PR tree-optimization/53364
3381         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3382         detect a view-conversion of the decl.
3384 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3386         PR preprocessor/7263
3387         * c-tree.h (enum c_declspec_word): Declare new enum.
3388         (struct c_declspecs::locations): New member.
3389         (declspecs_add_qual, declspecs_add_scspec)
3390         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
3391         location parameter.
3392         * c-decl.c (build_null_declspecs): Initialize the new struct
3393         c_declspecs::locations member.
3394         (declspecs_add_addrspace): Take a location parameter for the
3395         address space.  Store it onto declaration specifiers.
3396         (declspecs_add_qual): Likewise, take a location parameter for the
3397         qualifier.
3398         (declspecs_add_type): Likewise, take a location parameter for the
3399         type specifier.
3400         (declspecs_add_scspec): Likewise, take a location parameter for
3401         the storage class specifier.
3402         (declspecs_add_attrs): Likewise, take a location parameter for the
3403         first attribute.
3404         (declspecs_add_alignas): Likewise, take a location parameter for
3405         the alignas token.
3406         (finish_declspecs): For diagnostics, use the location of the
3407         relevant declspec, instead of the global input_location.
3408         * c-parser.c (c_parser_parameter_declaration): Pass the precise
3409         virtual location of the declspec to the declspecs-setters.
3410         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
3411         repeatedly.
3413 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3415         * configure.ac: Stack protector enabling for Android targets.
3416         * configure: Regenerate.
3418 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
3420         * ira.c (pseudo_move_insn): Delete.
3421         (find_moveable_pseudos): Don't set it.
3422         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
3423         the definitions of the original pseudo.  Delete all of them.
3425 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3427         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3428         PROCESSOR_PPC8548.
3429         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
3430         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
3431         * config/rs6000/8540.md: indicate that the units/patterns apply to
3432         ppc8548 as well.
3434         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
3435         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
3436         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
3437         related flags,  check that what is queried is supported by the selected
3438         configuration. Rework the single/double_float and MASK_STRING resets to
3439         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
3440         costs for PROCESSOR_PPC8548 as well.
3441         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
3442         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
3443         statement instead of a sequence of ifs.
3445         * config/rs6000/rs6000.h (TARGET_E500): Remove.
3446         (TARGET_NO_LWSYNC): Adjust accordingly.
3447         * config/rs6000/e500.h (TARGET_E500): Remove.
3448         (CHECK_E500_OPTIONS): Adjust accordingly.
3449         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
3450         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
3451         * config/rs6000/linuxspe.h: Likewise.
3452         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
3453         superfluous comments.
3454         * config/rs6000/e500-double.h: Remove.
3456         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
3457         default to with_cpu=8548 if --enable-e500-double, and to 8540
3458         otherwise.
3459         (set misc flags section): For powerpc*|rs6000*, remove inclusion
3460         of e500-double.h for --enable-e500-double.
3462 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3464         * Makefile.in (s-header-vars): Resort to -n instead of trailing
3465         -e d in sed invocation.
3467 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
3469         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
3470         source-code.
3471         * doc/tm.texi: Regenerate.
3473 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3475         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
3477 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
3479         PR target/53358
3480         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3481         that operands[2] is either immediate, or q_regs_operand.
3483 2012-05-15  Richard Guenther  <rguenther@suse.de>
3485         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
3486         (assemble_thunk): Likewise.  Manually rename and register
3487         function arguments.
3489 2012-05-15  Richard Guenther  <rguenther@suse.de>
3491         PR tree-optimization/53355
3492         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
3493         by constants.
3495 2012-05-15  Tristan Gingold  <gingold@adacore.com>
3497         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
3499 2012-05-15  Richard Guenther  <rguenther@suse.de>
3501         * gimple.c (gimple_set_modified): Move ...
3502         * gimple.h (gimple_set_modified): ... here.
3504 2012-05-15  Tristan Gingold  <gingold@adacore.com>
3506         * ira-color.c (move_spill_restore): Add a guard.
3508 2012-05-15  Tristan Gingold  <gingold@adacore.com>
3510         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
3511         plus_constant.
3513 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3515         * gimplify.c (gimplify_init_constructor): Do a block move for very
3516         small objects as well.
3518 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
3520         * ira.c (find_moveable_pseudos): Skip registers whose
3521         DF_REG_EQ_USE_COUNT is nonzero.
3523 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
3525         * doc/md.texi (fma): Define to only be applicable for single rounding.
3527 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
3529         PR target/46098
3530         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3531         generate target register for "load" class builtins.
3533         Revert:
3534         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
3536         PR target/46098
3537         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3538         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3539         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3540         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3541         (<sse>_movu<ssemodesuffix>): New expander.
3542         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3543         (avx_movdqu<avxmodesuffix>): New expander.
3544         (*sse2_movdqu): Rename from sse2_movdqu.
3545         (sse2_movdqu): New expander.
3547 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
3549         PR target/52607
3550         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
3551         (canonicalize_perm): ... new function.
3552         (expand_vec_perm_2vperm2f128_vshuf): New function.
3553         (ix86_expand_vec_perm_const_1): Call it.
3555 2012-05-14  Andrew Pinski  <apinski@cavium.com>
3556             H.J. Lu  <hongjiu.lu@intel.com>
3557             Jakub Jelinek  <jakub@redhat.com>
3559         PR target/53315
3560         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
3561         (xbegin): Updated.
3563 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
3565         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3566         lineno 1 the same as lineno 0 before first start file directive.
3567         (optimize_macinfo_range): Likewise.
3569         * dwarf2out.c (have_macinfo): Define.
3570         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3571         attribute, don't force empty compilation unit and don't emit any
3572         .debug_macinfo/.debug_macro section if macinfo_table is empty.
3574 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
3576         PR target/53344
3577         * config/avr/avr.c (avr_const_address_lo16): Remove.
3578         (avr_assemble_integer):  Print ".byte lo8(x)",
3579         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
3580         .warning if 3-byte address is assembled.
3581         * doc/extend.texi (AVR Named Address Spaces): Document that
3582         binutils 2.23 is needed to assemble 3-byte addresses.
3584 2012-05-14  Richard Guenther  <rguenther@suse.de>
3586         * tree-vect-data-refs.c (vect_setup_realignment): Remove
3587         call to mark_symbols_for_renaming.
3588         (vect_permute_load_chain): Likewise.
3589         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
3590         instead of calling mark_symbols_for_renaming.
3591         * tree-vect-stmts.c (read_vector_array): Remove call to
3592         mark_symbols_for_renaming.
3593         (write_vector_array): Likewise.
3594         (vectorizable_call): Likewise.
3595         (vectorizable_store): Likewise.
3596         (vectorizable_load): Likewise.
3597         * matrix-reorg.c (transform_allocation_sites): Likewise.
3598         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
3599         (create_expression_by_pieces): Likewise.
3601 2012-05-14  Richard Guenther  <rguenther@suse.de>
3603         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
3604         of statements for renaming.
3605         (force_gimple_operand_1): Likewise, consistently for both
3606         calls to force_gimple_operand and force_gimple_operand_gsi.
3608 2012-05-14  Richard Guenther  <rguenther@suse.de>
3610         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
3611         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
3612         to update_ssa.
3613         (expand_omp_for): Likewise.
3614         (expand_omp_for_generic): Adjust conditional add to referenced vars.
3615         Use make_rename_temp for temporaries that should be rewritten into
3616         SSA form.
3617         (expand_omp_for_static_nochunk): Likewise.
3618         (expand_omp_atomic_pipeline): Likewise.
3620 2012-05-14  Richard Guenther  <rguenther@suse.de>
3622         PR tree-optimization/53331
3623         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
3624         strided loads.
3625         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
3627 2012-05-14  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3629         PR 53063
3630         * doc/options.texi: (LangEnabledBy): Document it.
3631         * optc-gen.awk: Handle LangEnabledBy.
3632         * opth-gen.awk: Generate declaration for lang-specific functions.
3633         * opt-read.awk: Record lang numbers.
3634         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
3635         (lang_sanitized_name): New.
3637 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3639         * attribs.c (decl_attributes): Avoid emitting a warning if
3640         ATTR_FLAG_BUILT_IN.
3641         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
3642         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
3643         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
3644         define a string "1".
3645         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
3646         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
3647         BUILT_IN_STRCPY): Use it for these functions.
3648         * postreload.c (reload_combine): Deal with SETs inside
3649         CALL_INSN_FUNCTION_USAGE.
3650         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
3651         Look for REG_RETURNED notes and use a cheap restore if possible.
3652         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
3653         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
3654         * ira-build.c (ira_create_allocno, create_cap_allocno,
3655         propagate_allocno_info, propagate_some_info_from_allocno,
3656         copy_info_to_removed_store_destination, ira_flattening): Handle it.
3657         * ira-lives.c (pseudo_regno_single_word_and_live_p,
3658         find_call_crossed_cheap_reg): New static functions.
3659         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
3660         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
3661         a REG_RETURNED note in that case.
3662         * ira.c (setup_reg_renumber): Change assert to allow cases where
3663         allocnos only cross calls for which they are cheap to restore.
3664         * ira-costs.c (ira_tune_allocno_costs): Compare
3665         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
3666         than 0.
3667         * reg-notes.def (REG_RETURNED): New note.
3668         * cse.c (cse_insn): Likewise.
3669         * sched-deps.c (sched_analyze_insn): Likewise.
3670         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
3671         * calls.c (decl_return_flags): New static function.
3672         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
3673         functions that return one of their arguments.
3674         * regcprop.c (struct kill_set_value_data): New.
3675         (kill_set_value): Interpret data as a pointer to such a struct.
3676         Do nothing if the caller wants the register to be ignored.
3677         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
3679 2012-05-14  Richard Guenther  <rguenther@suse.de>
3681         PR tree-optimization/53340
3682         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
3684 2012-05-14  Richard Guenther  <rguenther@suse.de>
3686         * gimplify.c (gimplify_expr): Remove odd code.
3688 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3690         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
3691         into a PLUS_EXPR byte offset.
3693         * tree-ssa-pre.c (can_value_number_call): Delete.
3694         (compute_avail): Skip all statements with side effects.
3695         <GIMPLE_CALL>: Skip calls to internal functions.
3697 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
3699         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
3701 2012-05-13  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3703         * common.opt (Wtype-limits): Use EnabledBy.
3705 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
3707         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
3708         (pushtf splitter): Ditto.
3709         (movtf): Ditto.
3710         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
3711         (<code>tf2): Enable for TARGET_SSE.
3712         (*absnegtf2_sse): Ditto.
3713         (copysign<mode>3): Enable TFmode for TARGET_SSE.
3714         (copysign<mode>3_const): Ditto.
3715         (copysign<mode>3_var): Ditto.
3716         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
3717         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
3718         (*<code>tf3): Ditto.
3719         * config/i386/i386.c (struct builtin_description bdesc_args)
3720         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
3721         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
3722         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
3723         Emit a normal call if SSE isn't available.
3725 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
3727         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
3728         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3729         (<code><mode>3): Ditto.
3730         (*andnot<mode>3): Ditto.
3731         (*andnottf3): Ditto.
3732         (*<code><mode>3): Ditto.
3733         (<code>tf3): Ditto.
3735 2012-05-13  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3737         * optc-gen.awk: Error instead of warning for conflicting help.
3739 2012-05-12  Jason Merrill  <jason@redhat.com>
3741         PR debug/53235
3742         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
3743         comdat types.
3745 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3747         * function.c (requires_stack_frame_p): If the function can throw
3748         non-call exceptions, return true if the insn can throw internally.
3750 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
3752         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
3754 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
3756         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3757         ORDERED and UNORDERED conditions.
3759 2012-05-11  Richard Guenther  <rguenther@suse.de>
3761         * tree-flow.h (referenced_var_check_and_insert): Remove.
3762         (find_new_referenced_vars): Likewise.
3763         * tree-dfa.c (referenced_var_check_and_insert): Make static.
3764         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
3765         * tree-inline.c (copy_bb): Use find_referenced_vars_in
3766         instead of find_new_referenced_vars.
3767         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3769 2012-05-11  Richard Guenther  <rguenther@suse.de>
3771         * tree-pass.h (pass_rest_of_compilation,
3772         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
3773         Remove.
3774         * passes.c (pass_all_optimizations, pass_postreload,
3775         pass_all_early_optimizations): Make static.
3776         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
3777         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
3778         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
3779         (delete_tree_ssa): Do not call fini_phinodes.
3780         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
3782 2012-05-11  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3784         PR 53063
3785         * doc/options.texi (EnabledBy): Document
3786         * opts.c: Include opts.h and options.h before tm.h.
3787         (finish_options): Do not handle some sub-options here...
3788         (common_handle_option): ... instead call common_handle_option_auto
3789         here.
3790         * optc-gen.awk: Handle EnabledBy.
3791         * opth-gen.awk: Declare common_handle_option_auto.
3792         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
3793         (Wmaybe-uninitialized): Likewise.
3794         (Wunused-but-set-variable): Likewise.
3795         (Wunused-function): Likewise.
3796         (Wunused-label): Likewise.
3797         (Wunused-value): Likewise.
3798         (Wunused-variable): Likewise.
3799         * opt-read.awk: Create opt_numbers array.
3801 2012-05-11  Richard Guenther  <rguenther@suse.de>
3803         PR tree-optimization/53295
3804         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
3805         strides.
3806         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
3807         strides when analyzing data-references in a loop context.
3808         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
3809         non-constant strides for now.
3810         (vect_enhance_data_refs_alignment): Ignore data references
3811         that are strided loads.
3812         (vect_analyze_data_ref_access): Handle non-constant strides.
3813         (vect_check_strided_load): Verify the data-reference is a load.
3814         (vect_analyze_data_refs): Restructure to make strided load
3815         support not dependent on gather support.
3816         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
3817         when doing strided or gather loads.
3818         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
3819         integer_zerop to compare stride with zero.
3821 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3823         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
3825 2012-05-11  Jan Hubicka  <jh@suse.cz>
3827         PR bootstrap/53300
3828         * varpool.c (varpool_assemble_decl): Also output constat pool entries
3829         that output_constant_pool missed.
3831 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
3833         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
3834         MULTILIB_EXTRA_OPTS.
3836 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
3838         PR target/53291
3839         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
3841 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
3843         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
3844         optimization for TARGET_AVX.
3845         (*movti_internal_sse): Ditto.
3846         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3847         (*movdi_internal): Ditto.
3848         (*movsi_internal): Ditto.
3849         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
3850         (*movdf_internal_rex64): Ditto.
3851         (*movfd_internal): Ditto.
3852         (*movsf_internal): Ditto.
3853         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
3855 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3857         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
3858         reference as size attribute.
3860 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3861             Tristan Gingold  <gingold@adacore.com>
3863         * doc/md.texi (Standard Names): Document probe_stack_address.
3864         * explow.c (emit_stack_probe): Handle probe_stack_address.
3865         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
3866         (UNSPECV_PROBE_STACK_RANGE): Likewise.
3867         (probe_stack_address): New insn.
3868         (probe_stack_range): Likewise.
3869         * config/ia64/ia64.c: Include common/common-target.h.
3870         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
3871         checking is enabled.
3872         (ia64_emit_probe_stack_range): New function.
3873         (output_probe_stack_range): Likewise.
3874         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
3875         builtin stack checking is enabled.
3876         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
3877         and UNSPECV_PROBE_STACK_ADDRESS.
3878         (unknown_for_bundling_p): New predicate.
3879         (group_barrier_needed): Use important_for_bundling_p.
3880         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
3881         (issue_nops_and_insn): Likewise.
3882         (bundling): Likewise.
3883         (final_emit_insn_group_barriers): Likewise.
3884         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
3885         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
3886         (STACK_CHECK_PROTECT): Likewise.
3887         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3889 2012-05-10  Jan Hubicka  <jh@suse.cz>
3891         * ipa-inline.c (update_all_callee_keys): Remove.
3892         (inline_small_functions): Simplify priority updating.
3894 2012-05-10  Jan Hubicka  <jh@suse.cz>
3896         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
3898 2012-05-10  Jan Hubicka  <jh@suse.cz>
3900         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
3901         (symtab_remove_unreachable_nodes): ... this one.
3902         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
3903         * cgraphunit.c (ipa_passes): Update.
3904         * cgraphclones.c (cgraph_materialize_all_clones): Update.
3905         * cgraph.c (cgraph_release_function_body): Only turn initial
3906         into error mark when initial was previously set.
3907         * ipa-inline.c (ipa_inline): Update.
3908         * ipa.c: Include ipa-inline.h
3909         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
3910         (enqueue_node): New function.
3911         (process_references): Update.
3912         (symtab_remove_unreachable_nodes): Cleanup.
3913         * passes.c (execute_todo, execute_one_pass): Update.
3915 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3917         PR rtl-optimization/53125
3918         * ira.c (ira): Call find_moveable_pseudos and
3919         move_unallocated_pseudos if only ira_conflicts_p is true.
3921 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
3923         * config/i386/i386.md (*movoi_internal_avx): Handle
3924         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
3925         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3926         (*movti_internal_sse): Ditto.
3927         (*movtf_internal): Ditto.
3928         * config/i386/sse.md (ssePSmode): New mode attribute.
3929         (*move<mode>_internal): Use ssePSmode.
3930         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
3931         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
3932         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
3933         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
3935 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3937         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
3938         DECL_ORIGINAL_TYPE if it is present.
3940 2012-05-10  Nick Clifton  <nickc@redhat.com>
3942         PR target/53120
3943         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
3944         a "0" constraint to being a (match_dup 0).
3946 2012-05-10  Richard Guenther  <rguenther@suse.de>
3948         * stor-layout.c (byte_from_pos): Amend comment.
3950 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3952         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
3953         Document requirement to call in constructors.
3955         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
3957 2012-05-10  Richard Guenther  <rguenther@suse.de>
3959         * tree.h (TYPE_IS_SIZETYPE): Remove.
3960         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
3961         (extract_muldiv_1): Likewise.
3962         * gimple.c (gtc_visit): Likewise.
3963         (gimple_types_compatible_p): Likewise.
3964         (iterative_hash_canonical_type): Likewise.
3965         (gimple_canonical_types_compatible_p): Likewise.
3966         * gimplify.c (gimplify_one_sizepos): Likewise.
3967         * print-tree.c (print_node): Likewise.
3968         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
3970 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
3972         PR target/52908
3973         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
3974         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
3975         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
3976         instead of xop_mulv2div2di3_low.
3977         (xop_p<macs>dql): Fix vec_select selector.
3978         (xop_p<macs>dqh): Ditto.
3979         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
3980         (xop_mulv2div2di3_high): Ditto.
3982 2012-05-09  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3984         PR c++/53289
3985         * diagnostic.h (diagnostic_context): Add last_location.
3986         * diagnostic.c (diagnostic_initialize): Initialize it.
3987         (diagnostic_show_locus): Use it.
3989 2012-05-09  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
3991         * doc/extend.texi (Function Attributes): Point xref to section
3992         about Pragmas.
3994 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
3996         * config/i386/i386.c (*movdf_internal_rex64): Remove
3997         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
3998         Calculate "mode" attribute according to
3999         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4000         (*movdf_internal): Ditto.
4002 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
4004         PR target/44141
4005         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
4006         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
4007         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4008         or when optimizing for size.
4009         * config/i386/sse.md (*mov<mode>_internal): Remove
4010         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4011         Calculate "mode" attribute according to optimize_function_for_size_p
4012         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4013         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
4014         depending on the mode of the instruction.  Calculate "mode" attribute
4015         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
4016         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
4017         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
4019 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
4021         PR target/53256
4022         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
4023         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
4024         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
4025         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
4026         (expand_prologue): Move initialization of cfun->machine->is_naked,
4027         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
4028         (avr_set_current_function): ...this new static function.
4029         (TARGET_SET_CURRENT_FUNCTION): New define.
4030         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
4031         checking attributes of current_function_decl.
4032         (avr_regs_to_save): Ditto.
4033         (signal_function_p): Rename to avr_signal_function_p.
4034         (interrupt_function_p): Rename to avr_interrupt_function_p.
4036         * doc/extend.texi (Function Attributes): Better explanation of
4037         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
4038         alphabetical order.
4040 2012-05-09  Michael Matz  <matz@suse.de>
4042         PR tree-optimization/53185
4043         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
4044         peeling when we see strided loads.
4046 2012-05-09  Matthias Klose  <doko@ubuntu.com>
4048         * gcc-ar.c (main): Don't check for execute bits for the plugin.
4050 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4052         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
4053         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
4054         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
4055         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
4056         (USE_LOAD_POST_INCREMENT): Define.
4057         (USE_LOAD_PRE_INCREMENT): Define.
4058         (USE_LOAD_POST_DECREMENT): Define.
4059         (USE_LOAD_PRE_DECREMENT): Define.
4060         (USE_STORE_PRE_DECREMENT): Define.
4061         (USE_STORE_PRE_INCREMENT): Define.
4062         (USE_STORE_POST_DECREMENT): Define.
4063         (USE_STORE_POST_INCREMENT): Define.
4064         (arm_auto_incmodes): Add enumeration.
4065         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
4066         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
4068 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
4070         PR tree-optimization/53226
4071         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
4072         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
4073         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
4074         doesn't need to be revisited, look for earliest stmt with
4075         !gimple_plf (stmt, GF_PLF_1) if something changed.
4077 2012-05-09  Terry Guo  <terry.guo@arm.com>
4079         * genmultilib: Update copyright dates.
4080         * doc/fragments.texi: Ditto.
4082 2012-05-09  Terry Guo  <terry.guo@arm.com>
4084         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
4085         * genmultilib (MULTILIB_REQUIRED): New.
4086         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
4088 2012-05-09  Richard Guenther  <rguenther@suse.de>
4090         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4091         (vect_do_peeling_for_loop_bound): Likewise.
4092         (vect_do_peeling_for_alignment): Likewise.
4093         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
4094         (vect_do_peeling_for_loop_bound): Get check_profitability and
4095         threshold as parameters.
4096         (vect_do_peeling_for_alignment): Likewise.
4097         (vect_loop_versioning): Likewise.
4098         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
4099         and threshold here.  Control where to put the check here.
4101 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
4103         PR middle-end/53249
4104         * dwarf2out.h (get_address_mode): Move declaration to...
4105         * rtl.h: ...here.
4106         * dwarf2out.c (get_address_mode): Move definition to...
4107         * rtlanal.c: ...here.
4108         * var-tracking.c (get_address_mode): Delete.
4109         * combine.c (find_split_point): Use get_address_mode instead of
4110         targetm.addr_space.address_mode.
4111         * cselib.c (cselib_record_sets): Likewise.
4112         * dse.c (canon_address, record_store): Likewise.
4113         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
4114         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
4115         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
4116         (expand_expr_real_1): Likewise.
4117         * ifcvt.c (noce_try_cmove_arith): Likewise.
4118         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
4119         * reload.c (find_reloads): Likewise.
4120         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
4121         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
4123 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
4125         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
4126         information from the instruction produced.
4128 2012-05-09  Richard Guenther  <rguenther@suse.de>
4130         * stor-layout.c (bit_from_pos): Document.
4131         (byte_from_pos): Likewise.  Optimize.
4132         (pos_from_bit): Likewise.
4133         (normalize_offset): Use pos_from_bit instead of replicating it.
4135 2012-05-09  Alan Modra  <amodra@gmail.com>
4137         PR target/53271
4138         * config/rs6000/rs6000.c (gen_frame_set): New function.
4139         (gen_frame_load, gen_frame_store): New functions.
4140         (rs6000_savres_rtx): Use the above.
4141         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
4142         Correct mode used for CR2 in save/restore_world patterns.
4143         Don't emit instructions for eh_return frame unwind reg info.
4145 2012-05-08  Jan Hubicka  <jh@suse.cz>
4147         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
4148         with VALUE_EXPR.
4149         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
4150         are removable.
4151         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
4152         need to wrapup.
4153         (compile_file): Do not output variables.
4154         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
4155         output it.
4156         * langhooks.c: Include timevar.h
4157         (write_global_declarations): Finalize compilation unit after wrapup;
4158         set timevars correctly.
4159         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
4160         not to be added to varpool.
4161         * varpool.c (varpool_assemble_decl): Sanity check that we are called
4162         only on cases where it makes sense; skip constant pool and value expr
4163         vars.
4165 2012-05-08  David S. Miller  <davem@davemloft.net>
4167         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
4168         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
4169         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
4171 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
4173         PR rtl-optimization/53278
4174         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
4175         speed_p code from earlier patch.
4177 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
4179         PR target/51244
4180         * config/sh/sh.md (*branch_true, *branch_false): New insns.
4182 2012-05-08  Teresa Johnson  <tejohnson@google.com>
4184         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
4185         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
4187 2012-05-08  Jan Hubicka  <jh@suse.cz>
4189         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
4190         (cgraph_create_node_1): Rename to ...
4191         (cgraph_create_empty_node): ... this one; export.
4192         (cgraph_create_node): Update.
4193         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
4194         (cgraph_create_edge_including_clones): Likewise.
4195         (cgraph_find_replacement_node): Likewise.
4196         (cgraph_clone_edge): Likewise.
4197         (cgraph_clone_node): Likewise.
4198         (clone_function_name): Likewise.
4199         (cgraph_create_virtual_clone): Likewise.
4200         (cgraph_remove_node_and_inline_clones): Likewise.
4201         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
4202         * cgraph.h: Reorder declarations so they match file of origin.
4203         (cgraph_create_empty_node): Declare.
4204         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
4205         (cgraph_copy_node_for_versioning): Likewise.
4206         (cgraph_function_versioning): Likewise.
4207         (cgraph_materialize_clone): Likewise.
4208         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4209         (cgraph_materialize_all_clones): Likewise.
4210         * cgraphclones.c: New file.
4211         * Makefile.in: Update for cgraphclones.
4213 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
4215         PR target/53176
4216         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
4217         (ix86_rtx_costs): Handle SET.
4219 2012-05-08  Michael Matz  <matz@suse.de>
4221         * basic-block.h (struct rtl_bb_info): Remove visited member and
4222         move head_ member to ...
4223         (struct basic_block_def.basic_block_il_dependent): ... the new
4224         member x, replacing but containing old member rtl.
4225         (enum bb_flags): New BB_VISITED flag.
4226         (BB_HEADER, BB_FOOTER): New macros.
4228         * jump.c (mark_all_labels): Adjust.
4229         * cfgcleanup.c (try_optimize_cfg): Adjust.
4230         * cfglayout.c (record_effective_endpoints): Adjust.
4231         (relink_block_chain): Ditto (and don't fiddle with visited).
4232         (fixup_reorder_chain): Adjust.
4233         (fixup_fallthru_exit_predecessor): Ditto.
4234         (cfg_layout_duplicate_bb): Ditto.
4235         * combine.c (update_cfg_for_uncondjump): Adjust.
4236         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
4237         (bb_visited_trace): New accessor.
4238         (mark_bb_visited): Move in front.
4239         (rotate_loop): Use bb_visited_trace.
4240         (find_traces_1_round): Ditto.
4241         (emit_barrier_after): Ditto.
4242         (copy_bb): Ditto, and initialize visited on resize.
4243         (reorder_basic_blocks): Initize visited member.
4244         (duplicate_computed_gotos): Clear bb flags at start, use
4245         BB_VISITED flags.
4247         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
4248         (rtl_verify_flow_info_1): Ditto.
4249         (cfg_layout_split_block): Ditto.
4250         (cfg_layout_delete_block): Ditto.
4251         (cfg_layout_merge_blocks): Ditto.
4252         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
4254 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
4256         PR target/53272
4257         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
4258         when a constant source operand matches an "I" constraint, the "no
4259         CC0 change" applies to a register-destination only, not a
4260         strict_low_part-destination.
4262 2012-05-08  Richard Guenther  <rguenther@suse.de>
4264         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
4265         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
4267 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
4269         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
4271         * doc/avr-mmcu.texi: New auto-generated file.
4272         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
4273         to document all valid -mmcu= arguments.
4275         * config/avr/avr.h (arch_info_s): New struct definition.
4276         * config/avr/avr-devices.c (avr_texinfo): New variable.
4277         * config/avr/gen-avr-mmcu-texi.c: New file.
4278         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
4280 2012-05-08  Dehao Chen  <dehao@google.com>
4282         * predict.c (find_qualified_ssa_name): New.
4283         (find_ssa_name_in_expr): New.
4284         (find_ssa_name_in_assign_stmt): New.
4285         (is_comparison_with_loop_invariant_p): New.
4286         (is_bound_expr_similar): New.
4287         (predict_iv_comparison): New.
4288         (predict_loops): Add heuristic for loop-nested branches that compare an
4289         induction variable to a loop bound variable.
4290         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
4292 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
4294         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
4295         TARGET_BDVER2 defines where appropriate.
4297 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
4299         * configure.ac (PLUGIN_LD): Rename into...
4300         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
4301         * config.in: Regenerate.
4302         * configure: Likewise.
4303         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
4305 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
4307         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
4308         computation using the precision of the index type.
4309         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
4310         (fold_array_ctor_reference): Do index computations in the index type.
4312 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
4314         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
4315         down to plus_constant.
4316         (expand_epilogue): Ditto.
4318 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4320         * postreload.c (reload_cse_regs): Make static.
4321         * reload.h (reload_cse_regs): Remove prototype.
4323 2012-05-07  Richard Henderson  <rth@redhat.com>
4325         * config/alpha/alpha.md (clear_cache): New pattern.
4327 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4329         PR middle-end/53245
4330         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
4331         is folded to a type boundary value, verify that the resulting case
4332         label is still a care range.
4334 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
4336         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
4337         only for TARGET_GENERIC, when not optimizing for size.
4338         (*ffs<mode>_1): Ditto.
4340 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4342         * tree-cfg.c (verify_gimple_switch): Tighten checks.
4344 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
4346         PR tree-optimization/53239
4347         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
4348         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
4350 2012-05-07  Richard Guenther  <rguenther@suse.de>
4352         PR tree-optimization/53195
4353         * tree-inline.c (setup_one_parameter): Properly add referenced
4354         vars from the parameters new known value.
4356 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4358         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
4359         (sched_branch_type): Remove.
4360         (m68k_sched_md_init_global): Don't allocate it.
4361         (m68k_sched_md_finish_global): Don't free it.
4362         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
4363         * config/m68k/m68k.md: Set the type of insns using
4364         m68k_sched_branch_type to bcc directly.
4366 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4368         * config/sol2.c (solaris_override_options): New function.
4369         * config/sol2-protos.h (solaris_override_options): Declare.
4370         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
4372 2012-05-07  Richard Guenther  <rguenther@suse.de>
4374         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
4375         whether we failed to compute data dependences.
4376         (loop_prefetch_arrays): Fail if we failed.
4378 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
4379             Paolo Bonzini  <bonzini@gnu.org>
4381         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
4382         Emit bsf when optimizing for size.
4383         (*ffs<mode>_1): Ditto.
4385 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
4387         PR target/53250
4388         * config/sh/sh.c (sh_rtx_costs): Handle SET.
4390 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
4392         PR target/53227
4393         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
4394         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
4395         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
4396         (bswapsi2): Ditto.
4397         (*bswapdi2_doubleword): New insn pattern.
4398         (*bswap<mode>2): Rename from *bswap<mode>2_1.
4400 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
4402         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
4403         (mips_set_reg_reg_cost): Likewise.
4404         (mips_rtx_costs): Handle SET.
4406 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
4408         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
4409         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
4410         to compute the cost of moves.  Set the mode of the target register.
4412 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
4414         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
4415         plus_constant function.
4416         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
4417         that the mode is sensible.
4418         (use_anchored_address, round_push, allocate_dynamic_stack_space)
4419         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
4420         plus_constant.
4422         * alias.c (canon_rtx): Likewise.
4423         (init_alias_analysis): Likewise.
4424         * builtins.c (expand_builtin_return_addr)
4425         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
4426         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
4427         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
4428         (expand_builtin_stpcpy): Likewise.
4429         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
4430         (compute_argument_addresses, internal_arg_pointer_based_exp)
4431         (expand_call, emit_library_call_value_1): Likewise.
4432         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
4433         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
4434         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
4435         * cse.c (insert_const_anchor, find_reg_offset_for_const)
4436         (use_related_value, fold_rtx): Likewise.
4437         * cselib.c (cselib_subst_to_values): Likewise.
4438         * dse.c (record_store, check_mem_read_rtx): Likewise.
4439         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
4440         * emit-rtl.c (adjust_address_1): Likewise.
4441         * except.c (sjlj_emit_function_enter)
4442         (expand_builtin_extract_return_addr)
4443         (expand_builtin_frob_return_addr): Likewise.
4444         * expmed.c (expand_divmod): Likewise.
4445         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
4446         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
4447         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
4448         * function.c (assign_stack_local_1)
4449         (instantiate_virtual_regs_in_rtx): Likewise.
4450         * optabs.c (prepare_cmp_insn): Likewise.
4451         * recog.c (offsettable_address_addr_space_p): Likewise.
4452         * reload.c (find_reloads_address, form_sum)
4453         (find_reloads_subreg_address): Likewise.
4454         * reload1.c (init_reload, eliminate_regs_1)
4455         (eliminate_regs_in_insn): Likewise.
4456         * simplify-rtx.c (simplify_unary_operation_1)
4457         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
4458         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
4459         (vt_add_function_parameter): Likewise.
4461         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
4462         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
4463         * config/alpha/alpha.c (alpha_legitimize_address_1)
4464         (get_unaligned_address, alpha_expand_unaligned_load)
4465         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
4466         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
4467         (alpha_expand_builtin_establish_vms_condition_handler)
4468         (alpha_setup_incoming_varargs, emit_frame_store_1)
4469         (alpha_expand_prologue, alpha_expand_epilogue)
4470         (alpha_use_linkage): Likewise.
4471         * config/alpha/alpha.md: Likewise.
4473         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
4474         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
4475         (thumb_legitimize_address, arm_gen_load_multiple_1)
4476         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
4477         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
4478         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
4479         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
4480         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
4481         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
4482         (thumb_expand_movmemqi, arm_set_return_address)
4483         (thumb_set_return_address): Likewise.
4484         * config/arm/arm.md: Likewise.
4486         * config/avr/avr.c (avr_incoming_return_addr_rtx)
4487         (avr_prologue_setup_frame, expand_epilogue)
4488         (avr_const_address_lo16): Likewise.
4490         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
4491         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
4492         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
4493         (bfin_output_mi_thunk): Likewise.
4495         * config/c6x/c6x.c (c6x_initialize_trampoline)
4496         (c6x_output_mi_thunk): Likewise.
4498         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
4499         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
4501         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
4502         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
4503         (cris_emit_movem_store, cris_trampoline_init): Likewise.
4504         * config/cris/cris.md: Likewise.
4506         * config/darwin.c (machopic_indirect_data_reference)
4507         (machopic_legitimize_pic_address): Likewise.
4509         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
4510         (epiphany_expand_prologue, epiphany_expand_epilogue)
4511         (epiphany_trampoline_init): Likewise.
4512         * config/epiphany/epiphany.md: Likewise.
4514         * config/fr30/fr30.c (fr30_move_double): Likewise.
4516         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
4517         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
4518         (frv_index_memory, unspec_got_name, frv_find_base_term)
4519         (frv_output_dwarf_dtprel): Likewise.
4521         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
4522         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
4524         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
4525         * config/i386/i386.c (setup_incoming_varargs_64)
4526         (setup_incoming_varargs_ms_64, choose_baseaddr)
4527         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
4528         (ix86_emit_probe_stack_range, ix86_expand_prologue)
4529         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
4530         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
4531         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
4532         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
4533         (x86_output_mi_thunk): Likewise.
4534         * config/i386/i386.md: Likewise.
4536         * config/ia64/ia64.c (ia64_expand_load_address)
4537         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
4538         (do_spill, ia64_trampoline_init): Likewise.
4540         * config/iq2000/iq2000.c (iq2000_va_start)
4541         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
4542         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
4543         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
4545         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4547         * config/m32c/m32c.c (m32c_return_addr_rtx)
4548         (m32c_expand_insv): Likewise.
4550         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
4551         (m32r_legitimize_pic_address, m32r_print_operand)
4552         (m32r_print_operand_address): Likewise.
4554         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
4555         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
4556         (EH_RETURN_HANDLER_RTX): Likewise.
4557         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
4558         (m68k_expand_epilogue, legitimize_pic_address)
4559         (m68k_output_mi_thunk): Likewise.
4560         * config/m68k/m68k.md: Likewise.
4562         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4563         (mcore_expand_epilog): Likewise.
4564         * config/mcore/mcore.md: Likewise.
4566         * config/mep/mep.c (mep_allocate_initial_value)
4567         (mep_expand_prologue, mep_expand_epilogue): Likewise.
4569         * config/microblaze/microblaze.c (double_memory_operand)
4570         (microblaze_block_move_loop): Likewise.
4572         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
4573         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
4574         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
4575         (mips_expand_prologue, mips_epilogue_set_cfa)
4576         (mips_expand_epilogue): Likewise.
4577         * config/mips/mips.md: Likewise.
4579         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
4580         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
4582         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
4583         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
4585         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4586         (EH_RETURN_HANDLER_RTX): Likewise.
4587         * config/moxie/moxie.c (moxie_static_chain): Likewise.
4589         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
4590         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
4591         (pa_return_addr_rtx, hppa_builtin_saveregs)
4592         (pa_trampoline_init): Likewise.
4593         * config/pa/pa.md: Likewise.
4595         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
4597         * config/picochip/picochip.c (picochip_static_chain): Likewise.
4599         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
4600         * config/rs6000/rs6000.c (rs6000_legitimize_address)
4601         (setup_incoming_varargs, print_operand, rs6000_return_addr)
4602         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
4603         (rs6000_emit_epilogue)
4604         (rs6000_machopic_legitimize_pic_address): Likewise.
4606         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
4608         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
4609         (DYNAMIC_CHAIN_ADDRESS): Likewise.
4610         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
4611         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
4612         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
4613         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
4614         (s390_emit_epilogue, s390_function_profiler): Likewise.
4615         * config/s390/s390.md: Likewise.
4617         * config/score/score.c (score_add_offset, score_prologue): Likewise.
4619         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
4620         (sh_output_mi_thunk): Likewise.
4621         * config/sh/sh.md: Likewise.
4623         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
4624         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
4625         * config/sparc/sparc.c (sparc_legitimize_pic_address)
4626         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
4627         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
4628         (emit_and_preserve): Likewise.
4629         * config/sparc/sparc.md: Likewise.
4631         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4632         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
4633         (spu_setup_incoming_varargs, ea_load_store_inline)
4634         (spu_expand_load): Likewise.
4636         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
4637         (combine_bnp): Likewise.
4639         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4640         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
4641         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
4643         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4644         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
4645         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
4647         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
4648         * config/v850/v850.md: Likewise.
4650         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
4651         (EH_RETURN_HANDLER_RTX): Likewise.
4652         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
4653         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
4654         (print_operand_address, vax_trampoline_init): Likewise.
4656         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
4657         (xtensa_function_value_regno_p): Likewise.
4659 2012-05-04  Andrew Pinski  <apinski@cavium.com>
4661         * expr.c (get_def_for_expr_class): New function.
4662         (convert_tree_comp_to_rtx): New function.
4663         (expand_cond_expr_using_cmove): New function.
4664         (expand_expr_real_2 <case COND_EXPR>): Call
4665         expand_cond_expr_using_cmove first and return if it succeeds.
4666         Remove the check for HAVE_conditional_move since we should have
4667         already converted it to a conditional move.
4668         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
4669         modes of DImode for 32bits and TImode.
4671 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
4673         PR other/29442
4674         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
4675         (print_md_ptr_loc, print_c_condition): Use them.
4676         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
4677         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
4678         attr_file, dfa_file, latency_file): New global variables.
4679         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
4680         write_upcase, write_indent, write_length_unit_log, write_test_expr,
4681         write_attr_get, write_insn_cases, write_eligible_delay,
4682         write_const_num_delay_slots): Accept FILE pointer and toss it around.
4683         Update all callers.
4684         (write_header, open_outfile, handle_arg): New funcions.
4685         (make_automaton_attrs): Write prototypes as extern to the output
4686         files.
4687         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
4688         names from the command line.  Open the output files and write out
4689         internal functions for DFA functions to dfa_file_name, insn latency
4690         functions to latency_file_name, and everything else to attr_file.
4691         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
4692         (BACKEND): Build libbackend first.
4693         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
4694         (.PRECIOUS): Likewise.
4695         (insn-dfatab.o): New rule.
4696         (insn-latencytab.o): New rule.
4697         (simple_rtl_generated_c): Do not include insn-attrtab.c.
4698         (s-attrtab): New rule.
4700 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
4702         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
4703         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
4704         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
4705         * reorg.c (get_jump_flags): Do not set the removed flags.
4707         * doc/md.texi (attr_flag): Update for abovementioned changes.
4709 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
4711         PR target/53228
4712         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
4713         (TARGET_CMOV): Rename from TARGET_CMOVE.
4714         (TARGET_CMOVE): New define.
4715         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
4716         Do not set TARGET_CMOVE here.
4718 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
4720         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
4721         * opts.c (finish_options): Activate -Wunused-local-typedefs if
4722         -Wunused is activated.
4723         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
4725 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4727         * config/s390/s390.md (*movmem_short, *clrmem_short)
4728         (*cmpmem_short): Move the mode check from the insn condition to
4729         the match_scratch.
4731 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4733         PR tree-optimization/52633
4734         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
4735         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
4736         (vect_recog_over_widening_pattern): Remove handling of code that was
4737         already detected as over-widening pattern.  Remove special handling
4738         of "unsigned" cases.  Instead, support general case of conversion
4739         of the shift result to another type.
4741 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4743         * tree-vect-patterns.c (vect_single_imm_use): New function.
4744         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
4745         (vect_recog_over_widening_pattern): Likewise.
4746         (vect_recog_widen_shift_pattern): Likewise.
4748 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4750         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
4751         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
4752         (vect_recog_widen_mult_pattern): Likewise.
4753         (vect_operation_fits_smaller_type): Likewise.
4754         (vect_recog_over_widening_pattern): Likewise.
4755         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
4757 2012-05-04  Richard Guenther  <rguenther@suse.de>
4759         PR lto/50602
4760         * lto-wrapper.c (merge_and_complain): Complain about mismatches
4761         of -freg-struct-return and -fpcc-struct-return.
4762         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
4763         from the input file options and ignore those from the link
4764         command line.
4766 2012-05-04  Richard Guenther  <rguenther@suse.de>
4768         PR tree-optimization/53168
4769         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
4770         memory reads when the result is a constant we can pun.
4772 2012-05-04  Richard Guenther  <rguenther@suse.de>
4774         * common.opt (flto-report): Do not mark as Optimization.
4776 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4778         PR target/48496
4779         * recog.c (constrain_operands): If extra constraints are present, also
4780         accept pseudo-registers with equivalent memory locations during reload.
4782 2012-05-04  Olivier Hainque  <hainque@adacore.com>
4784         * collect2.c (may_unlink_output_file): New global.
4785         (maybe_unlink): Honor it.
4786         * collect2.h: Add extern for it.
4787         * tlink.c (do_tlink): Set it to true if the link succeeded.
4789 2012-05-04  Olivier Hainque  <hainque@adacore.com>
4791         * gcc.c (eval_spec_function): Finalize/restore the current string
4792         obstack state as part of the context push/pop operations.
4794 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
4796         PR rtl-optimization/52804
4797         * reload1.c (reload_reg_reaches_end_p): Check whether successor
4798         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
4799         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
4800         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
4801         RELOAD_FOR_OUTADDR_ADDRESS.
4803 2012-05-04  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
4805         PR c++/24985
4806         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
4807         for macro expansion.
4809 2012-05-03  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
4811         * flags.h (flag_permissive): Do not declare.
4812         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
4813         option specially.
4814         * toplev.c (flag_permissive): Do not define.
4815         * c-tree.h (system_header_p): Delete unused.
4817 2012-05-03  David S. Miller  <davem@davemloft.net>
4819         PR target/52684
4820         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
4821         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
4822         (sparc_emit_float_lib_cmp): Likewise.
4824 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4826         PR target/53199
4827         * config/rs6000/rs6000.md (bswapdi splitters): If
4828         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
4829         default) is used, generate an alternate sequence that does not
4830         depend on using indexed addressing.
4832 2012-05-03  Jason Merrill  <jason@redhat.com>
4834         * gengtype.c (write_types): Fix warning message.
4835         (write_local): Likewise.
4837 2012-05-02  Jason Merrill  <jason@redhat.com>
4839         * dwarf2out.c (struct external_ref, build_local_stub): New.
4840         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
4841         (optimize_external_refs, optimize_external_refs_1): New.
4842         (change_AT_die_ref): New.
4843         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
4844         (build_abbrev_table): Take the external refs hashtable.
4845         (output_comp_unit): Get it from optimize_external_refs and pass it in.
4847 2012-05-03  Jan Hubicka  <jh@suse.cz>
4849         PR middle-end/53093
4850         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
4852 2012-05-03  Jan Hubicka  <jh@suse.cz>
4854         PR middle-end/53106
4855         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
4857 2012-05-03  Jason Merrill  <jason@redhat.com>
4859         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
4860         use_debug_types to discriminate the die_id union.
4861         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
4862         (build_abbrev_table, output_die): Likewise.
4863         (prune_unused_types_walk_attribs): Likewise.
4864         (generate_type_signature, copy_declaration_context): Set it.
4865         (remove_child_or_replace_with_skeleton): Set it.
4866         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
4867         check use_debug_types.
4868         (dwarf2out_finish): Do break_out_includes after .debug_types.
4870 2012-05-03  Jason Merrill  <jason@redhat.com>
4872         * dwarf2out.c (modified_type_die): Use scope_die_for.
4873         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
4874         (uses_local_type_r, uses_local_type): New.
4875         (scope_die_for): Keep a type that uses a local type in local scope.
4876         Use get_context_die for namespace and type scope.
4878 2012-05-03  Jason Merrill  <jason@redhat.com>
4880         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
4881         pc thunk.
4882         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
4883         (dwarf2out_finish): Likewise.
4885 2012-05-03  Martin Jambor  <mjambor@suse.cz>
4887         * builtins.c (get_object_alignment_1): Return whether we can determine
4888         the alignment or conservatively assume byte alignment.  Return the
4889         alignment by reference.  Use get_pointer_alignment_1 for dereference
4890         alignment.
4891         (get_pointer_alignment_1): Return whether we can determine the
4892         alignment or conservatively assume byte alignment.  Return the
4893         alignment by reference.  Use get_ptr_info_alignment to get SSA name
4894         alignment.
4895         (get_object_alignment): Update call to get_object_alignment_1.
4896         (get_object_or_type_alignment): Likewise, fall back to type alignment
4897         only when it returned false.
4898         (get_pointer_alignment): Update call to get_pointer_alignment_1.
4899         * fold-const.c (get_pointer_modulus_and_residue): Update call to
4900         get_object_alignment_1.
4901         * ipa-prop.c (ipa_modify_call_arguments): Update call to
4902         get_pointer_alignment_1.
4903         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
4904         of MEM_REF or TARGET_MEM_REF only when it returns false.
4905         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
4906         get_object_alignment_1.
4907         (ccp_finalize): Use set_ptr_info_alignment.
4908         * tree.h (get_object_alignment_1): Update declaration.
4909         (get_pointer_alignment_1): Likewise.
4910         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
4911         (dump_gimple_stmt): Likewise.
4912         * tree-flow.h (ptr_info_def): Updated comments of fields align and
4913         misalign.
4914         (get_ptr_info_alignment): Declared.
4915         (mark_ptr_info_alignment_unknown): Likewise.
4916         (set_ptr_info_alignment): Likewise.
4917         (adjust_ptr_info_misalignment): Likewise.
4918         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
4919         and set alignment of SSA names.
4920         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
4921         mark_ptr_info_alignment_unknown.
4922         * tree-ssanames.c (get_ptr_info_alignment): New function.
4923         (mark_ptr_info_alignment_unknown): Likewise.
4924         (set_ptr_info_alignment): Likewise.
4925         (adjust_ptr_info_misalignment): Likewise.
4926         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
4927         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4928         Likewise.
4929         (bump_vector_ptr): Likewise.
4930         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
4931         (vectorizable_store): Likewise.
4932         (vectorizable_load): Likewise.
4934 2012-05-03  Michael Matz  <matz@suse.de>
4936         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
4937         in front of basic_block_def.
4938         (struct basic_block_def): Make il.gimple the full struct, not a
4939         pointer.
4940         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
4942         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
4943         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
4944         NULL il.gimple, which can't happen anymore.
4945         * gimple.h (bb_seq): il.gimple can't be NULL.
4946         (bb_seq_add): Ditto.
4947         (set_bb_seq): Adjust.
4948         (gsi_start_bb, gsi_last_bb): Tidy.
4949         * lto-streamer-in.c (make_new_block): Don't zero members that
4950         are zeroed already, don't allocate a gimple_bb_info.
4951         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
4952         (remove_bb): Clear all il.gimple members.
4953         (gimple_verify_flow_info): Adjust for flat il.gimple.
4954         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
4956         * coretypes.h (const_gimple_seq): Remove typedef.
4957         * gimple.h (gimple_seq_first): Take gimple_seq.
4958         (gimple_seq_first_stmt): Ditto.
4959         (gimple_seq_last): Ditto.
4960         (gimple_seq_last_stmt): Ditto.
4961         (gimple_seq_empty_p): Ditto.
4963 2012-05-03  Richard Guenther  <rguenther@suse.de>
4965         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
4966         operations.
4967         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
4968         (compute_avail): Do not add possibly trapping operations to
4969         EXP_GEN if they might not be executed in the block.
4971 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
4973         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
4975 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
4977         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
4978         information as early as possible.  Update dominance info instead of
4979         discarding it.
4981 2012-05-03  Richard Guenther  <rguenther@suse.de>
4983         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
4984         (union_contains_value): Remove.
4985         (vro_valid_in_sets): Likewise.
4986         (op_valid_in_sets): New function.
4987         (valid_in_sets): Use op_valid_in_sets.
4988         (insert_into_preds_of_block): Move dumping ...
4989         (do_regular_insertion): ... here.
4990         (do_partial_partial_insertion): ... and here.  Dump that
4991         we've found a partial partial redundancy.
4992         (insert): Dump the current insert iteration.
4994 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
4996         PR plugins/53126
4997         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
4998         append program name to it and pass that as first argument
4999         to make_relative_prefix.  Always pass standard_libexec_prefix
5000         as last argument to make_relative_prefix.  If
5001         make_relative_prefix returns NULL, fall back to
5002         standard_libexec_prefix.
5004         PR debug/53174
5005         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
5006         removed.
5008         PR target/53187
5009         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
5010         mode, return that mode.
5012         PR target/53194
5013         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
5014         define __ATOMIC_HLE_* macros here.
5015         (ix86_target_macros): But here, using cpp_define_formatted.
5017 2012-05-03  Richard Guenther  <rguenther@suse.de>
5019         PR tree-optimization/53144
5020         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
5021         Rename to ...
5022         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
5023         with SSA name values.
5024         (vn_reference_lookup_3): Adjust callers.
5026 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5028         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
5029         has_fma4 for AMD processors with both fma3 and fma4 support.
5031 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
5033         PR target/53201
5034         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
5035         "-mno-hle".
5037 2012-05-03  Michael Matz  <matz@suse.de>
5039         PR bootstrap/53197
5040         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
5041         (dse_enter_block): Properly iterate the whole sequence even
5042         if the last statement was removed.
5044 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
5046         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
5047         unset flag_jump_tables.
5048         * stmt.c (expand_case): Remove special flag_pic case conditional
5049         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
5051 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
5053         * common/config/s390/s390-common.c (s390_option_optimization_table):
5054         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
5055         default when optimizing.
5057 2012-05-02  Martin Jambor  <mjambor@suse.cz>
5059         PR lto/52605
5060         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
5061         of a variable when the contect is a function.
5063 2012-05-02  Michael Matz  <matz@suse.de>
5065         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
5066         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
5067         (const_gimple_seq_node): Remove.
5068         (gimple_seq_node): Typedef as gimple.
5069         (struct gimple_statement_base): Add next and prev members,
5070         adjust all WORD markers in using structs.
5071         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
5072         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5073         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
5074         gimple are the same.
5075         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
5076         gimple_seq, adjust.
5077         (gimple_init_singleton): New function.
5078         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
5079         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
5080         (gsi_stmt): Adjust.
5081         (gsi_stmt_ptr): Remove.
5082         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
5084         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
5085         again, adjust for above changes.
5086         (update_call_edge_frequencies): Adjust for above changes.
5087         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
5088         (gsi_insert_seq_nodes_after): Ditto.
5089         (gsi_split_seq_after): Ditto.
5090         (gsi_set_stmt): Ditto.
5091         (gsi_split_seq_before): Ditto.
5092         (gsi_remove): Ditto.
5093         (gsi_insert_seq_before_without_update): Don't free sequence.
5094         (gsi_insert_seq_after_without_update): Ditto.
5095         (gsi_replace): Assert some more invariants.
5096         (gsi_insert_before_without_update, gsi_insert_after_without_update):
5097         Tidy.
5098         (gsi_for_stmt): Don't search for stmt.
5099         (gsi_insert_on_edge_immediate): Tidy.
5101         * gimple.c (gimple_alloc_k): Remove "sequences".
5102         (gimple_seq_cache): Remove.
5103         (gimple_alloc_stat): Make stmt a singleton sequence.
5104         (gimple_seq_alloc, gimple_seq_free): Remove.
5105         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
5106         (gimple_copy): Ditto.
5107         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
5108         create iterator from correct sequence.
5109         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
5111 2012-05-02  Michael Matz  <matz@suse.de>
5113         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
5114         gimple_seq.
5115         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
5116         sequence, lazily allocate it.
5117         (bb_seq_addr): New function.
5118         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
5119         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
5120         (gsi_none): New function.
5121         (gsi_start_bb): Adjust.
5122         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
5123         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
5124         (gsi_last_bb): Adjust.
5125         (gsi_seq): Adjust.
5126         * tree-flow-inline.h (phi_nodes_ptr): New function.
5128         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
5129         datastructure and interface change.
5130         (gsi_insert_seq_before_without_update): Ditto.
5131         (gsi_insert_seq_nodes_after): Ditto.
5132         (gsi_insert_seq_after_without_update): Ditto.
5133         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
5134         (gsi_split_seq_before): Ditto.
5135         (gsi_start_phis): Adjust.
5136         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
5137         (vect_transform_loop): Ditto.
5138         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
5139         gimple_seq_copy): Don't use gimple_seq_alloc.
5140         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
5141         (gimplify_seq_add_seq): Ditto.
5142         * lto-streamer-in.c (make_new_block): Ditto.
5143         * tree-cfg.c (create_bb): Ditto.
5144         * tree-sra.c (initialize_parameter_reductions): Ditto.
5146 2012-05-02  Michael Matz  <matz@suse.de>
5148         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5149         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
5150         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
5151         set_bb_seq): Move down to after gimple_statement_d definition.
5153 2012-05-02  Michael Matz  <matz@suse.de>
5155         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5156         gsi_replace_with_seq, instead of inserting itself.
5157         * gimple-iterator.c (gsi_replace_with_seq): New function.
5158         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
5159         iterator instead of statement, advance it.
5160         (ssa_forward_propagate_and_combine): Adjust call to above.
5162 2012-05-02  Michael Matz  <matz@suse.de>
5164         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
5165         gimple_seq_alloc.
5166         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
5167         * tree-nested.c (walk_gimple_omp_for): Ditto.
5168         * trans-mem.c (lower_transaction): Ditto.
5169         * tree-eh.c (do_return_redirection): Ditto.
5170         (do_goto_redirection): Ditto.
5171         (lower_try_finally_switch): Ditto.
5172         * gimplify.c (gimplify_stmt): Ditto.
5173         (gimplify_scan_omp_clauses): Ditto.
5174         (gimplify_omp_for): Ditto.
5175         (gimplify_function_tree): Ditto.
5176         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
5177         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
5178         (mf_build_check_statement_for): Ditto.
5179         (mx_register_decls): Ditto.
5180         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
5181         and don't use itertors to append.
5182         (insert_stmts): Ditto.
5183         (insert_out_of_ssa_copy): Ditto.
5184         (insert_out_of_ssa_copy_on_edge): Ditto.
5186 2012-05-02  Michael Matz  <matz@suse.de>
5188         * gimple.h (gimple_bind_body_ptr): New function.
5189         (gimple_bind_body): Use it.
5190         (gimple_catch_handler): Use gimple_catch_handler_ptr.
5191         (gimple_eh_filter_failure_ptr): New function.
5192         (gimple_eh_filter_failure): Use it.
5193         (gimple_eh_else_n_body_ptr): New function.
5194         (gimple_eh_else_n_body): Use it.
5195         (gimple_eh_else_e_body_ptr): New function.
5196         (gimple_eh_else_e_body): Use it.
5197         (gimple_try_eval_ptr): New function.
5198         (gimple_try_eval): Use it.
5199         (gimple_try_cleanup_ptr): New function.
5200         (gimple_try_cleanup): Use it.
5201         (gimple_wce_cleanup_ptr): New function.
5202         (gimple_wce_cleanup): Use it.
5203         (gimple_omp_body_ptr): New function.
5204         (gimple_omp_body): Use it.
5205         (gimple_omp_for_pre_body_ptr): New function.
5206         (gimple_omp_for_pre_body): Use it.
5207         (gimple_transaction_body_ptr): New function.
5208         (gimple_transaction_body): Use it.
5209         (gsi_split_seq_before): Adjust to return nothing and take pointer
5210         to sequence.
5211         (gsi_set_stmt): Declare.
5212         (gsi_replace_with_seq): Declare.
5213         (walk_gimple_seq_mod): Declare.
5214         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
5216         * gimple-iterator.c (gsi_set_stmt): New function.
5217         (gsi_split_seq_before): Return new sequence via pointer argument.
5218         (gsi_replace): Use gsi_set_stmt.
5220         * tree-ssa-loop-im.c (move_computations_stmt): First remove
5221         then insert stmt.
5222         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
5223         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
5224         return new stmt.
5225         (reserve_phi_args_for_new_edge): Change call to above,
5226         use gsi_set_stmt.
5228         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
5229         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
5230         iterators.  Adjust call to lower_omp.
5231         (lower_lastprivate_clauses): Adjust call to lower_omp.
5232         (lower_reduction_clauses): Ditto.
5233         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
5234         (lower_omp_sections): Don't explicitely count sequence length,
5235         nullify lowered bodies earlier, ensure stmts are part of only
5236         one sequence, adjust call to lower_omp.
5237         (lower_omp_single): Ensure stmts are part of only one sequence,
5238         adjust call to lower_omp.
5239         (lower_omp_master): Ditto.
5240         (lower_omp_ordered): Ditto.
5241         (lower_omp_critical): Ditto.
5242         (lower_omp_for): Ditto.
5243         (lower_omp_taskreg): Ditto, tidy.
5244         (lower_omp_1): Adjust calls to lower_omp.
5245         (execute_lower_omp): Ditto.
5246         (lower_omp): Adjust to take pointer to sequence.
5247         (diagnose_sb_2): Use walk_gimple_seq_mod.
5248         (diagnose_omp_structured_block_errors): Ditto and set possibly
5249         changed function body.
5250         * gimple-low.c (lower_function_body): Set function body after
5251         it stabilizes.
5252         (lower_sequence): Adjust to take pointer to sequence.
5253         (lower_omp_directive): Ensure stmt isn't put twice into the
5254         sequence, adjust call to lower_sequence.
5255         (lower_stmt): Adjust calls to lower_sequence.
5256         (lower_gimple_bind): Ditto.
5257         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
5258         * tree-nested.c (walk_body): Take pointer to sequence, use
5259         walk_gimple_seq_mod.
5260         (walk_function): Adjust call to walk_body, set possibly changed body.
5261         (walk_gimple_omp_for): Adjust calls to walk_body.
5262         (convert_nonlocal_omp_clauses): Ditto.
5263         (convert_nonlocal_reference_stmt): Ditto.
5264         (convert_local_omp_clauses): Ditto.
5265         (convert_local_reference_stmt): Ditto.
5266         (convert_tramp_reference_stmt): Ditto.
5267         (convert_gimple_call): Ditto.
5268         (convert_nl_goto_reference): Use local iterator copy.
5269         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
5270         but taking pointer to sequence, ensure gsi_start is called with
5271         callers lvalue.
5272         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
5273         asserting that the sequence head didn't change.
5274         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
5275         walk_gimple_seq_mod.
5276         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
5277         (execute_lower_tm): Ditto, and set possibly changed body.
5278         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
5279         call gsi_start with that lvalue.
5280         (replace_goto_queue_stmt_list): Ditto.
5281         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
5282         (replace_goto_queue): Ditto.
5283         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
5284         (lower_try_finally_onedest): Ditto.
5285         (lower_try_finally_copy): Ditto.
5286         (lower_try_finally_switch): Ditto.
5287         (lower_try_finally): Ditto.
5288         (lower_eh_filter): Ditto.
5289         (lower_eh_must_not_throw): Ditto.
5290         (lower_cleanup): Ditto.
5291         (lower_eh_constructs_2): Ditto.
5292         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
5293         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
5294         set possibly changed body.
5295         (optimize_double_finally): Call gsi_start with lvalue.
5297         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
5298         (gimple_split_block): Ditto.
5299         (gimple_merge_blocks): Use gsi_start_phis.
5300         (move_stmt_r): Use walk_gimple_seq_mod.
5301         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
5302         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
5303         (rebuild_cgraph_edges): Ditto.
5304         (cgraph_rebuild_references): Ditto.
5305         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
5306         * tree-inline.c (copy_phis_for_bb): Ditto.
5307         * tree-ssa-dce.c: Ditto.
5309         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
5311 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5312             Andi Kleen <ak@linux.intel.com>
5314         * coretypes.h (MEMMODEL_MASK): New.
5315         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
5316         and return new variable.
5317         (expand_builtin_atomic_exchange):  Mask memmodel values.
5318         (expand_builtin_atomic_compare_exchange): Ditto.
5319         (expand_builtin_atomic_load): Ditto.
5320         (expand_builtin_atomic_store): Ditto.
5321         (expand_builtin_atomic_clear): Ditto.
5322         * doc/extend.texi: Mention port-dependent memory model flags.
5323         * config/i386/cpuid.h (bit_HLE): New.
5324         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5325         HLE support.
5326         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
5327         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
5328         (ix86_target_string)<-mhle>: New.
5329         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5330         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
5331         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5332         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
5333         enabled for generic, generic64 and core-avx2.
5334         (ix86_print_operand): Generate HLE lock prefixes.
5335         (ix86_memmodel_check): New.
5336         (TARGET_MEMMODEL_CHECK): Ditto.
5337         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
5338         (IX86_HLE_ACQUIRE): Ditto.
5339         (IX86_HLE_RELEASE): Ditto.
5340         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
5341         * config/i386/i386.opt (mhle): Ditto.
5342         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
5343         success model to instruction emitter.
5344         (atomic_fetch_add<mode>): Ditto.
5345         (atomic_exchange<mode>): Ditto.
5346         (atomic_add<mode>): Ditto.
5347         (atomic_sub<mode>): Ditto.
5348         (atomic_<code><mode>): Ditto.
5349         (*atomic_compare_and_swap_doubledi_pic): Ditto.
5350         (atomic_compare_and_swap_single<mode>): Define and use argument
5351         for success model.
5352         (atomic_compare_and_swap_double<mode>): Ditto.
5353         * configure.ac: Check if assembler support HLE prefixes.
5354         * configure: Regenerate.
5355         * config.in: Ditto.
5357 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
5359         PR middle-end/53153
5360         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
5361         split out from ...
5362         (gimplify_switch_expr): ... here.
5363         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
5364         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
5365         to clean up case labels with values outside the index type range.
5366         (simplify_gimple_switch): Call it if something changed.
5367         Remove strange and unnecessary assert.
5369 2012-05-02  Richard Guenther  <rguenther@suse.de>
5371         * fold-const.c (div_if_zero_remainder): sizetypes no longer
5372         sign-extend.
5373         (int_const_binop_1): New worker for int_const_binop with
5374         overflowable parameter.  Pass it through to force_fit_type_double.
5375         (int_const_binop): Wrap around int_const_binop_1 with overflowable
5376         equal to one.
5377         (size_binop_loc): Call int_const_binop_1 with overflowable equal
5378         to minus one, forcing overflow detection for even unsigned types.
5379         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
5380         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
5381         * stor-layout.c (initialize_sizetypes): sizetypes no longer
5382         sign-extend.
5383         (layout_type): For zero-sized arrays ignore overflow on the
5384         size calculations.
5385         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
5386         (bit_value_binop_1): Likewise.
5387         * tree.c (double_int_to_tree): Likewise.
5388         (double_int_fits_to_tree_p): Likewise.
5389         (force_fit_type_double): Likewise.
5390         (host_integerp): Likewise.
5391         (int_fits_type_p): Likewise.
5392         * varasm.c (output_constructor_regular_field): Sign-extend the
5393         field-offset to cater for negative offsets produced by the Ada
5394         frontend.
5395         * omp-low.c (extract_omp_for_data): Convert the loop step to
5396         signed for pointer adjustments.
5398 2012-05-02  Richard Guenther  <rguenther@suse.de>
5400         * tree.c (valid_constant_size_p): New function.
5401         * tree.h (valid_constant_size_p): Declare.
5402         * cfgexpand.c (expand_one_var): Adjust check for too large
5403         variables by using valid_constant_size_p.
5404         * varasm.c (assemble_variable): Likewise.
5406         * c-decl.c (grokdeclarator): Properly check for sizes that
5407         cover more than half of the address-space.
5409 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
5411         PR tree-optimization/53163
5412         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
5413         return value from compute_all_dependences.
5415         PR rtl-optimization/53160
5416         * ree.c (combine_reaching_defs): Handle the case where cand->insn
5417         has been modified by ree pass already.
5419 2012-05-01  Ian Lance Taylor  <iant@google.com>
5421         PR c/37303
5422         * c-decl.c (build_compound_literal): Make the decl readonly if it
5423         an array of a readonly type.
5424         * gimplify.c (gimplify_compound_literal_expr): Add fallback
5425         parameter.  Change all callers.  If the decl is not addressable
5426         and is not an l-value, make it readonly.
5428 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
5430         * ira.c (allocated_reg_info_size): New static variable.
5431         (expand_reg_info): Manage it. Call
5432         setup_preferred_alternate_classes_for_new_pseudos.
5433         (ira): Don't do it here.  Remove local allocated_reg_info_size,
5434         set the global before calling find_moveable_pseudos.
5435         (find_moveable_pseudos): Call expand_reg_info rather than
5436         resize_reg_info.
5438 2012-05-01  Richard Henderson  <rth@redhat.com>
5440         * common.opt (fsync-libcalls): New.
5441         * doc/invoke.texi: Document it.
5442         * optabs.c (init_sync_libfuncs): Honor it.
5444 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
5445             Richard Sandiford  <r.sandiford@uk.ibm.com>
5447         PR rtl-optimization/52543
5448         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
5449         lower-subreg.h.
5450         * lower-subreg.h: New file.
5451         * target-globals.h (this_target_lower_subreg): Declare.
5452         (target_globals): Add lower_subreg;
5453         (restore_target_globals): Restore this_target_lower_subreg.
5454         * target-globals.c: Include it.
5455         (default_target_globals): Add default_target_lower_subreg.
5456         (save_target_globals): Initialize target_lower_subreg.
5457         * rtl.h (init_lower_subreg): Added declaration.
5458         * toplev.c (backend_init_target): Call initializer for lower-subreg
5459         pass.
5460         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
5461         (default_target_lower_subreg): New variable.
5462         (this_target_lower_subreg): Likewise.
5463         (twice_word_mode, choices): New macros.
5464         (shift_cost, compute_splitting_shift, compute_costs)
5465         (init_lower_subreg): New functions.
5466         (resolve_simple_move): Add speed_p argument.  Check choices.
5467         (find_pseudo_copy): Don't check the mode size here.
5468         (resolve_simple_move): Assert the mode size.
5469         (find_decomposable_shift_zext): Add speed_p argument and return
5470         a bool.  Check choices.
5471         (resolve_shift_zext): Add comment.
5472         (dump_shift_choices, dump_choices): New functions.
5473         (decompose_multiword_subregs): Dump list of profitable
5474         transformations.  Add code to skip non profitable transformations.
5475         Update calls to simple_move and find_decomposable_shift_zext.
5477 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
5478             Sameera Deshpande  <sameera.deshpande@arm.com>
5479             Greta Yorsh  <greta.yorsh@arm.com>
5481         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
5482         (thumb1_unexpanded_epilogue): ...this.
5483         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
5484         (thumb1_unexpanded_epilogue): ...this.
5485         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
5486         (thumb1_unexpanded_epilogue): ...this.
5488 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
5490         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
5491         comparing enumeration values.  Update comments.
5493 2012-05-01  Alan Modra  <amodra@gmail.com>
5495         PR target/53038
5496         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
5497         load_cr_save, add_crlr_cfa_restore): New functions.
5498         (rs6000_restore_saved_cr): Rename to..
5499         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
5500         (rs6000_emit_epilogue): Use new functions.  Adjust condition
5501         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
5502         regs when using out-of-line restore only when shrink wrapping.
5504 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5506         PR middle-end/53136
5507         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
5508         calls to cgraph_node_name in xstrdup.
5509         (ipa_make_edge_direct_to_target): Ditto.
5510         * cgraph.c (dump_cgraph_node): Ditto.
5511         * tree-sra.c (convert_callers_for_node): Ditto.
5512         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
5513         * ipa-cp.c (perhaps_add_new_callers): Ditto.
5514         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
5515         (cgraph_materialize_all_clones): Ditto.
5516         * ipa-inline.c (report_inline_failed_reason): Ditto.
5517         (want_early_inline_function_p): Ditto.
5518         (edge_badness): Ditto.
5519         (update_edge_key): Ditto.
5520         (flatten_function): Ditto.
5521         (ipa_inline): Ditto.
5522         (inline_always_inline_functions): Ditto.
5523         (early_inline_small_functions): Ditto.
5525 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5527         PR target/53141
5528         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
5529         constraints 0 and 1.
5531 012-04-30  Jan Hubicka  <jh@suse.cz>
5533         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
5534         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
5535         (cgraph_add_to_same_comdat_group): Remove.
5536         (cgraph_add_asm_node): Move to cgraphunit.c.
5537         (cgraph_make_decl_local): Move to symtab.c
5538         (cgraph_make_node_local_1): Update.
5539         (cgraph_can_remove_if_no_direct_calls_and): Update.
5540         (used_from_object_file_p): Update.
5541         (resolution_used_from_other_file_p): Move to symtab.c
5542         (cgraph_used_from_object_file_p): move to symtab.c
5543         (verify_cgraph_node): Verify same comdat groups.
5544         * cgraph.h (cgraph_asm_node): Rename to ...
5545         (asm_node): ... this one.
5546         (cgraph_asm_nodes): Rename to ...
5547         (asm_nodes): ... this one.
5548         (symtab_add_to_same_comdat_group): New function.
5549         (symtab_dissolve_same_comdat_group_list): New function.
5550         (symtab_used_from_object_file_p): Declare.
5551         (symtab_make_decl_local): Declare.
5552         (cgraph_add_to_same_comdat_group): Remove.
5553         (cgraph_add_asm_node): Remove.
5554         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
5555         Remove.
5556         (cgraph_finalize_compilation_unit): Rename to ...
5557         (finalize_compilation_unit): ... this one.
5558         (cgraph_optimize): Rename to ....
5559         (compile): ... this one.
5560         (add_asm_node): Declare.
5561         (fixup_same_cpp_alias_visibility): Declare.
5562         (cgraph_make_decl_local): Remove.
5563         (varpool_assemble_pending_decls): Rename to ...
5564         (varpool_output_variables): ... this one.
5565         (varpool_remove_unreferenced_decls): Remove.
5566         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
5567         (preserve_function_body_p): Make static.
5568         * toplev.c (compile_file): Update comments; update.
5569         * cgraphunit.c: Update comments.
5570         (cgraph_expand_all_functions): Rename to ...
5571         (expand_all_functions): ... this one; update.
5572         (cgraph_mark_functions_to_output): Rename to ...
5573         (mark_functions_to_output): ... this one; cleanup.
5574         (cgraph_output_pending_asms): Remove prototype.
5575         (asm_nodes, asm_last_node): New static vars.
5576         (cgraph_process_new_functions): Update.
5577         (cgraph_reset_node): Cleanup; add comment.
5578         (cgraph_add_new_function): Update.
5579         (cgraph_output_pending_asms): Rename to ...
5580         (output_asm_statements): ... this one.
5581         (add_asm_node): New function.
5582         (fixup_same_cpp_alias_visibility): New function based on code
5583         in cgraph_analyze_function.
5584         (cgraph_analyze_function): Use it.
5585         (cgraph_order_sort): Update.
5586         (cgraph_output_in_order): Update.
5587         (cgraph_function_versioning): Update.
5588         (cgraph_optimize): Rename to ...
5589         (compile): ... this one; initialize streamer hooks here.
5590         (cgraph_finalize_compilation_unit): Rename to ...
5591         (finalize_compilation_unit): ... this one; do not initialize streamer
5592         hook here.
5593         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
5594         * dwarf2out.c: Update ocmment.
5595         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
5596         * method.c (use_thunk): Likewise.
5597         * semantics.c (maybe_add_lambda_conv_op): Likewise.
5598         * decl2.c (maybe_emit_vtables): Likewise.
5599         (cp_write_global_declarations): Use finalize_compilation_unit.
5600         * parser.c (cp_parser_asm_definition): Use add_asm_node.
5601         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
5602         * c-decl.c (c_write_global_declarations): Use
5603         finalize_compilation_unit.
5604         * langhooks.c (write_global_declarations): Update.
5605         * ipa.c (cgraph_externally_visible_p): Update.
5606         (dissolve_same_comdat_group_list): Remove.
5607         (function_and_variable_visibility): Update.
5608         * symtab.c: Inlcude lto-streamer.h and rtl.h
5609         (ld_plugin_symbol_resolution_names): New.
5610         (symtab_add_to_same_comdat_group): New.
5611         (symtab_dissolve_same_comdat_group_list): New.
5612         (resolution_used_from_other_file_p): Move here from cgraph.c
5613         (symtab_used_from_object_file_p): New.
5614         (symtab_make_decl_local): New.
5615         * passes.c (register_pass): Update comments.
5616         * c-parser.c (c_parser_asm_definition): Update.
5617         * varpool.c (varpool_analyze_node): Use
5618         fixup_same_cpp_alias_visibility.
5619         (varpool_remove_unreferenced_decls): Make static.
5620         (varpool_assemble_pending_decls): Rename to ...
5621         (varpool_output_variables): ... this one; call
5622         varpool_remove_unreferenced_decls.
5623         (varpool_used_from_object_file_p): Remove.
5625 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
5627         PR c++/51033
5628         * c-typeck.c (build_array_ref): Call
5629         convert_vector_to_pointer_for_subscript.
5630         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
5632 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5634         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
5635         to compile-time "mode == <MODE>mode" checks.
5636         (and splitter): Ditto.
5638 2012-04-30  Richard Henderson  <rth@redhat.com>
5640         * config/arm/arm.md (UNSPEC_LL): New.
5641         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
5642         (arm_load_exclusivedi): Use %H0.
5644 2012-04-30  Jason Merrill  <jason@redhat.com>
5646         * dwarf2out.c (comdat_symbol_id): Add const.
5647         (union die_symbol_or_type_node): Add const to die_symbol.
5648         (output_die_symbol, output_die, output_comp_unit): Adjust.
5650 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
5652         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
5653         * config/arm/neon.md (negdi2_neon): New insn.
5654         Also add splitters for core and NEON registers.
5656 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
5658         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
5659         (arm_print_operand): Add 'x' format.
5660         * config/arm/constraints.md (Dn): Allow const_int.
5661         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
5662         Use 'x' format to print constants.
5663         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
5664         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
5665         is enabled.
5666         (movdi_vfp_cortexa8): Likewise.
5668 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
5669             Sameera Deshpande  <sameera.deshpande@arm.com>
5670             Greta Yorsh  <greta.yorsh@arm.com>
5672         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
5673         * config/arm/arm.c (ldm_stm_operation_p): New function.
5674         * config/arm/predicates.md (load_multiple_operation): Update predicate.
5675         (store_multiple_operation): Likewise.
5677         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
5678         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
5679         * config/arm/predicates.md (load_multiple_operation): Add arguments.
5680         (store_multiple_operation): Likewise.
5682 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
5684         * config/i386/i386.md (and<mode>3): Expand masking operations with
5685         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
5686         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
5688 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
5690         Add -Wvarargs option
5691         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
5692         argument for the various warning_at calls.
5693         * docs/invoke.texi: Update the documentation.
5695 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
5697         Switch -ftrack-macro-expansion=2 on by default.
5698         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
5699         by default.
5701         Fix va_start related location
5702         * builtins.c (fold_builtin_next_arg): Unwinds to the first
5703         location in real source code.
5705         Make conversion warnings work on NULL with -ftrack-macro-expansion
5706         * input.h (expansion_point_location_if_in_system_header): Declare
5707         new function.
5708         * input.c (expansion_point_location_if_in_system_header): Define it.
5710         Fix -Wuninitialized for -ftrack-macro-expansion
5711         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
5712         declaration.  Use linemap_location_before_p for source locations.
5714         Strip "<built-in>" loc from displayed expansion context
5715         * input.c (expand_location_1): When expanding to spelling location
5716         in a context of a macro expansion, skip reserved system header
5717         locations.  Update comments.  * tree-diagnostic.c
5718         (maybe_unwind_expanded_macro_loc): Likewise.
5720         Make expand_location resolve to locus in main source file
5721         * input.c (expand_location_1): New.  Takes a parameter to choose
5722         whether to resolve the location to spelling or expansion point.
5723         Was factorized from ...
5724         (expand_location): ... here.
5725         (expand_location_to_spelling_point): New.  Implemented in terms of
5726         expand_location_1.
5727         * diagnostic.c (diagnostic_build_prefix): Use the new
5728         expand_location_to_spelling_point instead of expand_location.
5730         Fix PCH crash on GTYed pointer-to-scalar field of a struct
5731         * gengtype.c (write_types_process_field): Force second argument of
5732         the call to the PCH object hierarchy walker to be 'x'.
5734 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
5736         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
5737         predicate to discriminate types.
5739 2012-04-30  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5741         * doc/invoke.texi (Wmissing-format-attribute): Document as an
5742         alias of Wsuggest-attribute=format.
5743         * c-typeck.c (convert_for_assignment): Replace
5744         Wmissing-format-attribute with Wsuggest-attribute=format.
5745         (digest_init): Likewise.
5747 2012-04-29  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5749         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
5750         * common.opt (Wmissing-noreturn): Alias of
5751         -Wsuggest-attribute=noreturn.
5753 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
5755         PR target/53156
5756         * config/cris/cris.md (andqu): New peephole2.
5757         (andu): Tweak head comment.
5759 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5760             Steven Bosscher  <steven@gcc.gnu.org>
5761             Maxim Kuvyrkov  <maxim@codesourcery.com>
5763         PR tree-optimization/38785
5764         * common.opt (ftree-partial-pre): New option.
5765         * doc/invoke.texi: Document it.
5766         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
5767         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
5768         benefit speed path.
5769         (execute_pre): Use flag_tree_partial_pre.
5771 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5773         PR target/52999
5774         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
5775         in constant pool.
5777 2012-04-27  Ollie Wild  <aaw@google.com>
5779         * doc/invoke.texi (Wliteral-suffix): Document new option.
5781 2012-04-27  Tom Tromey  <tromey@redhat.com>
5783         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
5784         (dwarf_tag_name): Use get_DW_TAG_name.
5785         (dwarf_attr_name): Use get_DW_AT_name.
5786         (dwarf_form_name): Use get_DW_FORM_name.
5787         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
5789 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
5791         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
5792         arguments are -1 and 0, by negating the result of the conditional.
5794 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
5796         PR target/53138
5797         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
5799 2012-04-27  Richard Guenther  <rguenther@suse.de>
5801         * tree-flow.h (is_hidden_global_store): Remove.
5802         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
5803         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
5804         (stmt_may_clobber_global_p): Likewise.
5805         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
5806         (stmt_may_clobber_global_p): Likewise.
5807         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
5808         stmt_may_clobber_global_p.
5809         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
5811 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
5813         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
5814         place.
5816         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
5817         reorganize some fields and update comments.  Rename bit_test_uniq
5818         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
5819         (collect_switch_conv_info): New function, collects info about a
5820         GIMPLE_SWITCH into a struct switch_conv_info.
5821         (check_range): Simplify to use pre-recorded info.  Fix think-o in
5822         range-branch ratio check.
5823         (check_process_case): Remove function.
5824         (check_all_empty_except_final): New function, verifies that all
5825         non-final basic blocks are empty.
5826         (process_switch): Simplify to use pre-recorded info.  Call
5827         collect_switch_conv_info to do that.  Assert that degenerate switch
5828         statements have been cleaned up.
5830 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
5832         PR middle-end/27139
5833         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
5835 2012-04-25  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5837         PR c/53130
5838         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
5840 2012-04-27  Tom de Vries  <tom@codesourcery.com>
5842         PR tree-optimization/51879
5843         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
5844         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
5845         of ...
5846         (defs_to_varying): ... here.  Don't set use_processed.
5847         (visit_reference_op_call): Handle gimple_vdef.
5848         Handle case that lhs is NULL_TREE.
5849         (visit_use): Use mark_use_processed.  Handle calls with side-effect
5850         using visit_reference_op_call.
5852 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
5854         * sched-deps.c (fixup_sched_groups): Rename to...
5855         (chain_to_prev_insn): ...this.
5856         (chain_to_prev_insn_p): New function.
5857         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
5859 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
5861         * sched-int.h (_haifa_insn_data): Move priority_status.
5862         Add model_index.
5863         (INSN_MODEL_INDEX): New macro.
5864         * haifa-sched.c (insn_delay): New function.
5865         (sched_regno_pressure_class): Update commentary.
5866         (mark_regno_birth_or_death): Pass the liveness bitmap and
5867         pressure array as arguments, instead of using curr_reg_live and
5868         curr_reg_pressure.  Only update the pressure if the bit in the
5869         liveness set has changed.
5870         (initiate_reg_pressure_info): Always trust the live-in set for
5871         SCHED_PRESSURE_MODEL.
5872         (initiate_bb_reg_pressure_info): Update call to
5873         mark_regno_birth_or_death.
5874         (dep_list_size): Take the list as argument.
5875         (calculate_reg_deaths): New function, extracted from...
5876         (setup_insn_reg_pressure_info): ...here.
5877         (MODEL_BAR): New macro.
5878         (model_pressure_data, model_insn_info, model_pressure_limit)
5879         (model_pressure_group): New structures.
5880         (model_schedule, model_worklist, model_insns, model_num_insns)
5881         (model_curr_point, model_before_pressure, model_next_priority):
5882         New variables.
5883         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
5884         (MODEL_INSN_INFO, MODEL_INSN): New macros.
5885         (model_index, model_update_limit_points_in_group): New functions.
5886         (model_update_limit_points, model_last_use_except): Likewise.
5887         (model_start_update_pressure, model_update_pressure): Likewise.
5888         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
5889         (model_excess_cost, model_dump_pressure_points): Likewise.
5890         (model_set_excess_costs): Likewise.
5891         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
5892         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
5893         schedule as an alternative tie-breaker.  Update the call to
5894         dep_list_size.
5895         (ready_sort): Call model_set_excess_costs.
5896         (update_register_pressure): Update call to mark_regno_birth_or_death.
5897         Rely on that function to check liveness rather than doing it here.
5898         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
5899         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
5900         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
5901         (model_record_pressure, model_record_pressures): New functions.
5902         (model_record_final_pressures, model_add_successors_to_worklist)
5903         (model_promote_predecessors, model_choose_insn): Likewise.
5904         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
5905         (model_start_schedule, model_finalize_pressure_group): Likewise.
5906         (model_end_schedule): Likewise.
5907         (schedule_insn): Say when we're scheduling the next instruction
5908         in the model schedule.
5909         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
5910         (queue_to_ready): Do not add instructions that are
5911         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
5912         Always allow the next instruction in the model schedule to be added.
5913         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5914         and delay for SCHED_PRESSURE_MODEL too.
5915         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
5916         SCHED_PRIORITY_MODEL, but also take the DFA into account.
5917         (schedule_block): Call model_start_schedule and model_end_schedule.
5918         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
5919         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5920         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
5921         region_ref_regs.
5922         (sched_finish): Update accordingly.
5923         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5924         to SCHED_PRESSURE_MODEL.
5925         (add_jump_dependencies): Update call to dep_list_size.
5926         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
5927         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5928         to SCHED_PRESSURE_MODEL.
5929         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
5930         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
5931         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5932         handling to SCHED_PRESSURE_MODEL.
5934 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
5936         * common.opt (fsched-pressure-algorithm=): New option.
5937         * flag-types.h (sched_pressure_algorithm): New enum.
5938         * sched-int.h (sched_pressure_p): Replace with...
5939         (sched_pressure): ...this new variable.
5940         * haifa-sched.c (sched_pressure_p): Replace with...
5941         (sched_pressure): ...this new variable.
5942         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
5943         (update_reg_and_insn_max_reg_pressure, schedule_insn)
5944         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
5945         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
5946         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5947         (sched_analyze_insn): Likewise.
5948         * sched-rgn.c (schedule_region): Likewise.
5949         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
5951 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
5953         * PR middle-end/52997
5954         * ira.c (find_moveable_pseudos): Call resize_reg_info.
5956         PR middle-end/52940
5957         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
5958         * expr.c (convert_move): Honor unsignedp when extending partial int
5959         modes.
5960         * genmodes.c (complete_mode): Don't clear component field of partial
5961         int modes.
5962         (emit_mode_inner): Don't emit it however.
5963         (calc_wider_mode): Partial int modes widen to their component.
5965 2012-04-26  David S. Miller  <davem@davemloft.net>
5967         * config/sparc/niagara4.md: New file.
5968         * config/sparc/sparc.md: Include it.
5969         * config/sparc/sparc.c (niagara4_costs): New processor costs.
5970         (sparc_option_override): Use it.
5971         (sparc_use_sched_lookahead): Return 2 for niagara4.
5972         (sparc_issue_rate): Likewise.
5974         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
5975         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
5976         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
5977         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
5978         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
5979         alignaddrldi_vis): Set type to gsr.
5980         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
5981         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
5982         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
5983         v<vis3_shift_patname><mode>3, fmean16_vis,
5984         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
5985         fucmp<code>8<P:mode>_vis): Set type to fga.
5986         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
5987         * config/sparc/niagara.md: Likewise.
5988         * config/sparc/niagara2.md: Likewise.
5989         * config/sparc/ultra3.md: Likewise, and fix type matching for
5990         us3_ialuX reservation.
5992 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5994         * reload.c (find_reloads): Change the loop nesting when trying an
5995         alternative with swapped operands.
5997 2012-04-26  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
5999         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
6000         comment. Delete unused parameter first_exp_point_map.
6001         (virt_loc_aware_diagnostic_finalizer): Update call.
6003 2012-04-26  Michael Hope  <michael.hope@linaro.org>
6004             Richard Earnshaw  <rearnsha@arm.com>
6006         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
6007         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
6008         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
6009         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
6011 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
6013         * doc/extend.texi: Document avx2 support.
6014         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
6016 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
6018         PR target/53120
6019         * config/cris/cris.md ("*andhi_lowpart_v32")
6020         ("*andqi_lowpart_v32"): Change first input-only operand from
6021         a (match_operand ...) to (match_dup 0).  Drop alternatives with
6022         const_int-matching constraints for redundancy.
6023         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
6024         three-operand alternative.
6026 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6028         PR target/53110
6029         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
6030         instead expand it as zero extension.
6032 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
6034         PR debug/52857
6035         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
6037 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6039         * common.opt (flag_debug_types_section): Default to 0.
6040         (dwarf_version): Default to 4.
6041         (dwarf_record_gcc_switches): Default to 1.
6042         (dwarf_strict): Default to 0.
6043         * toplev.c (process_options): Don't handle dwarf_strict
6044         or dwarf_version here.
6045         * config/vxworks.c (vxworks_override_options): Don't
6046         test whether dwarf_strict or dwarf_version are negative,
6047         instead test !global_options_set.x_dwarf_*.
6048         * config/darwin.c (darwin_override_options): Default to
6049         dwarf_version 2.
6050         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
6051         and -fno-debug-types-section are now the default.
6053 2012-04-25  Jan Hubicka  <jh@suse.cz>
6055         * cgraphunit.c: Update toplevel comment.
6056         (tree_rest_of_compilation): Merge into cgraph_expand_function.
6057         (cgraph_analyze_function): Make static.
6058         (cgraph_decide_is_function_needed): Make static.
6059         (cgraph_add_new_function): Use expand_function instead of
6060         rest_of_compilation.
6061         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6062         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6063         Move to cgraph.c
6064         (cgraph_inline_p): Remove.
6065         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
6066         (init_cgraph): Add comment.
6067         * cgraphbuild.c (record_reference, mark_address, mark_load,
6068         mark_store): Do not call analyze_expr hook.
6069         * cgraph.c: Update toplevel comment.
6070         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6071         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6072         Move fere from cgraphunit.c
6073         (cgraph_mark_force_output_node): Move to cgraph.h
6074         * cgraph.h: Reorder so the comments match the function placement.
6075         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
6076         (cgraph_mark_force_output_node): Move here from cgraph.c
6077         * tree.c (free_lang_data): Do not clear analyze_expr hook.
6078         * ipa-inline-transform.c (preserve_function_body_p): New function.
6079         (inline_transform): Update.
6080         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
6081         * langhooks.h (lang_hooks_for_callgraph): Remove.
6082         (lang_hooks): Remove callgraph.
6083         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
6084         * varpool.c: Remove out of date comment.
6085         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
6086         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
6088 2012-04-25  Jan Hubicka  <jh@suse.cz>
6090         PR middle-end/53089
6091         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
6092         forward declaration.
6093         (cgraph_finalize_function): Finalize them here.
6094         * symtab.c (dump_symtab): Dump ctors and dtors.
6096 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6098         PR middle-end/52979
6099         * stor-layout.c (get_best_mode): Don't return mode with bitsize
6100         larger than maxbits.  Don't compute maxbits modulo align.
6101         Also check that unit bytes long store at bitpos / unit * unit
6102         doesn't affect bits beyond bitregion_end.
6103         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
6104         would not fit into bitregion_start ... bitregion_end + 1 bit region.
6105         (store_split_bit_field): Decrease unit close to end of bitregion_end
6106         if access is restricted in order to avoid mutual recursion.
6108         PR tree-optimization/53058
6109         * double-int.h (double_int_max_value, double_int_min_value): New
6110         prototypes.
6111         * double-int.c (double_int_max_value, double_int_min_value): New
6112         functions.
6113         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
6114         or GT_EXPR with double_int_max_value instead of double_int_mask.
6116 2012-04-25  Richard Guenther  <rguenther@suse.de>
6118         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6119         * tree-vect-loop.c (vect_transform_loop): Adjust.
6120         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
6121         the maximum number of iterations for the epilogue loop.
6122         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
6124 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
6126         PR c/52880
6127         * c-typeck.c (set_nonincremental_init,
6128         set_nonincremental_init_from_string): Pass true instead of false
6129         as IMPLICIT to add_pending_init.
6131 2012-04-25  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6133         * c-typeck.c (pop_init_level): Improve diagnostics.
6135 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
6137         * compare-elim.c (try_eliminate_compare): Also handle operands with
6138         implicit extensions.
6140 2012-04-25  Alan Modra  <amodra@gmail.com>
6142         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
6143         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
6144         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
6145         (no_global_regs_above): Delete.
6146         (no_global_regs): New function.
6147         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
6148         value for load multiple test.
6149         (savres_routine_syms): Increase size.
6150         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
6151         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
6152         rather than a number of boolean flags.  Update all callers.
6153         (rs6000_savres_routine_name): Generate vector save/restore names.
6154         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
6155         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
6156         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
6157         and using_store_multiple.  Expand uses.  Don't always use r11 as
6158         frame reg when needed for out-of-line saves.  Set up initial offset
6159         for out-of-line vector saves when buying stack frame.  Handle pointer
6160         reg setup for out-of-line fp save.  Emit call to out-of-line vector
6161         save function.  Choose r11 or r12 for vrsave reg when available for
6162         better scheduling.
6163         (rs6000_output_function_prologue): Don't emit .extern for ELF.
6164         (rs6000_emit_epilogue): Choose a better frame reg when restoring
6165         from back-chain to suit out-of-line vector restore functions.  Emit
6166         call to out-of-line vector restore function.  Adjust register used
6167         for cr restore.  Tweak pointer register setup for gpr restore.
6168         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
6169         FIXED_R13.
6170         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
6171         (V_SAVE_INLINE): Define.
6172         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
6174 2012-04-25  Alan Modra  <amodra@gmail.com>
6176         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
6177         out-of-line save/restore for large frames.  Don't disable
6178         out-of-line saves on ABI_AIX when using static chain reg.
6179         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
6180         clobber static chain reg, and tweak for out-of-line gpr saves
6181         that use r1.
6183 2012-04-25  Alan Modra  <amodra@gmail.com>
6185         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
6186         (rs6000_emit_prologue): Use the above to catch register overlap.
6188 2012-04-25  Alan Modra  <amodra@gmail.com>
6190         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
6191         decl.  Move logic selecting update reg to callers.  Update all callers.
6192         (rs6000_emit_allocate_stack): Add copy_off param.
6193         (emit_frame_save): Don't handle reg+reg addressing.
6194         (ptr_regno_for_savres): New function, extracted from..
6195         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
6196         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
6197         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
6198         frame offset adjustment for out-of-line save with copy from sp.
6199         Simplify condition controlling whether cr is saved early or
6200         late.  Use ptr_regno_for_savres to verify correct reg is set
6201         up for out-of-line saves.  Pass the actual pointer reg used to
6202         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
6203         function.  Rearrange spe vars so code is similar to that
6204         elsewhere in this function.  Don't update frame_off when spe
6205         save code will restore r11.  Use emit_frame_save for spe and
6206         gpr saves.  Consolidate darwin out-of-line gpr setup with that
6207         for other abis.  Don't assume frame_offset is zero and frame
6208         reg is sp when setting up altivec reg saves, and calculate
6209         exact offset requirement.
6210         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
6211         spe restore code.  Consolidate darwin out-of-line gpr setup
6212         with that for other abis.
6214 2012-04-25  Alan Modra  <amodra@gmail.com>
6216         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
6217         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
6218         the replacement.
6219         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
6220         frame_reg_to_sp.
6221         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
6222         and emit_frame_save calls.  Cope with possibly missing note.
6224 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
6226         * config/i386/i386.c (build_processor_model_struct): New function.
6227         (make_var_decl): New function.
6228         (fold_builtin_cpu): New function.
6229         (ix86_fold_builtin): New function.
6230         (make_cpu_type_builtin): New function.
6231         (ix86_init_platform_type_builtins): New function.
6232         (ix86_expand_builtin): Expand new builtins by folding them.
6233         (ix86_init_builtins): Make new builtins to detect CPU type.
6234         (TARGET_FOLD_BUILTIN): New macro.
6235         (IX86_BUILTIN_CPU_INIT): New enum value.
6236         (IX86_BUILTIN_CPU_IS): New enum value.
6237         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
6238         * config/i386/i386-builtin-types.def: New function type.
6239         * testsuite/gcc.target/builtin_target.c: New testcase.
6240         * doc/extend.texi: Document builtins.
6242 2012-04-24  Olivier Hainque  <hainque@adacore.com>
6244         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
6245         * toplev.c (process_options): Default to dwarf_version 2.
6246         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
6247         and dwarf_version 2.
6249 2012-04-24  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6251         * tree-pretty-print.h (default_tree_printer): Do not declare.
6252         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
6253         intl.h.
6254         (default_tree_diagnostic_starter): Make static.
6255         (default_tree_printer): Move to here. Make static.
6256         (tree_diagnostics_defaults): New.
6257         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
6258         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
6259         * toplev.c: Do not include tree-pass.h.
6260         (default_tree_printer): Move from here.
6261         (general_init): Use tree_diagnostics_defaults.
6263 2012-04-24  Chao-ying Fu  <fu@mips.com>
6265         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
6266         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
6267         * config/mips/gnu-user.h
6268         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
6269         (GNU_USER_TARGET_LINK_SPEC): New define.
6270         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6271         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
6272         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
6273         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
6274         GNU_USER_TARGET_ENDFILE_SPEC.
6275         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
6276         (GNU_USER_TARGET_LINK_SPEC): New define.
6277         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6278         * config/mips/linux-common.h: New file.
6280 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6282         PR target/47197
6283         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
6284         (altivec_build_resolved_builtin): Call fully_fold_convert.
6286 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
6288         PR target/53065
6289         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
6291 2012-04-24  Richard Guenther  <rguenther@suse.de>
6293         PR tree-optimization/53085
6294         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
6295         stores.
6297 2012-04-24  Richard Guenther  <rguenther@suse.de>
6299         * tree-if-conv.c (main_tree_if_conversion): Move bb under
6300         ENABLE_CHECKING.
6302 2012-04-24  Jim Meyering  <meyering@redhat.com>
6304         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
6305         absence of an define_enum call.
6307 2012-04-24  Richard Guenther  <rguenther@suse.de>
6309         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
6310         the epilogue loop is not re-used as unvectorized version
6311         record the its maximum number of iterations.
6313 2012-04-24  Andrew Pinski  <apinski@cavium.com>
6315         * tree-ssa-forwprop.c (simplify_bitwise_binary):
6316         Don't directly use def1/def2.
6318 2012-04-24  Richard Guenther  <rguenther@suse.de>
6320         PR tree-optimization/53098
6321         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
6322         comparison sign.
6324 2012-04-24  Andrew Pinski  <apinski@cavium.com>
6326         PR tree-opt/33512
6327         * tree-ssa-forwprop.c (defcodefor_name): New function.
6328         (simplify_bitwise_binary): Use defcodefor_name instead of manually
6329         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
6330         Simplify "(~X | Y) & X" to "X & Y" and
6331         "(~X & Y) | X" to "X | Y".
6333 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6335         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
6336         validate_change to add clobbers if IN_GROUP is nonzero.
6337         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
6338         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
6339         prototype.
6340         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
6341         set to false.
6342         * config/s390/s390.c (insn_invalid_p): Likewise.
6344 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
6346         PR middle-end/53084
6347         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
6348         (output_addressed_constants): Likewise.
6350         PR middle-end/52999
6351         * varasm.c (get_section): Don't ICE for section conflicts with
6352         built-in section kinds.
6354 2012-04-23  DJ Delorie  <dj@redhat.com>
6356         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
6357         (LIBSTDCXX): Change to CPP2.
6359 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6361         PR bootstrap/52878
6362         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
6363         extra_masks.
6365 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
6367         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
6368         (*addsi_2_zext): Ditto.
6369         (*add<mode>_3): Ditto.
6370         (*addsi_3_zext): Ditto.
6371         (*add<mode>_5): Ditto.
6373 2012-04-23  Andrew Pinski  <apinski@cavium.com>
6375         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
6376         (C & B) to (A OP0) & B.
6378 2012-04-23  Martin Jambor  <mjambor@suse.cz>
6380         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
6381         temporaries created for a bitfield (reverting revision 122014).
6383 2012-04-23  Richard Guenther  <rguenther@suse.de>
6385         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
6386         the condition using is_gimple_condexpr and avoid the not necessary
6387         boolification.
6388         (set_prologue_iterations): Likewise.
6389         (vect_loop_versioning): Likewise.
6391 2012-04-23  Richard Guenther  <rguenther@suse.de>
6393         PR tree-optimization/53070
6394         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
6395         (main_tree_if_conversion): Verify we succeeded in that.
6397 2012-04-23  Jan Hubicka  <jh@suse.cz>
6399         * lto-symtab.c (lto_cgraph_replace_node): Do not call
6400         mark_reahcable_node.
6401         * cgraph.c (cgraph_remove_node): Do not clear reachable.
6402         (cgraph_mark_reachable_node): Remove.
6403         (cgraph_mark_force_output_node): Do not set reachable.
6404         (dump_cgraph_node): Do not dump reachable.
6405         (cgraph_create_virtual_clone): Do not set reachable.
6406         * cgraph.h (cgraph_node): Remove reachable flag.
6407         (varpool_node): Remove reachable flag.
6408         (cgraph_mark_if_needed): Remove.
6409         (cgraph_mark_reachable_node): Remove.
6410         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
6411         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
6412         reachable.
6413         (cgraph_add_new_function): Likewise.
6414         (cgraph_mark_if_needed): Remove.
6415         (cgraph_analyze_function): Do not set target as reachable.
6416         (process_function_and_variable_attributes): Do not care about
6417         dllexport.
6418         (cgraph_analyze_functions): Do not set reachable flags.
6419         (cgraph_mark_functions_to_output): Do not check reachability.
6420         (cgraph_copy_node_for_versioning): Do not set reachable flag.
6421         (dbxout_expand_expr): Update.
6422         * c-decl.c (merge_decls): Do not track changed externs.
6423         * ipa.c: Include pointer-set.h
6424         (enqueue_cgraph_node): Use reachable pointer set.
6425         (process_references): Likewise.
6426         (cgraph_remove_unreachable_nodes): Likewise.
6427         (whole_program_function_and_variable_visibility): Do not recompute
6428         reachable.
6429         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
6431 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
6433         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
6435 2012-04-23  Richard Guenther  <rguenther@suse.de>
6437         PR c/53060
6438         * c-typeck.c (build_binary_op): Fix typo.
6440 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
6442         PR tree-optimizations/52891
6443         * tree-vect-patterns.c (adjust_bool_pattern): Use
6444         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
6445         but with non-standard precision.
6447 2012-04-22  Jan Hubicka  <jh@suse.cz>
6449         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
6450         tree refs.
6452 2012-04-22  Jan Hubicka  <jh@suse.cz>
6454         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
6455         * cgraphbuild.c (record_reference, record_type_list, mark_address,
6456         mark_load, mark_store): Do not mark varpool nodes as needed.
6457         * cgraph.c (cgraph_new_nodes): Remove.
6458         (cgraph_create_function_alias): Do not mark nodes as reachable.
6459         (cgraph_add_thunk): Likewise.
6460         (cgraph_mark_reachable_node): Do not manage the queue.
6461         * cgraph.h (cgraph_node): Remove next_needed.
6462         (varpool_nodes_queue): Remove next_needed and prev_needed.
6463         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
6464         (cgraph_new_nodes): Declare.
6465         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
6466         (varpool_analyze_pending_decls): Remove.
6467         (varpool_analyze_node): New.
6468         (varpool_mark_needed_node): Remove.
6469         (varpool_first_variable, varpool_next_variable): New inlines.
6470         (varpool_first_static_initializer, varpool_next_static_initializer):
6471         Update.
6472         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
6473         (varpool_first_defined_variable): New inline.
6474         (varpool_next_defined_variable): New inline
6475         (FOR_EACH_VARIABLE): Reimplement.
6476         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
6477         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
6478         needed flag.
6479         * cgraphunit.c (cgraph_new_nodes): Declare here.
6480         (enqueue_node): New function.
6481         (cgraph_process_new_functions): update for new
6482         node set; when constructing cgraph enqueue node for processing.
6483         (cgraph_add_new_function): Use new node set.
6484         (process_function_and_variable_attributes): Do not set varpool needed
6485         flags.
6486         (referred_to_p): New function.
6487         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
6488         when varpool is in construction.
6489         (cgraph_analyze_functions): Rewrite.
6490         (cgraph_expand_all_functions): Update.
6491         (cgraph_output_in_order): Do not analyze pending decls; do not set
6492         needed flags.
6493         (cgraph_optimize): Do not analyze pending decls.
6494         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
6495         in other partition; do not mark node as needed.
6496         * dwarf2out.c (reference_to_unused): Use analyzed flag.
6497         (premark_types_used_by_global_vars_helper): Likewise.
6498         * ipa.c (process_references): Do not call varpool_mark_needed_node.
6499         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
6500         cgrpah queues.
6501         (function_and_variable_visibility): Do not mark node as needed.
6502         (whole_program_function_and_variable_visibility): Likewise.
6503         * Makefile.in (gt-varpool.h): No longer needed.
6504         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
6505         (ipa_write_summaries): Do not use needed flag.
6506         * varpool.c: Do not include gt-varpool.h
6507         (x_varpool_nodes_queue, x_varpool_last_needed_node,
6508         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
6509         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
6510         Remove.
6511         (varpool_remove_node): Do not update the lists.
6512         (dump_varpool_node): Do not dump needed flag.
6513         (varpool_enqueue_needed_node): Remove.
6514         (varpool_mark_needed_node): Remove.
6515         (varpool_reset_queue): Remove.
6516         (varpool_finalize_decl): Move to cgraphunit.c
6517         (varpool_analyze_node): New functions based on former
6518         varpool_analyze_pending_decls.
6519         (varpool_analyze_pending_decls): Remove.
6520         (varpool_assemble_decl): Do not update the lists.
6521         (enqueue_node): New function.
6522         (varpool_remove_unreferenced_decls): Rewrite.
6523         (varpool_empty_needed_queue): Remove.
6524         (add_new_static_var): Do not mark node as needed.
6525         (varpool_create_variable_alias): Handle expansion state
6526         creation.
6527         * except.c (output_ttype): Do not mark node as needed.
6528         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
6529         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
6530         Likewise.
6531         * tree-switch-conversion.c (build_one_array): Likewise.
6533 2012-04-22  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6535         PR c/44774
6536         * doc/invoke.texi (pedantic): Rename to Wpedantic.
6537         * common.opt (Wpedantic): New.
6538         (pedantic): Alias Wpedantic.
6539         * diagnostic.c (warning_at): Likewise.
6540         * c-decl.c (diagnose_mismatched_decls): Likewise.
6541         (build_array_declarator): Likewise.
6542         (mark_forward_parm_decls):
6543         (check_bitfield_type_and_width): Likewise.
6544         (grokdeclarator): Likewise.
6545         (grokfield): Likewise.
6546         (finish_struct): Likewise.
6547         (build_enumerator): Likewise.
6548         (store_parm_decls_oldstyle): Likewise.
6549         (declspecs_add_qual): Likewise.
6550         (declspecs_add_type): Likewise.
6551         (finish_declspecs): Likewise.
6552         * c-typeck.c (composite_type): Likewise.
6553         (comp_target_types): Likewise.
6554         (build_array_ref): Likewise.
6555         (pointer_diff): Likewise.
6556         (build_unary_op): Likewise.
6557         (build_conditional_expr): Likewise.
6558         (build_c_cast): Likewise.
6559         (convert_for_assignment): Likewise.
6560         (maybe_warn_string_init): Likewise.
6561         (digest_init): Likewise.
6562         (pop_init_level): Likewise.
6563         (set_init_index): Likewise.
6564         (c_finish_goto_label): Likewise.
6565         (c_finish_return): Likewise.
6566         (do_case): Likewise.
6567         (build_binary_op): Likewise.
6568         * c-parser.c (static): Likewise.
6569         (c_parser_external_declaration): Likewise.
6570         (c_parser_declaration_or_fndef): Likewise.
6571         (c_parser_static_assert_declaration_no_se): Likewise.
6572         (c_parser_enum_specifier): Likewise.
6573         (c_parser_struct_or_union_specifier): Likewise.
6574         (c_parser_struct_declaration): Likewise.
6575         (c_parser_alignas_specifier): Likewise.
6576         (c_parser_braced_init): Likewise.
6577         (c_parser_initelt): Likewise.
6578         (c_parser_compound_statement_nostart): Likewise.
6579         (c_parser_conditional_expression): Likewise.
6580         (c_parser_alignof_expression): Likewise.
6581         (c_parser_postfix_expression): Likewise.
6582         (c_parser_postfix_expression_after_paren_): Likewise.
6583         (c_parser_objc_class_instance_variables): Likewise.
6584         (c_parser_objc_method_definition): Likewise.
6585         (c_parser_objc_methodprotolist): Likewise.
6587 2012-04-22  Ian Lance Taylor  <iant@google.com>
6589         * godump.c (go_output_typedef): Dump size of structs.
6591 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
6593         Correcting transform_to_exit_first_loop + fix to PR46886
6594         * tree-parloops.c (transform_to_exit_first_loop): Remove
6595         setting of number of iterations according to the loop pattern.
6596         Duplicate from entry to exit->src instead of loop->latch.
6597         (pallelize_loops): Remove the condition preventing do-while loops.
6598         * tree-cfg.c (bool bb_in_region_p): New.
6599         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
6600         Adjust redirection of the duplicated iteration.
6602 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
6604         PR bootstrap/53021
6605         * rtl.def (ADDRESS): Use "i" rather than "w".
6606         * rtl.h (find_base_term): Delete.
6607         (may_be_sp_based_p): Declare.
6608         * rtl.c (rtx_code_size): Remove ADDRESS special case.
6609         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
6610         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
6611         * alias.c: ...here.
6612         (find_base_term): Make static.
6613         (may_be_sp_based_p): New function.
6614         * dse.c (record_store): Use it.
6615         * store-motion.c (store_killed_in_insn): Likewise.
6617 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
6619         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
6621 2012-04-21  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6623         PR 35441
6624         * c-typeck.c (inform_declaration): New.
6625         (build_function_call_vec):  Do not pretty-print
6626         expressions when caret is enabled.
6627         (convert_arguments): Use inform_declaration.
6629 2012-04-20  Jim Meyering  <meyering@redhat.com>
6631         * genmodes.c (make_complex_modes): Don't truncate a mode name of
6632         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
6634 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6636         PR rtl-optimization/44214
6637         * fold-const.c (exact_inverse): New function.
6638         (fold_binary_loc): Fold vector and complex division by constant into
6639         multiply by recripocal with flag_reciprocal_math; fold vector division
6640         by constant into multiply by reciprocal with exact inverse.
6642 2012-04-20  Jan Hubicka  <jh@suse.cz>
6644         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
6645         force flags.
6646         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
6647         (cgraph_remove_node): Update.
6648         (cgraph_mark_needed_node): Remove.
6649         (cgraph_mark_force_output_node): New.
6650         (dump_cgraph_node): Do not dump needed flag.
6651         (cgraph_node_cannot_be_local_p_1): Update.
6652         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
6653         * cgraph.h (symtab_node_base): Add force_output flag.
6654         (cgraph_node): Remove needed flag.
6655         (varpool_node): Remove force_output flag.
6656         (cgraph_mark_needed_node): Remove.
6657         (cgraph_mark_force_output_node): New.
6658         (cgraph_only_called_directly_or_aliased_p,
6659         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
6660         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
6661         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
6662         (cgraph_add_new_function): Update.
6663         (cgraph_mark_if_needed): Update.
6664         (verify_cgraph_node): Update.
6665         (cgraph_analyze_function): Alias target is reachable.
6666         (process_function_and_variable_attributes): Update: externally_visible
6667         flag makes function reachable.
6668         (cgraph_analyze_functions): Update dumping.
6669         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6670         input_overwrite_node, input_varpool_node): Update streaming.
6671         * lto-streamer-out.c (produce_symtab): Use force_output.
6672         * ipa.c (process_references): Weakrefs must be processed.
6673         (cgraph_remove_unreachable_nodes): Likewise; update for new
6674         force_output flag.
6675         (varpool_externally_visible_p): Weakrefs are externally visible
6676         even if they are not.
6677         (function_and_variable_visibility): Update; when processing alias
6678         pair force the targets to be output.
6679         (whole_program_function_and_variable_visility): Use
6680         mark_reachable_node.
6681         * trans-mem.c (ipa_tm_mark_needed_node): Remove
6682         (ipa_tm_mark_force_output_node): New function.
6683         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
6684         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
6685         aliases.
6686         * varasm.c (mark_decl_referenced): Update.
6687         (find_decl_and_mark_needed): Remove.
6688         (find_decl): New function.
6689         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
6690         alias targets as needed.
6691         (dump_tm_clone_pairs): Update.
6692         * tree-inline.c (copy_bb): Update check.
6693         * symtab.c (dump_symtab_base): Dump force_output.
6694         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
6695         * passes.c (execute_todo): Fix dumping.
6696         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
6697         (varpool_analyze_pending_decls): Alias target is reachable.
6698         (varpool_create_variable_alias): Finalize weakrefs.
6700 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
6702         PR bootstrap/53021
6703         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
6704         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
6705         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
6706         macros instead of constants.
6707         * dse.c (record_store): Check for SP ADDRESS by comparing
6708         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
6709         XEXP to be stack_pointer_rtx.
6711 2012-04-20  Richard Guenther  <rguenther@suse.de>
6713         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
6714         update_call_from_tree when propagating into a call.
6716 2012-04-20  Alan Modra  <amodra@gmail.com>
6718         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
6719         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
6720         sp_offset to frame_off.  Move world save code earlier.
6722 2012-04-20  Richard Guenther  <rguenther@suse.de>
6724         PR tree-optimization/53050
6725         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
6726         Do only one transform on COND_EXPRs at the same time.
6728 2012-04-19  Jan Hubicka  <jh@suse.cz>
6730         * symtab.c (dump_symtab_base): Revert accidental checkin.
6732 2012-04-20  Alan Modra  <amodra@gmail.com>
6734         PR target/53040
6735         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
6736         static chain, set REST_INLINE_FPRS too.
6738 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6740         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
6741         nodes.
6743 2012-04-20  Richard Guenther  <rguenther@suse.de>
6745         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
6746         loops that can never run more often than the vectorization factor.
6748 2012-04-19  Jan Hubicka  <jh@suse.cz>
6750         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
6752 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
6754         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
6756 2012-04-19  Jim Meyering  <meyering@redhat.com>
6758         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
6759         We verified above that the string(including trailing NUL) fits in buf,
6760         so just use memcpy.
6762 2012-04-19  Richard Guenther  <rguenther@suse.de>
6764         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
6765         for dumping DECL_SECTION_NAME.
6767 2012-04-19  Michael Matz  <matz@suse.de>
6769         PR middle-end/52977
6770         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
6771         (struct tree_vector): Adjust GTY length.
6772         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
6774         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
6775         members.
6776         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
6777         caller emitted the length calulation already.
6778         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
6779         before handling any of the fields for structs.
6781 2012-04-19  Richard Guenther  <rguenther@suse.de>
6783         PR tree-optimization/53031
6784         * tree-vrp.c (adjust_range_with_scev): Revert back to
6785         using max_loop_iterations.
6787 2012-04-19  Michael Matz  <matz@suse.de>
6789         * diagnostic.c (emit_diagnostic): Move va_end call after user
6790         of the va_list.
6791         (warning, warning_at, pedwarn, permerror): Ditto.
6793 2012-04-19  Richard Guenther  <rguenther@suse.de>
6795         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
6796         array access.
6798 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
6800         PR target/53033
6801         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
6802         the case *(X+const).
6804 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6806         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
6808 2012-04-19  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
6810         PR c/52283/37985
6811         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
6812         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
6814 2012-04-19  Richard Guenther  <rguenther@suse.de>
6816         PR rtl-optimization/44688
6817         * loop-iv.c (determine_max_iter): Only return max_iter.
6818         (iv_number_of_iterations): Also use the recorded loop bound
6819         on the maximum number of iterations.
6820         * loop-unroll.c (decide_unroll_runtime_iterations): Use
6821         max_iter to avoid unrolling loops that do not roll.
6822         (decide_unroll_stupid): Likewise.
6824 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6826         * targhooks.c (default_case_values_threshold): Fix code style nit.
6828         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
6829         case range and type folding from here...
6830         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
6831         type, as documented in tree.def.
6833 2012-04-18  Jan Hubicka  <jh@suse.cz>
6835         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
6836         Declare.
6837         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
6838         cgraph hash and same comdat groups.
6839         (cgraph_optimize): Verify symbol table.
6840         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
6841         (dissolve_same_comdat_group_list): Work on symtab nodes.
6842         (function_and_variable_visibility): Dissolve variable same comdat group
6843         lists, too.
6844         * symtab.c: Include timevar.h
6845         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
6847 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6849         * tree-switch-conversion.c (info): Remove global pass info.
6850         (check_range, check_process_case, check_final_bb, create_temp_arrays,
6851         free_temp_arrays, gather_default_values, build_constructors,
6852         array_value_type, build_one_array, build_arrays, gen_def_assigns,
6853         fix_phi_nodes, gen_inbound_check): Pass info around from ...
6854         (process_switch): ... here.  Unify message format.  Return a const
6855         char pointer to the failure reason message.
6856         (do_switchconv): Unify message format.  Update process_switch usage.
6858         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
6859         * tree-cfg.c (edge_to_cases): Fix documentation.
6861 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
6863         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
6865 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6867         PR tree-optimization/52976
6868         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
6869         (possibly_move_powi): New function.
6870         (rewrite_expr_tree): Call possibly_move_powi.
6871         (rewrite_expr_tree_parallel): Likewise.
6872         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
6873         call add_to_ops_vec instead.
6875 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6877         PR tree-optimization/52976
6878         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
6879         (decrement_power): Likewise.
6880         (propagate_op_to_single_use): Likewise.
6881         (zero_one_operation): Handle __builtin_pow* calls in linearized
6882         expression trees; factor logic into propagate_op_to_single_use.
6883         (undistribute_ops_list): Allow operands with repeat counts > 1.
6885 2012-04-18  Richard Guenther  <rguenther@suse.de>
6887         PR tree-optimization/44688
6888         * cfgloop.h (record_niter_bound): Declare.
6889         * tree-ssa-loop-niter.c (record_niter_bound): Export.
6890         Update the estimation with the upper bound here...
6891         (estimate_numbers_of_iterations_loop): ... instead of here.
6892         Do not forcefully reset a recorded upper bound.
6893         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
6894         Record the maximum number of loop iterations of the prologue loop.
6896 2012-04-18  Jan Hubicka  <jh@suse.cz>
6898         * lto-symtab.c (lto_cgraph_replace_node): Update.
6899         * cgraphbuild.c (record_reference, record_type_list,
6900         record_eh_tables, mark_address, mark_load, mark_store): Update.
6901         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
6902         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
6903         Update.
6904         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
6905         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
6906         * reload.c: Fix typo in comment.
6907         * rtlanal.c: Likewise.
6908         * tree-emultls.c (gen_emutls_addr): Update.
6909         * ipa-reference.c (analyze_function): Update.
6910         * cgraphunit.c (cgraph_analyze_function,
6911         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
6912         Update.
6913         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
6914         (ipa_remove_reference): Likewise.
6915         (ipa_remove_all_refering): Rename to ...
6916         (ipa_remove_all_referring): ... this one; update.
6917         (ipa_dump_references): Update.
6918         (ipa_dump_referring): Update.
6919         (ipa_clone_references): Update.
6920         (ipa_clone_refering): Rename to ...
6921         (ipa_clone_referring): ... this one; update.
6922         (ipa_ref_cannot_lead_to_return): Update.
6923         (ipa_ref_has_aliases_p): Update.
6924         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
6925         forward typedefs.
6926         (ipa_ref_type): Remove.
6927         (ipa_ref_ptr_u): Remove.
6928         (ipa_ref): Remove referencing, refered, refered_index, refering_type
6929         and refered_type; add referring, referred and referred_index.
6930         (ipa_ref_list): Rename refering to referring.
6931         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
6932         ipa_clone_references, ipa_clone_referring): Update prototypes.
6933         * lto-cgraph.c (referenced_from_other_partition_p): Update.
6934         (lto_output_ref): Update.
6935         (add_references): Update.
6936         (input_varpool_node): Update.
6937         (input_refs): Update.
6938         * ipa-ref-inline.h (ipa_ref_node): Update.
6939         (ipa_ref_varpool_node): Update.
6940         (ipa_ref_referring_node): Update.
6941         (ipa_ref_referring_varpool_node): Update.
6942         (ipa_ref_referring_ref_list): Update.
6943         (ipa_ref_referred_ref_list): Update.
6944         (ipa_ref_list_first_referring): Update.
6945         (ipa_empty_ref_list): Update.
6946         (ipa_ref_list_refering_iterate): Rename to ...
6947         (ipa_ref_list_referring_iterate): ... this one.
6948         * cse.c: Update comment.
6949         * ipa-utils.c (ipa_reverse_postorder): Update.
6950         * tree-ssa-alias.c: Update.
6951         * ipa-inline.c (reset_edge_caches): Update.
6952         (update_caller_keys): Update.
6953         * ipa-inline.h: Update comments.
6954         * jump.c: Update comment.
6955         * alias.c: Likewise.
6956         * ipa.c (process_references): Update.
6957         (cgraph_remove_unreachable_nodes): Likewise.
6958         (ipa_discover_readonly_nonaddressable_var): Likewise.
6959         (cgraph_address_taken_from_non_vtable_p): Likewise.
6960         * trans-mem.c (ipa_tm_execute): Update.
6961         * simplify-rtx.c: Fix comment.
6962         * rtl.c: Fix comment.
6963         * symtab.c (symtab_unregister_node): Update.
6964         * varpool.c (dump_varpool_node): Update.
6965         (varpool_analyze_pending_decls): Update.
6966         (assemble_aliases): Update.
6967         (varpool_for_node_and_aliases): Update.
6969 2012-04-18  Richard Guenther  <rguenther@suse.de>
6971         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
6972         use_undefined_p parameter.
6973         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6974         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6975         Likewise.
6976         (estimate_numbers_of_iterations): Likewise.
6977         (estimated_loop_iterations): Adjust.
6978         (max_loop_iterations): Likewise.
6979         (scev_probably_wraps_p): Likewise.
6980         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6981         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
6982         not max_loop_iterations.
6983         (execute_vrp): Remove explicit number of iterations estimation.
6985 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
6987         * config/i386/linux-common.h: New.
6989         * config.gcc: Add i386/linux-common.h before
6990         all i386/linux.h and i386/linux64.h usages.
6992         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
6993         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6994         * config/i386/gnu-user64.h: Likewise.
6996         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
6997         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
6998         (GNU_USER_TARGET_MATHFILE_SPEC): New.
6999         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
7001 2012-04-18  Jan Hubicka  <jh@suse.cz>
7003         * cgraph.c (cgraph_node_name): Remove.
7004         (dump_cgraph_node): Use dump_symtab_base; reformat.
7005         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
7006         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
7007         Declare.
7008         (cgraph_node_name, varpool_node_name): Remove.
7009         (cgraph_node_asm_name, varpool_node_asm_name,
7010         cgraph_node_name, varpool_node_name): New.
7011         * tree-pass.h (TODO_dump_cgraph): Rename to ...
7012         (TODO_dump_symtab): ... this one.
7013         * ipa-cp (pass_ipa_cp): Update.
7014         * ia-reference.c (generate_summary, read_write_all_from_decl,
7015         propagate, ipa_reference_read_optimization_summary): Update.
7016         * cgraphunit.c (cgraph_analyze_functions): Update.
7017         (cgraph_optimize): Update.
7018         * ipa-ref.c (ipa_dump_references): Update.
7019         (ipa_dump_refering): Update.
7020         * ipa-inline.c (pass_ipa_inline): Update.
7021         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
7022         * ipa.c (pass_ipa_function_visibility,
7023         pass_ipa_whole_program_visibility): Update.
7024         * tree-sra.c (pass_early_ipa_sra): Update.
7025         * symtab.c: Include langhooks.h
7026         (symtab_node_asm_name): New.
7027         (symtab_node_name): New.
7028         (symtab_type_names): New static var.
7029         (dump_symtab_base): New.
7030         (dump_symtab_node, dump_symtab): New.
7031         (debug_symtab_node,  debug_symtab): New.
7032         * tree-ssa-structalias.c: Dump symbol table.
7033         * pases.c (execute_todo): Handle TODO_dump_symtab instead
7034         of TODO_dump_cgraph.
7035         * varpoo.c (varpool_node_name): Remove.
7036         (dump_varpool_node): Use dump_symtab_base; reformat.
7038 2012-04-18  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
7040         * doc/invoke.texi (Language Independent Options): @item should be
7041         before @opindex.
7043 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
7045         PR bootstrap/53021
7046         * rtl.c (rtx_code_size): Handle ADDRESS.
7048 2012-04-17  Tom de Vries  <tom@codesourcery.com>
7050         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
7051         is not a STMT_LIST.
7053 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
7055         PR target/53020
7056         * config/i386/sync.md (atomic_<code><mode>): Rename to
7057         atomic_<logic><mode>.
7059 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
7061         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
7062         * alias.c (reg_base_value): Expand and update comment.
7063         (arg_base_value): New variable.
7064         (unique_id): Move up file.
7065         (unique_base_value, unique_base_value_p, known_base_value_p): New.
7066         (find_base_value): Use arg_base_value and known_base_value_p.
7067         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
7068         (find_base_term): Use known_base_value_p.
7069         (base_alias_check): Use unique_base_value_p.
7070         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
7071         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
7073 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
7075         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
7077 2012-04-17  Michael Matz  <matz@suse.de>
7079         PR tree-optimization/18437
7080         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
7081         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
7082         (vect_check_strided_load): Declare.
7083         * tree-vect-data-refs.c (vect_check_strided_load): New function.
7084         (vect_analyze_data_refs): Use it to accept strided loads.
7085         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
7087 2012-04-17  Richard Guenther  <rguenther@suse.de>
7089         PR middle-end/53011
7090         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
7091         loops when redirecting an entry or latch edge.
7093 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
7095         * sel-sched.c (sel_global_init): Revert previous change.
7097 2012-04-17  Richard Guenther  <rguenther@suse.de>
7099         * tree-flow.h (array_at_struct_end_p): Move declaration ...
7100         * tree.h (array_at_struct_end_p): ... here.
7101         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
7102         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
7104 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
7106         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
7107         COST_TABLE): Remove.
7108         (estimate_case_costs): Remove.
7109         (expand_case): Do not call estimate_case_costs
7110         to set use_cost_table.
7111         (balance_case_nodes): Do not use use_cost_table.
7113 2012-04-16  Jan Hubicka  <jh@suse.cz>
7115         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
7116         (hash_node, eq_node): Remove.
7117         (cgraph_create_node): Do not handle hashtable.
7118         (cgraph_get_node): Remove.
7119         (cgraph_insert_node_to_hashtable): Remove.
7120         (hash_node_by_assembler_name): Remove.
7121         (eq_assembler_name): Remove.
7122         (cgraph_node_for_asm): Rewrite.
7123         (cgraph_find_replacement_node): Break out from ...
7124         (cgraph_remove_node): ... here; do not maintain hashtables.
7125         (change_decl_assembler_name): Remove.
7126         (cgraph_clone_node): Do not maintain hashtables.
7127         * cgraph.h (const_symtab_node): New typedef.
7128         (cgraph_insert_node_to_hashtable): Remove.
7129         (symtab_get_node, symtab_node_for_asm,
7130         symtab_insert_node_to_hashtable): Declare.
7131         (cgraph_find_replacement_node): Declare.
7132         (cgraph_get_node, varpool_get_node): Turn into inlines.
7133         (cgraph, varpool): Work sanely on NULL pointers.
7134         (FOR_EACH_SYMBOL): New walker.
7135         * ipa-inline-transform.c (save_inline_function_body): Use
7136         symtab_insert_node_to_hashtable.
7137         * symtab.c: Include ggc.h and diagnostics.h
7138         (symtab_hash, assembler_name_hash): New static vars;
7139         (hash_node, eq_node, hash_node_by_assembler_name,
7140         eq_assembler_name, insert_to_assembler_name_hash,
7141         unlink_from_assembler_name_hash): New.
7142         (symtab_register_node): Update hashtables.
7143         (symtab_insert_node_to_hashtable): New.
7144         (symtab_unregister_node): Update hashtables.
7145         (symtab_get_node): New.
7146         (symtab_node_for_asm): New.
7147         (change_decl_assembler_name): New.
7148         * Makefile.in (symtab.o): Needs GTY.
7149         * varpool.c (varpool_hash): Remove.
7150         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
7151         (varpool_node): Rewrite using varpool_get_node.
7152         (varpool_remove_node): DO not maintain hashtables.
7153         (varpool_node_for_asm): Rewrite.
7155 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
7157         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
7158         when describing the current behavior of GCC.
7160 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
7162         * genemit.c (gen_exp): Remove ADDRESS handling.
7163         * genoutput.c (scan_operands): Likewise.
7164         * genpeep.c (match_rtx): Likewise.
7165         * genrecog.c (add_to_sequence): Likewise.
7167 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
7169         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
7171 2012-04-16  Martin Jambor  <mjambor@suse.cz>
7173         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
7174         bit-fields.
7176 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
7178         PR target/51819
7179         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
7180         hints for 'A' operand types.
7182 2012-04-16  Jan Hubicka  <jh@suse.cz>
7184         * cgraph.h (symtab_node_base): Add next and previous pointers.
7185         (cgraph_node): Remove next and preivous pointers.
7186         (varpool_node): Likewise; remove next/previous GTY marker;
7187         it is not type safe.
7188         (symtab_node_def): Update GTY marker
7189         (x_cgraph_nodes, cgraph_nodes): Remove.
7190         (symtab_nodes): New function.
7191         (cgraph_order): Rename to ...
7192         (symtab_order): ... this one.
7193         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
7194         Declare.
7195         (x_varpool_nodes, varpool_nodes): Remove.
7196         (FOR_EACH_STATIC_VARIABLE): Update.
7197         (symtab_function_p, symtab_variable_p): New function.
7198         (FOR_EACH_VARIABLE): Update.
7199         (varpool_first_variable, varpool_next_variable): New functions.
7200         (FOR_EACH_VARIABLE): Update.
7201         (cgraph_first_defined_function): Update.
7202         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
7203         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
7204         (cgraph_first_function, cgraph_next_function): New.
7205         (FOR_EACH_FUNCTION): Update.
7206         (cgraph_first_function_with_gimple_body,
7207         cgraph_next_function_with_gimple_body): Update.
7208         * symtab.c: New file.
7209         * cgraph.c: Update copyright dates.
7210         (x_cgraph_nodes, cgraph_order): Remove.
7211         (NEXT_FREE_NODE): Update.
7212         (SET_NEXT_FREE_NODE): New.
7213         (cgraph_create_node_1): Remove common code.
7214         (cgraph_create_node): Remove common code; call symtab_register_node.
7215         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
7216         (cgraph_add_asm_node): Update.
7217         (cgraph_clone_node): Register new node.
7218         * cgraphunit.c (process_function_and_variable_attributes): Update.
7219         (cgraph_analyze_functions): Update.
7220         (cgraph_analyze_functions): Update.
7221         (cgraph_output_in_order): Update.
7222         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
7223         Update.
7224         * ipa-inline.c (recursive_inlining): Update.
7225         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
7226         * ipa.c (cgraph_remove_unreachable_nodes): Update.
7227         * Makefile.in: Add symtab.o
7228         * varpool.c (x_varpool_nodes): Remove
7229         (varpool_node): Remove common code; call symtab_register_node.
7230         (varpool_remove_node): Remove common code; call symtab_unregister_node.
7232 2012-04-16  Richard Guenther  <rguenther@suse.de>
7234         PR middle-end/52977
7235         * tree.h (VECTOR_CST_NELTS): Adjust.
7236         (struct tree_vector): Add explicit length field.
7237         (make_vector_stat): Declare.
7238         (make_vector): Define.
7239         * tree.c (make_vector_stat): New function.
7240         (build_vector_stat): Use it.
7241         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
7243 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7245         PR tree-optimization/52976
7246         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
7247         (undistribute_ops_list): Ops with repeat counts aren't eligible for
7248         undistribution.
7249         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
7251 2012-04-16  Jan Hubicka  <jh@suse.cz>
7253         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
7254         New macros.
7255         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
7256         walkers to walk cgraph and varpool.
7257         * cgraph.c (cgraph_node_for_asm): Likewise.
7258         (dump_cgraph): Likewise.
7259         * value-prof.c (init_node_map): Likewise.
7260         * tree.c (free_lang_data_in_cgraph): Likewise.
7261         * tree-emutls.c: (ipa_lower_emutls): Likewise.
7262         * ipa-reference.c (generate_summary, propagate): Likewise.
7263         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
7264         cgraph_mark_functions_to_output, cgraph_output_in_order,
7265         output_weakrefs, cgraph_materialize_all_clones,
7266         cgraph_optimize): Likewise.
7267         * lto-cgraph.c (merge_profile_summaries): Likewise.
7268         (input_cgraph): Likewise.
7269         * ipa-pure-const.c (generate_summary): Likewise.
7270         (propagate): Likwise.
7271         * ipa-utils.c (ipa_reduced_postorder): Likewise.
7272         (ipa_free_postorder_info): Likewise.
7273         (ipa_reverse_postorder): Likewise.
7274         * ipa-inline.c (ipa_inline): Likewise.
7275         * matrix-reorg.c (find_matrices_decl): Likewise.
7276         (matrix_reorg): Likewise.
7277         * tree-vectorizer.c (increase_alignment): Likewise.
7278         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7279         (function_and_variable_visibility): Likewise.
7280         (whole_program_function_and_variable_visibility): Likewise.
7281         (ipa_cdtor_merge): Likewise.
7282         * trans-mem.c (ipa_tm_execute): Likewise.
7283         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
7284         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
7285         (ipa_print_all_params): Likewise.
7286         (ipa_update_after_lto_read): Likewise.
7287         * tree-profie.c (tree_profiling): Likewise.
7288         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7289         * passes.c (dump_passes): Likewise.
7290         (do_per_function): Likewise.
7291         (ipa_write_summaries): Likewise.
7292         * varpool.c (dump_varpool): Likewise.
7293         (varpool_node_for_asm): Likewise.
7294         (varpool_assemble_pending_decls): Likewise.
7296 2012-04-16  Richard Guenther  <rguenther@suse.de>
7298         PR tree-optimization/52975
7299         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
7300         condition but always mark it with TRUTH_NOT_EXPR.
7302 2012-04-16  Richard Guenther  <rguenther@suse.de>
7304         PR tree-optimization/52975
7305         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
7306         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
7307         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
7308         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
7310 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
7312         * config/i386/sse.md (ssse3_plusminus): New code iterator.
7313         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
7314         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
7315         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
7316         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
7317         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
7318         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
7320         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
7321         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
7322         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
7323         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
7324         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
7325         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
7327         (xop_plus): New code iterator.
7328         (macs): New code attribute.
7329         (macds): Ditto.
7330         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
7331         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
7332         iterator.
7333         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
7334         xop_plus code iterator.
7335         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
7336         xop_plus code iterator.
7337         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
7338         xop_plus code iterator.
7339         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
7340         xop_plus code iterator.
7342         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
7343         any_extend code iterator.
7344         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
7345         any_extend code iterator.
7346         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
7347         any_extend code iterator.
7348         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
7349         any_extend code iterator.
7350         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
7351         any_extend code iterator.
7352         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
7353         any_extend code iterator.
7355 2012-04-14  Tom de Vries  <tom@codesourcery.com>
7357         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
7358         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
7359         DELETED_LABEL note, and move it to ...
7360         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
7361         (delete_insn_and_edges): Likewise.
7362         (delete_insn_chain): Handle new return type of delete_insn.  Delete
7363         chain backwards rather than forwards.
7364         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
7365         void.
7366         * cfglayout.c (fixup_reorder_chain): Delete unused label.
7368 2012-04-14  Jan Hubicka  <jh@suse.cz>
7370         * cgraph.h: Update copyrights;
7371         (symtab_node): Turn to union typedef.
7372         (symtab_node_base): New structure.
7373         (symtab_type): Add SYMTAB_SYMBOL tag.
7374         (cgraph_node): Annotate some pinters with nested_ptr.
7375         (varpool_node): Likewise.
7376         (cgraph_local_info): Remove lto_file_data
7377         and externally_visible.
7378         (cgraph_node): Remove decl; same_comdat_group list;
7379         aux; ref_list; order; address_taken; reachable_from_other_parittion,
7380         in_other_partition; resolution.
7381         (varpool_node): Remove decl; same_comdat_group;
7382         ref_list; lto_file_data; aux; order; resolution; externally_visible;
7383         used_from_other_partition; in_other_partition.
7384         (symtab_node_def): New union.
7385         (cgraph, varpool): Update.
7386         (varpool_first_static_initializer, varpool_next_static_initializer,
7387         cgraph_only_called_directly_or_aliased_p,
7388         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
7389         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
7390         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
7391         field references.
7392         * cgraph.c: Likewise.
7393         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
7394         * cgraphbuild.c: Likewise.
7395         * lto-symtab.c: Likewise.
7396         * c-gimplify.c: Likewise.
7397         * value-prof.c: Likewise.
7398         * tree.c: Likewise.
7399         * ipa-cp.c: Likewise.
7400         * tree-emutls.c: Likewise.
7401         * ipa-inline-transform.c: Likwise.
7402         * ipa-reference.c: Likewise.
7403         * cgraphunit.c: Likewise.
7404         * ipa-ref.c: Likewise.
7405         * lto-cgraph.c: Likewise.
7406         * ipa-ref-inline.h: Likewise.
7407         * ipa-pure-const.c: Likewise.
7408         * lto-streamer-out.c: Likewise.
7409         * ipa-utils.c: Likewise.
7410         * ipa-inline.c: Likewise.
7411         * matrix-reorg.c: Likewise.
7412         * tree-eh.c: Likewise.
7413         * tree-vectorizer.c: Likewise.
7414         * ipa-split.c: Likewise.
7415         * ipa.c: Likewise.
7416         * trans-mem.c: Likewise.
7417         * ipa-inline-analysis.c: Likewise.
7418         * gimplify.c: Likewise.
7419         * cfgexpand.c: Likewise.
7420         * tree-sra.c: Likewise.
7421         * ipa-prop.c: Likewise.
7422         * varasm.c: Likewise.
7423         * tree-nested.c: Likewise.
7424         * tree-inline.c: Likewise.
7425         * tree-profile.c: Likewise.
7426         * tree-ssa-structalias.c: Likewise.
7427         * passes.c: Likewise.
7428         * varpool.c: Likewise.
7430 2012-04-14  Tom de Vries  <tom@codesourcery.com>
7432         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
7433         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
7434         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
7435         of find_edge.
7436         (gsi_advance_fw_nondebug_nonlocal): New function.
7437         (local_def): Removed function.
7438         (same_succ_hash): Use stmt_local_def.
7439         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
7440         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
7442 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7444         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
7445         and __ILP32__ for x32.
7447 2012-04-13  Martin Jambor  <mjambor@suse.cz>
7449         PR middle-end/52939
7450         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
7451         fold_ctor_reference returns a zero constant.
7453 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
7455         * config.gcc: Add i386/gnu-user-common.h before all
7456         i386/gnu-user.h and i386/gnu-user64.h usages.
7458         * config/i386/gnu-user-common.h: New.
7460         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
7461         (CC1_SPEC): Likewise.
7462         (ENDFILE_SPEC): Likewise.
7463         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
7464         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
7465         (TARGET_OS_CPP_BUILTINS): Likewise.
7466         (LIBGCC2_HAS_TF_MODE): Likewise.
7467         (LIBGCC2_TF_CEXT): Likewise.
7468         (TF_SIZE): Likewise.
7469         (TARGET_ASM_FILE_END): Likewise.
7470         (STACK_CHECK_MOVING_SP): Likewise.
7471         (STACK_CHECK_STATIC_BUILTIN): Likewise.
7472         * config/i386/gnu-user64.h: Likewise.
7474 2012-04-13  Martin Jambor  <mjambor@suse.cz>
7476         * expr.c (expand_expr_real_1): Pass type, not the expression, to
7477         set_mem_attributes for a memory temporary. Do not call the function
7478         for the memory temporary created for a bitfield.
7480 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
7482         PR debug/48866
7483         * df.h (enum debug_temp_where): New.
7484         (dead_debug_init, dead_debug_finish) Declare.
7485         (dead_debug_add, dead_debug_insert_temp): Declare.
7486         (struct dead_debug_use, struct dead_debug): Moved from...
7487         * df-problems.c: ... here.
7488         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
7489         to a debug temp.
7490         (df_create_unused_note): Likewise.
7491         (df_set_dead_notes_for_mw): Move comment where it belongs.
7492         (dead_debug_init): Export.
7493         (dead_debug_reset_uses): New, factored out of...
7494         (dead_debug_finish): ...this.  Export.
7495         (dead_debug_reset): Remove.
7496         (dead_debug_add): Export.
7497         (dead_debug_insert_before): Rename to...
7498         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
7499         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
7500         Return insertion count.
7501         (df_note_bb_compute): Adjust.
7502         * dce.c (word_dce_process_block): Adjust dead debug uses.
7503         (dce_process_block): Likewise.
7505 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
7507         * df-problems.c (df_note_bb_compute): Do not take note of
7508         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
7510 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
7512         PR debug/51570
7513         * var-tracking.c (expand_depth): New type.
7514         (onepart_aux, expand_loc_callback_data): Change depth type to it.
7515         (loc_exp_dep_alloc): Adjust initializer.
7516         (update_depth): Use new type.  Add entryvals.
7517         (vt_expand_var_loc_chain): Take note of expansions with
7518         ENTRY_VALUEs, but don't accept them right away.  Run an optional
7519         second pass accepting the minimum ENTRY_VALUE count found in the
7520         first pass.
7521         (vt_expand_loc_callback, INIT_ELCD): Adjust.
7523 2012-04-13  Tom de Vries  <tom@codesourcery.com>
7525         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
7526         parameters vuse and vuse_escaped.
7527         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
7528         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
7529         vuse1 != vuse2.
7531 2012-04-13  Richard Guenther  <rguenther@suse.de>
7533         PR tree-optimization/52969
7534         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
7535         the condition for the COND_EXPR and handle predicate negation
7536         by swapping the COND_EXPR arms.
7538 2012-04-13  Nick Clifton  <nickc@redhat.com>
7540         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
7541         TODO_dump_func flag.
7543 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
7545         PR rtl-optimization/52203
7546         PR rtl-optimization/52715
7548         Revert the 2012-03-07 fix for PR 52203.
7549         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
7550         the insn does not modify DFA right before issuing, adjust
7551         issue_rate accordingly.
7553 2012-04-13  Richard Guenther  <rguenther@suse.de>
7555         PR c/52549
7556         * c-typeck.c (pointer_diff): Remove bogus assert.
7558 2012-04-13  Richard Guenther  <rguenther@suse.de>
7560         PR c/52862
7561         * convert.c (convert_to_pointer): Remove special-casing of zero.
7563 2012-04-13  Joey Ye  <joey.ye@arm.com>
7565         * config/arm/constraints.md (Pe): New constraint.
7566         * config/arm/arm.md: New split for imm 256-510.
7568 2012-04-13  Terry Guo  <terry.guo@arm.com>
7570         * config/arm/arm-cores.def: Added core cortex-m0plus.
7571         * config/arm/arm-tune.md: Regenerated.
7572         * config/arm/arm-tables.opt: Regenerated.
7573         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
7575 2012-04-13  Alan Modra  <amodra@gmail.com>
7577         PR target/52828
7578         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
7579         tie regs on destination of sets.  Delete forward declaration.
7580         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
7581         (rs6000_emit_prologue): Likewise.
7582         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
7583         and gen_stack_tie.
7584         (is_mem_ref): Use tie_operand to recognise stack ties.
7585         * config/rs6000/predicates.md (tie_operand): New.
7586         * config/rs6000/rs6000.md (restore_stack_block): Generate new
7587         stack tie rtl.
7588         (restore_stack_nonlocal): Likewise.
7589         (stack_tie): Update.
7590         (frame_tie): Delete.
7592 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7594         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
7595         HOST_WIDE_INT_PRINT_DEC in format strings.
7597 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
7599         PR target/52932
7600         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
7601         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
7602         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
7603         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
7604         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
7605         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
7606         avx2_permvarv8si using VI4F_256 mode iterator.
7607         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
7608         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
7609         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
7610         gen_avx2_permvarv8sf.
7611         (expand_vec_perm_pshufb): Ditto.
7613 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7615         PR target/52775
7616         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
7617         the list of options to enable the FCFID instruction.
7618         (TARGET_EXTRA_BUILTINS): Adjust comment.
7620 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7622         PR tree-optimization/18589
7623         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
7624         (operand_entry): Add count field.
7625         (add_repeat_to_ops_vec): New function.
7626         (completely_remove_stmt): Likewise.
7627         (remove_def_if_absorbed_call): Likewise.
7628         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
7629         (acceptable_pow_call): New function.
7630         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
7631         entries with repeat counts when found.
7632         (repeat_factor_d): New struct and associated typedefs.
7633         (repeat_factor_vec): New static vector variable.
7634         (compare_repeat_factors): New function.
7635         (get_reassoc_pow_ssa_name): Likewise.
7636         (attempt_builtin_powi): Likewise.
7637         (reassociate_bb): Call attempt_builtin_powi.
7638         (fini_reassoc): Two new calls to statistics_counter_event.
7640 2012-04-12  Richard Guenther  <rguenther@suse.de>
7642         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
7643         * cgraph.h (tree_rest_of_compilation): Remove.
7644         * cgraph.c (cgraph_add_new_function): Move ...
7645         * cgraphunit.c (cgraph_add_new_function): ... here.
7646         (tree_rest_of_compilation): Make static.
7647         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
7648         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
7649         gate_all_early_local_passes, execute_all_early_local_passes,
7650         pass_early_local_passes, gate_all_early_optimizations,
7651         pass_all_early_optimizations): Move ...
7652         * passes.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): ... here.
7656         * tree-optimize.c (execute_free_datastructures): Remove.
7657         * tree-flow.h (execute_free_datastructures): Remove.
7658         * tree-optimize.c (execute_init_datastructures,
7659         pass_init_datastructures): Move ...
7660         * tree-ssa.c (execute_init_datastructures,
7661         pass_init_datastructures): ... here.
7662         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
7663         execute_free_datastructures.
7665 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
7667         * dbgcnt.def (ira_move): New counter.
7668         * ira-int.h (ira_create_new_reg): Declare function.
7669         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
7670         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
7671         no longer static.  All callers changed.
7672         * ira.c: Include "dbgcnt.h".
7673         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
7674         move_unallocated_pseudos): New static functions.
7675         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
7676         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
7677         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
7678         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
7679         to the pseudos generated in find_moveable_pseudos.
7680         * Makefile.in (ira.o): Add $(DBGCNT_H).
7682 2012-04-12  Richard Guenther  <rguenther@suse.de>
7684         PR tree-optimization/52943
7685         * tree-chrec.h (chrec_is_positive): Remove.
7686         * tree-scalar-evolution.c (chrec_is_positive): Move ...
7687         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
7688         Return false for a constant zero instead of negative.
7689         (analyze_siv_subscript_cst_affine): Handle zero difference
7690         in the initial condition explicitely.
7692 2012-04-12  Richard Guenther  <rguenther@suse.de>
7694         * tree-parloops.c (parallelize_loops): Also consult the upper
7695         bound for the number of iterations.
7696         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7697         (loop_prefetch_arrays): Likewise.
7699 2012-04-12  Richard Guenther  <rguenther@suse.de>
7701         * cfgloop.h (estimated_loop_iterations_int): Ditch
7702         'conservative' parameter.
7703         (max_stmt_executions_int): Likewise.
7704         (estimated_loop_iterations): Likewise.
7705         (max_stmt_executions): Likewise.
7706         (max_loop_iterations): Declare.
7707         (max_loop_iterations_int): Likewise.
7708         (estimated_stmt_executions): Likewise.
7709         (estimated_stmt_executions_int): Likewise.
7710         * tree-ssa-loop-niter.c (estimated_loop_iterations):
7711         Split parts to ...
7712         (max_loop_iterations): ... this.
7713         (estimated_loop_iterations_int): Split parts to ...
7714         (max_loop_iterations_int): ... this.
7715         (max_stmt_executions_int): Split parts to ...
7716         (estimated_stmt_executions_int): ... this.
7717         (max_stmt_executions): Split parts to ...
7718         (estimated_stmt_executions): ... this.
7719         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
7720         * predict.c (predict_loops): Likewise.
7721         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
7722         (analyze_siv_subscript_cst_affine): Likewise.
7723         (compute_overlap_steps_for_affine_1_2): Likewise.
7724         (analyze_subscript_affine_affine): Likewise.
7725         (init_omega_for_ddr_1): Likewise.
7726         * tree-parloops.c (parallelize_loops): Likewise.
7727         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7728         (may_eliminate_iv): Likewise.
7729         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7730         (loop_prefetch_arrays): Likewise.
7731         * tree-vrp.c (adjust_range_with_scev): Likewise.
7733 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
7735         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
7736         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
7737         Fix line width.
7738         (dump_table): Use bool type for need_align and have_df variables.
7739         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
7740         (regs_used): Remove register modifier.
7741         (barrier_align): Move variables slot, credit, jump_to_next
7742         into if block above for loop.  Use bool type for jump_to_next.
7743         (sh_function_arg): Use NULL_RTX instead of 0.
7745 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
7747         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
7748         (bswapsi2): New expander.
7750 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7752         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
7753         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
7755 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7757         PR rtl-optimization/52876
7758         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
7759         Don't call mark_reg_pointer for incompatible pointer sign extension.
7761         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
7762         directly.
7764 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
7766         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
7767         comparisons against TYPE_PRECISION.
7768         * tree-ssa-forwprop.c (combine_conversions): Likewise.
7770 2012-04-11  Xinliang David Li  <davidxl@google.com>
7772         * tree-passes.h: Remove TODO_dump_func.
7773         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
7774         * trans-mem.c: Remove TODO_dump_func.
7775         * ira.c: Remove TODO_dump_func.
7777 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7779         * config/i386/i386.c (ix86_option_override_internal): Check
7780         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
7781         after TARGET_64BIT is updated.
7783 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7785         * config/sh/sh.h: Remove old secondary reload code.
7787 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7789         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
7790         (ready_reorder): ... this function.
7792 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
7794         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
7795         sched_init calls.
7797         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
7798         insns so that no other insn is queued for a time before them.
7800         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
7801         unknown.
7803 2012-04-11  Richard Guenther  <rguenther@suse.de>
7805         PR middle-end/52621
7806         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
7807         consider loop nesting.
7808         (evolution_function_is_univariate_p): Properly check the remainder
7809         for chrecs.
7811 2012-04-11  Richard Guenther  <rguenther@suse.de>
7813         PR middle-end/52918
7814         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
7816 2012-04-11  Nick Clifton  <nickc@redhat.com>
7818         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
7819         information, if requested.
7821         * config/rx/rx.c (rx_expand_prologue): Likewise.
7823 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
7824             Michael Matz  <matz@suse.de>
7826         PR target/16458
7827         * rtlanal.c (unsigned_reg_p): New function.
7828         Update copyright notice dates.
7829         * rtl.h (unsigned_reg_p): Prototype it.
7830         Update copyright notice dates.
7831         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
7832         Update comment.
7833         * expr.c (expand_expr_real_1): Set register attributes.
7834         * stmt.c (expand_case): Likewise.
7836 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7838         PR target/50751
7839         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
7840         consider_sh2a and allow_zero.
7841         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
7842         (disp_addr_displacement): New function.
7843         (sh_address_cost): Use disp_addr_displacement function instead
7844         of DISP_ADDR_OFFSET.
7845         (sh_legitimate_address_p): Adapt to changed
7846         sh_legitimate_index_p declaration.
7847         (sh_find_mov_disp_adjust): Remove HImode check.
7848         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
7849         disp_addr_displacement and max_mov_insn_displacement.
7850         (max_mov_insn_displacement): Remove HImode check.
7851         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
7852         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
7853         * config/sh/constraints.md (K05, K13): New constraints.
7854         (K12): Correct comment.
7855         (Sdd): Do not use DISP_ADDR_P macro.
7856         (Snd, Sbw): Use satisfies_constraint_Sdd.
7857         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
7858         (*extendhisi2_compact, movhi_i): Remove.
7859         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
7860         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
7861         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
7862         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
7863         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
7864         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
7865         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
7866         CONST_OK_FOR_Kxx.
7867         Add new peepholes for HImode displacement addressing.
7869 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
7871         * config/sh/sh.h (SIDI_OFF): Remove.
7872         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
7873         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
7874         or operand_subword.
7876 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7878         PR target/52624
7879         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
7880         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
7881         * doc/md.texi (Standard Names): Add bswap.
7882         * builtin-types.def (BT_UINT16): New primitive type.
7883         (BT_FN_UINT16_UINT16): New function type.
7884         * builtins.def (BUILT_IN_BSWAP16): New.
7885         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
7886         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
7887         expand_builtin_bswap.
7888         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
7889         (fold_builtin_1): Likewise.
7890         (is_inexpensive_builtin): Likewise.
7891         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
7892         missing bits for bswap to libcall code.
7893         * tree.c (build_common_tree_nodes): Build uint16_type_node.
7894         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
7895         (uint16_type_node): New define.
7896         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
7897         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
7898         above builtin.
7899         (rs6000_init_builtins): Likewise.
7900         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
7902 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7904         * doc/extend.texi (Type Attributes): Move paragraph.
7906 2012-04-11  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
7908         PR 24985
7909         * diagnostic.h (show_caret): Declare.
7910         (caret_max_width): Declare.
7911         (diagnostic_show_locus): Declare.
7912         * diagnostic.c (diagnostic_initialize): Initialize to false.
7913         (diagnostic_show_locus): New.
7914         (diagnostic_report_diagnostic): Call it.
7915         (getenv_columns): New.
7916         (adjust_line): New.
7917         (diagnostic_set_caret_max_width): New.
7918         * input.c (read_line): New.
7919         (location_get_source_line): New.
7920         * input.h (location_get_source_line): Declare.
7921         * toplev.c (general_init): Initialize show_caret from options.
7922         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
7923         * opts.c (common_handle_option): Likewise.
7924         * pretty-print.h (pp_get_prefix): New.
7925         (pp_base_get_prefix): New.
7926         * common.opt (fdiagnostics-show-caret): New option.
7927         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
7929 2012-04-11  Richard Guenther  <rguenther@suse.de>
7931         PR rtl-optimization/52881
7932         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
7934 2012-04-11  Richard Guenther  <rguenther@suse.de>
7936         PR tree-optimization/52912
7937         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
7938         manipulation code we are threading through a loop header
7939         to an exit destination.
7941 2012-04-10  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
7943         * tree.h (warn_if_unused_value): Move declaration from here.
7944         * stmt.c (warn_if_unused_value): Move definition from here.
7946 2012-04-10  Michael Matz  <matz@suse.de>
7948         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
7949         grouped_stores.
7950         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
7951         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
7952         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
7953         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
7954         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7955         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7956         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7957         (vect_record_strided_load_vectors): Rename to
7958         vect_record_grouped_load_vectors.
7959         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7960         Rename use of above macros.
7961         (vect_verify_datarefs_alignment): Ditto.
7962         (vector_alignment_reachable_p): Ditto.
7963         (vect_peeling_hash_get_lowest_cost): Ditto.
7964         (vect_enhance_data_refs_alignment): Ditto.
7965         (vect_analyze_group_access): Ditto and rename stride to groupsize.
7966         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
7967         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7968         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7969         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7970         (vect_record_strided_load_vectors): Rename to
7971         vect_record_grouped_load_vectors.
7972         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
7973         (destroy_loop_vec_info): Ditto.
7974         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
7975         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
7976         (vect_analyze_slp): Ditto.
7977         (new_bb_vec_info): Ditto.
7978         (destroy_bb_vec_info): Ditto.
7979         (vect_schedule_slp_instance): Ditto and rename strided_store to
7980         grouped_store.
7981         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
7982         vect_cost_group_size.
7983         (vect_model_store_cost): Rename use of above macros and call
7984         to vect_cost_strided_group_size.
7985         (vect_model_load_cost): Ditto.
7986         (vectorizable_store): Ditto, rename strided_store to grouped_store
7987         and calls to renamed tree-vectorizer.h functions.
7988         (vectorizable_load): Ditto.
7989         (vect_transform_stmt): Rename use of above macros and strided_store
7990         to grouped_store.
7992 2012-04-10  Jan Hubicka  <jh@suse.cz>
7994         * cgraph.h: Remove misledaing comment on ipa-ref.h.
7995         (symtab_type): New enum.
7996         (symtab_node): New structure.
7997         (cgraph_node, varpool_node): Add symbol base type.
7998         (cgraph, varpool): New accestor functions.
7999         * cgraph.c (cgraph_create_node_1): Set symbol type.
8000         * varpool.c (varpool_node): Set symbol type.
8002 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
8003             Richard Sandiford  <rdsandiford@googlemail.com>
8005         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
8007 2012-04-10  Richard Guenther  <rguenther@suse.de>
8009         PR middle-end/52888
8010         * gimple-low.c (gimple_check_call_args): Properly account for
8011         compatible aggregate types.
8013 2012-04-10  Richard Guenther  <rguenther@suse.de>
8015         * toplev.h (tree_rest_of_compilation): Remove.
8016         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8017         * cgraph.h (tree_rest_of_compilation): Declare.
8018         * tree-optimize.c (tree_rest_of_compilation): Move ...
8019         * cgraphunit.c (tree_rest_of_compilation): ... here.
8020         * cgraph.c (cgraph_add_new_function): Adjust.
8021         * Makefile.in (tree-optimize.o): Adjust.
8022         (cgraphunit.o): Likewise.
8024 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
8026         PR tree-optimization/52870
8027         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
8028         presumed pattern statement is within the same loop or basic block.
8030 2012-04-10  Tristan Gingold  <gingold@adacore.com>
8032         * gengtype.c (main): Make uintptr_t a known type.
8034 2012-04-10  Richard Guenther  <rguenther@suse.de>
8036         * tree-pass.h (tree_lowering_passes): Remove.
8037         * tree-optimize.c (tree_lowering_passes): Remove.
8038         * cgraph.c (cgraph_add_new_function): Inline relevant parts
8039         of tree_lowering_passes, avoid redundant call of early local passes.
8040         * cgraphunit.c (cgraph_lower_function): Fold into ...
8041         (cgraph_analyze_function): ... its single caller.  Inline
8042         relevant parts of tree_lowering_passes.
8044 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8046         PR other/52777
8047         * config/pa/pa.opt: Remove SIO and GNU_LD.
8049 2012-04-09  Jan Hubicka  <jh@suse.cz>
8051         PR lto/52722
8052         PR lto/51765
8053         PR lto/52634
8054         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
8055         boundary, add its target too.
8056         * lto.c (add_references_to_partition): Add also aliased nodes.
8057         (add_cgraph_node_to_partition,
8058         add_varpool_node_to_partition): Work on nodes, not functions/variables;
8059         when adding alias, add also the aliased object.
8061 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
8063         PR target/52883
8064         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
8065         VOIDmode immediate operands.
8066         * config/i386/constraints.md (Wz): New constraint.
8067         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
8069 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
8071         PR target/52717
8072         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
8073         the DECL generated for the special GOT helper.
8075 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
8077         * config/sh/constraints.md: Update list of constraints in
8078         comment block.
8079         (Sr0): Remove unused memory constraint.
8081 2012-04-08  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
8083         * tree-pretty-print.h: Update comment.
8085 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
8087         * config/sh/sh.md: Use braced string notation where applicable.
8088         (*prefetch_i4, prefetch_m2a): Merge into ...
8089         (*prefetch): ... this new insn.
8091 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
8093         * config/sh/sh.h (high_life_started): Remove
8094         * config/sh/predicates.md (general_movdst_operand): Use
8095         'reload_in_progress' instead of 'high_life_started'.
8096         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
8097         divsi_inv_fp): Likewise.
8099 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
8101         * config/sh/sh-protos.h (prepare_move_operands): Return void
8102         instead of int.
8103         * config/sh/sh.c (prepare_move_operands): Likewise.
8104         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
8106 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
8108         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
8109         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
8110         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
8111         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
8112         commutative_float_operator, noncommutative_float_operator,
8113         sh_handle_pragma): Remove.
8115 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
8117         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
8118         Use @option markup on command-line options.  Use @samp markup on
8119         literal keywords to options.  Use @code markup on code fragments.
8120         Use other markup in preference to quotation marks in the text.
8121         Add markup to some passages without any.
8123 2012-04-06  Mike Stump  <mikestump@comcast.net>
8125         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
8127 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
8129         * config/sh/sh.c (hi_const): Remove.
8130         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
8131         of hi_const.
8133 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
8135         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
8136         to bool.
8137         * config/sh/sh.c (sh_expand_t_scc): Likewise.
8138         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
8139         calling sh_expand_t_scc.
8141 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
8143         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
8144         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
8145         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
8146         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
8147         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
8148         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
8149         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
8150         sh2a_is_function_vector_call): Use bool as return type.
8151         (sh_pass_in_reg_p): Remove.
8152         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
8153         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
8154         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
8155         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
8156         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
8157         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
8158         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
8159         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
8160         sh_loads_bankedreg_p): Use bool as return type.
8161         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
8162         'register' modifier.
8164 2012-04-06  Matt Turner  <mattst88@gmail.com>
8166         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
8168 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8170         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
8171         of the destination isn't also a FP_REGS register.
8173 2012-04-05  Teresa Johnson  <tejohnson@google.com>
8174             H.J. Lu  <hongjiu.lu@intel.com>
8176         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
8177         * config/i386/i386.md (move immediate to memory peephole2):
8178         Add cases for HImode move when LCP stall avoidance is needed.
8179         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8180         X86_TUNE_LCP_STALL entry.
8182 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
8184         PR target/52882
8185         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
8186         CONST_INT operands, zero-extended with AND.
8188 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
8190         PR target/50751
8191         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
8192         first argument instead of mode size.  Move displacement calculations
8193         to ...
8194         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
8195         ... these new functions.
8196         (disp_adjust): Remove max_mov_disp field.
8197         (sh_legitimate_index_p): Use max_mov_insn_displacement and
8198         mov_insn_alignment_mask.
8199         (sh_address_cost): Use max_mov_insn_displacement.
8201 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
8203         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
8204         (arch_enabled): Handle new arch types.
8205         (one_cmpldi2): Add NEON support.
8207 2012-04-05  Richard Guenther  <rguenther@suse.de>
8209         * gimple.c (walk_gimple_op): Compute val_only for the LHS
8210         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
8211         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
8212         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8213         ... here and make static.
8214         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8215         Remove.
8217 2012-04-05  Richard Guenther  <rguenther@suse.de>
8219         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
8220         basic-block before removing it.
8222 2012-04-05  Richard Guenther  <rguenther@suse.de>
8224         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
8225         version namespace as we release the freelist.
8227 2012-04-05  Richard Guenther  <rguenther@suse.de>
8229         * tree-nrv.c (tree_nrv): Release VDEFs.
8230         * tree-sra.c (sra_modify_constructor_assign): Likewise.
8231         (sra_modify_assign): Likewise.
8232         * tree-vect-stmts.c (vect_remove_stores): Likewise.
8233         * tree-vect-loop.c (vect_transform_loop): Likewise.
8234         * tree-ssa-dom.c (optimize_stmt): Likewise.
8235         * tree-vect-slp.c (vect_schedule_slp): Likewise.
8236         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
8238 2012-04-05  Richard Guenther  <rguenther@suse.de>
8240         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
8241         cleanup.
8242         * gimple.h (gsi_remove): Adjust.
8243         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
8244         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
8245         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
8246         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
8247         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
8248         * tree-ssa-pre.c (eliminate): Likewise.
8250 2012-04-04  Mike Stump  <mikestump@comcast.net>
8252         * doc/rtl.texi (const_double): Document as sign-extending.
8253         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
8254         * emit-rtl.c (immed_double_int_const): Refine to state the
8255         value is signed.
8256         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
8257         CONST_DOUBLE integers.
8258         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
8259         negative values are converted.  Fix conversions bigger than
8260         HOST_BITS_PER_WIDE_INT.
8261         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
8262         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
8263         * explow.c (plus_constant_mode): Add.
8264         (plus_constant): Implement with plus_constant_mode.
8265         * rtl.h (plus_constant_mode): Add.
8267 2012-04-04  Richard Guenther  <rguenther@suse.de>
8269         PR tree-optimization/52808
8270         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
8271         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
8273 2012-04-04  Tristan Gingold  <gingold@adacore.com>
8275         * expr.c (expand_expr_real_2): Handle larger sizetype in
8276         POINTER_PLUS_EXPR.
8278 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8280         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
8281         to m2a-single instead of m2e.
8283 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8285         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
8286         Change type of BITOFFSET to signed.  Make sure the lower bound of
8287         the computed range is non-negative by adjusting OFFSET and BITPOS.
8288         (expand_assignment): Adjust call to get_bit_range.
8290 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
8292         * h8300/h8300.c (h8300_current_function_monitor_function_p):
8293         New function. Added to check monitor functions.
8294         (h8300_option_override): Modified to generate error/warning
8295         messages for invalid combinations of different command line
8296         options.
8297         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
8298         save EXR on stack for monitor function in case of H8S target
8299         when "-mno-exr" is passed.
8300         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
8301         Add prototype.
8302         * doc/invoke.texi: Document H8S options.
8304 2012-04-03  Tristan Gingold  <gingold@adacore.com>
8306         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
8307         of gcc_AC_FUNC_MMAP_BLACKLIST.
8308         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
8309         * Makefile.in (aclocal_deps): Add mmap.m4.
8310         * configure: Regenerate.
8311         * aclocal.m4: Regenerate.
8313 2012-04-03  Richard Guenther  <rguenther@suse.de>
8315         PR tree-optimization/52808
8316         * tracer.c (tail_duplicate): Return whether we have duplicated
8317         any block.
8318         (tracer): If we have duplicated any block, cleanup the CFG.
8319         * cfghooks.c (duplicate_block): If we duplicated a loop
8320         header but not its loop, destroy the loop because it now has
8321         multiple entries.
8322         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
8323         the cfg manipulation routines we are not creating a multiple
8324         entry loop.
8326 2012-04-03  Tristan Gingold  <gingold@adacore.com>
8328         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
8329         'byte' alignment.
8330         (vms_c_common_override_options): Allow parameterless variadic
8331         functions.
8333 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
8335         PR tree-optimization/52835
8336         * tree-data-ref.c (build_rdg): Return NULL if
8337         compute_data_dependences_for_loop failed.
8339 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8341         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
8342         for REAL_CST as well.
8343         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
8344         In the bitfield case, if the value is a REAL_CST, convert it first to
8345         an INTEGER_CST.
8347 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8349         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
8350         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
8351         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
8353         * config/i386/biarchx32.h: New.
8355 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
8357         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
8358         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8359         (arm_preferred_reload_class): New function.
8361 2012-04-02  Richard Guenther  <rguenther@suse.de>
8363         PR tree-optimization/52756
8364         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
8365         (thread_through_loop_header): After threading through the loop latch
8366         remove the split part from the loop and clear further threading
8367         opportunities that would create a multiple entry loop.
8369 2012-04-02  Richard Guenther  <rguenther@suse.de>
8371         PR rtl-optimization/52800
8372         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
8373         CLEANUP_CFG_CHANGED.
8375 2012-04-02  Richard Guenther  <rguenther@suse.de>
8377         PR middle-end/52803
8378         * loop-init.c (gate_handle_loop2): Destroy loops here if
8379         we don't enter RTL loop optimizers.
8381 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
8383         Partially revert:
8384         2012-03-29  Richard Guenther  <rguenther@suse.de>
8386         * rtl.h (extended_count): Remove.
8387         * combine.c (extended_count): Remove.
8389 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
8391         PR c++/40942
8392         * pt.c (more_specialized_fn):  Don't apply decay conversion to
8393         types of function parameters.
8395 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8397         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
8398         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
8399         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
8400         (ggc_pch_this_base): Use uintptr_t instead of size_t.
8402 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8404         PR bootstrap/52784
8405         * config/i386/i386.c (ix86_option_override_internal): Don't
8406         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
8408 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8410         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
8411         (stmt_can_make_abnormal_goto): Use it.
8412         (is_ctrl_altering_stmt): Likewise.
8414 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
8415             Kaz Kojima  <kkojima@gcc.gnu.org>
8417         * config/sh/sh.c (push_regs): Skip banked registers when
8418         resbank attribute is specified.
8419         (sh_expand_epilogue): Likewise.
8421 2012-03-30  Richard Henderson  <rth@redhat.com>
8423         PR debug/52727
8424         * combine-stack-adj.c (prev_active_insn_bb): New.
8425         (next_active_insn_bb): New.
8426         (force_move_args_size_note): New.
8427         (combine_stack_adjustments_for_block): Use it.
8429 2012-03-30  Richard Henderson  <rth@redhat.com>
8431         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
8432         (ix86_expand_vector_init_duplicate): Initialize it.
8433         (expand_vec_perm_palignr): Likewise.
8434         (ix86_expand_vec_perm_const): Likewise.
8435         (ix86_vectorize_vec_perm_const_ok): Likewise.
8436         (expand_vec_perm_blend): Use it.
8437         (expand_vec_perm_vpermil): Likewise.
8438         (expand_vec_perm_pshufb): Likewise.
8439         (expand_vec_perm_1): Likewise.
8440         (expand_vec_perm_pshuflw_pshufhw): Likewise.
8441         (expand_vec_perm_interleave2): Likewise.
8442         (expand_vec_perm_vpermq_perm_1): Likewise.
8443         (expand_vec_perm_vperm2f128): Likewise.
8444         (expand_vec_perm_interleave3): Likewise.
8445         (expand_vec_perm_vperm2f128_vblend): Likewise.
8446         (expand_vec_perm_vpshufb2_vpermq): Likewise.
8447         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
8448         (expand_vec_perm_broadcast): Likewise.
8449         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8451 2012-03-30  Richard Henderson  <rth@redhat.com>
8453         * dwarf2out.c (gen_variable_die): Initialize off.
8455 2012-03-30  Tristan Gingold  <gingold@adacore.com>
8457         * config/vms/vms-f.c: New file.
8458         * config/vms/t-vms (vms-f.o): New rule.
8459         * config.gcc (*-*-*vms*): Define fortran_target_objs.
8461 2012-03-30  Richard Guenther  <rguenther@suse.de>
8463         PR tree-optimization/52754
8464         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8465         propagate arbitrary addresses into really plain dereferences.
8467 2012-03-30  Richard Guenther <rguenther@suse.de>
8469         PR middle-end/52772
8470         * except.c (emit_to_new_bb_before): Move loop updating ...
8471         (dw2_build_landing_pads): ... here.  Use a proper block for
8472         querying the loop father.
8474 2012-03-30  Tristan Gingold  <gingold@adacore.com>
8476         * config/ia64/ia64.c (ia64_section_type_flags): Remove
8477         common_object attribute handling.
8478         (SECTION_VMS_OVERLAY): Remove
8479         (ia64_vms_common_object_attribute): Replace abort with an assert.
8480         Do not set DECL_SECTION_NAME.
8481         (ia64_vms_output_aligned_decl_common): Handle common_object
8482         attribute.
8483         (ia64_vms_elf_asm_named_section): Remove.
8484         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
8486 2012-03-30  Richard Guenther  <rguenther@suse.de>
8488         PR middle-end/52786
8489         * double-int.c (rshift_double): Remove not needed cast.
8491 2012-03-30  Richard Guenther  <rguenther@suse.de>
8493         * tree-affine.h (print_aff): Remove.
8494         * tree-affine.c (print_aff): Make static.
8495         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
8496         (get_references_in_stmt): Likewise.
8497         (print_direction_vector): Likewise.
8498         (print_dir_vectors): Likewise.
8499         (print_dist_vectors): Likewise.
8500         (dump_subscript): Likewise.
8501         (dump_ddrs): Likewise.
8502         (dump_dist_dir_vectors): Likewise.
8503         (dump_data_references): Likewise.
8504         (dump_data_dependence_relation): Likewise.
8505         (dump_data_dependence_direction): Likewise.
8506         (dump_rdg_vertex): Likewise.
8507         (dump_rdg_component): Likewise.
8508         (debug_ddrs): Declare.
8509         (struct data_ref_loc_d): Move ...
8510         * tree-data-ref.c (struct data_ref_loc_d): ... here.
8511         (get_references_in_stmt): Make static.
8512         (dump_data_references): Likewise.
8513         (dump_subscript): Likewise.
8514         (print_direction_vector): Likewise.
8515         (print_dir_vectors): Likewise.
8516         (print_dist_vectors): Likewise.
8517         (dump_data_dependence_relation): Likewise.
8518         (dump_dist_dir_vectors): Likewise.
8519         (dump_ddrs): Likewise.
8520         (dump_rdg_vertex): Likewise.
8521         (dump_rdg_component): Likewise.
8522         (debug_ddrs): New function.
8523         (access_matrix_get_index_for_parameter): Remove.
8525 2012-03-30  Tristan Gingold  <gingold@adacore.com>
8527         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
8528         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
8529         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
8530         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
8531         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
8532         (vms_patch_builtins): Handle new flags
8533         * config/vms/vms-crtlmap.map: Completed using nm on
8534         c and math system libraries.
8535         * config/vms/make-crtlmap.awk: Handle any number of flags.
8537 2012-03-30  Martin Jambor  <mjambor@suse.cz>
8539         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
8540         is a builtin_stack_save in a dominating BB.
8542 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
8544         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
8545         crossing 128bit lane boundary.
8547 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8549         * ira-color.c (setup_left_conflict_sizes_p): Process all
8550         conflicting objects.
8552 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
8554         PR tree-optimization/52760
8555         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
8556         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
8558 2012-03-29  Richard Guenther  <rguenther@suse.de>
8560         * cgraph.h (cgraph_materialize_all_clones): Remove.
8561         (reset_inline_failed): Likewise.
8562         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
8563         * cgraphbuild.c (reset_inline_failed): Remove.
8564         * rtl.h (cse_main): Remove.
8565         (extended_count): Likewise.
8566         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
8567         (cse_main): Make static.
8568         * combine.c (extended_count): Remove.
8569         (dump_combine_stats): Mark as DEBUG_FUNCTION.
8570         * basic-block.h (reorder_basic_blocks): Remove.
8571         * bb-reorder.c (reorder_basic_blocks): Make static.
8572         * Makefile.in (dse.o): Remove dse.h dependency.
8573         * dse.h: Remove.
8574         * dse.c (gate_dse): Remove.
8575         (clear_alias_mode_eq): Likewise.
8576         (clear_alias_mode_hash): Likewise.
8577         (dse_record_singleton_alias_set): Likewise.
8578         (dse_invalidate_singleton_alias_set): Likewise.
8580 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
8582         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
8583         crtbegin_so%O%s for -shared.
8584         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
8586 2012-03-29  Richard Guenther  <rguenther@suse.de>
8588         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
8589         (add_to_value): Remove.
8590         (print_value_expressions): Likewise.
8591         * tree-ssa-pre.c (add_to_value): Make static.
8592         (print_value_expressions): Likewise.
8593         * gimple.h (gimple_adjust_this_by_delta): Remove.
8594         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
8596 2012-03-29  Richard Guenther  <rguenther@suse.de>
8598         PR middle-end/50708
8599         * double-int.h (rshift_double): Remove.
8600         * double-int.c (lshift_double): Use absu_hwi to make count positive.
8601         (rshift_double): Make static, take unsigned count argument,
8602         remove handling of negative count argument.
8603         (double_int_rshift): Dispatch to lshift_double.
8605 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8607         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
8608         OPTION_MASK_ABI_64.
8610         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
8611         (SPEC_X32): Likewise.
8612         (MULTILIB_DEFAULTS): Likewise.
8614         * config/i386/i386.c (isa_opts): Remove -m64.
8615         (ix86_target_string): Properly handle -m32/-m64/-mx32.
8616         (ix86_option_override_internal): Properly
8617         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
8618         handle -m32, -m64 and -mx32.
8620         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
8621         with OPTION_ABI_X32.  Moved after TARGET_LP64.
8622         (TARGET_LP64): Changed to OPTION_ABI_64.
8624         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
8625         (mx32): Replace ISA_X32 with ABI_X32.
8627 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8629         * tree.c (tree_size) <VECTOR_CST>: New case.
8631 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
8633         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
8634         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
8636 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
8638         PR middle-end/52691
8639         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
8640         __builtin_va_start to __builtin_next_arg if the latter is
8641         builtin_decl_explicit_p rather than when it is not.
8643         PR middle-end/52750
8644         * tree-vect-generic.c (vector_element): Perform multiplication
8645         for pos in bitsizetype type instead of idx type.
8647 2012-03-28  Richard Guenther  <rguenther@suse.de>
8649         * loop-init.c (loop_optimizer_init): If loops are preserved
8650         perform incremental initialization of required loop features.
8651         (loop_optimizer_finalize): If loops are to be preserved only
8652         clean up optional loop features.
8653         (rtl_loop_done): Forcefully free loops here.
8654         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
8655         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
8656         to existing loops.
8657         (construct_init_block): Likewise.
8658         (construct_exit_block): Likewise.
8659         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
8660         the CFG after expanding.
8661         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
8662         If we needed to calculate them, free them afterwards.
8663         * tree-pass.h (PROP_loops): New define.
8664         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
8665         * basic-block.h (CLEANUP_CFG_CHANGED): New.
8666         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
8667         (cleanup_cfg): If we did something and have loops around, fix them up.
8668         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
8669         with CLEANUP_CFG_CHANGED.
8670         * cfghooks.c (merge_blocks): If we merge a loop header into
8671         its predecessor, update the loop structure.
8672         (duplicate_block): If we copy a loop latch, adjust loop state
8673         to note we may have multiple latches.
8674         (delete_basic_block): Mark loops for fixup if we remove a loop.
8675         * cfganal.c (forwarder_block_p): Protect loop latches, headers
8676         and preheaders.
8677         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
8678         (cfg_layout_can_merge_blocks_p): Likewise.
8679         * cprop.c (bypass_block): If we create a loop with multiple
8680         entries, mark it for removal.
8681         * except.c (emit_to_new_bb_before): Add the new basic-block
8682         to existing loops.
8683         * tree-eh.c (lower_resx): Likewise.
8684         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
8685         (expand_omp_taskreg): Likewise.
8686         * tree-inline.c (initialize_cfun): Likewise.
8687         * tree-mudflap.c (add_bb_to_loop): Prototype.
8688         (mf_build_check_statement_for): Properly add new basic-blocks
8689         to existing loops.
8690         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
8691         if we remove a loop.
8692         (thread_through_loop_header): Likewise.
8693         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
8694         new basic-blocks to existing loops.
8695         (expand_transaction): Likewise.
8696         * Makefile.in (except.o): Add $(CFGLOOP_H).
8697         (expr.o): Likewise.
8698         (cgraph.o): Likewise.
8699         (cprop.o): Likewise.
8700         (cfgexpand.o): Likewise.
8701         (cfganal.o): Likewise.
8702         (trans-mem.o): Likewise.
8703         (tree-eh.o): Likewise.
8705 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
8707         PR target/52692
8708         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
8709         (avr_builtin_decl): New static function.
8710         (struct avr_builtin_description, avr_bdesc): Move up.
8711         Add GTY marker. Add field fndecl. Remove redundant field id.
8712         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
8713         (avr_expand_builtin): Code cleanup because .id is removed.
8715 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
8717         PR target/52737
8718         * config.gcc (tm_file): Remove avr/multilib.h.
8720         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
8722         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
8723         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
8724         * config/avr/t-avr: Remove generation of multilib.h.
8725         * config/avr/t-multilib: Regenerate.
8726         * config/avr/multilib.h: Remove.
8727         * config/avr/avr.opt (-msp8): New option.
8728         (avr_sp8): New variable.
8729         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
8730         * config/avr/avr.h (AVR_HAVE_SPH): New define.
8731         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
8732         (avr_device_to_sp8): New prototype.
8733         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
8734         (DRIVER_SELF_SPECS): New define.
8735         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
8736         __AVR_SP8__, __AVR_HAVE_SPH__.
8737         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
8738         AVR_HAVE_8BIT_SP to decide if SP_H is present.
8739         (avr_file_start): Ditto.
8741 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
8743         PR target/52736
8744         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
8745         instead of 8 in adjust_address.
8747 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
8749         PR middle-end/51893
8750         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
8751         targets.
8753 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
8755         PR target/50751
8756         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
8757         Rearrange conditional logic.  Move displacement address calculations
8758         to ...
8759         (sh_find_mov_disp_adjust): ... this new function.
8761 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8763         * config/arm/arm.opt (mapcs): Remove MaskExists.
8764         * config/cris/linux.opt (mno-gotplt): Likewise.
8765         * config/i386/i386.opt (mhard-float): Likewise.
8766         (msse4): Likewise.
8767         (mno-sse4): Likewise.
8768         * config/m68k/m68k.opt (mhard-float): Likewise.
8769         * config/mep/mep.op (mcop32): Likewise.
8770         * config/pa/pa-hpux.opt (msio): Likewise.
8771         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
8772         * config/picochip/picochip.opt (mlittle): Likewise.
8773         * config/sh/sh.opt (mrenesas): Likewise.
8774         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
8775         * config/sparc/sparc.opt (mhard-float): Likewise.
8776         * config/v850/v850.opt (mv850es): Likewise.
8777         * config/vax/vax.opt (mg-float): Likewise.
8779 2012-03-27  Martin Jambor  <mjambor@suse.cz>
8781         PR middle-end/52693
8782         * tree-sra.c (sra_modify_assign): Do not call
8783         load_assign_lhs_subreplacements when working with an unscalarizable
8784         region.
8786 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
8788         PR target/52698
8789         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
8790         New prototype.
8791         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
8792         * config/i386/i386.c: Include reload.h.
8793         (ix86_legitimize_reload_address): New function.
8795 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8797         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
8798         hasn't been allocated.  Define a target macro for Mask and
8799         InverseMask if it hasn't been defined.  Remove MaskExists handling.
8801         * doc/options.texi: Remove MaskExists.
8803 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
8805         PR target/52667
8806         * config/sh/sh.c (find_barrier): Add equality check of last_got
8807         to avoid going above orig insn. Update comments.
8809 2012-03-27  Richard Guenther  <rguenther@suse.de>
8811         PR middle-end/52720
8812         * fold-const.c (try_move_mult_to_index): Handle &x.array more
8813         explicitely.
8815 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
8817         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
8818         of a unit before computing the offset in units.
8819         * expr.c (get_bit_range): Return the null range if the enclosing record
8820         is part of a larger bit field.
8822 2012-03-27  Tristan Gingold  <gingold@adacore.com>
8824         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
8825         * config/ia64/ia64.md: Remove mode in template.
8826         Sign extend operand in expand_simple_binop.
8827         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
8828         CASE_VECTOR_MODE instead of TARGET_ILP32.
8829         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
8831 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
8833         * varasm.c (assemble_external): #if 0 out the new assert from the
8834         previous commit, it breaks the Java and Go front ends.
8836 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
8838         * toplev.c (check_global_declaration_1): Do not call assemble_external.
8839         * expr.c (emit_block_move_libcall_fn): Likewise.
8840         (clear_storage_libcall_fn): Likewise.
8841         (expand_expr_addr_expr_1): Likewise.
8842         (expand_expr_real_1): Likewise.
8843         * calls.c (rtx_for_function_call): Likewise.
8845         * varasm.c (assemble_external): Assert this function is only called
8846         during or after expanding to RTL.
8848 2012-03-26  Martin Jambor  <mjambor@suse.cz>
8850         PR tree-optimization/50052
8851         * tree-sra.c (tree_non_aligned_mem_p): Removed.
8852         (tree_non_aligned_mem_for_access_p): Likewise.
8853         (build_accesses_from_assign): Removed strict alignment requirements
8854         checks.
8855         (access_precludes_ipa_sra_p): Likewise.
8857 2012-03-26  Richard Guenther  <rguenther@suse.de>
8859         PR tree-optimization/52701
8860         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
8861         compute and set the evolution part of PHI nodes.
8863 2012-03-26  Richard Guenther  <rguenther@suse.de>
8865         PR tree-optimization/52721
8866         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
8868 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
8870         PR tree-optimization/52686
8871         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
8872         WIDEN_LSHIFT_EXPR.
8874 2012-03-26  Tristan Gingold  <gingold@adacore.com>
8876         * config/alpha/vms.h (LINK_SPEC): Simplify.
8877         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
8878         (NAME__MAIN, SYMBOL__MAIN): Remove.
8879         (VMS_DEBUG_MAIN_POINTER): Remove.
8880         * config/ia64/vms.h: Likewise.
8881         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
8882         code to vms.c.  Call vms_start_function.
8883         * config/ia64/ia64.c (ia64_start_function): Likewise.
8884         * config/vms/vms-protos.h (vms_start_function): Declare.
8885         * config/vms/vms.c (vms_start_function): New function.
8886         * config/vms/vms.h (MATH_LIBRARY): Define.
8887         (VMS_DEBUG_MAIN_POINTER): Define.
8889 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8891         PR rtl-optimization/52629
8892         * reload1.c (count_pseudo): Short-circuit common case.
8893         (count_spilled_pseudo): Return early for pseudos without hard regs.
8894         Assert that the pseudo has got a hard reg before manipulating it.
8896 2012-03-24  Jan Hubicka  <jh@suse.cz>
8898         PR lto/51663
8899         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
8900         (decide_is_variable_needed): Do not handle toplevel reorder here.
8901         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
8902         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
8903         even at -O0.
8905 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8907         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
8908         and str_bitsize instead of more convoluted expressions.
8910 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8912         PR target/52610
8913         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
8915 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8917         PR target/52656
8918         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
8920 2012-03-23  Martin Jambor  <mjambor@suse.cz>
8922         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
8924 2012-03-23  Richard Guenther  <rguenther@suse.de>
8926         PR tree-optimization/52678
8927         * tree-vectorizer.h (struct _stmt_vec_info): Add
8928         loop_phi_evolution_part member.
8929         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
8930         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
8931         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
8932         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8933         Use the cached evolution part and the PHI nodes value from
8934         the loop preheader edge instead of re-analyzing the evolution.
8936 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8938         * config/mips/mips-tables.opt: Update.
8939         * config/mips/mips.md (processor): Add xlp.
8940         * config/mips/mips-cpus.def: Add xlp.
8941         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
8942         5KF for now.
8943         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
8944         * doc/invoke.texi: Mention XLP.
8946 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
8948         PR middle-end/52547
8949         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
8950         on any new_local_var_chain vars declared during recursing on
8951         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
8953 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
8955         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
8956         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
8957         (ASM_OUTPUT_LOCAL): Ditto.
8958         (ASM_OUTPUT_COMMON): Remove.
8959         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
8960         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
8962 2012-03-22  Jan Hubicka  <jh@suse.cz>
8964         PR middle-end/51737
8965         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
8966         parameter.
8967         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
8968         * ipa-inline-transform.c (save_inline_function_body): Remove
8969         copied clone if needed.
8970         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
8972 2012-03-22  Richard Guenther  <rguenther@suse.de>
8974         PR middle-end/52666
8975         * fold-const.c (fold_ternary_loc): Fix typo.
8977 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
8979         PR target/52496
8980         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
8981         (unspecv): Add UNSPECV_MEMORY_BARRIER.
8982         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
8983         (delay_cycles_1, delay_cycles_2): Ditto.
8984         (delay_cycles_3, delay_cycles_4): Ditto.
8985         (nopv, *nopv): Ditto.
8986         (sleep, *sleep): Ditto.
8987         (wdr, *wdr): Ditto.
8989 2012-03-22  Richard Guenther  <rguenther@suse.de>
8991         PR tree-optimization/52548
8992         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
8993         because of clobbers.
8994         (prune_clobbered_mems): New function.
8995         (compute_antic_aux): Use it to prune ANTIC_OUT.
8996         (compute_partial_antic_aux): Use it to prune PA_IN.
8997         (compute_avail): Only insert expressions into EXP_GEN that are not
8998         invalidated when translated up to the beginning of the block.
9000 2012-03-22  Richard Guenther  <rguenther@suse.de>
9002         PR tree-optimization/52638
9003         * tree-vect-stmts.c (vect_init_vector_1): New function, split
9004         out from ...
9005         (vect_init_vector): ... here.  Handle scalar vector inits.
9006         (vect_get_vec_def_for_operand): Adjust.
9007         (vectorizable_load): Likewise.
9009 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
9011         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
9012         (alpha*-*-freebsd*): Ditto.
9013         (alpha*-*-netbsd*): Ditto.
9014         (alpha*-*-openbsd*): Ditto.
9015         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
9016         (DWARF2_DEBUGGING_INFO): Remove.
9017         (PREFERRED_DEBUGGING_TYPE): Remove.
9018         (ASM_FINAL_SPEC): Remove.
9019         (IDENT_ASM_OP): Remove.
9020         (ASM_OUTPUT_IDENT): Remove.
9021         (SKIP_ASM_OP): Remove.
9022         (ASM_OUTPUT_SKIP): Remove.
9023         (ALIGN_ASM_OP): Remove.
9024         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9025         (ASM_OUTPUT_CASE_LABEL): Remove.
9026         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
9027         (COMMON_ASM_OP): Remove.
9028         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
9029         (ASCII_DATA_ASM_OP): Remove.
9030         (READONLY_DATA_SECTION_ASM_OP): Remove.
9031         (INIT_SECTION_ASM_OP): Remove.
9032         (FINI_SECTION_ASM_OP): Remove.
9033         (ASM_SECTION_START_OP): Remove.
9034         (ASM_OUTPUT_SECTION_START_FILE): Remove.
9035         (TARGET_ASM_NAMED_SECTION): Remove.
9036         (TARGET_ASM_SELECT_SECTION): Remove.
9037         (MAKE_DECL_ONE_ONLY): Remove.
9038         (TYPE_ASM_OP): Remove.
9039         (SIZE_ASM_OP): Remove.
9040         (ASM_WEAKEN_LABEL): Remove.
9041         (TYPE_OPERAND_FMT): Remove.
9042         (ASM_DECLARE_RESULT): Remove.
9043         (ASM_DECLARE_OBJECT_NAME): Remove.
9044         (ASM_FINISH_DECLARE_OBJECT): Remove.
9045         (ELF_ASCII_ESCAPES): Remove.
9046         (ELF_STRING_LIMIT): Remove.
9047         (STRING_ASM_OP): Remove.
9048         (ASM_OUTPUT_EXTERNAL): Remove.
9049         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
9050         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
9051         before define.
9052         (ASM_DECLARE_FUNCTION_NAME): Ditto.
9053         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
9054         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
9055         (ASM_OUTPUT_SKIP): Ditto.
9056         (READONLY_DATA_SECTION_ASM_OP): Remove.
9057         (USER_LABEL_PREFIX): Remove.
9058         (ASM_OUTPUT_ASCII): Remove.
9059         (ASM_OUTPUT_CASE_LABEL): Remove.
9060         (NO_DOLLAR_IN_LABEL): Undefine.
9062 2012-03-22  Richard Guenther  <rguenther@suse.de>
9064         PR tree-optimization/52459
9065         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
9066         PHI insertion for calls.
9068 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
9070         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
9071         find_sets_in_insn, canonicalize_insn): Split out from ...
9072         (cse_insn): ... here.
9073         (invalidate_from_clobbers): Take an insn instead of the pattern.
9075 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
9077         PR target/52479
9078         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
9079         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
9080         * config/sh/sh.md (sindf2, cosdf2): Remove.
9082 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9084         PR target/52642
9085         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
9086         prologue for unwinder and profiler.
9088 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
9090         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
9091         Introduce emul_name to select the right linker emulation for
9092         powerpc64-*-freebsd*.
9093         * configure: Regenerate.
9094         * config.gcc: Add bits to support powerpc64-*-freebsd*.
9095         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
9096         * config/rs6000/freebsd64.h: New file.
9097         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
9098         POWERPC_FREEBSD.
9099         (rs6000_savres_strategy): Likewise.
9100         (rs6000_savres_routine_name): Likewise.
9101         (rs6000_elf_file_end): Likewise.
9102         * config/rs6000/t-freebsd64: New file.
9103         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
9104         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
9106         * config/rs6000/freebsd64.h: Remove duplicated entries from last
9107         commit.
9108         * config/rs6000/t-freebsd64: Likewise.
9110 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
9112         PR rtl-optimization/52543
9113         PR target/52461
9114         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
9115         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
9116         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
9117         (avr_load_libgcc_p): Restrict to __flash loads.
9118         (avr_out_lpm): Only handle 1-byte loads from __flash.
9119         (avr_load_lpm): New function.
9120         (avr_find_unused_d_reg): Remove.
9121         (avr_out_lpm_no_lpmx): Remove.
9122         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
9123         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
9124         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
9125         (load_<mode>, load_<mode>_clobber): New insns.
9126         (mov<mode>): For multi-byte move from non-generic
9127         16-bit address spaces: Expand to load_<mode> resp.
9128         load_<mode>_clobber.
9129         (load<mode>_libgcc): Remove expander.
9130         (split-lpmx): Remove split.
9132 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
9134         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
9135         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
9136         All callers changed.
9137         (Fixed_core_reg): New feature.
9138         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
9139         disassembly.
9140         * neon-testgen.ml: Handle Fixed_core_reg.
9142 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
9144         * config/arm/arm.c (thumb2_reorg): Add complete support
9145         for 16-bit instructions.
9146         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
9148 2012-03-21  Richard Guenther  <rguenther@suse.de>
9150         PR tree-optimizer/52636
9151         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
9152         to the appropriate type.
9154 2012-03-21  Richard Guenther  <rguenther@suse.de>
9156         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
9157         dependencies.
9158         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
9159         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9160         * passes.c (init_optimization_passes): Remove pass_init_function,
9161         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9162         * tree-pass.h (pass_init_function): Remove.
9163         (pass_jump): Remove.
9164         (pass_initial_value_sets): Remove.
9165         (pass_unshare_all_rtl): Remove.
9166         * integrate.c (pass_initial_value_sets): Remove.
9167         * emit-rtl.c (pass_unshare_all_rtl): Remove.
9168         * tree.h (init_function_for_compilation): Remove.
9169         * function.c (init_function_for_compilation): Remove.
9170         (pass_init_function): Remove.
9171         * cfgcleanup.c (rest_of_handle_jump): Remove.
9172         (pass_jump): Remove.
9174 2012-03-20  Jason Merrill  <jason@redhat.com>
9176         * tree-streamer-in.c (streamer_alloc_tree): Call
9177         ggc_alloc_zone_cleared_tree_node instead of
9178         ggc_alloc_zone_cleared_tree_node_stat.
9180 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
9182         * doc/extend.texi (Template Instantiation): Remove anachronisms.
9184 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
9186         PR target/52607
9187         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
9188         (ix86_expand_vec_perm_const_1): Call it.
9190         * config/i386/i386.c (vselect_insn): New variable.
9191         (init_vselect_insn): New function.
9192         (expand_vselect, expand_vselect_insn): Add testing_p argument.
9193         Call init_vselect_insn if vselect_insn is NULL.  Adjust
9194         PATTERN (vselect_insn), instead of creating a new insn each time,
9195         only emit a copy of it if not testing and recog has been successful.
9196         (expand_vec_perm_pshufb, expand_vec_perm_1,
9197         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
9198         callers.
9200         PR target/52607
9201         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
9202         ("enabled" attribute): Handle avx2 and noavx2 isas.
9203         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
9204         New insns.
9205         (vec_dup<mode>): Add avx2 =x,x alternative.
9206         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
9207         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
9208         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
9209         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
9210         for V8SFmode.
9211         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
9212         if possible, handle also V8SFmode.
9214 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
9216         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
9217         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
9218         reg_or_zero_operand predicate.
9219         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
9221 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
9223         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
9224         If operand isn't UNSPEC, return 0.
9226 2012-03-20  Richard Guenther  <rguenther@suse.de>
9228         * tree-pass.h (pass_rtl_eh): Remove.
9229         * except.c (gate_handle_eh): Likewise.
9230         (rest_of_handle_eh): Likewise.
9231         (pass_rtl_eh): Likewise.
9232         (finish_eh_generation): Export.
9233         * except.h (finish_eh_generation): Declare.
9234         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
9235         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
9236         after expanding stack alignment.  Instead of compacting blocks
9237         call cleanup_cfg.
9239 2012-03-20  Richard Guenther  <rguenther@suse.de>
9241         * stor-layout.c (finish_bitfield_representative): Fallback
9242         to conservative maximum size if the padding up to the next
9243         field cannot be computed as a constant.
9244         (finish_bitfield_layout): If we cannot compute the distance
9245         between the start of the bitfield representative and the
9246         bitfield member start a new representative.
9247         * expr.c (get_bit_range): The distance between the start of
9248         the bitfield representative and the bitfield member is zero
9249         if the field offsets are not constants.
9251 2012-03-20  Tristan Gingold  <gingold@adacore.com>
9253         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
9254         convert in lowercase.
9255         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
9256         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
9257         * stor-layout.c (sizetype_tab): Adjust.
9258         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
9259         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
9260         instead of type_kind_last.
9261         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
9262         instead of size_int_kind.
9263         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
9264         * doc/tm.texi: Regenerate.
9265         * defaults.h (SIZETYPE): Provide a default value.
9266         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
9267         (SIZETYPE): Define.
9269 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
9271         * config/sh/sh.md: Use braced string notation where applicable.
9273 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9275         * config/i386/i386.md (allocate_stack): Simplify.
9277 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9279         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
9280         copy_to_mode_reg (Pmode, ...).
9281         (expand_builtin_frame_address): Ditto.
9282         * expr.c (emit_block_move_via_libcall): Ditto.
9283         (set_storage_via_libcall): Ditto.
9285         * config/i386/i386.c (ix86_expand_movmem): Ditto.
9286         (ix86_expand_setmem): Ditto.
9287         (ix86_trampoline_init): DItto.
9288         * config/i386/i386.md (cmpstrnsi): Ditto.
9290 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
9292         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
9293         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
9294         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
9295         (SH Options): Likewise.
9297 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9299         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
9300         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
9301         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
9302         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
9303         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
9305         Revert:
9306         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9308         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9309         * config/i386/i386.c (ix86_decompose_address): Use
9310         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9311         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9312         thread pointer to a register.
9314         Revert:
9315         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
9317         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
9318         if Pmode != word_mode.
9319         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
9320         Pmode == SImode for TARGET_X32.
9322         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
9323         (tls_initial_exec_x32): Likewise.
9325 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
9327         PR target/50751
9328         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
9329         DISP_ADDR_OFFSET): New macros.
9330         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
9331         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
9332         (sh_legitimize_address): Add QImode displacement handling.
9333         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
9334         vector subregs.
9335         (sh_secondary_reload): Add QImode displacement handling.
9336         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
9337         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
9338         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
9339         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
9340         to register operands only.
9341         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
9342         (extendqihi2): Change insn to expander.
9343         (*extendqihi2_compact_reg): New insn.
9344         (movqi_i, movqi): Replace with ...
9345         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
9346         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
9347         Add new peepholes for QImode displacement addressing.
9349 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
9351         PR c++/14710
9352         * doc/invoke.texi: Document -Wuseless-cast.
9354 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
9356         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
9357         * tree.h (handled_component_p): Reorder cases.
9358         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
9359         not initialize unsignedp.
9360         (loc_list_from_tree): Likewise.
9361         (fortran_common): Likewise.
9362         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9364 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
9366         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
9367         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
9368         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
9369         (ix86_split_long_move): Ditto.
9370         (legitimize_tls_address): Use ix86_gen_sub3.
9371         (construct_plt_address): Assert that Pmode == DImode.
9373 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
9375         * config/i386/i386.md: Remove empty predicates and/or constraints.
9376         * config/i386/sync.md: Ditto.
9377         * config/i386/sse.md: Ditto.
9378         * config/i386/mmx.md: Ditto.
9379         * config/i386/pentium.md: Ditto.
9380         * config/i386/athlon.md: Ditto.
9382 2012-03-16  Richard Guenther  <rguenther@suse.de>
9384         PR tree-optimization/52603
9385         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
9386         comment.
9388         Revert
9389         2012-03-14  Richard Guenther  <rguenther@suse.de>
9391         PR tree-optimization/52571
9392         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9393         flag_section_anchors check ...
9394         (vect_can_force_dr_alignment_p): ... here.
9396 2012-03-16  Martin Jambor  <mjambor@suse.cz>
9398         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
9399         memory through MEM_REFs by calling extract_bit_field.
9401 2012-03-16  Richard Guenther  <rguenther@suse.de>
9403         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
9404         and REFERENCE_TYPE interpretations.
9405         (can_native_interpret_type_p): New function.
9406         (fold_ternary_loc): Use native encode/interpret to fold
9407         BIT_FIELD_REFs of constants.
9409 2012-03-16  Richard Guenther  <rguenther@suse.de>
9411         PR middle-end/52584
9412         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
9413         of vector constants and constructors.
9415 2012-03-16  Richard Guenther  <rguenther@suse.de>
9417         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9418         VIEW_CONVERT_EXPR to convert constants.
9419         (vect_is_simple_use): Treat all constants as vec_constant_def.
9421 2012-03-16  Richard Guenther  <rguenther@suse.de>
9422             Kai Tietz  <ktietz@redhat.com>
9424         PR middle-end/48814
9425         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
9426         side-effects completely in the pre-queue and use a temporary
9427         for the result.
9429 2012-03-16  Richard Guenther  <rguenther@suse.de>
9431         * stor-layout.c (finish_bitfield_representative): Fall back
9432         to the conservative maximum size if we cannot compute the
9433         size of the tail padding.
9435 2012-03-16  Tristan Gingold  <gingold@adacore.com>
9437         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
9438         __CRTL_VER and __VMS_VER.
9439         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
9440         and vms_c_get_vms_ver.
9441         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
9442         functions.
9443         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
9444         (VMS_DEFAULT_VMS_VER): Define.
9445         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
9446         (VMS_DEFAULT_VMS_VER): Define.
9448 2012-03-16  Richard Guenther  <rguenther@suse.de>
9450         * tree-vect-loop.c (get_initial_def_for_induction): Use
9451         build_constructor directly.
9452         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9453         build_vector_from_val.
9454         * tree.c (build_vector_from_val): Avoid creating a constructor
9455         first when we want a constant vector.
9457 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9459         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
9461 2012-03-16  Richard Guenther  <rguenther@suse.de>
9463         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
9464         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
9465         (struct tree_vector): Remove elements member, add variable size
9466         elts array member.
9467         (build_vector_stat): Declare.
9468         (build_vector): Define in terms of build_vector_stat.
9469         * tree.c (build_vector): Rename to ...
9470         (build_vector_stat): ... this.  Take array of trees as parameter.
9471         (build_vector_from_ctor): Adjust.
9472         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
9473         initializer_zerop): Adjust.
9474         * cfgexpand.c (expand_debug_expr): Likewise.
9475         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
9476         const_vector_from_tree): Likewise.
9477         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
9478         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
9479         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
9480         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
9481         (lto_input_ts_vector_tree_pointers): Adjust.
9482         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
9483         (write_ts_vector_tree_pointers): Adjust.
9484         * varasm.c (const_hash_1, compare_constant, copy_constant,
9485         output_constant): Adjust.
9486         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
9487         * print-tree.c (print_node): Adjust.
9488         * tree-pretty-print.c (dump_generic_node): Adjust.
9489         * tree-vect-generic.c (uniform_vector_p, vector_element,
9490         lower_vec_perm): Adjust.
9491         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
9492         * tree-vect-slp.c (vect_get_constant_vectors,
9493         vect_transform_slp_perm_load): Adjust.
9494         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
9495         * expmed.c (make_tree): Adjust.
9496         * config/i386/i386.c (ix86_expand_builtin): Adjust.
9497         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
9498         and implementation.
9499         (sparc_fold_builtin): Adjust.
9501 2012-03-16  Tristan Gingold  <gingold@adacore.com>
9503         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
9504         * config/vms/vms-stdint.h: New file.
9506 2012-03-16  Tristan Gingold  <gingold@adacore.com>
9508         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
9509         (ia64-hp-*vms*): Replaced by ...
9510         (*-*-*vms*): ... This new entry.
9512 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
9514         PR target/52568
9515         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
9516         (ix86_expand_vec_perm_const_1): Use it.
9518         PR target/52568
9519         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
9520         (avx2_permv4df): Remove.
9521         (avx2_permv4di): Macroize into...
9522         (avx2_perm<mode>): ... this using VI8F_256 iterator.
9523         (avx2_permv4di_1): Macroize into...
9524         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
9526 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
9528         * combine.c (apply_distributive_law): Do not distribute SUBREG.
9530 2012-03-15  Ira Rosen  <irar@il.ibm.com>
9531             Ulrich Weigand  <ulrich.weigand@linaro.org>
9533         * tree-vect-patterns.c (widened_name_p): Rename to ...
9534         (type_conversion_p): ... this.  Add new argument to determine
9535         if it's a promotion or demotion operation.  Check for
9536         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
9537         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
9538         widened_name_p.
9539         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
9540         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
9541         Likewise.
9542         (vect_recog_mixed_size_cond_pattern): Likewise and allow
9543         non-constant then and else clauses.
9545 2012-03-15  Ira Rosen  <irar@il.ibm.com>
9546             Ulrich Weigand  <ulrich.weigand@linaro.org>
9548         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
9549         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
9550         vect_pattern_recog.
9551         * tree-vect-patterns.c (widened_name_p): Pass basic block
9552         info to vect_is_simple_use.
9553         (vect_recog_dot_prod_pattern): Fail for basic blocks.
9554         (vect_recog_widen_sum_pattern): Likewise.
9555         (vect_handle_widen_op_by_const): Support basic blocks.
9556         (vect_operation_fits_smaller_type,
9557         vect_recog_over_widening_pattern): Likewise.
9558         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
9559         Update call to vect_is_simple_use.
9560         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
9561         Add printing.
9562         (check_bool_pattern): Add an argument, update call to
9563         vect_is_simple_use and the recursive calls.
9564         (vect_recog_bool_pattern): Update relevant function calls.
9565         Add printing.
9566         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
9567         (vect_pattern_recog_1): Check for reduction only in loops.
9568         (vect_pattern_recog): Add new argument.  Support basic blocks.
9569         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
9570         info to vect_is_simple_use_1.
9571         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
9572         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
9574 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
9575             Andrew Pinski  <apinski@cavium.com>
9577         PR middle-end/52592
9578         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
9579         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
9580         calls instead of __builtin_ir{int,ound}*.
9582 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9584         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
9585         documentation.
9587 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9589         * config.gcc (target_type_format_char): New. Document it. Set it for
9590         arm*-*-* .
9591         * configure.ac (gnu_unique_option): Use target_type_format_char
9592         in test.  Comment rationale.
9593         * configure: Regenerate .
9595 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
9597         PR tree-optimization/52267
9598         * tree-vrp.c (masked_increment): New function.
9599         (register_edge_assert_for_2): Derive ASSERT_EXPRs
9600         from (X & CST1) cmp CST2 tests.
9602 2012-03-15  Richard Guenther  <rguenther@suse.de>
9604         PR middle-end/52580
9605         * tree-data-ref.c (subscript_dependence_tester_1): Check
9606         all dimensions for non-conflicting access functions.
9608 2012-03-15  Manuel LĂ³pez-IbĂ¡Ă±ez  <manu@gcc.gnu.org>
9610         PR c++/44783
9611         * doc/invoke.texi [C++ Language Options]: Document
9612         -ftemplate-backtrace-limit.
9614 2012-03-15  Tristan Gingold  <gingold@adacore.com>
9616         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
9617         before a parameter.
9619 2012-03-15  Tristan Gingold  <gingold@adacore.com>
9621         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
9622         use DW_OP_call_frame_cfa.
9624 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
9626         PR target/50797
9627         * config/i386/i386-opts.h (pmode): New.
9629         * config/i386/i386.c (ix86_option_override_internal): Properly
9630         check and set ix86_pmode.
9632         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
9634         * config/i386/i386.opt (maddress-mode=): New.
9636         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
9638 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9640         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
9641         (dwarf2out_do_cfi_asm): Likewise.
9642         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
9643         handling.
9644         (add_data_member_location_attribute): Likewise.
9645         (gen_array_type_die): Likewise.
9646         (gen_subprogram_die): Likewise.
9647         (gen_producer_string): Likewise.
9648         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
9649         Remove MIPS_DEBUGGING_INFO handling.
9650         (sdb_debug_hooks): Likewise.
9651         (sdbout_begin_block): Likewise.
9652         (sdbout_end_block): Likewise.
9653         (sdbout_begin_prologue): Likewise.
9654         (sdbout_start_source_file): Likewise.
9655         (sdbout_end_source_file): Likewise.
9656         (sdbout_init): Likewise.
9657         * system.h (MIPS_DEBUGGING_INFO): Poison.
9659 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9661         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
9662         (alpha_file_start) [MS_STAMP]: Remove.
9664         * config/alpha/elf.h (TARGET_GAS): Remove.
9665         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
9666         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
9667         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
9668         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
9669         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
9670         (alpha*-*-freebsd*): Likewise.
9671         (alpha*-*-netbsd*): Likewise.
9672         (alpha*-*-openbsd*): Likewise.
9673         (alpha*-*-*): Remove target_cpu_default2.
9674         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
9675         handling.
9676         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
9677         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
9678         * config/alpha/alpha.c (print_operand): Always assume
9679         TARGET_AS_SLASH_BEFORE_SUFFIX.
9680         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
9681         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
9682         ("*builtin_setjmp_receiver_er_1"): Remove.
9683         * config/alpha/alpha.opt (malpha-as): Remove.
9684         (mgas): Ignore.
9685         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
9686         -malpha-as, -mgas.
9687         Remove DEC Unix reference.
9689         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
9690         (EXTENDED_COFF): Remove.
9691         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
9692         (EXTENDED_COFF): Don't undef.
9693         * config/alpha/alpha.c (alpha_file_start): Always assume
9694         OBJECT_FORMAT_ELF.
9695         Don't set targetm.asm_file_start_file_directive.
9696         [!OBJECT_FORMAT_ELF]: Remove.
9697         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9699         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
9700         (DBX_DEBUGGING_INFO): Remove.
9701         (MIPS_DEBUGGING_INFO): Remove.
9702         (PREFERRED_DEBUGGING_TYPE): Remove.
9703         (DBX_OUTPUT_SOURCE_LINE): Remove.
9704         (SDB_OUTPUT_SOURCE_LINE): Remove.
9705         (DBX_CONTIN_LENGTH): Remove.
9706         (NO_DBX_FUNCTION_END): Remove.
9707         (ASM_STABS_OP): Remove.
9708         (ASM_STABN_OP): Remove.
9709         (ASM_STABD_OP): Remove.
9710         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
9711         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
9712         (PUT_SDB_DEF): Remove.
9713         (PUT_SDB_PLAIN_DEF): Remove.
9714         (PUT_SDB_TYPE): Remove.
9715         (sdb_label_count): Remove.
9716         (PUT_SDB_BLOCK_START): Remove.
9717         (PUT_SDB_BLOCK_END): Remove.
9718         (PUT_SDB_FUNCTION_START): Remove.
9719         (PUT_SDB_FUNCTION_END): Remove.
9720         (PUT_SDB_EPILOGUE_END): Remove.
9721         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
9722         (MIPS_DEBUGGING_INFO): Don't undef.
9723         (DBX_DEBUGGING_INFO): Don't undef.
9724         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
9725         (MIPS_DEBUGGING_INFO): Don't undef.
9726         (DBX_DEBUGGING_INFO): Don't undef.
9727         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
9728         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
9729         handling.
9730         (alpha_start_function): Likewise.
9731         (sdb_label_count): Remove.
9732         (alpha_output_filename): Remove DBX_DEBUG handling.
9733         (alpha_file_start): Likewise.
9735 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9737         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
9738         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
9739         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
9740         Solaris 8 support.
9741         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
9742         (ld_tls_support): Remove Solaris 8 references.
9743         (lwp_dir, lwp_spec): Remove support for alternate thread library.
9744         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
9745         * configure: Regenerate.
9746         * config.in: Regenerate.
9748         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
9749         * config/i386/sol2.h: Remove Solaris 8 references.
9751         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
9752         (i?86-*-solaris2.9): ... this.
9753         Remove Solaris 8 references.
9754         (Specific, *-*-solaris2*): Document Solaris 8 removal.
9755         Remove Solaris 8 references.
9757 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9759         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
9760         (mips-sgi-irix6.5*): Remove.
9761         * config.host (mips-sgi-irix*): Remove.
9762         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
9763         (set_have_as_tls): Remove *-*-irix6*.
9764         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
9765         * configure: Regenerate.
9767         * config/mips/iris6.h: Remove.
9768         * config/mips/iris6.opt: Remove.
9769         * config/mips/t-irix6: Remove.
9771         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
9772         (TARGET_IRIX6): Remove.
9773         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
9774         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
9775         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
9776         handling.
9777         (mips_file_start): Likewise.
9778         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
9780         * config/mips/driver-native.c [__sgi__]: Remove.
9781         (host_detect_local_cpu) [__sgi__]: Remove.
9783         * config/mips/gnu-user.h: Remove iris5.h reference.
9785         * config/mips/mips-modes.def: Remove IRIX 6 reference.
9786         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
9787         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
9788         Remove.
9790         * gcc.c (main): Move asm_debug initialization ...
9791         (asm_debug): ... here.
9793         * ginclude/stddef.h (__STDDEF_H__): Don't define.
9795         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
9796         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
9797         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9798         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9799         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
9800         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
9801         Remove.
9802         * doc/tm.texi: Regenerate.
9804         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
9805         IRIX 6 reference.
9806         (MIPS Options, -march): Remove IRIX reference.
9807         * doc/install.texi (Binaries, SGI IRIX): Remove.
9808         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
9809         of section.
9810         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
9812 2012-03-14  Martin Jambor  <mjambor@suse.cz>
9814         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
9815         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
9816         (expand_expr_real_1): Do not handle misalignment if modifier is
9817         EXPAND_WRITE.
9819 2012-03-14  Richard Guenther  <rguenther@suse.de>
9821         PR middle-end/52584
9822         * tree-vect-generic.c (type_for_widest_vector_mode): Take
9823         element type instead of mode, use build_vector_type_for_mode
9824         instead of the langhook, build a vector of proper signedness.
9825         (expand_vector_operations_1): Adjust.
9827 2012-03-14  Richard Guenther  <rguenther@suse.de>
9829         PR middle-end/52582
9830         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
9831         a cgraph node for a FUNCTION_DECL that comes from a constructor.
9832         (gimple_get_virt_method_for_binfo): Likewise.
9834 2012-03-14  Richard Guenther  <rguenther@suse.de>
9836         PR tree-optimization/52571
9837         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9838         flag_section_anchors check ...
9839         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
9840         DECL_COMMON variables.
9842 2012-03-14  Richard Guenther  <rguenther@suse.de>
9844         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
9845         * stor-layout.c (start_bitfield_representative): New function.
9846         (finish_bitfield_representative): Likewise.
9847         (finish_bitfield_layout): Likewise.
9848         (finish_record_layout): Call finish_bitfield_layout.
9849         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
9850         for QUAL_UNION_TYPE fields.
9851         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
9852         Stream DECL_BIT_FIELD_REPRESENTATIVE.
9853         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
9855         PR middle-end/52080
9856         PR middle-end/52097
9857         PR middle-end/48124
9858         * expr.c (get_bit_range): Unconditionally extract bitrange
9859         from DECL_BIT_FIELD_REPRESENTATIVE.
9860         (expand_assignment): Adjust call to get_bit_range.
9862 2012-03-14  Richard Guenther  <rguenther@suse.de>
9864         PR middle-end/52578
9865         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
9866         the outermost conversion is a sign-change only.
9867         (fold_binary_loc): Disregard widening and sign-changing
9868         conversions when we determine if two variables are equal
9869         for reassociation.
9870         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
9871         (T1)x if the outermost conversion is a sign-change only.
9873 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
9875         Revert:
9876         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
9878         * config/i386/predicates.md (constant_call_address_operand): Declare
9879         as special predicate.  Update all uses.
9881 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
9883         PR c/52577
9884         * c-parser.c (c_parser_postfix_expression)
9885         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
9887         * config/i386/smmintrin.h: Avoid /* within a comment.
9888         * config/i386/nmmintrin.h: Likewise.
9890 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9892         * config/i386/i386.md (xbegin): Remove constraint from expander.
9894 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9896         * config/i386/predicates.md (constant_call_address_operand): Declare
9897         as special predicate.  Update all uses.
9898         * config/i386/i386.md: Remove mode from constant_call_address_operand
9899         predicates.
9900         * config/i386/i386.c (ix86_output_call_insn): Call
9901         constant_call_address_operand with VOIDmode.
9903 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9905         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
9906         AND zero extended address correctly.
9908 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9910         * config/i386/predicates.md (tls_symbolic_operand): Declare as
9911         special predicate.
9912         (tls_modbase_operand): Ditto.
9913         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
9914         tls_modbase_operand predicates.
9916 2012-03-13  Martin Jambor  <mjambor@suse.cz>
9918         * expr.c (expand_assignment): Handle misaligned scalar writes to
9919         memory through top-level MEM_REFs by calling store_bit_field.
9921 2012-03-13  Richard Guenther  <rguenther@suse.de>
9923         PR middle-end/52134
9924         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
9925         if Y is a constant multiple of 1 << CST.
9927 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
9929         PR target/52488
9930         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
9931         offset (size) to a value the insns can deal with.
9932         (expand_epilogue): Ditto.
9934 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9936         * config/arm/neon.ml (ops): Fixup expected instructions for
9937         unsigned vector compares.
9939 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9941         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
9942         addresses only when %reg is not in word mode.
9944 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9946         * config/microblaze/microblaze.md: Fix typo.
9947         * tree-if-conv.c: Likewise.
9948         * tree-vect-patterns.c: Likewise.
9950 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9952         * config.gcc (extra_passes): Remove.
9953         * configure.ac (extra_passes): Don't substitute.
9954         * configure: Regenerate.
9955         * Makefile.in (EXTRA_PASSES): Remove.
9956         (GCC_PASSES): Remove $(EXTRA_PASSES).
9957         (MOSTLYCLEANFILES): Likewise.
9958         (native): Likewise.
9959         (install-common): Likewise.
9961 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
9963         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9964         * config/i386/i386.c (ix86_decompose_address): Use
9965         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9966         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9967         thread pointer to a register.
9969 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
9971         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
9972         on tls_symbolic_operand.
9973         (tls_global_dynamic_64_<mode>): Likewise.
9975 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
9977         PR other/52545
9978         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
9979         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
9981 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
9983         PR target/52499
9984         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
9985         type from reg_class_t to enum reg_class.
9986         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
9988 2012-03-12  Andrew Pinski  <apinski@cavium.com>
9990         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
9991         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
9992         (value_replacement): Likewise.
9993         (empty_block_p): Check also if the PHIs for the block are empty.
9995 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
9997         PR target/52148
9998         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
9999         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
10000         r184615 from 2012-02-28.
10002 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
10004         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
10005         (ix86_gen_tls_local_dynamic_base_64): Likewise.
10006         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
10007         and ix86_gen_tls_local_dynamic_base_64.
10008         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
10009         ix86_gen_tls_local_dynamic_base_64.
10011         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
10012         (*tls_global_dynamic_64_<mode>): This.
10013         (tls_global_dynamic_64): Renamed to ...
10014         (tls_global_dynamic_64_<mode>): This.
10015         (*tls_local_dynamic_base_64): Renamed to ...
10016         (*tls_local_dynamic_base_64_<mode>): This.
10017         (tls_local_dynamic_base_64): Renamed to ...
10018         (tls_local_dynamic_base_64_<mode>): This.
10020 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
10022         * config/i386/i386.c (ix86_option_override_internal): Properly
10023         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
10024         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
10025         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
10026         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10028         * config/i386/sse.md (sse3_monitor64): Renamed to ...
10029         (sse3_monitor64_<mode>): This.
10031 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10033         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
10034         (ia64_function_arg_advance): Ditto.
10036 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10038         * config.gcc (mips*-*-openbsd*): Remove.
10039         * config/mips/openbsd.h: Remove.
10040         * config/mips/sdb.h: Remove.
10042         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
10043         * config/mips/mips.c (sdb_label_count): Remove.
10044         (mips_debugger_offset): Remove #if 0 code.
10045         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
10046         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
10048 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10050         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
10051         binutils reference.
10052         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
10053         Update binutils references.
10054         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
10055         Update binutils reference.
10056         Update Sun as/GNU ld caveat.
10057         Document binutils largefile requirement for LTO plugin.
10058         Remove reference to alternate libpthread.
10060 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10062         * config.gcc (alpha*-dec-osf5.1*): Remove.
10063         * config.host (alpha*-dec-osf*): Remove.
10064         * configure.ac (*-*-osf*): Remove.
10065         (alpha*-dec-osf*): Remove.
10066         * configure: Regenerate.
10068         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
10069         config/alpha/va_list.h, config/alpha/x-osf: Remove.
10071         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
10072         * config/alpha/alpha.c (struct machine_function): Update comment.
10073         (alpha_start_function): Remove Tru64 UNIX as handling for
10074         max_frame_size.
10075         * config/alpha/alpha.md ("exception_receiver"): Remove
10076         TARGET_LD_BUGGY_LDGP.
10077         ("*exception_receiver_2"): Likewise.
10078         * except.c (finish_eh_generation): Remove Tru64 reference.
10079         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
10080         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
10081         * target.def (handle_pragma_extern_prefix): Remove.
10083         * Makefile.in (mips-tfile.o-warn): Remove.
10084         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
10085         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
10086         * mips-tdump.c, mips-tfile.c: Remove.
10088         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
10089         extern_prefix.
10090         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
10091         (Specific, alpha*-dec-osf5.1): Note removal.
10092         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
10093         Remove.
10094         * doc/tm.texi: Regenerate.
10095         * doc/trouble.texi (Cross-Compiler Problems): Remove.
10097 2012-03-12  Richard Guenther  <rguenther@suse.de>
10099         * config/arm/arm.c (neon_dereference_pointer): Do not call
10100         covert during RTL expansion.
10102 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10104         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
10105         Options.  Mention -mpointer-size.
10107 2012-03-12  Richard Guenther  <rguenther@suse.de>
10109         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
10110         build_nonstandard_integer_type.
10112 2012-03-12  Richard Guenther  <rguenther@suse.de>
10114         * tree.c (signed_or_unsigned_type_for): Use
10115         build_nonstandard_integer_type.
10116         (signed_type_for): Adjust documentation.
10117         (unsigned_type_for): Likewise.
10118         * tree-pretty-print.c (dump_generic_node): Use standard names
10119         for non-standard integer types if available.
10121 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10123         * config/vms/vms.opt: Add vms-opts.h header.
10124         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
10125         target mask.
10126         (-mvms-return-codes): Document.
10127         (-mpointer-size): New option.
10128         (vms_pointer_size): Add enumeration.
10129         * config/vms/vms-opts.h: New file.
10130         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
10131         __INITIAL_POINTER_SIZE.
10132         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
10133         (C_COMMON_OVERRIDE_OPTIONS): Define.
10134         (DWARF2_ADDR_SIZE): Define.
10135         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
10136         * config/vms/vms-protos.h (vms_c_common_override_options):
10137         New prototype.
10138         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
10139         if -mno-pointer-size.
10140         (vms_c_common_override_options): New function.
10141         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10142         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10143         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
10144         and flag_vms_pointer_size.
10145         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
10146         * config.gcc (*-*-*vms*): Define xm_file.
10147         (alpha*-dec-*vms*): Do not define xm_file.
10148         (alpha64-dec-*vms*): Remove.
10149         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
10150         and tmake_file.
10152 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
10154         PR tree-optimization/51721
10155         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
10156         if (int) unsvar cmp CST.
10158 2012-03-12  Richard Guenther  <rguenther@suse.de>
10160         * tree-sra.c (create_access_replacement): Only rename the replacement
10161         if we can rewrite it into SSA form.  Properly mark register typed
10162         replacements that we cannot rewrite with TREE_ADDRESSABLE.
10163         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
10164         for aggregate or BLKmode results.
10166 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
10168         PR tree-optimization/52533
10169         * tree-vrp.c (register_edge_assert_for_2): Use double_int
10170         type for mask, only handle shifts by non-zero in-range
10171         shift count, for LE_EXPR and GT_EXPR if new_val is
10172         maximum, don't add the assertion.
10174 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
10176         * doc/invoke.texi: Document -mrtm option.
10177         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
10178         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
10179         (ix86_handle_option): Handle OPT_mrtm.
10180         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
10181         xtestintrin.h.
10182         (x86_64-*-*): Ditto.
10183         * i386-builtin-types.def (INT_FTYPE_VOID): New.
10184         * config/i386/i386-c.c (ix86_target_macros_internal): Define
10185         __RTM__ if needed.
10186         (ix86_target_string): Define -mrtm option.
10187         (PTA_RTM): New.
10188         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
10189         Handle new option.
10190         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
10191         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
10192         IX86_BUILTIN_XTEST.
10193         (bdesc_special_args): Ditto.
10194         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
10195         (ix86_expand_special_args_builtin): Handle new built-in type.
10196         (ix86_expand_builtin): Handle XABORT instruction.
10197         * config/i386/i386.h (TARGET_RTM): New.
10198         * config/i386/i386.md (UNSPECV_XBEGIN): New.
10199         (UNSPECV_XEND): Ditto.
10200         (UNSPECV_XABORT): Ditto.
10201         (UNSPECV_XTEST): Ditto.
10202         (xbegin): Ditto.
10203         (xbegin_1): Ditto.
10204         (xend): Ditto.
10205         (xabort): Ditto
10206         (xtest): Ditto.
10207         (xtest_1): Ditto.
10208         * config/i386/i386.opt (mrtm): New.
10209         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
10210         * config/i386/rtmintrin.h: New header.
10211         * config/i386/xtestintrin.h: Ditto.
10213 2012-03-12  Tristan Gingold  <gingold@adacore.com>
10215         * ginclude/stddef.h: Adjust previous patch.
10216         Use __VMS__ instead of VMS.
10218 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
10220         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
10221         Also convert sequences with CC setting arithmetic instruction.
10223 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
10225         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
10226         from C Language Options to Preprocessor Options.
10227         (C Dialect Options): Move -no-integrated-cpp documentation
10228         from here...
10229         (Preprocessor Options): ...to here.  Rewrite the description
10230         so it makes more sense, and remove discussion of merging front ends.
10232 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10234         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
10235         needed for loop.
10236         (ix86_expand_setmem): Likewise.
10238 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
10240         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
10241         convert_to_mode.
10243 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10245         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
10246         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
10248 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10250         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
10252 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10254         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
10255         TARGET_64BIT.
10257 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
10258             Uros Bizjak  <ubizjak@gmail.com>
10260         * config/i386/predicates.md (call_insn_operand): Allow
10261         constant_call_address_operand in Pmode only.
10262         (sibcall_insn_operand): Ditto.
10263         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
10264         (*call_vzeroupper): Ditto.
10265         (*sibcall): Ditto.
10266         (*sibcall_vzeroupper): Ditto.
10267         (*call_value): Ditto.
10268         (*call_value_vzeroupper): Ditto.
10269         (*sibcall_value): Ditto.
10270         (*sibcall_value_vzeroupper): Ditto.
10271         (*indirect_jump): Ditto.
10272         (*tablejump_1): Ditto.
10273         (indirect_jump): Convert memory address to word mode for TARGET_X32.
10274         (tablejump): Ditto.
10275         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
10276         to word mode.
10278 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
10280         PR target/51244
10281         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
10282         Use movrt_negc instead of negc pattern for non-SH2A.
10283         (*movnegt): Remove.
10284         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
10286 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10288         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
10289         if Pmode != word_mode.
10290         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
10291         Pmode == SImode for TARGET_X32.
10293         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
10294         (tls_initial_exec_x32): Likewise.
10296 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
10298         PR rtl-optimization/52528
10299         * combine.c (can_combine_p): Add setting of subst_low_luid
10300         before call to expand_field_assignment().
10302 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
10304         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
10305         and related program names.
10307 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
10309         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
10311 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
10313         PR target/52530
10314         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
10315         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
10316         to set code to 'q'.
10317         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
10318         (*movdi_internal_rex64): Use %E operand modifier for lea.
10319         (*movsi_internal): Ditto.
10320         (*lea_1): Ditto.
10321         (*lea<mode>_2): Ditto.
10322         (*lea_{3,4,5,6}_zext): Ditto.
10323         (*tls_global_dynamic_32_gnu): Ditto.
10324         (*tls_global_dynamic_64): Ditto.
10325         (*tls_dynamic_gnu2_lea_32): Ditto.
10326         (*tls_dynamic_gnu2_lea_64): Ditto.
10327         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
10329 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
10331         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
10332         redefine to be NULL if the current bit-size is different from the
10333         configured bit-size.
10335         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
10336         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
10337         set the default tuning.  Add asserts to make sure the cpu and tune
10338         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
10339         test whether the index is set, instead of > 0.
10340         (rs6000_file_start): Do not reset the default cpu if the current
10341         bit-size is different from the configured bit-size.
10343 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10345         * config/vms/vms-crtlmap.map: Add comments.
10346         Add entries needed to build Ada RTS.
10348 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10350         * ginclude/stddef.h: Do not define __size_t on VMS.
10352 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10354         * c-tree.h (c_default_pointer_mode): New variable.
10355         * c-decl.c (c_default_pointer_mode): New variable.
10356         (c_build_pointer_type): New function.
10357         (grokdeclarator): Call c_build_pointer_type instead
10358         of build_pointer_type.
10360         * config/vms/vms-c.c: Include c-tree.h
10361         (saved_pointer_mode): New variable.
10362         (handle_pragma_pointer_size): New function.
10363         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
10364         (vms_c_register_pragma): Register __pointer_size and
10365         __required_pointer_size pragmas.
10367 2012-03-09  Tristan Gingold  <gingold@adacore.com>
10369         * config/vms/vms-c.c (vms_construct_include_filename): New function.
10370         (vms_c_register_includes): Reference it.
10372 2012-03-09  Andrew Pinski  <apinski@cavium.com>
10374         PR middle-end/51988
10375         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
10376         print_generic_expr.
10377         (tree_ssa_phiopt_worker): Go through all the PHIs for
10378         value_replacement instead of just the singleton one.
10379         (value_replacement): Change return type to int.  Return 0 instead of
10380         false.
10381         Allow the middle basic block to contain more than just the defining
10382         statement.
10383         Handle non empty middle basic blocks.
10384         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
10386 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
10388         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
10389         array reference and component reference.
10390         (analyze_scalar_evolution_for_address_of): New.
10392 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
10394         PR target/49862
10395         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
10396         (hwloop_pattern_reg): Fix set but not used warning.
10397         (bfin_reorg_loops): Remove unused parameter.
10398         (bfin_reorg): Update use of bfin_reorg_loops.
10400 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10402         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
10403         with integer parameters in registers.
10404         (gen_push): Push register in word_mode instead of Pmode.
10405         (ix86_emit_save_regs): Likewise.
10406         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
10407         (gen_pop): Pop register in word_mode instead of Pmode.
10408         (ix86_emit_restore_regs_using_pop): Likewise.
10409         (ix86_expand_prologue): Replace Pmode with word_mode for push
10410         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
10411         restore RAX and R10 in word_mode.
10412         (ix86_emit_restore_regs_using_mov): Restore integer registers
10413         in word_mode.
10414         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
10415         word_mode.
10416         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
10417         (ix86_split_long_move): Likewise.
10419         * config/i386/i386.md (W): New.
10420         (*push<mode>2_prologue): Replace :P with :W.
10421         (*pop<mode>1): Likewise.
10422         (*pop<mode>1_epilogue): Likewise.
10423         (push/pop peephole2): Use word_mode scratch registers.
10425 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
10427         * config/i386/predicates.md (indirect_branch_operand): Simplify.
10429 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
10431         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
10432         for constants in [-63,63].
10434 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
10436         PR target/52530
10437         Revert:
10438         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10440         * config/i386/i386.c (ix86_print_operand_address): Only handle
10441         zero-extended DImode addresses.
10443 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10445         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
10446         * configure: Regenerate.
10448 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
10450         PR target/52496
10451         * config/avr/avr.c (avr_mem_clobber): New static function.
10452         (avr_expand_delay_cycles): Add memory clobber operand to
10453         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
10454         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
10455         (enable_interrupt, disable_interrupt): New expander.
10456         (nopv, sleep, wdr): New expanders.
10457         (delay_cycles_1): Add memory clobber.
10458         (delay_cycles_2): Add memory clobber.
10459         (delay_cycles_3): Add memory clobber.
10460         (delay_cycles_4): Add memory clobber.
10461         (cli_sei): New insn from former "enable_interrupt",
10462         "disable_interrupt" with memory clobber.
10463         (*wdt): New insn from former "wdt" with memory clobber.
10464         (*nopv): Similar, but for "nopv".
10465         (*sleep): Similar, but for "sleep".
10467 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
10468             Kaz Kojima  <kkojima@gcc.gnu.org>
10470         PR target/52503
10471         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
10472         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
10473         (SUBTARGET_OVERRIDE_OPTIONS): Define.
10475 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
10477         * config/i386/predicates.md (x86_64_zext_general_operand): New.
10478         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
10479         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
10481 2012-03-07  Walter Lee  <walt@tilera.com>
10483         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
10484         REG_CFA_* notes for the stack pointer.
10485         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
10486         EH_RETURN_STACKADJ_RTX.
10487         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
10488         generate REG_CFA_* notes for the stack pointer.
10489         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
10490         by EH_RETURN_STACKADJ_RTX.
10492 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10494         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
10495         when __AVR_3_BYTE_PC__ is defined.
10497 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
10499         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
10500         (ix86_print_operand): Handle '^'.
10501         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
10502         using P mode iterator.  Add %^ to asm template to conditionally emit
10503         addr32 prefix.
10504         (*rep_movdi_rex64): Ditto.
10505         (*strsetdi_rex_1): Ditto.
10506         (*rep_stosdi_rex64): Ditto.
10507         (*strmov{si,hi,qi}_1): Add %^ to asm template to
10508         conditionally emit addr32 prefix.
10509         (*rep_mov{si,qi}): Ditto.
10510         (*strset{si,hi,qi}): Ditto.
10511         (*rep_stos{si,qi}): Ditto.
10512         (*cmpstrnqi_nz_1): Ditto.
10513         (*cmpstrnqi_1): Ditto.
10514         (*strlenqi_1): Ditto.
10516 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
10518         * config/i386/i386.c (function_value_64): Return pointers in
10519         word_mode instead of Pmode.
10520         (ix86_promote_function_mode): Likewise.
10522 2012-03-07  Richard Guenther  <rguenther@suse.de>
10524         * coverage.c (get_gcov_type): Use type_for_mode.
10525         (get_gcov_unsigned_t): Likewise.
10526         * expr.c (store_constructor): Use type_for_mode.
10527         (try_casesi): Likewise.
10528         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
10529         (add_standard_iv_candidates): Use standard type trees.
10530         * dojump.c (do_jump): Remove dead code.
10532 2012-03-07  Richard Guenther  <rguenther@suse.de>
10534         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
10536 2012-03-07  Richard Guenther  <rguenther@suse.de>
10538         * convert.c (strip_float_extensions): Move ...
10539         * tree.c (strip_float_extensions): ... here.
10541 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10543         PR target/52484
10544         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
10546 2012-03-07  Richard Guenther  <rguenther@suse.de>
10548         * omp-low.c (extract_omp_for_data): Use signed_type_for.
10549         (expand_omp_for_generic): Likewise.
10550         (expand_omp_for_static_nochunk): Likewise.
10551         (expand_omp_for_static_chunk): Likewise.
10552         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
10553         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10554         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10555         Use unsigned_type_for.
10556         (vect_create_cond_for_align_checks): Use signed_type_for.
10558 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
10560         PR rtl-optimization/52203
10561         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
10562         all callers to pass NULL except ...
10563         (reset_sched_cycles_in_current_ebb): ... here, save the value
10564         in new variable 'empty'.  Increase issue_rate only for
10565         non-empty insns.
10567 2012-03-07  Ralf CorsĂ©pius  <ralf.corsepius@rtems.org>
10569         PR target/51417
10570         * Makefile.in: Let install-gcc-ar depend on installdirs,
10571         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
10572         Don't double canonicalize if cross-compiling.
10574 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10576         PR target/52506
10577         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
10578         to: RAMPZ, RAMPY, RAMPX, RAMPD.
10579         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
10581 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10583         PR target/52505
10584         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
10585         from RAM.
10586         * config/avr/avr.md (xload_8): Adjust insn length.
10588 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
10590         PR target/52461
10591         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
10592         if RAMPZ affects reading from RAM.
10594 2012-03-07  Richard Guenther  <rguenther@suse.de>
10596         PR pch/52518
10597         PR pch/38987
10598         * doc/invoke.texi (Precompiled Headers): Remove sentence that
10599         suggests you can include PCHs from inside another header.
10601 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
10603         PR middle-end/52515
10604         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
10606 2012-03-07  Kai Tietz  <ktietz@redhat.com>
10608         * doc/invoke.texi (fwritable-relocated-rdata): Document
10609         new Cygwin/MinGW target option.
10610         * config/i386/winnt.c (i386_pe_unique_section): Ignore
10611         reloc if flag -fwritable-relocated-rdata is not set.
10612         (i386_pe_section_type_flags): Likewise.
10613         * config/i386/cygming.opt (fwritable-relocated-rdata):
10614         Add new flag variable flag_writable_rel_rdata.
10616 2012-03-07  Richard Guenther  <rguenther@suse.de>
10618         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
10619         precision against gimple constraints.
10621 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
10623         PR middle-end/52372
10624         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
10625         variables.
10626         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
10627         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
10628         variables.
10629         (init_emit_regs): Move associated initialization to...
10630         (init_emit_once): ...here.
10632 2012-03-06  Richard Henderson  <rth@redhat.com>
10634         * config/m68k/m68k.h (ISA_HAS_TAS): New.
10635         * config/m68k/sync.md (atomic_test_and_set): Use it.
10636         (atomic_test_and_set_1): Likewise.
10638 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10640         PR target/50310
10641         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
10642         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
10643         (vector_ltgt<mode>): Likewise.
10644         (vector_ordered<mode>): Likewise.
10645         (vector_unordered<mode>): Likewise.
10646         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
10648 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
10650         * trans-mem.c: New typedef for tm_region_p.
10651         Define vector types for tm_region_p.
10652         (tm_region_init): Replace region_worklist to a vector called
10653         bb_regions.
10655 2012-03-06  Richard Guenther  <rguenther@suse.de>
10657         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
10658         MEM_REF with constant pointer operand.
10660 2012-03-06  Richard Guenther  <rguenther@suse.de>
10662         PR middle-end/52493
10663         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
10665 2012-03-06  Tristan Gingold  <gingold@adacore.com>
10667         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
10668         (external_model_kind): Improve documentation.
10669         (vms_pragma_extern_model): Handle relaxed_redef.
10670         (vms_c_register_pragma): Allow expansion for nomember_alignment.
10672 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
10674         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
10675         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
10676         Some more notes on EIND usage and reorder EIND subsection.
10678 2012-03-06  Tristan Gingold  <gingold@adacore.com>
10680         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
10681         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
10683 2012-03-06  Tristan Gingold  <gingold@adacore.com>
10685         * config/vms/t-vmsnative (version): Define.
10686         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
10688 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
10690         PR rtl-optimization/52250
10691         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
10692         to put note list into.  Unconditionally call move_bb_info.
10693         (move_bb_info): Do not assert the blocks being in the same region,
10694         just drop the note list if they are not.
10696 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10698         PR target/51244
10699         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
10700         and use unified expansion logic.
10701         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
10702         closer to the existing movt insn.
10703         (negc): Rename insn to *negc.  Add new expander.
10704         (movnegt): Use xor pattern for T bit negation.  Reserve helper
10705         constant for negc pattern.
10706         (*movnegt): New insn and splitter.
10708 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
10710         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
10711         PLUS_EXPR.
10713 2012-03-05  Richard Henderson  <rth@redhat.com>
10715         * genemit.c (main): Include "target.h" in insn-emit.c.
10716         * Makefile.in (insn-emit.o): Depend on TARGET_H.
10717         * config/sh/sync.md (atomic_test_and_set): Reference
10718         targetm.atomic_test_and_set_trueval instead of
10719         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
10721 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
10723         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
10724         Make static.
10726 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10728         * langhooks.c (add_builtin_type): New function.
10729         * langhooks.h (add_builtin_type): Export it.
10730         * config/mep/mep.c (mep_init_builtins): Use it.
10731         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
10733 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
10735         PR debug/51902
10736         * tree.h (BLOCK_SAME_RANGE): Define.
10737         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
10738         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
10739         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
10740         isn't equal to supercontext fragment's fragment chain.
10741         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
10742         fragment origin.
10743         (blocks_nreverse_all): Likewise.
10744         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
10745         BLOCK_SUPERCONTEXT to supercontext fragment instead of
10746         supercontext fragment's fragment origin.
10747         * dwarf2out.c (add_high_low_attributes): If stmt has the same
10748         range as its parent (or parents thereof etc.), use the parent's
10749         DW_AT_ranges value instead of creating a new .debug_ranges range.
10751 2012-03-05  Richard Henderson  <rth@redhat.com>
10753         PR tree-opt/52242
10754         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
10755         * omp-low.c (expand_omp_atomic): Assume anything aligned to
10756         BIGGEST_ALIGNMENT is aligned.
10758 2012-03-05  Richard Henderson  <rth@redhat.com>
10760         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
10761         * config/sh/sh.c: ... here.
10763 2012-03-05  Richard Henderson  <rth@redhat.com>
10765         PR target/52481
10766         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
10767         instead of calling negqi2 directly.
10769 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
10771         PR middle-end/52463
10772         * trans-mem.c (tm_region_init): Use last_basic_block.
10774 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
10776         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
10777         * config/sh/sync.md (atomic_test_and_set): New expander.
10778         (tasb, atomic_test_and_set_soft): New insns.
10779         * config/sh/sh.opt (menable-tas): New option.
10780         * doc/invoke.texi (SH Options): Document it.
10782 2012-03-05  Richard Guenther  <rguenther@suse.de>
10784         * cfgloop.c (verify_loop_structure): Verify dominators before
10785         using them.
10786         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
10787         dominators from here.
10788         * graphite-scop-detection.c (create_sese_edges): Likewise.
10789         * loop-doloop.c (doloop_optimize_loops): Likewise.
10790         * loop-init.c (loop_optimizer_init): Likewise.
10791         * loop-unroll.c (unroll_and_peel_loops): Likewise.
10792         * loop-unswitch.c (unswitch_loops): Likewise.
10793         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10794         * tree-parloops.c (parallelize_loops): Likewise.  Verify
10795         only when checking is enabled.
10796         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
10798 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
10800         * genautomata.c (parse_automata_opt): New static function.
10801         (initiate_automaton_gen): Remove all option handling code.  Remove
10802         argc argument.  All callers changed.
10803         (main): Call init_rtx_reader_args_cb with the new function as argument.
10805 2012-03-05  Richard Guenther  <rguenther@suse.de>
10807         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
10808         * tree-if-conv.c (combine_blocks): Free post-dominator info
10809         after breaking it.
10810         * tree-parloops.c (create_parallel_loop): Free and re-compute
10811         dominator info after breaking it.
10813 2012-03-05  Richard Guenther  <rguenther@suse.de>
10815         PR middle-end/52353
10816         * optabs.h (trapv_unoptab_p): New function.
10817         (trapv_binoptab_p): Likewise.
10818         * optabs.c (expand_binop): Use emit_libcall_block_1 with
10819         a proper equiv_may_trap argument.
10820         (expand_unop): Likewise.
10821         (emit_libcall_block_1): Take extra argument whether the
10822         instruction may trap.  Renamed from ...
10823         (emit_libcall_block): ... this.  New wrapper.
10825 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
10827         PR tree-optimization/51721
10828         * tree-vrp.c (register_edge_assert_for_2): If comparing
10829         lhs of right shift by constant with an integer constant,
10830         add ASSERT_EXPRs for the rhs1 of the right shift.
10832         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
10834 2012-03-05  Richard Guenther  <rguenther@suse.de>
10836         * tree.c (integer_zerop): Handle VECTOR_CSTs.
10837         (integer_onep): Likewise.
10838         (integer_all_onesp): Likewise.
10840 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
10842         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
10844 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10846         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
10847         instead of TARGET_64BIT.
10849 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10851         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
10852         adjust_stack_insn.
10854 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10856         * config/i386/i386.c (ix86_print_operand_address): Only handle
10857         zero-extended DImode addresses.
10859 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
10861         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
10862         taken and cputaken as bool.
10864 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
10866         * config/i386/constraints.md (Ya): New internal constraint.
10867         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
10868         (*zero_extendsidi2_rex64): Add x,x alternative.
10869         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
10870         Remove flags reg clobber.  Adjust corresponding splits.
10871         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
10872         zero_extendqisi2 expanders using SWI12 mode iterator.
10873         (zero_extend<mode>si2_and): Macroize insn from
10874         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
10875         splitters.
10876         (*zero_extend<mode>si2):  Macroize insn from
10877         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
10878         (*zero_extend*2_movzbl_and): Remove insn patterns.
10879         (zero_extendqihi2_and): Merge corresponding splitter.
10880         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
10881         (*zero_extend*2_movzbl_and): Remove insn patterns.
10882         (*anddi_1): Split TYPE_IMOVX instructions.
10883         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
10884         (*andhi_1): Ditto.
10885         (and->zext splitter): Add splitter pattern.
10886         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
10888 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
10890         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
10891         x86-specific text.
10892         (Debugging Options): Likewise.
10893         (Optimize Options): Likewise.
10894         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
10895         with other architectures.  Use official processor names with correct
10896         spelling/capitalization.  Fix formatting and grammar issues.
10897         (i386 and x86-64 Windows Options): Similar cleanup here.
10899 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10901         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
10903 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10905         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
10906         DBX_REGISTER_NUMBER.
10908 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10910         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
10911         operand is CONST_INT.  Take COSTS_N_INSNS into account.
10912         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
10913         of shiftcosts.
10915 2012-03-02  Richard Henderson  <rth@redhat.com>
10917         * optabs.c (expand_atomic_test_and_set): Honor
10918         atomic_test_and_set_trueval even when atomic_test_and_set
10919         optab is not in use.
10921 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10923         PR target/48596
10924         PR target/48806
10925         * config/sh/sh.c (sh_register_move_cost): Increase cost between
10926         GENERAL_REGS and FP_REGS for SImode.
10928 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10930         PR target/49486
10931         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
10932         (absdi2): New expander.
10933         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
10935 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10937         * config/sh/sync.md (atomic_exchange<mode>): New expander.
10938         (atomic_exchange<mode>_soft): New insn.
10940 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10942         * config/sh/sync.md: Update copyright notice dates.
10943         (atomic_compare_and_swap<mode>): Use SImode for return value instead
10944         of QImode.
10945         (atomic_compare_and_swap<mode>_soft): Likewise.
10947 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
10949         PR target/31640
10950         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
10951         * config/sh/sh.c: Update copyright notice dates.
10952         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
10953         alignment for TARGET_HARD_SH4.
10954         (sh_option_override): Reduce default function alignment.  Set
10955         loop alignment to 4 bytes when not optimizing for size.
10957 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
10959         PR middle-end/50335
10960         * doc/invoke.texi (floop-flatten): Remove.
10961         * toplev.c (process_options): Remove references to flag_loop_flatten.
10962         * tree-ssa-loop.c (gate_graphite_transform): Same.
10963         * common.opt (floop-flatten): Obsolete.
10964         * graphite-poly.c (apply_poly_transforms): Remove reference to
10965         flag_loop_flatten.
10966         * Makefile.in (graphite-flattening.o): Remove.
10967         * graphite-flattening.c: Remove.
10969 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
10971         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
10972         having mode compatible with the mode of previous compare.  Substitute
10973         compare mode of previous compare with the mode, compatible
10974         with eliminated and previous compare.
10976 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
10978         * config/rs6000/dfp.md (floatdidd2): New define_insn.
10980 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
10982         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
10983         compatible with CCGOCmode and CCGCmode.
10985 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
10987         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
10989 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10991         * config/arm/arm.c (arm_sat_operator_match): New function.
10992         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
10993         * config/arm/arm.md ("insn" attribute): Add "sat" value.
10994         ("SAT", "SATrev"): New code iterators.
10995         ("SATlo", "SAThi"): New code iterator attributes.
10996         ("*satsi_<SAT:code>"): New pattern.
10997         ("*satsi_<SAT:code>_shift"): Likewise.
10998         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
10999         and "shift" attributes.
11000         ("arm_usatsihi"): Add "insn" attribute.
11001         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
11002         by powers of two.  Do not allow shift by 32.
11004 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
11006         PR target/46716
11007         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
11008         to pass the argument in the register of "natural" mode.
11010 2012-03-02  Richard Guenther  <rguenther@suse.de>
11012         PR tree-optimization/52406
11013         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
11014         (struct indices): Add unconstrained_base member.
11015         (struct dr_alias): Remove unused vops member.
11016         (DR_UNCONSTRAINED_BASE): New define.
11017         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
11018         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
11019         be an artificial access that covers the whole indexed object,
11020         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
11021         plain decl base-objects to their MEM_REF variant.
11022         (dr_may_alias_p): When the base-object of either data reference
11023         has unknown size use only points-to information.
11024         (compute_affine_dependence): Make dumps easier to read and
11025         more verbose.
11026         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
11027         DR_REF when looking for packed references.
11028         (vect_supportable_dr_alignment): Likewise.
11030 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
11032         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
11033         Improve conditions for peepholes of loads followed by commutative
11034         operators.
11035         * config/arm/ldmstm.md: Regenerated.
11037 2012-03-02  Richard Guenther  <rguenther@suse.de>
11039         * BASE-VER: Set to 4.8.0.
11041 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
11043         * config.gcc (obsolete): Add all ARM targets using the FPA.
11044         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
11045         * doc/install.texi: Avoid references to obsolete ARM ports.
11047 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11049         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
11051 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
11052             Joern Rennecke  <joern.rennecke@embecosm.com>
11054         * doc/extend.texi: Expand and update information on interrupt
11055         attribute for Epiphany.
11057 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
11059         * config/sh/sh-protos.h: Update copyright notice dates.
11060         * config/sh/sh.h: Likewise.
11061         * config/sh/sh.md: Likewise.
11062         * config/sh/constraints.md: Likewise.
11063         * config/sh/predicates.md: Likewise.
11065 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
11067         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
11068         * config/sh/sh.c (tertiary_reload_operand): Likewise.
11070 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
11072         * config/sh/constraints.md: Fix comment typo.
11074 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11076         PR target/52408
11077         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
11078         unsigned HOST_WIDE_INT.
11079         (zvdep_imm64): Likewise.
11080         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
11081         (vdepi_and): Likewise.
11082         Likewise for unamed 64-bit patterns.
11083         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
11085 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
11087         PR debug/52001
11088         PR rtl-optimization/52417
11089         * cselib.c (cselib_any_perm_equivs): New variable.
11090         (cselib_reset_table): Check that it's not set when not
11091         preserving constants.
11092         (cselib_add_permanent_equiv): Set it.
11093         (cselib_have_permanent_equivalences): New.
11094         (cselib_init, cselib_finish): Reset it.
11095         * cselib.h (cselib_have_permanent_equivalences): Declare.
11096         * alias.c (get_addr): Restore earlier behavior when there
11097         aren't permanent equivalences.
11099 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
11101         * config/mn10300/mn10300-modes.def: Fix copyright notice.
11102         * config/v850/v850-modes.def: Fix copyright notice.
11104 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
11106         * doc/extend.texi (AVR Built-in Functions): Document
11107         __builtin_avr_flash_segment.
11109         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
11110         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
11111         (*split.flash_segment): New insn-and-split.
11112         * config/avr/avr.c (avr_init_builtins): Add local variables:
11113         const_memx_void_node, const_memx_ptr_type_node,
11114         char_ftype_const_memx_ptr.
11116 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
11118         PR tree-optimization/52445
11119         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
11120         add ssa_name_ver, offset and size fields and change store field
11121         to bool.
11122         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
11123         (add_or_mark_expr): Likewise.  Only consider previous stores
11124         with the same size and offset.
11125         (nt_init_block): Only look at gimple_assign_single_p stmts,
11126         doesn't look at rhs2.
11128 2012-03-01  Richard Guenther  <rguenther@suse.de>
11130         PR middle-end/52443
11131         * tree-cfg.c (verify_gimple_assign_unary): Allow any
11132         conversions from integral types to pointer types.
11134 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
11136         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
11137         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
11138         unintentionally removed in r184616.
11140 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11142         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
11143         3DNow from bdver1.
11145 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
11146             Uros Bizjak  <ubizjak@gmail.com>
11148         PR target/52437
11149         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
11150         alternatives, add "e" constraint to the new last alternative
11151         and ! to last 3 alternatives.
11153 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11155         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
11156         DW_AT_artificial attributes at the end of the processing.
11157         (gen_array_type_die): Likewise.
11158         (gen_enumeration_type_die): Likewise.
11159         (gen_struct_or_union_type_die): Likewise.
11160         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
11161         the parent type.
11163 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
11165         PR middle-end/52419
11166         * expr.c (expand_assignment): If doing misaligned store that doesn't
11167         cover all mode bits, perform a RMW cycle.
11169         PR tree-optimization/52429
11170         * tree-parloops.c (separate_decls_in_region_debug): Return early
11171         if var is LABEL_DECL.
11173 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11175         PR tree-optimization/52424
11176         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
11177         calling dom_thread_across_edge.
11179 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11181         * config/avr/avr.c: Move definition of TARGET macros to end of file.
11183 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11185         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
11186         * config/avr/avr.c (avr_output_bld): Remove unused function.
11187         (avr_out_sbxx_branch): Use "%T" to print bit position.
11189 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11191         * config/avr/avr.md: Untabify.
11193 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11195         * config/avr/avr.md (eqne): New code iterator.
11196         (*dec-and-branchsi): Use it in text peephole's condition.
11197         (*dec-and-branchhi): Ditto.
11198         (*dec-and-branchqi): Ditto.
11200 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
11202         PR target/49939
11203         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
11204         the device does not have the skip-bug.
11206 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
11208         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
11209         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
11210         -mpretend-cmove): New.
11212 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
11214         PR bootstrap/52397
11215         * df.h (struct df_d): Adjust comment that hard_regs_live_count
11216         doesn't count DEBUG_INSN refs.
11217         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
11218         for DEBUG_INSN refs.
11220 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11222         Partially revert:
11224         2012-02-20  Richard Guenther  <rguenther@suse.de>
11225         PR tree-optimization/52298
11226         * tree-vect-stmts.c (vectorizable_load): Properly use
11227         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
11229 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
11231         PR middle-end/51752
11232         * gimple.h (gimple_in_transaction): New.
11233         (gimple_set_in_transaction): New.
11234         (struct gimple_statement_base): Add in_transaction field.
11235         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
11236         transaction loads.
11237         (tree_ssa_lim_initialize): Compute transaction bits.
11238         * tree.h (compute_transaction_bits): Protoize.
11239         * trans-mem.c (tm_region_init): Use the heap to store BB
11240         auxilliary data.
11241         (compute_transaction_bits): New.
11243 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11245         * gcc.c (display_help): Document --help=common and sort entries
11246         alphabetically.
11248 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11250         * doc/install.texi: Document check-$LANG specific shortcuts
11252 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11254         PR target/51534
11255         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
11256         and vcgtu.
11257         * config/arm/arm_neon.h: Regenerate.
11258         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
11259         (neon_vcgeu): New insn.
11260         (neon_vcgtu): Likewise.
11261         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
11262         (ops): Unsigned comparison intrinsics call a different builtin.
11264 2012-02-28  Richard Guenther  <rguenther@suse.de>
11266         PR target/52407
11267         * config/i386/i386.c (ix86_expand_vector_set): Fix element
11268         ordering for the VEC_CONCAT for two element vectors for
11269         V2SFmode, V2SImode and V2DImode.
11271 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
11273         PR target/49448
11274         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
11275         detecting big-endian triplets.
11277 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
11279         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
11280         mode if there is no type information available.
11282 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
11284         PR tree-optimization/53207
11285         * doc/invoke.texi: Document as experimental and relying on graphite.
11287 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11289         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
11290         of initializer to changes from r184614.
11292 2012-02-28  Richard Guenther  <rguenther@suse.de>
11294         PR tree-optimization/52395
11295         * tree-sra.c (build_ref_for_offset): Also look at the base
11296         TYPE_ALIGN when figuring out the alignment of the replacement.
11298 2012-02-28  Richard Guenther  <rguenther@suse.de>
11300         PR tree-optimization/52402
11301         * ipa-prop.c (ipa_modify_call_arguments): Properly use
11302         mis-aligned types when creating the accesses at the call site.
11304 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11306         * config/avr/builtins.def: New file.
11307         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
11308         * config/avr/avr.c (enum avr_builtin_id): Use it.
11309         (avr_init_builtins): Use it. And use avr_bdesc.
11310         (bdesc_1arg): Remove.
11311         (bdesc_2arg): Remove.
11312         (bdesc_3arg): Remove.
11313         (struct avr_builtin_description): Add field n_args.
11314         (avr_bdesc): New static variable using builtins.def.
11315         (avr_expand_builtin): Use it.
11316         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
11317         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
11318         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
11320 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11322         PR target/52148
11323         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
11324         match only one single hard register with respective hard reg rtx.
11325         (movmemx_<mode>): Ditto.
11326         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
11327         insn anatomy of movmem[x]_<mode>.
11328         (avr_out_movmem): Same for printing assembler and operand usage.
11330 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
11332         PR target/49868
11333         PR target/52261
11334         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
11335         address spaces located outside of device flash.
11337         * config/avr/avr.h (base_arch_s): Remove field n_segments.
11338         (mcu_type_s): Add field n_flash.
11339         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
11340         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
11341         (AVR_MCU): Add N_FLASH argument.
11342         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
11343         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
11344         macro __FLASH<n> if that address space makes sense for the device.
11345         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
11346         outside of target flash.
11347         (avr_asm_named_section): Ditto.
11348         (avr_asm_select_section): Ditto.
11349         (avr_addr_space_convert): Ditto.
11350         (avr_emit_movmemhi): Ditto.
11351         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
11352         address space is outside of device flash.
11353         (avr_insert_attributes): Ditto.
11354         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
11355         avr_current_arch->n_segments.
11357 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
11359         PR target/52352
11360         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
11361         (*movabs<mode>_2): Likewise.
11363 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
11365         PR target/52375
11366         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
11367         s_register_operand in the test instead of REG_P.  Don't call
11368         gen_reg_rtx if it won't be used.
11370         PR tree-optimization/52376
11371         * ipa-split.c (split_function): Ignore CLOBBER stmts.
11373 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
11375         * ifcvt.c (noce_get_condition): Check condition variable is not
11376         small_register_classes_for_mode_p before accepting.
11378 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
11380         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
11382 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11384         Revert:
11385         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11386         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
11387         tuning parameters.
11388         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
11390 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
11392         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
11394 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
11396         * config/sh/predicates.md: Remove blank lines.
11397         * config/sh/sh.c: Fix typos in comments.
11398         * config/sh/constraints.md: Likewise.
11399         * config/sh/sh.md: Remove blank lines.
11400         Fix typos in comments.  Use ;; as comment characters.
11402 2012-02-26  Walter Lee  <walt@tilera.com>
11404         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
11405         (replace_mov_pcrel_step2): Ditto.
11407 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
11409         PR debug/52001
11410         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
11411         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
11412         and locs that reference values newer than the non-canonical value
11413         at hand.  Return the canonical value as a worst case.
11414         (memrefs_conflict_p): Walk canonical value's locs.
11416         PR debug/52001
11417         * cselib.c (preserve_only_constants): Rename to...
11418         (preserve_constants_and_equivs): ... this.  Split out...
11419         (invariant_or_equiv_p): ... this.  Preserve plus expressions
11420         of other preserved expressions too.
11421         (cselib_reset_table): Adjust.
11422         * var-tracking.c (reverse_op): Use canonical value to build
11423         reverse operation.
11425 2012-02-23  Kai Tietz  <ktietz@redhat.com>
11427         * config/i386/i386.c (ix86_delegitimize_address): Handle
11428         UNSPEC_PCREL plus displacement.
11430 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
11432         PR target/52261
11433         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
11434         to test for unusedness in st X addressing.
11436 2012-02-24  Richard Guenther  <rguenther@suse.de>
11438         PR middle-end/52361
11439         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
11440         (is_gimple_reg_type): Move inline ...
11441         * gimple.h (is_gimple_reg_type): ... here.
11443 2012-02-24  Richard Guenther  <rguenther@suse.de>
11445         PR middle-end/52361
11446         * passes.c (execute_function_todo): When verifying SSA form
11447         verify gimple form first.
11448         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
11450 2012-02-24  Richard Guenther  <rguenther@suse.de>
11452         PR middle-end/52355
11453         * fold-const.c (fold_addr_of_array_ref_difference): New function.
11454         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
11456 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11458         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
11460 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11462         * tree-phinodes.c (make_phi_node): Mark static.
11463         * tree-flow.h (make_phi_node): Remove extern decl.
11464         * doc/gimple.texi (make_phi_node): Remove documentation.
11466 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11468         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
11469         * tree-ssa-sccvn.c (print_scc): Ditto.
11471 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11473         * doc/passes.texi (Full redundancy elimination): Fix typo.
11475 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11477         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
11479 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11481         PR bootstrap/52287
11482         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
11484 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
11486         PR c/52290
11487         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
11489 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
11491         * config/avr/avr.md (code_stdname): Add ior, xor.
11492         (xior): New code iterator.
11493         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
11494         (*<code_stdname><mode>qi.byte1-3): Ditto.
11496 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
11498         PR tree-optimization/52019
11499         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
11500         CLOBBER stmts.
11502 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11504         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
11505         HAVE_INITFINI_ARRAY to work around namespace pollution in
11506         certain versions of newlib system headers.
11507         * config.in: Regenerate.
11508         * configure: Regenerate.
11509         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
11510         instead of HAVE_INITFINI_ARRAY.
11512 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
11514         PR target/52330
11515         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
11516         is not offsettable memory reference.
11518 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
11520         PR target/18145
11521         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
11522         setting avr_need_clear_bss_p for __gnu_lto* symbols.
11524 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
11526         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
11527         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
11529 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11531         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
11532         library on Solaris 8 even without TLS support.
11533         * configure: Regenerate.
11535 2012-02-22  Richard Guenther  <rguenther@suse.de>
11537         PR middle-end/52329
11538         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
11539         for GIMPLE_DEBUG stmts.
11541 2012-02-22  Martin Jambor  <mjambor@suse.cz>
11543         PR middle-end/51782
11544         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
11545         according to the base object.
11547 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
11549         PR rtl-optimization/50063
11550         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
11551         and 2 (8-bit SP) in operand 2.
11552         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
11553         setup to use movhi_sp_r instead of vanilla move to write SP.
11554         Adjust REG_CFA notes to superseed unspec.
11555         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
11556         of vanilla move.
11557         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
11558         known to be off) only with TARGET_NO_INTERRUPTS. Never use
11559         irq_state 1 (IRQ known to be on) here.
11561 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
11563         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
11564         WORDS_BIG_ENDIAN.
11565         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
11566         assign_hard_reg): Likewise.
11568 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
11570         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
11572 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
11574         * config/avr/avr.md
11575         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
11576         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
11578 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
11580         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
11581         prototype from here to...
11582         * config/avr/avr.h: ...here.
11584 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
11586         PR target/52294
11587         * thumb2.md (thumb2_shiftsi3_short): Split register and
11588         immediate shifts.  For register shifts tie operands 0 and 1.
11589         (peephole2 for above): Check that register-controlled shifts
11590         have suitably tied operands.
11592 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
11594         PR target/52137
11595         * config/i386/bdver1.md (bdver1_call, bdver1_push,
11596         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
11597         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
11598         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
11599         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
11600         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
11601         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
11602         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
11603         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
11604         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
11605         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
11606         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
11607         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
11608         bdver1_ssevector_avx256_unaligned_load,
11609         bdver1_ssevector_sse128_unaligned_load,
11610         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
11611         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
11612         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
11613         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
11614         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
11615         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
11616         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
11617         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
11618         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
11619         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
11620         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
11621         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
11622         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
11623         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
11624         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
11625         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
11626         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
11627         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
11628         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
11629         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
11630         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
11631         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
11632         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
11633         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
11634         bdver1_ssediv_double_load, bdver1_ssediv_double,
11635         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
11636         Add "bdver2" attribute.
11638 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11640         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
11641         default if possible and not specified otherwise.
11643 2012-02-21  Richard Guenther  <rguenther@suse.de>
11645         PR middle-end/52314
11646         * gimplify.c (create_tmp_from_val): Use the main variant type
11647         for the type of the temporary we create.
11649 2012-02-21  Richard Guenther  <rguenther@suse.de>
11651         PR tree-optimization/52324
11652         * gimplify.c (gimplify_expr): When re-gimplifying expressions
11653         do not gimplify a MEM_REF address operand if it is already
11654         in suitable form.
11656 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11658         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
11659         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
11661 2012-02-21  Richard Guenther  <rguenther@suse.de>
11663         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
11664         nested_in_vect_loop.
11666 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
11668         PR tree-optimization/52318
11669         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
11670         vdef also to non-pure/const call stmts in the sequence.
11672 2012-02-21  Tristan Gingold  <gingold@adacore.com>
11674         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
11676 2012-02-20  David S. Miller  <davem@davemloft.net>
11678         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
11679         don't use the "rd %pc" instruction on v9 for PIC register loads.
11681 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
11683         PR middle-end/52141
11684         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
11685         in a transaction safe function.
11687 2012-02-20  Kai Tietz  <ktietz@redhat.com>
11689         PR target/52238
11690         * stor-layout.c (place_field): Handle desired_align for
11691         ms-bitfields, too.
11693 2012-02-20  Richard Guenther  <rguenther@suse.de>
11695         PR tree-optimization/52298
11696         * tree-vect-stmts.c (vectorizable_store): Properly use
11697         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
11698         outer loops.
11699         (vectorizable_load): Likewise.
11700         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11701         Access DR_STEP after ensuring it is not NULL.
11703 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
11705         PR tree-optimization/52286
11706         * fold-const.c (fold_binary_loc): For (X & C1) | C2
11707         optimization use double_int_to_tree instead of build_int_cst_wide,
11708         rewrite to use double_int vars.
11710 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11712         PR target/50166
11713         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
11714         Define _start.
11715         Remove -e 0 from $gcc_cv_ld invocation.
11716         Only use __GLIBC_PREREQ if defined.
11717         Enable on Solaris since Solaris 8 patch.
11718         (gcc_SUN_LD_VERSION): New macro.
11719         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
11720         gcc_SUN_LD_VERSION for version number format.
11721         * configure: Regenerate.
11722         * varasm.c (get_elf_initfini_array_priority_section): Set
11723         SECTION_NOTYPE for non-default priority.
11724         Use get_section instead of get_unnamed_section to emit
11725         .init_array/.fini_array with default priority.
11727 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
11729         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
11730         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
11731         (mips_start_unique_function, mips_output_mips16_rdhwr)
11732         (mips_code_end): New functions.
11733         (TARGET_ASM_CODE_END): Define.
11735 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
11737         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
11738         to stubs with non-sibling calls.
11740 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
11742         * doc/invoke.texi (-fira-* options): Copy-edit.
11743         (ira-* parameters): Copy-edit.
11745 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
11747         * doc/invoke.texi: Minor copy-edits to bring into conformance with
11748         GCC coding conventions.
11750 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
11752         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
11753         when used as adjectives.
11755 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
11757         * doc/invoke.texi: Clean up "that"/"which" confusion.
11759 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
11761         * system.h: Poison SMALL_REGISTER_CLASSES
11762         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
11763         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
11765 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
11767         PR tree-optimization/52285
11768         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
11769         when deciding if a call is a tail call or tail recursion.
11771 2012-02-16  Kai Tietz  <ktietz@redhat.com>
11773         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
11774         interger-constant displacement for UNSPEC_PCREL.
11776 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
11778         PR rtl-optimization/52208
11779         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
11780         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
11782         PR tree-optimization/52255
11783         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
11784         loop->header has virtual PHI, but exit_e->dest doesn't, add
11785         virtual PHI to exit_e->dest and adjust all uses after the loop.
11787         PR debug/52260
11788         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
11789         children with clone_tree_hash, not after it.
11791 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
11793         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
11794         extended identifiers.
11796 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
11798         PR middle-end/51929
11799         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
11800         a same_body_alias, also test whether e->callee isn't a former
11801         or current clone of the decl this is a same body alias of.
11803         PR translation/52264
11804         * cgraphunit.c (verify_cgraph_node): Fix a typo.
11806 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
11808         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
11810 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11812         PR target/52199
11813         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
11814         force_reg instead of copy_to_reg for better optimization.  Force
11815         non-register or memory operands into a register.
11817 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
11819         * extend.texi: Reserve upper bits of memory model for future use.
11821 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
11822             Anatoly Sokolov <aesok@post.ru>
11823             Eric Weddington <eric.weddington@atmel.com>
11825         PR target/52261
11826         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
11827         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
11828         Rewrite initializers for .macro.
11829         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
11830         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
11831         atxmega32d4, atxmega32x1.
11832         avrxmega4: atxmega64a3, atxmega64d3.
11833         avrxmega5: atxmega64a1, atxmega64a1u.
11834         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
11835         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
11836         avrxmega7: atxmega128a1, atxmega128a1u.
11837         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
11838         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
11839         (struct base_arch_s): Rename reserved to xmega_p.
11840         Rename reserved2 to have_rampd.
11841         (AVR_XMEGA): New define.
11842         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
11843         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
11844         * config/avr/predicates.md (io_address_operand): Take into
11845         account SFR offset.
11846         (low_io_address_operand): Ditto.
11847         (high_io_address_operand): Ditto.
11848         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
11849         (enabled, movhi_sp_r): Use them.
11850         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
11851         cpp_define_formatted to built-in define __AVR_ARCH__.
11852         (__AVR_XMEGA__): New built-in define.
11853         (__AVR_HAVE_RAMPD__): New built-in define.
11854         (__AVR_HAVE_RAMPX__): New built-in define.
11855         (__AVR_HAVE_RAMPY__): New built-in define.
11856         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
11858         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
11859         (avr_option_override): Initialize them.
11860         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
11861         (avr_init_expanders): Initialize them. No more block several calls.
11862         (emit_push_sfr): New static function.
11863         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
11864         Handle AVR_XMEGA.
11865         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
11866         (avr_print_operand): Print addreeses as symbols for
11867         RAMPX, RAMPY, RAMPD, CCP.
11868         (output_movhi): Handle AVR_XMEGA when writing to SP.
11869         (avr_out_movhi_mr_r_xmega): New static function.
11870         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
11871         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
11872         __RAMPD__,  __CCP__ as needed.
11874         * config/avr/multilib.h: Regenerate.
11875         * config/avr/t-multilib: Regenerate.
11876         * config/avr/avr-tables.opt: Regenerate.
11878 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
11880         PR tree-optimization/50561
11881         * graphite-flattening.c (lst_project_loop): Do not
11882         remove old scattering dimensions after flattening.
11883         (lst_do_flatten): Likewise.
11885 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
11887         * doc/extend.texi (AVR Built-in Functions): Remove doc for
11888         __builtin_avr_map8, __builtin_avr_map16.
11889         Document __builtin_avr_insert_bits.
11891         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
11892         (insert_bits): New insn.
11893         (adjust_len.map_bits): Rename to insert_bits.
11894         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
11895         * avr-protos.h (avr_out_map_bits): Remove.
11896         (avr_out_insert_bits, avr_has_nibble_0xf): New.
11897         * config/avr/constraints.md (Cxf,C0f): New.
11898         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
11899         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
11900         New built-in define __BUILTIN_AVR_INSERT_BITS.
11901         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
11902         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
11903         (avr_move_bits): Rewrite.
11904         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
11905         functions.
11906         (avr_map_op_t): New typedef.
11907         (avr_map_op): New static variable.
11908         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
11909         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
11910         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
11911         (bdesc_3arg, avr_expand_triop_builtin): New.
11912         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
11913         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
11914         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
11915         (avr_map_equal_p, avr_map_sig_p): Remove.
11916         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
11917         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11918         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
11919         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11920         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
11921         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11923 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
11925         * config/c6x/c6x.md (reserve_cycles): New attribute.
11926         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
11927         don't reserve functional units after the branch occurs.
11929 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
11931         PR middle-end/52142
11932         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
11933         functions into non-tm_pure functions.
11935 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11937         PR lto/52178
11938         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
11939         (iterative_hash_canonical_type): Likewise.
11940         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
11941         the dead edges.
11943 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
11945         * haifa-sched.c (prune_ready_list): Ensure that if there is a
11946         sched-group insn, it either remains alone or the entire list is pruned.
11948 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
11950         * doc/install.texi (Prerequisites): Fix grammar.
11951         (Configuration): Likewise.
11953 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
11955         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
11956         MPC as part of GCC before describing configuring with --with-gmp etc.
11957         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
11958         sources are present.
11960 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
11962         PR debug/51950
11963         * dwarf2out.c (clone_tree_hash): New function.
11964         (copy_decls_walk): Use it instead of clone_tree.
11966 2012-02-14  Richard Guenther  <rguenther@suse.de>
11968         PR tree-optimization/52244
11969         PR tree-optimization/51528
11970         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
11971         replacements for integral types.
11973 2012-02-14  Walter Lee  <walt@tilera.com>
11975         * config.gcc: Handle tilegx and tilepro.
11976         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
11977         tilegx and tilepro.
11978         Add HAVE_AS_TLS check for tilegx and tilepro.
11979         * configure: Regenerate.
11980         * doc/contrib.texi: Add Mat Hostetter and self.
11981         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
11982         Document instruction intrinsics and network accessing intrinsics.
11983         (TILEPro Built-in Functions): New node.  Document instruction
11984         intrinsics and network accessing intrinsics.
11985         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
11986         (Specific, tilepro-*-linux*): Likewise.
11987         * doc/invoke.texi (TILE-Gx Options): New section.
11988         (TILEPro Options): New section.
11989         * doc/md.texi (TILE-Gx): New section.
11990         (TILEPro): New section.
11991         * common/config/tilegx/tilegx-common.c: New file.
11992         * common/config/tilepro/tilepro-common.c: New file.
11993         * config/tilegx/constraints.md: New file.
11994         * config/tilegx/linux.h: New file.
11995         * config/tilegx/mul-tables.c: New file.
11996         * config/tilegx/predicates.md: New file.
11997         * config/tilegx/sync.md: New file.
11998         * config/tilegx/t-tilegx: New file.
11999         * config/tilegx/tilegx-builtins.h: New file.
12000         * config/tilegx/tilegx-c.c: New file.
12001         * config/tilegx/tilegx-generic.md: New file.
12002         * config/tilegx/tilegx-modes.def: New file.
12003         * config/tilegx/tilegx-multiply.h: New file.
12004         * config/tilegx/tilegx-protos.h: New file.
12005         * config/tilegx/tilegx.c: New file.
12006         * config/tilegx/tilegx.h: New file.
12007         * config/tilegx/tilegx.md: New file.
12008         * config/tilegx/tilegx.opt: New file.
12009         * config/tilepro/constraints.md: New file.
12010         * config/tilepro/gen-mul-tables.cc: New file.
12011         * config/tilepro/linux.h: New file.
12012         * config/tilepro/mul-tables.c: New file.
12013         * config/tilepro/predicates.md: New file.
12014         * config/tilepro/t-tilepro: New file.
12015         * config/tilepro/tilepro-builtins.h: New file.
12016         * config/tilepro/tilepro-c.c: New file.
12017         * config/tilepro/tilepro-generic.md: New file.
12018         * config/tilepro/tilepro-modes.def: New file.
12019         * config/tilepro/tilepro-multiply.h: New file.
12020         * config/tilepro/tilepro-protos.h: New file.
12021         * config/tilepro/tilepro.c: New file.
12022         * config/tilepro/tilepro.h: New file.
12023         * config/tilepro/tilepro.md: New file.
12024         * config/tilepro/tilepro.opt: New file.
12026 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
12028         PR tree-optimization/52210
12029         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
12030         vect_model_simple_cost with two entry vect_def_type array instead
12031         of an address of dt.
12033 2012-02-14  Richard Guenther  <rguenther@suse.de>
12035         PR lto/52178
12036         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12037         Do not stream DECL_QUALIFIER.
12038         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12039         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
12040         (find_decls_types_r): Do not walk DECL_QUALIFIER.
12042 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
12044         PR c/52181
12045         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
12046         newdecl.
12048 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12050         PR bootstrap/52172
12051         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
12052         * cselib.c (cselib_subst_to_values_from_insn): New function.
12053         * sched-deps.c (add_insn_mem_dependence,
12054         sched_analyze_1, sched_analyze_2): Use it.
12056 2012-02-13  Jan Hubicka  <jh@suse.cz>
12058         PR middle-end/52214
12059         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
12061 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12063         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
12064         (GTM_SELF_SPECS): Define if not already defined.
12065         (driver_self_specs): Add GTM_SELF_SPECS.
12066         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
12067         (GTM_SELF_SPECS): Define.
12068         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
12069         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
12071 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12073         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
12074         away if seen.
12076         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
12078         PR middle-end/52230
12079         * omp-low.c (expand_omp_for): If a static schedule without chunk size
12080         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
12082 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
12084         PR c/52190
12085         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
12087 2012-02-13  Richard Guenther  <rguenther@suse.de>
12089         PR translation/52211
12090         * passes.c (enable_disable_pass): Fix typo.
12092 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12094         PR middle-end/52209
12095         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
12096         XOR for reduce_bit_field if type is unsigned.
12098 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
12100         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
12101         disallow changes from SFmode to mode with different size in FP regs.
12103 2012-02-12  Robert Millan  <rmh@gnu.org>
12104             Gerald Pfeifer <gerald@pfeifer.com>
12106         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
12107         Tweak comment.
12109 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
12111         PR rtl-optimization/52175
12112         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
12113         to frame-related instructions.
12115 2012-02-10  Jason Merrill  <jason@redhat.com>
12117         PR c++/51910
12118         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
12119         (demangle_new_symbols): Fill it.
12120         (scan_linker_output): Walk it.
12121         (start_tweaking): Split out from scan_linker_output.
12122         (maybe_tweak): Update sym->chosen.
12123         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
12125 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
12127         PR debug/52132
12128         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
12130 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
12132         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
12133         having the same mode as previous compare.
12135 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12137         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
12138         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
12139         (nonlocal_goto_internal): Likewise.
12140         (nonlocal_goto): Emit a use and an indirect jump directly.
12142 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
12144         PR c/52190
12145         * doc/extend.texi : Update comments for __atomic_compare_exchange and
12146         __atomic_{is,always}_lock_free.
12148 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
12150         PR target/52146
12151         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
12152         negative constant address for TARGET_X32.
12154 2012-02-10  Richard Henderson  <rth@redhat.com>
12156         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
12157         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
12158         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
12160 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12161             Ira Rosen  <irar@il.ibm.com>
12163         PR tree-optimization/50031
12164         * targhooks.c (default_builtin_vectorization_cost): Handle
12165         vec_promote_demote.
12166         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
12167         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
12168         all types of reduction and pattern statements.
12169         (vect_estimate_min_profitable_iters): Likewise.
12170         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
12171         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
12172         for explicit realigns.
12173         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
12174         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
12175         vec_promote_demote.
12176         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12177         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
12178         vec_perm for VSX and handle vec_promote_demote.
12180 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
12182         PR middle-end/52177
12183         * builtins.c (fold_builtin_atomic_always_lock_free,
12184         expand_builtin_atomic_always_lock_free,
12185         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
12186         Return and/or test boolean_true_node/boolean_false_node instead of
12187         integer_one_node/integer_zero_node.
12189 2012-02-10  Jan Hubicka  <jh@suse.cz>
12191         PR middle-end/48600
12192         * predict.c (predict_paths_for_bb): Prevent looping.
12193         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
12195 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
12197         * config/arm/arm.c (output_move_double): In one case properly
12198         count number of instructions that will be emitted.
12200 2012-02-10  Richard Guenther  <rguenther@suse.de>
12202         PR translation/52193
12203         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
12205 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
12207         PR middle-end/52140
12208         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
12210 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
12212         PR debug/52165
12213         * var-tracking.c (emit_note_insn_var_location): If
12214         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
12215         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
12216         non-NOTE_DURING_CALL_P insn.
12218 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
12220         PR middle-end/51867
12221         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
12223 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
12225         PR driver/48524
12226         * gcc.c (switch_matches) Support switches with separated form,
12227         -D and -U.
12229 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
12231         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
12232         (SP_ADDR): Ditto.
12233         (RAMPZ_ADDR): Ditto.
12234         * config/avr/avr.c (avr_addr_t): New typedef.
12235         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
12236         (avr_init_expanders): Initialize it.
12237         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
12238         SREG_ADDR.
12239         (expand_epilogue): Ditto.
12240         (avr_print_operand): Ditto.
12241         (avr_file_start): Ditto.
12242         (avr_emit_movmemhi): Ditto.
12244 2012-02-08  Richard Guenther  <rguenther@suse.de>
12246         PR tree-optimization/46886
12247         * tree-flow.h (do_while_loop_p): Declare.
12248         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
12249         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
12251 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
12253         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
12254         always succeed for integers larger than a native word.
12256 2012-02-08  Richard Guenther  <rguenther@suse.de>
12258         PR rtl-optimization/52170
12259         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
12260         properly handle integer vector modes.
12262 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
12264         PR gcov-profile/52150
12265         * coverage.c: Include target.h.
12266         (build_var): Call targetm.strip_name_encoding on the assembler name.
12267         Change one _ into . or $ if the target allows it.
12268         * Makefile.in (coverage.o): Depend on $(TARGET_H).
12270         PR rtl-optimization/52139
12271         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
12272         is a BARRIER after emit_insn_after_noloc, move BB_END
12273         to the last non-BARRIER insn before it.
12275 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
12277         PR middle-end/24306
12278         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
12279         (mips_gimplify_va_arg_expr): Call it instead of
12280         std_gimplify_va_arg_expr.
12282 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12284         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
12285         message for -mno-pointers-to-nested-function.
12287 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
12289         PR middle-end/51994
12290         * expr.c (get_inner_reference): If there is an offset, add a negative
12291         bit position to it (if any).
12293 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
12295         PR rtl-optimization/52060
12296         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
12297         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
12298         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
12299         and/or i0src_copy2 when needed.
12301 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
12303         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
12304         or LTOPLUGINSONAME if have_c.
12306         * config/freebsd-spec.h: Add comment about what macros can be defined
12307         in this header.
12308         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
12309         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
12310         here instead.
12312 2012-02-07  Richard Guenther  <rguenther@suse.de>
12314         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
12315         newline in -alias dumps.
12317 2012-02-07  Kai Tietz  <ktietz@redhat.com>
12318             Dave Korn  <dave.korn.cygwin@gmail.com>
12320         PR target/40068
12321         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
12322         Take care that typinfo gets dllexport-attribute.
12324 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
12326         PR middle-end/52074
12327         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
12328         if modifier < EXPAND_SUM call force_operand on the result.
12330 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
12332         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
12333         adding __forwarder_dst__ prefix if a forwarder_section attribute is
12334         present.
12335         (epiphany_function_type): Replace types for specific interrupts with
12336         EPIPHANY_FUNCTION_INTERRUPT.
12337         (EPIPHANY_INTERRUPT_P): Update.
12338         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
12339         New static function.
12340         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
12341         <disinterrupt>: Affects type identity.
12342         (epiphany_handle_interrupt_attribute): Handle variable number of
12343         arguments.
12344         (epiphany_compute_function_type): Update for new
12345         epiphany_function_type definition.
12346         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
12347         handlers with a longcall forwarder.
12348         (epiphany_start_function): Handle multiple interrupt arguments and/or
12349         forwarder_section attribute.
12351         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
12352         libgloss.
12354 2012-02-07  Alan Modra  <amodra@gmail.com>
12356         PR target/52107
12357         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
12358         subregs of TFmode.
12360 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12362         PR tree-optimization/50969
12363         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
12364         use vec_perm rather than vector_stmt.
12365         (vect_model_load_cost): Likewise.
12366         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
12367         vec_perm to be the same as other vector statements.
12368         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
12369         cost of vec_perm for TARGET_VSX.
12371 2012-02-06  Richard Guenther  <rguenther@suse.de>
12373         PR tree-optimization/52115
12374         * tree-sra.c (access_has_replacements_p): New function.
12375         (sra_modify_assign): Use it to decide whether a use is uninitialized.
12377 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
12379         PR middle-end/52047
12380         * trans-mem.c (expand_call_tm): Add an assertion.
12381         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
12382         functions.
12384 2012-02-06  Richard Guenther  <rguenther@suse.de>
12386         PR tree-optimization/50955
12387         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
12388         raise cost of expressions that replace an address with an
12389         expression based on a different pointer.
12391 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
12393         PR target/52129
12394         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
12395         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
12397 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
12399         PR c++/48680
12400         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
12401         -Weffc++ and specify guidelines come from second edition.
12403 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
12405         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
12406         (sibcall_value_multiple_internal, call_split, call_internal_direct)
12407         (call_direct_split, call_value_split, call_value_internal_direct)
12408         (call_value_direct_split, call_value_multiple_split): Use jal and
12409         jal_macro attributes.
12411 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
12413         * reload1.c (reload_regs_reach_end_p): Replace with...
12414         (reload_reg_rtx_reaches_end_p): ...this function.
12415         (new_spill_reg_store): Update commentary.
12416         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
12417         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
12418         before setting new_spill_reg_store.
12419         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
12420         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
12421         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
12422         for non-spill reload registers.
12424 2012-02-05  Ira Rosen  <irar@il.ibm.com>
12426         PR tree-optimization/52091
12427         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
12428         (vect_is_simple_use_1): Likewise.
12429         * tree-vect-loop.c (vectorizable_reduction): Update calls
12430         to vect_is_simple_use_1 and vect_is_simple_use.
12431         (vectorizable_live_operation): Likewise.
12432         * tree-vect-patterns.c (widened_name_p,
12433         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
12434         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
12435         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12436         vectorizable_shift,vectorizable_operation, vectorizable_store,
12437         vectorizable_load): Likewise.
12438         (vect_is_simple_cond): Add an argument, pass it to
12439         vect_is_simple_use_1.
12440         (vectorizable_condition): Update calls to vect_is_simple_cond,
12441         vect_is_simple_use.
12442         (vect_is_simple_use): Add an argument, the statement in which
12443         OPERAND is used.  Check that if OPERAND's def stmt is a double
12444         reduction phi node, the use is a phi node too.
12445         (vect_is_simple_use_1): Add an argument, pass it to
12446         vect_is_simple_use.
12447         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
12448         to vect_is_simple_use.
12450 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
12452         PR rtl-optimization/52095
12453         * modulo-sched.c (dump_insn_locator): New function.
12454         (loop_canon_p, sms_schedule): Use it.
12456         PR rtl-optimization/52113
12457         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
12458         even for decomposable shift/zext insns.
12460 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
12461             Zdenek Dvorak  <ook@ucw.cz>
12463         PR rtl-optimization/52092
12464         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
12465         on get_iv_value result.
12467 2012-02-02  Andrew Pinski  <apinski@cavium.com>
12469         PR middle-end/47982
12470         PR middle-end/43967
12471         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
12473 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
12475         PR middle-end/48071
12476         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
12478 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
12480         PR rtl-optimization/49800
12481         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
12482         (sched_finish): Call regstat_free_n_sets_and_refs.
12484 2012-02-02  Jia Liu  <proljc@gmail.com>
12486         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
12487         than operand 2.
12489 2012-02-02  Jan Hubicka  <jh@suse.cz>
12490             Tom de Vries  <tom@codesourcery.com>
12492         PR middle-end/51998
12493         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
12494         * varpool.c (varpool_analyze_pending_decls): Likewise.
12496 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
12497             Jayant R Sonar <jayant.sonar@kpitcummins.com>
12499         * config.gcc: Add cr16-* support.
12501         * doc/extend.texi: Document cr16 extensions.
12502         * doc/install.texi: Document cr16 install.
12503         * doc/invoke.texi: Document cr16 options.
12504         * doc/md.texi: Document cr16 constraints.
12506         * common/config/cr16/cr16-common.c: New file.
12507         * config/cr16/cr16.c: New file.
12508         * config/cr16/cr16.h: New file.
12509         * config/cr16/cr16.md: New file.
12510         * config/cr16/cr16.opt: New file.
12511         * config/cr16/cr16-protos.h: New file.
12512         * config/cr16/predicates.md: New file.
12513         * config/cr16/constraints.md: New file.
12514         * config/cr16/t-cr16: New file.
12516 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
12518         PR target/52086
12519         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
12520         that operands[2] is either immediate, or q_regs_operand.
12522         PR tree-optimization/52073
12523         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
12524         a pattern stmt for pattern uses, ignore uses outside of the loop.
12526 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
12528         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
12529         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
12530         (OUT_AS1, OUT_AS2): Remove.
12532 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
12534         PR rtl-optimization/51374
12535         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
12536         to cross other volatile_refs_p insns.
12538 2012-02-01  Richard Guenther  <rguenther@suse.de>
12540         * doc/invoke.texi (fno-inline): Clarify documentation.
12541         (finline-small-functions): Likewise.
12542         (finline-functions): Likewise.
12543         * common.opt (finline): Adjust comment and documentation.
12544         (finline-small-functions): Clarify documentation.
12545         (finline-functions): Likewise.
12546         (finline-functions-called-once): Likewise.
12548 2012-02-01  Tristan Gingold  <gingold@adacore.com>
12550         * c-typeck.c (composite_type): Keep mode for pointers.
12552 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
12554         * function.h (regno_reg_rtx): Adjust comment.
12555         * reginfo.c (init_reg_modes_target): Only use the previous mode
12556         if it fits within one register.  Remove MIPS comment.
12558 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
12560         PR bootstrap/52058
12561         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
12563 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12565         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
12566         to srak instruction.
12568 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
12570         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
12572 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
12574         PR bootstrap/52041
12575         PR bootstrap/52039
12576         PR target/51974
12577         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
12579 2012-01-31  Richard Guenther  <rguenther@suse.de>
12581         PR tree-optimization/51528
12582         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
12583         assigns.
12585 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
12587         PR bootstrap/52041
12588         PR bootstrap/52039
12589         PR target/51974
12590         * ree.c (add_removable_extension): Change def_map argument
12591         to unsigned *, store in def_map 1 + offset into *insn_list vector
12592         instead of pointers into the vector.
12593         (find_removable_extensions): Adjust caller.
12595 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
12597         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
12598         Transform all "* quoted-c-code" to { c-code }.
12599         Remove redundant test for "optimize" in combine patterns.
12600         Move (include "avr-dimode.md") to end of file.
12602 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
12604         PR target/51835
12605         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12606         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
12608 2012-01-30  Richard Guenther  <rguenther@suse.de>
12610         PR tree-optimization/52028
12611         * tree-loop-distribution.c (ldist_gen): Properly update
12612         virtual SSA form.
12614 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
12616         PR debug/52027
12617         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
12618         set_cur_line_info_table if not emitting debug info.
12620         PR tree-optimization/52046
12621         * tree-vect-patterns.c (check_bool_pattern): Give up if
12622         a comparison could throw.
12624         PR debug/52048
12625         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
12627 2012-01-30  Richard Guenther  <rguenther@suse.de>
12629         PR tree-optimization/52045
12630         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
12631         SSA form if cfgcleanup did anything.
12633 2012-01-30  Richard Guenther  <rguenther@suse.de>
12635         PR tree-optimization/52045
12636         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
12637         before computing final todo.
12639 2012-01-30  Richard Guenther  <rguenther@suse.de>
12641         PR tree-optimization/51528
12642         * tree-sra.c (sra_modify_assign): Re-factor in preparation
12643         for PR51528 fix.
12645 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
12647         * df-problems.c (df_kill_notes): Check that the use refers
12648         to the note under examination.
12650 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
12652         PR target/51920
12653         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
12654         parameter and use short-lived pseudos.
12655         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
12656         (sparc_expand_vector_init): Const-ify local variables and adjust
12657         calls to above functions.
12659 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
12661         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
12663 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
12665         * doc/invoke.texi: Make usage of "compile time" and
12666         "run time"/"runtime" consistent throughout the file.
12668 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
12670         * config/alpha/alpha.c (alpha_option_override): Default to
12671         full IEEE compliance mode for Go language.
12673 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
12675         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
12676         (LINK_SSP_SPEC): Define.
12678 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12680         PR target/51871
12681         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
12682         stubs.
12684 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
12686         * doc/invoke.texi: Correct hyphenation of "floating point",
12687         "double precision", and related terminology throughout the file.
12689 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
12691         PR target/52006
12692         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
12693         arm_general_register_operand predicate for operand 2 instead of
12694         register_operand.
12696 2012-01-27  Ian Lance Taylor  <iant@google.com>
12698         PR go/47656
12699         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
12700         * builtins.c (expand_builtin_init_trampoline): Add onstack
12701         parameter.  Change caller.
12702         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
12703         * tree.c (build_common_builtin_nodes): Declare
12704         __builtin_init_heap_trampoline.
12706 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
12708         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
12709         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
12710         * config/avr/avr.c: Ditto.
12711         (avr_regnames): Remove because unused.
12712         * config/avr/avr.md (*cpse.ne): New peephole.
12713         (*cpse.eq): New peephole from former cpse peepholes.
12715 2012-01-27  Michael Eager  <eager@eagercon.com>
12717         * config/microblaze.c (microblaze_emit_compare): Correct
12718         test after pcmp instruction.
12720 2012-01-27  Richard Guenther  <rguenther@suse.de>
12722         PR tree-optimization/52020
12723         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
12725 2012-01-27  Richard Guenther  <rguenther@suse.de>
12727         * ipa-pure-const.c (check_stmt): Clobbers do not make a
12728         function non-const/pure.
12730 2012-01-27  Richard Guenther  <rguenther@suse.de>
12732         PR tree-optimization/50444
12733         * tree-sra.c (build_ref_for_offset): Properly adjust the
12734         MEM_REF type for unaligned accesses.
12736 2012-01-27  Richard Guenther  <rguenther@suse.de>
12738         PR tree-optimization/50444
12739         * expr.c (mem_ref_refers_to_non_mem_p): New function.
12740         (expand_assignment): Use it.  Properly handle misaligned
12741         bases when expanding stores to component references.
12742         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
12743         refactor that case.
12745 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
12747         PR middle-end/51389
12748         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
12749         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
12750         * tree-data-ref.c (find_data_references_in_loop): Make static.
12751         (compute_all_dependences): Change return type to bool.  Bail out
12752         for too many datarefs in a loop.  Move the hunk resetting the data
12753         dependences vector from ...
12754         (compute_data_dependences_for_loop): ... here.  Account for
12755         compute_all_dependences returning false.
12756         (compute_data_dependences_for_bb): Likewise.
12757         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
12758         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
12760 2012-01-27  Richard Guenther  <rguenther@suse.de>
12762         PR middle-end/51959
12763         * expr.c (store_field): Use the alias-set of the scratch memory
12764         for storing to it.
12766 2012-01-27  Tom de Vries  <tom@codesourcery.com>
12768         PR tree-optimization/51990
12769         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12770         WITH_SIZE_EXPR.
12771         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
12773 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
12775         PR debug/52001
12776         * var-tracking.c (reverse_op): Don't add any reverse operation
12777         if V already has any constant locations.
12779 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
12781         * doc/invoke.texi: Correct usage of "command line" (noun)
12782         vs "command-line" (adjective) throughout.
12784 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
12786         * doc/invoke.texi (Language Independent Options): Move
12787         -Wcoverage-mismatch blurb from here....
12788         (Warning Options): ...to here.
12790 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
12792         * config/rs6000/rs6000.c (rs6000_option_override_internal):
12793         Set rs6000_always_hint to false for 476.
12795 2012-01-27  Matthias Klose  <doko@ubuntu.com>
12797         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
12798           system root.
12799         * incpath.c (add_standard_paths): Likewise.
12801 2012-01-27  Richard Henderson  <rth@redhat.com>
12803         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12804         * config/m68k/sync.md (atomic_test_and_set): Rename from
12805         sync_test_and_setqi and adjust the operands.
12806         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
12807         and unconditionally enable.
12809 2012-01-27  Richard Henderson  <rth@redhat.com>
12811         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12812         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
12813         (ldstub): Rename from ldstubqi.
12814         (ldstub<I24MODE>): Remove.
12816 2012-01-27  Richard Henderson  <rth@redhat.com>
12818         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12819         * c-cppbuiltin.c (cpp_atomic_builtins): Define
12820         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
12821         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
12822         * doc/tm.texi: Rebuild.
12824 2012-01-27  Richard Henderson  <rth@redhat.com>
12826         * optabs.c (gen_atomic_test_and_set): Remove default.
12827         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
12829 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
12831         PR rtl-optimization/51978
12832         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
12833         (combine_reaching_defs): Likewise.
12834         (struct re_info): Remove.
12835         (add_removable_extension): Remove x and data arguments,
12836         add insn, insn_list and def_map.  Use the arguments directly
12837         instead of using struct re_info.
12838         (find_removable_extensions): Don't call add_removable_extension
12839         through note_stores, instead just call it with single_set
12840         result if non-NULL.
12841         (find_and_remove_re): Pass curr_cand->expr instead of
12842         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
12844 2012-01-26  Michael Matz  <matz@suse.de>
12846         PR tree-optimization/46590
12847         * cfgexpand.c: Revert last change (r183305).
12848         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
12849         regs.
12850         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
12851         checking for emptiness.
12853 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
12855         PR middle-end/51895
12856         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
12857         non-addressable non-BLKmode base correctly.
12859 2012-01-26  Michael Matz  <matz@suse.de>
12861         PR tree-optimization/48794
12862         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
12863         regions referenced from RESX/EH_DISPATCH.
12865 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12867         * config/s390/s390.h: Make BRANCH_COST an option.
12868         * config/s390/s390.opt: New option -mbranch-cost.
12870 2012-01-26  Richard Henderson  <rth@redhat.com>
12872         Revert 2012-01-24 change:
12873         * trans-mem.c (requires_barrier): Do not instrument thread local
12874         variables and emit save/restore for them.
12876 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
12878         PR middle-end/51986
12879         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
12880         for pat == 0.
12882 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
12884         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
12885         ASM_OPERANDS.
12887 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
12889         PR target/49868
12890         Rename __pgm to __flash.
12891         Rename __pgm1 to __flash1.
12892         Rename __pgm2 to __flash2.
12893         Rename __pgm3 to __flash3.
12894         Rename __pgm4 to __flash4.
12895         Rename __pgm5 to __flash5.
12896         Rename __pgmx to __memx.
12897         * doc/extend.texi (AVR Named Address Spaces)
12898         Rename address space names as indicated above.
12899         * config/avr/avr.c (avr_addrspace): Ditto.
12901         * config/avr/avr-protos.h
12902         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
12903         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
12904         * config/avr/predicates.md: Ditto.
12905         * config/avr/avr.c Ditto, and
12906         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
12907         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
12909         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
12910         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
12911         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
12912         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
12913         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
12914         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
12915         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
12916         * config/avr/avr.c: Ditto.
12917         * config/avr/avr.md: Ditto.
12919 2012-01-25  Jason Merrill  <jason@redhat.com>
12921         PR c++/51992
12922         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
12924 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
12926         PR tree-optimization/51987
12927         * tree-data-ref.c (get_references_in_stmt): Handle references in
12928         non-volatile GIMPLE_ASM.
12930 2012-01-25  Richard Guenther  <rguenther@suse.de>
12932         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
12933         bases are dereferenced.
12935 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
12937         PR rtl-optimization/48374
12938         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
12940 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
12942         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
12943         compute_data_dependences_for_loop returns false.
12944         * tree-parloops.c (loop_parallel_p): Likewise.
12946 2012-01-25  Richard Guenther  <rguenther@suse.de>
12948         * tree.h (get_pointer_alignment_1): Declare.
12949         * builtins.c (get_pointer_alignment_1): New function.
12950         (get_pointer_alignment): Use it.
12952 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12954         PR rtl-optimization/48308
12955         * combine.c (enum undo_kind): Add UNDO_LINKS.
12956         (struct undo): Add member l to other_contents and where.
12957         (do_SUBST_LINK): New.
12958         (SUBST_LINK): New.
12959         (try_combine): Handle LOG_LINKS for the dummy i1 case.
12960         (undo_all): Handle UNDO_LINKS.
12962 2012-01-25  Richard Henderson  <rth@redhat.com>
12964         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
12965         mem inputs.
12967 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12969         * optabs.c (gen_atomic_test_and_set): Use each argument.
12971 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12973         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
12974         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
12975         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
12976         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
12977         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
12978         TARGET_PAIRED_SINGLE_FLOAT.
12980 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12982         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
12983         (in_struct, return_val): Remove MEM documentation.
12984         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
12985         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
12986         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
12987         and MEM_SCALAR.
12988         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12989         * cfgexpand.c (add_alias_set_conflicts): Likewise.
12990         * expr.c (store_field): Likewise.
12991         * function.c (assign_stack_temp_for_type): Likewise.
12992         * ifcvt.c (noce_try_cmove_arith): Likewise.
12993         * reload1.c (reload): Likewise.
12994         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
12995         (alpha_set_memflags): Likewise.
12996         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
12998 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
13000         * rtl.h (true_dependence, canon_true_dependence): Remove varies
13001         parameter.
13002         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
13003         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
13004         (true_dependence_1, true_dependence, canon_true_dependence): Remove
13005         varies parameter.
13006         * cselib.c (cselib_rtx_varies_p): Delete.
13007         (cselib_invalidate_mem): Update call to canon_true_dependence.
13008         * dse.c (record_store, check_mem_read_rtx): Likewise.
13009         (scan_reads_nospill): Likewise.
13010         * cse.c (check_dependence): Likewise.
13011         (cse_rtx_varies_p): Delete.
13012         * expr.c (safe_from_p): Update call to true_dependence.
13013         * ira.c (validate_equiv_mem_from_store): Likewise.
13014         (memref_referenced_p): Likewise.
13015         * postreload-gcse.c (find_mem_conflicts): Likewise.
13016         * sched-deps.c (sched_analyze_2): Likewise.
13017         * store-motion.c (load_kills_store): Likewise.
13018         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
13019         * gcse.c (mems_conflict_for_gcse_p): Likewise.
13020         (compute_transp): Update call to canon_true_dependence.
13022 2012-01-25  Richard Henderson  <rth@redhat.com>
13024         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
13025         (maybe_emit_atomic_test_and_set): New.
13026         (expand_sync_lock_test_and_set): Use it.
13027         (expand_atomic_test_and_set): Likewise.
13028         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
13029         the implementation; clarify implementation defined details.
13030         * doc/md.texi (atomic_test_and_set): Document.
13032 2012-01-25  Richard Henderson  <rth@redhat.com>
13034         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
13036 2012-01-25  Richard Henderson  <rth@redhat.com>
13038         PR target/51968
13039         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
13040         to effect no-op split.
13042 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
13044         PR lto/51698
13045         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
13046         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
13047         (BT_FN_VOID_PTR_INT_SIZE): New.
13048         (BT_FN_UINT_UINT_VAR): Remove.
13049         (BT_FN_UINT32_UINT32_VAR): New.
13050         (BT_FN_DOUBLE_VPTR): Remove.
13051         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
13053         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
13054         (_ITM_changeTransactionMode): Same.
13055         (_ITM_memmoveRtWt): Change return type to void.
13056         (_ITM_memcpyRtWt): Same.
13057         (_ITM_memsetW): Same.
13058         (_ITM_RaRD): Change types to double.
13059         (_ITM_RD): Same.
13060         (_ITM_RaWD): Same.
13061         (_ITM_RfWD): Same.
13063         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
13065 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
13066             Patrick Marlier  <patrick.marlier@gmail.com>
13068         * trans-mem.c (requires_barrier): Do not instrument thread local
13069         variables and emit save/restore for them.
13071 2012-01-24  Jason Merrill  <jason@redhat.com>
13073         PR c++/51812
13074         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
13075         output static aliases.
13077 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
13079         PR driver/47249
13080         * common.opt (-pie, -shared, pie, shared): Change from Common to
13081         Driver.
13082         * gcc.c (display_help): Display help for -pie and -shared.
13084 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
13086         PR target/49868
13087         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
13088         Remove note on size/offset limitation.
13089         (AVR Variable Attributes): Add example how to read data located
13090         with progmem.  Refer to named address spaces.
13091         * doc/invoke.texi (AVR Options): Fix typo.
13093 2012-01-24  Richard Guenther  <rguenther@suse.de>
13095         Forward-port to trunk
13096         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
13098         PR middle-end/45678
13099         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
13100         op0 isn't sufficiently aligned and there is movmisalignM
13101         insn for mode, use it to load op0 into a temporary register.
13103 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
13105         PR target/51957
13106         * target.def (const_not_ok_for_debug_p): New hook.
13107         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
13108         documentation.
13109         * doc/tm.texi: Regenerated.
13110         * dwarf2out.c (const_ok_for_output_1): If
13111         targetm.const_not_ok_for_debug_p returns true, fail.
13112         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
13113         function.
13114         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
13116 2012-01-23  Kai Tietz  <ktietz@redhat.com>
13118         PR target/51900
13119         * config/i386/predicates.md (symbolic_operand): Allow
13120         UNSPEC_PCREL as PIC expression for lea.
13121         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
13122         * config/i386/i386.c (ix86_delegitimize_address): Handle
13123         UNSPEC_PCREL for none-MEM, too.
13125 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
13127         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
13128         (ipa_tm_create_version_alias): Same.
13130 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
13132         PR libitm/51830
13133         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
13134         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
13136 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
13137             Patrick Marlier  <patrick.marlier@gmail.com>
13138             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
13140         PR lto/51916
13141         * lto-wrapper.c (run_gcc): Pass the LTO section name to
13142         simple_object_start_read.
13144 2012-01-23  Richard Guenther  <rguenther@suse.de>
13147         PR tree-optimization/51895
13148         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
13149         parameter decomposition into BLKmode components.
13151 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
13153         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
13154         fake variables for restrict-qualified pointers whose pointed-to type
13155         contains a placeholder.
13157 2012-01-23  Richard Guenther  <rguenther@suse.de>
13159         PR tree-optimization/51949
13160         * ipa-split.c (execute_split_functions): Do not split malloc functions.
13162 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
13164         PR rtl-optimization/51933
13165         * ree.c (transform_ifelse): Return true right away if dstreg is
13166         already wider or equal to cand->mode.
13167         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
13168         (make_defs_and_copies_lists): Remove defs_list and copies_list
13169         arguments, add state argument, just truncate state->work_list
13170         instead of always allocating and freeing the vector.  Assert that
13171         get_defs succeeds instead of returning 2.  Changed return type to bool.
13172         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
13173         have ext_src_mode, see if it has been modified already with the
13174         right kind of extension and has been extended before from the
13175         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
13176         just return true.  Remember the original mode in state->modified array.
13177         (combine_reaching_defs): Add state argument.  Don't allocate and
13178         free here def_list, copied_list and vec vectors, instead just
13179         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
13180         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
13181         Add state variable, clear vectors in it, initialize state.modified
13182         if needed.  Free all the vectors at the end and state.modified too.
13183         Don't skip a candidate if the extension expression has been modified.
13185 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
13187         PR target/47096
13188         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
13189          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
13190         (extra_options) interix.opt -> i386/interix.opt"
13191         (extra_objs):Add winnt-stubs.o
13192         * configure.ac: Add interix to target_os .comm on PE check.
13193         * configure: Regenerate.
13194         * config/interix3.h: Delete and move bits to..
13195         * config/interix.h: Delete and move bits to..
13196         * config/i386/i386-interix3.h: Delete and move bits to..
13197         * config/i386/i386-interix.h: ..here.
13198         (TARGET_CPU_DEFAULT): Remove redefinition.
13199         (TARGET_ASM_CONSTRUCTOR): Undefine.
13200         (SUBTARGET_SWITCHES): Define for ms-bitfields.
13201         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
13202         (PTRDIFF_TYPE): Define.
13203         (LONG_DOUBLE_TYPE_SIZE): Define.
13204         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
13205         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13206         (TARGET_SECTION_TYPE_FLAGS): Define.
13207         (ASM_DECLARE_FUNCTION_NAME): Define.
13208         (ASM_OUTPUT_EXTERNAL): Define.
13209         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
13210         (ASM_OUTPUT_ALIGNED_BSS): Define.
13211         (PCC_BITFIELD_TYPE_MATTERS): Define.
13212         (USE_CONST_SECTION): Define.
13213         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
13214         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13215         (SUPPORTS_ONE_ONLY): Remove.
13216         (I386_PE_STRIP_ENCODING): Define.
13217         * config/interix.opt: Delete and move bits to..
13218         * config/i386/interix.opt: ..here. New.
13219         (mpe-aligned-commons): Add.
13220         * config/i386/t-interix: Add copyright header.
13221         (winnt-stubs.o): Add rule.
13223 2012-01-22  Jason Merrill  <jason@redhat.com>
13225         PR c++/51832
13226         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
13227         for extra name aliases.
13229 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13231         PR rtl-optimization/51924
13232         * ree.c (combine_set_extension): Improve debugging message.
13233         (combine_reaching_defs): Likewise.
13234         (get_defs): Rename confusingly named variable.
13235         (find_and_remove_re): Skip a candidate if the extension expression has
13236         been modified.
13238 2012-01-21  Robert Millan  <rmh@gnu.org>
13239             Gerald Pfeifer  <gerald@pfeifer.com>
13241         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
13242         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
13244 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
13246         PR tree-optimization/51914
13247         * tree-vect-stmts.c (vectorizable_conversion): For
13248         cvt_type && modifier == WIDEN, put temporary with cvt_type
13249         at the beginning of vec_dsts and set vec_dest to temporary
13250         with vectype_out.
13252 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13254         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
13256 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
13258         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
13259         * config/rs6000/rs6000.c: Likewise.
13261 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
13263         PR target/51915
13264         * config/arm/arm.c (arm_count_output_move_double_insns): Call
13265         output_move_double on a copy of operands array.
13267 2012-01-20  Cary Coutant  <ccoutant@google.com>
13268             Dodji Seketeli  <dodji@redhat.com>
13270         PR debug/45682
13271         * dwarf2out.c (copy_declaration_context): Return ref to parent
13272         of declaration DIE, if necessary.
13273         (remove_child_or_replace_with_skeleton): Add new parameter; update
13274         caller.  Place skeleton DIE under parent DIE of original declaration.
13275         Move call to copy_declaration_context to here ...
13276         (break_out_comdat_types): ... from here.
13278 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13280         PR rtl-optimization/51856
13281         * reload.c (find_reloads_subreg_address): Set the address_reloaded
13282         flag to reloaded.
13284 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13286         PR target/51819
13287         * config/arm/arm.c (arm_print_operand): Correct output of alignment
13288         hints for neon loads and stores.
13290 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
13292         PR target/49868
13293         PR target/50887
13294         * doc/extend.texi (Named Address Spaces): Split into subsections.
13295         (AVR Named Address Spaces): New subsection.
13296         (M32C Named Address Spaces): New subsection.
13297         (RL78 Named Address Spaces): New subsection.
13298         (SPU Named Address Spaces): New subsection.
13299         (Variable Attributes): New anchor "AVR Variable Attributes".
13300         (AVR Variable Attributes): Rewrite and avoid wording
13301         "address space" in this context.
13302         * doc/invoke.texi (AVR Options): Rewrite and add documentation
13303         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
13304         (AVR Built-in Macros): New subsubsection therein.
13305         * doc/md.texi (AVR constraints): Remove "C04", "R".
13307 2012-01-20  Richard Guenther  <rguenther@suse.de>
13309         PR tree-optimization/51903
13310         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
13311         when removing stmts.
13313 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13315         PR target/50313
13316         * config/arm/arm.c (arm_load_pic_register): Use
13317         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
13318         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
13319         (arm_pic_static_addr): Likewise.
13320         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
13321         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
13322         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
13323         (pic_load_addr_unified): New.
13325 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
13327         PR target/51106
13328         * function.c (instantiate_virtual_regs_in_insn): Use
13329         delete_insn_and_edges when removing a wrong asm insn.
13331 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
13333         PR rtl-optimization/40761
13334         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
13335         Add new member loop_num.
13336         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
13337         (ira_build): Remove the parameter.
13339         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
13340         (ira.c): Do not build CFG loops for one region allocation.  Remove
13341         argument from ira_build call.
13343         * ira-build.c (init_loop_tree_node): New function.
13344         (create_loop_tree_nodes): Use it.  Separate the case when CFG
13345         loops are not built.
13346         (more_one_region_p): Check current_loops.
13347         (finish_loop_tree_nodes): Separate the case when CFG loops are not
13348         built.
13349         (add_loop_to_tree): Process loop equal to NULL too.
13350         (form_loop_tree): Separate the case when CFG loops are not built.
13351         Use explicitly number for the root.
13352         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
13353         an assertion.
13354         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
13355         instead of loop->num.
13356         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
13357         (mark_all_loops_for_removal): Ditto.
13358         (remove_unnecessary_regions): Separate the case when CFG loops
13359         are not built.
13360         (ira_build): Remove the parameter.  Use explicit number of regions
13361         when CFG loops are not built.
13363         * ira-color.c (print_loop_title): Separate the case for the root node.
13364         Use loop_num instead of loop->num.
13365         (move_spill_restore): Use loop_num instead of loop->num.
13367         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
13368         (change_loop): Ditto.
13369         (change_loop): Use loop_num instead of loop->num.
13371         * ira-lives.c (process_bb_node_lives): Ditto.
13373         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
13375         * ira-conflicts.c (print_allocno_conflicts): Ditto.
13377 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
13379         PR libmudflap/40778
13380         * tree-mudflap.c (mf_artificial): New function.
13381         (execute_mudflap_function_ops, execute_mudflap_function_decls,
13382         mx_register_decls, mudflap_enqueue_decl): Use it.
13384         PR target/51876
13385         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
13386         numbers in the insn pattern.
13388 2012-01-19  Michael Matz  <matz@suse.de>
13390         PR tree-optimization/46590
13391         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
13392         use it in remembering which conflicts we already created.
13393         (add_scope_conflicts): Adjust call to above, (de)allocate helper
13394         bitmap.
13396 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
13398         PR lto/51280
13399         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
13400         (merge_and_complain): Same.
13402 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
13404         PR bootstrap/50237
13405         * config/initfini-array.h: Guard content of the header
13406         with #ifdef HAVE_INITFINI_ARRAY.
13407         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
13408         Add initfini-array.h to tm_file here.
13409         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
13410         * config.gcc: Don't add initfini-array.h to tm_file here.
13411         * configure: Regenerated.
13413 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
13415         PR rtl-optimization/51505
13416         * df-problems.c (df_kill_notes): New parameter live. Update comment.
13417         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
13418         (df_note_bb_compute): Update the call to df_kill_notes.
13420 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
13422         * trans-mem.c (requires_barrier): Remove call to is_global_var.
13424 2012-01-18  Richard Guenther  <rguenther@suse.de>
13426         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
13427         of conversions to void *.
13429 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13430             Richard Sandiford  <rdsandiford@googlemail.com>
13432         PR middle-end/50325
13433         PR middle-end/51192
13434         * optabs.h (simplify_expand_binop): Declare.
13435         * optabs.c (simplify_expand_binop): Make global.
13436         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
13437         endian targets if the source cannot be exactly covered by word
13438         mode chunks.
13440 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
13442         PR bootstrap/51872
13443         * hard-reg-set.h (struct hard_reg_set_container): New type.
13444         * target.h (struct hard_reg_set_container): Forward declare.
13445         * target.def (set_up_by_prologue): New target hook.
13446         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
13447         * doc/tm.texi: Regenerated.
13448         * function.c (thread_prologue_and_epilogue_insns): Change
13449         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
13450         Call targetm.set_up_by_prologue on it.
13451         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
13452         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
13454 2012-01-17  Nick Clifton  <nickc@redhat.com>
13456         * config/rx/rx.c (rx_can_use_simple_return): New function.
13457         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
13458         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
13460 2012-01-17  Richard Guenther  <rguenther@suse.de>
13462         PR middle-end/51782
13463         * expr.c (expand_assignment): Take address-space information
13464         from the address operand of MEM_REF and TARGET_MEM_REF.
13465         (expand_expr_real_1): Likewise.
13467 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13469         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
13470         reload dump is requested.
13472 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
13474         PR other/51165
13475         * trans-mem.c (requires_barrier): Call may_be_aliased.
13477 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
13479         PR tree-optimization/51877
13480         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
13481         call arguments and fndecls compare equal, instead return false if they
13482         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
13483         both SSA_NAMEs that are valueized the same, or they satisfy
13484         operand_equal_p.
13486 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13488         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
13489         Solaris 11+.
13490         * configure: Regenerate.
13492 2012-01-16  Jan Hubicka  <jh@suse.cz>
13494         PR c/12245
13495         PR c++/14179
13496         * convert.c (convert_to_integer): Use fold_convert for
13497         converting an INTEGER_CST to integer type.
13499 2012-01-16  Jason Merrill  <jason@redhat.com>
13501         PR c++/14179
13502         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
13504 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
13506         PR bootstrap/51860
13507         * config/s390/s390.c (s390_chunkify_start): Don't skip
13508         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
13509         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
13510         If insn is followed by NOTE_INSN_VAR_LOCATION or
13511         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
13512         Don't use location of note insns.
13514         PR tree-optimization/51865
13515         * tree-inline.c (tree_function_versioning): Call remap_decl
13516         on DECL_RESULT whenever it has VOID_TYPE_P type.
13518 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
13520         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
13521         for calls to locally-binding MIPS16 functions if only the return
13522         type uses float regs.
13524 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
13525             Richard Sandiford  <rdsandiford@googlemail.com>
13527         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
13528         (SYMBOL_32_HIGH): Likewise.
13529         (mips_output_tls_reloc_directive): Declare.
13530         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
13531         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
13532         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
13533         (mips_lo_relocs, mips_hi_relocs): Make extern.
13534         (mips16_stub_function): Move up file.
13535         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
13536         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
13537         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
13538         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
13539         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
13540         (mips_get_tp): Add MIPS16 support.
13541         (mips_legitimize_tls_address): Remove MIPS16 sorry().
13542         Generalize DTPREL and TPREL handling.
13543         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
13544         Add MIPS16 TLS support.
13545         (mips_output_tls_reloc_directive): New function.
13546         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
13547         * config/mips/predicates.md (symbolic_operand_with_high)
13548         (tls_reloc_operand): New predicates.
13549         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
13550         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
13551         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
13552         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
13553         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
13554         (*tls_get_tp_mips16_call_<mode>): Likewise.
13556 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
13558         PR rtl-optimization/51821
13559         * recog.c (peep2_find_free_register): Determine clobbered registers
13560         from insn pattern.
13562 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
13564         PR target/50925
13565         * config/avr/avr-protos.h: Revert change of 2012-01-09.
13566         * config/avr/avr.c: Likewise.
13567         * config/avr/avr.h: Likewise.
13569 2012-01-13  Ian Lance Taylor  <iant@google.com>
13571         PR c++/50012
13572         * tree.h (TYPE_QUALS): Add cast to int.
13573         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
13575 2012-01-13  Ian Lance Taylor  <iant@google.com>
13577         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
13578         comparing param_index to VEC_length result.
13580 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
13582         * c-decl.c: Do not include tree-mudflap.h
13583         * tree-optimize.c: Likewise.
13584         * Makefile.in: Update dependencies.
13586 2012-01-13  Richard Guenther  <rguenther@suse.de>
13588         PR middle-end/8081
13589         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
13590         variable-sized result always use RSO.
13592 2012-01-12  DJ Delorie  <dj@redhat.com>
13594         * cfgexpand.c (convert_debug_memory_address): Allow any valid
13595         pointer type, not just the default pointer type.
13597 2012-01-09  Richard Henderson  <rth@redhat.com>
13598             Denis Chertykov  <chertykov@gmail.com>
13600         PR target/50925
13601         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
13602         * config/avr/avr.c (avr_can_eliminate): Simplify.
13603         (avr_initial_elimination_offset): Likewise.
13604         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
13605         (expand_epilogue): Likewise.
13606         (avr_legitimize_address): Gut.
13607         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
13608         (avr_hard_regno_nregs): New.
13609         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
13610         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
13611         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
13612         add soft frame pointer.
13613         (CALL_USED_REGISTERS): Likewise.
13614         (REG_CLASS_CONTENTS): Likewise.
13615         (REGISTER_NAMES): Likewise.
13616         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
13617         (HARD_FRAME_POINTER_REGNUM): New.
13618         (FRAME_POINTER_REGNUM): Use soft frame pointer.
13619         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
13620         remove the HARD_FRAME_POINTER self-elimination.
13622 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
13624         PR target/51756
13625         * config/avr/avr.c (avr_encode_section_info): Test for absence of
13626         DECL_EXTERNAL when checking for initializers of progmem variables.
13628 2012-01-12  Ira Rosen  <irar@il.ibm.com>
13630         PR tree-optimization/51799
13631         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
13632         that the last operation is a type demotion.
13634 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
13636         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
13637         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
13639 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
13641         PR bootstrap/51796
13642         * combine.c (distribute_notes): If i3 is a noreturn call,
13643         allow old_size to be equal to args_size and make sure the
13644         noreturn call gets REG_ARGS_SIZE note.
13645         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
13646         on noreturn calls even when the delta is 0.
13648 2012-01-11  Nathan Sidwell  <nathan@acm.org>
13650         * gcov.c (STRING_SIZE): Remove.
13651         (generate_results): Erase annotations for source files with no
13652         coverage information.
13653         (read_line): New.
13654         (output_lines): Use it.
13656 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13658         * gimple.h (gimplify_body): Remove first argument.
13659         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
13660         pointer set here, instead just pass DATA to walk_tree.
13661         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
13662         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
13663         (unvisit_body): Likewise, but with unmark_visited.
13664         (gimplify_body): Remove BODY_P argument and adjust.
13665         (gimplify_function_tree): Adjust call to gimplify_body.
13666         * omp-low.c (finalize_task_copyfn): Likewise.
13668 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13670         * tree.h (build_function_decl_skip_args): Add boolean parameter.
13671         (build_function_type_skip_args): Delete.
13672         * tree.c (build_function_type_skip_args): Make static and add
13673         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
13674         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
13675         pass it to build_function_type_skip_args.
13676         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
13677         (tree_function_versioning): Likewise.
13678         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
13679         build_function_decl_skip_args.
13680         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
13681         and pass it to build_function_decl_skip_args/tree_function_versioning.
13682         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
13683         * ipa-inline-transform.c (save_inline_function_body): Likewise.
13684         * trans-mem.c (ipa_tm_create_version): Likewise.
13685         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
13686         * tree-inline.c (declare_return_variable): Remove always-true test.
13687         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
13688         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
13689         * ipa-split.c (split_function): Skip the return value for the split
13690         part if it doesn't return.
13692 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13694         PR tree-optimization/49642
13695         * ipa-split.c (forbidden_dominators): New variable.
13696         (check_forbidden_calls): New function.
13697         (dominated_by_forbidden): Likewise.
13698         (consider_split): Check for forbidden dominators.
13699         (execute_split_functions): Initialize and free forbidden
13700         dominators info; call check_forbidden_calls.
13702 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13704         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
13706 2012-01-11  Nick Clifton  <nickc@redhat.com>
13708         * config/rx/rx.md (return): Define pattern.
13710 2012-01-11  Richard Guenther  <rguenther@suse.de>
13712         * doc/extend.texi (malloc attribute): Adjust according to
13713         implementation.
13715 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
13716             Patrick Marlier  <patrick.marlier@gmail.com>
13718         PR middle-end/51516
13719         * trans-mem.c (get_cg_data): Traverse aliases if requested.
13720         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
13721         (ipa_tm_note_irrevocable): Same.
13722         (ipa_tm_scan_irr_block): Same.
13723         (ipa_tm_decrement_clone_counts): Same.
13724         (ipa_tm_scan_irr_function): Same.
13725         (ipa_tm_create_version_alias): Same.
13726         (ipa_tm_create_version): Same.
13727         (ipa_tm_transform_calls_redirect): Same.
13728         (ipa_tm_transform_calls): Same.
13729         (ipa_tm_transform_transaction): Same.
13730         (ipa_tm_execute): Same.
13732 2012-01-10  Richard Guenther  <rguenther@suse.de>
13734         PR middle-end/51806
13735         * opts.c (common_handle_option): Handle -Werror.
13737 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
13739         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
13740         operand number.
13742 2012-01-10  Jason Merrill  <jason@redhat.com>
13744         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
13745         information.
13747 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13749         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
13750         supports R_386_TLS_GD_PLT reloc.
13751         (gcc_cv_as_ix86_tlsldmplt): Check if linker
13752         supports R_386_TLS_LDM_PLT reloc.
13753         * configure: Regenerate.
13754         * config.in: Regenerate.
13756 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
13758         PR target/49868
13759         Extend __pgmx semantics to linearize memory.
13760         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
13761         determine if code comes inline or from libgcc.
13762         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
13763         (movmem_qi, movmem_qi): Set constraint #2 to "n".
13764         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
13765         (movmemx_qi, movmemx_hi): New insns.
13766         (xload_<mode>_libgcc): Rewrite to new insn condition.
13767         (xload_<mode>): Remove insns.
13768         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
13769         cases that don't satisfy avr_xload_libgcc_p().
13770         (avr_addr_space_convert): Allow converting in any direction.
13771         (avr_addr_space_subset_p): Return always true.
13772         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
13773         (avr_emit_movmemhi): Ditto.
13774         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
13775         (avr_out_movmem): Ditto.
13776         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
13777         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
13778         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
13779         (avr_encode_section_info): Encode 'progmem' in symbol flags.
13780         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
13782 2012-01-10  Richard Guenther  <rguenther@suse.de>
13784         PR tree-optimization/50913
13785         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
13786         Require data-refs to be representable by Graphite with respect
13787         to any loop nest.
13789 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
13791         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
13792         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
13794 2012-01-10  Tom de Vries  <tom@codesourcery.com>
13796         PR rtl-optimization/51271
13797         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
13798         handling annulled branch.
13800 2012-01-10  Richard Henderson  <rth@redhat.com>
13802         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
13803         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
13804         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
13805         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
13806         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
13807         arm_expand_vec_perm_const): New.
13808         * config/arm/arm-protos.h: Update.
13809         * config/arm/neon.md (UNSPEC_VCONCAT): New.
13810         (*neon_vswp<VDQX>): New.
13811         (neon_vcombine<VDX>): Use neon_split_vcombine.
13812         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
13813         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
13814         (vec_perm<VE>): New.
13816 2012-01-10  Richard Henderson  <rth@redhat.com>
13818         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
13819         use it if reload_completed.
13820         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
13821         arm_output_asm_insn, arm_process_output_memory_barrier,
13822         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
13823         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
13824         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
13825         arm_process_output_sync_insn, arm_output_sync_insn,
13826         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
13827         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
13828         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
13829         (emit_unlikely_jump): New.
13830         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
13831         (arm_split_atomic_op): New.
13832         * config/arm/arm-protos.h: Update.
13833         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
13834         (struct arm_sync_generator): Remove.
13835         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
13836         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
13837         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
13838         (VUNSPEC_LL, VUNSPEC_SC): New.
13839         (sync_result, sync_memory, sync_required_value, sync_new_value,
13840         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
13841         (attr length): Don't use arm_sync_loop_insns.
13842         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
13843         (movsfcc, movdfcc): Likewise.
13844         * config/arm/constraints.md (Ua): New.
13845         * config/arm/prediates.md (mem_noofs_operand): New.
13846         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
13847         (sync_clobber, sync_t2_reqd): Remove.
13848         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
13849         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
13850         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
13851         (arm_sync_compare_and_swap<SIDI>): Remove.
13852         (arm_sync_compare_and_swap<NARROW>): Remove.
13853         (arm_sync_lock_test_and_set<SIDI>): Remove.
13854         (arm_sync_lock_test_and_set<NARROW>): Remove.
13855         (arm_sync_new_<syncop><SIDI>): Remove.
13856         (arm_sync_new_<syncop><NARROW>): Remove.
13857         (arm_sync_new_nand<SIDI>): Remove.
13858         (arm_sync_new_nand<NARROW>): Remove.
13859         (arm_sync_old_<syncop><SIDI>): Remove.
13860         (arm_sync_old_<syncop><NARROW>): Remove.
13861         (arm_sync_old_nand<SIDI>): Remove.
13862         (arm_sync_old_nand<NARROW>): Remove.
13863         (*memory_barrier): Merge arm_output_memory_barrier.
13864         (atomic_compare_and_swap<QHSD>): New.
13865         (atomic_compare_and_swap<NARROW>_1): New.
13866         (atomic_compare_and_swap<SIDI>_1): New.
13867         (atomic_exchange<QHSD>): New.
13868         (cas_cmp_operand, cas_cmp_str): New.
13869         (atomic_op_operand, atomic_op_str): New.
13870         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
13871         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
13872         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
13873         (arm_load_exclusive<NARROW>): New.
13874         (arm_load_exclusivesi, arm_load_exclusivedi): New.
13875         (arm_store_exclusive<QHSD>): New.
13877 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13879         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
13880         reload patterns if -mvsx-scalar-memory.
13882         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
13883         generated, even -mno-vsx-scalar-double was used.
13884         (vsx_xscvdpsp_scalar): Likewise.
13885         (vsx_xscvspdp_scalar2): Likewise.
13887 2012-01-09  Tom de Vries  <tom@codesourcery.com>
13888             Andrew Pinski  <apinski@cavium.com>
13890         PR debug/51471
13891         * reorg.c (fill_slots_from_thread): Don't speculate
13892         frame-related insns.
13894 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13896         * sched-int.h (bb_note): Move to...
13897         * basic-block.h: ...here.
13898         * haifa-sched.c (bb_note): Move to...
13899         * cfgrtl.c: ...here.
13900         * function.c (next_block_for_reg): New function.
13901         (move_insn_for_shrink_wrap): Likewise.
13902         (prepare_shrink_wrap): Rewrite to use the above.
13904 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
13906         * gimple.c (is_gimple_non_addressable): Remove.
13907         * gimple.h: Remove is_gimple_non_addressable.
13908         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
13909         is_gimple_non_addressable.
13910         * trans-mem.c (expand_assign_tm): Same.
13912 2012-01-09  Richard Guenther  <rguenther@suse.de>
13914         PR tree-optimization/51775
13915         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
13916         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
13918 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13920         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
13921         tuning parameters.
13922         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
13924 2012-01-09  Richard Guenther  <rguenther@suse.de>
13926         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
13928 2012-01-08  Jan Hubicka  <jh@suse.cz>
13930         PR tree-optimize/51680
13931         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
13932         on when known_vals needs to be computed; cleanup.
13934 2012-01-08  Jan Hubicka  <jh@suse.cz>
13936         PR tree-optimize/51694
13937         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
13939 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
13941         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
13942         for -std=c++98 and -std=c++11 too.
13944 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
13946         * cfgloop.c (cancel_loop): Add free() of bbs array.
13948 2012-01-07  Jan Hubicka  <jh@suse.cz>
13950         PR tree-optimization/51600
13951         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
13952         that benefits small functions.
13954 2012-01-07  Jan Hubicka  <jh@suse.cz>
13956         * ipa-inline.c (want_inline_small_function_p): Fix formating.
13958 2012-01-07  Jan Hubicka  <jh@suse.cz>
13960         PR tree-optimization/51680
13961         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
13962         whose inlining reduce unit size.
13964 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
13966         PR bootstrap/51725
13967         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
13968         Add canonical node to containing_mem chain after the non-canonical
13969         one, even if there weren't any locs to propagate.
13970         (remove_useless_values): Keep only canonical values.
13971         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
13972         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
13973         canonicalize mem_chain elements that are not discarded.
13975 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
13977         PR target/47333
13978         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
13979         before emitting functions.
13981         PR gcov-profile/50127
13982         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
13983         clear_aux_for_blocks.
13985 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
13987         PR debug/51746
13988         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
13990 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
13992         * c-decl.c (ext_block): Moved up.
13993         (collect_all_refs, for_each_global_decl): Take ext_block into account.
13995 2012-01-06  Han Shen  <shenhan@google.com>
13997         Translate built-in include paths for sysroot.
13998         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
13999         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
14001         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
14002         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
14004         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
14005         control whether sysroot should be prepended to gxx include dir.
14007         * configure: Regenerate.
14009 2012-01-06  Torvald Riegel  <triegel@redhat.com>
14011         PR rtl-optimization/51771
14012         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
14013         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
14015 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14017         PR tree-optimization/51315
14018         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
14019         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
14021 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
14023         PR target/51681
14024         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
14025         for shrp pattern.  Correctly handle and fixup shift variable.
14026         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
14028 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14030         PR debug/51762
14031         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
14032         note when !ACCUMULATE_OUTGOING_ARGS.
14034 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14036         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
14037         condition.
14038         (extract_range_from_unary_expr_1): Avoid useless computations.
14040 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14042         PR rtl-optimization/51767
14043         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
14044         of jump_block and add an extra edge for degenerated asm gotos.
14046         PR middle-end/51768
14047         * stmt.c (check_unique_operand_names): Don't ICE during error
14048         reporting if i is from labels chain.
14050         PR middle-end/44777
14051         * profile.c (branch_prob): Split bbs that have exit edge
14052         and need a fake entry edge too.
14054 2012-01-05  Jan Hubicka  <jh@suse.cz>
14056         PR middle-end/49710
14057         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
14058         unlooping loops.
14060 2012-01-05  Richard Guenther  <rguenther@suse.de>
14062         PR lto/50490
14063         * tree-streamer-out.c (write_ts_optimization): New function.
14064         (streamer_write_tree_body): Call it.
14065         * tree-streamer-in.c (lto_input_ts_optimization): New function.
14066         (streamer_read_tree_body): Call it.
14067         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
14069 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14071         PR middle-end/51761
14072         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
14073         * gimplify.c (gimplify_cleanup_point_expr): Save and set
14074         in_cleanup_point_expr before gimplify_stmt call and restore it
14075         afterwards.
14076         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
14077         in_cleanup_point_expr is false.
14079 2012-01-05  Richard Guenther  <rguenther@suse.de>
14081         PR middle-end/51764
14082         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
14083         to c.opt.
14084         * toplev.c (process_options): Reject combining mudflap and LTO.
14085         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
14087 2012-01-05  Richard Guenther  <rguenther@suse.de>
14089         PR tree-optimization/51760
14090         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
14091         not VARYING.
14092         (bit_value_unop): Handle UNDEFINED operands.
14093         (bit_value_binop): Likewise.
14095 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
14097         * config/avr/avr.c (avr_replace_prefix): Remove.
14098         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
14099         (avr_asm_function_rodata_section): Ditto.
14100         (avr_asm_select_section): Ditto.
14102 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14104         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
14105         insertion.
14107 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
14109         PR bootstrap/51648
14110         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
14111         calls that have any non-fake successor edges.
14113         PR debug/51746
14114         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
14116 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14118         PR tree-optimization/51624
14119         * tree-sra.c (build_ref_for_model): When replicating a chain of
14120         COMPONENT_REFs, stop as soon as the offset would become negative.
14122 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
14124         PR debug/51695
14125         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
14126         in .debug_loc on the floor.
14128 2012-01-04  Andrew Pinski  <apinski@cavium.com>
14130         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
14132 2012-01-04  Andrew Pinski  <apinski@cavium.com>
14133             Adam Nemet  <anemet@caviumnetworks.com>
14135         * config/mips/mips.md (size): Add SI and DI.
14136         (SIZE): New mode attribute.
14137         (U): New code attribute.
14138         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
14139         (mips_lbux_<mode>): Delete.
14140         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
14141         (mips_lhx): Use gen_mips_lhx_extsi.
14142         (mips_lhx_<mode>): Delete.
14143         (mips_lwx): Delete.
14144         (mips_l<size>x): New expand.
14145         (mips_lwx_<mode>): Delete.
14146         (mips_l<GPR:size>x_<P:mode>): New pattern.
14147         (*mips_lw<u>x_<P:mode>_ext): Likewise.
14148         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
14149         * config/mips/mips.c (mips_lx_address_p): New function.
14150         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
14151         (dsp64): New availability predicate.
14152         (mips_builtins): Add an entry for __builtin_mips_ldx.
14153         * config/mips/mips.h (ISA_HAS_LBX): New define.
14154         (ISA_HAS_LBUX): Likewise.
14155         (ISA_HAS_LHX): Likewise.
14156         (ISA_HAS_LHUX): Likewise.
14157         (ISA_HAS_LWX): Likewise.
14158         (ISA_HAS_LWUX): Likewise.
14159         (ISA_HAS_LDX): Likewise.
14160         * doc/extend.texi (__builtin_mips_ldx): Document.
14162 2012-01-04  Tristan Gingold  <gingold@adacore.com>
14164         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
14165         when long pointers are used.
14166         * config.build (*-*-*vms*): Handle all OpenVMS targets.
14167         (alpha64-dec-*vms*, alpha*-dec-*vms*)
14168         (ia64-hp-*vms*): Remove.
14169         * config/vms/xm-vms64.h: Delete.
14171 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
14173         PR middle-end/51472
14174         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
14176 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
14178         * opts.c (finish_options): Remove duplicate sorry.
14180 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
14182         PR middle-end/51696
14183         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
14184         correctly.
14186 2012-01-04  Richard Guenther  <rguenther@suse.de>
14188         PR middle-end/51750
14189         * tree.c (size_low_cst): New function.
14190         * tree.h (size_low_cst): Declare.
14191         * fold-const.c (fold_comparison): Use it to extract the low
14192         part of the POINTER_PLUS_EXPR offset.
14194 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
14196         Fix clearing ZERO_REG
14197         * config/avr/avr.md (cc): Add alternative "ldi".
14198         (movqi_insn): Use it in cc attribute.
14199         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
14200         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
14201         (output_reload_insisf): Use ZERO_REG to pre-clear register.
14203 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14205         * configure: Regenerate.
14207 2012-01-04  Richard Guenther  <rguenther@suse.de>
14209         PR tree-optimization/49651
14210         * tree-ssa-structalias.c (type_can_have_subvars): New function.
14211         (var_can_have_subvars): Use it.
14212         (get_constraint_for_1): Only consider subfields if there can be any.
14214 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
14216         PR bootstrap/51725
14217         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
14218         to its new canonical_cselib_val and the cselib_val was in
14219         first_containing_mem chain, but the canonical_cselib_val was not,
14220         add the latter into the chain.
14221         (cselib_invalidate_mem): Compare canonical_cselib_val of
14222         addr_list chain elt with v.
14224         PR pch/51722
14225         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
14226         dwarf2out_undef): Allocate e.info using ggc_strdup instead
14227         of xstrdup.
14228         (output_macinfo_op): Don't ggc_strdup fd->filename.
14229         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
14230         then ggc_strdup it.  Don't free inc->info or cur->info.
14231         (output_macinfo): Don't free ref->info or file->info.
14233 2012-01-03  Ira Rosen  <irar@il.ibm.com>
14235         PR tree-optimization/51269
14236         * tree-vect-loop-manip.c (set_prologue_iterations): Make
14237         first_niters a pointer.
14238         (slpeel_tree_peel_loop_to_edge): Likewise.
14239         (vect_do_peeling_for_loop_bound): Update call to
14240         slpeel_tree_peel_loop_to_edge.
14241         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
14242         here.  Remove it from the parameters list.
14243         (vect_do_peeling_for_alignment): Update calls and compute
14244         wide_prolog_niters.
14246 2012-01-03  Richard Guenther  <rguenther@suse.de>
14248         PR tree-optimization/51070
14249         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
14250         Properly handle calls.
14252 2012-01-03  Richard Guenther  <rguenther@suse.de>
14254         PR tree-optimization/51692
14255         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
14256         the LHS of allocation stmts.
14258 2012-01-03  Olivier Hainque  <hainque@adacore.com>
14260         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
14262 2012-01-03  Olivier Hainque  <hainque@adacore.com>
14264         * collect2.c (main): In AIX specific computations for vector
14265         insertions, use CONST_CAST2 to cast from char ** to const char **.
14267 2012-01-03  Richard Guenther  <rguenther@suse.de>
14269         PR debug/51650
14270         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
14271         the context of a limbo DIE when it does not already exist.
14273 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
14275         PR tree-optimization/51719
14276         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
14277         but direct call is, clear direct call's lhs and don't add fallthrough
14278         edge from dcall_bb to join_bb and PHIs.
14280 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14282         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
14283         the instructions emitted by the pattern.
14284         ("*TDC_insn_<mode>"): Add comment.
14286 2012-01-03  Richard Guenther  <rguenther@suse.de>
14288         PR middle-end/51730
14289         * fold-const.c (fold_comparison): Properly canonicalize
14290         tree offset and HOST_WIDE_INT bit position.
14292 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
14294         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
14295         operands for extzv pattern.
14297 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
14299         PR bootstrap/51725
14300         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
14301         on mem_elt first.
14303 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
14305         * doc/invoke.texi (-flto and related options): Copy-edit.
14307 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14309         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
14311 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
14313         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
14314         New patterns.
14316 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14318         * expr.h (move_by_pieces_ninsns): Declare.
14319         * expr.c (move_by_pieces_ninsns): Make external.
14320         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
14321         (mips_store_by_pieces_p): Likewise.
14322         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
14323         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
14324         * config/mips/mips.c (mips_move_by_pieces_p): New function.
14325         (mips_store_by_pieces_p): Likewise.
14327 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
14329         * passes.c (register_one_dump_file): Free full_name.
14331         * reload1.c (reload): Don't allocate reg_max_ref_width here.
14332         (calculate_elim_costs_all_insns): Free offsets_at and
14333         offsets_known_at at the end and clear the pointers.
14335 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14337         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
14338         this option introduced in r180739.
14340 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14342         PR target/51345
14343         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
14344         (tmake_file target=avr): Add avr/t-multilib.
14346         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
14347         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
14348         * config/avr/genmultilib.awk: New file.
14349         * config/avr/t-multilib: New auto-generated file.
14350         * config/avr/multilib.h: New auto-generated file.
14351         * config/avr/t-avr (AVR_MCUS): New variable.
14352         (genopt.sh): Use it.
14353         (s-mlib): Depend on t-multilib.
14354         (t-multilib, multilib.h): New dependencies.
14355         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
14356         (MULTILIB_OPTIONS): Remove.
14357         (MULTILIB_MATCHES): Remove.
14358         (MULTILIB_DIRNAMES): Remove.
14359         (MULTILIB_EXCEPTIONS): Remove:
14360         * config/avr/genopt.sh: Don't use hard coded file name;
14361         pass AVR_MCUS from t-avr instead.
14363 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14365         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
14367 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
14369         Implement light-weight DImode support.
14370         * config/avr/avr-dimode.md: New file.
14371         * config/avr/avr.md: Include it.
14372         (adjust_len): Add plus64, compare64.
14373         (HIDI): Remove code iterator.
14374         (code_stdname): New code attribute.
14375         (rotx, rotsmode): Remove DI.
14376         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
14377         as code iterator.
14378         * config/avr/avr-protos.h (avr_have_dimode): New.
14379         (avr_out_plus64, avr_out_compare64): New.
14380         * config/avr/avr.c (avr_out_compare): Handle DImode.
14381         (avr_have_dimode): New variable definition and initialization.
14382         (avr_out_compare64, avr_out_plus64): New functions.
14383         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
14384         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
14385         (avr_compare_pattern): Skip DImode comparisons.
14387 2012-01-02  Revital Eres  <revital.eres@linaro.org>
14389         * ddg.c (def_has_ccmode_p): New function.
14390         (add_cross_iteration_register_deps,
14391         create_ddg_dep_from_intra_loop_link): Call it.
14393 2012-01-02  Richard Guenther  <rguenther@suse.de>
14395         PR other/51679
14396         * invoke.texi (fassociative-math): Remove spurious paranthesis.
14398 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
14400         * gcc.c (process_command): Update copyright notice dates.
14401         * gcov.c (print_version): Likewise.
14402         * gcov-dump.c (print_version): Likewise.
14403         * mips-tfile.c (main): Likewise.
14404         * mips-tdump.c (main): Likewise.
14406 2012-01-01  Ira Rosen  <irar@il.ibm.com>
14408         PR tree-optimization/51704
14409         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
14410         a use is inside the basic block or loop before accessing its vect info.
14412 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
14414         PR rtl-optimization/51069
14415         * cfgloopmanip.c (remove_path): Removing path making irreducible
14416         region unconditional makes BB part of the region.
14418 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
14420         PR tree-optimization/51683
14421         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
14422         calls with side-effects.
14423         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14425 Copyright (C) 2012 Free Software Foundation, Inc.
14427 Copying and distribution of this file, with or without modification,
14428 are permitted in any medium without royalty provided the copyright
14429 notice and this notice are preserved.