OSDN Git Service

PR debug/48333
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
2
3         PR debug/48333
4         * calls.c (emit_call_1): Prefer the __builtin declaration of
5         builtin functions.
6
7 2011-06-03   Diego Novillo  <dnovillo@google.com>
8
9         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
10         (lto_input_tree_pointers): Likewise.
11         * lto-streamer-out.c (pack_value_fields): Likewise.
12         (lto_output_tree_pointers): Likewise.
13         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
14         and OPTIMIZATION_NODE.
15
16 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17
18         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
19         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
20         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
21         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
22         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
23         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
24         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
25         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
26         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
27         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
28         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
29         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
30         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
31         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
32         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
33         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
34         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
35         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
36         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
37         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
38         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
39         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
40         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
41         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
42         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
43         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
44         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
45         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
46         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
47         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
48         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
49         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
50         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
51         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
52         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
53         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
54         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
55         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
56         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
57         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
58         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
59         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
60         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
61         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
62         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
63         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
64         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
65         * system.h (MD_UNWIND_SUPPORT): Poison.
66         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
67         * doc/tm.texi: Regenerate.
68         * unwind-dw2.c: Include md-unwind-support.h instead of
69         MD_UNWIND_SUPPORT.
70         * config/ia64/unwind-ia64.c: Likewise.
71         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
72
73 2011-06-03  Jack Howarth <howarth@bromo.med.uc.edu>
74
75         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
76
77 2011-06-03  Richard Henderson  <rth@redhat.com>
78             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
79
80         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
81         (sigill_hdlr): Correct insn, insn size.
82         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
83
84 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
85
86         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
87         t-slibgcc-dummy.
88         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
89         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
90         * config/mips/t-iris: Remove.
91         * config/mips/t-irix6: New file.
92         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
93
94 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
95
96         * Makefile.in (LIB2ADDEHDEP): Remove.
97         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
98         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
99         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
100         * config/t-darwin (LIB2ADDEHDEP): Remove.
101         * config/t-freebsd (LIB2ADDEHDEP): Remove.
102         * config/t-linux (LIB2ADDEHDEP): Remove.
103
104 2011-06-03  Diego Novillo  <dnovillo@google.com>
105
106         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
107         (lto_register_var_decl_in_symtab): Likewise.
108         (lto_register_function_decl_in_symtab): Likewise.
109         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
110         logic to uniquify_nodes.
111
112 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
113
114         * config/alpha/t-osf5: Remove.
115         * config/alpha/t-osf-pthread: Remove.
116         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
117         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
118
119 2011-06-03  Julian Brown  <julian@codesourcery.com>
120
121         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
122         (strongarm1110): Use strongarm tuning.
123         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
124         field.
125         * config/arm/arm.c (arm_strongarm_tune): New.
126         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
127         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
128         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
129         setting, using previous defaults or 1 for Cortex-A5.
130         (arm_option_override): Set max_insns_skipped from current tuning.
131
132 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
133
134         * doc/install.texi (Options specification): Document --with-specs.
135
136 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
137
138         * config/arm/neon.md (orndi3_neon): Actually split it.
139
140 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
141
142         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
143         * var-tracking.c (reverse_op): Limite recurse depth to 5.
144
145 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
146
147         PR debug/47590
148         * target.def (delay_sched2, delay_vartrack): New.
149         * doc/tm.texi.in: Update.
150         * doc/tm.texi: Rebuild.
151         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
152         * var-tracking.c (gate_handle_var_tracking): Likewise.
153         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
154         (bfin_flag_var_tracking): Drop.
155         (output_file_start): Don't save and override flag_var_tracking.
156         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
157         (bfin_reorg): Test original variables.
158         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
159         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
160         (ia64_flag_var_tracking): Drop.
161         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
162         (ia64_file_start): Don't save and override flag_var_tracking.
163         (ia64_override_options_after_change): Ditto
164         flag_schedule_insns_after_reload.
165         (ia64_reorg): Test original variables.
166         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
167         (picochip_flag_var_tracking): Drop.
168         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
169         (picochip_option_override): Don't save and override
170         flag_schedule_insns_after_reload.
171         (picochip_asm_file_start): Ditto flag_var_tracking.
172         (picochip_reorg): Test original variables.
173         * config/spu/spu.c (spu_flag_var_tracking): Drop.
174         (TARGET_DELAY_VARTRACK): Define.
175         (spu_var_tracking): New.
176         (spu_machine_dependent_reorg): Call it.
177         (asm_file_start): Don't save and override flag_var_tracking.
178
179 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
180
181         PR target/49163
182         * config/sh/predicates.md (general_movsrc_operand): Return 0
183         for memory and memory subreg of which address is an invalid
184         indexed address for QI and HImode.
185         (general_movdst_operand): Likewise.
186
187 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
188
189         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
190         edges only, when there is a non-local label in the function.
191         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
192
193 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
194
195         * config/i386/constraints.md (Y3): New register constraint.
196         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
197         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
198         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
199         *sse2_interleave_lowv2df.
200
201 2011-06-02  Julian Brown  <julian@codesourcery.com>
202
203         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
204         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
205         (arm_cortex_a5_tune): New.
206
207 2011-06-02  Julian Brown  <julian@codesourcery.com>
208
209         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
210         * config/arm/arm.c (arm_default_branch_cost): New.
211         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
212         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
213         (arm_fa726_tune): Set branch_cost field using
214         arm_default_branch_cost.
215         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
216         current_tune structure.
217         * dojump.c (tm_p.h): Include file.
218
219 2011-06-02  Julian Brown  <julian@codesourcery.com>
220
221         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
222         tuning.
223         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
224         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
225         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
226         field.
227         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
228         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
229         (arm_fa726te_tune): Add prefer_constant_pool setting.
230         (arm_v6t2_tune, arm_cortex_tune): New.
231         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
232         prefer_constant_pool setting.
233
234 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
235
236         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
237         switch statement.
238         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
239         (*movdf_internal) <case 6,7,8>: Ditto.
240
241         * config/i386/constraints.md (Y4): New register constraint.
242         * config/i386/sse.md (vec_set<mode>_0): Merge with
243         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
244         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
245         *vec_extractv2di_1_sse.
246         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
247         and *vec_concatv2di_rex64_sse.
248
249 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
250
251         PR target/48807
252         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
253         of cgraph_local_info for null before attempting to use it.
254
255 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
256
257         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
258         (current_function_dynamic_alloc_count): Delete.
259         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
260         (expand_builtin_nonlocal_goto): Remove obsolete comment.
261         (expand_builtin_update_setjmp_buf): Remove dead code.
262         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
263         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
264         support.
265         * function.c (instantiate_virtual_regs): Likewise.
266         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
267         for a block with a single abnormal incoming edge.
268         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
269         (SETJMP_VIA_SAVE_AREA): Delete.
270         * config/sparc/sparc-protos.h (load_got_register): Declare.
271         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
272         (load_got_register): Make global.
273         (sparc_frame_pointer_required): Add 'static'.
274         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
275         (sparc_builtin_setjmp_frame_value): New function.
276         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
277         (save_stack_nonlocal): New expander.
278         (restore_stack_nonlocal): Likewise.
279         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
280         (nonlocal_goto_internal): New insn.
281         (goto_handler_and_restore): Delete.
282         (builtin_setjmp_setup): Likewise.
283         (do_builtin_setjmp_setup): Likewise.
284         (setjmp): Likewise.
285         (builtin_setjmp_receiver): New expander.
286
287 2011-06-01  David Li  <davidxl@google.com>
288
289         PR middle-end/49261
290         * tree-pretty-print.c (dump_function_header): Format cleanup.
291
292 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
293
294         PR target/49238
295         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
296         needed when original operands are used for msw_skip comparison.
297
298 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
299
300         PR debug/49250
301         * var-tracking.c (add_uses, add_stores): Don't call
302         cselib_subst_to_values on ENTRY_VALUE.
303
304 2011-06-01  Diego Novillo  <dnovillo@google.com>
305
306         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
307         output_record_start with LTO_null instead of output_zero.
308         (lto_output_ts_binfo_tree_pointers): Likewise.
309         (lto_output_tree): Likewise.
310         (output_eh_try_list): Likewise.
311         (output_eh_region): Likewise.
312         (output_eh_lp): Likewise.
313         (output_eh_regions): Likewise.
314         (output_bb): Likewise.
315         (output_function): Likewise.
316         (output_unreferenced_globals): Likewise.
317         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
318         instead of NUM_TREE_CODES.
319         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
320         (lto_output_int_in_range): Change << to >> when shifting VAL.
321
322 2011-06-01  Diego Novillo  <dnovillo@google.com>
323
324         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
325         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
326
327 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
328
329         PR target/45074
330         * optabs.h (valid_multiword_target_p): Declare.
331         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
332         doing multi-word operations.
333         * optabs.c (expand_binop): Likewise.
334         (expand_doubleword_bswap): Likewise.
335         (expand_absneg_bit): Likewise.
336         (expand_unop): Likewise.
337         (expand_copysign_bit): Likewise.
338         (multiword_target_p): New function.
339
340 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
341
342         PR rtl-optimization/48830
343         PR rtl-optimization/48808
344         PR rtl-optimization/48792
345         * reload.c (push_reload): Check contains_reg_of_mode.
346         * reload1.c (strip_paradoxical_subreg): New function.
347         (gen_reload_chain_without_interm_reg_p): Use it to handle
348         paradoxical subregs.
349         (emit_output_reload_insns, gen_reload): Likewise.
350
351 2011-06-01  David Li  <davidxl@google.com>
352
353         * predict.c : Change pass name
354         * ipa.c: Ditto.
355         * dce.c: Ditto.
356         * tree-profile.c: Ditto.
357         * except.c: Ditto.
358
359 2011-06-01  David Li  <davidxl@google.com>
360
361         * tree-pretty-print.c (dump_function_header): New function.
362         * final.c (rest_of_clean_state): Use header dumper.
363         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
364         * passes.c (pass_init_dump_file): Use header dumper.
365
366 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
367
368         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
369         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
370         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
371         New functions.
372         (mem_loc_descriptor): Use them.
373
374         * var-tracking.c (create_entry_value): New function.
375         (vt_add_function_parameter): Use it.
376
377 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
378
379         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
380         Include <signal.h>, <ucontext.h>.
381         (sigill_caught): Define.
382         (sigill_hdlr): New function.
383         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
384         insns can be executed.
385         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
386         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
387
388 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
389
390         * config/t-slibgcc-darwin: Move to ...
391         * config/t-slibgcc-dummy: ... this.  Clarify comments.
392         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
393         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
394         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
395         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
396         Remove i386/t-crtstuff from tmake_file.
397         (i[34567]86-*-solaris2*): Remove t-svr4,
398         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
399         t-slibgcc-dummy.
400         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
401         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
402         sparc/t-crtfm from tmake_file.
403         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
404         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
405         Remove extra_parts.
406         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
407         * config/i386/t-nwld (SHLIB_LINK): Remove.
408         * config/i386/t-rtems-i386: Rename to ...
409         * config/i386/t-rtems: ... this.
410         ($(T)crti.o, $(T)crtn.o): Remove.
411         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
412         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
413         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
414         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
415         EXTRA_MULTILIB_PARTS): Remove.
416         * config/sparc/t-sol2-64: Likewise.
417         * config/sparc/t-sol2: Remove.
418         * config/sparc/t-crtin: Remove.
419         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
420         * config/i386/gmon-sol2.c: Remove.
421         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
422         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
423         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
424         * config/i386/sol2-gc1.asm: Remove.
425         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
426         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
427         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
428         * config/t-slibgcc-sld: Remove.
429
430 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
431
432         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
433         base_type_for_mode with op_mode instead of mode.
434
435 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
436
437         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
438         Cortex-A15.
439         * config/arm/arm-tune.md: Regenerate.
440         * config/arm/arm-tables.opt: Regenerate.
441         * config/arm/arm.c (FL_DIV): Rename...
442         (FL_THUMB_DIV): ... to this.
443         (FL_ARM_DIV): Define.
444         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
445         (arm_arch_hwdiv): Remove.
446         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
447         (arm_issue_rate): Add cortexr5.
448         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
449         __ARM_ARCH_EXT_IDIV__.
450         (TARGET_IDIV): Define.
451         (arm_arch_hwdiv): Remove.
452         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
453         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
454         (divsi3, udivsi3): New patterns.
455         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
456         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
457
458 2011-06-01  Martin Jambor  <mjambor@suse.cz>
459
460         * ipa-utils.c (ipa_dfs_info): New field scc_no.
461         * ipa-utils.c (searchc): Set scc_no.
462
463 2011-06-01  Martin Jambor  <mjambor@suse.cz>
464
465         * ipa-utils.c (searchc_env): New field allow_overwritable.
466         (searchc): do not ignore edges to overwritable nodes if indicated
467         by env->allow_overwritable.
468         (ipa_reduced_postorder): Set env.allow_overwritable.
469
470 2011-06-01  Richard Guenther  <rguenther@suse.de>
471
472         * tree.c (free_lang_data): Do not reset boolean_type_node nor
473         char_type_node.
474         * lto-streamer.c (lto_record_common_node): Take node pointer,
475         do not register types.
476         (lto_preload_common_nodes): Explicitly skip preloading nodes
477         that differ between frontends.
478
479 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
480
481         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
482         NON_FLOAT_REGS.
483
484 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
485
486         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
487         parameter value for dump. Dump cost on outermost call only.
488         (rs6000_memory_move_cost): Dump cost on outermost call only.
489
490 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
491
492         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
493         DW_OP_GNU_convert ops.
494
495         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
496         cselib_preserve_constants.
497         (cselib_lookup_1): If cselib_preserve_constants,
498         a new VALUE is being created for REG and there is a VALUE for the
499         same register in wider mode, add another loc with lowpart SUBREG of
500         the wider VALUE.
501         (cselib_subst_to_values): Handle ENTRY_VALUE.
502         * var-tracking.c  (replace_expr_with_values): Return NULL for
503         ENTRY_VALUE too.
504         * dwarf2out.c (convert_descriptor_to_signed): New function.
505         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
506         instead of two shifts.
507         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
508         the right mode if needed.
509         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
510         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
511         convert_descriptor_to_signed.
512         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
513         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
514
515         PR target/48688
516         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
517
518 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
519
520         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
521         of X87MODEI12 and SWI48x instead of SSEMODEI24.
522         (SWI248x): New mode iterator, rename from X87MODEI.
523         (X87MODEI): Remove mode iterator.
524         (X87MODEI12): Ditto.
525         (SSEMODEI24): Ditto.
526
527 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
528
529         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
530         * doc/invoke.texi: Document max-vartrack-expr-depth.
531         * var-tracking.c (EXPR_DEPTH): New.
532         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
533
534 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
535
536         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
537         * config/i386/sse.md: Add n to negated FMA pattern names.
538
539 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
540
541         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
542
543 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
544
545         * gengtype-state.c (read_state_params_structs): Initialize previous.
546
547 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
548
549         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
550         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
551
552 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
553
554         * config/i386/i386.md (*movtf_internal): Avoid allocating general
555         registers.  Penalize F*r->o alternative to prevent partial memory
556         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
557         CONST_DOUBLE immediates when optimizing function for size.  Do not move
558         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
559         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
560         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
561         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
562         alternatives.
563         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
564
565         (fp_register_operand splitters): Use fp_register_operand
566         constraint.  Do not use FP_REG_P in insn condition.
567         (any_fp_register_operand splitters): Use any_fp_register_operand
568         constraint.  Do not use ANY_FP_REG_P in insn condition.
569
570 2011-05-31  Jan Hubicka  <jh@suse.cz>
571
572         * cgraph.h (cgraph_inline_failed_t): Give enum a name
573         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
574         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
575         (lto_output_edge): Use output_enum and var_len_unsigned.
576         (lto_output_varpool_node): Likewise.
577         (input_overwrite_node): Do not take resolution parameter;
578         extract it from a bitpack.
579         (input_node): Do not read resolution; use input_enum and
580         var_len_unsigned.
581         (input_varpool_node): Likewise.
582         (input_edge): Likewise.
583         (input_cgraph_1): Likewise.
584
585 2011-05-31  Richard Guenther  <rguenther@suse.de>
586
587         * gimple.c (gimple_register_canonical_type): Do not register
588         any types via gimple_register_type.
589
590 2011-05-31  Jan Hubicka  <jh@suse.cz>
591
592         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
593         of thunks.
594
595 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
596
597         PR rtl-optimization/49235
598         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
599         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
600
601 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
602
603         PR tree-optimization/49093
604         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
605         data references.
606
607 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
608
609         PR debug/49047
610         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
611         for concrete functions containing the code of cloned functions.
612
613 2011-05-31  Richard Guenther  <rguenther@suse.de>
614
615         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
616         to ...
617         (forward_propagate_into_comparison_1): ... this.
618         (forward_propagate_comparison): Rename to ...
619         (forward_propagate_into_comparison): ... this.  Split out
620         real forward propagation code to ...
621         (forward_propagate_comparison): ... this.
622         (forward_propagate_into_gimple_cond): Remove looping.
623         (forward_propagate_into_cond): Likewise.
624         (simplify_not_neg_expr): Return whether we have done something.
625         (simplify_gimple_switch): Likewise.
626         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
627         (ssa_forward_propagate_and_combine): ... this.  Re-structure
628         to do a forward forward-propagation walk on BBs and a backward
629         stmt combining walk on BBs.  Consistently re-scan changed statements.
630         (pass_forwprop): Adjust.
631
632 2011-05-30  Ian Lance Taylor  <iant@google.com>
633
634         * godump.c (go_format_type): Correct length of name added to
635         obstack for anonymous field.
636
637 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
638
639         PR target/49186
640         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
641         part of the second operand is 0.
642
643 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
644
645         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
646         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
647         to memory for !TARGET_MEMORY_MISMATCH_STALL.
648         (*movdf_internal_rex64): Do not penalize F->r alternative.
649         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
650         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
651         when optimizing function for size.  Do not move CONST_DOUBLEs
652         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
653         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
654         SUBREGs.  Do not check for MEM_P operands in the insn condition,
655         check for ANY_FP_REGNO_P instead.
656         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
657         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
658         function for speed.
659         * config/i386/i386.c (ix86_option_override_internal): Do not
660         set TARGET_INTEGER_DFMODE_MOVES here.
661
662 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
663
664         PR target/49168
665         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
666
667 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
668
669         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
670         DW_TAG_rvalue_reference_type even for
671         -gdwarf-4 -fno-debug-types-section.
672
673 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
674
675         PR tree-optimization/46728
676         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
677         (build_and_insert_binop): New.
678         (gimple_expand_builtin_pow): Reorder args for
679         build_and_insert_call; use build_and_insert_binop; add more
680         optimizations for fractional exponents.
681
682 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
683
684         PR bootstrap/49190
685
686         Revert:
687         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
688
689         * tree.h (struct tree_identifier): Inherit from tree_typed, not
690         tree_common.
691         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
692         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
693         TS_BASE instead of TS_COMMON.
694         * varasm.c (assemble_name): Remove assert.
695
696 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
697
698         * config.gcc: Keep obselete list sorted.
699
700 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
701             Eric Botcazou  <ebotcazou@adacore.com>
702
703         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
704         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
705         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
706         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
707         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
708
709 2011-05-30  Richard Guenther  <rguenther@suse.de>
710
711         * gimple.c (gimple_types_compatible_p_1): Compare record
712         and union type members properly.
713
714 2011-05-30  Richard Guenther  <rguenther@suse.de>
715
716         PR tree-optimization/49210
717         * ipa-split.c (split_function): Care for the case where the call
718         result is not trivially convertible to the result holding variable.
719
720 2011-05-30  Richard Guenther  <rguenther@suse.de>
721
722         PR tree-optimization/49218
723         * tree-vrp.c (adjust_range_with_scev): Properly check whether
724         overflow occured.
725
726 2011-05-30  Richard Guenther  <rguenther@suse.de>
727
728         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
729         New function split out from ...
730         (forward_propagate_into_gimple_cond): ... here.  Adjust.
731         (forward_propagate_into_cond): Likewise.
732         (forward_propagate_comparison): Also propagate into
733         comparisons on assignment RHS.  Change return value to
734         behave similar to forward_propagate_into_cond.
735         (tree_ssa_forward_propagate_single_use_vars): Handle
736         strict-overflow warnings properly for forward_propagate_comparison.
737
738 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
739
740         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
741         from plugin linker.
742         * configure: Regenerate.
743
744 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
745
746         PR tree-optimization/49199
747         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
748         non-reduction operands are either defined in the loop or by induction.
749
750 2011-05-29  Xinliang David Li  <davidxl@google.com>
751
752         * opts-global.c (handle_common_deferred_options): Handle new options.
753         * passes.c (register_one_dump_file): Call register_pass_name.
754         (execute_one_pass): Check explicit enable/disable flag.
755         (passr_hash): New function.
756         (passr_eq): Ditto.
757         (register_pass_name): Ditto.
758         (get_pass_by_name): Ditto.
759         (pass_hash): Ditto.
760         (pass_eq): Ditto.
761         (enable_pass): Ditto.
762         (disable_pass): Ditto.
763         (is_pass_explicitly_enabled_or_disabled): Ditto.
764
765 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
766
767         * config/i386/i386.md (*movoi_internal_avx): Use
768         standard_sse_constant_opcode for alternative 0.
769         (*movti_internal_sse): Ditto.
770         (*movti_internal_rex64): Use standard_sse_constant_opcode for
771         alternative 2.
772         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
773         sselog1 type moves.
774         (*movsi_internal): Ditto.
775         (*movdi_internal): Ditto.  Add ssecvt type moves.
776
777 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
778
779         PR target/48830
780         * rtlanal.c (simplify_subreg_regno): Adjust comment.
781
782 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
783
784         PR rtl-optimization/49095
785         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
786         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
787
788 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
789
790         PR target/43995
791         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
792         recurse_p argument.  Only follow register copies if it is set,
793         and prevent mips_find_pic_call_symbol from recursing.
794         (mips_find_pic_call_symbol): Add a recurse_p argument.
795         Pass it to mips_pic_call_symbol_from_set.
796         (mips_annotate_pic_calls): Update accordingly.
797
798 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
799
800         * emit-rtl.c (try_split): Use a loop to search for
801         NOTE_INSN_CALL_ARG_LOCATIONs.
802
803 2011-05-29  Richard Guenther  <rguenther@suse.de>
804
805         PR tree-optimization/49217
806         * ipa-pure-const.c (propagate_pure_const): Fix typos.
807
808 2011-05-28  Jan Hubicka  <jh@suse.cz>
809
810         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
811         length.
812         (string_slot_free): Remove
813         (create_output_block): Initialize obstack.
814         (destroy_output_block): Free obstack.
815         (lto_string_index): Add PERSISTENT parameter; do not duplicate
816         the string unless it needs to be added into the hash.
817         (lto_output_string_with_length): Add persistent attribute;
818         handle NULL strings.
819         (lto_output_string): Add PERSISTENT parameter.
820         (output_string_cst, output_identifier): Simplify.
821         (lto_output_location_bitpack): Update.
822         (lto_output_builtin_tree): Update.
823         * lto-streamer.h (struct output_block): Add obstack.
824         (lto_output_string, lto_output_string_with_length): Remove
825         declarations; functions are static now.
826
827 2011-05-28  Jan Hubicka  <jh@suse.cz>
828
829         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
830         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
831         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
832         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
833         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
834         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
835         unpack_ts_decl_with_vis_value_fields,
836         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
837         lto_get_builtin_tree): Use enum and variable length i/o.
838         * basic-block.h (profile_status_d): Add PROFILE_LAST.
839         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
840         New functions.
841         (bp_pack_enum, bp_unpack_enum): New macros.
842
843 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
844
845         * genrecog.c: Remove redundant forward declarations.
846
847 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
848
849         * config.gcc: Deprecate mips*-*-openbsd*.
850
851 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
852
853         PR bootstrap/49195
854         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
855         for match_op_dup.
856
857 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
858
859         PR middle-end/48981
860         * gengtype.c (vec_prefix_type): New function.
861         (note_def_vec): Use vec_prefix_type and change the length
862         attribute to be based on the prefix.
863         * vec.c: Include coretypes.h before vec.h.
864         (struct vec_prefix): Remove.
865         (vec_gc_p_reserve): Change the offsetof to sizeof.
866         (vec_gc_p_reserve_exact): Likewise.
867         (vec_heap_p_reserve): Likewise.
868         (vec_heap_p_reserve_exact): Likewise.
869         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
870         (vec_stack_p_reserve): Change the offsetof to sizeof.
871         (vec_stack_p_reserve_exact): Likewise.
872         * vec.h (struct vec_prefix): New struct definition.
873         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
874         (VEC_T_GTY(T,B)): Likewise.
875         (DEF_VEC_FUNC_P(T)): Use prefix field.
876         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
877         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
878
879 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
880
881         PR tree-optimization/46728
882         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
883         (powi_as_mults): Add gimple_set_location.
884         (build_and_insert_call): New.
885         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
886         0.5, 0.25, 0.75, 1./3., or 1./6.
887
888 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
889
890         * doc/contrib.texi: Update copyright years.
891         (Contributors): Add Zdenek Sojka.
892
893 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
894
895         * c-decl.c (c_push_function_context): Copy the current statement
896         list stack.
897         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
898         (finish_struct): Call building_stmt_list_p instead of checking
899         cur_stmt_list.
900         * c-parser.c (c_parser_postfix_expression): Likewise.
901         * c-typeck.c (c_end_compound_stmt): Likewise.
902         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
903         * tree-iterator.c (stmt_list_cache): Change to a VEC.
904         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
905         (free_stmt_list): Likewise.
906         * tree.h (struct tree_statement_list): Include typed_tree instead
907         of tree_common.
908         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
909         as TS_TYPED instead of TS_COMMON.
910
911 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
912             Uros Bizjak  <ubizjak@gmail.com>
913
914         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
915         (HAVE_AS_IX86_TLSGDPTL): Define.
916         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
917         (HAVE_AS_IX86_TLSLDMPLT): Define.
918         * configure: Regenerate.
919         * config.in: Regenerate.
920         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
921         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
922         TARGET_SUN_TLS, use @tlsgdplt or @plt.
923         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
924         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
925         @tlsldmplt or @plt.
926         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
927
928 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
929
930         * sched-int.h (struct _haifa_deps_insn_data): New members cond
931         and reverse_cond.
932         (INSN_COND, INSN_REVERSE_COND): New macros.
933         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
934         once.
935         (sched_get_condition_with_rev): Cache the results, and look them up
936         if possible.
937         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
938         are clobbered by the current insn.
939         * target.def (exposed_pipline): New sched data hook.
940         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
941         * doc/tm.texi: Regenerate.
942
943 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
944
945         PR tree-optimization/49170
946         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
947         sincos or cexp.
948
949 2011-05-27  Richard Guenther  <rguenther@suse.de>
950
951         PR middle-end/49189
952         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
953         of comparisons.
954
955 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
956
957         * haifa-sched.c (sched_scan_info): Remove.
958         (schedule_block): Call sched_extend_luids rather than sched_init_luids
959         with NULL args.
960         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
961         Remove functions.
962         (sched_scan): Remove.
963         (sched_extend_luids): Renamed from luids_extend_insn and no longer
964         static.  All callers changed.
965         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
966         static.  All callers changed.
967         (sched_init_luids): Remove all arguments except the first.  All
968         callers changed.  Don't use sched_scan.
969         (haifa_init_h_i_d): Likewise.
970         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
971         manually rather than using sched_init_luids.  Likewise with
972         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
973         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
974         rather than sched_init_luids with NULL args.
975         * sel-sched-ir.c (new_insns): Remove variable.
976         (sched_scan): New static function, previously in haifa-sched.c.  Remove
977         all arguments but the first two; all callers changed.
978         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
979         rather than sched_init_luids.
980         (sel_init_bbs): Remove second argument.  All callers changed.
981         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
982         with NULL arguments.
983         (create_insn_rtx_from_pattern): Likewise.
984         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
985         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
986         (sched_init_insn_luid, sched_extend_luids): Declare.
987         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
988         declarations.
989
990 2011-05-27  Richard Guenther  <rguenther@suse.de>
991
992         PR middle-end/49177
993         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
994         A CMP B ? (T) true : (T) false for non-integral types T again.
995
996 2011-05-27  Jan Hubicka  <jh@suse.cz>
997
998         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
999         so 0 means NULL string.
1000         (lto_output_string_with_length): ... here.
1001         (lto_output_string, output_string_cst, output_identifier): Update
1002         handling of NULL strings.
1003         (lto_output_location_bitpack): New function.
1004         (lto_output_location): Use it.
1005         (lto_output_tree_ref): Use output_record_start.
1006         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1007         len values.
1008         * lto-streamer-in.c (string_for_index): Break out from ...; offset
1009         values by 1.
1010         (input_string_internal): ... here;
1011         (input_string_cst, input_identifier, lto_input_string): Update handling
1012         of NULL strings.
1013         (lto_input_location_bitpack): New function
1014         (lto_input_location): Use it.
1015         (unpack_ts_type_common_value_fields): Pack align & alias in var len
1016         values.
1017         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1018         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1019         (bp_pack_value): Sanity check the value range.
1020         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1021         New functions.
1022         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1023         New functions.
1024
1025 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
1026
1027         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1028         call_arg_location instructions down the floor.
1029
1030 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
1031
1032         PR rtl-optimization/49154
1033         * ira.c (setup_pressure_classes): Process class without sublcasses
1034         as a candidate for pressure classes.
1035
1036 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
1037
1038         PR rtl-optimization/48575
1039         * genrecog.c (position_type): New enum.
1040         (position): New structure.
1041         (decision): Use position structure instead of a string.
1042         (root_pos, peep2_insn_pos_list): New variables.
1043         (next_position, compare_positions): New functions.
1044         (new_decision): Use position structures instead of strings.
1045         (maybe_both_true): Likewise.
1046         (change_state): Likewise.
1047         (write_tree): Likewise.
1048         (make_insn_sequence): Likewise.
1049
1050 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1051
1052         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1053         TS_BASE instead of TS_COMMON.
1054         (find_decls_types_r): Check for TS_TYPED structure before looking at
1055         TREE_TYPE.
1056         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1057         Add chain field.
1058         (BLOCK_CHAIN): Use new chain field.
1059
1060 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
1061
1062         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1063         moves expensive on Power7 also.
1064
1065 2011-05-26  Richard Guenther  <rguenther@suse.de>
1066
1067         * fold-const.c (fold_unary_loc): Remove bogus code.
1068
1069 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1070
1071         * tree.h (struct tree_identifier): Inherit from tree_typed, not
1072         tree_common.
1073         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1074         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1075         TS_BASE instead of TS_COMMON.
1076         * varasm.c (assemble_name): Remove assert.
1077
1078 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
1079
1080         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1081         substituted first.
1082         * libgcc-std.ver: Delete file.
1083
1084 2011-05-26  Richard Guenther  <rguenther@suse.de>
1085
1086         PR tree-optimization/48702
1087         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1088         only when we know the base address is within bounds.
1089         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1090         assume the base address of TARGET_MEM_REFs is in bounds.
1091
1092 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1093
1094         PR target/49099
1095         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1096         declaration in TARGET_SOLARIS.
1097
1098 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
1099
1100         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1101         The instruction is then expanded explicitly.
1102         (supported_compare): Callable instruction.
1103         (compare): Likewise.
1104
1105 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
1106
1107         PR c++/49165
1108         * gimplify.c (shortcut_cond_r): Don't special case
1109         COND_EXPRs if they have void type on one of their arms.
1110
1111 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
1112
1113         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1114         to reduce duplication, and to achieve a slightly more logical order
1115         of operations.
1116
1117 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
1118
1119         PR tree-optimization/49161
1120         * tree-vrp.c (struct case_info): New type.
1121         (compare_case_labels): Sort case_info structs instead of
1122         trees, and not primarily by CASE_LABEL uids but by
1123         label_for_block indexes.
1124         (find_switch_asserts): Put case labels into struct case_info
1125         array instead of TREE_VEC, adjust sorting, compare label_for_block
1126         values instead of CASE_LABELs.
1127
1128 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1129
1130         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1131         ("orndi3_neon"): Likewise.
1132         ("bic<mode>3_neon"): Likewise.
1133
1134 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
1135
1136         PR tree-optimization/49038
1137         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1138         Ensure at least one epilogue iteration if required by data
1139         accesses with gaps.
1140         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1141         to mark loops that require peeling for gaps.
1142         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1143         (vect_get_known_peeling_cost): Take peeling for gaps into
1144         account.
1145         (vect_transform_loop): Generate epilogue if required by data
1146         access with gaps.
1147         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1148         loop as requiring an epilogue if there are gaps in the end of
1149         the strided group.
1150
1151 2011-05-25  Ian Lance Taylor  <iant@google.com>
1152
1153         * godump.c (go_format_type): Output the first field with a usable
1154         Go type, if any.
1155
1156 2011-05-25  Ian Lance Taylor  <iant@google.com>
1157
1158         * godump.c (go_format_type): Check for invalid type names, pointer
1159         target types, and struct field types.
1160
1161 2011-05-25  Jason Merrill  <jason@redhat.com>
1162
1163         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1164
1165 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
1166
1167         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1168
1169 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1170
1171         * config/i386/i386.md (*movqi_extv_1)): Put back
1172         "register_operand" check in "type" calculation.
1173         (*movqi_extzv_2): Likewise.
1174
1175 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1176
1177         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1178
1179 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1180
1181         PR bootstrap/49160
1182         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1183         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1184         __divxc3, __divtc3): Wrap definitions in #ifndef.
1185
1186 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1187
1188         PR target/49142
1189         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1190         "register_operand" check and replace q_regs_operand with
1191         QIreg_operand in "type" calculation.
1192         (*movqi_extv_1): Likewise.
1193         (*movqi_extzv_2_rex64): Likewise.
1194         (*movqi_extzv_2): Likewise.
1195
1196         * config/i386/predicates.md (QIreg_operand): New.
1197
1198 2011-05-25  Richard Guenther  <rguenther@suse.de>
1199
1200         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1201         type-based offset disambiguation, streamline MEM_REF and
1202         TARGET_MEM_REF handling.
1203
1204 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1205
1206         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1207         (bdesc_special_args): Add pause intrinsic.
1208
1209         * config/i386/i386.md (UNSPEC_PAUSE): New.
1210         (pause): Likewise.
1211         (*pause): Likewise.
1212         * config/i386/ia32intrin.h (__pause): Likewise.
1213
1214         * doc/extend.texi (X86 Built-in Functions): Add documentation for
1215         pause intrinsic.
1216
1217 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1218
1219         PR tree-optimization/46728
1220         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1221         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1222
1223 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
1224
1225         * tree.h (struct tree_exp): Inherit from struct tree_typed.
1226         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1227         instead of TS_COMMON.
1228
1229 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1230
1231         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1232         LIBGCC2_GNU_PREFIX is defined.
1233         (__N): New macro.
1234         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1235         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1236         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1237         __clz_tab): Define using __N.
1238         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1239         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1240         * target.def (libfunc_gnu_prefix): New hook.
1241         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1242         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1243         * doc/tm.texi: Regenerate.
1244         * system.h (LIBGCC2_GNU_PREFIX): Poison.
1245         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1246         account.
1247         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1248         (init_optabs): Likewise for the bswap libfuncs.
1249         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1250         and divide.
1251         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1252         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1253         * libgcc-std.ver: Remove.
1254         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1255         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1256         libgcc-std.ver.
1257         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1258         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1259         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1260         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1261         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1262         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1263         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1264         * config/fixed-bit.h (FIXED_OP): Define differently depending on
1265         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1266         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1267
1268 2011-05-25  Jan Hubicka  <jh@suse.cz>
1269
1270         * lto-streamer-out.c (output_record_start): Use lto_output_enum
1271         (lto_output_tree): Use output_record_start.
1272         * lto-streamer-in.c (input_record_start): Use lto_input_enum
1273         (lto_get_pickled_tree): Use input_record_start.
1274         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1275         (lto_value_range_error): New function.
1276         * lto-streamer.h (lto_value_range_error): Declare.
1277         (lto_output_int_in_range, lto_input_int_in_range): New functions.
1278         (lto_output_enum, lto_input_enum): New macros.
1279
1280 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1281
1282         * common.opt (flag_stack_usage_info): New variable.
1283         (-Wstack-usage): New option.
1284         * doc/invoke.texi (Warning options): Document -Wstack-usage.
1285         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1286         <OPT_fstack_usage>: Likewise.
1287         * toplev.c (output_stack_usage): Handle -Wstack-usage.
1288         * calls.c (expand_call): Test flag_stack_usage_info variable instead
1289         of flag_stack_usage.
1290         (emit_library_call_value_1): Likewise.
1291         * explow.c (allocate_dynamic_stack_space): Likewise.
1292         * function.c (instantiate_virtual_regs ): Likewise.
1293         (prepare_function_start): Likewise.
1294         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1295         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1296         * config/arm/arm.c (arm_expand_prologue): Likewise.
1297         (thumb1_expand_prologue): Likewise.
1298         * config/avr/avr.c (expand_prologue): Likewise.
1299         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1300         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1301         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1302         * config/mips/mips.c (mips_expand_prologue): Likewise.
1303         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1304         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1305         * config/s390/s390.c (s390_emit_prologue): Likewise.
1306         * config/sh/sh.c (sh_expand_prologue): Likewise.
1307         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1308         * config/spu/spu.c (spu_expand_prologue): Likewise.
1309
1310 2011-05-25  Richard Guenther  <rguenther@suse.de>
1311
1312         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1313         (gimple_canonical_types_compatible_p): Likewise.
1314
1315 2011-05-25  Jan Hubicka  <jh@suse.cz>
1316
1317         PR middle-end/49062
1318         * ipa.c (function_and_variable_visibility): Only add to same
1319         comdat group list if DECL_ONE_ONLY.
1320
1321 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
1322
1323         PR rtl-optimization/49014
1324         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1325
1326 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
1327
1328         PR target/49128
1329         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1330
1331 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1332
1333         PR rtl-optimization/48757
1334         * ira-build.c (loop_with_eh_edge_p): Rename to
1335         loop_with_complex_edge_p, check edges on complexity, make function
1336         conditional.
1337         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1338         conditional.
1339
1340 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1341
1342         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1343         force flag_ira_share_save_slots to 0.
1344
1345 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1346
1347         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1348         (vt_initialize): Set PROLOGUE_BB unconditionally.
1349         Add block comment about CFA_BASE_RTX machinery.
1350         Reset FP_CFA_OFFSET to -1 on all invalid paths.
1351         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1352
1353 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1354
1355         PR objc/48187
1356         * c-parser.c (c_parser_objc_class_instance_variables): More robust
1357         parsing of syntax error in ObjC instance variable lists.  In
1358         particular, avoid an infinite loop if there is a stray ']'.
1359         Updated error message.
1360
1361 2011-05-24  Ian Lance Taylor  <iant@google.com>
1362
1363         * godump.c (go_define): Don't accept a string immediately after
1364         another operand.
1365
1366 2011-05-24  Ian Lance Taylor  <iant@google.com>
1367
1368         * godump.c (struct godump_container): Add invalid_hash field.
1369         (go_format_type): Return false if type is found in invalid_hash.
1370         (go_output_typedef): Add invalid type to invalid_hash.
1371         (go_finish): Create and delete invalid_hash.
1372
1373 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1374
1375         PR tree-optimization/46728
1376         * tree-ssa-math-opts.c (powi_table): New.
1377         (powi_lookup_cost): New.
1378         (powi_cost): New.
1379         (powi_as_mults_1): New.
1380         (powi_as_mults): New.
1381         (gimple_expand_builtin_powi): New.
1382         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1383         (gate_cse_sincos): Remove sincos/cexp restriction.
1384
1385 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1386
1387         PR target/3746
1388         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1389         mips-tdump native.
1390         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1391         * mips-tdump.c: Likewise.
1392
1393 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         PR target/49128
1396         * config/i386/driver-i386.c (host_detect_local_cpu): Always
1397         add -mno-XXX.  Handle FMA.
1398
1399 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1400
1401         PR rtl-optimization/48633
1402         * ira-build.c (loop_with_eh_edge_p): New function.
1403         (mark_loops_for_removal): Use it.
1404
1405 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1406
1407         PR rtl-optimization/48971
1408         * ira.c (setup_pressure_classes): Don't check register move cost
1409         for classes with one registers.  Don't add pressure class if there
1410         is a pressure class with the same available hard registers.
1411         Check contains_reg_of_mode.  Fix a typo in collecting
1412         temp_hard_regset.  Ignore hard registers not belonging to a class.
1413
1414 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
1415
1416         PR target/49133
1417         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1418
1419 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1420             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1421
1422         PR gcov-profile/48845
1423         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1424
1425 2011-05-24  Richard Guenther  <rguenther@suse.de>
1426
1427         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1428         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1429         (gimple_types_compatible_p_1): Adjust.
1430         (iterative_hash_canonical_type): Do not bother about complete vs.
1431         incomplete types.
1432         (gimple_canonical_types_compatible_p): Likewise.
1433
1434 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1435
1436         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1437
1438 2011-05-24  Richard Guenther  <rguenther@suse.de>
1439
1440         PR bootstrap/49078
1441         * gimple.c (gimple_register_canonical_type): Revert
1442         previous change.
1443         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1444         does not for a tree for the case where it matters.  Cache
1445         pointer-type alias-sets.
1446
1447 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1448
1449         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1450         (OBJS): Remove options.o, opts-common.o and prefix.o.
1451         (OBJS-libcommon-target): New.
1452         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1453         (BACKEND): Include libcommon-target.a.
1454         (MOSTLYCLEANFILES): Include libcommon-target.a.
1455         (libcommon-target.a): New.
1456         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1457         prefix.o.
1458
1459 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
1460
1461         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
1462         parts of output shared with the driver.
1463         * optc-gen.awk: Don't generate parts of output not shared with the
1464         driver.
1465         * opth-gen.awk: Remove GCC_DRIVER conditionals.
1466         * doc/options.texi (SourcerInclude): Mention options-save.c.
1467         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1468         (OBJS): Add options-save.o.
1469         (options-save.c, options-save.o): New.
1470         (options.o): Update dependencies.
1471         (gcc-options.o): Remove.
1472         (mostlyclean): Remove options-save.c.
1473
1474 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1475
1476         PR debug/49032
1477         * dbxout.c: Include cgraph.h.
1478         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1479         and without value expr, return NULL if no varpool node exists for
1480         it or if it is not needed.
1481         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1482
1483         PR c/49120
1484         * c-decl.c (start_decl): Convert expr to void_type_node.
1485
1486 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
1487
1488         PR rtl-optimization/48826
1489         * emit-rtl.c (try_split): When splitting a call that is followed
1490         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1491
1492 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1493
1494         * cfgexpand.c (expand_debug_expr): For unused non-addressable
1495         parameters passed in memory prefer using DECL_INCOMING_RTL over
1496         the pseudos it will be copied into.
1497
1498 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1499
1500         PR target/47315
1501         * config/i386/i386.c (ix86_option_override_internal): Save the
1502         initial options after checking vzeroupper.
1503
1504 2011-05-23  David Li  <davidxl@google.com>
1505
1506         PR tree-optimization/48988
1507         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1508         Initialize has_valid_pred for each pred chain.
1509
1510 2011-05-23  Richard Guenther  <rguenther@suse.de>
1511
1512         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1513         (iterative_hash_gimple_type): Always hash type names.
1514
1515 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
1516
1517         * c-typeck.c (build_function_call_vec): Tweak call to
1518         check_function_arguments.
1519
1520 2011-05-23  Richard Guenther  <rguenther@suse.de>
1521
1522         PR tree-optimization/49115
1523         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1524         is not necessarily carried out, do not claim it kills the ref.
1525         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1526
1527 2011-05-23  Richard Guenther  <rguenther@suse.de>
1528
1529         PR middle-end/15419
1530         * builtins.c (fold_builtin_memory_op): Be less restrictive about
1531         what pointer types we accept for folding.
1532
1533 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1534
1535         * gthr-gnat.c: Remove.
1536         * gthr-gnat.h: Remove.
1537         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1538         * config/t-freebsd (LIB2ADDEH): Likewise.
1539         * config/t-linux (LIB2ADDEH): Likewise.
1540         * config/t-sol2 (LIB2ADDEH): Likewise.
1541         * config/ia64/t-vms (LIB2ADDEH): Likewise.
1542         * configure.ac (target_thread_file): Remove gnat handling.
1543         * configure: Regenerate.
1544         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1545
1546 2011-05-23  Tristan Gingold  <gingold@adacore.com>
1547             Eric Botcazou  <ebotcazou@adacore.com>
1548
1549         * gcov.c (create_file_names): If no object directory is specified,
1550         keep the directory of the file.
1551
1552 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1553
1554         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1555         * configure: Regenerate.
1556
1557 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1558
1559         PR middle-end/48973
1560         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1561         failed and the comparison has a single bit signed type, use
1562         constm1_rtx instead of const1_rtx for true value.
1563         (do_store_flag): If ops->type is single bit signed type, disable
1564         signel bit test optimization and pass -1 instead of 1 as last
1565         parameter to emit_store_flag_force.
1566
1567 2011-05-23  Tom de Vries  <tom@codesourcery.com>
1568
1569         PR target/45098
1570         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1571         function.
1572         (infer_loop_bounds_from_undefined): Use new function.
1573
1574 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
1575
1576         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1577         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
1578         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1579         and -O0 otherwise.
1580         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1581
1582 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1583
1584         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1585         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1586         returns true.
1587
1588 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
1589
1590         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1591
1592 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1593
1594         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1595         UNSPEC_MOVE_PIC pattern.
1596
1597 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1598
1599         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1600         (sparc-*-rtems*): Likewise.
1601         (sparc64-*-elf*): Likewise.
1602         (sparc64-*-rtems*): Likewise.
1603         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
1604         * config/sparc/t-crtin: New file.
1605         * config/sparc/t-sol2 (crti.o): Delete rule.
1606         (crtn.o): Likewise.
1607         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1608         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1609         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1610         (ENDFILE_SPEC): Add crtn.o.
1611
1612 2011-05-22  Tom de Vries  <tom@codesourcery.com>
1613
1614         PR middle-end/48689
1615         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1616         CODE_CONTAINS_STRUCT (TS_COMMON).
1617
1618 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
1619
1620         PR middle-end/49029
1621         * expmed.c (extract_fixed_bit_field): Test whether target can be used
1622         only after deciding which mode to use.
1623
1624 2011-05-22  Tom de Vries  <tom@codesourcery.com>
1625
1626         PR target/45098
1627         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1628         for call to get_shiftadd_cost.
1629
1630 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
1631
1632         PR target/49104
1633         * config/i386/cpuid.h (bit_MMXEXT): New define.
1634
1635 2011-05-22  Nick Clifton  <nickc@redhat.com>
1636
1637         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1638         initialisation of non-existant args[2] element.  Use args[] array
1639         not arg[] array to pass arguments to build_function_type_list.
1640
1641 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
1642
1643         PR tree-optimization/49087
1644         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1645
1646 2011-05-21  Jason Merrill  <jason@redhat.com>
1647
1648         PR c++/49092
1649         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1650         static storage duration.
1651
1652 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1653
1654         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1655         frame pointer.
1656
1657 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1658
1659         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1660         false if there are call-saved registers here...
1661         (sparc_can_use_return_insn_p): ...but here instead.
1662         (save_or_restore_regs): Fix thinko.
1663         (sparc_expand_prologue): Use current_function_is_leaf.
1664         (sparc_frame_pointer_required): Likewise.
1665
1666 2011-05-21  Nick Clifton  <nickc@redhat.com>
1667
1668         PR target/49098
1669         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1670
1671 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1672
1673         * gengtype.c (walk_type): Implemented "atomic" GTY option.
1674         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1675
1676 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
1677
1678         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
1679         * optc-gen.awk: Move common code to opt-read.awk.
1680         * opth-gen.awk: Likewise.
1681         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1682
1683 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
1684
1685         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1686
1687 2011-05-20  Tom de Vries  <tom@codesourcery.com>
1688
1689         PR target/45098
1690         * tree-ssa-loop-ivopts.c: Include expmed.h.
1691         (get_shiftadd_cost): New function.
1692         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
1693
1694 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1695
1696         PR bootstrap/49086
1697         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1698         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1699
1700 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1701
1702         * Makefile.in: Update comment referring to $(OBJS-common).
1703
1704 2011-05-20  Ian Lance Taylor  <iant@google.com>
1705
1706         * godump.c (go_output_typedef): Put enum constants in the macro
1707         hash table to avoid duplicate Go const definitions.
1708
1709 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1710
1711         * Makefile.in (LIBDEPS): Add libcommon.a.
1712         (LIBS): Likewise.
1713         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1714         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1715         pretty-print.o and version.o.
1716         (OBJS-libcommon): New.
1717         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1718         (BACKEND): Add libcommon.a.
1719         (MOSTLYCLEANFILES): Likewise.
1720         (libcommon.a): New.
1721         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1722         (cpp$(exeext)): Likewise.
1723         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1724         pretty-print.o and input.o.
1725         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1726         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1727         (errors.o): Remove.
1728         (mips-tfile): Don't explicitly use version.o.
1729         (mips-tdump): Likewise.
1730         (gcov.o): Depend on $(DIAGNOSTIC_H).
1731         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1732         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1733         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1734         * gcov-dump.c: Include intl.h and diagnostic.h.
1735         (main): Initialize diagnostics.
1736         * gcov.c: Include diagnostic.h.
1737         (fnotice): Remove.
1738         (main): Initialize diagnostics.
1739         * lto-wrapper.c: Include diagnostic.h.
1740         (main): Initialize diagnostics.
1741
1742 2011-05-20  Michael Matz  <matz@suse.de>
1743
1744         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1745
1746 2011-05-20  Michael Matz  <matz@suse.de>
1747             Richard Guenther  <rguenther@suse.de>
1748
1749         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1750         use lto_streamer_cache_append directly instead of returning a VEC.
1751         (preload_common_node): Remove.
1752         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1753         track seen nodes.
1754         (lto_streamer_cache_create): Call lto_preload_common_nodes.
1755
1756 2011-05-20  Richard Guenther  <rguenther@suse.de>
1757
1758         PR tree-optimization/49079
1759         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1760         MEM_REFs correctly for the trailing array access detection.
1761         Special case constants the same way as decls for overall size
1762         constraining.
1763
1764 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
1765
1766         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1767         argument expansion.
1768
1769 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1770
1771         PR tree-optimization/49073
1772         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1773         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1774         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1775
1776 2011-05-20  Richard Guenther  <rguenther@suse.de>
1777
1778         PR middle-end/48849
1779         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1780         of pointer types the same way the middle-end does.
1781
1782 2011-05-20  Richard Guenther  <rguenther@suse.de>
1783
1784         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1785         or pointer-to chains.  Delay all fixup to uniquify_nodes.
1786
1787 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
1788
1789         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1790         (fma4_fmaddsub): Likewise
1791
1792 2011-05-19  Jan Hubicka  <jh@suse.cz>
1793
1794         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1795         (GIMPLE_TYPE_PAIR_SIZE): New macro.
1796         (type_pair_cache): New static var.
1797         (lookup_type_pair): Use fixed sized custom hash; make inline.
1798         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1799         calls of lookup_type_pair.
1800         (print_gimple_types_stats): Remove cache stats.
1801         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1802         and gtc_ob.
1803
1804 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
1805
1806         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1807         when TARGET_RDRND is active.
1808         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1809         Generate dummy SImode target register when target is NULL.
1810
1811 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1812
1813         * config/arm/arm-fpus.def: New.
1814         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1815         arm-fpus.def.
1816         * config/arm/arm-tables.opt: Regenerate.
1817         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1818         (arm_option_override): Don't decode FPU name to string here.
1819         * config/arm/arm.opt (mfpu=): Use Enum.
1820         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1821         Update dependencies.
1822
1823 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1824
1825         * collect2.c: Include diagnostic.h.
1826         (fatal_perror, fatal, error, fancy_abort): Remove.
1827         (main): Set progname.  Call xmalloc_set_program_name and
1828         diagnostic_initialize.
1829         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1830         scan_libraries, resolve_lib_name): Call fatal_error instead of
1831         fatal and fatal_perror.
1832         * collect2.h (error, fatal, fatal_perror): Don't declare.
1833         * tlink.c: Include diagnostic-core.h.
1834         (recompile_files): Call fatal_error instead of fatal_perror.
1835         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1836         pretty-print.o and input.o.
1837         (collect2.o, tlink.o): Update dependencies.
1838
1839 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1840
1841         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1842
1843 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1844
1845         PR target/40483
1846         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1847         COMDAT group syntax, both SPARC and x86 variants.
1848         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1849         * configure: Regenerate.
1850         * config/sol2.h (TARGET_SOLARIS): Define.
1851         (PUSHSECTION_FORMAT): Remove.
1852         (SECTION_NAME_FORMAT): Define.
1853         * config/sol2.c: Include hashtab.h.
1854         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1855         expansion, using SECTION_NAME_FORMAT.
1856         (solaris_comdat_htab): New variable.
1857         (struct comdat_entry): Define.
1858         (comdat_hash): New function.
1859         (comdat_eq): New function.
1860         (solaris_elf_asm_comdat_section): New function.
1861         (solaris_define_comdat_signature): New function.
1862         (solaris_code_end): New function.
1863         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1864         (solaris_code_end): Declare.
1865         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1866         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1867         solaris_code_end.
1868         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1869         Remove ATTRIBUTE_UNUSED.
1870         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1871         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1872         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1873         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1874         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1875         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1876         (PUSHSECTION_FORMAT): Remove.
1877         (SECTION_NAME_FORMAT): Redefine.
1878
1879 2011-05-19  Kai Tietz  <ktietz@redhat.com>
1880
1881         * tree-cfg.c (verify_gimple_assign_binary): Barf on
1882         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1883         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1884
1885 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
1886             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1887
1888         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1889
1890 2011-05-19  Richard Guenther  <rguenther@suse.de>
1891
1892         PR middle-end/48985
1893         * tree-object-size.c (addr_object_size): If the pointed-to
1894         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1895
1896 2011-05-19  Richard Guenther  <rguenther@suse.de>
1897
1898         * gimple.c (gimple_types_compatible_p_1): Compare names of
1899         the types themselves.
1900         (iterative_hash_gimple_type): And hash them that way.
1901         (gimple_register_type_1): If we register a main variant properly
1902         initialize the leader to ourselves.
1903
1904 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1905
1906         PR target/45098
1907         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1908         get_loop_invariant_expr_id.
1909         (get_loop_invariant_expr_id): Use get_expr_id.
1910         (parm_decl_cost): New function.
1911         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1912         Improve bound cost estimation.  Use different inv_expr_id for elim and
1913         express cases.
1914
1915 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1916
1917         PR target/45098
1918         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1919         cost_base.cost == 0.
1920
1921 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1922
1923         PR target/49002
1924         * config/i386/sse.md
1925         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1926         load cast.
1927
1928 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1929
1930         PR tree-optimization/49039
1931         * tree-vrp.c (extract_range_from_binary_expr): For
1932         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1933         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1934
1935 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1936
1937         PR target/45098
1938         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1939
1940 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1941
1942         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1943         (*tls_global_dynamic_64): Ditto.
1944         (*tls_local_dynamic_base_32_gnu): Ditto.
1945         (*tls_local_dynamic_base_64): Ditto.
1946         (tls_initial_exec_64_sun): Ditto.
1947
1948 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1949
1950         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1951         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1952         bf592-none.
1953         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1954         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1955         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1956         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1957         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1958         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1959         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1960
1961 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1962
1963         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1964         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1965         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1966         target_thread_pointer, arm_structure_size_boundary, struct
1967         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1968         struct abi_name, arm_all_abis): Remove.
1969         (arm_option_override) Don't process most enumerated option values here.
1970         Don't process target_fpe_name here.  Work with integer not string for
1971         structure size boundary; use separate diagnostics for each case.
1972         * config/arm/arm.h (enum float_abi_type, enum
1973         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1974         to arm-opts.h.
1975         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1976         arm_structure_size_boundary): Remove.
1977         * config/arm/arm.opt (mabi=): Use Enum and Init.
1978         (arm_abi_type): New Enum and EnumValue entries.
1979         (mfloat-abi=): Use Enum and Init.
1980         (float_abi_type): New Enum and EnumValue entries.
1981         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1982         (mfp16-format=): Use Enum and Init.
1983         (arm_fp16_format_type): New Enum and EnumValue entries.
1984         (mstructure-size-boundary=): Use UInteger and Init.
1985         (mtp=): Use Enum and Init.
1986         (arm_tp_type): New Enum and EnumValue entries.
1987
1988 2011-05-18  Richard Guenther  <rguenther@suse.de>
1989
1990         PR tree-optimization/49018
1991         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1992         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1993         gimple_has_side_effects.
1994
1995 2011-05-18  Richard Guenther  <rguenther@suse.de>
1996
1997         * gimple.c (gimple_register_type_1): New function, split out from ...
1998         (gimple_register_type): ... here.  Avoid infinite recursion.
1999
2000 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
2001
2002         PR tree-optimization/41881
2003         * tree-vectorizer.h (struct _loop_vec_info): Add new field
2004         reduction_chains along with a macro for its access.
2005         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2006         (destroy_loop_vec_info): Free reduction chains.
2007         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2008         (vect_is_slp_reduction): New function.
2009         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2010         (vect_create_epilog_for_reduction): Support SLP reduction chains.
2011         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2012         definition types for reduction chains.
2013         (vect_supported_load_permutation_p): Don't allow permutations for
2014         reduction chains.
2015         (vect_analyze_slp_instance): Support reduction chains.
2016         (vect_analyze_slp): Try to build SLP instance from reduction chains.
2017         (vect_get_constant_vectors):  Handle reduction chains.
2018         (vect_schedule_slp_instance): Mark the first statement of the
2019         reduction chain as reduction.
2020
2021 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
2022
2023         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2024         names for group elements access.
2025         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2026         reduction chains as well.  Remove data reference and interleaving
2027         related words from the fields names.
2028         * tree-vect-loop.c (vect_transform_loop): Use new names for group
2029         elements access.
2030         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2031         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2032         vect_update_interleaving_chain, vect_same_range_drs,
2033         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2034         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2035         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2036         vect_analyze_group_access, vect_analyze_data_ref_access,
2037         vect_create_data_ref_ptr, vect_transform_strided_load,
2038         vect_record_strided_load_vectors): Likewise.
2039         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2040         vect_model_load_cost, vectorizable_store, vectorizable_load,
2041         vect_remove_stores, new_stmt_vec_info): Likewise.
2042         * tree-vect-slp.c (vect_build_slp_tree,
2043         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2044
2045 2011-05-18  Richard Guenther  <rguenther@suse.de>
2046
2047         PR middle-end/48989
2048         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2049         operand verification.
2050         (verify_gimple_assign_binary): Likewise.
2051         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2052         to non-1-precision BOOLEAN_TYPEs.
2053
2054 2011-05-18  Tom de Vries  <tom@codesourcery.com>
2055
2056         PR target/45098
2057         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2058
2059 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2060
2061         PR tree-optimization/49000
2062         * tree-ssa.c (execute_update_addresses_taken): Call
2063         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
2064         be rewritten and decl has been marked for renaming, reset
2065         the debug stmt.
2066
2067 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
2068
2069         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2070         enum_opts_set when testing if attributes have set -mfpmath=.
2071
2072 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
2073
2074         * config/mips/mips.c (mips_handle_option): Remove unused variable.
2075
2076 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
2077
2078         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2079         info->entry with 0
2080         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
2081         id.transform_lang_insert_block with NULL.
2082
2083 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
2084
2085         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2086         (output_fp_compare): Change args 3 and 4 to bool.
2087         (ix86_expand_call): Change arg 6 to bool.
2088         (ix86_attr_length_immediate_default): Change arg 2 to bool.
2089         (ix86_attr_length_vex_default): Change arg 3 to bool.
2090         * config/i386/i386.md: Update all uses.
2091         * config/i386/i386.c: Ditto.
2092         (ix86_flags_dependent): Change return type to bool.
2093
2094 2011-05-17  Richard Guenther  <rguenther@suse.de>
2095
2096         * gimple.c (type_hash_pair_compare): Fix comparison.
2097
2098 2011-05-17  Richard Guenther  <rguenther@suse.de>
2099
2100         * gimple.c (iterative_hash_gimple_type): Simplify singleton
2101         case some more, fix final hash value of the non-singleton case.
2102
2103 2011-05-17  Richard Guenther  <rguenther@suse.de>
2104
2105         PR bootstrap/49013
2106         Revert
2107         2011-05-16  Richard Guenther  <rguenther@suse.de>
2108
2109         * gimple.c (gimple_types_compatible_p_1): Use names of the
2110         type itself, not its main variant.
2111         (iterative_hash_gimple_type): Likewise.
2112
2113 2011-05-17  Richard Guenther  <rguenther@suse.de>
2114
2115         * gimple.c (gimple_register_canonical_type): Use the main-variant
2116         leader for computing the canonical type.
2117
2118 2011-05-17  Nick Clifton  <nickc@redhat.com>
2119
2120         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2121         moves.
2122
2123         * config/rx/rx.md: Add peephole to remove redundant extensions
2124         after loads.
2125         (bitset_in_memory): Use rx_restricted_mem_operand.
2126         (bitinvert_in_memory): Likewise.
2127         (bitclr_in_memory): Likewise.
2128
2129 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2130             Nick Clifton  <nickc@redhat.com>
2131
2132         * config/rx/rx.md: Add peepholes to match a register move followed
2133         by a comparison of the moved register.  Replace these with an
2134         addition of zero that does both actions in one instruction.
2135
2136 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
2137
2138         PR target/48986
2139         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2140         predicate to allow CONST_INT.
2141         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2142
2143 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2144
2145         * opts-common.c (opt_enum_arg_to_value): New.
2146         * opts.h (opt_enum_arg_to_value): Declare.
2147         * config/i386/i386.opt (fpmath): Remove.
2148         (mfpmath=): Use Enum, Init and Save.
2149         (fpmath_unit): New Enum and EnumValue entries.
2150         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2151         name for function fpmath state.
2152         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2153         * config/i386/i386.c: Include diagnostic.h.
2154         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2155         (ix86_target_string): Take enum fpmath_unit value instead of string.
2156         (ix86_debug_options): Update call to ix86_target_string.
2157         (ix86_option_override_internal): Don't process fpmath strings here.
2158         (x86_function_specific_save, ix86_function_specific_restore):
2159         Don't handle fpmath state specially.
2160         (ix86_function_specific_print): Pass fpmath state to
2161         ix86_target_string instead of printing in this function.
2162         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2163         Handle enum attributes.
2164         (IX86_ATTR_ENUM, ix86_opt_enum): New.
2165         (ix86_valid_target_attribute_tree): Update option_strings
2166         handling.  Handle fpmath as enum option.
2167         (ix86_can_inline_p): Update field names for function fpmath state.
2168         (ix86_expand_builtin): Update call to ix86_target_string.
2169         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2170         (ix86_fpmath): Remove.
2171         * config/i386/t-i386 (i386.o): Update dependencies.
2172
2173 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2174
2175         PR preprocessor/48677
2176         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2177         from decoded_options[0], not from itself.
2178
2179 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2180
2181         * config/i386/constraints.md (z): New constraint.
2182         * config/i386/i386.c (c): New mode attribute.
2183         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2184         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2185         constraint for operand 0.
2186         (*call_vzeroupper): Ditto.
2187         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
2188         (*call_rex64_ms_sysv_vzeroupper): Ditto.
2189         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2190         Use "lzm" constraint for operand 0.
2191         (*call_pop_vzeroupper): Ditto.
2192         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2193         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
2194         constraint for operand 0.
2195         (*sibcall_vzeroupper): Ditto.
2196         (*sibcall_rex64_ms_sysv): Ditto.
2197         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2198         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2199         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
2200         (*sibcall_pop_vzeroupper): Ditto.
2201         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2202         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2203         mode iterator.  Use "<c>zm" constraint for operand 1.
2204         (*call_value_vzeroupper): Ditto.
2205         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
2206         for operand 1.
2207         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2208         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2209         *call_value_pop_1.  Use "lzm" constraint for operand 1.
2210         (*call_value_pop_vzeroupper): Ditto.
2211         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2212         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2213         mode iterator.  Use "Uz" constraint for operand 1.
2214         (*sibcall_value_vzeroupper): Ditto.
2215         (*sibcall_value_rex64_ms_sysv): Ditto.
2216         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2217         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
2218         constraint for operand 1.
2219         (*sibcall_value_pop_vzeroupper): Ditto.
2220         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2221         and "z" constraint for operand 2.
2222         (*tls_global_dynamic_32_gnu): Ditto.
2223         (*tls_local_dynamic_base_32_gnu): Ditto.
2224         (*tls_local_dynamic_base_64): Ditto.
2225         (*tls_local_dynamic_32_once): Ditto.
2226         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2227         Update all callers.
2228         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2229
2230 2011-05-16  Richard Guenther  <rguenther@suse.de>
2231
2232         * gimple.c (gimple_types_compatible_p_1): Use names of the
2233         type itself, not its main variant.
2234         (iterative_hash_gimple_type): Likewise.
2235
2236 2011-05-16  Richard Guenther  <rguenther@suse.de>
2237
2238         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2239         always visit pointer target and function result and argument types.
2240
2241 2011-05-16  Jason Merrill  <jason@redhat.com>
2242
2243         PR c++/48999
2244         * tree-inline.c (copy_statement_list): Put back recursion.
2245
2246 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
2247
2248         PR target/27663
2249         PR target/41076
2250         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2251         * config/avr/avr.md ("*ior<mode>qi.byte0",
2252         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2253
2254 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
2255
2256         PR target/45099
2257         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2258         register is needed for a function argument.
2259
2260 2011-05-16  Richard Guenther  <rguenther@suse.de>
2261
2262         * gimple.c (struct type_hash_pair): New type.
2263         (type_hash_pair_compare): New function.
2264         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2265
2266 2011-05-16  Revital Eres  <revital.eres@linaro.org>
2267
2268         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2269
2270 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
2271
2272         * config/i386/i386.md (floating point move splitters): Fix
2273         usage of standard_80387_constant_p.
2274         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2275
2276 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
2277
2278         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2279
2280 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2281
2282         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2283         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2284         (tree_ssa_lim_finalize): Likewise.
2285
2286 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
2287
2288         * config/i386/constraint.md (Yd, Yx): New register constraints.
2289         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
2290         Yd conditional register constraint.
2291         (*movtf_internal): Use standard_sse_constant_opcode.
2292         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
2293         Yx conditional register constraint.
2294         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
2295         Yd conditional register constraint.  Use standard_sse_constant_p to
2296         check for valid SSE constants and call standard_sse_constant_opcode to
2297         output SSE insn.
2298         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2299         constants and call standard_sse_constant_opcode to output SSE insn.
2300         * config/i386/i386.c (ix86_option_ovverride_internal): Set
2301         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
2302         optimize_size is set.
2303         (standard_sse_constant_opcode): Output conditional AVX insn templates.
2304
2305 2011-05-14  Tobias Burnus  <burnus@net-b.de>
2306
2307         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2308
2309 2011-05-13  Martin Jambor  <mjambor@suse.cz>
2310
2311         * ipa-prop.c (ipa_cst_from_jfunc): New function.
2312         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2313         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2314         (evaluate_conditions_for_ipcp_clone): Removed.
2315         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2316         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2317         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2318
2319 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2320
2321         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2322         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2323         lieu of MAY_HAVE_DEBUG_STMTS.
2324         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2325         debug statements if !MAY_HAVE_DEBUG_STMTS.
2326
2327 2011-05-13  Martin Thuresson  <martint@google.com>
2328
2329         PR gcov-profile/47793
2330         * libgcov.c (gcov_exit): Support relative profile paths.
2331         * doc/invoke.texi (-fprofile-dir): Update for above change.
2332
2333 2011-05-13  Richard Guenther  <rguenther@suse.de>
2334
2335         * gimple.c (gimple_canonical_types_compatible_p): Do not use
2336         type-pair caching, do not compare hashes.
2337
2338 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
2339
2340         PR middle-end/48965
2341         * tree-cfg.c (edge_to_cases_cleanup): Return true.
2342         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2343
2344 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2345
2346         * gimplify.c (gimplify_expr): Make sure operand is boolified.
2347         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2348         compatible type for TRUTH_NOT_EXPR.
2349
2350 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2351
2352         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2353         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
2354         can_create_pseudo_p ().
2355
2356 2011-05-13  Richard Guenther  <rguenther@suse.de>
2357
2358         PR lto/48978
2359         * gimple.c (iterative_hash_gimple_type): Revert change in
2360         pointer target and function result and argument hashing.
2361
2362 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
2363
2364         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2365         (*movxf_internal_nointeger): Ditto.
2366         (*movdf_internal_rex64): Ditto.
2367         (*movdf_internal): Ditto.
2368         (*movdf_internal_nointeger): Ditto.
2369         (*movsf_internal): Ditto.
2370         (sincos splitters): Use can_create_pseudo ().
2371
2372 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
2373
2374         * config/i386/i386-opts.h: New.
2375         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2376         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2377         ix86_section_threshold): Remove.
2378         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
2379         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2380         OPT_mbranch_cost_.
2381         (ix86_option_override_internal): Don't decode strings for options
2382         other than -march=, -mtune= and -mfpmath=.  Don't allow for
2383         __attribute__ uses in remaining diagnostics for options with
2384         string arguments.  Don't check for integer arguments being negative.
2385         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2386         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2387         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2388         ix86_branch_cost, ix86_section_threshold): Remove.
2389         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2390         HeaderInclude.
2391         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2392         but not Var.
2393         (masm=): Use Enum and Init.
2394         (asm_dialect): New Enum and EnumValue entries.
2395         (mbranch-cost=): Use UInteger.
2396         (mlarge-data-threshold=): Use UInteger and Init.
2397         (mcmodel=): Use Enum and Init.
2398         (cmodel): New Enum and EnumValue entries.
2399         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2400         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2401         mregparm=): Use UInteger.
2402         (mstringop-strategy=): Use Enum and Init.
2403         (stringop_alg): New Enum and EnumValue entries.
2404         (mtls-dialect=): Use Enum and Init.
2405         (tls_dialect): New Enum and EnumValue entries.
2406         (mabi=): Use Enum and Init.
2407         (calling_abi): New Enum and EnumValue entries.
2408         (mveclibabi=): Use Enum and Init.
2409         (ix86_veclibabi): New Enum and EnumValue entries.
2410
2411 2011-05-13  Nick Clifton  <nickc@redhat.com>
2412
2413         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2414         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2415
2416 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2417
2418         PR middle-end/48984
2419         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2420         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2421         (gimple_boolify): Check for cast for boolean_type_node instead for
2422         BOOLEAN_TYPE.
2423
2424 2011-05-13  Richard Guenther  <rguenther@suse.de>
2425
2426         PR tree-optimization/48172
2427         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2428         multiplying by number of iterations for equal step.
2429         (vect_create_cond_for_alias_checks): Likewise.
2430
2431 2011-05-13  Andreas Schwab  <schwab@redhat.com>
2432
2433         * configure.ac: Use AS_HELP_STRING throughout.
2434         * configure: Regenerate.
2435
2436 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2437
2438         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2439         (ix86_emit_restore_regs_using_mov): Likewise.
2440         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2441
2442 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
2443
2444         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2445         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2446         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2447         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2448         RTX_OK_FOR_OLO10_P): ...here.
2449         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2450         SYMBOLIC_CONST.
2451
2452 2011-05-12  Kai Tietz  <ktietz@redhat.com>
2453
2454         * gimplify.c (gimple_boolify): Re-boolify expression
2455         arguments even if expression type is of kind BOOLEAN_TYPE.
2456         (gimplify_boolean_expr): Removed.
2457         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2458         and XOR. Additional take care that we keep expression's type.
2459         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2460         of TRUTH_AND|OR|XOR_EXPR.
2461
2462 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2463
2464         PR tree-optimization/48975
2465         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2466         on all bbs here and free and clear ifc_bbs at the end.
2467
2468 2011-05-12  Richard Guenther  <rguenther@suse.de>
2469
2470         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2471         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
2472         until after simple checks.
2473         (gimple_types_compatible_p): Likewise.
2474         (iterative_hash_gimple_type): Always hash pointer targets
2475         and function return and argument types.
2476         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2477         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
2478         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2479         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
2480         completely in the simple compare section.
2481         (gimple_register_canonical_type): Query the cache again after
2482         registering.
2483
2484 2011-05-12  Richard Guenther  <rguenther@suse.de>
2485
2486         PR tree-optimization/48172
2487         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2488         the number of iterations from the segment size calculation.
2489         (vect_create_cond_for_alias_checks): Adjust.
2490
2491 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2492
2493         PR debug/48967
2494         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2495         if validate_subreg fails.
2496
2497 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
2498
2499         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2500         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2501         early.
2502
2503 2011-05-12  DJ Delorie  <dj@redhat.com>
2504
2505         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2506         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2507         created builtin into rx_builtins array.
2508         (rx_builtin_decl): New function.
2509         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
2510
2511 2011-05-12  DJ Delorie  <dj@redhat.com>
2512             Nick Clifton  <nickc@redhat.com>
2513
2514         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2515         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2516         (rx_is_legitimate_address): Add pre-decrement and post-increment
2517         addressing in HImode and QImode.  Fix test for out of range
2518         REG+INT addressing.
2519         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2520         (rx_align_for_label): Test label before extracting its usage count.
2521         (rx_adjust_insn_lengths): Fix selection of insn codes.
2522         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2523
2524 2011-05-11  Jason Merrill  <jason@redhat.com>
2525
2526         * tree.c (type_hash_canon): Use struct tree_type_non_common.
2527
2528 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2529
2530         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2531         reindent the subsequent block.
2532
2533 2011-05-11  Satoru Takabayashi  <satorux@google.com>
2534             Paul Pluzhnikov  <ppluzhnikov@google.com>
2535
2536         * doc/install.texi (Configuration): Document --with-linker-hash-style.
2537         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2538         * config.in: Add LINKER_HASH_STYLE.
2539         * configure.ac: Add --with-linker-hash-style.
2540         * configure: Regenerate.
2541
2542 2011-05-11  Richard Guenther  <rguenther@suse.de>
2543
2544         PR middle-end/48964
2545         * gimple.c (iterative_hash_canonical_type): Fix typo.
2546
2547 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
2548
2549         * config/i386/i386.c (legitimize_tls_address)
2550         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2551         expanders directly for TARGET_GNU2_TLS.  Determine pic and
2552         __tls_get_addr symbol reference here.  Update call to
2553         gen_tls_global_dynamic_{32,64} for added arguments.
2554         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2555         expanders directly for TARGET_GNU2_TLS.  Determine
2556         __tls_get_addr symbol reference here.  Update call to
2557         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
2558         unique UNSPEC REG_EQUIV to libcall block.
2559         (ix86_tls_get_addr): Declare static.
2560         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2561         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2562         Do not determine pic and __tls_get_addr symbol reference here. Do not
2563         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2564         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2565         (tls_global_dynamic_64): Add operand 2.  Do not determine
2566         __tls_get_addr symbol reference here.  Do not call
2567         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2568         (tls_local_dynamic_base64): Ditto for operand 1.
2569
2570 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2571
2572         * function.c (expand_function_start): Initialize stack_check_probe_note
2573         only if the generic stack checking mechanism is used.
2574
2575 2011-05-11  Richard Guenther  <rguenther@suse.de>
2576
2577         PR tree-optimization/15256
2578         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2579         (A & B) | C, combine (A op CST1) op CST2.
2580         (tree_ssa_forward_propagate_single_use_vars): Only bother to
2581         visit assigns that have uses.
2582
2583 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
2584
2585         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2586         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2587         (unpack_ts_type_common_value_fields): ...this.  Update comment.
2588         (unpack_value_fields): Adjust for renaming.
2589         (lto_input_ts_type_tree_pointers): Split into...
2590         (lto_input_ts_type_common_tree_pointer): ...this and...
2591         (lto_input_ts_type_non_common_tree_pointers): ...this.
2592         (lto_input_tree_pointers): Adjust for above split.
2593         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2594         (pack_ts_type_common_value_fields): ...this.  Update comment.
2595         (lto_output_ts_type_tree_pointers): Split into...
2596         (lto_output_ts_type_common_tree_pointers): ...this and...
2597         (lto_output_ts_type_non_common_tree_pointers): ...this.
2598         (lto_output_tree_pointers): Adjust for above split.
2599         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2600         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2601         * stor-layout.c (vector_type_mode): Adjust location of mode field.
2602         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2603         Define.
2604         (struct tree_type): Split into...
2605         (struct tree_type_common: ...this and...
2606         (struct tree_type_with_lang_specific): ...this and...
2607         (struct tree_type_non_common): ...this.  Adjust accessor macros
2608         accordingly.
2609         (TYPE_VALUES_RAW): Define.
2610         (union tree_node): Update for above changes.
2611         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2612         TS_TYPE_NON_COMMON.
2613         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2614         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2615         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2616         * treestructu.def (TS_TYPE): Remove.
2617         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2618         Define.
2619
2620 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
2621
2622         PR debug/48159
2623         * tree-ssa.c (reset_debug_uses): New function.
2624         * tree-flow.h (reset_debug_uses): New prototype.
2625         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2626         * tree-loop-distribution.c (generate_loops_for_partition): Call
2627         reset_debug_uses on the stmts that will be removed.  Keep around
2628         all debug stmts, don't count them as bits in partition bitmap.
2629         (generate_builtin): Don't count debug stmts or labels as bits in
2630         partition bitmap.
2631
2632 2011-05-11  Richard Guenther  <rguenther@suse.de>
2633
2634         * gimple.c (gimple_type_hash_1): Merge with ...
2635         (gimple_type_hash): ... this.
2636         (gtc_visit): Remove mode parameter and simplify accordingly.
2637         (gimple_types_compatible_p_1): Likewise.
2638         (gimple_types_compatible_p): Likewise.
2639         (iterative_hash_gimple_type): Likewise.
2640         (visit): Likewise.
2641         (gimple_type_eq): Adjust.
2642
2643 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2644
2645         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2646         enters the branch create an anti edge in the opposite direction
2647         to prevent the creation of reg-moves.
2648         * modulo-sched.c: Adjust comment to reflect the fact we are
2649         scheduling closing branch.
2650         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2651         (stage_count): New field in struct partial_schedule.
2652         (calculate_stage_count): New function.
2653         (normalize_sched_times): Rename to reset_sched_times and handle
2654         incrementing the sched time of the nodes by a constant value
2655         passed as parameter.
2656         (duplicate_insns_of_cycles): Skip closing branch.
2657         (sms_schedule_by_order): Schedule closing branch.
2658         (ps_insn_find_column): Handle closing branch.
2659         (sms_schedule): Call reset_sched_times and adjust the code to
2660         support scheduling of the closing branch.
2661         (ps_insert_empty_row): Update calls to normalize_sched_times
2662         and rotate_partial_schedule functions.
2663
2664 2011-05-11  Richard Guenther  <rguenther@suse.de>
2665
2666         PR middle-end/48953
2667         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2668
2669 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
2670
2671         * opts.c (finish_options): Move warning settings from process_options.
2672         * toplev.c (process_options): Move warning settings to finish_options.
2673
2674 2011-05-11  Richard Guenther  <rguenther@suse.de>
2675
2676         PR tree-optimization/18041
2677         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2678         (simplify_bitwise_binary): ... this.  Handle operand conversions
2679         by applying them to the result instead.
2680         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
2681
2682 2011-05-11  Richard Guenther  <rguenther@suse.de>
2683
2684         * gimple.c (gimple_canonical_types_compatible_p): Split out
2685         from gimple_types_compatible_p and friends.  Do not recurse
2686         to pointed-to types.
2687         (gimple_canonical_type_eq): Use it.
2688         (iterative_hash_canonical_type): Split out from
2689         iterative_hash_gimple_type and friends.  Do not recurse
2690         to pointed-to types.
2691         (gimple_canonical_type_hash): Use it, allocate the hash here.
2692
2693 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2694
2695         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2696         recognizing doloop.
2697
2698 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2699
2700         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2701         instead of PREV_INSN.
2702
2703 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2704
2705         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2706         * loop-doloop.c (doloop_condition_get): Likewise.
2707         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2708         (doloop_end): New.
2709         * config/arm/arm.md (*addsi3_compare0): Remove "*".
2710
2711 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
2712
2713         * tree.def (CASE_LABEL_EXPR): Add an operand.
2714         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2715
2716 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2717
2718         * c-decl.c (c_override_global_bindings_to_false): Remove.
2719         (global_bindings_p): Don't check
2720         c_override_global_bindings_to_false.
2721         * c-tree.h (c_override_global_bindings_to_false): Remove.
2722         * c-typeck.c (composite_type): Don't set
2723         c_override_global_bindings_to_false.
2724
2725 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2726
2727         PR target/48857, 48495
2728         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2729         (VSX_MODE): Ditto.
2730         (VSX_MOVE_MODE): Ditto.
2731         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2732         VSX vector types.  Add V2DImode.
2733         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2734         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2735         (MODES_TIEABLE_P): Ditto.
2736
2737         * config/rs6000/rs6000.c (rs6000_emit_move): Use
2738         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2739         VSX_VECTOR_MODE.
2740         (init_cumulative_args): Ditto.
2741         (rs6000_function_arg_boundary): Ditto.
2742         (rs6000_function_arg_advance_1): Ditto.
2743         (rs6000_function_arg): Ditto.
2744         (rs6000_function_ok_for_sibcall): Ditto.
2745         (emit_frame_save): Ditto.
2746         (rs6000_function_value): Ditto.
2747         (rs6000_libcall_value): Ditto.
2748
2749 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2750
2751         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2752         i386/darwin-lib.h to $libgcc_tm_file.
2753         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2754
2755 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2756
2757         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2758
2759 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2760
2761         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2762         * config/rs6000/rs6000-tables.opt: New file (generated).
2763         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2764         rs6000/rs6000-tables.opt to extra_options.
2765         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2766         * config/rs6000/rs6000.c (rs6000_select): Remove.
2767         (processor_target_table): Move contents to rs6000-cpus.def.
2768         (darwin_rs6000_override_options): Check
2769         global_options_set.x_rs6000_cpu_index instead of
2770         rs6000_select[1].string.
2771         (rs6000_option_override_internal): Likewise.
2772         (rs6000_handle_option): Don't assert that global structures are in
2773         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
2774         (rs6000_default_cpu): New variable.
2775         (rs6000_file_start): Set it instead of local default_cpu.  Check
2776         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2777         global_options_set.x_rs6000_tune_index instead of rs6000_select.
2778         (rs6000_darwin_file_start): Check rs6000_default_cpu and
2779         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2780         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2781         rs6000_select): Remove.
2782         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2783         Remove.
2784         (mcpu=, mtune=): Use Var, Init, Enum and Save.
2785         * config/rs6000/t-rs6000
2786         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2787         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2788         global_options_set.x_rs6000_cpu_index instead of
2789         rs6000_select[1].string.
2790         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2791         global_options_set.x_rs6000_cpu_index instead of
2792         rs6000_select[1].string.
2793
2794 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2795
2796         * config.gcc (libgcc_tm_file): Define instead of including files
2797         from ../../libgcc/config/ in tm_file.
2798         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2799         * configure: Regenerate.
2800         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2801         libgcc_tm.h, cs-libgcc_tm.h): New.
2802         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2803         (clean): Remove libgcc_tm.h.
2804         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2805         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2806         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2807
2808 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
2809
2810         PR target/48896
2811         * config/avr/avr.c (avr_ret_register): Return unsigned int
2812         instead of int.
2813         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2814         it to avr_libcall_value.
2815         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2816         expand_expr.
2817         (avr_expand_binop_builtin): Ditto.
2818         (avr_expand_unop_builtin): Ditto.
2819
2820 2011-05-10  DJ Delorie  <dj@redhat.com>
2821
2822         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2823         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2824         * config/rx/rx.c (rx_align_for_label): Add label and
2825         uses_threshold parameters.  Do not align when the label is not
2826         used enough.
2827         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2828
2829 2011-05-10  Richard Guenther  <rguenther@suse.de>
2830
2831         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2832         a series of conversions and apply foldings similar to what
2833         fold-const does.
2834         (tree_ssa_forward_propagate_single_use_vars): Call it.
2835
2836 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2837
2838         PR tree-optimization/48611
2839         PR tree-optimization/48794
2840         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2841         referenced from RESX or EH_DISPATCH arguments.
2842
2843         PR debug/48928
2844         * dfp.c (decimal_to_decnumber): Handle conversion from
2845         dconst{1,2,m1,half}.
2846
2847 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2848
2849         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2850         for !flag_prefer_avx128.
2851         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2852
2853 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2854
2855         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2856         (fold_ternary_loc): Use expr_location_or.
2857
2858 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2859
2860         PR debug/48853
2861         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2862         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2863         Pmode and mem_mode is not VOIDmode.
2864
2865 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
2866
2867         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2868         TYPE_QUAL_RESTRICT): Convert to enum.
2869
2870 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2871
2872         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2873         (const_pow2_1_to_8_operand): Ditto.
2874         (const_pow2_1_to_128_operand): Ditto.
2875         (const_pow2_1_to_32768_operand): Ditto.
2876         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2877         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
2878         in insn constraint to check integer value of operand 3.
2879         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2880
2881         (PINSR_MODE): New mode iterator.
2882         (sse2p4_1): New mode attribute.
2883         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2884         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2885         iterator.  Use const_int_operand instead of
2886         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
2887         exact_log2 in insn constraint to check integer value of operand 3.
2888
2889 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2890
2891         * config/i386/sse.md (blendbits): Remove mode attribute.
2892         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2893         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2894         Check integer value of operand 3 in insn constraint.
2895
2896 2011-05-09  Richard Guenther  <rguenther@suse.de>
2897
2898         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2899         for diagnostics.
2900         (lto_symtab_merge): Likewise.  Do not register types here.
2901         (lto_symtab_merge_decls_2): Likewise.
2902         (lto_symtab_merge_decls_1): Likewise.
2903         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2904         * gimple.c (enum gtc_mode): Declare.
2905         (gimple_types_compatible_p): Make static.
2906
2907 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2908
2909         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2910         temporary register to match Pmode.
2911
2912 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2913
2914         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2915         and *vec_concatv4si_1_avx.
2916
2917 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2918
2919         PR rtl-optimization/48927
2920         * ira-conflicts.c (commutative_constraint_p): Use
2921         recog_data.alternative_enabled_p to disable alternatives where
2922         "enabled" attribute is false.
2923         (get_dup_num): Ditto.
2924         * ira-lives.c (single_reg_class): Ditto.
2925         (ira_implicitly_set_insn_hard_regs): Ditto.
2926
2927 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2928
2929         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2930         (dataflow_set_preserve_mem_locs): Likewise.
2931
2932 2011-05-09  Philipp Thomas  <pth@suse.de>
2933
2934         * config/mep/mep.c (mep_validate_vliw): Syntax description
2935         should not be translated.
2936
2937 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2938
2939         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2940         * config/mips/mips-tables.opt: New file (generated).
2941         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2942         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2943         MIPS_ARCH_OPTION_NATIVE): Define.
2944         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2945         mips-cpus.def.
2946         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2947         mips_parse_cpu): Remove.
2948         (mips_cpu_info_from_opt, mips_default_arch): New.
2949         (mips_handle_option): Don't assert that global structures are in
2950         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2951         (mips_option_override): Use new variables and functions to set
2952         state of these options.  Use strcmp to check for individual CPU names.
2953         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2954         definition.
2955         * config/mips/mips.opt (march=): Use ToLower and Enum.
2956         (mips): Use ToLower, Enum and Var.
2957         (mtune=): Use ToLower and Enum.
2958         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2959
2960 2011-05-08  Jan Hubicka  <jh@suse.cz>
2961
2962         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2963         Arrange type pairs to be UID ordered.
2964         (gimple_lookup_type_leader): Make inline.
2965
2966 2011-05-09  Nick Clifton  <nickc@redhat.com>
2967
2968         PR target/48899
2969         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2970         PROCESSOR_DEFAULT.
2971
2972         PR target/48897
2973         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2974         variable 's'.
2975
2976 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2977
2978         * combine.c (simplify_comparison): Abstract out parts into...
2979         (simplify_compare_const): ... new function.
2980         (try_combine): Generalize parallel arithmetic/compare combining
2981         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2982
2983 2011-05-08  Jan Hubicka  <jh@suse.cz>
2984
2985         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2986         (cgraph_create_virtual_clone): Call hooks once virtual clone
2987         is finished.
2988         * cgraph.h (cgraph_clone_node): Update prototype.
2989         * ipa-cp.c (ipcp_estimate_growth): Use
2990         estimate_ipcp_clone_size_and_time.
2991         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2992         * lto-cgraph.c (input_node): Update.
2993         * ipa-inline.c (recursive_inlining): Update.
2994         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2995         (evaluate_conditions_for_known_args): Break out from ...
2996         (evaluate_conditions_for_edge): ... here.
2997         (evaluate_conditions_for_ipcp_clone): New function.
2998         (inline_node_duplication_hook): Update clone summary based
2999         on parameter map.
3000         (estimate_callee_size_and_time): Rename to ...
3001         (estimate_node_size_and_time): take NODE instead of EDGE;
3002         take POSSIBLE_TRUTHS as argument.
3003         (estimate_callee_size_and_time): Update.
3004         (estimate_ipcp_clone_size_and_time): New function.
3005         (do_estimate_edge_time): Update.
3006
3007 2011-05-08  Richard Guenther  <rguenther@suse.de>
3008
3009         PR middle-end/48908
3010         PR middle-end/48905
3011         * expmed.c (expand_shift_1): Compute adjusted constant shift
3012         amount manually.
3013
3014 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3015
3016         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3017
3018 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3019
3020         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3021
3022 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
3023
3024         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3025
3026 2011-05-07  Jan Hubicka  <jh@suse.cz>
3027
3028         * ipa-inline-transform.c (inline_call): Account when program size
3029         decreases.
3030         * ipa-inline.c (relative_time_benefit): New function.
3031         (edge_badness): Reorganize to be power 2 based; fix thinko when
3032         computing badness for negative growth; update comments to match
3033         reality; better dumps.
3034
3035 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
3036
3037         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3038         type to bool and adjust comment.
3039         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3040         (fold_mathfn_compare): Remove calls to global_bindings_p.
3041         (fold_inf_compare): Likewise.
3042         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3043         * c-tree.h (global_bindings_p): Adjust prototype.
3044         * c-decl.c (global_bindings_p): Return bool and simplify.
3045
3046 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
3047
3048         PR tree-optimization/48837
3049         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3050         when accumulator transformation is performed.
3051
3052 2011-05-06  Jan Hubicka  <jh@suse.cz>
3053
3054         * i386.h (ix86_tune_indices): Add
3055         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3056         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3057         * i386.c (initial_ix86_tune_features): Add
3058         X86_SOFTARE_PREFETCHING_BENEFICIAL.
3059         (software_prefetching_beneficial_p): Remove predicate.
3060         (ix86_option_override_internal): Use new macro.
3061
3062 2011-05-06  Jan Hubicka  <jh@suse.cz>
3063
3064         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3065
3066 2011-05-06  Jan Hubicka  <jh@suse.cz>
3067
3068         * cgraph.c (cgraph_add_thunk): Create real function node instead
3069         of alias node; finalize it and mark needed/reachale; arrange visibility
3070         to be right and add it into the corresponding same comdat group list.
3071         (dump_cgraph_node): Dump thunks.
3072         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3073         cgraph_function_with_gimple_body_p,
3074         cgraph_first_function_with_gimple_body,
3075         cgraph_next_function_with_gimple_body): New functions.
3076         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3077         New macros.
3078         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3079         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3080         * cgraphunit.c (cgraph_finalize_function): Only look into possible
3081         devirtualization when optimizing.
3082         (verify_cgraph_node): Verify thunks.
3083         (cgraph_analyze_function): Analyze thunks.
3084         (cgraph_mark_functions_to_output): Output thunks only in combination
3085         with function they are assigned to.
3086         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3087         alias into normal node.
3088         (assemble_thunks): New functoin.
3089         (cgraph_expand_function): Use it.
3090         * lto-cgraph.c (lto_output_node): Stream thunks.
3091         (input_overwrite_node): Stream in thunks.
3092         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3093         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3094         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3095         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3096         (inline_analyze_function): Do not care about thunk jump functions.
3097         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3098         * ipa-prop.c (ipa_prop_write_jump_functions): Use
3099         cgraph_function_with_gimple_body_p.
3100         * passes.c (do_per_function_toporder): Use
3101         cgraph_function_with_gimple_body_p.
3102         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3103         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3104         (function_called_by_processed_nodes_p): Likewise.
3105
3106 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3107
3108         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3109         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3110         entries.
3111         (mabi=): Replace with separate entries for mabi=altivec,
3112         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3113         mabi=ieeelongdouble and mabi=ibmlongdouble.
3114         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3115         check for -mabi=spe without SPE ABI support here.
3116         (rs6000_handle_option): Replace OPT_mabi_ handling with
3117         OPT_mabi_altivec and OPT_mabi_spe handling.
3118
3119 2011-05-06  Cary Coutant  <ccoutant@google.com>
3120
3121         * dwarf2out.c (contains_subprogram_definition): New function.
3122         (should_move_die_to_comdat): Call it.
3123
3124 2011-05-06  Jeff Law  <law@redhat.com>
3125
3126         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3127         remove_ctrl_stmt_and_useless_edges.
3128         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3129         (fixup_template_block, thread_single_edge): Likewise.
3130         (mark_threaded_blocks): Use THREAD_TARGET.
3131
3132 2011-05-06  Alan Modra  <amodra@gmail.com>
3133
3134         PR target/48900
3135         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3136         const0_rtx as the arg to the dummy __tls_get_addr libcall.
3137
3138 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3139
3140         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3141         constraint modifier to "r".
3142
3143 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3144
3145         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3146         fall through for OPT_mcmodel_.
3147
3148 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3149
3150         * config/s390/s390.c (s390_asm_trampoline_template): Comment
3151         instruction sizes.
3152         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3153
3154 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3155
3156         PR target/47930
3157         * config/arm/arm.opt (marm): Document it.
3158         (mthumb): Reject negative variant.
3159
3160 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3161
3162         PR target/48898
3163         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3164         Fix typo in "ccvt" variable name.
3165
3166 2011-05-06  Tristan Gingold  <gingold@adacore.com>
3167
3168         PR target/48895
3169         * config/vms/vms-ar.c (main): Remove cwd variable.
3170
3171 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
3172
3173         PR debug/48902
3174         * var-tracking.c (prepare_call_arguments): Move else before #endif.
3175
3176 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3177
3178         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3179         * gimplify.c (gimplify_switch_expr): Likewise.
3180         * omp-low.c (expand_omp_sections): Likewise.
3181         * tree-eh.c (lower_try_finally_switch): Likewise.
3182         (lower_eh_dispatch): Likewise.
3183         * tree.h (build_case_label): Declare.
3184         * tree.c (build_case_label): Define.
3185
3186 2011-05-05  Jason Merrill  <jason@redhat.com>
3187
3188         PR c++/40975
3189         * tree-inline.c (copy_tree_r): Use copy_statement_list.
3190         (copy_statement_list): Don't recurse.
3191         * stor-layout.c (copy_self_referential_tree_r): Don't allow
3192         STATEMENT_LIST.
3193
3194 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3195
3196         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3197         through from -mfpu= handling.
3198         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3199
3200 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
3201
3202         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3203         POST_MODIFY.
3204
3205 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
3206
3207         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3208         for 11.31.
3209         (hppa[12]*-*-hpux11*): Ditto.
3210         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3211         * config/ia64/hpux-unix2003.h: New.
3212         * config/pa/pa-hpux1131.opt: New.
3213         * config/pa/pa-hpux1131.h: New.
3214         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3215         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3216         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3217
3218 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
3219
3220         PR debug/48853
3221         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3222         instead of mode as 3rd argument to recursive call.
3223         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3224         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3225         VOIDmode.
3226         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3227         don't give up if mode is Pmode and mem_mode is not VOIDmode.
3228         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3229         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3230
3231 2011-05-05  Julian Brown  <julian@codesourcery.com>
3232
3233         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3234         parenthesis in D-register case.
3235
3236 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3237
3238         * opt-functions.awk (var_type_struct): Handle Enum options.
3239         * optc-gen.awk: Don't check range of variables of character type.
3240         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3241         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3242         rs6000_sdata_name, rs6000_explicit_options): Remove.
3243         (rs6000_option_override_internal): Check for -malign-power here.
3244         Use global_options_set instead of rs6000_explicit_options.
3245         (rs6000_parse_fpu_option): Remove.
3246         (rs6000_handle_option): Access variables via opts and opts_set
3247         pointers.  Use error_at and warning_at.  Add fall-through
3248         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3249         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3250         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3251         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3252         here.  Don't use rs6000_parse_fpu_option.
3253         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3254         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3255         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3256         (mrecip=): Use Var.
3257         (mspe): Use Var and Save.
3258         (mtraceback=): Use Enum and Var.
3259         (rs6000_traceback_type): New Enum and EnumValue entries.
3260         (mfloat-gprs=): Use Enum, Var and Save.
3261         (rs6000_float_gprs): New Enum and EnumValue entries.
3262         (mlong-double-): use Var and Save.
3263         (msched-costly-dep=, minsert-sched-nops=): Use Var.
3264         (malign-): Use Enum and Var.
3265         (rs6000_alignment_flags): New Enum and EnumValue entries.
3266         (mfpu=): Use Enum.
3267         (fpu_type_t): New Enum and EnumValue entries.
3268         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3269         global_options_set instead of rs6000_explicit_options.
3270         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3271         global_options_set instead of rs6000_explicit_options.
3272         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3273         global_options_set instead of rs6000_explicit_options.
3274         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3275         global_options_set instead of rs6000_explicit_options.
3276         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3277         global_options_set instead of rs6000_explicit_options.
3278         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3279         global_options_set instead of rs6000_explicit_options.
3280         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3281         definition.
3282         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3283         global_options_set instead of rs6000_explicit_options.
3284         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3285         (rs6000_cmodel): New Enum and EnumValue entries.
3286         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3287         global_options_set instead of rs6000_explicit_options.
3288         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3289         (mtls-size=): Use Enum and Var.
3290         (rs6000_tls_size): New Enum and EnumValue entries.
3291
3292 2011-05-05  Michael Matz  <matz@suse.de>
3293
3294         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3295         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3296         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3297         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3298         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3299         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3300         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3301         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3302         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3303         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3304         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3305         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3306         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3307         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3308         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3309         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3310
3311 2011-05-05  Richard Guenther  <rguenther@suse.de>
3312
3313         * expmed.c (expand_variable_shift): Rename to ...
3314         (expand_shift_1): ... this.  Take an expanded shift amount.
3315         For rotates recurse directly not building trees for the shift amount.
3316         (expand_variable_shift): Wrap around expand_shift_1.
3317         (expand_shift): Adjust.
3318
3319 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
3320
3321         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3322
3323 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3324
3325         * tree.h (get_pending_sizes): Remove prototype.
3326         (put_pending_size): Likewise.
3327         (put_pending_sizes): Likewise.
3328         * stor-layout.c (pending_sizes): Delete.
3329         (get_pending_sizes): Likewise.
3330         (put_pending_size): Likewise.
3331         (put_pending_sizes): Likewise.
3332         (variable_size): Do not call put_pending_size and tidy up.
3333         * function.h (struct function): Remove dont_save_pending_sizes_p.
3334         * lto-streamer-in.c (input_function): Do not stream it.
3335         * lto-streamer-out.c (output_function): Likewise.
3336         * tree-inline.c (initialize_cfun): Do not copy it.
3337         * c-decl.c (store_parm_decls): Do not set it.
3338         * omp-low.c (create_task_copyfn): Likewise.
3339         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3340
3341 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
3342
3343         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3344         conditions.
3345         (*movdf_internal): Ditto.
3346         (*movdf_internal_nointeger): Ditto.
3347         (*movsf_internal): Ditto.
3348
3349 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3350
3351         * c-decl.c (finish_decl): Don't call get_pending_sizes.
3352         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
3353         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
3354         (c_variable_size): Remove.
3355         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
3356         call put_pending_sizes.
3357         (get_parm_info): Add parameter expr.  Use it to set
3358         arg_info->pending_sizes.
3359         (store_parm_decls): Use arg_info->pending_sizes instead or calling
3360         get_pending_sizes.
3361         * c-parser.c (c_parser_parms_declarator): Update call to
3362         c_parser_parms_list_declarator.
3363         (c_parser_parms_list_declarator): Take parameter expr.  Update
3364         call to push_parm_decl.  Update recursive call.  Don't call
3365         get_pending_sizes.  Update calls to get_parm_info.
3366         (c_parser_objc_method_definition): Update calls to
3367         c_parser_objc_method_decl and objc_start_method_definition.
3368         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3369         (c_parser_objc_method_decl): Add parameter expr.  Update call to
3370         grokparm.
3371         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3372         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3373         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3374
3375 2011-05-05  Michael Hope  <michael.hope@linaro.org>
3376
3377         PR pch/45979
3378         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3379         __ARM_EABI__ hosts.
3380
3381 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3382
3383         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3384         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3385         (spu_output_mi_thunk): New function.
3386
3387 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3388
3389         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3390         targetm.asm_out.print_operand.
3391         * config/sol2.c: Include target.h.
3392
3393 2011-05-04  Jan Hubicka  <jh@suse.cz>
3394
3395         * ipa-inline.c (reset_edge_caches): New function.
3396         (update_caller_keys): Add check_inlinablity_for; do not
3397         reset edge caches; remove now unnecesary loop.
3398         (update_callee_keys): Add comments; reset node_growth_cache of callee.
3399         (update_all_callee_keys): Likewise.
3400         (inline_small_functions): Sanity check cache; update code
3401         recomputing it.
3402
3403 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
3404
3405         PR rtl-optimization/47612
3406         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3407         as the last insn of the sequence to be moved.
3408
3409 2011-05-04  Tobias Burnus  <burnus@net-b.de>
3410
3411         PR fortran/48864
3412         * doc/invoke.texi (Ofast): Document that it
3413         enables Fortran's -fno-protect-parens.
3414
3415 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3416
3417         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3418
3419 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3420
3421         * stor-layout.c (variable_size): Do not issue errors.
3422
3423 2011-05-04  Richard Guenther  <rguenther@suse.de>
3424
3425         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3426         for array-ref indices.
3427         (tree_coverage_counter_addr): Likewise.
3428         (build_fn_info_type): Use size_int for index types.
3429         (build_gcov_info): Likewise.
3430
3431 2011-05-04  Richard Guenther  <rguenther@suse.de>
3432
3433         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3434         to build_int_cst.
3435         * c-typeck.c (really_start_incremental_init): Use bitsize_int
3436         for constructor indices.
3437         (push_init_level): Likewise.
3438
3439 2011-05-04  Richard Guenther  <rguenther@suse.de>
3440
3441         * explow.c (promote_mode): Move variable declarations before code.
3442
3443 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3444
3445         * tree.h (build_function_type_array): Declare.
3446         (build_varargs_function_type_array): Declare.
3447         (build_function_type_vec, build_varargs_function_type_vec): Define.
3448         * tree.c (build_function_type_array_1): New function.
3449         (build_function_type_array): New function.
3450         (build_varargs_function_type_array): New function.
3451
3452 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
3453
3454         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3455         before setting STMT_VINFO_TYPE.
3456
3457 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3458
3459         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3460         instead of spu_pass_by_reference.
3461
3462 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3463
3464         * calls.c (emit_library_call_value_1): Invoke
3465         promote_function_mode hook on libcall arguments.
3466         * explow.c (promote_function_mode, promote_mode): Handle TYPE
3467         argument being NULL.
3468         * targhooks.c (default_promote_function_mode): Lisewise.
3469         * config/s390/s390.c (s390_promote_function_mode): Likewise.
3470         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3471
3472         * doc/tm.texi: Document that TYPE argument might be NULL.
3473
3474 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3475
3476         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3477
3478 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3479
3480         From Bernd Schmidt
3481         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3482
3483 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3484
3485         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3486         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3487         Move ...
3488         * mips-tfile.c: ... here.
3489         Don't include coretypes.h, tm.h, filenames.h.
3490         (saber_stop): Remove definition and all calls.
3491         [__SABER__]: Remove.
3492         (__LINE__): Remove default.
3493         (Size_t, Ptrdiff_t): Remove definitions.
3494         Replace by size_t, ptrdiff_t.
3495         [!MIPS_DEBUGGING_INFO]: Remove.
3496         (SHASH_SIZE, THASH_SIZE): Remove defaults.
3497         (progname): Add const.
3498         (STATIC): Remove.
3499         Replace all uses by static.
3500         (ALIGN_SYMTABLE_OFFSET): Remove default.
3501         * mips-tdump.c: Don't include coretypes.h, tm.h.
3502         Remove !MIPS_IS_STAB guard.
3503         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3504         $(TM_H), filenames.h dependencies.
3505         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3506
3507 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3508
3509         From Jie Zhang
3510         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3511         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3512
3513 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3514
3515         From Bernd Schmidt
3516         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3517         account and save/restore RETS.
3518         (PROFILE_BEFORE_PROLOGUE): Define.
3519         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
3520         the push insn to use predecrement.
3521
3522 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3523
3524         From Jie Zhang
3525         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3526
3527 2011-05-04  Nick Clifton  <nickc@redhat.com>
3528
3529         * config/mn10300/mn10300.c: Include cfgloop.h.
3530         (DUMP): New macro.
3531         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
3532         Lcc or a FLcc insn into the instruction stream.
3533         (mn10300_block_contains_call): New function.  Returns true if the
3534         given basic block contains a CALL insn.
3535         (mn10300_loop_contains_call_insn): New function.  Returns true if
3536         the given loop contains a CALL insn.
3537         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
3538         to use the SETLB and Lcc or FLcc insns.
3539         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3540         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3541         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
3542         disable the SETLB optimization.
3543         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3544         __SETLB__ or __NO_SETLB__.
3545         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3546         (movsf_internal): Handle MDR register.
3547         (cmpsi): Make visible.
3548         (setlb): New pattern.
3549         (Lcc): New pattern.
3550         (FLcc): New pattern.
3551
3552 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3553
3554         PR target/48860
3555         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3556         for reg<->xmm moves.
3557         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3558         (vec_concatv2di_rex64_sse): Ditto.
3559         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3560         (*vec_extractv2di_1_rex64): Ditto.
3561
3562         Revert:
3563         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3564
3565         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3566         reg<->xmm moves.
3567         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3568
3569 2011-05-04  Richard Guenther  <rguenther@suse.de>
3570
3571         * tree.h (int_const_binop): Remove notrunc argument.
3572         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
3573         create integer constants that are properly truncated.
3574         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3575         (const_binop): Remove zero notrunc argument to int_const_binop.
3576         (size_binop_loc): Likewise.
3577         (fold_div_compare): Likewise.
3578         (maybe_canonicalize_comparison_1): Likewise.
3579         (fold_comparison): Likewise.
3580         (fold_binary_loc): Likewise.
3581         (multiple_of_p): Likewise.
3582         * expr.c (store_constructor): Likewise.
3583         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3584         (maybe_fold_stmt_addition): Likewise.
3585         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3586         * stor-layout.c (layout_type): Likewise.
3587         * tree-data-ref.c (tree_fold_divides_p): Likewise.
3588         * tree-sra.c (build_ref_for_offset): Likewise.
3589         (build_user_friendly_ref_for_offset): Likewise.
3590         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3591         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3592         * tree-ssa-loop-niter.c (inverse): Likewise.
3593         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3594         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3595         * tree-switch-conversion.c (check_range): Likewise.
3596         (build_constructors): Likewise.
3597         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3598         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3599         (extract_range_from_assert): Likewise.
3600         (vrp_int_const_binop): Likewise.
3601         (extract_range_from_binary_expr): Likewise.
3602         (extract_range_from_unary_expr): Likewise.
3603         (check_array_ref): Likewise.
3604         (find_case_label_range): Likewise.
3605         (simplify_div_or_mod_using_ranges): Likewise.
3606         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3607         comparing case labels for merging.
3608
3609 2011-05-03  Mark Wielaard  <mjw@redhat.com>
3610
3611         * dwarf2out.c (debug_str_hash_forced): Removed.
3612         (gen_label_for_indirect_string): Removed.
3613         (get_debug_string_label): Removed.
3614         (AT_string_form): Generate label directly.
3615         (output_indirect_string): Test indirect_string_node for
3616         DW_FORM_strp instead of checking label and refcount.
3617         (prune_indirect_string): Removed.
3618         (prune_unused_types): Don't check debug_str_hash_forced or
3619         call prune_indirect_string.
3620
3621 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
3622
3623         PR other/48093
3624         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3625
3626 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
3627
3628         PR debug/47994
3629         PR debug/47919
3630         * combine.c (try_combine): Skip debug insns at m_split tests.
3631
3632 2011-04-26  Mark Wielaard  <mjw@redhat.com>
3633
3634         PR42288
3635         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3636         when info_section_emitted.
3637
3638 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
3639
3640         * config/mips/mips-opts.h: New.
3641         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3642         to mips-opts.h.
3643         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3644         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3645         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
3646         via opts pointer.
3647         * config/mips/mips.h (enum mips_code_readable_setting): Move to
3648         mips-opts.h.
3649         (mips_abi, mips_code_readable): Don't declare.
3650         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3651         (mabi=): Use Enum and Var.
3652         (mips_abi): New Enum and EnumValue entries.
3653         (mcode-readable=): Use Enum and Var.
3654         (mips_code_readable_setting): New Enum and EnumValue entries.
3655         (mr10k-cache-barrier=): Use Enum and Var.
3656         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3657
3658 2011-05-03  Jan Hubicka  <jh@suse.cz>
3659
3660         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3661         replace hash by pointer map.
3662         (cgraph_node_set_element_def, cgraph_node_set_element,
3663         const_cgraph_node_set_element, varpool_node_set_element_def,
3664         varpool_node_set_element, const_varpool_node_set_element): Remove.
3665         (free_cgraph_node_set, free_varpool_node_set): New function.
3666         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3667         * tree-emutls.c: Free varpool node set.
3668         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3669         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3670         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3671         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3672         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3673         Move here from ipa.c; implement using pointer_map
3674         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3675         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3676         debug_cgraph_node_set, varpool_node_set_new,
3677         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3678         dump_varpool_node_set, debug_varpool_node_set):
3679         Move to ipa-uitls.c.
3680         * passes.c (ipa_write_summaries): Update.
3681
3682 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3683
3684         From Mike Frysinger:
3685         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3686         bf542/bf544/bf547/bf548/bf549.
3687
3688 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3689
3690         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3691
3692 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3693
3694         From Bernd Schmidt:
3695         * config/bfin/bfin.md (MOVCC): New mode_macro.
3696         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3697         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
3698         comments from generated assembly.
3699
3700 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3701
3702         From Bernd Schmidt
3703         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3704         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3705         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3706         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3707         * config/bfin/lib1funcs.asm (___muldi3): New function.
3708
3709 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3710
3711         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3712         build_function_type_list instead of build_function_type.
3713         Rearrange initialization of `args' to do so.
3714
3715 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3716
3717         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3718         instead of build_function_type.
3719
3720 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3721
3722         * config/rs6000/rs6000.c (spe_init_builtins): Call
3723         build_function_type_list instead of build_function_type.
3724         (paired_init_builtins, altivec_init_builtins): Likewise.
3725         (builtin_function_type): Likewise.
3726
3727 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3728
3729         * config/sh/sh.c (sh_media_init_builtins): Call
3730         build_function_type_list instead of build_function_type.
3731
3732 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3733
3734         * config/sparc/sparc.c (sparc_file_end): Call
3735         build_function_type_list instead of build_function_type.
3736
3737 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3738
3739         * config/alpha/alpha.c (alpha_init_builtins): Call
3740         build_function_type_list instead of build_function_type.
3741
3742 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3743
3744         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3745         build_function_type_list instead of build_function_type.
3746
3747 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3748
3749         * config/iq2000/i2000.c (iq2000_init_builtins): Call
3750         build_function_type_list instead of build_function_type.
3751         Delete `endlink' variable.
3752
3753 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3754
3755         * config/avr/avr.c (avr_init_builtins): Call
3756         build_function_type_list instead of build_function_type.
3757
3758 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3759
3760         * config/picochip/picochip.c (picochip_init_builtins): Call
3761         build_function_type_list instead of build_function_type.
3762         Delete `endlink' variable.
3763
3764 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3765
3766         * config/bfin/bfin.c (bfin_init_builtins): Call
3767         build_function_type_list instead of build_function_type.
3768
3769 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3770
3771         From Bernd Schmidt
3772         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3773         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
3774
3775 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3776
3777         From Jie Zhang:
3778         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3779         libbffastfp overrides libgcc when -mfast-fp.
3780
3781 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3782
3783         Originally from Bernd Schmidt
3784         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3785         * config/bfin/bfin.c (override_options): Test it and error if
3786         TARGET_FDPIC.
3787
3788 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3789
3790         Originally From Bernd Schmidt
3791         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3792         FD-PIC.
3793
3794 2011-05-03  Jeff Law  <law@redhat.com>
3795
3796         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3797         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3798         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3799         than accessing AUX field directly.  Free the AUX field before
3800         clearing it.
3801         (thread_block, thread_through_loop_header): Likewise.
3802         (thread_single_edge, mark_threaded_blocks): Likewise.
3803         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
3804         (register_jump_thread): Do not attempt to thread to a NULL edge.
3805
3806 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3807
3808         * function.c (init_function_start): Call decide_function_section.
3809         * varasm.c (decide_function_section): New function.
3810         (assemble_start_function): When not using
3811         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3812         or first_function_block_is_cold.
3813         * rtl.h (decide_function_section): Declare.
3814
3815 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3816             Jakub Jelinek  <jakub@redhat.com>
3817
3818         PR target/48774
3819         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3820         only succeed if req_mode is the same as set_mode.
3821
3822 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3823
3824         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3825         * genemit.c (gen_exp): Handle RETURN.
3826         * emit-rtl.c (verify_rtx_sharing): Likewise.
3827         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3828         * rtl.c (copy_rtx): RETURN is shared.
3829         * rtl.h (enum global_rtl_index): Add GR_RETURN.
3830         (ret_rtx): New.
3831         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3832         * config/s390/s390.c (s390_emit_epilogue): Likewise.
3833         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3834         * config/cris/cris.c (cris_expand_return): Likewise.
3835         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3836         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3837         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3838         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3839         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3840         Likewise.
3841         * config/v850/v850.c (expand_epilogue): Likewise.
3842         * config/bfin/bfin.c (bfin_expand_call): Likewise.
3843         * config/arm/arm.md (epilogue): Likewise.
3844         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3845         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3846         variable to ret_reg.
3847
3848 2011-05-03  Richard Guenther  <rguenther@suse.de>
3849
3850         PR lto/48846
3851         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3852         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3853         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3854
3855 2011-05-03  Richard Guenther  <rguenther@suse.de>
3856
3857         * c-decl.c (grokdeclarator): Instead of looking at
3858         TREE_OVERFLOW check if the constant fits in the index type.
3859
3860 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3861
3862         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3863         (vec_store_lanes<mode><mode>): Likewise.
3864
3865 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3866
3867         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3868         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3869         convert_optab_index values.
3870         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3871         * genopinit.c (optabs): Initialize the new optabs.
3872         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3873         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3874         (expand_STORE_LANES): New functions.
3875         * tree.h (build_array_type_nelts): Declare.
3876         * tree.c (build_array_type_nelts): New function.
3877         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3878         (vect_model_load_cost): Likewise.
3879         (vect_store_lanes_supported, vect_load_lanes_supported)
3880         (vect_record_strided_load_vectors): Declare.
3881         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3882         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3883         (vect_transform_strided_load): Split out statement recording into...
3884         (vect_record_strided_load_vectors): ...this new function.
3885         * tree-vect-stmts.c (create_vector_array, read_vector_array)
3886         (write_vector_array, create_array_ref): New functions.
3887         (vect_model_store_cost): Add store_lanes_p argument.
3888         (vect_model_load_cost): Add load_lanes_p argument.
3889         (vectorizable_store): Try to use store-lanes functions for
3890         interleaved stores.
3891         (vectorizable_load): Likewise load-lanes and loads.
3892         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3893         to vect_model_store_cost.
3894         (vect_build_slp_tree): Likewise vect_model_load_cost.
3895
3896 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3897
3898         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3899         * hooks.c (hook_bool_mode_uhwi_false): New function.
3900         * target.def (array_mode_supported_p): New hook.
3901         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3902         * doc/tm.texi: Regenerate.
3903         * stor-layout.c (mode_for_array): New function.
3904         (layout_type): Use it.
3905         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3906         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3907
3908 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3909
3910         PR target/48723
3911         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3912         for -fstack-check if the size to allocate is negative.
3913
3914 2011-05-02  Lawrence Crowl  <crowl@google.com>
3915
3916         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3917         (timevar_cond_start): New for starting a timer only when it is not
3918         already running.
3919         (timevar_cond_stop): New for stopping a timer when it was not already
3920         running.
3921
3922         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3923         (timevar_cond_start): New as above.
3924         (timevar_cond_stop): New as above.
3925
3926         * timevar.def: Add start/stop timers for compiler phases,
3927         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3928         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3929         and TV_PHASE_FINALIZE.
3930         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3931         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3932         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3933         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3934         Make unused TV_OVERLOAD into a start/stop timer.
3935
3936         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3937         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3938         to indicate that they are start/stop timers.
3939
3940         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3941         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3942         Move initialization to do_compile.
3943         (do_compile): Add initialization from above.
3944         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3945
3946         * c-decl.c (c_write_global_declarations): Add start/stop of
3947         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3948
3949         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3950         or TV_PARSE_INLINE, as appropriate.
3951         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3952         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3953
3954 2011-05-02  Jason Merrill  <jason@redhat.com>
3955
3956         PR c++/40975
3957         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3958
3959 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3960
3961         PR c/35445
3962         * c-decl.c (finish_decl): Only create a composite if the types are
3963         compatible.
3964
3965 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3966
3967         * config/fr30/fr30-protos.h (Mmode): Don't define.
3968         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3969         definition where used.
3970         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3971         define.  Expand definitions where used.
3972         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3973         Expand definitions where used.
3974         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3975         rx_function_arg, rx_function_arg_advance,
3976         rx_function_arg_boundary): Expand definitions of those macros.
3977         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3978         definition where used.
3979
3980 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3981
3982         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3983         reg<->xmm moves.
3984         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3985         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3986         with *movv2sf_internal_rex64_avx.
3987         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3988         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3989         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3990         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3991         "vex" in "prefix" attribute calculation.
3992         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3993
3994 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3995
3996         PR target/47951
3997         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3998         inputs match the output.
3999
4000 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
4001
4002         PR target/47955
4003         * config/m68k/m68k.c (m68k_expand_prologue): Set
4004         current_function_static_stack_size.
4005
4006 2011-05-02   Jan Hubicka  <jh@suse.cz>
4007
4008         * lto-streamer.c (lto_streamer_cache_insert_1,
4009         lto_streamer_cache_lookup, lto_streamer_cache_create,
4010         lto_streamer_cache_delete): Use pointer map instead of hashtable.
4011         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4012
4013 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4016         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4017         config/m68k/t-opts: New files.
4018         * config/m68k/m68k-tables.opt: New file (generated).
4019         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4020         extra_options and m68k/t-opts to tmake_file.
4021         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4022         (all_isas): Initialize using m68k-isas.def.
4023         (all_microarchs): Initialize using m68k-microarchs.def.
4024         (m68k_find_selection): Remove.
4025         (m68k_handle_option): Don't assert that global structures are in
4026         use.  Use error_at.  Access variables via opts pointer.  Don't
4027         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
4028         directly for -m68020-40 and -m68020-60.
4029         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4030         m68k_tune_entry here.
4031         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4032         to m68k-opts.h.
4033         (m68k_library_id_string): Remove declaration.
4034         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4035         (m68k_library_id_string): New Variable.
4036         (march=, mcpu=, mtune=): Use Enum and Var.
4037
4038 2011-05-02  Richard Guenther  <rguenther@suse.de>
4039
4040         * varasm.c (output_constructor_regular_field): Compute zero-based
4041         index with double-ints.  Make sure to ICE instead of producing
4042         wrong code.
4043         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4044         in asserts.  Properly use a signed type.
4045
4046 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4047
4048         * config/i386/sse.md (V): New mode iterator.
4049         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
4050         TARGET_SSE2.
4051         (V_256): Rename from AVX256MODE.
4052         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
4053         condition to all users.
4054         (VF1): Ditto.
4055         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
4056         condition to all users.
4057         (VF_128): Make V4SF mode unconditional.
4058         (VF_256): Rename from AVX256MODEF2P.
4059         (VI4F_128): Rename from SSEMODE4S.
4060         (VI8F_128): Rename from SSEMODE2D.
4061         (VI4F_256): Rename from AVX256MODE8P.
4062         (VI8F_256): Rename from AVX256MODE4P.
4063         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4064         (ssescalarmodesuffix): Remove SF and DF modes.
4065         (SSEMODE124): Remove.
4066         (SSEMODE1248): Ditto.
4067         (SSEMODEF2P): Ditto.
4068         (AVXMODEF2P): Ditto.
4069         (AVXMODEFDP): Ditto.
4070         (AVXMODEFSP): Ditto.
4071         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4072         unconditional.
4073         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
4074         unconditional.
4075         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4076         xop_pcmov_<mode>256.  Use V mode iterator.
4077
4078         Adjust RTX patterns globally for renamed mode attributes.
4079
4080 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4081
4082         * haifa-sched.c (sched_emit_insn): Emit insn before first
4083         non-scheduled insn.  Inform back-end about new insn.  Add
4084         new insn to scheduled_insns list.
4085
4086 2011-05-02  Richard Guenther  <rguenther@suse.de>
4087
4088         PR tree-optimization/48822
4089         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4090         (process_scc): Indicate which iteration we start.
4091
4092 2011-05-02  Jan Hubicka  <jh@suse.cz>
4093
4094         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4095         (lto_section_overrun): New.
4096         * lto-section-out.c (append_block): Rename to ...
4097         (lto_append_block): ... this one; export.
4098         (lto_output_1_stream): Move lto lto-streamer.h
4099         (lto_output_data_stream): Update.
4100         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4101         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4102         functions.
4103
4104 2011-05-02  Richard Guenther  <rguenther@suse.de>
4105
4106         * tree.c (tree_code_counts): New global array.
4107         (record_node_allocation_statistics): Count individual tree codes.
4108         (dump_tree_statistics): Dump individual code stats.
4109
4110 2011-05-01  Jan Hubicka  <jh@suse.cz>
4111
4112         * ipa-inline.c (caller_growth_limits): Fix thinko when
4113         looking for largest stack frame.
4114         * ipa-inline.h (dump_inline_summary): Declare.
4115         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4116         on stack usage.
4117         (dump_inline_summary): Export.
4118         (debug_inline_summary): Declare as DEBUG_FUNCTION.
4119
4120 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
4121
4122         * reginfo.c (memory_move_cost): Change rclass argument type form
4123         'enum reg_class' to reg_class_t.
4124         * reload.h (memory_move_cost): Update prototype.
4125         * postreload.c reload_cse_simplify_set): Change type dclass var to
4126         reg_class_t.
4127         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4128         Update prototype.
4129         (ira_allocate_and_set_costs): Change aclass argument type form
4130         'enum reg_class' to reg_class_t.
4131         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4132         Change aclass argument type to reg_class_t.
4133         (update_conflict_hard_reg_costs): Change type aclass and pref vars
4134         to reg_class_t.
4135         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4136         memory_move_cost call.
4137
4138         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4139         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4140         Change type tmp var to reg_class_t.
4141
4142 2011-04-30  Jan Hubicka  <jh@suse.cz>
4143
4144         * ipa-inline.c (can_inline_edge_p): Disregard limits when
4145         inlining into function with flatten attribute.
4146         (want_inline_small_function_p): Be more realistic about inlining
4147         cold calls where callee size grows.
4148
4149 2011-04-30  Jan Hubicka  <jh@suse.cz>
4150
4151         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4152         flags.
4153
4154 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
4155
4156         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4157         PRINT_OPERAND_PUNCT_VALID_P): Remove.
4158         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4159         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4160         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4161         (print_operand): Rename to...
4162         (sparc_print_operand): ...this. Make static. Adjust
4163         sparc_print_operand function call.
4164         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4165         functions.
4166
4167 2011-04-30  Jan Hubicka  <jh@suse.cz>
4168
4169         PR middle-end/48752
4170         * ipa-inline.c (early_inliner): Disable when doing late
4171         addition of function.
4172
4173 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
4174
4175         * dwarf2out.c (get_address_mode): New inline.
4176         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4177         if not dwarf_strict emit
4178         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4179         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4180         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
4181         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4182         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4183         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4184         mem_loc_descriptor callers.
4185         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4186         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4187         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4188         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4189         (base_types): New variable.
4190         (get_base_type_offset, calc_base_type_die_sizes,
4191         base_type_for_mode, mark_base_types, base_type_cmp,
4192         move_marked_base_types): New functions.
4193         (calc_die_sizes): Assert that die_offset is 0 or equal to
4194         next_die_offset.
4195         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4196         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
4197         callers.  If not dwarf_strict, call mem_loc_descriptor even for
4198         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4199         (gen_subprogram_die): Don't give up on call site parameters
4200         with non-integral or large integral modes.  Adjust
4201         mem_loc_descriptor callers.
4202         (prune_unused_types): Call prune_unused_types_mark on base_types
4203         vector entries.
4204         (resolve_addr): Call mark_base_types.
4205         (dwarf2out_finish): Call move_marked_base_types.
4206
4207         PR tree-optimization/48809
4208         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4209         type.
4210         (gen_inbound_check): Don't compute index_expr - range_min in utype
4211         again, instead reuse SSA_NAME initialized in build_arrays.
4212         Remove two useless gsi_for_stmt calls.
4213
4214 2011-04-29  Jeff Law  <law@redhat.com>
4215
4216         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4217
4218 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4219
4220         * cgraph.h (cgraph_postorder): Remove declaration.
4221         * ipa-utils.h (ipa_free_postorder_info): Declare.
4222         (ipa_reverse_postorder): Likewise.
4223         * cgraphunit.c: Include ipa-utils.h.
4224         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4225         * ipa-inline.c: Include ipa-utils.h.
4226         (ipa_inline): Update call to ipa_reverse_postorder.
4227         * ipa-pure-const.c (propagate_pure_const): Update call to
4228         ipa_reduced_postorder and ipa_print_order.  Call
4229         ipa_free_postorder_info to clean up.
4230         (propagate_nothrow): Likewise.
4231         * ipa-reference.c (propagate): Removed a useless call to
4232         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4233         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
4234         * ipa.c: Include ipa-utils.h.
4235         (ipa_profile): Update call to ipa_reverse_postorder.
4236         (cgraph_postorder): Moved to...
4237         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4238         (ipa_utils_print_order): Renamed to ipa_print_order.
4239         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4240         comments.
4241         (ipa_free_postorder_info): New function.
4242         * passes.c: Include ipa-utils.h.
4243         (do_per_function_toporder): Update call to ipa_reverse_postorder.
4244         (ipa_write_summaries): Likewise.
4245         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4246         (cgraphunit.o): Likewise.
4247         (ipa.o): Likewise.
4248         (ipa-inline.o): Likewise.
4249
4250 2011-04-29  Jan Hubicka  <jh@suse.cz>
4251
4252         * gcc.dg/tree-ssa/inline-10.c: New testcase.
4253         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4254         * ipa-inline.h (clause_t): Turn into unsigned int.
4255         * ipa-inline-analysis.c (add_clause): Do more simplification.
4256         (and_predicates): Shortcut more cases.
4257         (predicates_equal_p): Move forward; check that clauses are properly
4258         ordered.
4259         (or_predicates): Shortcut more cases.
4260         (edge_execution_predicate): Rewrite as...
4261         (set_cond_stmt_execution_predicate): ... this function; handle
4262         __builtin_constant_p.
4263         (set_switch_stmt_execution_predicate): New .
4264         (compute_bb_predicates): New.
4265         (will_be_nonconstant_predicate): Update TODO.
4266         (estimate_function_body_sizes): Use compute_bb_predicates
4267         and free them later, always try to estimate if stmt is constant.
4268         (estimate_time_after_inlining, estimate_size_after_inlining):
4269         Gracefully handle optimized out edges.
4270         (read_predicate): Fix off by one error.
4271
4272 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4273
4274         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4275
4276 2011-04-27  Xinliang David Li  <davidxl@google.com>
4277
4278         * tree-profile.c (init_ic_make_global_vars): Set
4279         tls attribute on ic vars.
4280         * coverage.c (coverage_end_function): Initialize
4281         function_list with zero.
4282
4283 2011-04-29  Richard Guenther  <rguenther@suse.de>
4284
4285         * builtins.c (fold_builtin_classify_type): Use integer_type_node
4286         for the type of the result.
4287         (fold_builtin_isascii): Likewise.
4288         (fold_builtin_toascii): Use integer_type_node where appropriate.
4289         (fold_builtin_logb): Likewise.
4290         (fold_builtin_frexp): Likewise.
4291         (fold_builtin_strstr): Likewise.
4292         (fold_builtin_strpbrk): Likewise.
4293         (fold_builtin_fputs): Likewise.
4294         (fold_builtin_sprintf): Likewise.
4295         (fold_builtin_snprintf): Likewise.
4296         (fold_builtin_printf): Likewise.
4297         (do_mpfr_remquo): Use a proper type for the assigned constant.
4298         (do_mpfr_lgamma_r): Likewise.
4299         * dwarf2out.c (resolve_one_addr): Use size_int.
4300         * except.c (init_eh): Likewise.
4301         (assign_filter_values): Use integer_type_node for filter values.
4302         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4303         indices.
4304         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4305         for EH region numbers.
4306         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4307         for the shift amount.
4308
4309 2011-04-29  Richard Guenther  <rguenther@suse.de>
4310
4311         * expr.h (expand_shift): Rename to ...
4312         (expand_variable_shift): ... this.
4313         (expand_shift): Take a constant shift amount.
4314         * expmed.c (expand_shift): Rename to ...
4315         (expand_variable_shift): ... this.
4316         (expand_shift): New wrapper around expand_variable_shift.
4317         * expr.c (convert_move, emit_group_load_1, emit_group_store,
4318         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4319         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4320         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4321         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4322         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4323         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4324         emit_store_flag_1, emit_store_flag): Likewise.
4325         * builtins.c (expand_builtin_signbit): Likewise.
4326         * calls.c (load_register_parameters): Likewise.
4327         * function.c (assign_parm_setup_block): Likewise.
4328         * lower-subreg.c (resolve_shift_zext): Likewise.
4329         * optabs.c (widen_bswap, expand_abs_nojump,
4330         expand_one_cmpl_abs_nojump, expand_float): Likewise.
4331         * spu/spu.c (spu_expand_extv): Likewise.
4332         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4333
4334 2011-04-29  Richard Guenther  <rguenther@suse.de>
4335
4336         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4337         for the remapped region number.
4338         * predict.c (build_predict_expr): Use integer_type_node for the
4339         predict kind.
4340         * fold-const.c (fold_binary_loc): Use integer_type_node for
4341         the shift amount.  Use a proper type for the PLUS_EXPR operand.
4342
4343 2011-04-29  Michael Matz  <matz@suse.de>
4344
4345         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4346         other trees that just builtins.
4347         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4348
4349 2011-04-29  Richard Guenther  <rguenther@suse.de>
4350
4351         * tree-nested.c (get_trampoline_type): Use size_int.
4352         (get_nl_goto_field): Likewise.
4353         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4354         for all indexes.
4355         (lower_eh_constructs_2): Likewise.
4356         (lower_resx): Likewise.
4357         (lower_eh_dispatch): Likewise.
4358         * tree-mudflap.c (mf_build_string): Use size_int.
4359         (mudflap_register_call): Use integer_type_node for the flag.
4360         (mudflap_enqueue_constant): Use size_int.
4361         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4362         instead of rebuilding it.
4363
4364 2011-04-29  Richard Guenther  <rguenther@suse.de>
4365
4366         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4367         Handle OBJ_TYPE_REF.
4368         (find_func_aliases_for_call): Use it more consistently.
4369
4370 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
4371
4372         * haifa-sched.c (last_nondebug_scheduled_insn): New.
4373         (rank_for_schedule): Use it.
4374         (schedule_block): Set it.
4375
4376 2011-04-28  David Li  <davidxl@google.com>
4377
4378         * tree.c (crc32_string): Use crc32_byte.
4379         (crc32_byte): New function.
4380         * tree.h (crc32_byte): New function.
4381         * gcov.c (read_graph_file): Handle new cfg_cksum.
4382         (read_count_file): Ditto.
4383         * profile.c (instrument_values): Ditto.
4384         (get_exec_counts): Ditto.
4385         (read_profile_edge_counts): Ditto.
4386         (compute_branch_probabilities): Ditto.
4387         (compute_value_histograms): Ditto.
4388         (branch_prob): Ditto.
4389         (end_branch_prob): Ditto.
4390         * coverage.c (read_counts_file): Ditto.
4391         (get_coverage_counts): Ditto.
4392         (tree_coverage_counter_addr): Ditto.
4393         (coverage_checksum_string): Ditto.
4394         (coverage_begin_output): Ditto.
4395         (coverage_end_function): Ditto.
4396         (build_fn_info_type): Ditto.
4397         (build_fn_info_value): Ditto.
4398         * libgcov.c (gcov_exit): Ditto.
4399         * gcov-dump.c (tag_function): Ditto.
4400         (compute_checksum): Remove.
4401
4402 2011-04-29  Alan Modra  <amodra@gmail.com>
4403
4404         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4405         unspec plus offset.  Tidy macho code.
4406
4407 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4408
4409         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4410         node instead of a decl.  Update all callers.
4411         * cgraph.h: Update declaration.
4412
4413 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
4414
4415         PR tree-optimization/48765
4416         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4417         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4418         to indicate if loop aware SLP is being used.  Scan the statements
4419         and update the vectorization factor according to the type of
4420         vectorization before statement analysis.
4421         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4422         pass it to vect_analyze_loop_operations.
4423         (vectorizable_reduction): Set number of copies to 1 in case of pure
4424         SLP statement.
4425         * tree-vect-stmts.c (vectorizable_conversion,
4426         vectorizable_assignment, vectorizable_shift,
4427         vectorizable_operation, vectorizable_type_demotion,
4428         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4429         Likewise.
4430         (vectorizable_condition): Move the check that it is not SLP
4431         vectorization before the number of copies check.
4432         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4433         to vectorize the loop using SLP.
4434
4435 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
4436
4437         PR middle-end/48597
4438         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4439         inline asm.
4440
4441 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
4442
4443         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4444         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4445         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4446         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4447         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4448         linux*.h headers.
4449         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4450         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4451         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4452         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4453         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4454         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4455         REG_NAME.
4456         * config/i386/linux.h (REG_NAME): Don't define.
4457         * config/i386/linux64.h (REG_NAME): Don't define.
4458         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4459         Undefine before defining.
4460
4461 2011-04-28  Jan Hubicka  <jh@suse.cz>
4462
4463         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4464         nonconstant_names array.
4465         (estimate_function_body_sizes): Build nonconstant_names array; handle
4466         BUILT_IN_CONSTANT_P.
4467
4468 2011-04-28  Richard Guenther  <rguenther@suse.de>
4469
4470         PR bootstrap/48804
4471         Revert
4472         2011-04-28  Richard Guenther  <rguenther@suse.de>
4473
4474         * tree-ssa-structalias.c (solve_constraints): Build succ graph
4475         as late as possible.
4476
4477 2011-04-28  Richard Guenther  <rguenther@suse.de>
4478
4479         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4480         (debug_constraint): Do it here.
4481         (dump_constraints): And here.
4482         (rewrite_constraints): And here.
4483         (dump_constraint_edge): Remove.
4484         (dump_constraint_graph): Rewrite to produce DOT output.
4485         (solve_constraints): Build succ graph as late as possible.
4486         Dump constraint graphs before and after solving.
4487
4488 2011-04-28  Richard Guenther  <rguenther@suse.de>
4489
4490         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4491         New function split out from ...
4492         (find_func_aliases): ... here.  Call it.
4493         (find_func_aliases_for_call): Likewise.
4494
4495 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4496
4497         * internal-fn.h (internal_fn_name_array): Declare.
4498         (internal_fn_flags_array): Likewise.
4499
4500 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
4501
4502         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
4503         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4504         Move from sse.md.
4505         (ssemodefsuffix): Remove.
4506         (ssevecmodesuffix): New mode attribute.
4507         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4508         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4509         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4510         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4511         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4512         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4513         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4514         ssemodesuffix mode attribute.
4515         (float splitters): Use ssevecmodesuffix mode attribute.
4516         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4517         (sseinsmode): Rename from avxvecmode.
4518         (avxsizesuffix): Rename from avxmodesuffix.
4519         (sseintvecmode): Rename from avxpermvecmode.
4520         (ssedoublevecmode): Rename from ssedoublesizemode.
4521         (ssehalfvecmode): Rename from avxhalfvecmode.
4522         (ssescalarmode): Rename from avxscalarmode.
4523         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4524         templates for ssemodesuffix mode attribute.
4525         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4526         mode attribute.
4527
4528         Adjust RTX patterns globally for renamed mode attributes.
4529
4530 2011-04-27  Jan Hubcika  <jh@suse.cz>
4531
4532         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4533         * ipa-inline-analysis.c: Include alloc-pool.h.
4534         (edge_predicate_pool): New.
4535         (trye_predicate_p): New function
4536         (false_predicate_p): New function.
4537         (add_clause): Sanity check that false clauses are "optimized";
4538         never add clauses to predicate that is already known to be false.
4539         (and_predicate): Use flase_predicate_p.
4540         (evaulate_predicate): Rename to ...
4541         (evaluate_predicate): ... this one; update all callers; assert
4542         that false is not listed among possible truths.
4543         (dump_predicate): Use true_predicate_p.
4544         (account_size_time): Use false_predicate_p.
4545         (evaulate_conditions_for_edge): Rename to ...
4546         (evaluate_conditions_for_edge) ... this one.
4547         (edge_set_predicate): New function.
4548         (inline_edge_duplication_hook): Duplicate edge predicates.
4549         (inline_edge_removal_hook): Free edge predicates.
4550         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4551         (dump_inline_summary): Update.
4552         (estimate_function_body_sizes): Set edge predicates.
4553         (estimate_calls_size_and_time): Handle predicates.
4554         (estimate_callee_size_and_time): Update.
4555         (remap_predicate): Add toplev_predicate; update comment.
4556         (remap_edge_predicates): New function.
4557         (inline_merge_summary): Compute toplev predicate; update.
4558         (read_predicate): New function.
4559         (read_inline_edge_summary): Use it.
4560         (inline_read_section): Likewise.
4561         (write_predicate): New function.
4562         (write_inline_edge_summary): Use it.
4563         (inline_write_summary): Likewise.
4564         (inline_free_summary): Free alloc pool and edge summary vec.
4565
4566 2011-04-27  Richard Guenther  <rguenther@suse.de>
4567
4568         * tree-ssa-structalias.c (changed_count): Remove.
4569         (changed): Use a bitmap.
4570         (unify_nodes): Adjust.
4571         (do_sd_constraint): Likewise.
4572         (do_ds_constraint): Likewise.
4573         (do_complex_constraint): Likewise.
4574         (solve_graph): Likewise.
4575
4576 2011-04-27  Jan Hubicka  <jh@suse.cz>
4577
4578         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4579
4580 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
4581
4582         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4583         (avx_vperm2f128_*_operand): Ditto.
4584         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4585         Use avx_vpermilp_parallel in insn condition.
4586         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4587         Use avx_vperm2f128_parallel in insn condition.
4588
4589 2011-04-27  Richard Guenther  <rguenther@suse.de>
4590
4591         * Makefile.in (tree-ssa-structalias.o): Remove
4592         gt-tree-ssa-structalias.h dependency.
4593         (GTFILES): Remove tree-ssa-structalias.c.
4594         * tree.c (allocate_decl_uid): New function.
4595         (make_node_stat): Use it.
4596         (copy_node_stat): Likewise.
4597         * tree.h (allocate_decl_uid): Declare.
4598         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4599         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4600         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4601         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4602         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4603         (struct heapvar_map): Likewise.
4604         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4605         heapvar_insert): Likewise.
4606         (make_heapvar_for): Rename to ...
4607         (make_heapvar): ... this.  Simplify.
4608         (fake_var_decl_obstack): New global var.
4609         (build_fake_var_decl): New function.
4610         (make_constraint_from_heapvar): Adjust.
4611         (handle_lhs_call): Likewise.
4612         (create_function_info_for): Likewise.
4613         (intra_create_variable_infos): Likewise.
4614         (init_alias_vars): Allocate fake_var_decl_obstack.
4615         (init_alias_heapvars, delete_alias_heapvars): Remove.
4616         (compute_points_to_sets): Do not call init_alias_heapvars.
4617         (ipa_pta_execute): Likewise.
4618         (delete_points_to_sets): Free fake_var_decl_obstack.
4619
4620 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4621
4622         * config/spu/divmovti4.c (union qword_UTItype): New data type.
4623         (si_from_UTItype, si_to_UTItype): New functions.
4624         (__udivmodti4): Use them to implement type-punning.
4625         * config/spu/multi3.c (union qword_TItype): New data type.
4626         (si_from_TItype, si_to_TItype): New functions.
4627         (__multi3): Use them to implement type-punning.
4628
4629 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4630
4631         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4632
4633 2011-04-27  Jan Hubicka  <jh@suse.cz>
4634
4635         * ipa-prop.c (function_insertion_hook_holder): New holder.
4636         (ipa_add_new_function): New function.
4637         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4638         Register/deregister holder.
4639
4640 2011-04-27  Richard Guenther  <rguenther@suse.de>
4641
4642         PR tree-optimization/48772
4643         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4644
4645 2011-04-27  Richard Guenther  <rguenther@suse.de>
4646
4647         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4648         TARGET_MEM_REF handling.
4649
4650 2011-04-27  Nick Clifton  <nickc@redhat.com>
4651
4652         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4653         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4654         (REG_CLASS_NAMES): Likewise.
4655         (REG_CLASS_CONTENTS): Likewise.
4656         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
4657         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
4658         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
4659         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
4660         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
4661         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4662         duplicate register classes.
4663         (frv_class_likely_spilled_p): Likewise.
4664         (frv_register_move_cost): Likewise.
4665
4666         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4667         end of the regno_reg_class array.
4668
4669 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
4670
4671         PR c/48742
4672         * c-typeck.c (build_binary_op): Don't wrap arguments if
4673         int_operands is true.
4674
4675 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
4676
4677         PR target/48767
4678         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4679         targetm.calls.must_pass_in_stack for void type.
4680
4681 2011-04-26  Jan Hubicka  <jh@suse.cz>
4682
4683         * cgraphbuild.c (build_cgraph_edges): Update call
4684         of cgraph_create_edge and cgraph_create_indirect_edge.
4685         * cgraph.c (cgraph_create_edge_including_clones,
4686         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4687         cgraph_update_edges_for_call_stmt_node): Do not take nest
4688         argument; do not initialize call_stmt_size/time.
4689         (dump_cgraph_node): Do not dump nest.
4690         (cgraph_clone_edge): Do not take loop_nest argument;
4691         do not propagate it; do not clone call_stmt_size/time.
4692         (cgraph_clone_node): Likewise.
4693         (cgraph_create_virtual_clone): Update.
4694         * cgraph.h (struct cgraph_edge): Remove
4695         call_stmt_size/call_stmt_time/loop_nest.
4696         (cgraph_create_edge, cgraph_create_indirect_edge,
4697         cgraph_create_edge_including_clones, cgraph_clone_node): Update
4698         prototype.
4699         * tree-emutls.c (gen_emutls_addr): Update.
4700         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4701         loop_nest; handle indirect calls, too.
4702         (clone_inlined_nodes): Do not care about updating inline summaries.
4703         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4704         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4705         stream call_stmt_size/call_stmt_time/loop_nest.
4706         * ipa-inline.c (edge_badness): Update.
4707         (ipa_inline): dump summaries after inlining.
4708         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4709         New.
4710         (inline_edge_summary): New function.
4711         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4712         (inline_edge_removal_hook): Handle edge summaries.
4713         (inline_edge_duplication_hook): New hook.
4714         (inline_summary_alloc): Alloc hooks.
4715         (initialize_growth_caches): Do not register removal hooks.
4716         (free_growth_caches); Do not free removal hook.
4717         (dump_inline_edge_summary): New function.
4718         (dump_inline_summary): Use it.
4719         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4720         (inline_update_callee_summaries): New function.
4721         (inline_merge_summary): Use it.
4722         (do_estimate_edge_time, do_estimate_edge_growth): Update.
4723         (read_inline_edge_summary): New function.
4724         (inline_read_section): Use it.
4725         (write_inline_edge_summary): New function.
4726         (inline_write_summary): Use it.
4727         (inline_free_summary): Free edge new holders.
4728         * tree-inline.c (copy_bb): Update.
4729
4730 2011-04-26  Jason Merrill  <jason@redhat.com>
4731
4732         * tree-eh.c (lower_try_finally_switch): Create the label along with
4733         the CASE_LABEL_EXPR.
4734
4735 2011-04-26  David S. Miller  <davem@davemloft.net>
4736             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4737
4738         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4739         * configure: Regenerate.
4740
4741 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4742
4743         PR target/48258
4744         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4745         reduction.
4746         (VEC_reduc): New code iterator and splitters for vector reduction.
4747         (VEC_reduc_name): Ditto.
4748         (VEC_reduc_rtx): Ditto.
4749         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4750         (reduc_<VEC_reduc_name>_v4sf): Ditto.
4751
4752         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4753         support for extracting SF on VSX.
4754
4755         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4756         generating xscvspdp.
4757         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4758         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4759         double add, minimum, maximum vector reduction.
4760         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4761         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4762         optimize double vector reduction.
4763         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4764
4765 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
4766
4767         * config/fr30/fr30.h (inhibit_libc): Don't define.
4768         * config/m32r/m32r-protos.h: Correct comment.
4769         * config/v850/v850.h (GHS_default_section_names,
4770         GHS_current_section_names): Use tree, not union tree_node *.
4771
4772 2011-04-26  Xinliang David Li  <davidxl@google.com>
4773
4774         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4775         * c-family/c-opts.c (c_common_handle_option): Set
4776         warn_maybe_uninitialized.
4777         * opts.c (common_handle_option): Ditto.
4778         * common.opt:  New option.
4779         * tree-ssa.c (warn_uninit): Add one more parameter.
4780         (warn_uninitialized_var): Pass warning code.
4781         * tree-flow.h: Interface change.
4782
4783 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4784
4785         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4786         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4787         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4788
4789 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4790
4791         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4792         * config/mips/mips.opt (mmips-tfile): Remove.
4793
4794         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4795         mips-tdump reference to ...
4796         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
4797         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4798         reference by Tru64 UNIX.
4799
4800 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
4801
4802         PR debug/48768
4803         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4804         is error_mark_node, set value to NULL.
4805
4806         PR tree-optimization/48734
4807         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4808         if return value from maybe_fold_*_comparsions isn't something
4809         the code is prepared to handle.
4810
4811 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
4812
4813         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4814         mode check.
4815         (ext_QIreg_nomode_operands): Remove.
4816         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4817         (*andsi_1): Ditto.
4818         (*andhi_1): Ditto.
4819
4820 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
4821
4822         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4823
4824 2011-04-26  Richard Guenther  <rguenther@suse.de>
4825
4826         * c-typeck.c (build_unary_op): Do not expand array-refs via
4827         pointer arithmetic.  Only adjust qualifiers for function types.
4828
4829 2011-04-26  Richard Guenther  <rguenther@suse.de>
4830
4831         PR middle-end/48694
4832         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4833         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4834         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
4835         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4836
4837 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4838
4839         * doc/extend.texi: Document __underlying_type.
4840
4841 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
4842
4843         * config/rs6000/titan.md (automata_option "progress"): Remove.
4844
4845 2011-04-25  Jeff Law  <law@redhat.com>
4846
4847         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4848
4849 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4850
4851         * system.h (ENUM_BITFIELD): Remove.
4852
4853 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
4854             Eric Botcazou  <ebotcazou@adacore.com>
4855
4856         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4857         for STORE_FLAG_VALUE==-1 case.
4858
4859 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
4860
4861         PR target/43804
4862         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4863         LEGITIMATE_PIC_OPERAND_P.
4864
4865 2011-04-24  Jan Hubicka  <jh@suse.cz>
4866
4867         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4868         WPA hack.
4869         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4870         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4871         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4872         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4873         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4874         Sanity check predicate length.
4875         (remap_predicate): Likewise; sanity check jump functions.
4876         (inline_read_section, inline_write_summary): Sanity check
4877         predicate length.
4878
4879 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4880
4881         PR other/48748
4882         * doc/extend.texi (Type Traits): Document __is_standard_layout,
4883         __is_literal_type, and __is_trivial; update throughout about
4884         possibly cv-qualified void types.
4885
4886 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4887
4888         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4889         testsuite and make it version agnostic.
4890
4891 2011-04-22  Jan Hubicka  <jh@suse.cz>
4892
4893         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4894
4895 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4896
4897         PR c/48685
4898         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4899         to VOID_TYPE even around MODIFY_EXPR.
4900
4901 2011-04-22  Mike Stump  <mikestump@comcast.net>
4902
4903         * gensupport.c (read_md_rtx): Fix typo in comment.
4904         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4905         comment.
4906
4907 2011-04-22  Jan Hubicka  <jh@suse.cz>
4908
4909         * gengtype.c (open_base_files): Add ipa-inline.h include.
4910         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4911         ipa-prop.c; update all uses.
4912         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4913         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4914         merge summary of inlined function into former caller.
4915         * ipa-inline.c (max_benefit): Remove.
4916         (edge_badness): Compensate for removal of benefits.
4917         (update_caller_keys): Use
4918         reset_node_growth_cache/reset_edge_growth_cache.
4919         (update_callee_keys): Likewise.
4920         (update_all_callee_keys): Likewise.
4921         (inline_small_functions): Do not collect max_benefit; do not reset
4922         estimated_growth; call free_growth_caches and initialize_growth_caches.
4923         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4924         struct size_time_entry): New structures.
4925         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4926         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4927         and estimated_growth.
4928         (edge_growth_cache_entry): New structure.
4929         (node_growth_cache, edge_growth_cache): New global vars.
4930         (estimate_growth): Turn into inline.
4931         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4932         initialize_growth_caches, free_growth_caches): Declare.
4933         (estimate_edge_growth): Rewrite.
4934         (estimate_edge_time): Implement as inline cache lookup.
4935         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4936         functions.
4937         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4938         (NUM_CONDITIONS): New constant.
4939         (predicate_conditions): New enum.
4940         (IS_NOT_CONSTANT): New constant.
4941         (edge_removal_hook_holder): New var.
4942         (node_growth_cache, edge_growth_cache): New global vars.
4943         (true_predicate, single_cond_predicate, false_predicate,
4944         not_inlined_predicate, add_condition, add_clause, and_predicates,
4945         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4946         dump_clause, dump_predicate, account_size_time,
4947         evaulate_conditions_for_edge): New functions.
4948         (inline_summary_alloc): Move to heap.
4949         (inline_node_removal_hook): Clear condition and entry vectors.
4950         (inline_edge_removal_hook): New function.
4951         (initialize_growth_caches, free_growth_caches): New function.
4952         (dump_inline_summary): Update.
4953         (edge_execution_predicate): New function.
4954         (will_be_nonconstant_predicate): New function.
4955         (estimate_function_body_sizes): Compute BB and constantness predicates.
4956         (compute_inline_parameters): Do not clear estimated_growth.
4957         (estimate_edge_size_and_time): New function.
4958         (estimate_calls_size_and_time): New function.
4959         (estimate_callee_size_and_time): New function.
4960         (remap_predicate): New function.
4961         (inline_merge_summary): New function.
4962         (do_estimate_edge_time): New function based on...
4963         (estimate_edge_time): ... this one.
4964         (do_estimate_edge_growth): New function.
4965         (do_estimate_growth): New function based on....
4966         (estimate_growth): ... this one.
4967         (inline_analyze_function): Analyze after deciding on jump functions.
4968         (inline_read_section): New function.
4969         (inline_read_summary): Use it.
4970         (inline_write_summary): Write all the new data.
4971         * ipa-prop.c (ipa_get_param_decl_index): Export.
4972         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4973         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4974         Declare.
4975         (ipa_get_lattice): Move here from ipa-cp.c
4976         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4977         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4978         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4979         cgraph_edge_inlinable_p): Remove.
4980         * cgraphunit.c: Include ipainline.h
4981         (cgraph_process_new_functions): Update call of
4982         compute_inline_parameters.
4983
4984 2011-04-22  Richard Guenther  <rguenther@suse.de>
4985
4986         * tree.c (build_int_cst): Properly create canonicalized integer
4987         constants.
4988         (build_int_cst_type): Remove scary comments.
4989
4990 2011-04-22  Xinliang David Li  <davidxl@google.com>
4991
4992         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4993         by default when -Wno-error is not specified.
4994         * opts-global.c (decode_options): Remove call to
4995         control_warning_options.
4996
4997 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4998
4999         PR tree-optimization/48717
5000         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5001         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5002
5003 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
5004
5005         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
5006         definition where used.
5007
5008 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
5009
5010         PR c/48716
5011         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5012         TREE_STATIC variables declared inside of some OpenMP construct.
5013
5014 2011-04-22  Martin Jambor  <mjambor@suse.cz>
5015
5016         PR middle-end/48585
5017         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5018
5019 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
5020
5021         PR c/36750
5022         * c-typeck.c (pop_init_level): Do not warn about initializing
5023         with ` = {0}'.
5024
5025 2011-04-22  Alan Modra  <amodra@gmail.com>
5026
5027         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5028         when returning call_cookie.
5029         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5030         pointers, to functions with no more vector args than the current
5031         function, and some non-local calls for ABI_V4.
5032         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5033         sibcall_nonlocal_aix64): Combine to ..
5034         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
5035         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5036         (sibcall_value_nonlocal_aix<mode>): ..likewise.
5037         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5038         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
5039         operand.
5040         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5041         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5042         sibcall_value_symbolic_64): Delete.
5043
5044 2011-04-21  Xinliang David Li  <davidxl@google.com>
5045
5046         * cgraph.h: Remove pid.
5047         * cgraph.c: Remove pid.
5048         * value-prof.c (init_node_map): New function.
5049         (del_node_map): New function.
5050         (find_func_by_funcdef_no): New function.
5051         (gimple_ic_transform): Call new function.
5052         * cgraphunit.c (cgraph_finalize_function): Remove pid.
5053         * function.c (get_last_funcdef_no): New function.
5054         * function.h (get_last_funcdef_no): New function.
5055         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5056         to libgcov function.
5057         (tree-profiling): Call node map init and delete function.
5058
5059 2011-04-21  Ian Lance Taylor  <iant@google.com>
5060
5061         * godump.c (go_format_type): Use exported Go name for anonymous
5062         field name.
5063
5064 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5065
5066         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5067         Call builtin_function_type_list instead of builtin_function_type.
5068         (UNARY, BINARY, TRINARY, QUAD): Likewise.
5069
5070 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5071
5072         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5073         build_function_type_list instead of build_function_type.
5074         Delete variable `endlink'.
5075
5076 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5077
5078         * config/s390/s390.c (s390_init_builtins): Call
5079         build_function_type_list instead of build_function_type.
5080
5081 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5082
5083         * config/ia64/ia64.c (ia64_init_builtins): Call
5084         build_function_type_list instead of builtin_function_type.
5085
5086 2011-04-21  Easwaran Raman  <eraman@google.com>
5087
5088         * cfgexpand.c (stack_var): Remove OFFSET...
5089         (add_stack_var): ...and its reference here...
5090         (expand_stack_vars): ...and here.
5091         (stack_var_cmp): Sort by descending order of size.
5092         (partition_stack_vars): Change heuristic.
5093         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5094         (dump_stack_var_partition): Add newline after each partition.
5095
5096 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
5097             Jeff Law  <law@redhat.com>
5098
5099         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5100         * gengtype.c (matching_file_name_substitute): Likewise.
5101
5102 2011-04-21  Richard Guenther  <rguenther@suse.de>
5103
5104         PR lto/48703
5105         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5106
5107 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5108
5109         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5110
5111 2011-04-21  Richard Guenther  <rguenther@suse.de>
5112
5113         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5114         file name.
5115
5116 2011-04-21  Richard Guenther  <rguenther@suse.de>
5117
5118         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5119         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5120         Use DECL_P, not SSA_VAR_P.
5121         (ptr_derefs_may_alias_p): Likewise.
5122         (ptr_deref_may_alias_ref_p_1): Likewise.
5123         (decl_refs_may_alias_p): Likewise.
5124         (refs_may_alias_p_1): Likewise.
5125         (ref_maybe_used_by_call_p_1): Likewise.
5126         (call_may_clobber_ref_p_1): Likewise.
5127         (indirect_ref_may_alias_decl_p): Assume indirect refrences
5128         are either MEM_REF or TARGET_MEM_REF.
5129         (indirect_refs_may_alias_p): Likewise.
5130         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5131         for MEM_EXPR of indirect calls.
5132
5133 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5134
5135         * vmsdbgout.c (write_srccorr): Compute file length from the string.
5136         (dst_file_info_struct): Remove flen field.
5137         (lookup_filename): Remove code that set flen field.
5138
5139 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5140
5141         * config/ia64/ia64.c (ia64_start_function): Add a guard.
5142
5143 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
5144
5145         PR target/48708
5146         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5147         vec_extract and vec_concat for non-SSE4_1 targets.
5148
5149 2011-04-21  Richard Guenther  <rguenther@suse.de>
5150
5151         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5152         return statements.
5153
5154 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5155
5156         * config/i386/cygming.h (union tree_node, TREE): Don't define or
5157         undefine.
5158         (FILE): Don't undefine.
5159
5160 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5161
5162         * config/alpha/alpha.c (struct machine_function): Use rtx, not
5163         struct rtx_def *.
5164         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5165         struct rtx_def *.
5166         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5167         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5168         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5169         rtx_def *.
5170         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
5171         definitions where used.
5172         * config/microblaze/microblaze.h (struct microblaze_args): Use
5173         rtx, not struct rtx_def *.
5174         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5175         rtx_def *.
5176         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5177         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5178         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5179         not struct rtx_def *.
5180         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5181         struct rtx_def *.
5182         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5183         rtx_def *.
5184         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5185
5186 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5187
5188         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5189         operand_equal_p to compare DR_BASE_ADDRESSes.
5190         (vect_check_interleaving): Likewise.
5191
5192 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5193
5194         PR target/46329
5195         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5196         for all Neon struct constants.
5197
5198 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5199
5200         * target.def (legitimate_constant_p): New hook.
5201         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5202         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5203         * doc/tm.texi: Regenerate.
5204         * hooks.h (hook_bool_mode_rtx_true): Declare.
5205         * hooks.c (hook_bool_mode_rtx_true): Define.
5206         * system.h (LEGITIMATE_CONSTANT_P): Poison.
5207         * calls.c (precompute_register_parameters): Replace uses of
5208         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5209         (emit_library_call_value_1): Likewise.
5210         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5211         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5212         * ira-costs.c (scan_one_insn): Likewise.
5213         * recog.c (general_operand, immediate_operand): Likewise.
5214         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5215         * reload1.c (init_eliminable_invariants): Likewise.
5216
5217         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5218         mode argument.
5219         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5220         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5221         argument.
5222         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5223         * config/alpha/predicates.md (input_operand): Update call to
5224         alpha_legitimate_constant_p.
5225
5226         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5227         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5228         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5229         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5230         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5231         (arm_legitimate_constant_p): New functions.
5232         (arm_cannot_force_const_mem): Make static.
5233
5234         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5235
5236         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5237         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5238         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5239         instead of bfin_legitimate_constant_p.
5240         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
5241         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5242
5243         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5244
5245         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5246
5247         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5248         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5249         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5250         (frv_legitimate_constant_p): Make static.  Add a mode argument.
5251
5252         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5253         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5254         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5255
5256         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5257         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5258         * config/i386/i386.c (legitimate_constant_p): Rename to...
5259         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
5260         argument.
5261         (ix86_cannot_force_const_mem): Update accordingly.
5262         (ix86_legitimate_address_p): Likewise.
5263         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5264         * config/i386/i386.md: Update commentary.
5265
5266         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5267         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5268         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5269         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
5270
5271         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5272
5273         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5274         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5275         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5276         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
5277
5278         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5279         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5280         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5281
5282         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5283         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5284         (m32r_legitimate_constant_p): New function.
5285
5286         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5287         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5288         LEGITIMATE_CONSTANT_P.
5289         (LEGITIMATE_CONSTANT_P): Delete.
5290         * config/m68k/m68k.c (m68k_expand_prologue): Call
5291         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5292         (m68k_legitimate_constant_p): New function.
5293         * config/m68k/m68k.md: Update comments.
5294
5295         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5296         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5297         (mcore_legitimate_constant_p): New function.
5298
5299         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5300         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5301         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5302         Add a mode argument.
5303         (mep_legitimate_address): Update accordingly.
5304         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5305
5306         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5307         Delete.
5308         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5309         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5310         static.  Check OP's mode for VOIDmode.
5311         (microblaze_legitimate_constant_p): New function.
5312         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5313
5314         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5315         * config/mips/mips.c (mips_legitimate_constant_p): New function.
5316         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5317         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5318         * config/mips/predicates.md: Update comments.
5319
5320         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5321         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5322         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5323         (mmix_legitimate_constant_p): Make static, return a bool, and take
5324         a mode argument.
5325         (mmix_print_operand_address): Update accordingly.
5326
5327         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5328         Delete.
5329         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5330         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5331         static.  Add a mode argument.
5332         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5333
5334         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5335
5336         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5337         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5338         (pa_legitimate_constant_p): New function.
5339
5340         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5341
5342         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5343         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5344         (pdp11_legitimate_constant_p): New function.
5345
5346         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5347         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5348         (rs6000_legitimate_constant_p): New function.
5349
5350         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5351         (rx_legitimate_constant_p): ...this.
5352         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5353         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5354         (rx_legitimate_constant_p): ...this.
5355         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5356         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5357
5358         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5359         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5360         * config/s390/s390.c (legitimate_constant_p): Rename to...
5361         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
5362         and add a mode argument.
5363         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5364
5365         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5366
5367         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5368         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5369         (sh_legitimate_constant_p): New function.
5370
5371         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5372         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5373         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5374         (legitimate_constant_p): Rename to...
5375         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
5376         argument.
5377         (constant_address_p): Update accordingly.
5378
5379         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5380         argument and return a bool.
5381         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5382         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5383         (spu_legitimate_constant_p): Add a mode argument and return a bool.
5384         (spu_rtx_costs): Update accordingly.
5385         * config/spu/predicates.md (vec_imm_operand): Likewise.
5386
5387         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5388
5389         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5390         * config/v850/v850.c (v850_legitimate_constant_p): New function.
5391         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5392
5393         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5394         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5395         * config/vax/vax.c (legitimate_constant_p): Likewise.
5396
5397         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5398         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5399         (xtensa_legitimate_constant_p): New function.
5400
5401 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5402
5403         * target.def (cannot_force_const_mem): Add a mode argument.
5404         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5405         * doc/tm.texi: Regenerate.
5406         * hooks.h (hook_bool_mode_rtx_false): Declare.
5407         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5408         (hook_bool_mode_const_rtx_true): Likewise.
5409         (hook_bool_mode_rtx_false): New function.
5410         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5411         to be non-VOID.  Update call to cannot_force_const_mem.
5412         (find_reloads): Update accordingly.
5413         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5414         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5415         argument.
5416         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5417         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5418         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5419         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5420         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5421         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5422         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5423         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5424         (m68k_cannot_force_const_mem): ...this new function.
5425         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5426         argument.
5427         (mips_const_insns, mips_legitimize_const_move): Update calls.
5428         (mips_secondary_reload_class): Likewise.
5429         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5430         (pa_cannot_force_const_mem): ...this new function.
5431         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5432         (rs6000_cannot_force_const_mem): ...this new function.
5433         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5434         argument.
5435         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5436         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5437         to...
5438         (xtensa_cannot_force_const_mem): ...this new function.
5439
5440 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5441
5442         * config/mips/mips.c (mips16_build_function_stub): Call
5443         build_function_type_list instead of build_function_type.
5444         (mips16_build_call_stub): Likewise.
5445
5446 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5447
5448         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5449         instead of build_function_type.
5450
5451 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5452
5453         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5454         instead of build_function_type.
5455
5456 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
5457
5458         PR target/48678
5459         * config/i386/i386.md (insv): Change operand 0 constraint to
5460         "register_operand".  Change operand 1 and 2 constraint to
5461         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
5462         * config/i386/sse.md (sse4_1_pinsrb): Export.
5463         (sse2_pinsrw): Ditto.
5464         (sse4_1_pinsrd): Ditto.
5465         (sse4_1_pinsrq): Ditto.
5466         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5467         * config/i386/i386.c (ix86_expand_pinsr): New.
5468
5469 2011-04-20  Easwaran Raman  <eraman@google.com>
5470
5471         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5472         containing union type only with -fstrict-aliasing.
5473
5474 2011-04-20  Jim Meyering  <meyering@redhat.com>
5475
5476         Remove useless if-before-free tests.
5477         * calls.c (expand_call, save_area): Likewise.
5478         * cfgcleanup.c (try_forward_edges): Likewise.
5479         * collect2.c (collect_execute): Likewise.
5480         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5481         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5482         * coverage.c (coverage_checksum_string): Likewise.
5483         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5484         * cselib.c (cselib_init): Likewise.
5485         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5486         (df_set_clean_cfg): Likewise.
5487         * function.c (free_after_compilation): Likewise.
5488         * gcc.c (do_spec_1, main): Likewise.
5489         * gcov.c (create_file_names): Likewise.
5490         * gensupport.c (identify_predicable_attribute): Likewise.
5491         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5492         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5493         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5494         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5495         * ipa-pure-const.c (local_pure_const): Likewise.
5496         * ipa-reference.c (propagate): Likewise.
5497         * ira-costs.c (free_ira_costs): Likewise.
5498         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5499         * matrix-reorg.c (mat_free): Likewise.
5500         * prefix.c (get_key_value): Likewise.
5501         * profile.c (compute_value_histograms): Likewise.
5502         * reload1.c (free_reg_equiv): Likewise.
5503         * sched-deps.c (free_deps): Likewise.
5504         * sel-sched-ir.c (fence_clear): Likewise.
5505         * sese.c (set_rename, if_region_set_false_region): Likewise.
5506         * tree-data-ref.c (free_rdg): Likewise.
5507         * tree-eh.c (lower_try_finally): Likewise.
5508         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5509         * tree-ssa-live.c (delete_var_map): Likewise.
5510         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5511         * tree-ssa-pre.c (phi_trans_add): Likewise.
5512
5513 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
5514
5515         PR tree-optimization/48611
5516         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5517         beyond ERT_MUST_NOT_THROW region.
5518
5519 2011-04-20  Catherine Moore  <clm@codesourcery.com>
5520
5521         * config/mips/mips.opt (mfix-24k): New.
5522         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5523         * config/mips/mips.md (length): Increase by 4 for stores if
5524         fixing 24K errata.
5525         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5526         all noreorder if fixing 24K errata.
5527         * doc/invoke.texi: Document mfix-24k.
5528
5529 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
5530
5531         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5532         quad-word modes, reduce to 9-bit index range when above 1016 limit.
5533
5534 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
5535
5536         * config/arm/arm.c (arm_gen_constant): Move movw support ....
5537         (const_ok_for_op): ... to here.
5538
5539 2011-04-20  Kai Tietz  <ktietz@redhat.com>
5540
5541         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5542         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5543
5544 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
5545
5546         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5547
5548 2011-04-20  Richard Guenther  <rguenther@suse.de>
5549
5550         PR tree-optimization/47892
5551         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5552         are if-convertible.
5553
5554 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5555
5556         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5557
5558 2011-04-20  Tristan Gingold  <gingold@adacore.com>
5559
5560         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5561
5562 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
5563
5564         PR target/18145
5565
5566         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5567         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5568         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5569         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5570         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5571
5572         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5573         New prototype.
5574
5575         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5576         (avr_asm_named_section, avr_asm_output_aligned_common,
5577         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5578         New functions to update...
5579         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5580         (avr_asm_init_sections): Overwrite section callbacks for
5581         data_section, bss_section.
5582         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5583         from here to...
5584         (avr_file_end): ...here.
5585
5586 2011-04-20  Richard Guenther  <rguenther@suse.de>
5587
5588         PR middle-end/48695
5589         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5590         objects and types here.  Adjust for their offset before comparing.
5591
5592 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
5593
5594         * tree-vect-stmts.c (vectorizable_store): Only chain one related
5595         statement per copy.
5596
5597 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
5598
5599         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5600         (GIMPLE_H): Include $(INTERNAL_FN_H).
5601         (OBJS-common): Add internal-fn.o.
5602         (internal-fn.o): New rule.
5603         * internal-fn.def: New file.
5604         * internal-fn.h: Likewise.
5605         * internal-fn.c: Likewise.
5606         * gimple.h: Include internal-fn.h.
5607         (GF_CALL_INTERNAL): New gf_mask.
5608         (gimple_statement_call): Put fntype into a union with a new
5609         internal_fn field.
5610         (gimple_build_call_internal): Declare.
5611         (gimple_build_call_internal_vec): Likewise.
5612         (gimple_call_same_target_p): Likewise.
5613         (gimple_call_internal_p): New function.
5614         (gimple_call_internal_fn): Likewise.
5615         (gimple_call_fntype): Return null for internal calls.
5616         (gimple_call_set_fntype): Assert that the function is not internal.
5617         (gimple_call_set_fn): Likewise.
5618         (gimple_call_set_fndecl): Likewise.
5619         (gimple_call_set_internal_fn): New function.
5620         (gimple_call_addr_fndecl): Handle null functions.
5621         (gimple_call_return_type): Likewise null types.
5622         * gimple.c (gimple_build_call_internal_1): New function.
5623         (gimple_build_call_internal): Likewise.
5624         (gimple_build_call_internal_vec): Likewise.
5625         (gimple_call_same_target_p): Likewise.
5626         (gimple_call_flags): Handle calls to internal functions.
5627         (gimple_call_fnspec): New function.
5628         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5629         (gimple_has_side_effects): Handle null functions.
5630         (gimple_rhs_has_side_effects): Likewise.
5631         (gimple_call_copy_skip_args): Handle calls to internal functions.
5632         * cfgexpand.c (expand_call_stmt): Likewise.
5633         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5634         * gimple-fold.c (gimple_fold_call): Handle null functions.
5635         (gimple_fold_stmt_to_constant_1): Don't fold
5636         calls to internal functions.
5637         * gimple-low.c (gimple_check_call_args): Handle calls to internal
5638         functions.
5639         * gimple-pretty-print.c (dump_gimple_call): Likewise.
5640         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5641         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5642         (do_warn_unused_result): Likewise.
5643         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5644         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5645         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5646         the target of a call.
5647         (initialize_hash_element): Update accordingly.
5648         (hashable_expr_equal_p): Use gimple_call_same_target_p.
5649         (iterative_hash_hashable_expr): Handle calls to internal functions.
5650         (print_expr_hash_elt): Likewise.
5651         * tree-ssa-pre.c (can_value_number_call): Likewise.
5652         (eliminate): Handle null functions.
5653         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5654         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5655         (find_func_aliases): Likewise.
5656         * value-prof.c (gimple_ic_transform): Likewise.
5657         (gimple_indirect_call_to_profile): Likewise.
5658         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5659         * lto-streamer-out.c (output_gimple_stmt): Likewise.
5660
5661 2011-04-19  Jan Hubicka  <jh@suse.cz>
5662
5663         * ipa-inline-transform.c (save_inline_function_body): Add comments.
5664         * ipa-inline.c (inline_small_functions): Compute summaries first,
5665         populate heap later.
5666
5667 2011-04-19  Jan Hubicka  <jh@suse.cz>
5668
5669         * cgraph.h (save_inline_function_body): Remove.
5670         * ipa-inline-transform.c: New file, broke out of...
5671         * ipa-inline.c: ... this one; Update toplevel comment.
5672         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5673         make global.
5674         (update_noncloned_frequencies): Move to ipa-inline-transform.c
5675         (cgraph_mark_inline_edge): Rename to inline_call; move to
5676         ipa-inline-transform.c.
5677         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5678         move to ipa-inline-transform.c
5679         (recursive_inlining, inline_small_functions, flatten_function,
5680         ipa_inline, inline_always_inline_functions,
5681         early_inline_small_functions): Update.
5682         (inline_transform): Move to ipa-inline-transform.c.
5683         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5684         Declare.
5685         * Makefile.in (ipa-inline-transform.o): New file.
5686         * cgraphunit.c (save_inline_function_body): Move to
5687         ipa-inline-transform.c
5688
5689 2011-04-19  DJ Delorie  <dj@redhat.com>
5690
5691         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5692         registers if we already know there aren't any.
5693         (m32c_emit_epilogue): Don't emit a barrier here.
5694         (m32c_emit_eh_epilogue): Likewise.
5695         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5696         operands at expand time.
5697         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5698         int" wchar type.
5699         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5700         duplicates.  Provide aliases instead.
5701         * config/m32c/prologue.md (eh_return): Emit a barrier here.
5702         (eh_epilogue): Add a "(return)" here as a hint to other parts of
5703         the compiler.
5704
5705 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
5706
5707         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5708         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5709         (general_or_i64_p, sparc_register_move_cost): New function.
5710
5711 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5712
5713         * doc/install.texi (Configuration, --enable-threads): Remove mach.
5714         Add lynx, mipssde.  Sort table.
5715
5716 2011-04-19  Xinliang David Li  <davidxl@google.com>
5717
5718         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5719         not negative.
5720
5721 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
5722
5723         PR target/48678
5724         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5725         is a SUBREG with non-MODE_INT mode inside of it.
5726
5727 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5728
5729         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5730         also according to actual contants.
5731         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5732         (gimple_fold_call): Use it.
5733         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5734
5735 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5736
5737         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5738         non-pointer assignments.
5739
5740 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5741
5742         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5743         account anc_offset and otr_type from the indirect edge info.
5744         * ipa-prop.c (get_ancestor_addr_info): New function.
5745         (compute_complex_ancestor_jump_func): Assignment analysis moved to
5746         get_ancestor_addr_info, call it.
5747         (ipa_note_param_call): Do not initialize information about polymorphic
5748         calls, return the indirect call graph edge.  Remove the last
5749         parameter, adjust all callers.
5750         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5751         parameters.  Initialize polymorphic information in the indirect edge.
5752
5753 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5754
5755         PR lto/48148
5756         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5757         the types if they have different enumeration identifiers.
5758
5759 2011-04-19  Jan Hubicka  <jh@suse.cz>
5760
5761         * cgraph.h (cgraph_optimize_for_size_p): Declare.
5762         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5763         * predict.c (cgraph_optimize_for_size_p): Break out from ...
5764         (optimize_function_for_size_p) ... here.
5765
5766 2011-04-19  Richard Guenther  <rguenther@suse.de>
5767
5768         PR lto/48207
5769         * tree.c (free_lang_data): Do not reset the decl-assembler-name
5770         langhook.
5771
5772 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5773
5774         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5775         if DECL_NO_INLINE_WARNING_P is set on the function.
5776
5777 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
5778
5779         PR fortran/47976
5780         * reload1.c (inc_for_reload): Return void. All callers changed.
5781         (emit_input_reload_insns): Don't try to delete previous output
5782         reloads to a register, or record spill_reg_store for autoincs.
5783
5784 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
5785
5786         * gengtype.h: Updated copyright year.
5787         (struct input_file_st): Add inpisplugin field.
5788         (type_fileloc): New function.
5789         * gengtype.c
5790         (write_typed_struct_alloc_def): Add gcc_assert.
5791         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5792         (write_typed_alloc_defns): Don't output for plugin files.
5793         (input_file_by_name): Clear inpisplugin field.
5794         (main): Set inpisplugin field for plugin files.
5795
5796 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
5797
5798         * gengtype-state.c (string_eq): New.
5799         (read_state): Use string_eq instead of strcmp when creating the
5800         state_ident_tab.
5801
5802 2011-04-19  Wei Guozhi  <carrot@google.com>
5803
5804         PR target/47855
5805         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5806         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5807         linkage.
5808         * config/arm/constraints.md (Uu): New constraint.
5809         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5810
5811 2011-04-19  Tristan Gingold  <gingold@adacore.com>
5812
5813         * config.gcc (-*-*-*vms): Added.
5814         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5815         definitions moved.
5816         * config/vms/vms-ld.c: New file.
5817         * config/vms/vms-ar.c: New file.
5818         * config/vms/t-vmsnative: New file.
5819
5820 2011-04-18  Xinliang David Li  <davidxl@google.com>
5821
5822         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5823
5824 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5825
5826         PR middle-end/48661
5827         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5828         if TREE_TYPE (v) is non-NULL.
5829
5830         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5831         gimple_get_virt_mehtod_for_binfo.
5832         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5833         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5834         callers.
5835         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5836
5837 2011-04-18  Michael Matz  <matz@suse.de>
5838             Steve Ellcey  <sje@cup.hp.com>
5839
5840         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5841         use its mode as source mode if it isn't VOIDmode.
5842
5843 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
5844
5845         * doc/passes.texi: Fill crossref nodes.
5846
5847 2011-04-18  Jim Meyering  <meyering@redhat.com>
5848
5849         Fix doubled-word typos in comments and strings
5850         * config/alpha/vms-unwind.h: s/for for/for/
5851         * config/arm/unwind-arm.h: Likewise.
5852         * config/microblaze/microblaze.c: Likewise.
5853         * config/sh/constraints.md: s/in in/in/
5854         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5855
5856 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
5857
5858         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5859         (AVX_FLOAT_MODE_P): Ditto.
5860         (AVX128_VEC_FLOAT_MODE_P): Ditto.
5861         (AVX256_VEC_FLOAT_MODE_P): Ditto.
5862         (AVX_VEC_FLOAT_MODE_P): Ditto.
5863         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5864         (UNSPEC_MASKSTORE): Ditto.
5865         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5866         Merge from <sse>_movmsk<ssemodesuffix> and
5867         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
5868         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
5869         iterator.
5870         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5871         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5872         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5873
5874 2011-04-18  Jan Hubicka  <jh@suse.cz>
5875
5876         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5877
5878         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5879         (want_inline_function_called_once_p): Break out the logic from
5880         ipa_inline.
5881         (edge_badness): Ensure that profile is not misupdated.
5882         (lookup_recursive_calls): Prioritize by call frequencies.
5883         (inline_small_functions): Move program size estimates here;
5884         actually process whole queue even when unit growth has been
5885         met. (to properly compute inline_failed reasons and for the
5886         case unit size decrease.) Revisit comments on recursive inlining.
5887         (ipa_inline): Remove unit summary code; first inline hot calls
5888         of functions called once, cold calls next.
5889         (order, nnodes): Remove unused variables.
5890         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5891         (GTFILES): Remove ipa-inline.c
5892         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5893
5894 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5895
5896         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5897
5898 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5899             Richard Earnshaw  <rearnsha@arm.com>
5900
5901         * arm.c (neon_builtin_type_bits): Remove.
5902         (typedef enum neon_builtin_mode): New.
5903         (T_MAX): Don't define.
5904         (typedef enum neon_builtin_datum): Remove bits, codes[],
5905         num_vars and base_fcode.  Add mode, code and fcode.
5906         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5907         VAR10): Change accordingly.
5908         (neon_builtin_data[]): Change accordingly
5909         (arm_init_neon_builtins): Change accordingly.
5910         (neon_builtin_compare): Remove.
5911         (locate_neon_builtin_icode): Remove.
5912         (arm_expand_neon_builtin): Change accordingly.
5913
5914         * arm.h (enum arm_builtins): Move to ...
5915         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5916
5917         * arm.c (arm_builtin_decl): Declare.
5918         (TARGET_BUILTIN_DECL): Define.
5919         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5920         (arm_builtin_decls[]): New.
5921         (arm_init_neon_builtins): Store builtin declarations in
5922         arm_builtin_decls[].
5923         (arm_init_tls_builtins): Likewise.
5924         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5925         (arm_builtin_decl): New.
5926
5927 2011-04-18  Richard Guenther  <rguenther@suse.de>
5928
5929         * tree.c (upper_bound_in_type): Build properly canonicalized
5930         INTEGER_CSTs.
5931         (lower_bound_in_type): Likewise.
5932
5933 2011-04-18  Richard Guenther  <rguenther@suse.de>
5934
5935         * gimple.h (gimple_call_addr_fndecl): New function.
5936         (gimple_call_fndecl): Use it.
5937         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5938         for direct calls.
5939         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5940         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5941
5942 2011-04-18  Richard Guenther  <rguenther@suse.de>
5943
5944         PR middle-end/48650
5945         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5946
5947 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5948
5949         PR lto/48492
5950         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5951         DECL_IN_CONSTANT_POOL without RTL.
5952
5953 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5954             Ira Rosen  <ira.rosen@linaro.org>
5955
5956         PR target/48252
5957         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5958         to match neon_vzip/vuzp/vtrn_internal.
5959         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5960         outputs explicitly dependent on both inputs.
5961         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5962
5963 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5964
5965         PR tree-optimization/48616
5966         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5967         whether the shift is by scalar or vector based on whether all SLP
5968         scalar stmts have the same rhs.
5969
5970 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5971
5972         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5973         memory operands.
5974
5975 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5976
5977         PR target/43700
5978         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5979         registers.
5980
5981 2011-04-17  Jan Hubicka  <jh@suse.cz>
5982
5983         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5984         * cgrpahunit.c (cgraph_finalize_function): Do not set
5985         finalized_by_frontend.
5986         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5987         finalized_by_frontend.
5988
5989 2011-04-17  Jan Hubicka  <jh@suse.cz>
5990
5991         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5992         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5993         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5994         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5995         method.
5996         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5997         gimple-fold.c
5998         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5999
6000 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6001
6002         PR lto/48538
6003         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6004         is non-null before accessing it.
6005         (input_cgraph): Remove trailing spaces.
6006
6007 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6008
6009         * params.def (sms-min-sc): New param flag.
6010         * modulo-sched.c (sms_schedule): Use it.
6011         * doc/invoke.texi (sms-min-sc): Document it.
6012
6013 2011-04-17  Jan Hubicka  <jh@suse.cz>
6014
6015         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6016         present, also set gimple_call_set_cannot_inline.
6017         * ipa-inline.c: Update toplevel comment.
6018         (MAX_TIME): Remove.
6019         (cgraph_clone_inlined_nodes): Fix linebreaks.
6020         (cgraph_check_inline_limits): Restructure to ...
6021         (caller_growth_limits): ... this one; be more tolerant
6022         on growth in nested inline chains; add explanatory comment;
6023         fix stack accounting thinko introduced by previous patch.
6024         (cgraph_default_inline_p): Remove.
6025         (report_inline_failed_reason): New function.
6026         (can_inline_edge_p): New function.
6027         (can_early_inline_edge_p): New function.
6028         (leaf_node_p): Move upwards in file.
6029         (want_early_inline_function_p): New function.
6030         (want_inline_small_function_p): New function.
6031         (want_inline_self_recursive_call_p): New function.
6032         (cgraph_edge_badness): Rename to ...
6033         (edge_badness) ... this one; fix linebreaks.
6034         (update_edge_key): Update call of edge_baddness; add
6035         detailed dump about queue updates.
6036         (update_caller_keys): Use can_inline_edge_p and
6037         want_inline_small_function_p.
6038         (cgraph_decide_recursive_inlining): Rename to...
6039         (recursive_inlining): Use can_inline_edge_p and
6040         want_inline_self_recursive_call_p; simplify and remove no longer
6041         valid FIXME.
6042         (cgraph_set_inline_failed): Remove.
6043         (add_new_edges_to_heap): Use can_inline_edge_p and
6044         want_inline_small_function_p.
6045         (cgraph_decide_inlining_of_small_functions): Rename to ...
6046         (inline_small_functions): ... this one; cleanup; use
6047         can/want predicates; cleanup debug ouput; work edges till fibheap
6048         is exhausted and do not stop once unit growth is reached; remove
6049         later loop processing remaining edges.
6050         (cgraph_flatten): Rename to ...
6051         (flatten_function): ... this one; use can_inline_edge_p
6052         and can_early_inline_edge_p predicates.
6053         (cgraph_decide_inlining): Rename to ...
6054         (ipa_inline): ... this one; remove unreachable nodes before
6055         inlining functions called once; simplify the pass.
6056         (cgraph_perform_always_inlining): Rename to ...
6057         (inline_always_inline_functions): ... this one; use
6058         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6059         (cgraph_decide_inlining_incrementally): Rename to ...
6060         (early_inline_small_functions): ... this one; simplify
6061         using new predicates; cleanup; make dumps prettier.
6062         (cgraph_early_inlining): Rename to ...
6063         (early_inliner): newer inline regular functions into always-inlines;
6064         fix updating of call stmt summaries.
6065         (pass_early_inline): Update for new names.
6066         (inline_transform): Fix formating.
6067         (gate_cgraph_decide_inlining): Rename to ...
6068         (pass_ipa_inline): ... this one.
6069         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6070         * ipa-inline-analysis.c (dump_inline_summary): Update.
6071         (compute_inline_parameters): Do not compute disregard_inline_limits;
6072         look for mismatching arguments.
6073         (estimate_growth): Fix handlig of non-trivial self recursion.
6074         (inline_read_summary): Do not read info->disregard_inline_limits.
6075         (inline_write_summary): Do not write info->disregard_inline_limits.
6076         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6077         and move all checks into can_inline_edge_p predicate; re-enable code
6078         comparing optimization levels.
6079         (expand_call_inline): Do not test inline_forbidden_into_p.
6080         * Makefile.in (ipa-inline.o): Update arguments.
6081
6082 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6083
6084         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6085
6086 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6087
6088         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6089
6090 2011-04-17  Michael Matz  <matz@suse.de>
6091
6092         PR tree-optimization/48622
6093         PR lto/48645
6094         * ipa-inline-analysis.c (inline_read_summary): Read size/time
6095         in same order as they're written.
6096
6097 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6098
6099         * config/pa/predicates.md: Reorganize and simplify predicates.
6100         Eliminate duplicate code checks.
6101         (arith_operand): Rename to arith14_operand
6102         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6103         * config/pa/pa.md: Use renamed operands.
6104         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6105         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6106         arith11_operand, adddi3_operand, indexed_memory_operand,
6107         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6108         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6109         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6110         move_dest_operand, move_src_operand, prefetch_cc_operand,
6111         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6112         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6113         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6114         div_operand, int5_operand, movb_comparison_operator,
6115         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6116         arith_double_operand, ireg_operand, lhs_lshift_operand,
6117         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6118         integer_store_memory_operand): Likewise.
6119         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6120         (integer_store_memory_operand, read_only_operand,
6121         function_label_operand, borx_reg_operand,
6122         non_hard_reg_operand): Likewise.
6123         (eq_neq_comparison_operator): Delete unused operator.
6124         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6125         function_label_operand.
6126         (emit_move_sequence): Likewise.
6127
6128 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
6129
6130         * config/i386/sse.md (sseunpackmode): New mode attribute.
6131         (ssepackmode): Ditto.
6132         (vec_pack_trunc_<mode>): Macroize expander from
6133         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6134         (vec_unpacks_lo_<mode>): Macroize expander from
6135         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6136         (vec_unpacks_hi_<mode>): Macroize expander from
6137         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6138         (vec_unpacku_lo_<mode>): Macroize expander from
6139         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6140         (vec_unpacku_hi_<mode>): Macroize expander from
6141         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6142         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6143         ix86_expand_sse4_unpack.
6144         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6145
6146 2011-04-16  Jan Hubicka  <jh@suse.cz>
6147
6148         * cgraphbuild.c: Include ipa-inline.h.
6149         (reset_inline_failed): Use initialize_inline_failed.
6150         * cgraph.c: Include ipa-inline.h.
6151         (cgraph_create_node_1): Do not initialize estimated_growth.
6152         (initialize_inline_failed): More to ipa-inline-analysis.c
6153         (dump_cgraph_node): Do not dump inline flags.
6154         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6155         and disregard_inline_limits flags.
6156         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6157         time, size, estimated_growth.
6158         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6159         Update.
6160         * cgraphunit.c (cgraph_decide_is_function_needed): Use
6161         DECL_DISREGARD_INLINE_LIMITS.
6162         (cgraph_analyze_function): Do not initialize
6163         node->local.disregard_inline_limits.
6164         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6165         inlinable, versionable and disregard_inline_limits.
6166         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6167         cgraph_check_inline_limits, cgraph_default_inline_p,
6168         cgraph_edge_badness, update_caller_keys, update_callee_keys,
6169         add_new_edges_to_heap): Update.
6170         (cgraph_decide_inlining_of_small_function): Update; set
6171         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6172         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6173         cgraph_decide_inlining_incrementally): Update.
6174         * ipa-inline.h (inline_summary): Add inlinable, versionable,
6175         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6176         time, size and estimated_growth parameters.
6177         (estimate_edge_growth): Update.
6178         (initialize_inline_failed): Declare.
6179         * ipa-split.c: Include ipa-inline.h
6180         (execute_split_functions): Update.
6181         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6182         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6183         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6184         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6185         estimated_growth to INT_MIN.
6186         (inline_node_duplication_hook): Likewise.
6187         (dump_inline_summary): Dump new fields.
6188         (compute_inline_parameters): Update.
6189         (estimate_edge_time, estimate_time_after_inlining,
6190         estimate_size_after_inlining, estimate_growth, inline_read_summary,
6191         inline_write_summary):
6192         (initialize_inline_failed): Move here from cgraph.c.
6193         * tree-sra.c: Include ipa-inline.h.
6194         (ipa_sra_preliminary_function_checks): Update.
6195         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6196         ipa-inline.h.
6197
6198 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
6199
6200         * config/i386/sse.md (V16): New mode iterator.
6201         (VI1, VI8): Ditto.
6202         (AVXMODEQI, AVXMODEDI): Remove.
6203         (sse2, sse3): New mode attribute.
6204         (mov<mode>): Use V16 mode iterator.
6205         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6206         (push<mode>1): Use V16 mode iterator.
6207         (movmisalign<mode>): Ditto.
6208         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6209         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6210         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6211         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6212         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6213         avx_movdqu<avxmodesuffix>.
6214         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6215         *avx_movdqu<avxmodesuffix>.
6216         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6217         avx_lddqu<avxmodesuffix>.
6218         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6219         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6220         avx_movnt<AVXMODEDI:mode>.
6221         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6222         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6223
6224 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6225
6226         PR target/48629
6227         * haifa-sched.c (prune_ready_list, schedule_block): Use
6228         sched_pressure_p rather than flag_sched_pressure.
6229
6230 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
6231
6232         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6233         cgraph_get_node instead of cgraph_get_create_node.
6234
6235 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
6236
6237         * cfgexpand.c (expand_debug_expr): Use
6238         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6239
6240 2011-04-15  Michael Matz  <matz@suse.de>
6241
6242         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6243         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6244         * function.c (gimplify_parameters): Ditto.
6245         * gimplify.c (gimplify_vla_decl): Ditto.
6246
6247         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6248         (gimple_call_set_alloca_for_var): New inline function.
6249         (gimple_call_alloca_for_var_p): Ditto.
6250         * gimple.c (gimple_build_call_from_tree): Remember
6251         CALL_ALLOCA_FOR_VAR_P state.
6252         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6253
6254         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6255         calls if they were for VLA objects.
6256
6257 2011-04-15  Martin Jambor  <mjambor@suse.cz>
6258
6259         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6260         of ADR_EXPRs.
6261
6262 2011-04-15  Martin Jambor  <mjambor@suse.cz>
6263
6264         PR middle-end/48601
6265         * tree-emutls.c (lower_emutls_function_body): Call
6266         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
6267         result is non-NULL.
6268
6269 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
6270
6271         * c-decl.c (detect_field_duplicates): Call
6272         objc_detect_field_duplicates instead of objc_get_interface_ivars.
6273
6274 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
6275
6276         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6277         * gimple.c (gimple_asm_clobbers_memory_p): Define.
6278         * ipa-pure-const.c (check_stmt): Call it.
6279         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6280
6281 2011-04-15  Richard Guenther  <rguenther@suse.de>
6282
6283         PR tree-optimization/48290
6284         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6285         Properly decide inhibiting propagation based on the valueized
6286         operand.  Do loop-closed SSA form preserving here ...
6287         (init_copy_prop): ... not here.
6288
6289 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
6290
6291         PR target/48612
6292         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6293         (*ieee_smax<mode>3): Likewise.
6294
6295 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6296
6297         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6298         Replace match_operand with match_dup for the third operand in
6299         these expanders.
6300
6301 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6302
6303         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6304         to track processing of conditionals.  Update all callers.
6305         (try_combine, simplify_if_then_else): Update.
6306
6307 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6308
6309         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6310         -fsched-pressure.
6311
6312 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
6313
6314         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6315         instead of match_operand for operand 3.
6316
6317 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
6318
6319         * recog.h (insn_operand_data): Add an "allows_mem" field.
6320         * genoutput.c (output_operand_data): Initialize it.
6321         * optabs.c (maybe_legitimize_operand_same_code): New function.
6322         (maybe_legitimize_operand): Use it when matching the original
6323         op->value.
6324
6325 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6326
6327         * gimplify.c: Fix issues in comments throughout.
6328         (voidify_wrapper_expr): Fix long line.
6329         (build_stack_save_restore): Likewise.
6330         (gimplify_loop_expr): Likewise.
6331         (gimplify_compound_lval): Likewise.
6332         (gimplify_init_ctor_eval): Likewise.
6333         (gimplify_modify_expr_rhs): Likewise.
6334         (omp_notice_threadprivate_variable): Likewise.
6335
6336 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6337
6338         * cfgexpand.c (expand_call_stmt): Convert the function type to the
6339         original one if this is not a builtin function.
6340
6341 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
6342
6343         PR target/48605
6344         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6345         offset it as needed based on top 2 bits in operands[3], change
6346         MEM mode to SFmode and mask those 2 bits away from operands[3].
6347
6348 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6349
6350         * c-parser.c (c_parser_objc_protocol_definition): Updated for
6351         change from objc_declare_protocols() to objc_declare_protocol().
6352
6353 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
6354
6355         * config/i386/sse.md (sse4_1): New mode attribute.
6356         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6357         avx_blend<ssemodesuffix><avxmodesuffix> and
6358         sse4_1_blend<ssemodesuffix> using VF mode iterator.
6359         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6360         avx_blendv<ssemodesuffix><avxmodesuffix> and
6361         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6362         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6363         avx_dp<ssemodesuffix><avxmodesuffix> and
6364         sse4_1_dp<ssemodesuffix> using VF mode iterator.
6365         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6366         (sse4_1_packusdw): Merge with *avx_packusdw.
6367         (sse4_1_pblendvb): Merge with *avx_pblendvb.
6368         (sse4_1_pblendw): Merge with *avx_pblendw.
6369         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6370         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6371         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6372         VF mode iterator.
6373         (sse4_1_round<ssescalarmodesuffix>): Merge with
6374         *avx_round<ssescalarmodesuffix>.
6375         (aesenc): Merge with *avx_aesenc.
6376         (aesenclast): Merge with *avx_aesenclast.
6377         (aesdec): Merge with *avx_aesdec.
6378         (aesdeclast): Merge with *avx_aesdeclast.
6379         (pclmulqdq): Merge with *pclmulqdq.
6380         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6381         New predicate.
6382         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6383
6384 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6385
6386         PR middle-end/48608
6387         * cfgexpand.c (get_decl_align_unit): Renamed to ...
6388         (align_local_variable): This.  Update DECL_ALIGN.
6389         (add_stack_var): Updated.
6390         (expand_one_stack_var): Likewise.
6391
6392 2011-04-14  Richard Guenther  <rguenther@suse.de>
6393
6394         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6395         Remove.
6396         (dse_initialize_block_local_data, dse_leave_block,
6397         record_voperand_set, get_stmt_uid): Likewise.
6398         (dse_possible_dead_store_p): Allow any kind of killing stmt.
6399         (dse_optimize_stmt): Remove voperand set handling code.
6400         Simplify and improve to handle any kind of killing stmt.
6401         (dse_record_phi): Remove.
6402         (dse_enter_block): Simplify.
6403         (tree_ssa_dse): Likewise.
6404         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6405
6406 2011-04-14  Jan Hubicka  <jh@suse.cz>
6407
6408         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6409         * cgraph.h (struct inline_summary): Move to ipa-inline.h
6410         (cgraph_local_info): Remove inline_summary.
6411         * ipa-cp.c: Include ipa-inline.h.
6412         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6413         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6414         accesor.
6415         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6416         (input_overwrite_node): Do not set inline summary.
6417         (input_node): Do not stream inline summary.
6418         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6419         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6420         growth; we do not have inline parameters computed for that anyway.
6421         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6422         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6423         (inline_summary_t): New type and VECtor.
6424         (debug_inline_summary, dump_inline_summaries): Declare.
6425         (inline_summary): Use VOCtor.
6426         (estimate_edge_growth): Kill hack computing call stmt size directly.
6427         * lto-section-in.c (lto_section_name): Add inline section.
6428         * ipa-inline-analysis.c: Include lto-streamer.h
6429         (node_removal_hook_holder, node_duplication_hook_holder): New holders
6430         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6431         (inline_summary_vec): Define.
6432         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6433         dump_inline_summaries): New functions.
6434         (estimate_function_body_sizes): Properly compute size/time of outgoing
6435         calls.
6436         (compute_inline_parameters): Alloc inline_summary; do not compute
6437         size/time of incomming calls.
6438         (estimate_edge_time): Avoid missing time summary hack.
6439         (inline_read_summary): Read inline summary info.
6440         (inline_write_summary): Write inline summary info.
6441         (inline_free_summary): Free all hooks and inline summary vector.
6442         * lto-streamer.h: Add LTO_section_inline_summary section.
6443         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6444         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6445
6446 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6447
6448         * tree-vectorizer.h (vect_strided_store_supported): Add a
6449         HOST_WIDE_INT argument.
6450         (vect_strided_load_supported): Likewise.
6451         (vect_permute_store_chain): Return void.
6452         (vect_transform_strided_load): Likewise.
6453         (vect_permute_load_chain): Delete.
6454         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6455         count argument.  Check that the count is a power of two.
6456         (vect_strided_load_supported): Likewise.
6457         (vect_permute_store_chain): Return void.  Update after above changes.
6458         Assert that the access is supported.
6459         (vect_permute_load_chain): Likewise.
6460         (vect_transform_strided_load): Return void.
6461         * tree-vect-stmts.c (vectorizable_store): Update calls after
6462         above interface changes.
6463         (vectorizable_load): Likewise.
6464         (vect_analyze_stmt): Don't check for strided powers of two here.
6465
6466 2011-04-14  Richard Guenther  <rguenther@suse.de>
6467
6468         PR tree-optimization/48590
6469         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6470         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6471         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6472         BUILT_IN_STACK_SAVE.
6473         * tree-ssa-dce.c (propagate_necessity): Handle
6474         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6475
6476 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6477
6478         * c-parser.c (c_parser_objc_class_declaration): Updated call to
6479         objc_declare_class.
6480
6481 2011-04-14  Richard Guenther  <rguenther@suse.de>
6482
6483         * tree.h (get_object_alignment_1): Declare.
6484         * builtins.c (get_object_alignment_1): Split out worker from ...
6485         (get_object_alignment): ... here.
6486         * fold-const.c (get_pointer_modulus_and_residue): Use
6487         get_object_alignment_1.
6488
6489 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6490
6491         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6492         type parameter.
6493         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6494         parameter.  Generalise code to handle arrays as well as vectors.
6495         (vect_setup_realignment): Update accordingly.
6496         * tree-vect-stmts.c (vectorizable_store): Likewise.
6497         (vectorizable_load): Likewise.
6498
6499 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6500
6501         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6502         within the per-copy loop.
6503
6504 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6505
6506         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6507         in the dump file.
6508
6509 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6510
6511         * doc/options.texi (Negative): Explicitly mention that the
6512         Negative chain must be circular.
6513
6514 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
6515
6516         * function.h (block_chainon): Declare.
6517         * function.c (block_chainon): Define.
6518
6519 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
6520             Eric Weddington  <eric.weddington@atmel.com>
6521             Georg-Johann Lay  <avr@gjlay.de>
6522
6523         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6524         New Includes
6525         (avr_init_builtins, avr_expand_builtin,
6526         avr_expand_delay_cycles, avr_expand_unop_builtin,
6527         avr_expand_binop_builtin ): New functions.
6528         (avr_builtin_id): New enum
6529         (struct avr_builtin_description): New struct
6530         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6531         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6532
6533         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6534         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6535         UNSPECV_DELAY_CYCLES): new enumeration values
6536         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6537         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6538         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6539         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6540         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6541         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6542         "fmulsu"): New insns
6543
6544         * config/avr/avr-c.c: fix line endings
6545         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6546         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6547         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6548         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6549         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6550
6551         * doc/extend.texi (AVR Built-in Functions): New node
6552         (Target Builtins): Add documentation of AVR
6553         built-in functions.
6554
6555 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
6556
6557         PR target/44643
6558         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6559         alone. Error if non-const data has attribute progmem.
6560
6561 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6562
6563         * tree.h (struct tree_constructor): Include tree_typed instead of
6564         tree_common.
6565         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6566         TS_TYPED instead of TS_COMMON.
6567
6568 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6569
6570         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6571         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6572         (sse2_psadbw): Merge with *avx_psadbw.
6573         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6574         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6575         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6576         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6577         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6578         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6579         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6580         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6581         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6582         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6583         (ssse3_palignrti): Merge with *avx_palignrti.
6584
6585 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6586
6587         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6588         * tree-ssanames.c (fini_ssanames): VEC_free it.
6589         (make_ssa_name_fn): Update for VECness of free_ssanames.
6590         (release_ssa_name, release_dead_ssa_names): Likewise.
6591         * tree.h (struct tree_ssa_name): Include tree_typed instead of
6592         tree_common.
6593         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6594         TS_TYPED instead of TS_COMMON.
6595
6596 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6597
6598         * postreload-gcse.c (gcse_after_reload_main): Add calls to
6599         statistics_counter_event.
6600         * tree-ssa-copyrename.c (stats): Define.
6601         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
6602         statistics_counter_event.
6603         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6604         (bswap_stats, widen_mul_stats): Define.
6605         (insert_reciprocals): Increment rdivs_inserted.
6606         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
6607         rfuncs_inserted.  Add calls to statistics_counter_event.
6608         (execute_cse_sincos_1): Increment inserted.
6609         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
6610         statistics_counter_event.
6611         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
6612         of bswap_stats.  Add calls to statistics_counter_event.
6613         (convert_mult_to_widen): Increment widen_mults_inserted.
6614         (convert_plusminus_to_widen): Increment maccs_inserted.
6615         (convert_mult_to_fma): Increment fmas_inserted.
6616         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
6617         calls to statistics_counter_event.
6618
6619 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
6620
6621         PR rtl-optimization/48455
6622         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6623         `temp_costs->mem_cost'.
6624
6625 2011-04-13  Jan Hubicka  <jh@suse.cz>
6626
6627         * ipa-inline.h: New file.
6628         * ipa-inline-analysis.c: New file. Broken out of ...
6629         * ipa-inline.c: ... this file; update toplevel comment;
6630         include ipa-inline.h
6631         (inline_summary): Move to ipa-inline.h
6632         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6633         ipa-inline-analysis.c.
6634         (cgraph_estimate_time_after_inlining): Rename to
6635         estiamte_time_after_inlining; move to ipa-inline-analysis.c
6636         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6637         to estimate_edge_growth.
6638         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6639         rename to estimate_size_after_inlining.
6640         (cgraph_mark_inline_edge): Update for new naming convention.
6641         (cgraph_check_inline_limits): Likewise.
6642         (cgraph_edge_badness): Likewise.
6643         (cgraph_decide_recursive_inlining): Likewise.
6644         (cgraph_decide_inlining_of_small_functions): Likewise.
6645         (cgraph_decide_inlining_incrementally): Likewise.
6646         (cgraph_estimate_growth): Rename to estimate_growth; move to
6647         ipa-inline-analysis.c.
6648         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6649         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6650         (compute_inline_parameters): Likewise.
6651         (compute_inline_parameters_for_current): Likewise.
6652         (pass_inline_parameters): Likewise.
6653         (inline_indirect_intraprocedural_analysis): Likewise.
6654         (analyze_function): Rename to inline_analyze_function; likewise.
6655         (add_new_function): Move to ipa-inline-analysis.c.
6656         (inline_generate_summary): Likewise.
6657         (inline_read_summary): Likewise.
6658         (inline_write_summary): Likewise.
6659         * Makefile.in (ipa-inline-analysis.c): New file.
6660
6661 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6662
6663         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6664         * configure: Regenerate.
6665
6666 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6667
6668         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6669         instead of tree_common.
6670         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6671         Likewise.
6672         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6673         TS_TYPED rather than TS_COMMON.
6674         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6675
6676 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
6677
6678         PR target/45263
6679         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6680         r20 around calls of __tablejump_elpm__
6681
6682 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
6683
6684         PR middle-end/48591
6685         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6686         NULL.
6687         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6688
6689 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
6690
6691         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6692         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6693         (cfi_vec): New typedef.
6694         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6695         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6696         (cie_cfi_vec): New static variable.
6697         (cie_cfi_head): Delete.
6698         (add_cfi): Accept a cfi_vec * as first argument. All callers and
6699         declaration changed. Use vector rather than list operations.
6700         (new_cfi): Don't initialize the dw_cfi_next field.
6701         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6702         rather than list operations.
6703         (lookup_cfa): Use vector rather than list operations.
6704         (output_cfis): New argument upto. Accept a cfi_vec rather than
6705         a dw_cfi_ref list head as argument. All callers changed.
6706         Iterate over the vector using upto as a maximum index.
6707         (output_all_cfis): New static function.
6708         (output_fde): Use vector rather than list operations. Use the
6709         new upto argument for output_cfis rather than manipulating a
6710         list.
6711         (dwarf2out_begin_prologue): Change initializations to match
6712         new struct members.
6713         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6714         from the vector length rather than searching for the end of a list.
6715         Use output_all_cfis.
6716         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6717
6718 2011-04-13  Nick Clifton  <nickc@redhat.com>
6719
6720         * config/rx/rx.md (movmemsi): Do not use this pattern when
6721         volatile pointers are involved.
6722
6723 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6724
6725         * config/i386/sse.md (pinsrbits): Remove.
6726         (sse2_packsswb): Merge with *avx_packsswb.
6727         (sse2_packssdw): Merge with *avx_packssdw.
6728         (sse2_packuswb): Merge with *avx_packuswb.
6729         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6730         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6731         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6732         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6733         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6734         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6735         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6736         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6737         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6738         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6739         (sse2_loadld): Merge with *avx_loadld.
6740         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6741         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6742         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6743         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6744         (vec_concatv2di): Merge with *vec_concatv2di_avx.
6745
6746 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
6747
6748         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6749         calling TREE_CHAIN.
6750         * print-tree.c (print_node): Likewise.
6751         * tree-inline.c (copy_tree_r): Likewise.
6752         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6753         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6754         instead of TS_COMMON.
6755         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6756         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6757         (copy_node_stat): Zero TREE_CHAIN only if necessary.
6758         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6759         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6760         ...and these...
6761         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6762         * tree.h: ...here.
6763         (TREE_CHAIN): Check for a TS_COMMON structure.
6764         (TREE_TYPE): Check for a TS_TYPED structure.
6765
6766 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
6767
6768         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6769         cgraph_get_create_node instead of cgraph_node.
6770
6771 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6772
6773         * c-parser.c (c_parser_initelt): Updated call to
6774         objc_build_message_expr.
6775         (c_parser_postfix_expression): Likewise.
6776
6777 2011-04-12  Kai Tietz  <ktietz@redhat.com>
6778
6779         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6780         MASK_MS_BITFIELD_LAYOUT bit.
6781
6782 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6783
6784         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6785         assert it is always true.
6786         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6787         moves.
6788
6789 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6790
6791         * c-parser.c (c_lex_one_token): Rewritten conditional used when
6792         compiling Objective-C to be more efficient.
6793
6794 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
6795
6796         * opts-common.c (decode_cmdline_options_to_array): Remove variable
6797         argv_copied.
6798
6799 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6800
6801         * recog.h, genoutput.c, optabs.c: Revert last patch.
6802
6803 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6804
6805         PR target/48090
6806         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6807
6808 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6809
6810         * recog.h (insn_operand_data): Add an "allows_mem" field.
6811         * genoutput.c (output_operand_data): Initialize it.
6812         * optabs.c (maybe_legitimize_operand_same_code): New function.
6813         (maybe_legitimize_operand): Use it when matching the original
6814         op->value.
6815
6816 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6817
6818         * genpreds.c (process_define_predicate): Move most processing
6819         to gensupport.c.  Continue to validate the expression.
6820         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6821         (process_define_predicate): Move processing to gensupport.c.
6822         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6823         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6824         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
6825         argument.
6826         (valid_predicate_name_p): New function, split out from old
6827         genpreds.c:process_define_predicate.
6828         (process_define_predicate): New function, combining code from
6829         old genpreds.c and genrecog.c functions.
6830         (process_rtx): Call it for DEFINE_PREDICATE and
6831         DEFINE_SPECIAL_PREDICATE.
6832
6833 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6834
6835         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6836         size of a '%A' memory reference.
6837         (T_DREG, T_QREG): New neon_builtin_type_bits.
6838         (arm_init_neon_builtins): Assert that the load and store operands
6839         are neon_struct_operands.
6840         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6841         (NEON_ARG_MEMORY): New builtin_arg.
6842         (neon_dereference_pointer): New function.
6843         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6844         Handle NEON_ARG_MEMORY.
6845         (arm_expand_neon_builtin): Update after above interface changes.
6846         Use NEON_ARG_MEMORY for loads and stores.
6847         * config/arm/predicates.md (neon_struct_operand): New predicate.
6848         * config/arm/iterators.md (V_two_elem): Tweak formatting.
6849         (V_three_elem): Use BLKmode for accesses that have no associated mode.
6850         (V_four_elem): Tweak formatting.
6851         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6852         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6853         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6854         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6855         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6856         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6857         (neon_vst4<mode>): Replace pointer operand with a memory operand.
6858         Use %A in the output template.
6859         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6860         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6861         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6862         the width of the memory access.  Remove post-increment.
6863         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6864
6865 2011-04-12  Nick Clifton  <nickc@redhat.com>
6866
6867         * config/v850/v850.c (expand_prologue): Do not use the CALLT
6868         instruction for interrupt handlers if the target is the basic V850
6869         architecture.
6870         (expand_epilogue): Likewise.
6871
6872 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6873
6874         PR rtl-optimization/48549
6875         * combine.c (propagate_for_debug): Also stop after BB_END of
6876         this_basic_block.  Process LAST and just stop processing after it.
6877         (combine_instructions): If last_combined_insn has been deleted,
6878         set last_combined_insn to its PREV_INSN.
6879
6880 2011-04-12  Richard Guenther  <rguenther@suse.de>
6881
6882         PR tree-optimization/46076
6883         * gimple.h (struct gimple_statement_call): Add fntype field.
6884         (gimple_call_fntype): Adjust.
6885         (gimple_call_set_fntype): New function.
6886         * gimple.c (gimple_build_call_1): Set the call function type.
6887         * gimplify.c (gimplify_call_expr): Preserve the function
6888         type the frontend used for the call.
6889         (gimplify_modify_expr): Likewise.
6890         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6891         function type.
6892         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6893         function type.
6894         * tree-ssa.c (useless_type_conversion_p): Function pointer
6895         conversions are useless.
6896
6897 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6898
6899         * cgraph.h (cgraph_node): Remove function declaration.
6900         (cgraph_create_node): Declare.
6901         (cgraph_get_create_node): Likewise.
6902         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6903         Updated all callers.
6904         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6905         the decl does not already exist.  Call cgraph_get_create_node instead
6906         of cgraph_node.
6907         (cgraph_get_create_node): New function.
6908         (cgraph_same_body_alias): Update comment.
6909         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6910         assert it does not return NULL.
6911         (cgraph_update_edges_for_call_stmt): Likewise.
6912         (cgraph_clone_edge): Likewise.
6913         (cgraph_create_virtual_clone): Likewise.
6914         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6915         instead of cgraph_node.
6916         (cgraph_add_new_function): Call cgraph_create_node or
6917         cgraph_get_create_node instead of cgraph_node.
6918         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6919         instead of cgraph_node.
6920         (record_eh_tables): Likewise.
6921         (mark_address): Likewise.
6922         (mark_load): Likewise.
6923         (build_cgraph_edges): Call cgraph_get_create_node instead
6924         of cgraph_node.
6925         (rebuild_cgraph_edges): Likewise.
6926         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6927         instead of cgraph_node.
6928         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6929         cgraph_node.
6930         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6931         cgraph_create_node instead of cgraph_node.
6932         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6933         of cgraph_node.
6934         * lto-cgraph.c (input_node): Likewise.
6935         * lto-streamer-in.c (input_function): Likewise.
6936         * varasm.c (mark_decl_referenced): Likewise.
6937         (assemble_alias): Likewise.
6938
6939 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6940
6941         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6942         instead of cgraph_node and assert it does not return NULL.
6943         * lto-streamer-in.c (lto_read_body): Likewise.
6944         * omp-low.c (new_omp_context): Likewise.
6945         (create_task_copyfn): Likewise.
6946         * tree-emutls.c (lower_emutls_function_body): Likewise.
6947         * matrix-reorg.c (transform_allocation_sites): Likewise.
6948
6949 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6950
6951         PR c/48552
6952         * c-typeck.c (build_asm_expr): Error out on attempts to use
6953         void type outputs or inputs for constraints that allow reg or
6954         don't allow memory.
6955
6956 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6957             Richard Earnshaw  <rearnsha@arm.com>
6958
6959         PR target/48250
6960         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6961         to use sign-magnitude offsets. Reject unsupported unaligned
6962         cases. Add detailed description in comments.
6963         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6964         condition from TARGET_32BIT to TARGET_ARM.
6965
6966 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6967
6968         * tree.h (struct typed_tree): New.
6969         (struct tree_common): Include it instead of tree_base.
6970         (TREE_TYPE): Update for new location of type field.
6971         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6972         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6973         (union tree_node): Add typed field.
6974         * treestruct.def (TS_TYPED): New.
6975         * lto-streamer.c (check_handled_ts_structures): Handle it.
6976         * tree.c (MARK_TS_TYPED): New macro.
6977         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6978
6979 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6980
6981         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6982         (force_nonfallthru): Do not alter the loop nest if no basic block
6983         was created.
6984
6985 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6986
6987         * config/i386/sse.md (VI): New mode iterator.
6988         (SSEMODEI): Remove.
6989         (AVX256MODEI): Ditto.
6990         (AVXMODEF4P): Ditto.
6991         (avxvecpsmode): Ditto.
6992         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6993         (sse2_andnot<mode>3): New expander.
6994         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6995         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6996         (<any_logic:code><mode>3): Use VI mode iterator.
6997         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6998         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6999         (*andnottf3): Handle AVX three-operand constraints.
7000         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7001
7002 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7003             Robert Millan  <rmh@gnu.org>
7004
7005         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7006         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7007         GNU_USER_DYNAMIC_LINKER64): Define.
7008         (REG_NAME): Don't undefine.
7009         (MD_UNWIND_SUPPORT): Undefine.
7010         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7011         (REG_NAME): Don't undefine.
7012         (MD_UNWIND_SUPPORT): Undefine.
7013         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7014
7015 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7016
7017         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7018         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7019
7020 2011-04-11  Xinliang David Li  <davidxl@google.com>
7021
7022         * value-profile.c (check_ic_target): New function.
7023         (gimple_ic_transform): Sanity check indirect call target.
7024         * gimple-low.c (gimple_check_call_args): Interface change.
7025         (gimple_check_call_matching_types): New function.
7026         * tree-inline.c (tree_can_inline_p): Call new function.
7027
7028 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
7029
7030         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7031         tree-pretty-print.h & realmpfr.h.
7032
7033 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
7034
7035         PR middle-end/48464
7036         * ira.c (setup_pressure_classes): Fix typo in loop condition.
7037         (setup_allocno_and_important_classes): Ditto.
7038
7039 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7040
7041         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7042         GNU_USER_DYNAMIC_LINKER.
7043         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7044         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7045         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7046         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7047         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7048         GNU_USER_TARGET_OS_CPP_BUILTINS.
7049         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7050         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7051         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7052         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7053         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7054         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7055         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7056         GNU_USER_TARGET_OS_CPP_BUILTINS.
7057         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7058         GNU_USER_DYNAMIC_LINKER.
7059         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7060         GNU_USER_TARGET_OS_CPP_BUILTINS.
7061         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7062         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7063         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7064         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7065         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7066         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7067         GNU_USER_DYNAMIC_LINKER64): Remove.
7068         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7069         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7070         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7071         GNU_USER_DYNAMIC_LINKER.
7072         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7073         GNU_USER_TARGET_OS_CPP_BUILTINS.
7074         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7075         GNU_USER_TARGET_OS_CPP_BUILTINS.
7076         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7077         to GNU_USER_TARGET_OS_CPP_BUILTINS.
7078         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7079         GNU_USER_TARGET_OS_CPP_BUILTINS.
7080         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7081         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7082         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7083         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7084         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7085         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7086         GNU_USER_DYNAMIC_LINKER.
7087         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7088         GNU_USER_TARGET_OS_CPP_BUILTINS.
7089         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7090         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7091         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7092         GNU_USER_DYNAMIC_LINKER.
7093         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7094         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7095         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7096         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7097         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7098         GNU_USER_DYNAMIC_LINKER.
7099         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7100         GNU_USER_DYNAMIC_LINKERN32.
7101         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7102         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
7103         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
7104         GNU_USER_DYNAMIC_LINKER32.
7105         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7106         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7107         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7108         GNU_USER_DYNAMIC_LINKER.
7109         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7110         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7111         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7112         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7113         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7114         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7115         GNU_USER_DYNAMIC_LINKER32.
7116         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7117         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7118         GNU_USER_DYNAMIC_LINKER.
7119         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7120         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7121         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7122         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
7123         GNU_USER_DYNAMIC_LINKER64.
7124         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7125         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7126         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7127         GNU_USER_DYNAMIC_LINKER.
7128         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7129         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7130         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7131         GNU_USER_DYNAMIC_LINKER.
7132         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7133         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7134         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7135         GNU_USER_DYNAMIC_LINKER32.
7136         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7137         GNU_USER_DYNAMIC_LINKER64.
7138         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7139         GNU_USER_DYNAMIC_LINKER64.
7140         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7141         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7142         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7143         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7144         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7145
7146 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7147
7148         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
7149         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7150         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7151         GNU_USER_DYNAMIC_LINKER.
7152         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7153         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
7154         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7155         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7156         GNU_USER_DYNAMIC_LINKER64.
7157         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7158         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7159         GNU_USER_LINK_EMULATION.
7160         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7161         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7162         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7163         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7164         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7165         CPP_SPEC, CC1_SPEC): Remove.
7166         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7167         (GNU_USER_DYNAMIC_LINKER): Define.
7168         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7169         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7170         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7171         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7172         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7173         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7174         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7175         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7176         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7177         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7178         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7179         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7180         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7181         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7182         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7183         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7184         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7185         GNU_USER_DYNAMIC_LINKER.
7186         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7187         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7188         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7189         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7190         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7191         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7192         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7193         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7194         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7195         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7196
7197 2011-04-11  Kai Tietz  <ktietz@redhat.com>
7198
7199         PR target/9601
7200         PR target/11772
7201         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7202         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7203         comment.
7204         (ix86_is_msabi_thiscall): Removed.
7205         (ix86_is_type_thiscall): Likewise.
7206         (ix86_get_callcvt): New function.
7207         (ix86_comp_type_attributes): Simplify check.
7208         (ix86_function_regparm): Use ix86_get_callcvt for calling
7209         convention attribute checks.
7210         (ix86_return_pops_args): Likewise.
7211         (ix86_static_chain): Likewise.
7212         (x86_this_parameter): Likewise.
7213         (x86_output_mi_thunk): Likewise.
7214         (ix86_function_type_abi): Optimize check for types without attributes.
7215         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7216         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7217         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7218         by flag-values.
7219         (IX86_BASE_CALLCVT): Helper macro.
7220         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7221         Use ix86_get_callcvt for calling convention attribute checks and avoid
7222         symbol-decoration for stdcall in TARGET_RTD case.
7223         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7224         Likewise.
7225         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7226         for declaration.
7227
7228 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
7229
7230         * config/i386/sse.md (VI_128): New mode iterator.
7231         (VI12_128): Rename from SSEMODE12.
7232         (VI14_128): Rename from SSEMODE14.
7233         (VI124_128): New mode iterator.
7234         (VI24_128): Rename from SSEMODE248.
7235         (VI248_128): Rename from SSEMODE248.
7236         (SSEMODE124C8): Remove.
7237         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7238         (*sse2_<plusminus_insn><mode>3): Merge with
7239         *avx_<plusminus_insn><mode>3.
7240         (*mulv8hi3): Merge with *avx_mulv8hi3.
7241         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7242         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7243         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7244         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7245         (ashr<mode>3): Merge with *avx_ashr<mode>3.
7246         (lshr<mode>3): Merge with *avx_lshr<mode>3.
7247         (ashl<mode>3): Merge with *avx_ashl<mode>3.
7248         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7249         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7250         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7251         (*<smaxmin:code>v8hi3): Ditto.
7252         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7253         (*<smaxmin:code>v16qi3): Ditto.
7254         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7255         (*sse2_eq<mode>3): Ditto.
7256         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7257         (*sse2_gt<mode>3): Ditto.
7258         (vcondv2di): Split out of vcond<mode>.
7259         (vconduv2di): Split out of vcondu<mode>.
7260
7261 2011-04-11  Richard Guenther  <rguenther@suse.de>
7262
7263         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7264         before calling tree_low_cst.
7265
7266 2011-04-11  Richard Guenther  <rguenther@suse.de>
7267
7268         * stor-layout.c (layout_type): Compute all array index size operations
7269         in the original type.
7270         (initialize_sizetypes): Add comment.
7271         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7272
7273 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7274
7275         * common.opt (Tbss=, Tdata=, Ttext=): New options.
7276
7277 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7278
7279         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7280         of cgraph_node, handle NULL return value.
7281         (cgraph_global_info): Likewise.
7282         (cgraph_rtl_info): Likewise.
7283         * tree-inline.c (estimate_num_insns): Likewise.
7284         * gimplify.c (unshare_body): Likewise.
7285         (unvisit_body): Likewise.
7286         (gimplify_body): Likewise.
7287         * predict.c (optimize_function_for_size_p): Likewise.
7288         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7289         (call_may_clobber_ref_p_1): Likewise.
7290         * varasm.c (function_section_1): Likewise.
7291         (assemble_start_function): Likewise.
7292
7293 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7294
7295         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7296         of cgraph_node.
7297         * final.c (rest_of_clean_state): Likewise.
7298         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7299         * passes.c (pass_init_dump_file): Likewise.
7300         (execute_all_ipa_transforms): Likewise.
7301         (function_called_by_processed_nodes_p): Likewise.
7302         * predict.c (maybe_hot_frequency_p): Likewise.
7303         (probably_never_executed_bb_p): Likewise.
7304         (compute_function_frequency): Likewise.
7305         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7306         (unnest_nesting_tree_1): Likewise.
7307         (lower_nested_functions): Likewise.
7308         * tree-optimize.c (execute_fixup_cfg): Likewise.
7309         (tree_rest_of_compilation): Likewise.
7310         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7311         * tree-sra.c (ipa_early_sra): Likewise.
7312         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7313         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7314         * ipa.c (record_cdtor_fn): Likewise.
7315         * ipa-inline.c (cgraph_early_inlining): Likewise.
7316         (compute_inline_parameters_for_current): Likewise.
7317         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7318         * ipa-pure-const.c (local_pure_const): Likewise.
7319         * ipa-split.c (split_function): Likewise.
7320         (execute_split_functions): Likewise.
7321         * cgraphbuild.c (build_cgraph_edges): Likewise.
7322         (rebuild_cgraph_edges): Likewise.
7323         (cgraph_rebuild_references): Likewise.
7324         (remove_cgraph_callee_edges): Likewise.
7325         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7326         (verify_cgraph_node): Likewise.
7327         (cgraph_analyze_functions): Likewise.
7328         (cgraph_preserve_function_body_p): Likewise.
7329         (save_inline_function_body): Likewise.
7330         (save_inline_function_body): Likewise.
7331         * tree-inline.c (copy_bb): Likewise.
7332         (optimize_inline_calls): Likewise.
7333
7334 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7335
7336         PR tree-optimization/48195
7337         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7338         ipa_check_create_edge_args.
7339         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7340         ipa_check_create_edge_args.
7341         * ipa-inline.c (inline_generate_summary): Do not call
7342         ipa_check_create_node_params and ipa_check_create_edge_args.
7343         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7344         ipa_check_create_edge_args.
7345
7346 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
7347
7348         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7349         instead of loop.
7350         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7351         * function.c (record_hard_reg_sets): Likewise.
7352         * ira.c (compute_regs_asm_clobbered): Likewise.
7353         * sched-deps.c (sched_analyze_1): Likewise.
7354         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7355
7356 2011-04-09  Xinliang David Li  <davidxl@google.com>
7357
7358         PR tree-optimization/PR48484
7359         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7360         has_valid_pred lazily
7361
7362 2011-04-09  Duncan Sands  <baldrick@free.fr>
7363
7364         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7365
7366 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7367
7368         * combine.c (combine_validate_cost): Adjust comments.  Set registered
7369         cost of I0 to zero at the end, if any.
7370
7371 2011-04-08  Xinliang David Li  <davidxl@google.com>
7372
7373         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7374         to insane profile data.
7375
7376 2011-04-08  Xinliang David Li  <davidxl@google.com>
7377
7378         * ipa-cp.c (ipcp_update_profiling): Correct
7379          negative scale factor due to insane profile data.
7380
7381 2011-04-08  Xinliang David Li  <davidxl@google.com>
7382
7383         * final.c (dump_basic_block_info): New function.
7384         (final): Dump basic block.
7385         (final_scan_insn): Remove old dump.
7386
7387 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
7388
7389         PR target/47829
7390         * config.gcc (i386-*-freebsd): Disable unwind table generation for
7391         crtbegin/crtend.
7392
7393 2011-04-08  Michael Matz  <matz@suse.de>
7394
7395         PR middle-end/48389
7396         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7397         functions.
7398         (rebuild_jump_labels): Call rebuild_jump_labels_1.
7399         * rtl.h (rebuild_jump_labels_chain): Declare.
7400         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7401         insns inserted on edges.
7402
7403 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
7404
7405         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7406         * config/arm/arm-arches.def: New.
7407         * config/arm/arm-opts.h: New.
7408         * config/arm/genopt.sh: New.
7409         * config/arm/arm-tables.opt: New (generated).
7410         * config/arm/arm.c (arm_handle_option, arm_target_help,
7411         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7412         (all_architectures): Get most table contents from arm-arches.def.
7413         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7414         arm_selected_tune here.
7415         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7416         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7417         (march=, mcpu=, mtune=): Use Enum and Var.
7418         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7419         (arm.o): Update dependencies.
7420
7421 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
7422
7423         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7424         of header_file.
7425         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7426         (write_typed_alloc_defns): Likewise.
7427         (main): Calls write_typed_alloc_defns with output_header.
7428
7429 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
7430
7431         PR inline-asm/48435
7432         * ira-color.c (setup_profitable_hard_regs): Add comments.
7433         Don't take prohibited hard regs into account.
7434         (setup_conflict_profitable_regs): Rename to
7435         get_conflict_profitable_regs.
7436         (check_hard_reg_p): Check prohibited hard regs.
7437
7438 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7439
7440         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7441         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7442         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7443
7444 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7445
7446         PR target/48366
7447         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7448         move from floating point to shift amount register.
7449         (emit_move_sequence): Remove secondary reload support for floating
7450         point to shift amount amount register copies.
7451         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7452         amount register copies.
7453         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7454         register, return false if mode isn't a scalar integer mode.
7455         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7456
7457 2011-04-08  Richard Guenther  <rguenther@suse.de>
7458
7459         * gimple.c (gimple_call_flags): Remove kludge.
7460
7461 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7462
7463         * sel-sched.c (sel_region_init): Move call to
7464         sel_setup_region_sched_flags after setup_current_loop_nest.
7465
7466 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
7467
7468         PR rtl-optimization/48272
7469         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7470         init_insn_reg_pressure_info.  Adjust a caller.
7471         * sched-int.h (init_insn_reg_pressure_info): Declare.
7472         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7473         when sched-pressure is enabled.
7474
7475 2011-04-08  Richard Guenther  <rguenther@suse.de>
7476
7477         * gimple.c (gimple_set_modified): Do not queue calls to
7478         MODIFIED_NORETURN_CALLS here ...
7479         * tree-ssa-operands.c (update_stmt_operands): ... but here.
7480
7481 2011-04-08  Richard Guenther  <rguenther@suse.de>
7482
7483         PR lto/48467
7484         * toplev.c (lang_dependent_init): Do not open asm_out_file
7485         in WPA mode, nor perform debug machinery initialization.
7486         (finalize): Do not unlink asm_out_file in WPA mode.
7487
7488 2011-04-08  Richard Guenther  <rguenther@suse.de>
7489
7490         * gimple.h (gimple_call_fntype): New function.
7491         (gimple_call_return_type): Use it.
7492         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7493         * gimple-low.c (gimple_check_call_args): Likewise.
7494         * gimple.c (gimple_call_flags): Likewise.
7495         (gimple_call_arg_flags): Likewise.
7496         (gimple_call_return_flags): Likewise.
7497         * tree-cfg.c (verify_gimple_call): Likewise.
7498         (do_warn_unused_result): Likewise.
7499         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7500         * value-prof.c (gimple_ic_transform): Fix fndecl check.
7501
7502 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
7503
7504         PR rtl-optimization/48235
7505         * sel-sched.c (code_motion_process_successors): Recompute the last
7506         insn in basic block if control flow changed.
7507         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
7508         Update condition for ilist_remove.
7509
7510 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7511
7512         PR rtl-optimization/48302
7513         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7514         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
7515         it to record added preheader blocks.
7516         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
7517         on to sel_add_loop_preheaders.
7518         (sel_region_init): Move call to setup_current_loop_nest after
7519         sel_init_bbs.
7520
7521 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7522
7523         PR target/48273
7524         * cfgloop.h (loop_has_exit_edges): New helper.
7525         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7526         non-clonable.
7527         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7528         that have no exit edges.
7529
7530 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7531
7532         PR rtl-optimization/48442
7533         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
7534         all callers.  Adjust assert.
7535
7536 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
7537
7538         PR tree-optimization/48377
7539         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7540         is_packed to true even for types with smaller TYPE_ALIGN than
7541         TYPE_SIZE.
7542
7543 2011-04-08  Richard Guenther  <rguenther@suse.de>
7544
7545         PR bootstrap/48513
7546         * doc/tm.texi: Re-generate.
7547
7548 2011-04-08  Wei Guozhi  <carrot@google.com>
7549
7550         PR target/47855
7551         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7552         * config/arm/arm.c (arm_attr_length_push_multi): New function.
7553         * config/arm/arm.md (*push_multi): Change the length computation to
7554         call a C function.
7555
7556 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
7557
7558         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7559         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7560         * doc/tm.texi: Regenerate.
7561         * system.h (ASM_OUTPUT_BSS): Poison.
7562         * varasm.c (asm_output_bss): Remove function.
7563         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7564
7565         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7566         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7567         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7568         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7569         Likewise.
7570         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7571         Likewise.
7572         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7573         Likewise.
7574         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7575
7576 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
7577
7578         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7579         EnumValue lines.
7580
7581 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
7582
7583         * config/m68k/m68k.c (m68k_handle_option): Don't handle
7584         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7585         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7586         OPT_mcpu32.
7587         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7588         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7589         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7590         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7591         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7592         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7593         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7594         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7595         options.  Don't map other m68k options manually.  Don't handle
7596         old-style options as canonical.
7597         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7598         * doc/install.texi (m68k-*-*): Document binutils version requirement.
7599
7600 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7601
7602         * basic-block.h (force_nonfallthru): Move to...
7603         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7604         (force_nonfallthru): ...here.
7605         * cfghooks.c (force_nonfallthru): New function.
7606         * cfgrtl.c (force_nonfallthru): Rename into...
7607         (rtl_force_nonfallthru): ...this.
7608         (commit_one_edge_insertion): Do not set AUX field.
7609         (commit_edge_insertions): Do not discover new basic blocks.
7610         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7611         (cfg_layout_rtl_cfg_hooks): Likewise.
7612         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7613         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
7614         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7615
7616 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
7617
7618         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7619         Remove macros.
7620
7621 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
7622
7623         * config/i386/sse.md: Update copyright year.
7624         (avxcvtvecmode): Remove.
7625         (sse_movhlps): Merge with *avx_movhlps.
7626         (sse_movlhps): Merge with *avx_movlhps.
7627         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7628         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7629         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7630         (sse_loadhps): Merge with *avx_loadhps.
7631         (sse_storelps): Merge with *avx_storelps.
7632         (sse_loadlps): Merge with *avx_loadlps.
7633         (sse_movss): Merge with *avx_movss.
7634         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7635         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7636         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7637         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7638         (vec_set<mode>_0): Ditto.
7639         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7640         (sse4_1_insertps): Merge with *avx_insertps.
7641         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7642         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7643         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7644         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7645         (sse2_storehpd): Merge with *avx_storehpd.
7646         (sse2_loadhpd): Merge with *avx_loadhpd.
7647         (sse2_loadlpd): Merge with *avx_loadlpd.
7648         (sse2_movsd): Merge with *avx_movsd.
7649         (*vec_concatv2df): Merge with *vec_concatv2df.
7650
7651 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
7652
7653         PR debug/48343
7654         * combine.c (combine_instructions): Add last_combined_insn,
7655         update it if insn is after it, pass it to all try_combine calls.
7656         (try_combine): Add last_combined_insn parameter, pass it instead of
7657         i3 to propagate_for_debug.
7658
7659 2011-04-07  Nick Clifton  <nickc@redhat.com>
7660
7661         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7662         to handle MDR <-> data register transfers.
7663         (movhi_internal): Likewise.
7664
7665 2011-04-07  Alan Modra  <amodra@gmail.com>
7666
7667         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7668         previous stack info.
7669
7670 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7671
7672         PR target/43920
7673         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
7674         flow_find_cross_jump.  Swap variables to implement backward replacement.
7675         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7676
7677 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7678
7679         PR target/43920
7680         * cfgcleanup.c (walk_to_nondebug_insn): New function.
7681         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
7682         and bb2.
7683         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7684         src1 or src2.  Redirect edges to the last basic block.  Update
7685         frequency and count on multiple basic blocks in case of fallthru.
7686
7687 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7688
7689         PR target/43920
7690         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7691         function.
7692         (old_insns_match_p): Change return type.  Replace return false/true
7693         with return dir_none/dir_both.  Use can_replace_by.
7694         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
7695         direction from dir_p.  Register replacement direction in dir, last_dir
7696         and afterlast_dir.  Handle new return type of old_insns_match_p using
7697         merge_dir.  Return replacement direction in dir_p.
7698         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7699         return type of old_insns_match_p.
7700         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7701         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7702         flow_find_cross_jump.
7703         * basic-block.h (enum replace_direction): New type.
7704         (flow_find_cross_jump): Add parameter to declaration.
7705
7706 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7707
7708         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7709         (AVXMODEDCVTPS2DQ): Ditto.
7710         (VEC_FLOAT_MODE): Ditto.
7711         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
7712         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7713         (<any_logic:code><mode>3): Use VF mode iterator.
7714         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7715         Use VF mode iterator.
7716         (copysign<mode>3): Use VF mode iterator.
7717         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
7718         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7719         (*<any_logic:code><MODEF:mode>3): Merge with
7720         *avx_<any_logic:code><MODEF:mode>3.
7721         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7722         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7723         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7724         (avx_cvtdq2ps<avxmodesuffix>): Remove.
7725         (sse2_cvtdq2ps): Use %v modifier.
7726         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7727         (avx_cvtps2dq<avxmodesuffix>): Remove.
7728         (sse2_cvtps2dq): Use %v modifier.
7729         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7730         (avx_cvttps2dq<avxmodesuffix>): Remove.
7731         (sse2_cvttps2dq): Use %v modifier.
7732         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7733         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7734         (sse2_cvtsd2siq): Fix insn template.
7735         (sse2_cvtsd2siq_2): Ditto.
7736         (sse2_cvttsd2siq): Ditto.
7737         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7738         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7739
7740 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7741
7742         * gcov-io.c: Use GCC Runtime Library Exception.
7743
7744 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
7745
7746         PR debug/48466
7747         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7748         as base_reg whatever register reg has been eliminated to, instead
7749         of hardcoding STACK_POINTER_REGNUM.
7750
7751 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7752
7753         * doc/tm.texi.in: Document C target hooks as separate from general
7754         target hooks.
7755         * doc/tm.texi: Regenerate.
7756         * genhooks.c (struct hook_desc): Add docname field.
7757         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
7758         docname field.
7759         (hook_array): Include c-target.def.
7760         (emit_documentation): Use docname field in output.
7761         (emit_init_macros): Take docname argument.  Only emit definitions
7762         for hooks matching docname.
7763         (main): Expect additional arguments in all cases.  Pass argument
7764         to emit_init_macros.
7765         * target.def: Move initial macro definitions and comments to
7766         target-hooks-macros.h.
7767         (gcc_targetcm): Move to c-family/c-target.def.
7768         * target.h (targetcm): Move declaration to c-family/c-target.h.
7769         * targhooks.c (default_handle_c_option): Move to
7770         c-family/c-opts.c.
7771         * targhooks.h (default_handle_c_option): Move declaration to
7772         c-family/c-common.h.
7773         * target-hooks-macros.h: New file.
7774         * config.gcc (target_has_targetcm): Define and use to add to
7775         c_target_objs and cxx_target_objs.
7776         * config/default-c.c: New file.
7777         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7778         of target.h and target-def.h.
7779         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7780         (darwin_objc_construct_string, darwin_cfstring_ref_p,
7781         darwin_check_cfstring_format_arg): Make static.
7782         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7783         TARGET_STRING_OBJECT_REF_TYPE_P,
7784         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7785         * config/darwin-protos.h (darwin_objc_construct_string,
7786         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7787         declare.
7788         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7789         TARGET_STRING_OBJECT_REF_TYPE_P,
7790         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7791         * config/t-darwin (darwin-c.o): Update dependencies.
7792         * system.h (TARGET_HAS_TARGETCM): Poison.
7793         * Makefile.in (TARGET_H): Update.
7794         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7795         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7796         (default-c.o): New target.
7797         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7798         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7799         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
7800         c-target.def.
7801         (build/genhooks.o): Update dependencies.
7802
7803 2011-04-06  Richard Guenther  <rguenther@suse.de>
7804
7805         * ipa-inline.c (enum inlining_mode): Remove.
7806         (cgraph_flatten): Use some other token.
7807         (cgraph_edge_early_inlinable_p): New function, split out from ...
7808         (cgraph_perform_always_inlining): New function, split out from ...
7809         (cgraph_decide_inlining_incrementally): ... here.
7810         (cgraph_mark_inline_edge): Adjust.
7811         (cgraph_early_inlining): Re-structure.
7812         (pass_early_inline): Require SSA form.
7813
7814 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
7815             Julian Brown  <julian@codesourcery.com>
7816             Mark Shinwell  <shinwell@codesourcery.com>
7817
7818         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7819         LO_REGS only for Thumb-1.
7820         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7821         be used in short instructions when optimising for size on Thumb-2.
7822
7823 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7824
7825         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7826         associated with user returns to be preserved.
7827
7828 2011-04-06  Tristan Gingold  <gingold@adacore.com>
7829
7830         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7831         symbol_queue_size, DBXOUT_DECR_NESTING,
7832         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7833         if XCOFF_DEBUGGING_INFO.
7834
7835 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7836
7837         * config/i386/i386.md (attribute isa): New.
7838         (attribute enabled): New.
7839         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7840         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7841         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7842         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7843         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7844         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7845         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7846         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7847
7848         * config/i386/sse.md (VF): New mode iterator.
7849         (VF1): Ditto.
7850         (VF2): Ditto.
7851         (VF_128): Ditto.
7852         (SSEMODEF4): Remove.
7853         (attribute sse): Handle V8SF and V4DF modes.
7854         (<absneg:code><mode>2): Use VF mode iterator.
7855         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
7856         mode iterator.
7857         (<plusminus_insn><mode>3): Use VF mode iterator.
7858         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7859         Use VF mode iterator.
7860         (<sse>_vm<plusminus_insn><mode>3): Merge with
7861         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
7862         (mul<mode>3): Use VF mode iterator.
7863         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
7864         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
7865         mode iterator.
7866         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7867         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7868         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
7869         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
7870         mode iterator.
7871         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7872         Use VF1 mode iterator.
7873         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7874         (sqrt<VF2:mode>2): New expander.
7875         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7876         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7877         and sqrtv2df2.  Use VF mode iterator.
7878         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
7879         mode iterator.
7880         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7881         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7882         Use VF1 mode iterator.
7883         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7884         (<smaxmin:code><mode>3): Use VF mode iterator.
7885         (*<smaxmin:code><mode>3_finite): Merge with
7886         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
7887         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7888         (<sse>_vm<smaxmin:code><mode>2): Merge with
7889         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7890         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7891         mode iterator.
7892         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7893         mode iterator.
7894         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7895         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7896         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7897         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7898         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7899         VF mode iterator.
7900         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7901         Use VF_128 mode iterator.
7902         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7903         mode iterator.
7904         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7905         VF_128 mode iterator.
7906         (vcond<mode>): Use VF mode iterator.
7907         * config/i386/predicates.md (sse_comparison_operator): Merge with
7908         avx_comparison_float_operator.  Do not declare as special_predicate.
7909         * config/i386/i386.c (struct builtin_description): Update for renamed
7910         compare patterns.
7911         (ix86_expand_args_builtin): Ditto.
7912         (ix86_expand_sse_compare_mask): Ditto.
7913
7914 2011-04-06  Richard Guenther  <rguenther@suse.de>
7915
7916         * tree-inline.c (estimate_num_insns): For calls simply account
7917         for all passed arguments and a used return value.
7918
7919 2011-04-06  Richard Guenther  <rguenther@suse.de>
7920
7921         PR tree-optimization/47663
7922         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7923         call_stmt_time fields.
7924         (cgraph_edge_inlinable_p): Declare.
7925         (cgraph_edge_recursive_p): New inline function.
7926         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7927         (cgraph_clone_edge): Copy it.
7928         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7929         Account for call stmt time.
7930         (cgraph_estimate_time_after_inlining): Take edge argument.
7931         (cgraph_estimate_edge_growth): Account call stmt size.
7932         (cgraph_estimate_size_after_inlining): Take edge argument.
7933         (cgraph_mark_inline_edge): Adjust.
7934         (cgraph_check_inline_limits): Likewise.
7935         (cgraph_recursive_inlining_p): Remove.
7936         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7937         (cgraph_decide_recursive_inlining): Take edge argument and
7938         adjust.
7939         (cgraph_decide_inlining_of_small_functions): Do not avoid
7940         diags for recursive inlining here.
7941         (cgraph_flatten): Adjust.
7942         (cgraph_decide_inlining_incrementally): Likewise.
7943         (estimate_function_body_sizes): Remove call cost handling.
7944         (compute_inline_parameters): Initialize caller edge call costs.
7945         (cgraph_estimate_edge_growth): New function.
7946         (cgraph_estimate_growth): Use it.
7947         (cgraph_edge_badness): Likewise.
7948         (cgraph_check_inline_limits): Take an edge argument.
7949         (cgraph_decide_inlining_of_small_functions): Adjust.
7950         (cgraph_decide_inlining): Likewise.
7951         * tree-inline.c (estimate_num_insns): Only account for call
7952         return value if it is used.
7953         (expand_call_inline): Avoid diagnostics on recursive inline
7954         functions here.
7955         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7956         (input_edge): Input edge call costs.
7957
7958 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7959
7960         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7961
7962 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7963
7964         * doc/invoke.texi (Spec Files): Fix typo.
7965
7966 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7967
7968         * profile.c (branch_prob): Move declaration of local variable.  Remove
7969         obsolete ??? comment.  Expand the location explicitly instead of using
7970         the LOCATION_FILE and LOCATION_LINE macros.
7971
7972 2011-04-06  Wei Guozhi  <carrot@google.com>
7973
7974         PR target/47855
7975         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7976         (arm_cond_branch): Likewise.
7977         (arm_cond_branch_reversed): Likewise.
7978         (arm_jump): Likewise.
7979         (push_multi): Likewise.
7980         * config/arm/constraints.md (Py): New constraint.
7981
7982 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7983
7984         PR bootstrap/48471
7985         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7986         Move these...
7987         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7988         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7989         #ifdef DBX_DEBUGGING_INFO.
7990
7991 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7992
7993         PR bootstrap/48403
7994         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7995         if old and new states differ.
7996
7997 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7998
7999         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8000         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8001         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8002         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8003         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8004         mcfv4e): Use Alias.
8005         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8006         ColdFire options to -mcpu= options.
8007
8008 2011-04-05  Jeff Law  <law@redhat.com>
8009
8010         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8011         check if BB is a successor of LOOP->header and return
8012         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8013
8014 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8015
8016         * cprop.c (struct reg_use): Remove.
8017         (reg_use_table): Make an array of RTX.
8018         (find_used_regs, constprop_register, local_cprop_pass,
8019         bypass_block): Simplify users of reg_use_table.
8020         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
8021         on one of the uses found by find_used_regs.
8022
8023 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8024
8025         PR bootstrap/48469
8026         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8027         declaration.
8028
8029 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8030
8031         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8032         as an rtx.
8033         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8034
8035 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8036
8037         PR middle-end/48441
8038         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8039
8040 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8041
8042         * combine.c: Include obstack.h.
8043         (struct insn_link): Define.
8044         (uid_log_links): Adjust type.
8045         (FOR_EACH_LOG_LINK): New macro.
8046         (insn_link_obstack): Declare.
8047         (alloc_insn_link): Define.
8048         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
8049         type of link variables.
8050         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8051         (try_combine, record_promoted_values, distribute_notes): Likewise.
8052         (distribute_links): Likewise.  Tweak prototype.
8053         (clear_log_links): Delete.
8054         (adjust_for_new_dest): Call alloc_insn_link.
8055         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8056
8057 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8058
8059         * gcse.c (modify_mem_list): Convert to an array of VECs.
8060         (canon_modify_mem_list, compute_transp): Tweak formatting.
8061         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
8062         (load_killed_in_block_p): Likewise.
8063         (record_last_mem_set_info): Likewise.
8064         (clear_modify_mem_tables): Likewise.
8065
8066 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8067
8068         PR middle-end/48461
8069         * function.c (emit_use_return_register_into_block): Only define if
8070         HAVE_return.
8071
8072 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
8073
8074         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8075
8076 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
8077
8078         * config/rx/rx-opts.h: New.
8079         * config/rx/rx.c (rx_cpu_type): Remove.
8080         (rx_handle_option): Don't assert that global structures are in
8081         use.  Access variables via opts pointer.  Defer most handling of
8082         OPT_mint_register_.  Use error_at.
8083         (rx_option_override): Handle deferred OPT_mint_register_ here.
8084         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8085         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8086         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8087         (rx_cpu_types): New Enum and EnumValue entries.
8088         (mint-register=): Use Defer and use Var accordingly.
8089
8090 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8091
8092         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8093         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8094         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8095         Move these...
8096         (debug_free_queue, debug_nesting, symbol_queue_index):
8097         ...and these...
8098         * dbxout.c: ...to here.  Make static.
8099
8100 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8101
8102         * gcse.c (modify_pair): Define.  Define a VEC of it.
8103         (canon_modify_mem_list): Convert to an array of VECs.
8104         (free_insn_expr_list_list): Delete.
8105         (clear_modify_mem_tables): Call VEC_free instead.
8106         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8107         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8108         (canon_list_insert, compute_transp): Likewise.
8109
8110 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8111
8112         PR target/43920
8113         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8114         for size.
8115
8116 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8117
8118         PR target/43920
8119         * function.c (emit_use_return_register_into_block): New function.
8120         (thread_prologue_and_epilogue_insns): Use
8121         emit_use_return_register_into_block.
8122
8123 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8124
8125         PR target/43920
8126         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8127         insn.
8128
8129 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8130
8131         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8132
8133 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
8134
8135         * config/arm/arm.md (define_constants for unspec): Replace with
8136         define_c_enum.
8137         (define_constants for unspecv): Replace with define_c_enum.
8138         * config/arm/neon.md (define_constants for unspec): Replace with
8139         define_c_enum.
8140
8141 2011-04-04  Richard Henderson  <rth@redhat.com>
8142
8143         PR bootstrap/48400
8144         * dwarf2out.c (output_line_info): Always emit line info from
8145         at least one section.
8146         (dwarf2out_init): Create text_section_line_info here ...
8147         (set_cur_line_info_table): ... not here.
8148
8149 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
8150
8151         PR target/48380
8152         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8153         not called.
8154
8155         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8156
8157 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
8158
8159         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8160         (expr_equiv_p): Remove.
8161         (insert_set_in_table): Look at <dest, src> pair instead of expr.
8162         (hash_scan_set): Update call to insert_set_in_table.
8163         (dump_hash_table): Dump <dest, src> pair.
8164         (lookup_set): Simplify.  Lookup <dest, src> pair.
8165         (compute_transp): Remove, fold heavily simplified code into...
8166         (compute_local_properties): ...here.  Expect COMP and TRANSP
8167         unconditionally.
8168         (find_avail_set): Take set directly from struct expr.
8169         (find_bypass-set): Likewise.
8170         (bypass_block): Likewise.
8171         (cprop_insn): Likewise.  Remove redundant INSN_P test.
8172
8173         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8174         checks on form of COND from find_implicit_sets to here.
8175         (find_implicit_sets): Cleanup control flow. Split critical edges
8176         if it exposes implicit sets.  Allocate/resize implicit_sets as
8177         necessary.
8178         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8179         changed something.  Run df_analyze after find_implicit_sets if any
8180         edges were split.  Do not allocate implicit_sets here.
8181
8182         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8183         (gcse_obstack): Renamed to cprop_obstack.
8184         (GNEW, GNEWVEC, GNEWVAR): Remove.
8185         (gmalloc): Remove.
8186         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8187         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8188         (gcse_alloc): Likewise, and rename to cprop_alloc.
8189         (alloc_gcse_men, free_gcse_mem): Remove.
8190         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8191         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8192         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8193
8194         * cprop.c (oprs_not_set_p): Remove.
8195         (mark_set, mark_clobber): Remove.
8196         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8197         (reg_not_set_p): New function.
8198         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8199         (cprop_insn): Likewise.
8200         (cprop_jump): Use FOR_EACH_EDGE.
8201
8202 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
8203
8204         PR bootstrap/48403
8205         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8206         (rank_for_schedule): Use scheduled_insns vector instead of
8207         last_scheduled_insn.
8208         (ok_for_early_queue_removal): Likewise.
8209         (queue_to_ready): Search forward in nonscheduled_insns_begin if
8210         we have a dbg_cnt.
8211         (choose_ready): Likewise.
8212         (commit_schedule): Use VEC_iterate.
8213         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
8214         a dbg_cnt, use it and ensure the first insn is in the ready list.
8215         (haifa_sched_init): Allocate scheduled_insns.
8216         (sched_extend_ready_list): Don't allocate it; reserve space.
8217         (haifa_sched_finish): Free it.
8218
8219 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
8220
8221         * optc-gen.awk: Always remove type from Variable entry before
8222         recording in var_seen.
8223
8224 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
8225
8226         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8227         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8228         call to tidy_fallthru_edges.
8229
8230 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
8231
8232         * doc/options.texi (ToLower): Document.
8233         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8234         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8235         * opts.h (cl_option): Add cl_tolower field.
8236         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8237         arguments with lowercase strings.
8238         * config/rx/rx.opt (mcpu=): Add ToLower.
8239         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8240         argument.
8241
8242 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
8243
8244         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8245
8246 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
8247
8248         * config/vax/vax.c: Include reload.h.
8249
8250 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
8251
8252         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8253         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8254         (sparc_preferred_reload_class): New function.
8255
8256 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
8257
8258         PR debug/48401
8259         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8260         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8261
8262 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
8263
8264         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8265         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8266
8267 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
8268
8269         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8270         (ASM_OUTPUT_ALIGNED_BSS): Define.
8271
8272 2011-04-03  Michael Matz  <matz@suse.de>
8273
8274         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8275         and next_slot members.
8276         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8277         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8278         (lto_streamer_cache_append): Declare.
8279         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8280         unsigned index, remove offset parameter, ensure that we append
8281         or update existing entries.
8282         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8283         parameter, update next_slot for append.
8284         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8285         parameter.
8286         (lto_streamer_cache_insert_at): Likewise.
8287         (lto_streamer_cache_append): New function.
8288         (lto_streamer_cache_lookup): Use unsigned index.
8289         (lto_streamer_cache_get): Likewise.
8290         (lto_record_common_node): Don't test tree_node_can_be_shared.
8291         (preload_common_node): Adjust call to lto_streamer_cache_insert.
8292         (lto_streamer_cache_delete): Don't free offsets member.
8293         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8294         (lto_output_string_with_length): Use lto_output_data_stream.
8295         (lto_output_tree_header): Remove ix parameter, don't write it.
8296         (lto_output_builtin_tree): Likewise.
8297         (lto_write_tree): Adjust callers to above, don't track and write
8298         offset, write unsigned index.
8299         (output_unreferenced_globals): Don't emit all global vars.
8300         (write_global_references): Use unsigned indices.
8301         (lto_output_decl_state_refs): Likewise.
8302         (write_symbol): Likewise.
8303         * lto-streamer-in.c (lto_input_chain): Move earlier.
8304         (input_function): Use unsigned index.
8305         (input_alias_pairs): Don't read and then ignore all global vars.
8306         (lto_materialize_tree): Remove ix_p parameter, don't read index,
8307         don't pass it back, use lto_streamer_cache_append.
8308         (lto_register_var_decl_in_symtab): Use unsigned index.
8309         (lto_register_function_decl_in_symtab): Likewise.
8310         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8311         index.
8312         (lto_get_builtin_tree): Don't read index, use
8313         lto_streamer_cache_append.
8314         (lto_read_tree): Adjust call to lto_materialize_tree.
8315
8316         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8317         don't use function calls in arguments to MIN.
8318
8319         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8320         twice.
8321
8322         * gimple.c (gimple_type_leader_entry): Mark deletable.
8323
8324 2011-04-03  Alan Modra  <amodra@gmail.com>
8325
8326         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8327
8328 2011-04-03  Michael Matz  <matz@suse.de>
8329
8330         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8331         an integer.
8332         * tree.h (tree_decl_non_common.vindex): Adjust comment.
8333
8334 2011-04-03  Michael Matz  <matz@suse.de>
8335
8336         * cgraphbuild.c (record_reference): Canonicalize constructor values.
8337         * gimple-fold.c (canonicalize_constructor_val): Accept being called
8338         without function context.
8339         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8340         current_function_decl and cfun.
8341
8342 2011-04-03  Michael Matz  <matz@suse.de>
8343
8344         * tree.c (decl_init_priority_insert): Don't create entry for
8345         default priority.
8346         (decl_fini_priority_insert): Ditto.
8347         (fields_compatible_p, find_compatible_field): Remove.
8348         * tree.h (fields_compatible_p, find_compatible_field): Remove.
8349         * gimple.c (gimple_compare_field_offset): Adjust block comment.
8350
8351 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8352
8353         * combine.c (try_combine): Remove useless local variable.
8354
8355 2011-04-03  Richard Guenther  <rguenther@suse.de>
8356             Ira Rosen  <ira.rosen@linaro.org>
8357
8358         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8359         non-variable offsets and compare the remaining bases of the two
8360         accesses instead of looking for exact same data-ref.
8361
8362 2011-04-02  Kai Tietz  <ktietz@redhat.com>
8363
8364         PR target/48416
8365         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8366
8367         * i386.c (ix86_is_msabi_thiscall): New helper function.
8368         (ix86_is_type_thiscall): New helper function.
8369         (ix86_comp_type_attributes): Handle thiscall for method-functions
8370         special.
8371         (init_cumulative_args): Likewise.
8372         (find_drap_reg): Likewise.
8373         (ix86_static_chain): Likewise.
8374         (x86_this_parameter): Likewise.
8375         (x86_output_mi_thunk): Likewise.
8376
8377 2011-04-01  Olivier Hainque  <hainque@adacore.com>
8378             Nicolas Setton  <setton@adacore.com>
8379             Eric Botcazou  <ebotcazou@adacore.com>
8380
8381         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8382         (add_gnat_descriptive_type_attribute): New function.
8383         (gen_array_type_die): Call it.
8384         (gen_enumeration_type_die): Likewise.
8385         (gen_struct_or_union_type_die): Likewise.
8386         (modified_type_die): Likewise.
8387         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8388         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8389         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8390
8391 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8392
8393         PR bootstrap/48148
8394         * dwarf2out.c (resolve_addr): Don't call force_decl_die
8395         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8396
8397         Revert:
8398         2011-03-17  Richard Guenther  <rguenther@suse.de>
8399
8400         PR bootstrap/48148
8401         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8402         origin for decls in other ltrans units.
8403         (input_varpool_node): Likewise.
8404
8405 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8406
8407         PR middle-end/48335
8408         * expr.c (expand_assignment): Handle all possibilities
8409         if TO_RTX is CONCAT.
8410         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8411         (store_split_bit_field): If SUBREG_REG (op0) or
8412         op0 itself has smaller mode than word, return it
8413         for offset 0 and const0_rtx for out-of-bounds stores.
8414         If word is const0_rtx, skip it.
8415
8416 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
8417
8418         * config/h8300/h8300.c (print_operand_address): Rename to...
8419         (h8300_print_operand_address): ...this. Make static. Adjust comments.
8420         Call h8300_print_operand and h8300_print_operand_address instead of
8421         print_operand and print_operand_address. Declare.
8422         (print_operand): Renake to...
8423         (h8300_print_operand): ...this. Make static. Adjust comments.
8424         Call h8300_print_operand instead of print_operand. Declare.
8425         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8426         (h8300_register_move_cost): Likewise.
8427         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8428         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8429         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8430         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8431         * config/h8300/h8300-protos.h (print_operand): Delete.
8432         (print_operand_address): Delete.
8433
8434 2011-04-01  Richard Henderson  <rth@redhat.com>
8435
8436         PR 48400
8437         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8438         in strict mode before dwarf4.  Re-order tests to early out
8439         before switching sections.
8440
8441 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
8442
8443         * config/h8300/constraints.md: New file.
8444         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
8445         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8446         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8447         * config/h8300/predicates.md (bit_operand): Likewise.
8448         (incdec_operand): Use satisfies_constraint_M and
8449         satisfies_constraint_O.  Don't use C code block.
8450         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8451         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8452         (compute_mov_length): Use satisfies_constraint_G.
8453         (fix_bit_operand): Use satisfies_constraint_U.
8454         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8455         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8456         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8457         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8458         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8459         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8460         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8461         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8462         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8463         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8464         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8465         (EXTRA_MEMORY_CONSTRAINT): Delete.
8466
8467 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
8468             Michael Meissner  <meissner@linux.vnet.ibm.com>
8469
8470         PR target/48262
8471         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8472         operands, as per the specifications.
8473
8474         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8475         (vec_extract_evenv4sf): Ditto.
8476         (vec_extract_evenv8hi): Ditto.
8477         (vec_extract_evenv16qi): Ditto.
8478         (vec_extract_oddv4si): Ditto.
8479
8480 2011-03-31  Mark Wielaard  <mjw@redhat.com>
8481
8482         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8483         high_pc attribute if the CU has no associated code. Only output
8484         DW_AT_entry_pc for CU if not generating strict dwarf and
8485         dwarf_version < 4.
8486
8487 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
8488
8489         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8490         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8491         out of ...
8492         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8493         * final.c (final_start_function): Call the new function rather
8494         than using a NULL argument for dwarf2out_frame_debug.
8495
8496         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8497         that contains the prologue.
8498
8499         * haifa-sched.c (queue_insn): New arg REASON.  All callers
8500         changed.  Print it in debugging output.
8501
8502         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8503
8504         * sched-ebb.c (begin_schedule_ready): Remove second argument.
8505         Split most of the code into...
8506         (begin_move_insn): ... here.  New function.
8507         (ebb_sched_info): Add a pointer to it.
8508         * haifa-sched.c (scheduled_insns): New static variable.
8509         (sched_extend_ready_list): Allocate it.
8510         (schedule_block): Use it to record the order of scheduled insns.
8511         Perform RTL changes to move insns only after all scheduling
8512         decisions have been made.
8513         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8514         begin_move_insn field.
8515         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8516         * sched-int.h (struct haifa_sched_info): Remove second argument
8517         from begin_schedule_ready hook.  Add new member begin_move_insn.
8518         * sched-rgn.c (begin_schedule_ready): Remove second argument.
8519         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8520
8521         * haifa-sched.c (prune_ready_list): New function, broken out of
8522         schedule_block.
8523         (schedule_block): Use it.
8524
8525 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8526
8527         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8528
8529 2011-04-01  Kai Tietz  <ktietz@redhat.com>
8530
8531         * config.gcc (*-*-mingw*): Allow as option the
8532         posix threading model.
8533         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
8534         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8535         definition.
8536         (CPP_SPEC): Add pthread/no-pthread handling.
8537         (LIB_SPEC): Likewise.
8538         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8539         (LIB_SPEC): Likewise.
8540         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8541         flag to pass -pthread option for shared libgcc build.
8542         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8543         for shared libgcc build.
8544         * config/i386/t-mingw-pthread: New file.
8545         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8546         New define to enable use of library pthread by default.
8547         * config/i386/mingw.opt (pthread): New driver option.
8548         (no-pthread): New driver option.
8549         * config/i386/cygming.opt: Make sure trailing empty line is retained.
8550         * config/i386/mingw-w64.opt: Likewise.
8551
8552 2011-04-01  Gary Funck  <gary@intrepid.com>
8553
8554         * c-decl.c (grokdeclarator): Fix formatting.
8555
8556 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8557
8558         * expr.c (emit_block_move_via_movmem): Use n_generator_args
8559         instead of n_operands.
8560         (set_storage_via_setmem): Likewise.
8561         * optabs.c (maybe_gen_insn): Likewise.
8562         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8563         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8564         (mips_expand_builtin_direct): Likewise.
8565         * config/spu/spu.c (expand_builtin_args): Likewise.
8566
8567 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8568
8569         * recog.h (insn_data_d): Add n_generator_args.
8570         * genoutput.c (data): Likewise.
8571         (output_insn_data): Print it.
8572         (max_opno, num_dups): Delete.
8573         (scan_operands): Just fill in "d->operand[...]".
8574         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8575
8576 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8577
8578         * gensupport.h (pattern_stats): New structure.
8579         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8580         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8581         (max_operand_1, max_operand_vec): Delete.
8582         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8583
8584 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
8585
8586         * emit-rtl.c (emit_pattern_after_setloc): New function.
8587         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8588         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8589         (emit_pattern_after): New function.
8590         (emit_insn_after, emit_jump_insn_after): Call it.
8591         (emit_call_insn_after, emit_debug_insn_after): Likewise.
8592         (emit_pattern_before_setloc): New function.
8593         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8594         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8595         Likewise.
8596         (emit_pattern_before): New function.
8597         (emit_insn_before, emit_jump_insn_before): Call it.
8598         (emit_call_insn_before, emit_debug_insn_before): Likewise.
8599
8600 2011-03-31  Richard Henderson  <rth@redhat.com>
8601
8602         * dwarf2out.c (dw_separate_line_info_ref): Remove.
8603         (dw_separate_line_info_entry): Remove.
8604         (enum dw_line_info_opcode): New.
8605         (dw_line_info_entry): Use it.
8606         (dw_line_info_table, dw_line_info_table_p): New.
8607         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8608         (line_info_table, line_info_label_num): Remove.
8609         (line_info_table_in_use): Remove.
8610         (separate_line_info_table): Remove.
8611         (separate_line_info_table_allocated): Remove.
8612         (separate_line_info_table_in_use): Remove.
8613         (LINE_INFO_TABLE_INCREMENT): Remove.
8614         (line_info_label_num): New.
8615         (cur_line_info_table): New.
8616         (text_section_line_info, cold_text_section_line_info): New.
8617         (separate_line_info): New.
8618         (SEPARATE_LINE_CODE_LABEL): Remove.
8619         (print_dwarf_line_table): Remove.
8620         (debug_dwarf): Don't dump it.
8621         (output_one_line_info_table): New.
8622         (output_line_info): Use it.
8623         (new_line_info_table): New.
8624         (set_cur_line_info_table): New.
8625         (dwarf2out_switch_text_section): Use it.
8626         (dwarf2out_begin_function): Likewise.
8627         (push_dw_line_info_entry): New.
8628         (dwarf2out_source_line): Rewrite for new line info tables.
8629         (dwarf2out_init): Remove dead initailizations.
8630
8631 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8632
8633         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
8634         various flags.
8635         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8636         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8637         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8638         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8639         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8640         * opt-functions.awk (flag_init, switch_bit_fields): New.
8641         (switch_flags): Don't handle flags moved to bit-fields.  Don't
8642         generate CL_MISSING_OK or CL_SAVE.
8643         * optc-gen.awk: Update to generate bit-field output as well as
8644         flags field.
8645         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8646         bit-field instead of CL_REJECT_DRIVER flag.
8647         * opts-common.c (generate_canonical_option,
8648         decode_cmdline_option): Use bit-fields instead of CL_* flags.
8649         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8650         instead of CL_REJECT_NEGATIVE flag.
8651         * toplev.c (print_switch_values): Use cl_report bit-field instead
8652         of CL_REPORT flag.
8653
8654 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8655
8656         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8657         a zero minimum index only if it is redundant.
8658
8659 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
8660
8661         PR rtl-optimization/48381
8662         * ira-color.c (assign_hard_reg): Use hard reg set intersection
8663         instead of ira_class_hard_reg_index for calculating conflicting
8664         hard registers.
8665
8666 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
8667
8668         * cprop.c: Clean up hash table building.
8669         (reg_avail_info): Remove.
8670         (oprs_available_p): Remove.
8671         (record_last_reg_set_info): Remove.
8672         (record_last_set_info): Remove.
8673         (reg_available_p): New function.
8674         (gcse_constant_p): Do not treat unfolded conditions as constants.
8675         (make_set_regs_unavailable): New function.
8676         (hash_scan_set): Simplify with new reg_available_p.
8677         (compute_hash_table_work): Traverse insns stream only once.
8678         Do not compute reg_avail_info. Traverse insns in reverse order.
8679         Record implicit sets after recording explicit sets from the block.
8680
8681 2011-03-31  Michael Matz  <matz@suse.de>
8682
8683         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8684
8685 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
8686
8687         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8688         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8689         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8690         (h8300_mode_dependent_address_p): New function.
8691         (h8300_get_index): Make static.
8692
8693 2011-03-31  Jeff Law  <law@redhat.com>
8694
8695         * reload1.c (elimination_effects): Fix typo in recent change.
8696
8697         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8698         typo potentially leading to null pointer dereference.
8699
8700         * caller-save.c (new_saved_hard_reg): Eliminate return value.
8701         (setup_save_areas): Corresponding changes to avoid useless
8702         assignments.
8703
8704         * jump.c (reversed_comparison_code_parts): Avoid successive return
8705         statements when REVERSE_CONDITION is defined.
8706
8707         * expr.c (expand_assignment): Avoid useless assignments.
8708         (expand_expr_real_1): Likewise.
8709         (expand_expr_real_2): Avoid useless statements.
8710
8711         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8712
8713         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8714
8715         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8716         statements.
8717
8718         * stmt.c (expand_expr_stmt): Avoid useless assignment.
8719
8720 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8721
8722         PR target/47109
8723         * doc/tm.texi.in (TARGET_VERSION): Remove.
8724         * doc/tm.texi: Regenerate.
8725         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8726         * collect2.c (main): Don't use TARGET_VERSION.
8727         * mips-tdump.c (main): Don't use TARGET_VERSION.
8728         * mips-tfile.c (main): Don't use TARGET_VERSION.
8729         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8730         * config/rs6000/vxworksae.h: Remove.
8731         * config/alpha/alpha.h (TARGET_VERSION): Remove.
8732         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8733         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8734         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8735         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8736         * config/arm/arm.h (TARGET_VERSION): Remove.
8737         * config/arm/coff.h (TARGET_VERSION): Remove.
8738         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8739         * config/arm/elf.h (TARGET_VERSION): Remove.
8740         * config/arm/freebsd.h (TARGET_VERSION): Remove.
8741         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8742         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8743         * config/arm/pe.h (TARGET_VERSION): Remove.
8744         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8745         * config/arm/semi.h (TARGET_VERSION): Remove.
8746         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8747         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8748         * config/arm/vxworks.h (TARGET_VERSION): Remove.
8749         * config/avr/avr.h (TARGET_VERSION): Remove.
8750         * config/bfin/bfin.h (TARGET_VERSION): Remove.
8751         * config/fr30/fr30.h (TARGET_VERSION): Remove.
8752         * config/frv/frv.h (TARGET_VERSION): Remove.
8753         * config/h8300/h8300.h (TARGET_VERSION): Remove.
8754         * config/i386/cygwin.h (TARGET_VERSION): Remove.
8755         * config/i386/darwin.h (TARGET_VERSION): Remove.
8756         * config/i386/darwin64.h (TARGET_VERSION): Remove.
8757         * config/i386/djgpp.h (TARGET_VERSION): Remove.
8758         * config/i386/freebsd.h (TARGET_VERSION): Remove.
8759         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8760         * config/i386/gnu.h (TARGET_VERSION): Remove.
8761         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8762         * config/i386/i386elf.h (TARGET_VERSION): Remove.
8763         * config/i386/linux.h (TARGET_VERSION): Remove.
8764         * config/i386/linux64.h (TARGET_VERSION): Remove.
8765         * config/i386/lynx.h (TARGET_VERSION): Remove.
8766         * config/i386/mingw32.h (TARGET_VERSION): Remove.
8767         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8768         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8769         * config/i386/netware.h (TARGET_VERSION): Remove.
8770         * config/i386/nto.h (TARGET_VERSION): Remove.
8771         * config/i386/openbsd.h (TARGET_VERSION): Remove.
8772         * config/i386/vxworks.h (TARGET_VERSION): Remove.
8773         * config/ia64/elf.h (TARGET_VERSION): Remove.
8774         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8775         * config/ia64/hpux.h (TARGET_VERSION): Remove.
8776         * config/ia64/linux.h (TARGET_VERSION): Remove.
8777         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8778         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8779         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8780         * config/lm32/lm32.h (TARGET_VERSION): Remove.
8781         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8782         * config/m32c/m32c.h (TARGET_VERSION): Remove.
8783         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8784         * config/m32r/m32r.h (TARGET_VERSION): Remove.
8785         * config/m68k/linux.h (TARGET_VERSION): Remove.
8786         * config/m68k/m68k.h (TARGET_VERSION): Remove.
8787         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8788         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8789         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8790         * config/mep/mep.h (TARGET_VERSION): Remove.
8791         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8792         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8793         * config/mips/iris6.h (MACHINE_TYPE): Remove.
8794         * config/mips/linux.h (TARGET_VERSION): Remove.
8795         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8796         * config/mips/vxworks.h (TARGET_VERSION): Remove.
8797         * config/mmix/mmix.h (TARGET_VERSION): Remove.
8798         * config/mn10300/linux.h (TARGET_VERSION): Remove.
8799         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8800         * config/pa/pa.h (TARGET_VERSION): Remove.
8801         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8802         * config/picochip/picochip.h (TARGET_VERSION): Remove.
8803         * config/rs6000/aix.h (TARGET_VERSION): Remove.
8804         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8805         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8806         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8807         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8808         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8809         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8810         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8811         * config/rs6000/linux.h (TARGET_VERSION): Remove.
8812         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8813         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8814         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8815         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8816         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8817         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8818         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8819         * config/s390/linux.h (TARGET_VERSION): Remove.
8820         * config/s390/s390.h (TARGET_VERSION): Remove.
8821         * config/s390/tpf.h (TARGET_VERSION): Remove.
8822         * config/score/score.h (TARGET_VERSION): Remove.
8823         * config/sh/linux.h (TARGET_VERSION): Remove.
8824         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8825         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8826         * config/sh/sh.h (TARGET_VERSION): Remove.
8827         * config/sh/sh64.h (TARGET_VERSION): Remove.
8828         * config/sh/superh.h (TARGET_VERSION): Remove.
8829         * config/sh/vxworks.h (TARGET_VERSION): Remove.
8830         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8831         * config/sparc/linux.h (TARGET_VERSION): Remove.
8832         * config/sparc/linux64.h (TARGET_VERSION): Remove.
8833         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8834         TARGET_NAME32, TARGET_NAME): Remove.
8835         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8836         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8837         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8838         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8839         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8840         * config/spu/spu.h (TARGET_VERSION): Remove.
8841         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8842         * config/v850/v850.h (TARGET_VERSION): Remove.
8843         * config/vax/linux.h (TARGET_VERSION): Remove.
8844         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8845         * config/xtensa/elf.h (TARGET_VERSION): Remove.
8846         * config/xtensa/linux.h (TARGET_VERSION): Remove.
8847
8848 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8849
8850         PR target/48142
8851         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8852         frame-related from frame-unrelated adjustments to the stack pointer.
8853
8854 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
8855
8856         * common.opt (fdebug-types-section): Move earlier.
8857         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8858
8859 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
8860
8861         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8862         var.
8863
8864 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
8865
8866         * tree.h (CASE_CHAIN): Define.
8867         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8868         (gimple_redirect_edge_and_branch): Likewise.
8869
8870 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8871
8872         PR middle-end/48367
8873         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8874         calculation.
8875
8876 2011-03-30  Jeff Law  <law@redhat.com>
8877
8878         * PR bootstrap/48371
8879         * reload1.c (reload): Fix botch in last change.
8880
8881         * reload.h (struct reload): Fix typo introduced in last change.
8882
8883 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8884
8885         * config/arm/arm.opt (mhard-float, msoft-float): Mark
8886         Undocumented.  Remove help text.
8887         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8888         -mhard-float.
8889
8890 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8891
8892         * doc/options.texi (NegativeAlias): Document.
8893         (Alias): Mention NegativeAlias.
8894         * opt-functions.awk: Handle NegativeAlias.
8895         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8896         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8897         * opts.h (CL_NEGATIVE_ALIAS): Define.
8898         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8899         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8900         OPT_mspe_.
8901         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8902         Alias entries.
8903         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8904         mno-spe and mno-isel instead of mspe=no and -misel=no.
8905
8906 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8907
8908         * common.opt (fdebug-types-section): New flag.
8909         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8910         * dwarf2out.c (use_debug_types): New define.
8911         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8912         (print_die): Guard output of type unit signatures using
8913         use_debug_types.
8914         (build_abbrev_table): Replace assert of dwarf_version >= 4
8915         with assert on use_debug_types.
8916         (size_of_die): Likewise.
8917         (unmark_dies): Likewise.
8918         (value_format): Decide AT_ref_external form on use_debug_types.
8919         (output_die): Replace dwarf_version version check guard with
8920         use_debug_types where appropriate.
8921         (modified_type_die): Likewise.
8922         (gen_reference_type_die): Likewise.
8923         (dwarf2out_start_source_file): Likewise.
8924         (dwarf2out_end_source_file): Likewise.
8925         (prune_unused_types_walk_attribs): Likewise.
8926         (dwarf2out_finish): Likewise.
8927
8928 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8929
8930         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8931
8932 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8933
8934         PR rtl-optimization/48332
8935         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8936         mode of input operand N and modeN to its actual mode.
8937
8938 2011-03-30  Jeff Law  <law@redhat.com>
8939
8940         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8941         define accessor macro.
8942         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8943         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8944         (reg_equiv_init): Likewise.
8945         (reg_equivs_size): New variable.
8946         (reg_equiv_init_size): Remove.
8947         (allocate_initial_values): Move prototype to here from....
8948         * integrate.h (allocate_initial_values): Remove prototype.
8949         * integrate.c: Include reload.h.
8950         (allocate_initial_values): Corresponding changes.
8951         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8952         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8953         (update_equiv_regs): Corresponding changes.
8954         (ira): Corresponding changes.
8955         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8956         (push_secondary_reload): Corresponding changes.
8957         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8958         (make_memloc, find_reloads_address): Corresponding changes.
8959         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8960         (find_reloads_address_1): Corresponding changes.
8961         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8962         (refers_to_regno_for_reload_p): Corresponding changes.
8963         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8964         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8965         * reload1.c: Include ggc.h.
8966         (grow_reg_equivs): New function.
8967         (replace_pseudos_in, reload): Corresponding changes.
8968         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8969         (eliminate_regs_1, elimination_effects): Corresponding changes.
8970         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8971         (delete_output_reload): Likewise.
8972         * caller-save.c (mark_referenced_regs): Corresponding changes.
8973         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8974         * frv/predicates.md (frv_load_operand): Corresponding changes.
8975         * microblaze/microblaze.c (double_memory_operand): Corresponding
8976         changes.
8977         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8978         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8979         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8980         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8981         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8982         changes.
8983         * pa/pa.c (emit_move_sequence): Corresponding changes.
8984         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8985
8986 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8987
8988         PR target/47551
8989         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8990         structure modes.  Don't check neon_vector_mem_operand for
8991         vector or structure modes.
8992
8993 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8994             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8995
8996         PR target/43590
8997         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8998         operand 1 and reshuffle the operands to match.
8999         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9000
9001 2011-03-30  Christian Schüler  <cschueler@gmx.de>
9002
9003         PR driver/48208
9004         * config/c.opt (F): Added 'Driver' to -F option.
9005
9006         PR driver/48260
9007         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9008           handler function.
9009         * config/darwin.opt: Added '-arch' option.
9010
9011 2011-03-30  Nick Clifton  <nickc@redhat.com>
9012
9013         * config/rx/rx.md: Add peepholes and patterns to combine
9014         extending loads and simple arithmetic instructions.
9015         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9016         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9017         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9018         modes to use pre-decrement and post-increment addressing.
9019         (rx_is_restricted_memory_address): Add range checking of REG+INT
9020         addresses.
9021         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
9022         (rx_memory_move_cost): Adjust cost of stores.
9023         (rx_adjust_insn_length): New function.
9024
9025 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
9026
9027         PR c/48305
9028         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9029         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9030         matching arg00/arg01 types.
9031
9032 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9033
9034         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9035         last_location to UNKNOWN_LOCATION.
9036
9037 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9038
9039         PR target/48349
9040         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9041         FLOAT_SSE_REGS.
9042
9043 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9044             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9045
9046         PR bootstrap/48337
9047         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9048         Init(PROCESSOR_V7).
9049         (sparc_cpu): Likewise.
9050         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9051         PROCESSOR_V7.
9052
9053 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9054
9055         PR target/48336
9056         PR middle-end/48342
9057         PR rtl-optimization/48345
9058         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9059         hard regs for given mode from profitable regs when doing secondary
9060         allocation.
9061
9062 2011-03-29  Jeff Law  <law@redhat.com>
9063
9064         PR bootstrap/48327
9065         * tree-ssa-threadupdate.c (struct redirection_data): Remove
9066         do_not_duplicate field.
9067         (lookup_redirection_data): Corresponding changes.
9068         (create_duplicates): Always create a template block.
9069         (redirect_edges): Remove code which reused the original block
9070         when it was going to become unreachable code.
9071         (thread_block): Don't set do_not_duplicate field.
9072
9073 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
9074
9075         * lto-opts.c (register_user_option_p, lto_register_user_option):
9076         Make type argument unsigned.
9077         * lto-streamer.h (lto_register_user_option): Make type argument
9078         unsigned.
9079         * opth-gen.awk: Make CL_* macros unsigned.
9080         * opts-common.c (find_opt): Make lang_mask argument unsigned.
9081         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9082         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9083         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9084         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9085         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9086         (find_opt): Make lang_mask argument unsigned.
9087
9088 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9089
9090         PR rtl-optimization/48331
9091         PR rtl-optimization/48334
9092         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9093         for any used algorithm.
9094
9095 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9096
9097         * ira-conflicts.c (build_object_conflicts): Add unused attribute
9098         to parent_max.
9099
9100 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
9101
9102         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9103         (alpha_option_override): Don't set alpha_sr_alias_set.
9104         (emit_frame_store_1): Use gen_frame_mem rather than calling
9105         set_mem_alias_set.
9106         (alpha_expand_epilogue): Ditto.
9107
9108 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
9109
9110         PR tree-optimization/48290
9111         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9112         vectorization, check that relevant phis in the basic block after
9113         the inner loop are really inner loop's exit phis.
9114
9115 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
9116
9117         PR debug/48190
9118         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9119         (cached_dw_loc_list_def): New structure.
9120         (cached_dw_loc_list): New typedef.
9121         (cached_dw_loc_list_table): New variable.
9122         (cached_dw_loc_list_table_hash): New function.
9123         (cached_dw_loc_list_table_eq): Likewise.
9124         (add_location_or_const_value_attribute): Take a bool cache_p.
9125         Cache the list when the parameter is true.
9126         (gen_formal_parameter_die): Update caller.
9127         (gen_variable_die): Likewise.
9128         (dwarf2out_finish): Likewise.
9129         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9130         while generating debug info for the decl.
9131         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9132         (dwarf2out_init): Initialize cached_dw_loc_list_table.
9133         (resolve_addr): Cache the result of resolving a chain of
9134         location lists.
9135
9136 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
9137
9138         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9139         conflict object hard regset nodes have intersecting hard reg sets.
9140
9141         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9142         after regstat_init_n_sets_and_refs.
9143
9144         * ira.c: Add more comments at the top.
9145         (setup_stack_reg_pressure_class, setup_pressure_classes):
9146         Add comments how we compute the register pressure classes.
9147         (setup_allocno_and_important_classes): Add more comments.
9148         (setup_class_translate_array, reorder_important_classes)
9149         (setup_reg_class_relations): Add comments.
9150
9151         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
9152         start of the file.
9153
9154         * ira-color.c: Add 2011 to the Copyright line.
9155         (assign_hard_reg):  Add more comments.
9156         (improve_allocation): Ditto.
9157
9158         * ira-costs.c: Add 2011 to the Copyright line.
9159         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9160         comments.
9161         (setup_regno_cost_classes_by_mode): Ditto.
9162
9163         Initial patches from ira-improv branch:
9164
9165         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9166
9167         * ira-build.c (ira_create_object): Remove initialization of
9168         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
9169         (ira_create_allocno): Remove initialization of
9170         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9171         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9172         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9173         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9174         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9175         Initialize ALLOCNO_ADD_DATA.
9176         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9177         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9178         ALLOCNO_REG.
9179         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
9180         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9181
9182         * ira.c (ira_reallocate): Remove.
9183         (setup_pressure_classes): Call
9184         ira_init_register_move_cost_if_necessary.  Use
9185         ira_register_move_cost instead of ira_get_register_move_cost.
9186         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9187         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9188
9189         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9190         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9191         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9192         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9193         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9194         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9195         Fix formatting.
9196         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9197         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9198         (struct allocno_color_data): New.
9199         (allocno_color_data_t): New typedef.
9200         (allocno_color_data): New definition.
9201         (ALLOCNO_COLOR_DATA): New macro.
9202         (struct object_color_data): New.
9203         (object_color_data_t): New typedef.
9204         (object_color_data): New definition.
9205         (OBJECT_COLOR_DATA): New macro.
9206         (update_copy_costs, calculate_allocno_spill_cost): Call
9207         ira_init_register_move_cost_if_necessary.  Use
9208         ira_register_move_cost instead of ira_get_register_move_cost.
9209         (move_spill_restore, update_curr_costs): Ditto.
9210         (allocno_spill_priority): Make it inline.
9211         (color_pass): Allocate and free allocno_color_dat and object_color_data.
9212         (struct coalesce_data, coalesce_data_t): New.
9213         (allocno_coalesce_data): New definition.
9214         (ALLOCNO_COALESCE_DATA): New macro.
9215         (merge_allocnos, coalesced_allocno_conflict_p): Use
9216         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9217         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9218         (coalesce_allocnos): Ditto.
9219         (setup_coalesced_allocno_costs_and_nums): Ditto.
9220         (collect_spilled_coalesced_allocnos): Ditto.
9221         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9222         (setup_slot_coalesced_allocno_live_ranges): Ditto.
9223         (coalesce_spill_slots): Ditto.
9224         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
9225         free allocno_coalesce_data.
9226
9227         * ira-conflicts.c: Fix formatting.
9228         (process_regs_for_copy): Call
9229         ira_init_register_move_cost_if_necessary.  Use
9230         ira_register_move_cost instead of ira_get_register_move_cost.
9231         (build_object_conflicts): Optimize.
9232
9233         * ira-costs.c (record_reg_classes): Optimize.  Call
9234         ira_init_register_move_cost_if_necessary.  Use
9235         ira_register_move_cost, ira_may_move_in_cost, and
9236         ira_may_move_out_cost instead of ira_get_register_move_cost and
9237         ira_get_may_move_cost.
9238         (record_address_regs): Ditto.
9239         (scan_one_insn): Optimize.
9240         (find_costs_and_classes): Optimize.
9241         (process_bb_node_for_hard_reg_moves): Call
9242         ira_init_register_move_cost_if_necessary.  Use
9243         ira_register_move_cost instead of ira_get_register_move_cost.
9244
9245         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9246         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9247         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9248         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9249         definitions.
9250         (ira_initiate_emit_data, ira_finish_emit_data)
9251         (create_new_allocno): New functions.
9252         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9253         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9254         Use ira_register_move_cost instead of ira_get_register_move_cost.
9255
9256         * ira-int.h: Fix some comments.
9257         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9258         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9259         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9260         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
9261         add_data.
9262         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
9263         bitfield after mode.  Make hard_regno a short int.  Make
9264         hard_regno short.  Remove first_coalesced_allocno and
9265         next_coalesced_allocno.  Move mem_optimized_dest_p,
9266         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9267         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
9268         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9269         temp, colorable_p.  Add new member add_data.
9270         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9271         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9272         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9273         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9274         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9275         (ALLOCNO_ADD_DATA): New macro.
9276         (ira_emit_data_t): New typedef.
9277         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
9278         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9279         from struct ira_allocno.
9280         (ALLOCNO_EMIT_DATA): New macro.
9281         (ira_allocno_emit_data, allocno_emit_reg): New.
9282         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9283         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9284         (OBJECT_ADD_DATA): New macro.
9285         (ira_reallocate): Remove.
9286         (ira_initiate_emit_data, ira_finish_emit_data): New.
9287         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9288         (ira_init_register_move_cost_if_necessary): New.
9289         (ira_object_conflict_iter_next): Merge into
9290         ira_object_conflict_iter_cond.
9291         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9292
9293         * ira-live.c (process_single_reg_class_operands): Call
9294         ira_init_register_move_cost_if_necessary.  Use
9295         ira_register_move_cost instead of ira_get_register_move_cost.
9296
9297         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9298
9299         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9300
9301         * ira-costs.c: Fix formatting.
9302         (cost_classes, cost_classes_num): Remove.
9303         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9304         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9305         (cost_classes_del, cost_classes_htab): New.
9306         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9307         (initiate_regno_cost_classes, setup_cost_classes): New.
9308         (setup_regno_cost_classes_by_aclass): New.
9309         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9310         (record_reg_classes): Use regno_cost_classes instead of
9311         cost_classes.  Move checking opposite operand up.
9312         (record_address_regs): Use regno_cost_classes
9313         instead of cost_classes.
9314         (scan_one_insn): Ditto.  Use always general register.
9315         (print_allocno_costs): Use regno_cost_classes instead of
9316         cost_classes.
9317         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
9318         (find_costs_and_classes): Set up cost classes for each registers.
9319         Use also their mode for this.  Use regno_cost_classes instead of
9320         cost_classes.
9321         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9322         cost_classes.
9323         (free_ira_costs, ira_init_costs): Don't use cost_classes.
9324         (ira_costs, ira_set_pseudo_classes): Call
9325         initiate_regno_cost_classes and finish_regno_cost_classes.
9326
9327         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
9328
9329         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9330
9331         * target.def (ira_cover_classes): Remove.
9332
9333         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9334
9335         * doc/tm.texi.in: Ditto.
9336
9337         * ira-conflicts.c: Remove mentioning cover classes from the file.
9338         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
9339         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
9340
9341         * targhooks.c (default_ira_cover_classes): Remove.
9342
9343         * targhooks.h (default_ira_cover_classes): Ditto.
9344
9345         * haifa-sched.c: Remove mentioning cover classes from the file.
9346         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
9347         ira_pressure_classes and ira_pressure_classes_num instead of
9348         ira_reg_class_cover_size and ira_reg_class_cover.  Use
9349         sched_regno_pressure_class instead of sched_regno_cover_class.
9350         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9351         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9352
9353         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
9354         classes from the file.
9355         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9356         (struct object_hard_regs, struct object_hard_regs_node): New.
9357         (struct ira_object): New members profitable_hard_regs,
9358         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9359         (struct ira_allocno): Rename cover_class to aclass.  Rename
9360         cover_class_cost and updated_cover_class_cost to class_cost and
9361         updated_class_cost.  Remove splay_removed_p and
9362         left_conflict_size.  Add new members colorable_p.
9363         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9364         (ALLOCNO_COLORABLE_P): New macro.
9365         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9366         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9367         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9368         (OBJECT_...): Rename parameter C to O.
9369         (OBJECT_PROFITABLE_HARD_REGS): New macro.
9370         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9371         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9372         (struct target_ira_int): New members x_ira_max_memory_move_cost,
9373         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9374         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9375         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9376         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
9377         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
9378         x_ira_reg_class_subunion.
9379         (ira_max_memory_move_cost, ira_max_register_move_cost)
9380         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9381         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9382         (ira_important_class_nums, ira_reg_class_superunion): New macros.
9383         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9384         (ira_reg_class_union): Rename to ira_reg_class_subunion.
9385         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9386         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9387         (ira_tune_allocno_costs_and_cover_classes): Rename to
9388         ira_tune_allocno_costs.
9389         (ira_debug_hard_regs_forest): New.
9390         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9391         (ira_object_conflict_iter_next): Fix comments.
9392         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9393         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9394         cover_class to aclass.
9395         (ira_allocate_and_accumulate_costs): Ditto.
9396         (ira_allocate_and_set_or_copy_costs): Ditto.
9397
9398         * opts.c (decode_options): Remove ira_cover_class check.
9399
9400         * ira-color.c: Remove mentioning cover classes from the file.  Use
9401         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9402         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9403         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9404         (splay-tree.h): Remove include.
9405         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9406         before copy_freq_compare_func.
9407         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9408         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9409         New definitions.
9410         (hard_regs_roots, hard_regs_node_vec): Ditto.
9411         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9412         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9413         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9414         (create_new_object_hard_regs_node): Ditto.
9415         (add_new_object_hard_regs_node_to_forest): Ditto.
9416         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9417         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9418         Ditto.
9419         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9420         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9421         (remove_unused_object_hard_regs_nodes): Ditto.
9422         (enumerate_object_hard_regs_nodes): Ditto.
9423         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9424         (object_hard_regs_subnode_t): Ditto.
9425         (struct object_hard_regs_subnode): Ditto.
9426         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9427         (setup_object_hard_regs_subnode_index): Ditto.
9428         (get_object_hard_regs_subnodes_num): Ditto.
9429         (form_object_hard_regs_nodes_forest): Ditto.
9430         (finish_object_hard_regs_nodes_tree): Ditto.
9431         (finish_object_hard_regs_nodes_forest): Ditto.
9432         (allocnos_have_intersected_live_ranges_p): Rename to
9433         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9434         (pseudos_have_intersected_live_ranges_p): Rename to
9435         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9436         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9437         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9438         (update_copy_costs): Remove assert.  Skip cost update if the hard
9439         reg does not belong the class.
9440         (assign_hard_reg): Process only profitable hard regs.
9441         (uncolorable_allocnos_num): Make it scalar.
9442         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9443         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9444         and ira_reg_class_max_nregs.
9445         (bucket_allocno_compare_func): Check frequency first.
9446         (sort_bucket): Add compare function as a parameter.
9447         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9448         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9449         (push_allocno_to_stack): Rewrite for checking new allocno
9450         colorability.
9451         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
9452         (push_only_colorable): Pass new parameter to sort_bucket.
9453         (push_allocno_to_spill): Remove.
9454         (allocno_spill_priority_compare): Make it inline and rewrite.
9455         (splay_tree_allocate, splay_tree_free): Remove.
9456         (allocno_spill_sort_compare): New function.
9457         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
9458         build and use splay tree.  Choose first allocno in uncolorable
9459         allocno bucket to spill.  Remove setting spill cost.
9460         (all_conflicting_hard_regs): Remove.
9461         (setup_allocno_available_regs_num): Check only profitable hard
9462         regs.  Print info about hard regs nodes.
9463         (setup_allocno_left_conflicts_size): Remove.
9464         (put_allocno_into_bucket): Don't call
9465         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
9466         (improve_allocation): New.
9467         (color_allocnos): Call setup_profitable_hard_regs,
9468         form_object_hard_regs_nodes_forest, improve_allocation,
9469         finish_object_hard_regs_nodes_forest.  Setup spill cost.
9470         (print_loop_title): Use pressure classes.
9471         (color_allocnso): Ditto.
9472         (do_coloring): Remove allocation and freeing splay_tree_node_pool
9473         and allocnos_for_spilling.
9474         (ira_sort_regnos_for_alter_reg): Don't setup members
9475         {first,next}_coalesced_allocno.
9476         (color): Remove allocating and freeing removed_splay_allocno_vec.
9477         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9478         prohibited_class_mode_regs.
9479
9480         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
9481         formatting.
9482         (update_allocno_pressure_excess_length): Use pressure classes.
9483         (inc_register_pressure, dec_register_pressure): Check for pressure
9484         class.
9485         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9486         pressure class.  Use ira_reg_class_nregs instead of
9487         ira_reg_class_max_nregs.
9488         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9489         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9490         (single_reg_class): Use ira_reg_class_nregs instead of
9491         ira_reg_class_max_nregs.
9492         (process_bb_node_lives): Use pressure classes.
9493
9494         * ira-emit.c: Remove mentioning cover classes from the file.  Use
9495         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
9496         (change_loop): Use pressure classes.
9497         (modify_move_list): Call ira_set_allocno_class instead of
9498         ira_set_allocno_cover_class.
9499
9500         * ira-build.c: Remove mentioning cover classes from the file.  Use
9501         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9502         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
9503         ALLOCNO_UPDATED_CLASS_COST instead of
9504         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9505         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9506         (ira_create_allocno): Remove initialization of
9507         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
9508         ALLOCNO_COLORABLE_P.
9509         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9510         Update conflict regs for the objects.
9511         (create_cap_allocno): Remove assert.  Don't propagate
9512         ALLOCNO_AVAILABLE_REGS_NUM.
9513         (ira_free_allocno_costs): New function.
9514         (finish_allocno): Change a part of code into call of
9515         ira_free_allocno_costs.
9516         (low_pressure_loop_node_p): Use pressure classes.
9517         (object_range_compare_func): Don't compare classes.
9518         (setup_min_max_conflict_allocno_ids): Ditto.
9519
9520         * loop-invariant.c: Remove mentioning cover classes from the file.
9521         Use ira_pressure_classes and ira_pressure_classes_num instead of
9522         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
9523         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9524         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9525         Use reg_allocno_class instead of reg_cover_class.
9526         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9527         STACK_REG_COVER_CLASS.
9528         (get_regno_cover_class): Rename to get_regno_pressure_class.
9529         (move_loop_invariants): Initialize and finalize regstat.
9530
9531         * ira.c: Remove mentioning cover classes from the file.  Add
9532         comments about coloring without cover classes.  Use ALLOCNO_CLASS
9533         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
9534         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9535         setup_class_subset_and_memory_move_costs.
9536         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9537         (setup_cover_and_important_classes): Rename to
9538         setup_allocno_and_important_classes.
9539         (setup_class_translate_array): New.
9540         (setup_class_translate): Call it for allocno and pressure classes.
9541         (cover_class_order): Rename to allocno_class_order.
9542         (comp_reg_classes_func): Use ira_allocno_class_translate instead
9543         of ira_class_translate.
9544         (reorder_important_classes): Set up ira_important_class_nums.
9545         (setup_reg_class_relations): Set up ira_reg_class_superunion.
9546         (print_class_cover): Rename to print_classes.  Add parameter.
9547         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9548         Print pressure classes too.
9549         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
9550         setup_reg_subclasses.
9551         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9552         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9553         (setup_prohibited_class_mode_regs): Use
9554         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9555         (clarify_prohibited_class_mode_regs): New function.
9556         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9557         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9558         (ira_init_once): Initialize them.
9559         (free_register_move_costs): Process them.
9560         (ira_init): Move calls of find_reg_classes and
9561         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9562         Call clarify_prohibited_class_mode_regs.
9563         (ira_no_alloc_reg): Remove.
9564         (too_high_register_pressure_p): Use pressure classes.
9565
9566         * sched-deps.c: Remove mentioning cover classes from the file.
9567         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
9568         ira_pressure_classes and ira_pressure_classes_num instead of
9569         ira_reg_class_cover_size and ira_reg_class_cover.
9570         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9571         sched_regno_pressure_class instead of sched_regno_cover_class.
9572         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
9573         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9574
9575         * ira.h: Add 2010 to Copyright.
9576         (ira_no_alloc_reg): Remove external.
9577         (struct target_ira): Rename x_ira_hard_regno_cover_class,
9578         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9579         x_ira_class_translate to x_ira_hard_regno_allocno_class,
9580         x_ira_allocno_classes_num, x_ira_allocno_classes, and
9581         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
9582         x_ira_pressure_classes, x_ira_pressure_class_translate, and
9583         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
9584         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
9585         x_ira_no_alloc_regs.
9586         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9587         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9588         ira_allocno_classes_num and ira_allocno_classes.
9589         (ira_class_translate): Rename to ira_allocno_class_translate.
9590         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9591         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9592         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9593         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9594         (ira_no_alloc_regs): New.
9595
9596         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
9597         classes from the file.  Use ALLOCNO_CLASS instead of
9598         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
9599         ALLOCNO_COVER_CLASS_COST.
9600         (regno_cover_class): Rename to regno_aclass.
9601         (record_reg_classes): Use ira_reg_class_subunion instead of
9602         ira_reg_class_union.
9603         (record_address_regs): Check overflow.
9604         (scan_one_insn): Ditto.
9605         (print_allocno_costs): Print total mem cost fore regional allocation.
9606         (print_pseudo_costs): Use REG_N_REFS.
9607         (find_costs_and_classes): Use classes intersected with them on the
9608         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
9609         ira_reg_class_union.  Use ira_allocno_class_translate and
9610         regno_aclass instead of ira_class_translate and regno_cover_class.
9611         Modify code for finding regno_aclass.  Setup preferred classes for
9612         the next pass.
9613         (setup_allocno_cover_class_and_costs): Rename to
9614         setup_allocno_class_and_costs.  Use regno_aclass instead of
9615         regno_cover_class.  Use ira_set_allocno_class instead of
9616         ira_set_allocno_cover_class.
9617         (init_costs, finish_costs): Use regno_aclass instead of
9618         regno_cover_class.
9619         (ira_costs): Use setup_allocno_class_and_costs instead of
9620         setup_allocno_cover_class_and_costs.
9621         (ira_tune_allocno_costs_and_cover_classes): Rename to
9622         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
9623         by processing objects.  Use ira_reg_class_max_nregs instead of
9624         ira_reg_class_nregs.
9625
9626         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9627
9628         * sched-int.h: Remove mentioning cover classes from the file.
9629         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9630
9631         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
9632         classes from the file.
9633         (struct reg_pref): Rename coverclass into allocnoclass.
9634         (reg_cover_class): Rename to reg_allocno_class.
9635
9636         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9637
9638         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9639
9640         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9641
9642         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9643
9644         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9645
9646         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9647
9648         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9649
9650         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9651
9652         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9653
9654         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9655
9656         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9657         (i386_ira_cover_classes): Ditto.
9658
9659         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9660
9661         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9662
9663         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9664
9665         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9666
9667         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9668
9669         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9670
9671         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9672         (mips_ira_cover_classes): Ditto.
9673
9674         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9675
9676         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9677
9678         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9679
9680         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9681
9682         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9683
9684         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9685         (IRA_COVER_CLASSES_VSX): Ditto.
9686
9687         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9688         (rs6000_ira_cover_classes): Ditto.
9689
9690         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9691
9692         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9693
9694         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9695
9696         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9697
9698         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9699
9700         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9701
9702         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9703
9704         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9705
9706         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9707
9708         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9709
9710 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
9711
9712         PR debug/48253
9713         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9714         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9715         dw_fde_unlikely_section_end_label, cold_in_std_section,
9716         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9717         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9718         fields.
9719         (output_fde): Use dw_fde_second_{begin,end} if second is
9720         true, otherwise dw_fde_{begin,end}.
9721         (output_call_frame_info): Test dw_fde_second_begin != NULL
9722         instead of dw_fde_switched_sections.
9723         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9724         fields, initialize new fields.  Initialize in_std_section
9725         unconditionally from the first partition.
9726         (dwarf2out_end_epilogue): Don't override dw_fde_end when
9727         dw_fde_second_begin is non-NULL.
9728         (dwarf2out_switch_text_section): Stop initializing removed
9729         dw_fde_struct fields, initialize new fields, initialize
9730         also dw_fde_end here.  Set dw_fde_switch_cfi even when
9731         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
9732         (struct var_loc_list_def): Add last_before_switch field.
9733         (arange_table, arange_table_allocated, arange_table_in_use,
9734         ARANGE_TABLE_INCREMENT, add_arange): Removed.
9735         (size_of_aranges): Count !in_std_section and !second_in_std_section
9736         hunks in fdes, instead of looking at arange_table_in_use.
9737         (output_aranges): Add aranges_length argument, don't call
9738         size_of_aranges here.  Instead of using aranges_table*
9739         emit ranges for fdes when !in_std_section resp.
9740         !second_in_std_section.
9741         (dw_loc_list): Break ranges crossing section switch.
9742         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
9743         use dw_fde_second_end instead of dw_fde_end as end of last range.
9744         (gen_subprogram_die): Don't call add_arange.  Use
9745         dw_fde_{begin,end} for first partition and if switched
9746         section dw_fde_second_{begin,end} for the second.
9747         (var_location_switch_text_section_1,
9748         var_location_switch_text_section): New functions.
9749         (dwarf2out_begin_function): Initialize cold_text_section even
9750         when function_section () isn't text_section.
9751         (prune_unused_types): Don't walk arange_table.
9752         (dwarf2out_finish): Don't needlessly test
9753         flag_reorder_blocks_and_partition when testing cold_text_section_used.
9754         If info_section_emitted, call size_of_aranges and if it indicates
9755         non-empty .debug_aranges, call output_aranges with the computed
9756         size.  Stop using removed dw_fde_struct fields, use
9757         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9758         for second.
9759
9760         PR debug/48203
9761         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9762         create ENTRY_VALUE if incoming or address of incoming's MEM
9763         is a hard REG.
9764         * dwarf2out.c (mem_loc_descriptor): Don't emit
9765         DW_OP_GNU_entry_value of DW_OP_fbreg.
9766         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9767         on ENTRY_VALUE is able to find the canonical parameter VALUE.
9768         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9769         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9770         ENTRY_VALUE_EXPs.
9771         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9772         is a REG_P or MEM_P with REG_P address, compute hash directly
9773         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9774         (preserve_only_constants): Don't clear VALUES forwaring
9775         ENTRY_VALUE to some other VALUE.
9776
9777 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
9778
9779         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9780         instead of GEN_INT.
9781
9782 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9783
9784         * cfgexpand.c (expand_gimple_cond): Always set the source location and
9785         block before expanding the statement.
9786         (expand_gimple_stmt_1): Likewise.  Set them here...
9787         (expand_gimple_stmt): ...and not here.  Tidy.
9788         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9789         unknown.
9790
9791 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9792
9793         * Makefile.in: New rule for cprop.o.
9794         * gcse.c: Move constant/copy propagation to cprop.c.
9795         (compute_local_properties): Only handle expression tables.
9796         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9797         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9798         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9799         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9800         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9801         compute_cprop_data, find_used_regs, try_replace_reg,
9802         find_avail_set, cprop_jump, constprop_register, cprop_insn,
9803         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9804         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9805         find_bypass_set, reg_killed_on_edge, bypass_block,
9806         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9807         execute_rtl_cprop, pass_rtl_cprop): Move to...
9808         * cprop.c: ...here.  New file, constant/copy propagation for RTL
9809         moved from gcse.c to here with minor cleanups in duplicated code.
9810
9811 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9812
9813         * config/i386/i386.c (flag_opts): Fix a typo in
9814         -mavx256-split-unaligned-store.
9815
9816 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9817
9818         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9819         LIBCALL_VALUE): Remove macros.
9820         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9821         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9822         (h8300_function_value, h8300_libcall_value,
9823         h8300_function_value_regno_p): New functions.
9824
9825 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9826
9827         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9828
9829 2011-03-28  Jeff Law  <law@redhat.com>
9830
9831         * tree-ssa-threadupdate.c (redirect_edges): Call
9832         create_edge_and_update_destination_phis as needed.
9833         (create_edge_and_update_destination_phis): Accept new BB argument.
9834         All callers updated.
9835         (thread_block): Do not update the profile when threading around
9836         intermediate blocks.
9837         (thread_single_edge): Likewise.
9838         (determine_bb_domination_status): If BB is not a successor of the
9839         loop header, return NONDOMINATING.
9840         (register_jump_thread): Note when we register a jump thread around
9841         an intermediate block.
9842         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9843         (thread_across_edge): Use it.
9844
9845 2011-03-28  Tristan Gingold  <gingold@adacore.com>
9846
9847         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9848         when for_return is 2.
9849
9850 2011-03-28  Jeff Law  <law@redhat.com>
9851
9852         * var-tracking.c (canonicalize_values_mark): Delete unused
9853         lhs assignment.
9854         (canonicalize_values_star, set_variable_part): Likewise.
9855         (clobber_variable_part, delete_variable_part): Likewise.
9856
9857 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9858
9859         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9860
9861 2011-03-28  Martin Jambor  <mjambor@suse.cz>
9862
9863         * tree-inline.c (expand_call_inline): Do not check that destination
9864         node is analyzed.
9865         (optimize_inline_calls): Assert that destination node is analyzed.
9866         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9867         not call tree_lowering_passes.
9868         * cgraph.h (cgraph_analyze_function): Declare.
9869         * cgraphunit.c (cgraph_analyze_function): Make public.
9870
9871 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
9872
9873         * config/sparc/sparc-opts.h: New.
9874         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9875         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9876         (sparc_option_override): Store processor_type enumeration rather
9877         than string in cpu_default.  Remove name and enumeration from
9878         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
9879         without using sparc_select.  Use target_flags_explicit instead of
9880         fpu_option_set.
9881         * config/sparc/sparc.h (enum processor_type): Move to
9882         sparc-opts.h.
9883         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9884         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9885         HeaderInclude entry.
9886         (mcpu=, mtune=): Use Var and Enum.
9887         (sparc_processor_type): New Enum and EnumValue entries.
9888
9889 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9890             Iain Sandoe  <iains@gcc.gnu.org>
9891
9892         PR target/48245
9893         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9894
9895 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9896
9897         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9898         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9899         Insert new statements at it in lieu of STMT.
9900         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9901         * tree-vect-stmts.c (vectorizable_store): Likewise.
9902         (vectorizable_load): Likewise.
9903
9904 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9905
9906         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9907         (divtf3): Ditto.
9908         (multf3): Ditto.
9909         (subtf3): Ditto.
9910
9911 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9912
9913         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9914         unaligned 256bit load/store.
9915         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9916         (*avx_movdqu<avxmodesuffix>): Likewise.
9917
9918 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9919
9920         PR target/48288
9921         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9922         * config/pa/pa.md (iordi3): Use new predicate in expander.
9923         (iorsi3): Likewise.
9924
9925 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9926
9927         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9928         FUNCTION_VALUE_REGNO_P): Remove macros.
9929         * config/mips/mips-protos.h (mips_function_value): Remove.
9930         * config/mips/mips.c (mips_function_value): Rename to...
9931         (mips_function_value_1): ... this. Make static.  Handle receiving
9932         the function type in 'fn_decl_or_type' argument.
9933         (mips_function_value, mips_libcall_value,
9934         mips_function_value_regno_p): New function.
9935         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9936         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9937
9938 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9939
9940         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9941         and -mavx256-split-unaligned-store.
9942         (ix86_option_override_internal): Split 32-byte AVX unaligned
9943         load/store by default.
9944         (ix86_avx256_split_vector_move_misalign): New.
9945         (ix86_expand_vector_move_misalign): Use it.
9946
9947         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9948         -mavx256-split-unaligned-store.
9949
9950         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9951         256bit load/store.  Generate unaligned store on misaligned memory
9952         operand.
9953         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9954         256bit load/store.
9955         (*avx_movdqu<avxmodesuffix>): Likewise.
9956
9957         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9958         -mavx256-split-unaligned-store.
9959
9960 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9961
9962         PR target/38598
9963         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9964         Update commentary.
9965
9966 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9967
9968         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9969         opno arguments with an expand_operand.  Use create_input_operand.
9970         (mips_prepare_builtin_target): Delete.
9971         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9972         functions.
9973         (mips_expand_builtin_direct): Use create_output_operand and
9974         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9975         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9976         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9977
9978 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9979
9980         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9981         function.
9982         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9983
9984 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9985
9986         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9987         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9988         basic blocks and call commit_edge_insertions directly.
9989         (fixup_abnormal_edges): Move from here to...
9990         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9991         on the edges and return whether some have actually been inserted.
9992         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9993         compensation code.
9994
9995 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9996
9997         PR rtl-optimization/48144
9998         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9999         (merge_expr_data): ... here.
10000         (av_set_intersect): Rename to av_set_code_motion_filter.
10001         Update all callers.  Call merge_history_vect when an expression
10002         is found in both sets.
10003         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10004
10005 2011-03-26  Alan Modra  <amodra@gmail.com>
10006
10007         * config/rs6000/predicates.md (word_offset_memref_op): Handle
10008         cmodel medium addresses.
10009         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10010         64-bit gpr loads and stores.
10011         (rs6000_secondary_reload_ppc64): New function.
10012         * config/rs6000/rs6000-protos.h: Declare it.
10013         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10014
10015 2011-03-26  Alan Modra  <amodra@gmail.com>
10016
10017         PR target/47487
10018         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10019         GNU Go in traceback table.
10020
10021 2011-03-25  Richard Henderson  <rth@redhat.com>
10022
10023         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10024         if there are exactly 6 operands.
10025         (set_storage_via_setmem): Similarly.
10026
10027 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10028
10029         * collect2.c (write_c_file_stat): Handle backslash
10030         as right-hand directory separator.
10031         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10032         checking just for slash.
10033         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10034         instead of checking for trailing slash.
10035         * gcc.c (record_temp_file): Use filename_cmp instead
10036         of strcmp.
10037         (do_spec_1): Likewise.
10038         (replace_outfile_spec_function): Likewise.
10039         (is_directory): Use filename_ncmp instead of strncmp.
10040         (print_multilib_info): Likewise.
10041         * gcov.c (find_source): Use filename_cmp instead
10042         instead of strcmp.
10043         (make_gcov_file_name): Fix order of slash/backslash
10044         checks.
10045         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10046         (add_standard_paths): Likewise.
10047         * mips-tfile.c (saber_stop): Handle backslash.
10048         * prefix.c (update_path): Use filename_ncmp instead of
10049         strncmp.
10050         * profile.c (output_location): Use filename_cmp instead
10051         of strcmp.
10052         * read-md.c (handle_toplevel_file): Handle backslash.
10053         * tlink.c (frob_extension):  Likewise.
10054         * tree-cfg.c (same_line_p): Use filename_cmp instead of
10055         strcmp.
10056         * tree-dump.c (dequeue_and_dump): Handle backslash.
10057         * tree.c (get_file_function_name): Likewise.
10058         * gengtype.c (read_input_list): Likewise.
10059         (get_file_realbasename): Likewise.
10060         (get_output_file_with_visibility): Use filename_cmp
10061         instead of strcmp.
10062
10063 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
10064
10065         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10066         case to VFPv1.
10067
10068 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10069
10070         * fold-const.c (expr_location_or): New function.
10071         (fold_truth_not_expr): Call it.
10072
10073 2011-03-25  Jeff Law  <law@redhat.com>
10074
10075         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10076         va_end.
10077         * c-family/c-common.c (def_fn_type): Likewise.
10078         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10079         * emit-rtl.c (gen_rtvec): Likewise.
10080         * lto/lto-lang.c (def_fn_type): Likewise.
10081
10082 2011-03-25  Richard Guenther  <rguenther@suse.de>
10083
10084         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10085         also generate copies.
10086         (fini_copy_prop): Handle constant values properly.
10087
10088 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
10089
10090         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10091         mode size instead of bitsize with DWARF2_ADDR_SIZE.
10092         (hash_loc_operands, compare_loc_operands): Handle
10093         DW_OP_GNU_entry_value.
10094
10095 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10096
10097         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10098         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10099         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10100         comment and use macro TARGET_64BIT_MS_ABI instead.
10101         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10102         and change default behavior for 32-bit MS_ABI.
10103         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10104         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10105         32-bit, too.
10106         (ix86_cfun_abi): Likewise.
10107         (ix86_maybe_switch_abi): Adjust comment.
10108         (init_cumulative_args): Check for bit-ness in MS_ABI case.
10109         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10110         instead of checking for SYSV_ABI.
10111         (ix86_nsaved_sseregs): Likewise.
10112         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10113         to 16 bytes.
10114         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10115         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10116         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10117         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10118         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10119
10120 2011-03-25  Richard Guenther  <rguenther@suse.de>
10121
10122         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10123         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10124         (verify_gimple): Remove.
10125         * tree-cfg.c (verify_gimple_call): Merge verification
10126         from verify_stmts.
10127         (verify_gimple_phi): Merge verification from verify_stmts.
10128         (verify_gimple_label): New function.
10129         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10130         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10131         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10132         (verify_stmts): Rename to verify_gimple_in_cfg.
10133         (verify_gimple_in_cfg): New function.
10134         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10135         * tree-ssa.c (verify_ssa): Likewise.
10136         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10137
10138 2011-03-25  Richard Guenther  <rguenther@suse.de>
10139
10140         * passes.c (init_optimization_passes): Add FRE pass after
10141         early SRA.
10142
10143 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
10144             Andrew Stubbs  <ams@codesourcery.com>
10145
10146         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10147         for Cortex-A8.
10148         (arm_movdi_vfp_cortexa8): New pattern.
10149         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10150         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10151         instructions when tuning for Cortex-A8.  Set attribute "arch".
10152         * config/arm/arm.md: Move include arm-tune.md up a bit.
10153         (define_attr "arch"): Add "onlya8" and "nota8" values.
10154         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10155
10156 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10157
10158         PR bootstrap/48282
10159         Revert:
10160         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10161
10162         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10163         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10164         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10165         * passes.c (init_optimization_passes): Move
10166         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10167
10168 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10169
10170         * c-typeck.c (comptypes_internal): Replace target
10171         hook call of comp_type_attributes by version in tree.c file.
10172         * gimple.c (gimple_types_compatible_p_1): Likewise.
10173         * tree-ssa.c (useless_type_conversion_p): Likewise.
10174         * tree.c (build_type_attribute_qual_variant): Likewise.
10175         (attribute_value_equal): New static helper function.
10176         (comp_type_attributes): New function.
10177         (merge_attributes): Use attribute_value_equal for comparison.
10178         (attribute_list_contained): Likewise.
10179         * tree.h (comp_type_attributes): New prototype.
10180
10181 2011-03-25  Richard Guenther  <rguenther@suse.de>
10182
10183         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10184         of complex types at -O0.
10185         (verify_gimple_assign_binary): Likewise.
10186         (verify_gimple_assign_ternary): Likewise.
10187
10188 2011-03-24  Mark Wielaard  <mjw@redhat.com>
10189
10190         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10191         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10192
10193 2011-03-24  Mark Wielaard  <mjw@redhat.com>
10194
10195         PR debug/48041
10196         * dwarf2out.c (output_abbrev_section): Only write table when
10197         abbrev_die_table_in_use > 1.
10198
10199 2011-02-24  Richard Henderson  <rth@redhat.com>
10200
10201         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10202         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10203         (alpha_expand_unaligned_load_words): Use extql.
10204         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10205         (emit_insxl): Handle all modes for consistency.
10206
10207 2011-02-24  Richard Henderson  <rth@redhat.com>
10208
10209         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10210         (alpha_expand_unaligned_load): Likewise.
10211         (alpha_expand_unaligned_store): Likewise.
10212         (alpha_expand_unaligned_load_words): Likewise.
10213         (alpha_expand_unaligned_store_words): Likewise.
10214         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10215         (alpha_split_lock_test_and_set_12): Likewise.
10216         (print_operand, alpha_fold_builtin_extxx): Likewise.
10217         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10218         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10219         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10220         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10221         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10222         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10223         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10224         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10225         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10226         (extwl, extll, extql): Similarly.
10227         (inswh, inslh, insqh): Similarly.
10228         (mskbl, mskwl, mskll, mskql): Similarly.
10229         (mskwh, msklh, mskqh): Similarly.
10230
10231 2011-02-24  Richard Henderson  <rth@redhat.com>
10232
10233         * config/alpha/alpha.md (attribute isa): Add er, ner.
10234         (attribute enabled): Handle them.
10235         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10236
10237 2011-02-24  Richard Henderson  <rth@redhat.com>
10238
10239         * config/alpha/alpha.md (attribute isa): Add vms.
10240         (attribute enabled): Handle it.
10241         (*movsf): Merge *movsf_{nofix,fix,nofp}.
10242         (*movdf): Merge *movdf_{nofix,fix,nofp}.
10243         (*movtf): Rename from *movtf_internal for consistency.
10244         (*movsi): Merge with *movsi_nt_vms.
10245         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10246         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10247         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10248         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10249
10250 2011-02-24  Richard Henderson  <rth@redhat.com>
10251
10252         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10253         (extendqisi2, extendhisi2): Likewise.
10254         (extendqidi2): Simplify BWX/non-BWX expansions.
10255         (extendhidi2): Similarly.
10256
10257 2011-02-24  Richard Henderson  <rth@redhat.com>
10258
10259         * config/alpha/alpha.md (attribute isa): New.
10260         (attribute enabled): New.
10261         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10262         (zero_extendqisi2, zero_extendqidi2): Similarly.
10263         (zero_extendhisi2, zero_extendhidi2): Similarly.
10264         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10265
10266 2011-02-24  Richard Henderson  <rth@redhat.com>
10267
10268         * config/alpha/predicates.md (input_operand): Revert last change;
10269         update comment to mention 32-bit VMS rather than Windows.
10270
10271 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10272
10273         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10274         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10275         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10276         * passes.c (init_optimization_passes): Move
10277         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10278
10279 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10280
10281         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10282
10283 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10284
10285         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10286         correctly.
10287
10288 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
10289
10290         PR debug/48204
10291         * simplify-rtx.c (simplify_const_unary_operation): Call
10292         real_convert when changing mode class with FLOAT_EXTEND.
10293
10294 2011-03-24  Nick Clifton  <nickc@redhat.com>
10295
10296         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10297         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10298         * config/rx/rx.c (rx_option_override): Set align_jumps,
10299         align_loops and align_labels if not set by the user.
10300         (rx_align_for_label): New function.
10301         (rx_max_skip_for_label): New function.
10302         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10303         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10304         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10305         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10306         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10307
10308 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10309
10310         PR rtl-optimization/48263
10311         * optabs.c (expand_binop_directly): Reinstate convert_modes code
10312         and original commutative_p handling.  Use maybe_gen_insn.
10313
10314 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10315
10316         * reload.c (find_reloads_subreg_address): Add address_reloaded
10317         parameter and return true there if the full address has been
10318         reloaded.
10319         (find_reloads_toplev): Pass address_reloaded flag.
10320         (find_reloads_address_1): Don't use address_reloaded parameter.
10321
10322 2011-03-24  Jeff Law  <law@redhat.com>
10323
10324         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10325         unused variable "ann".
10326         (remove_unused_locals): Likewise.
10327
10328         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10329         statement.
10330
10331         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10332         after it is freed.
10333
10334 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10335
10336         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10337         for invalid symbolic addresses.
10338         (s390_secondary_reload): Don't use s390_check_symref_alignment for
10339         larl operands.
10340
10341 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10342
10343         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10344         the argument in calls to fold_truth_not_expr.
10345
10346 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10347
10348         * tree.c (record_node_allocation_statistics): New function.
10349         (make_node_stat, copy_node_stat, build_string): Call it.
10350         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10351         (build1_stat, build_omp_clause): Likewise.
10352
10353 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10354
10355         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10356         last commit.
10357
10358 2011-03-24  Richard Guenther  <rguenther@suse.de>
10359
10360         PR tree-optimization/48271
10361         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10362         blocks that still exist.
10363
10364 2011-03-24  Richard Guenther  <rguenther@suse.de>
10365
10366         PR tree-optimization/48270
10367         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10368         not free datarefs before ddrs.
10369
10370 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10371
10372         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10373         from the address built for a reference with variable offset.
10374
10375 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10376
10377         PR target/48237
10378         * config/i386/i386.md (*movdf_internal_rex64): Do not split
10379         alternatives that can be handled with movq or movabsq insn.
10380         (*movdf_internal): Disable for !TARGET_64BIT.
10381         (*movdf_internal_nointeger): Ditto.
10382         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10383
10384 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10385
10386         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10387         (FUNCTION_ARG_ADVANCE): Likewise.
10388         * tm.texi.in: Change references to them to hook references.
10389         * tm.texi: Regenerate.
10390         * targhooks.c (default_function_arg): Eliminate check for target macro.
10391         (default_function_incoming_arg): Likewise.
10392         (default_function_arg_advance): Likewise.
10393         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10394         (function_arg_advance): Likewise.
10395         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10396
10397 2011-03-24  Richard Guenther  <rguenther@suse.de>
10398
10399         PR middle-end/48269
10400         * tree-object-size.c (addr_object_size): Do not double-account
10401         for MEM_REF offsets.
10402
10403 2011-03-24  Diego Novillo  <dnovillo@google.com>
10404
10405         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10406         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10407         (lto_input_data_block): Move from lto-opts.c.  Make extern.
10408         Update all users.
10409         (lto_input_string): Rename from input_string.  Make extern.
10410         Update all users.
10411         * lto-streamer-out.c (lto_output_string_with_length): Rename from
10412         output_string_with_length.
10413         Output 0 to indicate a non-NULL string.  Update all callers to
10414         not emit 0.
10415         (lto_output_string): Rename from output_string.  Make extern.
10416         Update all users.
10417         (lto_output_decl_state_streams): Make extern.
10418         (lto_output_decl_state_refs): Make extern.
10419         * lto-streamer.h (lto_input_string): Declare.
10420         (lto_input_data_block): Declare.
10421         (lto_output_string): Declare.
10422         (lto_output_string_with_length): Declare.
10423         (lto_output_decl_state_streams): Declare.
10424         (lto_output_decl_state_refs): Declare.
10425
10426 2011-03-24  Richard Guenther  <rguenther@suse.de>
10427
10428         PR tree-optimization/46562
10429         * tree.c (build_invariant_address): New function.
10430         * tree.h (build_invariant_address): Declare.
10431         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10432         a renamed function moved ...
10433         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10434         Take valueization callback parameter.
10435         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10436         * gimple-fold.h: New file.
10437         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10438         (ccp_fold, fold_const_aggregate_ref,
10439         fold_ctor_reference, fold_nonarray_ctor_reference,
10440         fold_array_ctor_reference, fold_string_cst_ctor_reference,
10441         get_base_constructor): Move ...
10442         * gimple-fold.c: ... here.
10443         (gimple_fold_stmt_to_constant_1): New function
10444         split out from ccp_fold.  Take a valueization callback parameter.
10445         Valueize all operands.
10446         (gimple_fold_stmt_to_constant): New wrapper function.
10447         (fold_const_aggregate_ref_1): New function split out from
10448         fold_const_aggregate_ref.  Take a valueization callback parameter.
10449         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10450         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10451         invariant POINTER_PLUS_EXPRs to invariant form.
10452         (vn_valueize): New function.
10453         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10454         * tree-vrp.c (vrp_valueize): New function.
10455         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10456         to fold statements to constants.
10457         * tree-ssa-pre.c (eliminate): Properly guard propagation of
10458         function declarations.
10459         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10460         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10461
10462 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10463
10464         * config/h8300/predicates.md (jump_address_operand): Fix register
10465         mode check.
10466
10467 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
10468
10469         * doc/invoke.texi (max-stores-to-sink): Document.
10470         * params.h (MAX_STORES_TO_SINK): Define.
10471         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10472         if either vectorization or if-conversion is disabled.
10473         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10474         tree-vect-data-refs.c vect_equal_offsets.
10475         (dr_equal_offsets_p): New function.
10476         (find_data_references_in_bb): Remove static.
10477         * tree-data-ref.h (find_data_references_in_bb): Declare.
10478         (dr_equal_offsets_p): Likewise.
10479         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10480         (vect_drs_dependent_in_basic_block): Update calls to
10481         vect_equal_offsets.
10482         (vect_check_interleaving): Likewise.
10483         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10484         (cond_if_else_store_replacement): Rename to...
10485         (cond_if_else_store_replacement_1): ... this.  Change arguments and
10486         documentation.
10487         (cond_if_else_store_replacement): New function.
10488         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10489         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10490
10491 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
10492
10493         PR target/46934
10494         * config/arm/arm.md (casesi): Use the gen_int_mode() function
10495         to subtract lower bound instead of GEN_INT().
10496
10497 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
10498
10499         PR other/48179
10500         PR other/48221
10501         PR other/48234
10502         * doc/extend.texi (Alignment): Move section to match order in TOC.
10503         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10504         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10505
10506 2011-03-23  Jeff Law  <law@redhat.com>
10507
10508         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10509         before removing the edge.
10510
10511         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10512         it may have been freed by redirect_branch_edge or
10513         redirect_edge_succ_nodup.
10514
10515 2011-03-23  Richard Guenther  <rguenther@suse.de>
10516
10517         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10518         (check_va_list_escapes): Likewise.
10519         (check_all_va_list_escapes): Likewise.
10520
10521 2011-03-23  Richard Guenther  <rguenther@suse.de>
10522
10523         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10524         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10525         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10526         (alias.o): Likewise.
10527         (ipa-type-escape.o): Remove.
10528         (ipa-struct-reorg.o): Likewise.
10529         (GTFILES): Remove ipa-struct-reorg.c.
10530         * alias.c: Do not include ipa-type-escape.h.
10531         * tree-ssa-alias.c: Likewise.
10532         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10533         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10534         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10535         and ipa-type-escape passes.
10536         * tree-pass.h (pass_ipa_type_escape): Remove.
10537         (pass_ipa_struct_reorg): Likewise.
10538         * ipa-struct-reorg.h: Remove.
10539         * ipa-struct-reorg.c: Likewise.
10540         * ipa-type-escape.h: Likewise.
10541         * ipa-type-escape.c: Likewise.
10542         * doc/invoke.texi (-fipa-struct-reorg): Remove.
10543         (--param struct-reorg-cold-struct-ratio): Likewise.
10544         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10545         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10546         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10547
10548 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10549
10550         * config/s390/2084.md: Enable all insn reservations also for z9_ec
10551         cpu attribute value.
10552         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10553         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10554         * config/s390/s390.c (processor_flags_table): New constant array.
10555         (s390_handle_arch_option): Remove.
10556         (s390_handle_option): Remove s390_handle_arch_option invocations
10557         and OPT_mwarn_framesize_ handling.
10558         (s390_option_override): Remove s390_handle_arch_option invocation.
10559         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10560         warnings.
10561         * config/s390/s390.md (cpu attribute): Add z9_ec value.
10562         * config/s390/s390.opt (s390_tune, s390_arch)
10563         (march=): Replace s390_arch_option enum and values with
10564         processor_type.  Set variable name to s390_arch.  Set
10565         initialization value.
10566         (mtune=): Replace s390_arch_option with processor_type.  Set
10567         variable name to s390_tune.  Set initialization value.
10568
10569 2011-03-23  Julian Brown  <julian@codesourcery.com>
10570
10571         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10572         accesses which are not naturally aligned.
10573
10574 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
10575
10576         PR target/47553
10577         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10578
10579 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
10580
10581         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10582         parameter from "int" to "enum insn_code".
10583         (expand_operand_type): New enum.
10584         (expand_operand): New structure.
10585         (create_expand_operand): New function.
10586         (create_fixed_operand, create_output_operand): Likewise
10587         (create_input_operand, create_convert_operand_to): Likewise.
10588         (create_convert_operand_from, create_address_operand): Likewise.
10589         (create_integer_operand): Likewise.
10590         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10591         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10592         (expand_insn, expand_jump_insn): Likewise.
10593         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10594         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10595         (expand_movstr, expand_builtin___clear_cache): Likewise.
10596         (expand_builtin_lock_release): Likewise.
10597         * explow.c (allocate_dynamic_stack_space): Likewise.
10598         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
10599         and use the default handling in that case.
10600         * expmed.c (check_predicate_volatile_ok): Delete.
10601         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10602         (emit_cstore): Likewise.
10603         * expr.c (emit_block_move_via_movmem): Likewise.
10604         (set_storage_via_setmem, expand_assignment): Likewise.
10605         (emit_storent_insn, try_casesi): Likewise.
10606         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
10607         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10608         (expand_vec_shift_expr, expand_binop_directly): Likewise.
10609         (expand_twoval_unop, expand_twoval_binop): Likewise.
10610         (expand_unop_direct, emit_indirect_jump): Likewise.
10611         (emit_conditional_move, vector_compare_rtx): Likewise.
10612         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10613         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10614         (expand_sync_lock_test_and_set): Likewise.
10615         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
10616         (emit_unop_insn): Likewise.
10617         (expand_copysign_absneg): Change icode to an insn_code.
10618         (create_convert_operand_from_type): New function.
10619         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10620         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10621         (expand_insn, expand_jump_insn): Likewise.
10622         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10623         than const_int_operand for operand 2.
10624
10625 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10626
10627         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10628         if possible.
10629
10630 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10631
10632         * emit-rtl.c (emit_pattern_before_noloc): New function.
10633         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10634         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10635         (emit_pattern_after_noloc): New function.
10636         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10637         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10638
10639 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10640
10641         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10642         (__ffsDI2): Likewise.
10643
10644 2011-03-22  Richard Henderson  <rth@redhat.com>
10645
10646         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10647         of !TARGET_ABI_OPEN_VMS.
10648         (alpha_trampoline_init, alpha_start_function): Likewise.
10649         (alpha_expand_epilogue, alpha_file_start): Likewise.
10650         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10651         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10652         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10653         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10654         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10655
10656 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10657
10658         * config/s390/s390-opts.h: New.
10659         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10660         s390_arch_flags, s390_warn_framesize, s390_stack_size,
10661         s390_stack_guard): Remove.
10662         (s390_handle_arch_option): Return void.  Take enum
10663         s390_arch_option value instead of string and searching array.
10664         (s390_handle_option): Don't assert that global structures are in
10665         use.  Access variables via opts pointer.  Use error_at.  Don't use
10666         sscanf for -mstack-guard= or -mstack-size=.  Update call to
10667         s390_handle_arch_option.
10668         (s390_option_override): Update call to s390_handle_arch_option.
10669         (s390_emit_prologue): Use %d format for s390_stack_size in
10670         diagnostic.  Use %wd for HOST_WIDE_INT.
10671         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10672         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10673         * config/s390/s390.opt (config/s390/s390-opts.h): New
10674         HeaderInclude entry.
10675         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10676         s390_arch_flags, s390_warn_framesize): New Variable entries.
10677         (s390_arch_option): New Enum and EnumValue entries.
10678         (march=): Use Enum instead of Var.
10679         (mstack-guard=, mstack-size=): Use UInteger and Var.
10680         (mtune=): Use Enum.
10681
10682 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10683
10684         * config/score/score.c (score_handle_option): Don't assert that
10685         global structures are in use.  Access target_flags via opts
10686         pointer.  Use value of -march= option to determine target_flags
10687         settings.
10688         * config/score/score.opt (march=): Use Enum.
10689         (score_arch): New Enum and EnumValue entries.
10690
10691 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10692
10693         * config/mep/mep.c (option_mtiny_specified): Remove.
10694         (mep_option_override): Move register handling for -mivc2 from
10695         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
10696         instead of option_mtiny_specified.
10697         (mep_handle_option): Access target_flags via opts pointer.  Don't
10698         assert that global structures are in use.  Defer part of -mivc2
10699         handling and move it to mep_option_override.
10700         * config/mep/mep.opt (IVC2): New Mask entry.
10701         (mivc2): Use Var and Defer instead of Mask.
10702
10703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10704
10705         * config/v850/v850-opts.h: New.
10706         * config/v850/v850.c (small_memory): Replace with
10707         small_memory_physical_max array.  Make that array static const.
10708         (v850_handle_memory_option): Take integer value of argument.  Take
10709         gcc_options pointer, option text and location.  Return void.
10710         Update for changes to small memory structures.
10711         (v850_handle_option): Access target_flags via opts pointer.  Don't
10712         assert that global structures are in use.  Update calls to
10713         v850_handle_memory_option.
10714         (v850_encode_data_area): Update references to small memory settings.
10715         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10716         (enum small_memory_type): Move to v850-opts.h.
10717         * config/v850/v850.opt (config/v850/v850-opts.h): New
10718         HeaderInclude entry.
10719         (small_memory_max): New Variable entry.
10720         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
10721         (mtda, mzda): Likewise.
10722
10723 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10724
10725         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10726         pointer.  Don't assert that global structures are in use.
10727
10728 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10729
10730         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10731         via opts pointer.  Don't assert that global structures are in use.
10732
10733 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10734
10735         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10736         (munix=93): Use Var.
10737         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10738         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10739         * config/pa/pa-opts.h: New.
10740         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10741         (pa_handle_option): Don't assert that global structures are in
10742         use.  Access target_flags via opts pointer.  Don't handle
10743         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10744         OPT_munix_98 here.
10745         (pa_option_override): Handle deferred OPT_mfixed_range_.
10746
10747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10748
10749         * config/mn10300/mn10300-opts.h: New.
10750         * config/mn10300/mn10300.c (mn10300_processor,
10751         mn10300_tune_string): Remove.
10752         (mn10300_handle_option): Don't assert that global structures are
10753         in use.  Access mn10300_processor via opts pointer.  Don't handle
10754         OPT_mtune_ here.
10755         * config/mn10300/mn10300.h (enum processor_type): Move to
10756         mn10300-opts.h.
10757         (mn10300_processor): Remove.
10758         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10759         HeaderInclude entry.
10760         (mn10300_processor): New Variable entry.
10761         (mtune=): Use Var.
10762
10763 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10764
10765         * config/microblaze/microblaze.c: Don't include opts.h.
10766         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10767         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10768         (mno-clearbss): Use Var and Warn.
10769
10770 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10771
10772         * config/m32r/m32r-opts.h: New.
10773         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10774         (m32r_handle_option): Don't assert that global structures are in
10775         use.  Access target_flags and m32r_cache_flush_func via opts
10776         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
10777         OPT_mno_flush_trap here.
10778         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10779         include of m32r-opts.h.
10780         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10781         HeaderInclude entry.
10782         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10783         (mmodel=): Use Enum and Var.
10784         (m32r_model): New Enum and EnumValue entries.
10785         (mno-flush-trap): Use Var.
10786         (msdata=): Use Enum and Var.
10787         (m32r_sdata): New Enum and EnumValue entries.
10788
10789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10790
10791         * config/m32c/m32c.c: Don't include opts.h.
10792         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10793         m32c_handle_option): Remove.
10794         (m32c_option_override): Check global_options_set.x_target_memregs
10795         instead of target_memregs_set.
10796         * config/m32c/m32c.h (target_memregs): Remove.
10797         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10798         variable.
10799
10800 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10801
10802         * config/iq2000/iq2000-opts.h: New.
10803         * config/iq2000/iq2000.c: Don't include opts.h.
10804         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10805         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10806         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10807         HeaderInclude entry.
10808         (iq2000_tune): New Variable entry.
10809         (march=): Add comment.  Use Enum.
10810         (iq2000_arch): New Enum and EnumValue entries.
10811         (mcpu=): Use Enum and Var.
10812         (iq2000_tune): New Enum and EnumValue entries.
10813
10814 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10815
10816         * config/ia64/ia64-opts.h: New.
10817         * config/ia64/ia64.c (ia64_tune): Remove.
10818         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10819         here.  Use error_at.
10820         (ia64_option_override): Handle deferred OPT_mfixed_range_.
10821         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10822         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10823         HeaderInclude entry.
10824         (ia64_tune): New Variable entry.
10825         (mfixed-range=): Use Defer and Var.
10826         (mtune=): Use Enum and Var.
10827         (ia64_tune): New Enum and EnumValue entries.
10828
10829 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10830
10831         * config/frv/frv-opts.h: New.
10832         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10833         frv-opts.h.
10834         (frv_cpu_type): Remove.
10835         * config/frv/frv.c: Don't include opts.h.
10836         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10837         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10838         (frv_cpu_type): New Variable entry.
10839         (frv_cpu): New Enum and EnumValue entries.
10840
10841 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10842
10843         * config/cris/cris.c (cris_handle_option): Access target_flags via
10844         opts pointer.  Don't assert that global structures are in use.
10845         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10846         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10847
10848 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10849
10850         * config/bfin/bfin-opts.h: New.
10851         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10852         bfin_si_revision, bfin_workarounds): Remove.
10853         (bfin_cpus): Make static const.
10854         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10855         not bfin_lib_id_given.
10856         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
10857         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10858         pointer. Use error_at.  Don't assert that global structures are in use.
10859         * config/bfin/bfin.h: Include bfin-opts.h.
10860         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10861         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10862         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10863         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10864         entries.
10865
10866 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10867
10868         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10869         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10870         or -msoft-float here.
10871         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10872         -msoft-float and -mhard-float.
10873         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10874         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10875         msoft-float.
10876         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10877         -msoft-float.
10878         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10879         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10880         not mhard-float.
10881         (LIBGCC_SPEC): Don't handle -msoft-float.
10882         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10883         -mhard-float.
10884         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10885         msoft-float.
10886         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10887         -mfloat-abi=*, not -msoft-float and -mhard-float.
10888         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10889         -msoft-float.
10890         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10891         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10892         mhard-float and msoft-float.
10893         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10894         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10895         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10896         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10897         mhard-float.
10898         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10899         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10900         msoft-float.
10901         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10902         not mhard-float.
10903         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10904         not msoft-float.
10905
10906 2011-03-22  Richard Henderson  <rth@redhat.com>
10907
10908         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10909         TARGET_ABI_WINDOWS_NT.
10910         (alpha_output_function_end_prologue): Likewise.
10911         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10912         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10913         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10914         (trap, *movsi_nt_vms): Likewise.
10915         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10916         (*tablejump_osf_nt_internal): Remove.
10917         * config/alpha/predicates.md (input_operand): Only test Pmode.
10918
10919 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10920
10921         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10922         via opts pointer.  Use error_at.  Don't assert that global
10923         structures are in use.
10924
10925 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10926
10927         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10928         (ix86_handle_option): Access ix86_isa_flags and
10929         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10930         global structures are in use.
10931         (ix86_function_specific_save, ix86_function_specific_restore):
10932         Update ix86_isa_flags_explicit field name.
10933         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10934         (ix86_isa_flags_explicit): Rename TargetSave entry to
10935         x_ix86_isa_flags_explicit.
10936
10937 2011-03-22  Richard Henderson  <rth@redhat.com>
10938
10939         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10940         (alpha_option_override, direct_return): Likewise.
10941         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10942         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10943         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10944         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10945         (alpha_expand_epilogue, alpha_end_function): Likewise.
10946         (alpha_init_libfuncs): Likewise.
10947         (struct machine_function): Remove unicosmk members.
10948         (print_operand) ['t']: Remove.
10949         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10950         unicosmk_output_module_name, unicosmk_output_common,
10951         current_section_align, unicosmk_output_text_section_asm_op,
10952         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10953         unicosmk_section_type_flags, unicosmk_unique_section,
10954         unicosmk_asm_named_section, unicosmk_insert_attributes,
10955         unicosmk_output_align, unicosmk_defer_case_vector,
10956         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10957         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10958         unicosmk_output_ssib, unicosmk_add_call_info_word,
10959         unicosmk_extern_head, unicosmk_output_default_externs,
10960         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10961         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10962         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10963         * config/alpha/alpha-protos.h: Update.
10964         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10965         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10966         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10967         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10968         (*mulsi_se, mulvsi3): Likewise.
10969         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10970         (*divmodsi_internal, call, call_value, realign): Likewise.
10971         (moddi3, umoddi3): Likewise; remove duplicate expander.
10972         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10973         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10974         (*movdi_nofix): Remove r/U alternative.
10975         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10976         * config/alpha/constraints.md ("U"): Remove.
10977         * config/alpha/predicates.md (call_operand"): Don't test
10978         TARGET_ABI_UNICOSMK.
10979
10980 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10981
10982         * target.def (handle_option): Take gcc_options and
10983         cl_decoded_option pointers and location_t.
10984         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10985         * doc/tm.texi: Regenerate.
10986         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10987         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10988         * lto-opts.c (lto_reissue_options): Generate option structure for
10989         targetm.handle_option call.
10990         * opts.c (target_handle_option): Update call to
10991         targetm.handle_option.  Remove assertions about values now passed
10992         down to hook.
10993         * targhooks.c (default_target_handle_option): New.
10994         * targhooks.h (default_target_handle_option): Declare.
10995         * config/alpha/alpha.c: Include opts.h.
10996         (alpha_handle_option): Update to new hook interface.
10997         * config/arm/arm.c: Include opts.h.
10998         (arm_handle_option): Update to new hook interface.
10999         * config/arm/t-arm (arm.o): Update dependencies.
11000         * config/bfin/bfin.c: Include opts.h.
11001         (bfin_handle_option): Update to new hook interface.
11002         * config/cris/cris.c: Include opts.h.
11003         (cris_handle_option): Update to new hook interface.
11004         * config/frv/frv.c: Include opts.h.
11005         (frv_handle_option): Update to new hook interface.
11006         * config/i386/i386.c: Include opts.h.
11007         (ix86_handle_option): Update to new hook interface.
11008         (ix86_valid_target_attribute_inner_p): Generate option structure
11009         for call to ix86_handle_option.
11010         * config/i386/t-i386 (i386.o): Update dependencies.
11011         * config/ia64/ia64.c: Include opts.h.
11012         (ia64_handle_option): Update to new hook interface.
11013         * config/ia64/t-ia64 (ia64.o): Update dependencies.
11014         * config/iq2000/iq2000.c: Include opts.h.
11015         (iq2000_handle_option): Update to new hook interface.
11016         * config/m32c/m32c.c: Include opts.h.
11017         (m32c_handle_option): Update to new hook interface.
11018         * config/m32r/m32r.c: Include opts.h.
11019         (m32r_handle_option): Update to new hook interface.
11020         * config/m68k/m68k.c: Include opts.h.
11021         (m68k_handle_option): Update to new hook interface.
11022         * config/mep/mep.c: Include opts.h.
11023         (mep_handle_option): Update to new hook interface.
11024         * config/microblaze/microblaze.c: Include opts.h.
11025         (microblaze_handle_option): Update to new hook interface.
11026         * config/mips/mips.c: Include opts.h.
11027         (mips_handle_option): Update to new hook interface.
11028         * config/mn10300/mn10300.c: Include opts.h.
11029         (mn10300_handle_option): Update to new hook interface.
11030         * config/pa/pa.c: Include opts.h.
11031         (pa_handle_option): Update to new hook interface.
11032         * config/pdp11/pdp11.c: Include opts.h.
11033         (pdp11_handle_option): Update to new hook interface.
11034         * config/rs6000/rs6000.c: Include opts.h.
11035         (rs6000_handle_option): Update to new hook interface.
11036         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11037         * config/rx/rx.c: Include opts.h.
11038         (rx_handle_option): Update to new hook interface.
11039         * config/s390/s390.c: Include opts.h.
11040         (s390_handle_option): Update to new hook interface.
11041         * config/score/score.c: Include opts.h.
11042         (score_handle_option): Update to new hook interface.
11043         * config/sh/sh.c: Include opts.h.
11044         (sh_handle_option): Update to new hook interface.
11045         * config/sparc/sparc.c: Include opts.h.
11046         (sparc_handle_option): Update to new hook interface.
11047         * config/v850/v850.c: Include opts.h.
11048         (v850_handle_option): Update to new hook interface.
11049
11050 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11051
11052         * gcc.c (driver_unknown_option_callback): Only permit and save
11053         unknown -Wno- options.
11054         (driver_wrong_lang_callback): Save options directly instead of via
11055         driver_unknown_option_callback.
11056
11057 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11058
11059         * combine.c (simplify_set): Try harder to find the best CC mode when
11060         simplifying a nested COMPARE on the RHS.
11061
11062 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * config/alpha/gnu.h: Remove.
11065         * config/arc: Remove directory.
11066         * config/arm/netbsd.h: Remove.
11067         * config/arm/t-pe: Remove.
11068         * config/crx: Remove directory.
11069         * config/i386/netbsd.h: Remove.
11070         * config/m68hc11: Remove directory.
11071         * config/m68k/uclinux-oldabi.h: Remove.
11072         * config/mcore/mcore-pe.h: Remove.
11073         * config/mcore/t-mcore-pe: Remove.
11074         * config/netbsd-aout.h: Remove.
11075         * config/rs6000/gnu.h: Remove.
11076         * config/sh/sh-symbian.h: Remove.
11077         * config/sh/symbian-base.c: Remove.
11078         * config/sh/symbian-c.c: Remove.
11079         * config/sh/symbian-cxx.c: Remove.
11080         * config/sh/symbian-post.h: Remove.
11081         * config/sh/symbian-pre.h: Remove.
11082         * config/sh/t-symbian: Remove.
11083         * config/svr3.h: Remove.
11084         * config/vax/netbsd.h: Remove.
11085         * config.build: Don't handle i[34567]86-*-pe.
11086         * config.gcc: Remove handling of deprecations for most deprecated
11087         targets.
11088         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11089         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11090         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11091         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11092         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11093         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11094         Remove cases.
11095         * config.host: Don't handle i[34567]86-*-pe.
11096         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11097         (ASM_SPEC32): Don't handle -mcall-gnu.
11098         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11099         -mcall-gnu.
11100         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11101         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11102         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11103         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11104         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11105         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11106         conditional on SYMBIAN.
11107         * configure.ac: Don't handle powerpc*-*-gnu*.
11108         * configure: Regenerate.
11109         * doc/extend.texi (interrupt attribute): Don't mention CRX.
11110         * doc/install-old.texi (m6811, m6812): Don't mention.
11111         * doc/install.texi (arc-*-elf*): Don't document multilib option.
11112         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11113         (m68k-uclinuxoldabi): Don't mention.
11114         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11115         Remove.
11116         (-mcall-gnu): Remove.
11117         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11118         families): Remove constraint documentation.
11119
11120 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
11121
11122         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11123         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11124         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11125
11126 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11127
11128         PR target/48226
11129         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11130         vector when peeking at the next token for vector, don't expand the
11131         keywords.
11132
11133 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
11134
11135         * config/avr/avr-protos.h (expand_epilogue): Change prototype
11136         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11137         * config/avr/avr.c (init_cumulative_args)
11138         (avr_function_arg_advance): Use it.
11139         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11140         sibcall epilogues.
11141         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11142         (avr_function_ok_for_sibcall): ...this new function.
11143         (avr_lookup_function_attribute1): New static Function.
11144         (avr_naked_function_p, interrupt_function_p)
11145         (signal_function_p, avr_OS_task_function_p)
11146         (avr_OS_main_function_p): Use it.
11147         * config/avr/avr.md ("sibcall", "sibcall_value")
11148         ("sibcall_epilogue"): New expander.
11149         ("*call_insn", "*call_value_insn"): New insn.
11150         ("call_insn", "call_value_insn"): Remove
11151         ("call", "call_value", "epilogue"): Change expander to handle
11152         sibling calls.
11153
11154 2011-03-21  Nick Clifton  <nickc@redhat.com>
11155
11156         * doc/invoke.texi (Overall Options): Move closing brace to end of
11157         options list.
11158         (Optimization Options): Add missing @gol.
11159         (Directory Options): Likewise.
11160         (i386 and x86-64 Options): Likewise.
11161         (RS6000 and PowerPC Options): Likewise.
11162         (i386 and x86-64 Windows Options): Likewise.
11163         (V850 Options): Add text missing from descriptions.
11164
11165 2011-03-22  Richard Henderson  <rth@redhat.com>
11166
11167         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11168         (avr_incoming_return_addr_rtx): New.
11169         (emit_push_byte): New.
11170         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
11171         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
11172         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
11173         (emit_pop_byte): New.
11174         (expand_epilogue): Use it.  Pop frame pointer by bytes.
11175         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11176         (INCOMING_RETURN_ADDR_RTX): New.
11177         (INCOMING_FRAME_SP_OFFSET): New.
11178         (ARG_POINTER_CFA_OFFSET): New.
11179         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11180         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11181         (pophi): Remove.
11182
11183         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11184
11185 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11186
11187         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11188         (FUNCTION_ARG_ADVANCE): Likewise.
11189         * tm.texi.in: Change references to them to hook references.
11190         * tm.texi: Regenerate.
11191         * targhooks.c (default_function_arg): Eliminate check for target
11192         macro.
11193         (default_function_incoming_arg): Likewise.
11194         (default_function_arg_advance): Likewise.
11195         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11196         (function_arg_advance): Likewise.
11197         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11198
11199 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11200
11201         * tree.c (build_call_1): New function.
11202         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11203
11204 2011-03-22  Richard Guenther  <rguenther@suse.de>
11205
11206         PR tree-optimization/48228
11207         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11208         for single-arg PHIs.
11209
11210 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
11211
11212         PR rtl-optimization/48143
11213         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11214         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11215         sse2_cvtps2pd): Likewise.
11216
11217 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11218
11219         * recog.c (canonicalize_change_group): Use validate_unshare_change.
11220
11221 2011-03-22  Richard Guenther  <rguenther@suse.de>
11222
11223         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11224         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11225         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11226         and REALIGN_LOAD_EXPR.
11227         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11228         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11229         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11230         DOT_PROD_EXPR case ...
11231         (expand_expr_real_2): ... here.
11232         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11233         and REALIGN_LOAD_EXPR.
11234         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11235         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11236         (vect_create_epilog_for_reduction): Likewise.
11237         (vectorizable_reduction): Likewise.
11238         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11239         * tree-vect-stmts.c (vectorizable_load): Likewise.
11240
11241 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11242
11243         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11244
11245 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11246
11247         * config/s390/s390.c (s390_delegitimize_address): Fix offset
11248         handling for PLTOFF/GOTOFF.
11249
11250 2011-03-22  Nick Clifton  <nickc@redhat.com>
11251
11252         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11253         trailing backslash from the end of the macro definition.
11254
11255 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11256
11257         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11258         and PLT unspecs.
11259
11260 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
11261
11262         * expr.h (prepare_operand): Move to...
11263         * optabs.h (prepare_operand): ...here and change the insn code
11264         parameter from "int" to "enum insn_code".
11265         (insn_operand_matches): Declare.
11266         * expr.c (init_expr_target): Use insn_operand_matches.
11267         (compress_float_constant): Likewise.
11268         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11269         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11270         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11271         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11272         Likewise.
11273         (gen_cond_trap): Likewise.
11274         (prepare_operand): Likewise.  Change icode to an insn_code.
11275         (insn_operand_matches): New function.
11276         * reload.c (find_reloads_address_1): Use insn_operand_matches.
11277         * reload1.c (gen_reload): Likewise.
11278         * targhooks.c (default_secondary_reload): Likewise.
11279
11280 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
11281
11282         * config/alpha/alpha.md (unspec): New define_c_enum.
11283         (unspecv): Ditto.
11284
11285 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
11286
11287         PR debug/48214
11288         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11289         between a call and its CALL_ARG_LOCATION note.
11290
11291 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
11292
11293         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11294
11295 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11296
11297         PR c/42544
11298         PR c/48197
11299         * c-common.c (shorten_compare): If primopN is first sign-extended
11300         to opN and then zero-extended to result type, set primopN to opN.
11301
11302 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
11303
11304         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11305         for barrier handlers.
11306
11307 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11308
11309         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11310         UNSPEC constants to be in the unspec enumeration, and redefine
11311         all UNSPECV constants to be in the unspecv enumeration, so that
11312         dumps print which unspec/unspec_volatile this is.
11313         * config/rs6000/vector.md (UNSPEC_*): Ditto.
11314         * config/rs6000/paired.md (UNSPEC_*): Ditto.
11315         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11316         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11317         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11318
11319         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11320         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11321         UNSPECV_LWSYNC, since these are used as unspec_volatile.
11322         * config/rs6000/sync.md (isync, lwsync): Ditto.
11323
11324 2011-03-21  Richard Guenther  <rguenther@suse.de>
11325
11326         * params.def (lto-min-partition): Fix typo.
11327
11328 2011-03-21  Richard Guenther  <rguenther@suse.de>
11329
11330         PR c/47939
11331         * c-decl.c (grokdeclarator): Drop to the main variant only
11332         for array types.  Drop flag_gen_aux_info check.
11333
11334 2011-03-21  Richard Guenther  <rguenther@suse.de>
11335
11336         PR translation/47911
11337         * params.def (lto-partitions): Fix typo.
11338         (lto-min-partition): Fix wording.
11339
11340 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
11341
11342         * config/rs6000/t-freebsd: Remove duplication from file.
11343
11344 2011-03-21  Richard Guenther  <rguenther@suse.de>
11345
11346         PR middle-end/47661
11347         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11348
11349 2011-03-21  Richard Guenther  <rguenther@suse.de>
11350
11351         PR lto/48210
11352         * params.def (lto-partitions): Require at least 1 partition.
11353
11354 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11355
11356         * gthr-solaris.h: Remove.
11357         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11358         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11359         (LIB_SPEC): Likewise.
11360         * config/sol2.opt (threads): Remove.
11361         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11362         (sparc*-*-solaris2*): Likewise.
11363         * configure.ac (enable_threads): Enable solaris support.
11364         * configure: Regenerate.
11365         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11366         * doc/install.texi (Configuration, --enable-threads=lib): Remove
11367         solaris.
11368
11369 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11370
11371         * config.gcc: Obsolete *-*-solaris2.8*.
11372         * doc/install.texi (Specific, *-*-solaris2*): Document it.
11373
11374 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11375
11376         PR bootstrap/48135
11377         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11378         reference.  Solaris 8 perl works.
11379
11380 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11381
11382         PR bootstrap/48135
11383         * doc/install.texi (Prerequisites): Move jar etc. up.
11384         Explain support library version requirements.
11385
11386 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11387
11388         PR bootstrap/48135
11389         * doc/install.texi (Prerequisites): Move Perl to build
11390         requirements.  Always necessary on Solaris 2 with Sun ld.
11391
11392 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11393
11394         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11395         binutils 2.21.
11396         (Specific, i?86-*-solaris2.[89]): Likewise.
11397         (Specific, i?86-*-solaris2.10): Likewise.
11398         (Specific, mips-sgi-irix6): Likewise.
11399         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11400         Update for binutils 2.21.
11401
11402 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11403
11404         * configure.ac (gcc_cv_lto_plugin): Fix typo.
11405         Allow -fuse-linker-plugin for non-default plugin linker.
11406         * configure: Regenerate.
11407
11408 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11409
11410         PR bootstrap/48167
11411         * gengtype.c (files_rules): Added rule for cp/parser.h.
11412
11413 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11414
11415         PR target/48213
11416         * config/s390/s390.c (s390_delegitimize_address): Don't call
11417         lowpart_subreg if orig_x has BLKmode.
11418
11419 2011-03-21  Kai Tietz  <ktietz@redhat.com>
11420
11421         PR target/12171
11422         * doc/plugins.texi: Adjust documentation for plugin register_callback.
11423         * tree.h (attribute_spec): Add new member affects_type_identity.
11424         * attribs.c (empty_attribute_table): Adjust attribute_spec
11425         initializers.
11426         * config/alpha/alpha.c: Likewise.
11427         * config/arc/arc.c: Likewise.
11428         * config/arm/arm.c: Likewise.
11429         * config/avr/avr.c: Likewise.
11430         * config/bfin/bfin.c: Likewise.
11431         * config/crx/crx.c: Likewise.
11432         * config/darwin.h: Likewise.
11433         * config/h8300/h8300.c: Likewise.
11434         * config/i386/cygming.h: Likewise.
11435         * config/i386/i386.c: Likewise.
11436         * config/ia64/ia64.c: Likewise.
11437         * config/m32c/m32c.c: Likewise.
11438         * config/m32r/m32r.c: Likewise.
11439         * config/m68hc11/m68hc11.c: Likewise.
11440         * config/m68k/m68k.c: Likewise.
11441         * config/mcore/mcore.c: Likewise.
11442         * config/mep/mep.c: Likewise.
11443         * config/microblaze/microblaze.c: Likewise.
11444         * config/mips/mips.c: Likewise.
11445         * config/rs6000/rs6000.c: Likewise.
11446         * config/rx/rx.c: Likewise.
11447         * config/sh/sh.c: Likewise.
11448         * config/sol2.h: Likewise.
11449         * config/sparc/sparc.c: Likewise.
11450         * config/spu/spu.c: Likewise.
11451         * config/stormy16/stormy16.c: Likewise.
11452         * config/v850/v850.c: Likewise.
11453
11454 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11455
11456         * simplify-rtx.c (simplify_binary_operation_1): Handle
11457         (xor (and A B) C) case when B and C are both constants.
11458
11459 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
11460
11461         * tree-dfa.c (add_referenced_var): Fix typo in comment.
11462
11463 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
11464
11465         PR bootstrap/48168
11466         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11467
11468 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
11469
11470         PR rtl-optimization/48156
11471         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11472         assume df and df_lr are not NULL.
11473
11474 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11475
11476         PR debug/48023
11477         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11478         between a call and its CALL_ARG_LOCATION note.
11479
11480 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
11481
11482         PR debug/48178
11483         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11484         between a call and its corresponding CALL_ARG_LOCATION note.
11485
11486 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
11487
11488         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11489         instead of loop. Use HARD_REGISTER_NUM_P predicate.
11490         * haifa-sched.c (setup_ref_regs): Ditto.
11491         * caller-save.c (add_used_regs_1): Ditto.
11492         * dse.c (look_for_hardregs): Ditto.
11493         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11494         * sched-rgn.c (check_live_1): Ditto.
11495
11496 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
11497
11498         * c-decl.c (diagnose_mismatched_decls): Give an error for
11499         redefining a typedef with variably modified type.
11500
11501 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
11502
11503         * c-decl.c (grokfield): Don't allow typedefs for structures or
11504         unions with no tag by default.
11505         * doc/extend.texi (Unnamed Fields): Update.
11506
11507 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
11508
11509         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11510         Rewrite using indirect functions.
11511         (lwp_slwpcb): Ditto.
11512         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11513         (avx_vinsertf128<mode>): Ditto.
11514
11515 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11516
11517         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11518         unspecs.
11519
11520 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11521
11522         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11523         splitting between a call and its corresponding CALL_ARG_LOCATION note.
11524
11525 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11526
11527         PR rtl-optimization/48170
11528         * gcse.c (hoist_code): Remove bogus asserts.
11529
11530 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
11531
11532         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11533         computation for prologue/epilogue.
11534
11535 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11536
11537         * Makefile.in (check-consistency): Remove.
11538
11539 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
11540
11541         PR debug/48176
11542         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11543         arange_table_in_use is 0, but either text_section_used or
11544         cold_text_section_used is true.  Don't call it if
11545         !info_section_emitted.
11546
11547 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
11548
11549         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11550         FUNCTION_VALUE_REGNO_P): Remove.
11551         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11552         Remove.
11553         * config/avr/avr.c (avr_ret_register): Make static inline.
11554         (avr_function_value_regno_p): New function.
11555         (avr_libcall_value): Make static. Add 'func' argument.
11556         (avr_function_value): Make static. Rename 'func' argument to
11557         'fn_decl_or_type', forward it to avr_libcall_value. Call
11558         avr_ret_register function instead of RET_REGISTER macro.
11559         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11560
11561 2011-03-18  Jason Merrill  <jason@redhat.com>
11562
11563         PR c++/23372
11564         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11565
11566 2011-03-18  Richard Guenther  <rguenther@suse.de>
11567
11568         * doc/install.texi (--enable-gold): Remove.
11569         (--with-plugin-ld): Document.
11570         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11571
11572 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
11573
11574         PR middle-end/47790
11575         * expr.c (optimize_bitfield_assignment_op): Revamp to work
11576         again after expansion changes.
11577
11578 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
11579
11580         * combine.c (try_combine): Do simplification only call of
11581         subst() on i2 even when i1 is present. Update comments.
11582
11583 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11584
11585         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11586         and UNSPEC_PCREL_SYMOFF.
11587
11588 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11589
11590         * config/s390/s390.md: Use define_c_enum for the unspec constant
11591         definitions.
11592
11593 2011-03-18  Richard Henderson  <rth@redhat.com>
11594             Jakub Jelinek  <jakub@redhat.com>
11595
11596         PR bootstrap/48161
11597         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11598         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11599
11600 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11601
11602         PR middle-end/47725
11603         * combine.c (cant_combine_insn_p): Don't check zero/sign
11604         extended hard registers.
11605
11606 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11607
11608         PR middle-end/47725
11609         * combine.c (cant_combine_insn_p): Check zero/sign extended
11610         hard registers.
11611
11612 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
11613
11614         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11615         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11616         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11617         Change return type to bool.
11618         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11619
11620 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11621
11622         PR debug/48163
11623         * var-tracking.c (prepare_call_arguments): If CALL target
11624         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11625         pc instead of looking it up using cselib_lookup and use
11626         Pmode for it if x has VOIDmode.
11627         * dwarf2out.c (gen_subprogram_die): If also both first and
11628         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11629
11630         PR debug/48163
11631         * function.c (assign_parms): For data.passed_pointer parms
11632         use MEM of data.entry_parm instead of data.entry_parm itself
11633         as DECL_INCOMING_RTL.
11634         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11635         also when passed and declared mode is the same, DECL_RTL
11636         is a MEM with pseudo as address and DECL_INCOMING_RTL is
11637         a MEM too.
11638
11639 2011-03-16  Jeff Law  <law@redhat.com>
11640
11641         PR rtl-optimization/37273
11642         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11643         handle them like argument loads from stack slots.  Do not double
11644         count memory for memory constants and argument loads from stack slots.
11645
11646 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11647
11648         PR debug/48160
11649         * var-tracking.c (prepare_call_arguments): Check SUBREG.
11650
11651 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11652
11653         PR target/48171
11654         * config/i386/i386.opt: Add Save to -mavx and -mfma.
11655
11656 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11657
11658         PR bootstrap/48153
11659         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11660         if dwarf_strict.
11661         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11662         Clear call_arg_locations and call_arg_loc_last always.
11663
11664         PR middle-end/48152
11665         * var-tracking.c (prepare_call_arguments): If argument needs to be
11666         passed by reference, adjust argtype and mode.
11667
11668 2011-03-17  Richard Guenther  <rguenther@suse.de>
11669
11670         PR middle-end/48134
11671         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11672         a value make sure to fold the statement.
11673
11674 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
11675
11676         PR target/43872
11677         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11678         return condition with !cfun->calls_alloca.
11679
11680 2011-03-17  Richard Guenther  <rguenther@suse.de>
11681
11682         PR bootstrap/48148
11683         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11684         origin for decls in other ltrans units.
11685         (input_varpool_node): Likewise.
11686
11687 2011-03-17  Richard Guenther  <rguenther@suse.de>
11688
11689         PR middle-end/48165
11690         * tree-object-size.c (compute_object_offset): Properly return
11691         the offset operand of MEM_REFs as sizetype.
11692
11693 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11694
11695         PR rtl-optimization/48141
11696         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11697         * dse.c: Include params.h.
11698         (active_local_stores_len): New variable.
11699         (add_wild_read, dse_step1): Clear it when setting active_local_stores
11700         to NULL.
11701         (record_store, check_mem_read_rtx): Decrease it when removing
11702         from the chain.
11703         (scan_insn): Likewise.  Increase it when adding to chain, if it
11704         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11705         set active_local_stores to NULL before the addition.
11706         * Makefile.in (dse.o): Depend on $(PARAMS_H).
11707
11708         PR rtl-optimization/48141
11709         * dse.c (record_store): If no positions are needed in an insn
11710         that cannot be deleted, at least unchain it from active_local_stores.
11711
11712 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
11713
11714         PR debug/47510
11715         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11716         (lookup_type_die_strip_naming_typedef): ... here.
11717         (get_context_die): Use it.
11718         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11719         the anonymous struct named by the naming typedef.
11720
11721 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11722
11723         PR target/48154
11724         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11725         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11726
11727 2011-03-16  Jeff Law  <law@redhat.com>
11728
11729         * tree-vrp.c (identify_jump_threads): Slightly simplify type
11730         check for operands of conditional.  Allow type to be a pointer.
11731
11732 2011-03-16  Richard Guenther  <rguenther@suse.de>
11733
11734         PR tree-optimization/48149
11735         * fold-const.c (fold_binary_loc): Fold
11736         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11737
11738 2011-03-16  Richard Guenther  <rguenther@suse.de>
11739
11740         PR tree-optimization/26134
11741         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11742         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11743         (non_rewritable_mem_ref_base): Handle complex type component
11744         accesses, constrain offsets for vector and complex extracts
11745         more properly.
11746
11747 2011-03-16  Richard Guenther  <rguenther@suse.de>
11748
11749         PR tree-optimization/48146
11750         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11751         operands avoiding the need for renaming.
11752
11753 2011-03-16  Richard Guenther  <rguenther@suse.de>
11754
11755         * gimple-fold.c (maybe_fold_reference): Open-code relevant
11756         constant folding.  Move MEM_REF canonicalization first.
11757         Rely on fold_const_aggregate_ref for initializer folding.
11758         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11759
11760 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11761
11762         PR middle-end/48136
11763         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11764         arg0/arg1 or their arguments are always fold converted to matching
11765         types.
11766
11767         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11768         to nargs.
11769
11770 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11771
11772         PR lto/46944
11773         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11774         Handle in-tree gold.
11775         (ld_vers): Extract binutils version for gold.
11776         (gcc_cv_ld_hidden): Handle gold here.
11777         (gcc_cv_lto_plugin): Determine level of linker plugin support.
11778         * configure: Regenerate.
11779         * config.in: Regenerate.
11780         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11781         -fuse-linker-plugin otherwise.
11782         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
11783         (LINK_COMMAND_SPEC): Use it.
11784         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11785
11786 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11787
11788         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11789         * calls.c: Remove debug.h include.
11790         (emit_call_1): Don't call virtual_call_token debug hook.
11791         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11792         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11793         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11794         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11795         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11796         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11797         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11798         dwarf2out_virtual_call): Remove.
11799         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11800         copy_call_info and virtual_call hooks.
11801         (dwarf2out_init): Don't initialize vcall_insn_table,
11802         debug_dcall_section and debug_vcall_section.
11803         (prune_unused_types): Don't mark nodes from dcall_table.
11804         (dwarf2out_finish): Don't output dcall or vcall tables.
11805         * final.c (final_scan_insn): Don't call direct_call or
11806         virtual_call debug hooks.
11807         * debug.h (struct gcc_debug_hooks): Remove direct_call,
11808         virtual_call_token, copy_call_info and virtual_call hooks.
11809         (debug_nothing_uid): Remove prototype.
11810         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11811         copy_call_info and virtual_call hooks.
11812         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11813         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11814         * debug.c (do_nothing_debug_hooks): Likewise.
11815         (debug_nothing_uid): Remove.
11816         * doc/invoke.texi (-fenable-icf-debug): Remove.
11817         * common.opt (-fenable-icf-debug): Likewise.
11818
11819         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11820         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11821         call's MEM.  Handle functions returning aggregate through a hidden
11822         first pointer.  For virtual calls add clobbered pc to call arguments
11823         chain.
11824         * dwarf2out.c (gen_subprogram_die): Emit
11825         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11826         can't be emitted.
11827
11828         PR debug/45882
11829         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11830         * rtl.h (ENTRY_VALUE_EXP): Define.
11831         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11832         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11833         * print-rtl.c (print_rtx): Likewise.
11834         * gengtype.c (adjust_field_rtx_def): Likewise.
11835         * var-tracking.c (vt_add_function_parameter): Adjust
11836         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11837         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11838         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11839         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11840         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11841
11842         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11843         Call var_location debug hook even on CALL_INSNs.
11844         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11845         * rtl.def (ENTRY_VALUE): New.
11846         * dwarf2out.c: Include cfglayout.h.
11847         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11848         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11849         (struct call_arg_loc_node): New type.
11850         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11851         tail_call_site_count): New variables.
11852         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11853         DW_TAG_GNU_call_site_parameter.
11854         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11855         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11856         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11857         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11858         and DW_AT_GNU_all_source_call_sites.
11859         (mem_loc_descriptor): Handle ENTRY_VALUE.
11860         (add_src_coords_attributes): Don't add enything if
11861         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11862         (dwarf2out_abstract_function): Save and clear call_arg_location,
11863         call_site_count and tail_call_site_count around dwarf2out_decl call.
11864         (gen_call_site_die): New function.
11865         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11866         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11867         (dwarf2out_function_decl): Clear call_arg_locations,
11868         call_arg_loc_last, set call_site_count and tail_call_site_count
11869         to -1 and free block_map.
11870         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11871         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
11872         followed by any real instructions.
11873         (dwarf2out_begin_function): Set call_site_count and
11874         tail_call_site_count to 0.
11875         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11876         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11877         attempt to force a DIE for it and worst case remove the attribute.
11878         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11879         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11880         the decl itself.
11881         * var-tracking.c: Include tm_p.h.
11882         (vt_stack_adjustments): For calls call note_register_arguments.
11883         (argument_reg_set): New variable.
11884         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11885         ensure the VALUE is resolved.
11886         (call_arguments): New variable.
11887         (prepare_call_arguments): New function.
11888         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11889         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11890         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11891         always use the best expression.
11892         (vt_expand_loc): Add ignore_cur_loc argument.
11893         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11894         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11895         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11896         note for all calls.
11897         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11898         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11899         argument.  Don't call cselib_preserve_only_values and
11900         cselib_reset_table.
11901         (note_register_arguments): New function.
11902         (vt_initialize): Compute argument_reg_set.  Call
11903         vt_add_function_parameters before processing basic blocks instead of
11904         afterwards.  For calls call prepare_call_arguments before calling
11905         cselib_process_insn.
11906         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11907         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11908         (var-tracking.o): Depend on $(TM_P_H).
11909         * cfglayout.h (insn_scope): New prototype.
11910         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11911         * cfglayout.c (insn_scope): No longer static.
11912         * insn-notes.def (CALL_ARG_LOCATION): New.
11913         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11914         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11915         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11916         nothing for DECL_EXTERNAL BLOCK_VARS.
11917
11918 2011-03-16  Alan Modra  <amodra@gmail.com>
11919
11920         PR target/45844
11921         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11922         create invalid offset address for vsx splat insn.
11923         * config/rs6000/predicates.md (splat_input_operand): New.
11924         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11925
11926 2011-03-15  Xinliang David Li  <davidxl@google.com>
11927
11928         PR c/47837
11929         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11930         (normalize_preds): New function.
11931         (is_use_properly_guarded): Normalize def predicates.
11932
11933 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11934
11935         PR target/46788
11936         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11937         in the output template.
11938
11939 2011-03-15  Richard Guenther  <rguenther@suse.de>
11940
11941         PR middle-end/47650
11942         * tree-pretty-print.c (dump_function_declaration): Properly
11943         dump unprototyped and varargs function types.
11944
11945 2011-03-15  Richard Guenther  <rguenther@suse.de>
11946
11947         PR tree-optimization/13954
11948         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11949         and friends.
11950
11951 2011-03-15  Richard Guenther  <rguenther@suse.de>
11952
11953         PR tree-optimization/48037
11954         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11955         selects into BIT_FIELD_REFs.
11956         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11957         vector select.
11958
11959 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11960
11961         PR tree-optimization/48129
11962         * builtins.c (fold_builtin_snprintf): Convert to type of
11963         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11964         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11965
11966 2011-03-15  Richard Guenther  <rguenther@suse.de>
11967
11968         PR tree-optimization/41490
11969         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11970         value but with VUSE.
11971         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11972         return statements.
11973         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11974         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11975         * tree-tailcall.c (find_tail_calls): Ignore returns.
11976
11977 2011-03-15  Richard Guenther  <rguenther@suse.de>
11978
11979         PR middle-end/48031
11980         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11981         or variable-indexed array accesses when in gimple form.
11982
11983 2011-03-15  Richard Guenther  <rguenther@suse.de>
11984
11985         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11986
11987 2011-03-15  Alan Modra  <amodra@gmail.com>
11988
11989         PR target/48032
11990         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11991         presume symbol_refs without a symbol_ref_decl are suitably
11992         aligned, nor other trees we may see here.  Handle anchor symbols.
11993         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11994         Check cmodel=medium addresses.  Adjust all calls.
11995         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11996         creating cmodel=medium optimized access to locals.
11997         * config/rs6000/constraints.md (R): Pass QImode to
11998         legitimate_constant_pool_address_p.
11999         * config/rs6000/predicates.md (input_operand): Pass mode to
12000         legitimate_constant_pool_address_p.
12001         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12002         Update prototype.
12003
12004 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12005
12006         PR target/48053
12007         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12008         64-bit constants being loaded into registers other than GPRs such
12009         as loading 0 into a VSX register.
12010
12011 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12012
12013         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12014
12015 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12016
12017         PR middle-end/47917
12018         * builtins.c (fold_builtin_snprintf): New function.
12019         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12020         (fold_builtin_4): Likewise.
12021
12022         PR middle-end/38878
12023         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12024         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
12025         and C - X == X also strip nops from +/-/p+ operand.
12026         When optimizing -X == C, fold C to arg0's type.
12027
12028         PR debug/47946
12029         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12030         emit it as add_AT_int instead of add_AT_unsigned.
12031
12032 2011-03-14  Tom Tromey  <tromey@redhat.com>
12033
12034         * unwind-dw2.c: Include sys/sdt.h if it exists.
12035         (_Unwind_DebugHook): Use STAP_PROBE2.
12036         * config.in, configure: Rebuild.
12037         * configure.ac: Check for sys/sdt.h.
12038
12039 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
12040
12041         * config/i386/i386.md (ROUND_FLOOR): New constant.
12042         (ROUND_CEIL): Ditto.
12043         (ROUND_TRUNC): Ditto.
12044         (ROUND_MXCSR): Ditto.
12045         (ROUND_NO_EXC): Ditto.
12046         (rint<mode>2): Use new defines instead of numerical constants.
12047         (floor<mode>2): Ditto.
12048         (ceil<mode>2): Ditto.
12049         (btrunc<mode>2): Ditto.
12050         * config/i386/i386-builtin-types.def: Define ROUND function type
12051         aliases.
12052         * config/i386/i386.c (enum ix86_builtins): Add
12053         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12054         (struct builtin_description): Add
12055         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12056         (ix86_expand_sse_round): New static function.
12057         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12058         function types.
12059         (ix86_builtin_vectorized_function): Handle
12060         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12061
12062 2011-03-14  Tom Tromey  <tromey@redhat.com>
12063
12064         * c-parser.c (c_parser_asm_string_literal): Clear
12065         warn_overlength_strings.
12066
12067 2011-03-14  Tom Tromey  <tromey@redhat.com>
12068
12069         * c-parser.c (disable_extension_diagnostics): Save
12070         warn_overlength_strings.
12071         (restore_extension_diagnostics): Restore warn_overlength_strings.
12072
12073 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12074
12075         * BASE-VER: Change to 4.7.0.
12076
12077 2011-03-14  Richard Guenther  <rguenther@suse.de>
12078
12079         PR middle-end/48098
12080         * tree.c (build_vector_from_val): Adjust assert to requirements
12081         and reality.
12082
12083 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12084
12085         PR bootstrap/48102
12086         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12087
12088 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
12089
12090         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12091         terms of target_flags_explicit. Adjust copyright year.
12092
12093         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12094         * config/rs6000/t-freebsd: New file. Add override for
12095         LIB2FUNCS_EXTRA.
12096
12097 2011-03-13  Chris Demetriou  <cgd@google.com>
12098
12099         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12100         (-fno-diagnostics-show-option): this, to reflect current default.
12101         (-Werror=): Update text about -fno-diagnostics-show-option.
12102
12103 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
12104
12105         PR target/48053
12106         * config/rs6000/predicates.md (easy_vector_constant_add_self,
12107         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12108         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12109         mode is not V2DImode or V2DFmode.
12110         (vspltis_constant): Do not handle V2DImode and V2DFmode.
12111         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12112         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12113         registers to 0.
12114         (movdi_internal64): Likewise.
12115
12116 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
12117
12118         PR tree-optimization/47127
12119         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12120         parameter.
12121         (set_cloog_options): Same.
12122         (scop_to_clast): Same.
12123         (print_clast_stmt): Do not call cloog_state_malloc and
12124         cloog_state_free.
12125         (print_generated_program): Same.
12126         (gloog): Same.
12127         * graphite-clast-to-gimple.h (cloog_state): Declared.
12128         (scop_to_clast): Adjust declaration.
12129         * graphite.c (cloog_state): Defined here.
12130         (graphite_initialize): Call cloog_state_malloc.
12131         (graphite_finalize): Call cloog_state_free.
12132
12133 2011-03-11  Jason Merrill  <jason@redhat.com>
12134
12135         * attribs.c (lookup_attribute_spec): Take const_tree.
12136         * tree.h: Adjust.
12137
12138 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
12139
12140         * config/sparc/sparc.c (sparc_option_override): Use
12141         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12142
12143 2011-03-11  Richard Guenther  <rguenther@suse.de>
12144
12145         PR tree-optimization/48067
12146         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12147         multiplication result will be only used once on the target
12148         stmt.
12149
12150 2011-03-11  Richard Guenther  <rguenther@suse.de>
12151
12152         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12153
12154 2011-03-11  Richard Guenther  <rguenther@suse.de>
12155
12156         PR lto/48073
12157         * tree.c (find_decls_types_r): Do not walk types only reachable
12158         from IDENTIFIER_NODEs.
12159
12160 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12161
12162         PR middle-end/48044
12163         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12164         all vnode->force_output nodes as needed.
12165
12166 2011-03-11  Jason Merrill  <jason@redhat.com>
12167
12168         PR c++/48069
12169         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12170         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12171
12172 2011-03-11  Martin Jambor  <mjambor@suse.cz>
12173
12174         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12175         cgraph_node.
12176
12177 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12178
12179         PR tree-optimization/48063
12180         * ipa-inline.c (cgraph_decide_inlining): Don't try to
12181         inline functions called once if !tree_can_inline_p (node->callers).
12182
12183 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
12184
12185         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12186         extra_objs.
12187         * config/score/score3.c: Delete.
12188         * config/score/score3.h: Delete.
12189         * config/score/mul-div.S: Delete.
12190         * config/score/sfp-machine.h: Add new file.
12191         * config/score/constraints.md: Add new file.
12192         * config/score/t-score-softfp: Add new file.
12193         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12194         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12195         (score7_extra_constraint): Delete.
12196         (score7_option_override): Remove unused code.
12197         * config/score/score.c: Remove score3 and score5 define and code.
12198         * config/score/score.h: Remove score3 and score5 define and code.
12199         * config/score/score.md: Remove score3 template and unusual insn.
12200         * config/score/score.opt: Remove score3 and score5 options.
12201
12202 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12203
12204         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12205         when _HPUX_SOURCE is defined.
12206         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12207
12208 2011-03-10  Jason Merrill  <jason@redhat.com>
12209
12210         PR c++/48029
12211         * stor-layout.c (layout_type): Don't set structural equality
12212         on arrays of incomplete type.
12213         * tree.c (type_hash_eq): Handle comparing them properly.
12214
12215 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
12216
12217         PR debug/48043
12218         * config/s390/s390.c (s390_delegitimize_address): Make sure the
12219         result mode matches original rtl mode.
12220
12221 2011-03-10  Nick Clifton  <nickc@redhat.com>
12222
12223         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12224         (andsi3, andsi3_flags): Fix timings for three operand alternative.
12225
12226 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
12227
12228         PR rtl-optimization/47866
12229         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12230         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12231         if target wasn't scalar.
12232         * function.c (assign_stack_temp_for_type): Assert that neither
12233         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12234         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12235         macro.
12236         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12237
12238 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12239
12240         * config/s390/s390-protos.h (s390_label_align): New prototype.
12241         * config/s390/s390.c (s390_label_align): New function.
12242         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12243
12244 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
12245
12246         PR target/47755
12247         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12248         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
12249         (output_vec_const_move): Ditto.
12250
12251 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
12252
12253         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12254         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12255         * config/mips/mips.c (mips_preferred_reload_class): Make static.
12256         Change 'rclass' argument and result type to reg_class_t.
12257         (TARGET_PREFERRED_RELOAD_CLASS): Define.
12258
12259 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
12260
12261         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12262         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12263         (TARGET_MEMORY_MOVE_COST): Define.
12264         (avr_register_move_cost, avr_memory_move_cost): New Functions.
12265
12266 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
12267
12268         PR debug/47881
12269         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12270         removed anything.
12271
12272         PR tree-optimization/48022
12273         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12274         for EQ/NE_EXPR.
12275
12276 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
12277
12278         PR debug/47991
12279         * var-tracking.c (find_use_val): Return NULL for
12280         cui->sets && cui->store_p BLKmode MEMs.
12281
12282 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
12283
12284         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12285         Remove.
12286         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12287         xstormy16_print_operand_address): Remove.
12288         * config/stormy16/stormy16.c (xstormy16_print_operand,
12289         xstormy16_print_operand_address): Make static.
12290         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12291
12292 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
12293
12294         PR target/47862
12295         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12296         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12297         before definition.
12298
12299 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
12300
12301         PR bootstrap/48000
12302         * cfgloopmanip.c (fix_bb_placements): Return immediately
12303         if FROM is BASE_LOOP's header.
12304
12305 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
12306
12307         * gimplify.c (gimplify_function_tree): Fix building calls
12308         to __builtin_return_address.
12309
12310 2011-03-07  Alan Modra  <amodra@gmail.com>
12311
12312         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12313         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12314         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12315         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12316         return_mode args.
12317         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12318         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12319         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12320         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12321         * config/rs6000/rs6000.c
12322         (rs6000_elf_end_indicate_exec_stack): Rename to..
12323         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
12324         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
12325         (rs6000_file_start): ..here.
12326         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12327         file scope variables.
12328         (call_ABI_of_interest): New function.
12329         (init_cumulative_args): Set above vars when function return value
12330         is a float, vector, or small struct.
12331         (rs6000_function_arg_advance_1): Likewise for function args.
12332         (rs6000_va_start): Set rs6000_passes_float if variable arg function
12333         references float args.
12334
12335 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
12336
12337         * doc/cfg.texi: Remove "See" before @ref.
12338         * doc/invoke.texi: Likewise.
12339
12340 2011-03-05  Jason Merrill  <jason@redhat.com>
12341
12342         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12343
12344 2011-03-05  Anthony Green  <green@moxielogic.com>
12345
12346         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12347
12348 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
12349
12350         PR rtl-optimization/47899
12351         * cfgloopmanip.c (fix_bb_placements): Fix first argument
12352         to flow_loop_nested_p when moving the loop upward.
12353
12354 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
12355
12356         PR target/47719
12357         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
12358
12359 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
12360
12361         PR tree-optimization/47967
12362         * ipa-cp.c (build_const_val): Return NULL instead of creating
12363         VIEW_CONVERT_EXPR for mismatching sizes.
12364         (ipcp_create_replace_map): Return NULL if build_const_val failed.
12365         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12366         give up on versioning.
12367
12368 2011-03-05  Alan Modra  <amodra@gmail.com>
12369
12370         PR target/47986
12371         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12372         full cmodel medium/large lo_sum + high addresses.
12373
12374 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12375
12376         * config/s390/s390.c (s390_decompose_address): Reject non-literal
12377         pool references in UNSPEC_LTREL_OFFSET.
12378
12379 2011-03-04  Jan Hubicka  <jh@suse.cz>
12380
12381         PR lto/47497
12382         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12383         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12384         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12385         Add node pointers.
12386         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12387         cgraph_add_thunk): Add node pointers.
12388         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12389         associated to right node.
12390         (input_node): Update use of cgraph_same_body_alias
12391         and cgraph_add_thunk.
12392
12393 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
12394
12395         * config/i386/i386.opt (mprefer-avx128): New flag.
12396         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12397         modes when the flag -mprefer-avx128 is on.
12398
12399 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
12400
12401         * dwarf2out.c (compare_loc_operands): Fix address handling.
12402
12403 2011-03-04  Alan Modra  <amodra@gmail.com>
12404
12405         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12406
12407 2011-03-04  Richard Guenther  <rguenther@suse.de>
12408
12409         PR middle-end/47968
12410         * expmed.c (extract_bit_field_1): Prefer vector modes that
12411         vec_extract patterns can handle.
12412
12413 2011-03-04  Richard Guenther  <rguenther@suse.de>
12414
12415         PR middle-end/47975
12416         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12417
12418 2011-03-04  Richard Henderson  <rth@redhat.com>
12419
12420         * explow.c (emit_stack_save): Remove 'after' parameter.
12421         (emit_stack_restore): Likewise.
12422         * expr.h: Update to match.
12423         * builtins.c, calls.c, stmt.c: Likewise.
12424         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12425         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12426         * function.c (expand_function_end): Insert the emit_stack_save
12427         sequence before parm_birth_insn instead of after.
12428
12429 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
12430
12431         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12432         (ssse3_pmaddubsw128): Ditto.
12433         (ssse3_pmaddubsw): Ditto.
12434
12435 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
12436
12437         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12438
12439 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
12440
12441         PR c/47963
12442         * gimplify.c (omp_add_variable): Only call omp_notice_variable
12443         on TYPE_SIZE_UNIT if it is a DECL.
12444
12445         PR debug/47283
12446         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12447         first operand is not is_gimple_mem_ref_addr, try to fold it.
12448         If the operand still isn't is_gimple_mem_ref_addr, clear
12449         MEM_EXPR on op0.
12450
12451 2011-03-03  Richard Guenther  <rguenther@suse.de>
12452
12453         PR middle-end/47283
12454         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12455         match comment.
12456         (refs_may_alias_p_1): For release branches return true if
12457         we are confused by our input.
12458
12459 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12460
12461         * config/s390/s390.c (s390_function_value): Rename to ...
12462         (s390_function_and_libcall_value): ... this.
12463         (s390_function_value): New function.
12464         (s390_libcall_value): New function.
12465         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12466         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12467         target macro definitions.
12468         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12469
12470 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
12471
12472         * config/i386/freebsd64.h (CC1_SPEC): Define.
12473         * config/i386/linux64.h (CC1_SPEC): Define.
12474         * config/i386/x86-64.h (CC1_SPEC): Don't define.
12475
12476 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
12477
12478         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12479         Remove.
12480         * config/stormy16/stormy16.c: Include reload.h.
12481         (xstormy16_memory_move_cost): New function.
12482         (TARGET_MEMORY_MOVE_COST): Define.
12483
12484 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
12485
12486         PR rtl-optimization/47925
12487         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12488         with side effects.  Remove the more-specific check for volatile asms.
12489
12490 2011-03-02  Alan Modra  <amodra@gmail.com>
12491
12492         PR target/47935
12493         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12494         toc relative addresses for valid offsets.
12495
12496 2011-03-01  Richard Guenther  <rguenther@suse.de>
12497
12498         PR tree-optimization/47890
12499         * tree-vect-loop.c (get_initial_def_for_induction): Set
12500         related stmt properly.
12501
12502 2011-03-01  Richard Guenther  <rguenther@suse.de>
12503
12504         PR lto/47924
12505         * lto-streamer.c (lto_record_common_node): Also register
12506         the canonical type.
12507
12508 2011-03-01  Richard Guenther  <rguenther@suse.de>
12509
12510         PR lto/46911
12511         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12512         Do not stream DECL_ABSTRACT_ORIGIN.
12513         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12514         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12515         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12516         Do not stream DECL_ABSTRACT_ORIGIN.
12517         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12518         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12519
12520 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
12521
12522         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12523         FUNCTION_VALUE_REGNO_P): Remove.
12524         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12525         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12526         Add 'outgoing' argument.
12527         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12528         function.
12529         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12530         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12531
12532 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
12533
12534         PR debug/28047
12535         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12536         (lookup_filename): Likewise.
12537         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12538
12539 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
12540             Jakub Jelinek  <jakub@redhat.com>
12541
12542         PR middle-end/47893
12543         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12544         (assign_stack_local_1): Change last argument type to int.
12545         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12546         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
12547         don't record padding space into frame_space_list nor use those areas.
12548         (assign_stack_local): Adjust caller.
12549         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12550         of assign_stack_local, pass 0 as last argument.
12551         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12552         callers.
12553
12554 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
12555
12556         PR debug/47283
12557         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12558         Use target address_mode and pointer_mode hooks instead of hardcoded
12559         Pmode and ptr_mode.  Handle some simple cases of extending if
12560         POINTERS_EXTEND_UNSIGNED < 0.
12561         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12562         Call convert_debug_memory_address.
12563         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12564         convert_debug_memory_address.
12565
12566         PR middle-end/46790
12567         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12568         * configure: Regenerated.
12569         * config.in: Regenerated.
12570         * varasm.c (default_function_section): Return NULL
12571         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12572
12573 2011-02-28  Martin Jambor  <mjambor@suse.cz>
12574
12575         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12576         the description to match the printed values.
12577
12578 2011-02-28  Richard Guenther  <rguenther@suse.de>
12579
12580         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12581         of the copied scope tree.
12582
12583 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12584
12585         * doc/extend.texi (Function Attributes): Avoid deeply (and
12586         wrongly) nested tables.
12587
12588 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
12589
12590         PR middle-end/47903
12591         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12592         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12593         r isn't op0 nor op1.
12594
12595 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
12596
12597         * config/avr/avr.md: Remove magic comment for emacs.
12598
12599 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
12600
12601         PR target/45261
12602         * config/avr/avr.c (avr_option_override): Use error on bad options.
12603         (avr_help): New function.
12604         (TARGET_HELP): Define.
12605
12606 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
12607
12608         PR target/42240
12609         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12610         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12611
12612 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
12613
12614         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12615         (ARM Options): Ditto.
12616         (i386 and x86-64 Options): Ditto.
12617         (RX Options): Ditto.
12618         (SPARC Options): Ditto.
12619
12620 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
12621
12622         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12623         FreeBSD 6 and later.  Generally use cpu generic.
12624
12625 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
12626
12627         * doc/cpp.texi: Update copyright years.
12628
12629 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12630
12631         PR target/46898
12632         * config/lm32/lm32.md (ashrsi3): Added needed variable.
12633
12634 2011-02-25  Jon Beniston  <jon@beniston.com>
12635
12636         PR target/46898
12637         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12638         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12639         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12640         (lm32_block_move_inline): Add type cast to remove warning.
12641         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12642         (gen_int_relational): Move declarations to start of function.
12643
12644 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12645
12646         PR tree-optimization/45470
12647         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12648         can throw internally only.
12649         * tree-vect-stmts.c (vectorizable_call): Likewise.
12650
12651 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
12652
12653         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12654         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12655         * config/stormy16/stormy16-protos.h
12656         (xstormy16_preferred_reload_class): Remove.
12657         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12658         static. Change 'rclass' argument and return type to reg_class_t.
12659         (TARGET_PREFERRED_RELOAD_CLASS,
12660         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12661
12662 2011-02-24  Richard Guenther  <rguenther@suse.de>
12663
12664         * lto-streamer-in.c (input_bb): Do not find referenced vars
12665         in debug statements.
12666
12667 2011-02-23  Jason Merrill  <jason@redhat.com>
12668
12669         * common.opt (fabi-version): Document v5 and v6.
12670
12671 2011-02-23  Richard Guenther  <rguenther@suse.de>
12672
12673         PR tree-optimization/47849
12674         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12675
12676 2011-02-23  Jie Zhang  <jie@codesourcery.com>
12677
12678         * opts-common.c (decode_cmdline_option): Print empty string
12679         argument as "" in decoded->orig_option_with_args_text.
12680         * gcc.c (execute): Print empty string argument as ""
12681         in the verbose output.
12682         (do_spec_1): Keep empty string argument.
12683
12684 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
12685
12686         * config.gcc: Declare score-* and crx-* obsolete.
12687
12688 2011-02-23  Jie Zhang  <jie@codesourcery.com>
12689
12690         PR rtl-optimization/47763
12691         * web.c (web_main): Ignore naked clobber when replacing register.
12692
12693 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
12694
12695         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12696         Remove.
12697
12698 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
12699
12700         PR doc/47848
12701         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12702
12703 2011-02-22  Mike Stump  <mikestump@comcast.net>
12704
12705         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12706         assembler.
12707         * configure: Regenerate.
12708
12709 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
12710
12711         PR rtl-optimization/46002
12712         * ira-color.c (update_copy_costs): Change class intersection
12713         test to reg_class_contents[] test of 'hard_regno'.
12714
12715 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
12716
12717         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12718         than Driver option.
12719         * config/hpux11.opt (mt): Likewise.
12720         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12721         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12722         * config/vax/elf.opt (mno-asm-pic): Likewise.
12723         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12724
12725 2011-02-21  Mike Stump  <mikestump@comcast.net>
12726
12727         PR target/47822
12728         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12729         tree so we can get save the type.
12730         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12731         for CFString instead of trying to use past the end of the builtins.
12732         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12733         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12734         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12735         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12736         Rename to darwin_builtin_cfstring.
12737         (darwin_init_cfstring_builtins): Return the built type.
12738
12739 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
12740
12741         PR target/47840
12742         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12743         (_mm256_insert_epi64): Use _mm_insert_epi64.
12744
12745 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
12746
12747         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12748         * config/stormy16/stormy16-protos.h
12749         (xstormy16_mode_dependent_address_p): Remove.
12750         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12751         Make static. Change return type to bool. Change argument type to
12752         const_rtx. Remove dead code.
12753         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12754
12755 2011-02-21  Richard Guenther  <rguenther@suse.de>
12756
12757         PR lto/47820
12758         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12759         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12760         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12761         TUs context.
12762         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12763         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12764
12765 2011-02-20  Richard Guenther  <rguenther@suse.de>
12766
12767         PR lto/47822
12768         * tree.c (free_lang_data_in_decl): Clean builtins from
12769         the TU decl BLOCK_VARS.
12770
12771 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
12772
12773         PR debug/47620
12774         PR debug/47630
12775         * haifa-sched.c (fix_tick_ready): Skip tick computation
12776         for debug insns.
12777
12778 2011-02-19  Richard Guenther  <rguenther@suse.de>
12779
12780         PR lto/47647
12781         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12782         Remove lazy BLOCK_VARS streaming.
12783         (lto_input_ts_block_tree_pointers): Likewise.
12784         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12785
12786 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12787
12788         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12789
12790 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12791
12792         * config/i386/biarch32.h, config/i386/mach.h,
12793         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12794
12795 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
12796
12797         PR target/47800
12798         * config/i386/i386.md (peephole2 for shift and plus): Use
12799         operands[1] original mode in the first insn.
12800
12801 2011-02-18  Mike Stump  <mikestump@comcast.net>
12802
12803         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12804
12805 2011-02-18  Jan Hubicka  <jh@suse.cz>
12806
12807         PR middle-end/47788
12808         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12809         to zero when the function is not inlinable at all.
12810
12811 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12812
12813         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12814         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12815         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12816         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12817         * config/pa/t-pa64: Likewise.
12818         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12819
12820 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12821
12822         PR driver/47787
12823         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12824
12825 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12826
12827         PR target/47792
12828         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12829
12830 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
12831
12832         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12833         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12834         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12835         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12836         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12837         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12838         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12839         m32r_load_postinc_p, m32r_store_preinc_predec_p,
12840         m32r_legitimate_address_p): New functions.
12841         * config/m32r/constraints.md (constraint "S"): Don't use
12842         STORE_PREINC_PREDEC_P.
12843         (constraint "U"): Don't use LOAD_POSTINC_P.
12844
12845 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
12846
12847         PR rtl-optimization/46178
12848         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12849         compute ira_hard_regno_cover_class[].
12850
12851 2011-02-18  Richard Guenther  <rguenther@suse.de>
12852
12853         PR lto/47798
12854         * lto-streamer.h (lto_global_var_decls): Declare.
12855         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12856         statics for global var processing.
12857
12858 2011-02-18  Richard Guenther  <rguenther@suse.de>
12859
12860         PR tree-optimization/47737
12861         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12862         edge dominance check.
12863
12864 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12865
12866         PR debug/47780
12867         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12868         avoid invalid rtx sharing.
12869
12870 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
12871
12872         * doc/cpp.texi (Obsolete Features): Add background on the
12873         origin of assertions.
12874
12875 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
12876
12877         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12878         objc_abi == 2.
12879         * config/darwin.c (output_objc_section_asm_op): Added support for
12880         ABI v1 and v2.
12881         (is_objc_metadata): New.
12882         (darwin_objc2_section): New.
12883         (darwin_objc1_section): New.
12884         (machopic_select_section): Added support for ABI v1 and v2.
12885         (darwin_emit_objc_zeroed): New.
12886         (darwin_output_aligned_bss): Detect objc metadata and treat it
12887         appropriately.
12888         (darwin_asm_output_aligned_decl_common): Same.
12889         (darwin_asm_output_aligned_decl_local): Same.
12890         * config/darwin-sections.def: Updated for ABI v1 and v2.
12891         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12892         compiling Objective-C code for the NeXT runtime, default to using
12893         ABI version 0 for 32-bit, and version 2 for 64-bit.
12894
12895 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12896
12897         * common.opt (optimize_fast): New Variable.
12898         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12899         instead of local variable ofast.
12900
12901 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12902
12903         * doc/invoke.texi (fobjc-abi-version): Documented.
12904         (fobjc-nilcheck): Documented.
12905         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12906         version.
12907
12908 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12909
12910         PR driver/47390
12911         * common.opt (export-dynamic): New Driver option.
12912         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12913
12914 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12915
12916         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12917
12918 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12919             Jan Hubicka  <jh@suse.cz>
12920
12921         PR debug/47106
12922         PR debug/47402
12923         * cfgexpand.c (account_used_vars_for_block): Remove.
12924         (estimated_stack_frame_size): Use referenced vars.
12925         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12926         that were referenced in the original function.  Test src_fn
12927         rather than cfun.  Drop redundant get_var_ann.
12928         (setup_one_parameter): Drop redundant get_var_ann.
12929         (declare_return_variable): Likewise.
12930         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12931         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12932         * ipa-inline.c (compute_inline_parameters): Do not compute
12933         disregard_inline_limits here.
12934         (compute_inlinable_for_current, pass_inlinable): New.
12935         (pass_inline_parameters): Require PROP_referenced_vars.
12936         * cgraphunit.c (cgraph_process_new_functions): Don't run
12937         compute_inline_parameters explicitly unless function is in SSA form.
12938         (cgraph_analyze_function): Set .disregard_inline_limits.
12939         * tree-sra.c (convert_callers): Compute inliner parameters
12940         only for functions already in SSA form.
12941
12942 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12943
12944         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12945         -mlittle-endian-data.
12946
12947 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12948
12949         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12950         -mno-fpu, not -fpu and -no-fpu.
12951         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12952         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12953
12954 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12955
12956         PR target/43653
12957         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12958         input reload with PLUS RTX.
12959
12960 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12961
12962         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12963         of InverseVar(MDMX).
12964
12965 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12966
12967         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12968         --m4-340.
12969
12970 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12971
12972         * config/mn10300/mn10300.opt (mno-crt0): New.
12973
12974 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12975
12976         * config/m68k/uclinux.opt (static-libc): New Driver option.
12977
12978 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12979
12980         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12981
12982 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12983
12984         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12985         %{muser-extend-enabled}.
12986
12987 2011-02-16  Richard Guenther  <rguenther@suse.de>
12988
12989         PR tree-optimization/47738
12990         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12991         the TODO from tree_predictive_commoning.
12992
12993 2011-02-15  Jeff Law  <law@redhat.com>
12994
12995         Revert
12996         2011-01-25  Jeff Law  <law@redhat.com>
12997
12998         PR rtl-optimization/37273
12999         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13000         handle them like argument loads from stack slots.  Do not double
13001         count memory for memory constants and argument loads from stack slots.
13002
13003 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13004
13005         PR middle-end/47725
13006         * combine.c (cant_combine_insn_p): Revert the last change.
13007
13008 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
13009
13010         PR target/47755
13011         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13012         mode for vector constants.  Remove code that checks for TImode.
13013
13014 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13015
13016         PR debug/47106
13017         PR debug/47402
13018         * cgraph.h (compute_inline_parameters): Return void.
13019         * ipa-inline.c (compute_inline_parameters): Adjust.
13020
13021 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13022
13023         PR debug/47106
13024         PR debug/47402
13025         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13026         rather than decl.
13027         * cfgexpand.c (estimated_stack_frame_size): Likewise.
13028         * ipa-inline.c (compute_inline_parameters): Adjust.
13029
13030 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13031
13032         PR debug/47106
13033         PR debug/47402
13034         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13035         Adjust all users.  Pass FN to...
13036         * tree-flow-inline.h (first_referenced_var): ... this.  Add
13037         fn argument.
13038         * ipa-struct-reorg.c: Adjust.
13039         * tree-dfa.c: Adjust.
13040         * tree-into-ssa.c: Adjust.
13041         * tree-sra.c: Adjust.
13042         * tree-ssa-alias.c: Adjust.
13043         * tree-ssa-live.c: Adjust.
13044         * tree-ssa.c: Adjust.
13045         * tree-ssanames.c: Adjust.
13046         * tree-tailcall.c: Adjust.
13047
13048 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13049
13050         PR debug/47106
13051         PR debug/47402
13052         * tree-flow.h (referenced_var_lookup): Add fn parameter.
13053         Adjust all callers.
13054         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13055         * tree-flow-inline.h: Adjust.
13056         * gimple-pretty-print.c: Adjust.
13057         * tree-into-ssa.c: Adjust.
13058         * tree-ssa.c: Adjust.
13059         * cfgexpand.c: Adjust.
13060
13061 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13062
13063         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13064         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13065         (EXTRA_CONSTRAINT): Delete.
13066         * config/iq2000/constraints.md: New file.
13067         * config/iq2000/iq2000.md: Include it.
13068         (define_insn ""): Delete.
13069         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13070         unsupported constraint letters from patterns.
13071         (call_value, call_value_internal1): Likewise.
13072         (call_value_multiple_internal1): Likewise.
13073
13074 2011-02-15  Nick Clifton  <nickc@redhat.com>
13075
13076         * config/mn10300/mn10300.c: Include tm-constrs.h.
13077         (struct liw_data): New data structure describing an LIW candidate
13078         instruction.
13079         (extract_bundle): Use struct liw_data.  Allow small integer
13080         operands for some instructions.
13081         (check_liw_constraints): Use struct liw_data.  Remove swapped
13082         parameter.  Add comments describing the checks.  Fix bug when
13083         assigning the source of liw1 to the source of liw2.
13084         (liw_candidate): Delete.  Code moved into extract_bundle.
13085         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
13086         before swapping.
13087         * config/mn10300/predicates.md (liw_operand): New predicate.
13088         Allows registers and small integer constants.
13089         * config/mn10300/constraints.md (O): New constraint.  Accetps
13090         integers in the range -8 to +7 inclusive.
13091         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13092         for moving a small integer into a register.  Give this alternative
13093         LIW attributes.
13094         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13095         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13096         using the J,K,L and M constraints,
13097         (liw): Remove SI mode on second operands to allow for HI and QI
13098         mode values.
13099         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
13100         instruction.
13101
13102 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13103
13104         PR middle-end/47725
13105         * combine.c (cant_combine_insn_p): Check zero/sign extended
13106         hard registers.
13107
13108 2011-02-15  Richard Guenther  <rguenther@suse.de>
13109
13110         PR tree-optimization/47743
13111         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13112         for a non-type-compatible VN lookup bail out.
13113
13114 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13115
13116         * config/fr30/constraints.md: New file.
13117         * config/fr30/fr30.md: Include it.
13118         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13119         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13120         (EXTRA_CONSTRAINT): Delete.
13121
13122 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13123
13124         * config/frv/constraints.md: New file.
13125         * config/frv/predicates.md: Include it.
13126         * config/frv/frv.c (reg_class_from_letter): Delete.
13127         (frv_option_override): Don't initialize it.
13128         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13129         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13130         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13131         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13132         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13133         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13134         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13135         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13136         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13137         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13138         (REG_CLASS_FROM_CONSTRAINT): Delete.
13139
13140 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
13141
13142         PR middle-end/47581
13143         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13144         if frame size is 0 in a leaf function.
13145
13146 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13147
13148         PR pch/14940
13149         * config/alpha/host-osf.c: New file.
13150         * config/alpha/x-osf: New file.
13151         * config.host (alpha*-dec-osf*): Use it.
13152
13153 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13154
13155         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13156         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13157         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13158         (rx_mode_dependent_address_p): ...this. Make static. Change argument
13159         type to const_rtx.
13160         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13161
13162 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13163
13164         * config/stormy16/constraints.md: New file.
13165         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13166         Use satisfies_constraint_Q and satisfies_constraint_R.
13167         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13168         Delete.
13169         (xstormy16_legitiamte_address_p): Declare.
13170         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13171         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13172         (EXTRA_CONSTRAINT): Delete.
13173         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13174         Un-staticize.
13175         (xstormy16_extra_constraint_p): Delete.
13176
13177 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13178
13179         PR tree-optimization/46494
13180         * loop-unroll.c (split_edge_and_insert): Adjust comment.
13181         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13182         (pass_rtl_loop_done): Add TODO_verify_flow.
13183         * fwprop.c (pass_rtl_fwprop): Likewise.
13184         * modulo-sched.c (pass_sms): Likewise.
13185         * tree-ssa-dom.c (pass_dominator): Likewise.
13186         * tree-ssa-loop-ch.c (pass_ch): Likewise.
13187         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13188         (pass_tree_loop_done): Likewise.
13189         * tree-ssa-pre.c (execute_pre): Likewise.
13190         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13191         * tree-ssa-sink.c (pass_sink_code): Likewise.
13192         * tree-vrp.c (pass_vrp): Likewise.
13193
13194 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13195
13196         * config/v850/constraints.md: New file.
13197         * config/v850/v850.md: Include it.
13198         * config/v850/predicates.md (reg_or_0_operand): Use
13199         satisfies_constraint_G.
13200         (special_symbolref_operand): Use satisfies_constraint_K.
13201         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13202         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13203         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13204         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13205         (EXTRA_CONSTRAINT): Delete.
13206         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13207         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13208         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13209
13210 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13211
13212         PR target/47696
13213         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13214         description.
13215
13216 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13217
13218         * config/mcore/constraints.md: New file.
13219         * config/mcore/mcore.md: Include it.
13220         * config/mcore/mcore.c (reg_class_from_letter): Delete.
13221         * config/mcore/mcore.h (reg_class_from_letter): Delete.
13222         (REG_CLASS_FROM_LETTER): Delete.
13223         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13224         insn_const_int_ok_for_constraint.
13225         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13226         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13227         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13228         (EXTRA_CONSTRAINT): Delete.
13229
13230 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13231
13232         PR ada/41929
13233         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13234         (IS_SIGHANDLER): Define.
13235         (sparc64_is_sighandler): New function, split off from
13236         sparc64_fallback_frame_state.
13237         (sparc_is_sighandler): New function, split off from
13238         sparc_fallback_frame_state.
13239         (sparc64_fallback_frame_state): Merge with ...
13240         (sparc_fallback_frame_state): ... this into ...
13241         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13242         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
13243         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
13244         stack instead of hardcoded offsets.
13245
13246 2011-02-14  Andriy Gapon  <avg@freebsd.org>
13247
13248         PR target/45808
13249         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13250
13251 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13252
13253         * configure: Regenerate.
13254
13255 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
13256
13257         PR driver/45731
13258         * gcc.c (asm_options): Correct spec matching --target-help.
13259
13260 2011-02-12  Martin Jambor  <mjambor@suse.cz>
13261
13262         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13263         to gimple call error.
13264
13265 2011-02-12  Mike Stump  <mikestump@comcast.net>
13266
13267         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13268         comments in backslash regions.
13269
13270 2011-02-12  Mike Stump  <mikestump@comcast.net>
13271             Jakub Jelinek  <jakub@redhat.com>
13272             Iain Sandoe  <iains@gcc.gnu.org>
13273
13274         PR target/47324
13275         * dwarf2out.c (output_cfa_loc): When required, apply the
13276         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13277         (output_loc_sequence): Likewise.
13278         (output_loc_operands_raw): Likewise.
13279         (output_loc_sequence_raw): Likewise.
13280         (output_cfa_loc): Likewise.
13281         (output_loc_list): Suppress register number adjustment when
13282         calling output_loc_sequence()
13283         (output_die): Likewise.
13284
13285 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
13286
13287         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13288         Remove macros.
13289         * config/xtensa/xtensa.c (xtensa_register_move_cost,
13290         xtensa_memory_move_cost): New functions.
13291         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13292
13293 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
13294
13295         PR lto/47225
13296         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13297         in the current directory.
13298         * configure: Rebuilt.
13299
13300 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
13301
13302         * config/darwin.c (darwin_override_options): Add a hunk missed
13303         from the commit of r168571.  Trim comment line lengths and
13304         correct indents of the preceding block.
13305
13306 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
13307
13308         * gcc.c (driver_handle_option): Concatenate the argument to -F with
13309         the switch.
13310
13311 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
13312
13313         * common.opt (nostartfiles): New Driver option.
13314
13315 2011-02-11  Xinliang David Li  <davidxl@google.com>
13316
13317         PR tree-optimization/47707
13318         * tree-chrec.c (convert_affine_scev): Keep type precision.
13319
13320 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
13321
13322         PR tree-optimization/47420
13323         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13324
13325 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
13326
13327         PR rtl-optimization/47614
13328         * rtl.h (check_for_inc_dec): Declare.
13329         * dse.c (check_for_inc_dec): Externalize...
13330         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13331         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13332
13333 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
13334
13335         PR driver/47678
13336         * gcc.c (main): Do not compile inputs if there were errors in
13337         option handling.
13338         * opts-common.c (read_cmdline_option): Check for wrong language
13339         after other error checks.
13340
13341 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
13342
13343         * cgraph.c: Fix comment typos.
13344         * cgraph.h: Likewise.
13345         * cgraphunit.c: Likewise.
13346         * ipa-cp.c: Likewise.
13347         * ipa-inline.c: Likewise.
13348         * ipa-prop.c: Likewise.
13349         * ipa-pure-const.c: Likewise.
13350         * ipa-ref.c: Likewise.
13351         * ipa-reference.c: Likewise.
13352
13353 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13354
13355         PR debug/47684
13356         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13357
13358 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13359
13360         PR testsuite/47400
13361         * doc/sourcebuild.texi (Require Support): Document
13362         dg-require-ascii-locale.
13363
13364 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
13365
13366         * doc/lto.texi (Write summary): Fix missing parentheses.
13367
13368 2011-02-10  DJ Delorie  <dj@redhat.com>
13369
13370         * config/m32c/m32c.c (m32c_option_override): Disable
13371         -fcombine-stack-adjustments until flag value tracking and compare
13372         optimization can be rewritten.
13373
13374 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
13375
13376         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13377         PROCESSOR_POWER7.
13378         (PROCESSOR_DEFAULT64): Likewise.
13379
13380 2011-02-10  Richard Henderson  <rth@redhat.com>
13381
13382         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13383         change from 2011-02-03.
13384         * config/rx/rx.c (flags_from_code): Likewise.
13385         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13386         is valid, n/pz otherwise.
13387         (rx_select_cc_mode): Return CCmode if Y is not zero.
13388
13389 2011-02-10  Richard Guenther  <rguenther@suse.de>
13390
13391         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13392
13393 2011-02-10  Richard Guenther  <rguenther@suse.de>
13394
13395         PR tree-optimization/47677
13396         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13397
13398 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
13399
13400         PR target/47665
13401         * combine.c (make_compound_operation): Only change shifts into
13402         multiplication for SCALAR_INT_MODE_P.
13403
13404 2011-02-10  Jie Zhang  <jie@codesourcery.com>
13405
13406         PR testsuite/47622
13407         Revert
13408         2011-02-05  Jie Zhang  <jie@codesourcery.com>
13409         PR debug/42631
13410         * web.c (entry_register): Don't clobber the number of the
13411         first uninitialized reference in used[].
13412
13413 2011-02-09  Richard Guenther  <rguenther@suse.de>
13414
13415         PR tree-optimization/47664
13416         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13417         all edges again.
13418
13419 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
13420
13421         PR target/46481
13422         PR target/47032
13423         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13424         PROCESSOR_POWER7.
13425         (PROCESSOR_DEFAULT64): Same.
13426         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13427
13428 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13429
13430         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13431
13432 2011-02-09  Martin Jambor  <mjambor@suse.cz>
13433
13434         PR middle-end/45505
13435         * tree-sra.c (struct access): New flags grp_scalar_read and
13436         grp_scalar_write.  Changed description of assignment read and write
13437         flags.
13438         (dump_access): Dump new flags, reorder all of them.
13439         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13440         to detect multiple scalar reads.
13441         (analyze_access_subtree): Use the new scalar read write flags instead
13442         of the old flags.  Adjusted comments.
13443
13444 2011-02-08  DJ Delorie  <dj@redhat.com>
13445
13446         PR target/47548
13447         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13448         patterns.
13449
13450 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13451
13452         * config/m68k/uclinux.opt: New.
13453         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13454
13455 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13456
13457         * config/cris/elf.opt (sim): New Driver option.
13458
13459 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13460
13461         * config/xtensa/elf.opt: New.
13462         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13463
13464 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13465
13466         * config/vax/elf.opt: New.
13467         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13468
13469 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13470
13471         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13472
13473 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13474
13475         * config/gnu-user.opt: New.
13476         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13477         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13478         *-*-uclinux*): Use gnu-user.opt.
13479
13480 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
13481
13482         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13483         * config/i386/gnu.h (CPP_SPEC): Likewise.
13484
13485 2011-02-08  Ian Lance Taylor  <iant@google.com>
13486
13487         * common.opt (fcx-limited-range): Add SetByCombined flag.
13488         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13489         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13490         (fassociative-math, freciprocal-math): Likewise.
13491         (funsafe-math-optimizations): Likewise.
13492         * opth-gen.awk: Handle SetByCombined.
13493         * optc-gen.awk: Likewise.
13494         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13495         (set_unsafe_math_optimizations_flags): Likewise.
13496         * doc/options.texi (Option properties): Document SetByCombined.
13497
13498 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13499
13500         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13501         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13502         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13503         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13504         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13505
13506 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
13507
13508         PR tree-optimization/46834
13509         PR tree-optimization/46994
13510         PR tree-optimization/46995
13511         * graphite-sese-to-poly.c (used_outside_reduction): New.
13512         (detect_commutative_reduction): Call used_outside_reduction.
13513         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13514         translate_scalar_reduction_to_array only when at least one
13515         loop-phi/close-phi tuple has been detected.
13516
13517 2011-02-08  Richard Guenther  <rguenther@suse.de>
13518
13519         PR middle-end/47639
13520         * tree-vect-generic.c (expand_vector_operations_1): Update
13521         stmts here ...
13522         (expand_vector_operations): ... not here.  Cleanup EH info
13523         and the CFG if required.
13524
13525 2011-02-08  Richard Guenther  <rguenther@suse.de>
13526
13527         PR tree-optimization/47641
13528         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13529         require type compatibility.
13530
13531 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13532
13533         * gimple-low.c (lower_function_body): Don't remove the location of
13534         the return statement here.
13535         (lower_gimple_return): Do it here instead but only if the return
13536         statement is actually used twice.
13537
13538 2011-02-08  Richard Guenther  <rguenther@suse.de>
13539
13540         PR tree-optimization/47632
13541         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13542         unused up_to_stmt parameter, return whether cfg-cleanup is
13543         necessary, remove EH info properly.
13544         (forward_propagate_into_gimple_cond): Adjust caller.
13545         (forward_propagate_into_cond): Likewise.
13546         (forward_propagate_comparison): Likewise.
13547         (tree_ssa_forward_propagate_single_use_vars): Make
13548         forward_propagate_comparison case similar to the two others.
13549
13550 2011-02-08  Nick Clifton  <nickc@redhat.com>
13551
13552         * config/mn10300/mn10300.opt (mliw): New command line option.
13553         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13554         (liw_bundling): New automaton.
13555         (liw): New attribute.
13556         (liw_op): New attribute.
13557         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13558         (movsi_internal): Add LIW attributes.
13559         (andsi3): Likewise.
13560         (iorsi3): Likewise.
13561         (xorsi3): Likewise.
13562         (addsi3): Separate register and immediate alternatives.
13563         Add LIW attributes.
13564         (subsi3): Likewise.
13565         (cmpsi): Likewise.
13566         (aslsi3): Likewise.
13567         (lshrsi3): Likewise.
13568         (ashrsi3): Likewise.
13569         (liw): New pattern.
13570         * config/mn10300/mn10300.c (liw_op_names): New
13571         (mn10300_print_operand): Handle 'W' operand descriptor.
13572         (extract_bundle): New function.
13573         (check_liw_constraints): New function.
13574         (liw_candidate): New function.
13575         (mn10300_bundle_liw): New function.
13576         (mn10300_reorg): New function.
13577         (TARGET_MACHINE_DEPENDENT_REORG): Define.
13578         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13579         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13580         __LIW__ or __NO_LIW__.
13581         * doc/invoke.texi: Describe the -mliw command line option.
13582
13583 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13584
13585         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13586         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13587         pthread_mutex_unlock): Remove.
13588         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13589         * config/pa/t-pa64: Likewise.
13590         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13591         shared libc if not linking against libpthread.
13592         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13593
13594 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
13595
13596         PR target/47558
13597         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13598         on 10.6 and later to ensure that we always use the unwinder from
13599         the system.  Only add -no_compact_unwind when tarteting darwin
13600         10.6 or later.
13601
13602 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
13603
13604         PR target/46997
13605         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13606         (vec_interleave_lowv2sf): Ditto.
13607         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13608         (vec_extract_oddv2sf): Ditto.
13609
13610 2011-02-07  Mike Stump  <mikestump@comcast.net>
13611
13612         PR target/42333
13613         Add __ieee_divdc3 entry point.
13614         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13615         entry point.
13616         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13617         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13618         * config/darwin.c (darwin_rename_builtins): Add.
13619         * config/darwin-protos.h (darwin_rename_builtins): Add.
13620
13621 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
13622
13623         PR target/47636
13624         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13625         for the condition.
13626
13627 2011-02-07  Mike Stump  <mikestump@comcast.net>
13628
13629         * config/darwin.opt (mmacosx-version-min): Update default OS version.
13630
13631 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
13632
13633         PR target/47534
13634         * config/avr/libgcc.S (exit): Move .endfunc
13635
13636 2011-02-07  Richard Guenther  <rguenther@suse.de>
13637
13638         PR tree-optimization/47615
13639         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13640         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13641         (run_scc_vn): Initialize it.
13642         (visit_reference_op_load): Use it.
13643         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13644
13645 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13646
13647         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13648         DImode trapping arithmetic libfuncs.
13649
13650 2011-02-07  Richard Guenther  <rguenther@suse.de>
13651
13652         PR tree-optimization/47621
13653         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13654         two duplicates ...
13655         (execute_update_addresses_taken): ... here.  Make it more
13656         conservative in what we accept.
13657
13658 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
13659
13660         * config/sparc/freebsd.h (ASM_SPEC): Define.
13661         * config/sparc/vxworks.h (ASM_SPEC): Define.
13662
13663 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
13664
13665         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13666
13667 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
13668
13669         * doc/invoke.texi: Remove reference to compiler internals from
13670         user documentation.
13671
13672         * reg-notes.def: Remove REG_VALUE_PROFILE.
13673         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13674
13675 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
13676
13677         PR middle-end/47610
13678         * varasm.c (default_section_type_flags): If decl is NULL,
13679         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13680
13681 2011-02-05  Jie Zhang  <jie@codesourcery.com>
13682
13683         PR debug/42631
13684         * web.c (entry_register): Don't clobber the number of the
13685         first uninitialized reference in used[].
13686
13687 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
13688
13689         PR tree-optimization/46194
13690         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13691         (build_classic_dist_vector_1): Do not represent classic distance
13692         vectors when the access functions are variating in different loops.
13693
13694 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13695
13696         * config/mips/iris6.opt: New.
13697         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13698
13699 2011-02-04  Richard Henderson  <rth@redhat.com>
13700             Steve Ellcey  <sje@cup.hp.com>
13701
13702         PR target/46997
13703         * config/ia64/predicates.md (mux1_brcst_element): New.
13704         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13705         * config/ia64/ia64.c (ia64_unpack_assemble): New.
13706         (ia64_unpack_sign): New.
13707         (ia64_expand_unpack): Rewrite using new routines.
13708         (ia64_expand_widen_sum): Ditto.
13709         (ia64_expand_dot_prod_v8qi): Ditto.
13710         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13711         routines, add endian check.
13712         (pmpy2_even): Rename from pmpy2_r, add endian check.
13713         (pmpy2_odd): Rename from pmpy2_l, add endian check.
13714         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13715         (vec_widen_smult_hi_v4hi): Ditto.
13716         (vec_widen_umult_lo_v4hi): Ditto.
13717         (vec_widen_umult_hi_v4hi): Ditto.
13718         (mulv2si3): Change endian checks.
13719         (sdot_prodv4hi): Rewrite with new calls.
13720         (udot_prodv4hi): New.
13721         (vec_pack_ssat_v4hi): Add endian check.
13722         (vec_pack_usat_v4hi): Ditto.
13723         (vec_pack_ssat_v2si): Ditto.
13724         (max1_even): Rename from max1_r, add endian check.
13725         (max1_odd): Rename from max1_l, add endian check.
13726         (*mux1_rev): Format change.
13727         (*mux1_mix): Ditto.
13728         (*mux1_shuf): Ditto.
13729         (*mux1_alt): Ditto.
13730         (*mux1_brcst_v8qi): Use new predicate.
13731         (vec_extract_evenv8qi): Remove endian check.
13732         (vec_extract_oddv8qi): Ditto.
13733         (vec_interleave_lowv4hi): Format change.
13734         (vec_interleave_highv4hi): Ditto.
13735         (mix2_even): Rename from mix2_r, add endian check.
13736         (mix2_odd): Rename from mux2_l, add endian check.
13737         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13738         (vec_extract_evenodd_helper): Format change.
13739         (vec_extract_evenv4hi): Remove endian check.
13740         (vec_extract_oddv4hi): Remove endian check.
13741         (vec_interleave_lowv2si): Format change.
13742         (vec_interleave_highv2si): Format change.
13743         (vec_initv2si): Remove endian check.
13744         (vecinit_v2si): Add endian check.
13745         (reduc_splus_v2sf): Add endian check.
13746         (reduc_smax_v2sf): Ditto.
13747         (reduc_smin_v2sf): Ditto.
13748         (vec_initv2sf): Remove endian check.
13749         (fpack): Add endian check.
13750         (fswap): Add endian check.
13751         (vec_interleave_highv2sf): Add endian check.
13752         (vec_interleave_lowv2sf): Add endian check.
13753         (fmix_lr): Add endian check.
13754         (vec_setv2sf): Format change.
13755         (*vec_extractv2sf_0_be): Use shift to extract operand.
13756         (*vec_extractv2sf_1_be): New.
13757         (vec_pack_trunc_v4hi): Add endian check.
13758         (vec_pack_trunc_v2si): Format change.
13759
13760 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
13761
13762         PR inline-asm/23200
13763         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
13764         do bb, locus and block comparison and disallow loads if it is not set.
13765         (stmt_is_replaceable_p): New function.
13766         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13767         callers.
13768         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13769         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13770         SSA_NAME_DEF_STMT.
13771         * tree-flow.h (stmt_is_replaceable_p): New prototype.
13772
13773 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13774
13775         * config/rs6000/xilinx.opt: New.
13776         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13777
13778 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13781
13782 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
13783
13784         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13785         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13786         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13787         secondary_reload_info, xtensa_secondary_reload): Remove.
13788         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13789         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13790         (xtensa_preferred_reload_class): Make static. Change return and
13791         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13792         Use CONST_DOUBLE_P predicate.
13793         (xtensa_preferred_output_reload_class): New function.
13794         (xtensa_secondary_reload): Make static.
13795
13796 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
13797
13798         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13799         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13800         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13801
13802 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13803
13804         PR middle-end/31490
13805         * output.h (SECTION_RELRO): Define.
13806         (SECTION_MACH_DEP): Adjust.
13807         (get_variable_section): New prototype.
13808         * varpool.c (varpool_finalize_named_section_flags): New function.
13809         (varpool_assemble_pending_decls): Call it.
13810         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13811         * cgraphunit.c (cgraph_output_in_order): Call
13812         varpool_finalize_named_section_flags.
13813         * varasm.c (get_section): Allow section flags conflicts between
13814         relro and read-only sections if the section hasn't been declared yet.
13815         Set SECTION_OVERRIDE after diagnosing section type conflict.
13816         (get_variable_section): No longer static.
13817         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13818         readonly sections that need relocations.
13819         (decl_readonly_section_1): New function.
13820         (decl_readonly_section): Use it.
13821
13822         Revert:
13823         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
13824                     Steve Ellcey  <sje@cup.hp.com>
13825
13826         PR middle-end/31490
13827         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13828         if section attribute used.
13829
13830 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13831
13832         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13833         * config/darwin.c (SECTION_NO_ANCHOR): Define.
13834         (darwin_init_sections): Remove assertion.
13835
13836 2011-02-03  Nick Clifton  <nickc@redhat.com>
13837
13838         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13839         lt and ge.
13840         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13841         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13842         instead of "n" and "pz".
13843         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13844         CC_FLAG_S.
13845
13846 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13847
13848         PR target/47312
13849         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13850         fma, expand FMA_EXPR as fma{,f,l} call.
13851
13852         PR lto/47274
13853         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13854         copy them into a unsigned char variable and pass address of it to
13855         lto_output_data_stream.
13856
13857         PR target/47564
13858         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13859         around backend_init_target and lang_dependent_init_target calls.
13860         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13861         (verify_cgraph_node): Don't call set_cfun here.  Use
13862         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13863         Set error_found for incorrectly represented calls to thunks.
13864
13865 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13866
13867         PR debug/43092
13868         PR rtl-optimization/43494
13869         * rtl.h (for_each_inc_dec_fn): New type.
13870         (for_each_inc_dec): Declare.
13871         * rtlanal.c (struct for_each_inc_dec_ops): New type.
13872         (for_each_inc_dec_find_inc_dec): New fn.
13873         (for_each_inc_dec_find_mem): New fn.
13874         (for_each_inc_dec): New fn.
13875         * dse.c (struct insn_size): Remove.
13876         (replace_inc_dec, replace_inc_dec_mem): Remove.
13877         (emit_inc_dec_insn_before): New fn.
13878         (check_for_inc_dec): Use it, along with for_each_inc_dec.
13879         (canon_address): Pass mem modes to cselib_lookup.
13880         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
13881         (cselib_lookup_from_insn): Likewise.
13882         (cselib_subst_to_values): Likewise.
13883         * cselib.c (find_slot_memmode): New var.
13884         (cselib_find_slot): New fn.  Use it instead of
13885         htab_find_slot_with_hash everywhere.
13886         (entry_and_rtx_equal_p): Use find_slot_memmode.
13887         (autoinc_split): New fn.
13888         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13889         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13890         Deal with autoinc.  Special-case recursion into MEMs.
13891         (cselib_hash_rtx): Likewise.
13892         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13893         address and MEM modes.
13894         (cselib_subst_to_values): Add memmode, pass it on.
13895         Deal with autoinc.
13896         (cselib_lookup): Add memmode argument, pass it on.
13897         (cselib_lookup_from_insn): Add memmode.
13898         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13899         (struct cselib_record_autoinc_data): New.
13900         (cselib_record_autoinc_cb): New fn.
13901         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13902         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13903         (cselib_process_insn): ... here.
13904         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13905         to cselib_lookup.
13906         (add_uses): Likewise, also to cselib_subst_to_values.
13907         (add_stores): Likewise.
13908         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13909         cselib_subst_to_values.
13910         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13911         * gcse.c (do_local_cprop): Adjusted.
13912         * postreload.c (reload_cse_simplify_set): Adjusted.
13913         (reload_cse_simplify_operands): Adjusted.
13914         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13915
13916 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13917
13918         PR tree-optimization/45122
13919         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13920         unsafe assumptions when there's more than one loop exit.
13921
13922 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13923
13924         PR target/47272
13925         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13926         Document using vector double with the load/store builtins, and
13927         that the load/store builtins always use Altivec instructions.
13928
13929         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13930         to use altivec memory instructions, even on VSX.
13931         (vector_altivec_store_<mode>): Ditto.
13932
13933         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13934         function.
13935
13936         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13937         V2DF, V2DI support to load/store overloaded builtins.
13938
13939         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13940         altivec load/store builtins for V2DF/V2DI types.
13941
13942         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13943         set avoid indexed addresses on power6 if -maltivec.
13944         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13945         vector_altivec_load/vector_altivec_store builtins.
13946         (altivec_expand_st_builtin): Ditto.
13947         (altivec_expand_builtin): Add VSX memory builtins.
13948         (rs6000_init_builtins): Add V2DI types to internal types.
13949         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13950         load/store builtins.
13951         (rs6000_address_for_altivec): Insure memory address is appropriate
13952         for Altivec.
13953
13954         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13955         vec_vsx_ld and vec_vsx_st.
13956         (vsx_store_<mode>): Ditto.
13957
13958         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13959         variables to hold long long types for VSX vector memory builtins.
13960         (RS6000_BTI_unsigned_long_long): Ditto.
13961         (long_long_integer_type_internal_node): Ditti.
13962         (long_long_unsigned_type_internal_node): Ditti.
13963
13964         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13965         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13966         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13967
13968         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13969         short cuts.
13970         (vec_vsx_st): Ditto.
13971
13972 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13973
13974         * config/pa/pa-hpux10.opt: New.
13975         * config/hpux11.opt (pthread): New Driver option.
13976         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13977         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13978
13979 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * config/ia64/vms.opt: New.
13982         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13983
13984 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13985
13986         PR target/47580
13987         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13988         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13989         generator functions.
13990         (vsx_floatuns<VSi><mode>2): Ditto.
13991         (vsx_fix_trunc<mode><VSi>2): Ditto.
13992         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13993
13994 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13995
13996         * config/i386/djgpp.opt (posix): New Driver option.
13997
13998 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13999
14000         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14001         Move to the unsupported targets list.
14002
14003 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
14004
14005         PR rtl-optimization/47525
14006         * df-scan.c: Update copyright years.
14007         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14008         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14009
14010 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14011
14012         * config/i386/sysv4.h (TARGET_VERSION): Remove.
14013         (SUBTARGET_RETURN_IN_MEMORY): Remove.
14014         (ASM_OUTPUT_ASCII): Remove.
14015         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14016
14017 2011-02-02  Jeff Law  <law@redhat.com>
14018
14019         PR middle-end/47543
14020         * reload.c (find_reloads_address): Handle reg+d address where both
14021         components are invalid by reloading the entire address.
14022
14023 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
14024             Richard Guenther  <rguenther@suse.de>
14025
14026         PR tree-optimization/40979
14027         PR bootstrap/47044
14028         * passes.c (init_optimization_passes): After LIM call copy_prop
14029         and DCE to clean up.
14030         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14031
14032 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
14033
14034         PR tree-optimization/47576
14035         PR tree-optimization/47555
14036         * doc/invoke.texi (scev-max-expr-complexity): Documented.
14037         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14038         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14039         * tree-scalar-evolution.c (follow_ssa_edge): Use
14040         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14041
14042 2011-02-02  Richard Guenther  <rguenther@suse.de>
14043
14044         PR tree-optimization/47566
14045         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14046
14047 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
14048
14049         PR debug/47106
14050         PR debug/47402
14051         * tree-inline.c (declare_return_variable): Remove unused caller
14052         variable.
14053
14054         PR debug/47106
14055         PR debug/47402
14056         * tree-flow-inline.h (clear_is_used, is_used_p): New.
14057         * cfgexpand.c (account_used_vars_for_block): Use them.
14058         * tree-nrv.c (tree_nrv): Likewise.
14059         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14060         (dump_scope_block): Likewise.
14061         (remove_unused_locals): Likewise.
14062
14063         PR debug/47106
14064         PR debug/47402
14065         * tree-inline.c (declare_return_variable): Add result decl to
14066         local decls only once.
14067         * gimple-low.c (record_vars_into): Mark newly-created variables
14068         as referenced.
14069
14070 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
14071
14072         PR debug/47498
14073         PR debug/47501
14074         PR debug/45136
14075         PR debug/45130
14076         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14077         debug insns.
14078         (no_real_insns_p, schedule_block, set_priorities): Drop special
14079         treatment of boundary debug insns.
14080         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14081         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14082         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14083         (BOUNDARY_DEBUG_INSN_P): Likewise.
14084         (SCHEDULE_DEBUG_INSN_P): Likewise.
14085         * sched-rgn.c (init_ready_list): Drop special treatment of
14086         boundary debug insns.
14087         * final.c (rest_of_clean_state): Clear notes' BB.
14088
14089 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14090
14091         * config/openbsd.opt (assert=): New Driver option.
14092
14093 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14094
14095         * config/i386/nto.opt: New.
14096         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14097
14098 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14099
14100         * config/i386/netware.opt: New.
14101         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14102
14103 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14104
14105         * config/interix.opt (posix): New Driver option.
14106
14107 2011-02-01  DJ Delorie  <dj@redhat.com>
14108
14109         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14110
14111         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14112         class for A0/A1.
14113
14114 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
14115
14116         PR tree-optimization/47561
14117         * toplev.c (process_options): Print the Graphite flags.  Add
14118         flag_loop_flatten to the list of options requiring Graphite.
14119
14120 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14121
14122         * config/i386/cygming.opt (posix): New Driver option.
14123
14124 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14125
14126         * config/arm/vxworks.opt: New.
14127         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14128
14129 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14130
14131         * config/alpha/elf.opt: New.
14132         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14133         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14134
14135 2011-02-01  Richard Guenther  <rguenther@suse.de>
14136
14137         PR tree-optimization/47559
14138         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14139         store-motion on references that can throw.
14140
14141 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
14142
14143         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14144         * tree-pass.h (TDF_CSELIB): New macro.
14145         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14146         cselib_lookup): Check for it rather than for TDF_DETAILS.
14147
14148 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
14149
14150         PR driver/47547
14151         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14152         is HOST_BIT_BUCKET.
14153
14154         * opts.c (finish_options): Don't add x_aux_base_name if it is
14155         HOST_BIT_BUCKET.
14156
14157 2011-02-01  Richard Guenther  <rguenther@suse.de>
14158
14159         PR tree-optimization/47555
14160         Revert
14161         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
14162
14163         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14164
14165 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
14166
14167         PR gcc/46692
14168         * config/lm32/t-lm32: Add multilib for all CPU options.
14169
14170 2011-02-01  Richard Guenther  <rguenther@suse.de>
14171
14172         PR tree-optimization/47541
14173         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14174         sure to have a field at offset zero.
14175
14176 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14177
14178         * config/arc/arc.opt (EB, EL): New Driver options.
14179
14180 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14181
14182         * config/alpha/osf5.opt: New.
14183         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14184
14185 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14186
14187         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14188
14189 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
14190
14191         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14192         -floop-interchange.
14193         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14194         is an alias of -floop-interchange and that it requires the
14195         Graphite infrastructure.
14196         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14197         flag_loop_interchange based on the value of flag_tree_loop_linear.
14198
14199 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
14200             Richard Guenther  <rguenther@suse.de>
14201
14202         PR tree-optimization/47538
14203         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14204         type instead of r1type, except for comparisons.  For right
14205         shifts and comparisons punt if there are mismatches in
14206         sizetype vs. non-sizetype types.
14207
14208 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14209
14210         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14211         avx_runtime.
14212
14213 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14214
14215         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14216         version number.
14217         * configure: Regenerate.
14218
14219 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14220
14221         * configure.ac (gcc_cv_ld_static_option): Define.
14222         (gcc_cv_ld_dynamic_option): Define.
14223         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14224         instead.
14225         (HAVE_LD_STATIC_DYNAMIC): Update message.
14226         (LD_STATIC_OPTION): Define.
14227         (LD_DYNAMIC_OPTION): Define.
14228         * configure: Regenerate.
14229         * config.in: Regenerate.
14230         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14231         HAVE_LD_STATIC_DYNAMIC]: Use them.
14232
14233 2011-01-31  Nick Clifton  <nickc@redhat.com>
14234
14235         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14236         registers inside interrupt handlers if the handler is not a leaf
14237         function.
14238
14239 2011-01-31  Nick Clifton  <nickc@redhat.com>
14240
14241         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14242         reg_renumber returning an INVALID_REGNUM.
14243
14244 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
14245
14246         PR libgcj/44341
14247         * doc/install.texi: Document host options discarded when cross
14248         configuring target libraries.
14249
14250 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
14251
14252         Reverted:
14253         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
14254         PR debug/45136
14255         PR debug/45130
14256         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14257         debug insns.
14258         (no_real_insns_p, schedule_block, set_priorities): Drop special
14259         treatment of boundary debug insns.
14260         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14261         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14262         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14263         (BOUNDARY_DEBUG_INSN_P): Likewise.
14264         (SCHEDULE_DEBUG_INSN_P): Likewise.
14265         * sched-rgn.c (init_ready_list): Drop special treatment of
14266         boundary debug insns.
14267         * final.c (rest_of_clean-state): Clear notes' BB.
14268
14269 2011-01-31  Alan Modra  <amodra@gmail.com>
14270
14271         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14272         toc relative expressions as we do in print_operand_address.
14273
14274 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
14275
14276         * doc/extend.texi: Follow spelling conventions.
14277         * doc/invoke.texi: Fix a typo.
14278
14279 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
14280
14281         * config/hpux11.opt: New.
14282         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14283         ia64*-*-hpux*): Use hpux11.opt.
14284
14285 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
14286
14287         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14288         to tmake_file.
14289
14290 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14291
14292         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14293         support sites.
14294
14295 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14296
14297         * doc/install.texi (Binaries): Remove outdated reference for
14298         Motorola 68HC11/68HC12 downloads.
14299
14300 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14301
14302         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14303         Drepper's paper.
14304
14305 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
14306
14307         PR bootstrap/47147
14308         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14309         used by NetBSD.
14310
14311 2011-01-28  Ahmad Sharif  <asharif@google.com>
14312
14313         * value-prof.c (check_counter): Corrected error message.
14314
14315 2011-01-29  Jie Zhang  <jie@codesourcery.com>
14316
14317         * config/arm/arm.c (arm_legitimize_reload_address): New.
14318         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14319         arm_legitimize_reload_address.
14320         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14321
14322 2011-01-28  Ian Lance Taylor  <iant@google.com>
14323
14324         * godump.c (go_define): Ignore macros whose definitions include
14325         two adjacent operands.
14326
14327 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
14328
14329         PR target/42894
14330         * varasm.c (force_const_mem): Store copy of x in desc->constant
14331         instead of x itself.
14332         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14333         itself into REG_EQUAL note.
14334
14335 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
14336
14337         * config/freebsd.opt (posix, rdynamic): New Driver options.
14338
14339 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14340
14341         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14342         -Bstatic/-Bdynamic.
14343         * configure: Regenerate.
14344
14345 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
14346
14347         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14348         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14349
14350 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
14351
14352         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14353         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14354         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14355         (s390_preferred_reload_class): Make static. Change return and
14356         'rclass' argument type to reg_class_t.
14357
14358 2011-01-27  Jan Hubicka  <jh@suse.cz>
14359
14360         PR middle-end/46949
14361         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14362         (process_function_and_variable_attributes): Check defined weakrefs.
14363
14364 2011-01-27  Martin Jambor  <mjambor@suse.cz>
14365
14366         PR tree-optimization/47228
14367         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14368         build_ref_for_offset.
14369
14370 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14371
14372         * config/spu/spu-elf.h (ASM_SPEC): Remove.
14373
14374 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
14375
14376         PR rtl-optimization/46856
14377         * postreload.c (reload_combine_recognize_const_pattern): Do not
14378         separate cc0 setter and user on cc0 targets.
14379
14380 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
14381
14382         PR c/43082
14383         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14384         passed a VOID_TYPE expression, immediately emit an error and
14385         return error_mark_node.
14386
14387 2011-01-26  Jeff Law  <law@redhat.com>
14388
14389         PR rtl-optimization/47464
14390         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14391         rather than may_trap_p as needed.
14392
14393 2011-01-26  DJ Delorie  <dj@redhat.com>
14394
14395         PR rtl-optimization/46878
14396         * combine.c (insn_a_feeds_b): Check for the implicit cc0
14397         setter/user dependency as well.
14398
14399 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
14400
14401         PR rtl-optimization/44469
14402         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14403         after removing trivially dead basic blocks.
14404
14405 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14406
14407         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14408         * config/frv/frv.h (LINK_SPEC): Likewise.
14409         * config/i386/netware.h (LINK_SPEC): Likewise.
14410         * config/m68k/linux.h (ASM_SPEC): Likewise.
14411         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14412         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14413         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14414         * config/sparc/linux.h (ASM_SPEC): Likewise.
14415         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14416         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14417
14418 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14419
14420         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14421         * config/frv/frv.h (ASM_SPEC): Likewise.
14422         * config/m68k/linux.h (ASM_SPEC): Likewise.
14423         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14424         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14425         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14426         * config/sparc/linux.h (ASM_SPEC): Likewise.
14427         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14428         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14429
14430 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14431
14432         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14433         * config/frv/frv.h (LINK_SPEC): Likewise.
14434         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14435
14436 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14437
14438         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14439         * config/frv/frv.h (ASM_SPEC): Likewise.
14440         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14441         * config/m68k/linux.h (ASM_SPEC): Likewise.
14442         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14443         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14444         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14445         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14446         * config/sparc/linux.h (ASM_SPEC): Likewise.
14447         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14448         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14449         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14450
14451 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
14452
14453         PR target/46997
14454         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14455         (*mux2): Ditto.
14456         (vec_extract_evenodd_help): Ditto.
14457         (vec_extract_evenv4hi): Ditto.
14458         (vec_extract_oddv4hi): Ditto.
14459         (vec_interleave_lowv2si): Ditto.
14460         (vec_interleave_highv2si): Ditto.
14461         (vec_extract_evenv2si): Ditto.
14462         (vec_extract_oddv2si: Ditto.
14463         (vec_pack_trunc_v2si): Ditto.
14464
14465 2011-01-22  Jan Hubicka  <jh@suse.cz>
14466
14467         PR target/47237
14468         * cgraph.h (cgraph_local_info): New field can_change_signature.
14469         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14470         signature can change.
14471         (ipcp_estimate_growth): Call sequence simplify only if calle signature
14472         can change.
14473         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14474         (cgraph_function_versioning): We can not change signature of functions
14475         that don't allow that.
14476         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14477         (lto_input_node): Likewise.
14478         * ipa-inline.c (compute_inline_parameters): Compute
14479         local.can_change_signature.
14480         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14481         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14482         functions that can not change signature.
14483         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14484         init_cumulative_args): Do not use local calling conventions
14485         for functions that can not change signature.
14486
14487 2011-01-22  Jan Hubicka  <jh@suse.cz>
14488
14489         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14490
14491 2011-01-26  Richard Guenther  <rguenther@suse.de>
14492
14493         PR tree-optimization/47190
14494         * cgraphunit.c (process_common_attributes): New function.
14495         (process_function_and_variable_attributes): Use it.
14496
14497 2011-01-26  Richard Guenther  <rguenther@suse.de>
14498
14499         PR lto/47423
14500         * cgraphbuild.c (record_eh_tables): Record reference to personality
14501         function.
14502
14503 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
14504
14505         PR debug/45454
14506         * sel-sched.c (moveup_expr): Don't let debug insns prevent
14507         non-debug insns from moving up.
14508
14509 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
14510
14511         PR target/40125
14512         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14513         t-dlldir{,-x} fragment for build and add it to tmake_file.
14514         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14515         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14516         * config/i386/t-dlldir: New file.
14517         (SHLIB_DLLDIR): Define.
14518         * config/i386/t-dlldir-x: New file.
14519         (SHLIB_DLLDIR): Define.
14520         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14521         (SHLIB_INSTALL): Use it.
14522
14523 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
14524
14525         PR target/47246
14526         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14527         lower bound of the allowed Thumb-2 coprocessor load/store
14528         index range to -256. Add explaining comment.
14529
14530 2011-01-25  Ian Lance Taylor  <iant@google.com>
14531
14532         * godump.c (go_define): Improve lexing of macro expansion to only
14533         accept expressions which match Go spec.
14534
14535 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
14536
14537         PR c++/43601
14538         * tree.c (handle_dll_attribute): Handle it.
14539         * doc/extend.texi (@item dllexport): Mention it.
14540         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14541
14542 2011-01-25  Ian Lance Taylor  <iant@google.com>
14543
14544         PR tree-optimization/26854
14545         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14546         (decl_jump_unsafe): Move higher in file, with no other change.
14547         (bind): Set has_jump_unsafe_decl if appropriate.
14548         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14549         (check_earlier_gotos): Likewise.
14550         (c_check_switch_jump_warnings): Likewise.
14551
14552 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
14553
14554         * doc/invoke.texi (Warning Options): Add missing hyphen.
14555         (-fprofile-dir): Minor grammatical fixes.
14556         (-fbranch-probabilities): Likewise.
14557
14558 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
14559
14560         PR debug/45136
14561         PR debug/45130
14562         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14563         debug insns.
14564         (no_real_insns_p, schedule_block, set_priorities): Drop special
14565         treatment of boundary debug insns.
14566         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14567         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14568         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14569         (BOUNDARY_DEBUG_INSN_P): Likewise.
14570         (SCHEDULE_DEBUG_INSN_P): Likewise.
14571         * sched-rgn.c (init_ready_list): Drop special treatment of
14572         boundary debug insns.
14573         * final.c (rest_of_clean-state): Clear notes' BB.
14574
14575 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14576
14577         * Makefile.in (LAMBDA_H): Removed.
14578         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14579         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14580         lambda-trans.o, and tree-loop-linear.o.
14581         (lto-symtab.o): Remove dependence on LAMBDA_H.
14582         (tree-loop-linear.o): Remove rule.
14583         (lambda-mat.o): Same.
14584         (lambda-trans.o): Same.
14585         (lambda-code.o): Same.
14586         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14587         (tree-vect-slp.o): Same.
14588         * hwint.h (gcd): Moved here.
14589         (least_common_multiple): Same.
14590         * lambda-code.c: Removed.
14591         * lambda-mat.c: Removed.
14592         * lambda-trans.c: Removed.
14593         * lambda.h: Removed.
14594         * tree-loop-linear.c: Removed.
14595         * lto-symtab.c: Do not include lambda.h.
14596         * omega.c (gcd): Removed.
14597         * passes.c (init_optimization_passes): Remove pass_linear_transform.
14598         * tree-data-ref.c (print_lambda_vector): Moved here.
14599         (lambda_vector_copy): Same.
14600         (lambda_matrix_copy): Same.
14601         (lambda_matrix_id): Same.
14602         (lambda_vector_first_nz): Same.
14603         (lambda_matrix_row_add): Same.
14604         (lambda_matrix_row_exchange): Same.
14605         (lambda_vector_mult_const): Same.
14606         (lambda_vector_negate): Same.
14607         (lambda_matrix_row_negate): Same.
14608         (lambda_vector_equal): Same.
14609         (lambda_matrix_right_hermite): Same.
14610         * tree-data-ref.h: Do not include lambda.h.
14611         (lambda_vector): Moved here.
14612         (lambda_matrix): Same.
14613         (dependence_level): Same.
14614         (lambda_transform_legal_p): Removed declaration.
14615         (lambda_collect_parameters): Same.
14616         (lambda_compute_access_matrices): Same.
14617         (lambda_vector_gcd): Same.
14618         (lambda_vector_new): Same.
14619         (lambda_vector_clear): Same.
14620         (lambda_vector_lexico_pos): Same.
14621         (lambda_vector_zerop): Same.
14622         (lambda_matrix_new): Same.
14623         * tree-flow.h (least_common_multiple): Removed declaration.
14624         * tree-parloops.c (lambda_trans_matrix): Moved here.
14625         (LTM_MATRIX): Same.
14626         (LTM_ROWSIZE): Same.
14627         (LTM_COLSIZE): Same.
14628         (LTM_DENOMINATOR): Same.
14629         (lambda_trans_matrix_new): Same.
14630         (lambda_matrix_vector_mult): Same.
14631         (lambda_transform_legal_p): Same.
14632         * tree-pass.h (pass_linear_transform): Removed declaration.
14633         * tree-ssa-loop.c (tree_linear_transform): Removed.
14634         (gate_tree_linear_transform): Removed.
14635         (pass_linear_transform): Removed.
14636         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14637         flag_loop_interchange.
14638
14639 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14640
14641         PR tree-optimization/47265
14642         PR tree-optimization/47443
14643         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14644         if name still has some uses.
14645
14646 2011-01-25  Martin Jambor  <mjambor@suse.cz>
14647
14648         PR tree-optimization/47382
14649         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14650         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14651
14652 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
14653
14654         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14655         sjlj_except_unwind_info.
14656
14657 2011-01-25  Richard Guenther  <rguenther@suse.de>
14658
14659         PR tree-optimization/47426
14660         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14661         visible functions results escape.
14662
14663 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14664
14665         PR target/45701
14666         * config/arm/arm.c (any_sibcall_uses_r3): New function.
14667         (arm_get_frame_offsets): Use it.
14668
14669 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14670             Jakub Jelinek  <jakub@redhat.com>
14671
14672         PR tree-optimization/47271
14673         * tree-if-conv.c (bb_postdominates_preds): New.
14674         (if_convertible_bb_p): Call bb_postdominates_preds.
14675         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14676         (predicate_scalar_phi): Call bb_postdominates_preds.
14677
14678 2011-01-25  Nick Clifton  <nickc@redhat.com>
14679
14680         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14681         * config/rx/rx.c (rx_function_value): Likewise.
14682         (rx_promote_function_mode): Likewise.
14683         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14684         in order to make it legitimate.
14685         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14686         make sure that the first operand is the same as the result register.
14687         (addsi3_unspec): Delete.
14688         (subdi3): Do not accept immediate operands.
14689         (subdi3_internal): Likewise.
14690
14691 2011-01-25  Jeff Law  <law@redhat.com>
14692
14693         PR rtl-optimization/37273
14694         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14695         handle them like argument loads from stack slots.  Do not double
14696         count memory for memory constants and argument loads from stack slots.
14697
14698 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14699
14700         PR tree-optimization/47427
14701         PR tree-optimization/47428
14702         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14703         coalesce if the new root var would be TREE_READONLY.
14704
14705 2011-01-25  Richard Guenther  <rguenther@suse.de>
14706
14707         PR middle-end/47414
14708         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14709         correct type for TBAA.
14710
14711 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14712
14713         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14714         (close_phi_written_to_memory): Call for_each_index with
14715         dr_indices_valid_in_loop.
14716
14717 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14718
14719         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14720         when it is initialized.
14721
14722 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14723
14724         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14725         call to graphite_find_data_references_in_stmt.
14726         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14727         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
14728         call to graphite_find_data_references_in_stmt.
14729         (analyze_drs_in_stmts): Same.
14730         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14731         in which the scalar analysis of indices is performed.
14732         (create_data_ref): Same.  Update call to dr_analyze_indices.
14733         (find_data_references_in_stmt): Update call to create_data_ref.
14734         (graphite_find_data_references_in_stmt): Same.
14735         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14736         declaration.
14737         (create_data_ref): Same.
14738         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14739         call to create_data_ref.
14740
14741 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14742
14743         * graphite-sese-to-poly.c (build_poly_scop): Move
14744         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14745
14746 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14747
14748         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14749         VAR_DECL, PARM_DECL, and RESULT_DECL.
14750
14751 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14752
14753         * graphite-dependences.c (reduction_dr_1): Allow several reductions
14754         in a reduction PBB.
14755         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14756         that have already been marked as PBB_IS_REDUCTION.
14757
14758 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14759
14760         * graphite-scop-detection.c (same_close_phi_node): New.
14761         (remove_duplicate_close_phi): New.
14762         (make_close_phi_nodes_unique): New.
14763         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14764
14765 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14766
14767         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14768         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14769         of both data references to be the same.
14770
14771 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14772
14773         * graphite-dependences.c (build_lexicographical_constraint): Remove
14774         the gdim parameter.
14775         (build_lexicographical_constraint): Adjust call to
14776         ppl_powerset_is_empty.
14777         (dependence_polyhedron): Same.
14778         (graphite_legal_transform_dr): Same.
14779         (graphite_carried_dependence_level_k): Same.
14780         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14781         parameter.
14782         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14783
14784 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14785
14786         * graphite-sese-to-poly.c
14787         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14788         (close_phi_written_to_memory): New.
14789         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14790         and unshare_expr.
14791
14792 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14793
14794         * doc/install.texi: Update the expected version number of PPL to 0.11.
14795         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14796         #if PPL_VERSION_MINOR < 11.
14797
14798 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14799
14800         * graphite-dependences.c: Include graphite-cloog-util.h.
14801         (new_poly_ddr): Inlined into dependence_polyhedron.
14802         (free_poly_ddr): Moved close by new_poly_ddr.
14803         (dependence_polyhedron_1): Renamed dependence_polyhedron.
14804         Early return NULL when ppl_powerset_is_empty returns true.
14805         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
14806         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
14807         (graphite_legal_transform_dr): Call new_poly_ddr.
14808         (graphite_carried_dependence_level_k): Same.
14809         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
14810         (dot_transformed_deps_stmt_1): Removed.
14811         (dot_deps_stmt_1): Call dot_deps_stmt_2.
14812         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
14813         (dot_deps_1): Call dot_deps_2.
14814         * Makefile.in (graphite-dependences.o): Add missing dependence on
14815         graphite-cloog-util.h.
14816
14817 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14818
14819         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14820         (build_lexicographical_constraint): Same.
14821         (dependence_polyhedron_1): Same.
14822         (graphite_legal_transform_dr): Same.
14823         (graphite_carried_dependence_level_k): Same.
14824         * graphite-ppl.c (ppl_powerset_is_empty): New.
14825         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14826         * tree-data-ref.c (dump_data_reference): Print the basic block index.
14827
14828 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14829
14830         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14831         the "a followed by b" relation and document it.
14832
14833 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14834
14835         * graphite-dependences.c (build_lexicographical_constraint): Stop the
14836         iteration when the bag of constraints is empty.
14837
14838 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14839
14840         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14841
14842 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14843
14844         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14845         nest and two loop depths as parameters.
14846         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14847         lst_perfect_nestify.
14848
14849 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14850
14851         * graphite-dependences.c (print_pddr): Call
14852         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14853
14854 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14855
14856         * graphite-ppl.c (debug_gmp_value): New.
14857         * graphite-ppl.h (debug_gmp_value): Declared.
14858
14859 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
14860
14861         * doc/install.texi: Document availability of cloog-0.16.
14862
14863 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
14864
14865         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14866         invalid postdominance info.
14867
14868 2011-01-24  Jan Hubicka  <jh@suse.cz>
14869
14870         PR c/21659
14871         * doc/extend.texi (weak pragma): Drop claim that it must
14872         appear before definition.
14873         * varasm.c (merge_weak, declare_weak): Only sanity check
14874         that DECL is not output at a time it is declared weak.
14875
14876 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
14877
14878         * machmode.def: Fixed comments.
14879
14880 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
14881
14882         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14883
14884 2011-01-24  Paul Koning  <ni1d@arrl.net>
14885
14886         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14887         WORDS_BIG_ENDIAN.
14888
14889 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14890
14891         PR target/46519
14892         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14893         (block_info): Add scanned and prev.
14894         (move_or_delete_vzeroupper_2): Return if the basic block
14895         has been scanned and the upper 128bit state is unchanged
14896         from the last scan.
14897         (move_or_delete_vzeroupper_1): Return true if the exit
14898         state is changed.
14899         (move_or_delete_vzeroupper): Visit basic blocks using the
14900         work-list based algorithm based on vt_find_locations in
14901         var-tracking.c.
14902
14903         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14904
14905 2011-01-24  Nick Clifton  <nickc@redhat.com>
14906
14907         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14908         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14909         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14910         then define __v850e1__.
14911         * doc/invoke.texi: Document -mv850es.
14912
14913 2011-01-24  Richard Henderson  <rth@redhat.com>
14914
14915         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14916         compound unordered comparisons.
14917         * config/rx/rx.c (rx_split_fp_compare): Remove.
14918         * config/rx/rx-protos.h: Update.
14919         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14920         (cbranchsf4): Don't call rx_split_fp_compare.
14921         (*cbranchsf4): Use rx_split_cbranch.
14922         (*cmpsf): Don't accept "i" constraint.
14923         (*conditional_branch): Only valid after reload.
14924         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14925
14926 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14927
14928         PR target/47385
14929         * config/rs6000/altivec.md (vector constant splitters): Add
14930         support for creating vector single precision constants if -mvsx is
14931         used and we would create the constant using Altivec primitives.
14932
14933 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14934             Richard Sandiford  <rdsandiford@googlemail.com>
14935
14936         PR rtl-optimization/47166
14937         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14938         mechanism for PRE_MODIFY and POST_MODIFY.
14939         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14940         reloadreg.
14941
14942 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14943
14944         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14945
14946 2011-01-22  Jan Hubicka  <jh@suse.cz>
14947
14948         PR lto/47333
14949         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14950
14951 2011-01-22  Jan Hubicka  <jh@suse.cz>
14952
14953         PR tree-optimization/43884
14954         PR lto/44334
14955         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14956         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14957
14958 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14959
14960         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14961         * config/s390/s390.c (s390_register_move_cost,
14962         s390_memory_move_cost): New.
14963         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14964
14965 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14966
14967         PR middle-end/47401
14968         * except.c (sjlj_assign_call_site_values): Move setting the
14969         crtl->uses_eh_lsda flag to ...
14970         (sjlj_mark_call_sites): ... here.
14971         (sjlj_emit_function_enter): Support NULL dispatch label.
14972         (sjlj_build_landing_pads): In a function with no landing pads
14973         that still has must-not-throw regions, generate code to register
14974         a personality function with empty LSDA.
14975
14976 2011-01-21  Richard Henderson  <rth@redhat.com>
14977
14978         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14979
14980         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14981
14982         * compare-elim.c: New file.
14983         * Makefile.in (OBJS-common): Add it.
14984         (compare-elim.o): New.
14985         * common.opt (fcompare-elim): New.
14986         * opts.c (default_options_table): Add OPT_fcompare_elim.
14987         * tree-pass.h (pass_compare_elim_after_reload): New.
14988         * passes.c (init_optimization_passes): Add it.
14989         * recog.h: Protect against re-inclusion.
14990         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14991         * doc/invoke.texi (-fcompare-elim): Document it.
14992         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14993         * doc/tm.texi: Rebuild.
14994
14995 2011-01-22  Nick Clifton  <nickc@redhat.com>
14996
14997         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14998         rx_split_fp_compare.
14999
15000 2011-01-22  Nick Clifton  <nickc@redhat.com>
15001
15002         * config/rx/rx.md (UNSPEC_CONST): New.
15003         (deallocate_and_return): Wrap the amount popped off the stack in
15004         an UNSPEC_CONST in order to stop it being rejected by
15005         -mmax-constant-size.
15006         (pop_and_return): Add a "(return)" rtx.
15007         (call): Drop the immediate operand.
15008         (call_internal): Likewise.
15009         (call_value): Likewise.
15010         (call_value_internal): Likewise.
15011         (sibcall_internal): Likewise.
15012         (sibcall_value_internal): Likewise.
15013         (sibcall): Likewise.  Generate an explicit call using
15014         sibcall_internal.
15015         (sibcall_value): Likewise.
15016         (mov<>): FAIL if a constant operand is not legitimate.
15017         (addsi3_unpsec): New pattern.
15018
15019         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15020         (ok_for_max_constant): New function.
15021         (gen_safe_add): New function.
15022         (rx_expand_prologue): Use gen_safe_add.
15023         (rx_expand_epilogue): Likewise.
15024         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
15025         UNSPEC CONSTs.
15026
15027 2011-01-21  Jeff Law  <law@redhat.com>
15028
15029         PR tree-optimization/47053
15030         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15031         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15032         statements are deleted.
15033         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
15034         is nonempty, then purge dead edges and cleanup the CFG.
15035
15036 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15037
15038         PR debug/47402
15039         Temporarily revert:
15040         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15041         PR debug/47106
15042         * tree-dfa.c (create_var_ann): Mark variable as used.
15043
15044 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15045
15046         PR middle-end/45566
15047         * except.c (convert_to_eh_region_ranges): Emit queued no-region
15048         notes from other section in hot/cold partitioning even if
15049         last_action is -3.  Increment call_site_base.
15050
15051         PR rtl-optimization/47366
15052         * fwprop.c (forward_propagate_into): Return bool.  If
15053         any changes are made, -fnon-call-exceptions is used and
15054         REG_EH_REGION note is present, call purge_dead_edges
15055         and return true if it purged anything.
15056         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15057         any EH edges were purged.
15058
15059 2011-01-21  Jeff Law  <law@redhat.com>
15060
15061         PR rtl-optimization/41619
15062         * caller-save.c (setup_save_areas): Break out code to determine
15063         which hard regs are live across calls by examining the reload chains
15064         so that it is always used.
15065         Eliminate code which checked REG_N_CALLS_CROSSED.
15066
15067 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15068
15069         PR tree-optimization/47355
15070         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15071         NOP has non-debug uses beyond PHIs in new_bb.
15072
15073 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15074
15075         PR debug/47106
15076         * cfgexpand.c (account_used_vars_for_block): Only account vars
15077         that are annotated as used.
15078         (estimated_stack_frame_size): Don't set TREE_USED.
15079         * tree-dfa.c (create_var_ann): Mark variable as used.
15080
15081 2011-01-21  Richard Guenther  <rguenther@suse.de>
15082
15083         PR middle-end/47395
15084         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15085
15086 2011-01-21  Richard Guenther  <rguenther@suse.de>
15087
15088         PR tree-optimization/47365
15089         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15090         (vn_reference_lookup_pieces): Adjust.
15091         (vn_reference_lookup): Likewise.
15092         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15093         (vn_reference_lookup_3): Only look through kills if in
15094         VN_WALKREWRITE mode.
15095         (vn_reference_lookup_pieces): Adjust.
15096         (vn_reference_lookup): Likewise.
15097         (visit_reference_op_load): Likewise.
15098         (visit_reference_op_store): Likewise.
15099         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15100         (compute_avail): Likewise.
15101         (eliminate): Likewise.
15102
15103 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15104
15105         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15106         DECL_IGNORED_P non-reg vars if they are used.
15107
15108         PR tree-optimization/47391
15109         * varpool.c (const_value_known_p): Return false if
15110         decl is volatile.
15111
15112 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
15113
15114         PR bootstrap/47215
15115         * config/i386/i386.c (ix86_local_alignment): Handle
15116         case for va_list_type_node is nil.
15117         (ix86_canonical_va_list_type): Likewise.
15118
15119 2011-01-21  Alan Modra  <amodra@gmail.com>
15120
15121         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15122         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15123
15124 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15125
15126         * config/arm/arm.md (define_attr type): Rename f_load
15127         and f_store to f_fpa_load and f_fpa_store. Update.
15128         (write_conflict): Deal with rename fallout.
15129         (*push_fp_multi): Likewise.
15130         * config/arm/fpa.md (f_load): Use f_fpa_load.
15131         (f_store): Use f_fpa_store.
15132         (*movsf_fpa): Likewise.
15133         (*movdf_fpa): Likewise.
15134         (*movxf_fpa): Likewise.
15135         (*thumb2_movsf_fpa): Likewise.
15136         (*thumb2_movdf_fpa): Likewise.
15137         (*thumb2_movxf_fpa): Likewise.
15138         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15139         f_loadd and f_stored.
15140         (*thumb2_movdi_vfp): Likewise.
15141         (*thumb2_movsf_vfp): Fix attribute to f_loads.
15142         (*thumb2_movsi_vfp): Likewise.
15143         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15144         Use f_loads instead of f_load.
15145         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15146
15147 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
15148
15149         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15150         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15151         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15152         (xtensa_mode_dependent_address_p): New function.
15153         (constantpool_address_p): Make static. Change return type to bool.
15154         Change argument type to const_rtx. Use CONST_INT_P predicate.
15155
15156 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
15157
15158         PR debug/46583
15159         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15160
15161 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15162
15163         PR debug/47283
15164         * cfgexpand.c (expand_debug_expr): Instead of generating
15165         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15166         etc. handling.
15167
15168 2011-01-20  Richard Guenther  <rguenther@suse.de>
15169
15170         PR middle-end/47370
15171         * tree-inline.c (remap_gimple_op_r): Recurse manually for
15172         the pointer operand of MEM_REFs.
15173
15174 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15175
15176         PR tree-optimization/46130
15177         * ipa-split.c (consider_split): If return_bb contains non-virtual
15178         PHIs other than for retval or if split_function would not adjust it,
15179         refuse to split.
15180
15181 2011-01-20  Richard Guenther  <rguenther@suse.de>
15182
15183         PR tree-optimization/47167
15184         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15185         Revert previous change, only avoid enumeral type changes.
15186
15187 2011-01-19  Mike Stump  <mikestump@comcast.net>
15188
15189         * doc/tm.texi.in (BRANCH_COST): Englishify.
15190         * doc/tm.texi (BRANCH_COST): Likewise.
15191
15192 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
15193
15194         PR c++/47291
15195         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15196         (gen_scheduled_generic_parms_dies): New functions.
15197         (gen_struct_or_union_type_die): Schedule template parameters DIEs
15198         generation for the end of CU compilation.
15199         (dwarf2out_finish): Generate template parameters DIEs here.
15200
15201 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15202
15203         PR debug/46240
15204         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15205         debug bind stmt on merge edges.
15206
15207 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15208
15209         PR debug/47079
15210         PR debug/46724
15211         * function.c (instantiate_expr): Instantiate incoming rtl of
15212         implicit arguments, and recurse on VALUE_EXPRs.
15213         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15214         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15215
15216 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15217
15218         * c-parser.c (c_parser_for_statement): Initialize
15219         collection_expression.
15220
15221 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15222
15223         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15224
15225 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15226
15227         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15228         (LINK_SHLIB_SPEC): Don't use %(link_path).
15229         (SUBTARGET_EXTRA_SPECS): Remove link_path.
15230
15231 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15232
15233         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15234         (NO_SHARED_LIB_SUPPORT): Remove.
15235         (LINK_SHLIB_SPEC): Remove one conditional definition.
15236
15237 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15238
15239         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15240         %{call_shared}.
15241         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15242         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15243         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15244         %{call_shared} and conditionals on these options not being passed.
15245         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15246         %{call_shared}.
15247
15248 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
15249
15250         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15251         simplify.
15252
15253         * ipa-split.c: Spelling fixes.
15254
15255 2011-01-19  Richard Henderson  <rth@redhat.com>
15256
15257         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15258         (*mulsi3): Likewise.
15259
15260         * longlong.h [__mn10300__] (count_leading_zeros): New.
15261         [__mn10300__] (umul_ppmm, smul_ppmm): New.
15262         [__mn10300__] (add_ssaaaa, subddmmss): New.
15263         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15264         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15265
15266 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15267
15268         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15269
15270 2011-01-19  Richard Henderson  <rth@redhat.com>
15271
15272         * config/mn10300/mn10300.md (addsi3_flags): New.
15273         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15274         (subsi3_flags, subc_internal, subdi3): New.
15275         (subdi3_internal, *subdi3_degenerate): New.
15276         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15277
15278         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15279         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15280         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
15281         * config/mn10300/mn10300-protos.h: Update.
15282         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15283         (return_ret): Likewise.  Rename from return_internal_regs.
15284         (return_internal): Remove.
15285
15286         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15287         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15288         (mn10300_legitimate_constant_p): Likewise.
15289         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15290         (mn10300_frame_size): New.
15291         (mn10300_expand_prologue): Use it.
15292         (mn10300_expand_epilogue): Likewise.
15293         (mn10300_initial_offset): Likewise.
15294         * config/mn10300/mn10300-protos.h: Update.
15295         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15296         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15297         (prologue, epilogue, return_internal): Tidy output code.
15298         (mn10300_store_multiple_operation, return): Likewise.
15299         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15300         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15301         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15302         (load_pic, am33_load_pic): New.
15303         (mn10300_load_pic0, mn10300_load_pic1): New.
15304
15305         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15306         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15307         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15308         (cc_flags_for_mode, cc_flags_for_code): New.
15309         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15310         overflow flag is not valid.  Validate that the flags we need
15311         for the comparison are valid.
15312         (mn10300_output_cmp): Remove.
15313         (mn10300_output_add): New.
15314         (mn10300_select_cc_mode): Use cc_flags_for_code.
15315         (mn10300_split_cbranch): New.
15316         (mn10300_match_ccmode): New.
15317         (mn10300_split_and_operand_count): New.
15318         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15319         to the function.
15320         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15321         (addsi3): ... here.  Use mn10300_output_add.
15322         (*addsi3_flags): New.
15323         (*am33_subsi3, *mn10300_subsi3): Merge...
15324         (subsi3): ... here.  Use attribute isa.
15325         (*subsi3_flags): New.
15326         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
15327         when possible.
15328         (*am33_andsi3, *mn10300_andsi3): Merge...
15329         (andsi3): ... here.
15330         (*andsi3_flags): New.
15331         (andsi3 splitters): New.
15332         (*am33_iorsi3, *mn10300_iorsi3): Merge...
15333         (iorsi3): ... here.
15334         (*iorsi3_flags): New.
15335         (*am33_xorsi3, *mn10300_xorsi3): Merge...
15336         (xorsi3): ... here.
15337         (*xorsi3_flags): New.
15338         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15339         (one_cmplsi2): ... here.
15340         (*one_cmplsi2_flags): New.
15341         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
15342         instead of "dax" in constraints.  Use mn10300_split_cbranch.
15343         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
15344         use matching constraints to eliminate a self-comparison.
15345         (*integer_conditional_branch): Rename from integer_conditional_branch.
15346         Use int_mode_flags to match CC_REG.
15347         (*cbranchsi4_btst, *btstsi): New.
15348         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
15349         mn10300_split_cbranch.
15350         (*am33_cmpsf): Rename from am33_cmpsf.
15351         (*float_conditional_branch): Rename from float_conditional_branch.
15352         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15353         (zero_extendqisi2): ... here.
15354         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15355         (zero_extendhisi2): ... here.
15356         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15357         (extendqisi2): ... here.
15358         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15359         (extendhisi2): ... here.
15360         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15361         (ashlsi3): ... here.
15362         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15363         (lshrsi3): ... here.
15364         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15365         (ashrsi3): ... here.
15366         (consecutive add peephole): Remove.
15367         * config/mn10300/predicates.md (label_ref_operand): New.
15368         (int_mode_flags): New.
15369         (CCZN_comparison_operator): New.
15370
15371         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15372         (throughput_42_latency_43): New reservation.
15373         (mulsidi3, umulsidi3): New expanders.
15374         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
15375         the MDR register to allocation; separately allocate the low and
15376         high parts of the DImode result.
15377         (umulsidi3_internal): Similarly.
15378         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15379         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
15380         (udivsi3, umodsi3): Remove.
15381         (udivmodsi4, divmodsi4): New expanders.
15382         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
15383         (*divmodsi4): Simiarly.
15384         (ext_internal): New.
15385
15386         * config/mn10300/constraints.md ("z"): New constraint.
15387         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15388         (FIXED_REGISTERS): Don't fix MDR.
15389         (CALL_USED_REGSITERS): Reformat nicely.
15390         (REG_ALLOC_ORDER): Add MDR.
15391         (enum regclass): Add MDR_REGS.
15392         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15393         (IRA_COVER_CLASSES): Add MDR_REGS.
15394         (REGNO_REG_CLASS): Handle MDR_REG.
15395         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15396         (mn10300_register_move_cost): Likewise.
15397         * config/mn10300/mn10300.md (MDR_REG): New.
15398         (*movsi_internal): Handle moves to/from MDR_REGS.
15399
15400         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15401         POST_MODIFY.
15402         (mn10300_secondary_reload): Tidy combination reload classes.
15403         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15404         addresses for AM33.  Allow symbolic offsets for reg+imm.
15405         (mn10300_regno_in_class_p): New.
15406         (mn10300_legitimize_reload_address): New.
15407         * config/mn10300/mn10300.h (enum reg_class): Remove
15408         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15409         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
15410         SP_OR_GENERAL_REGS.
15411         (REG_CLASS_NAMES): Update to match.
15412         (REG_CLASS_CONTENTS): Likewise.
15413         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15414         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15415         (REGNO_IN_RANGE_P): Remove.
15416         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15417         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15418         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15419         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15420         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15421         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15422         (REGNO_GENERAL_P): New.
15423         (HAVE_POST_MODIFY_DISP): New.
15424         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15425         (LEGITIMIZE_RELOAD_ADDRESS): New.
15426         * config/mn10300/mn10300-protos.h: Update.
15427
15428         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15429         DATA_REGS for AM33 stack-pointer destination.
15430         (mn10300_preferred_output_reload_class): Likewise.
15431         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15432         into a form appropriate for ...
15433         (TARGET_SECONDARY_RELOAD): New.
15434         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15435         * config/mn10300/mn10300-protos.h: Update.
15436         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15437         reload_insi; use the "A" constraint for the scratch; handle AM33
15438         moves of sp to non-address registers.
15439
15440         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15441         (*movqi_internal): ... here.
15442         (*am33_movhi, *mn10300_movhi): Merge into...
15443         (*movhi_internal): ... here.
15444         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
15445         as the source/destination of moves from/to SP.
15446         (movsf): Only allow for AM33-2.
15447         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15448         any integer constant constraint.  Only allow for AM33-2.  Tidy
15449         all of the alternative outputs.
15450         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15451         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
15452         for MN103.
15453         (udivsi3, umodsi3): New patterns for MN103 only.
15454
15455 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
15456
15457         * doc/tm.texi.in: Spell out that a lack of register class unions
15458         can lead to ICEs.
15459         * doc/tm.texi: Regenerate.
15460
15461 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
15462
15463         PR rtl-optimization/47337
15464         * dce.c (check_argument_store): New function.
15465         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
15466
15467         PR tree-optimization/47290
15468         * tree-eh.c (infinite_empty_loop_p): New function.
15469         (cleanup_empty_eh): Use it.
15470
15471 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
15472
15473         PR target/46997
15474         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15475         (a64_expand_widen_sum): Ditto.
15476         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15477         (vec_extract_evenodd_help): Ditto.
15478         (vec_extract_evenv4hi): Ditto.
15479         (vec_extract_oddv4hi): Ditto.
15480         (vec_extract_evenv2si): Ditto.
15481         (vec_extract_oddv2si): Ditto.
15482         (vec_extract_evenv2sf): Ditto.
15483         (vec_extract_oddv2sf): Ditto.
15484         (vec_pack_trunc_v4hi: Ditto.
15485         (vec_pack_trunc_v2si): Ditto.
15486         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15487         (vec_interleave_highv8qi): Ditto.
15488         (mix1_r): Ditto.
15489         (vec_extract_oddv8qi): Ditto.
15490         (vec_interleave_lowv4hi): Ditto.
15491         (vec_interleave_highv4hi): Ditto.
15492         (vec_interleave_lowv2si): Ditto.
15493         (vec_interleave_highv2si): Ditto.
15494
15495 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15496
15497         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15498         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15499         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
15500         (pa_c_mode_for_suffix): New.
15501         (TARGET_EXPAND_BUILTIN): Define.
15502         (TARGET_C_MODE_FOR_SUFFIX): Define.
15503         (pa_builtins): Define.
15504         (pa_init_builtins): Register __float128 type and init new support
15505         builtins.
15506         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15507         * config/pa/quadlib.c (_U_Qfcopysign): New.
15508
15509 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
15510
15511         PR middle-end/46894
15512         * explow.c (allocate_dynamic_stack_space): Do not assume more than
15513         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15514         are defined.
15515
15516 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15517
15518         PR tree-optimization/47179
15519         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15520         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15521
15522 2011-01-18  Richard Guenther  <rguenther@suse.de>
15523
15524         PR rtl-optimization/47216
15525         * emit-rtl.c: Include tree-flow.h.
15526         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15527         of replicating it with different semantics.
15528         * Makefile.in (emit-rtl.o): Adjust.
15529
15530 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15531
15532         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15533         (cortex_a9_dp): Handle neon types correctly.
15534
15535 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
15536
15537         PR rtl-optimization/47299
15538         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15539         subtarget.  Use normal multiplication if both operands are constants.
15540         * expmed.c (expand_widening_mult): Don't try to optimize constant
15541         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
15542         before using it.
15543
15544 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15545
15546         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
15547         spacing after 'e.g.', typos, comma, hyphenation.
15548
15549 2011-01-17  Richard Henderson  <rth@redhat.com>
15550
15551         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15552         (rx_restricted_mem_operand): New.
15553         (rx_shift_operand): Use register_operand.
15554         (rx_source_operand, rx_compare_operand): Likewise.
15555         * config/rx/rx.md (addsi3_flags): New expander.
15556         (adddi3): Rewrite as expander.
15557         (adc_internal, *adc_flags, adddi3_internal): New patterns.
15558         (subsi3_flags): New expander.
15559         (subdi3): Rewrite as expander.
15560         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15561
15562         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15563         (rx_init_builtins): Remove sat builtin.
15564         (rx_expand_builtin): Likewise.
15565         * config/rx/rx.md (ssaddsi3): New.
15566         (*sat): Rename from sat.  Represent the CC_REG input.
15567
15568         * config/rx/predicates.md (rshift_operator): New.
15569         * config/rx/rx.c (rx_expand_insv): Remove.
15570         * config/rx/rx-protos.h: Update.
15571         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
15572         operand to the canonical position.
15573         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15574         (*bitclr, *bitclr_in_memory): Similarly.
15575         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15576         (insv): Retain the zero_extract in the expansion.
15577
15578         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15579         (bswaphi2, bitinvert, revw): Likewise.
15580
15581         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15582         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15583         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15584         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15585         (bitset, bitset_in_memory): Likewise.
15586         (bitinvert, bitinvert_in_memory): Likewise.
15587         (bitclr, bitclr_in_memory): Likewise.
15588         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15589         (rx_strend, rx_cmpstrn): Likewise.
15590         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
15591         (bitop peep2 patterns): Remove.
15592
15593         * config/rx/rx.c (rx_match_ccmode): New.
15594         * config/rx/rx-protos.h: Update.
15595         * config/rx/rx.md (abssi2): Clobber, don't set flags.
15596         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15597         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15598         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15599         (fix_truncsfsi2, floatsisf2): Likewise.
15600         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15601         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15602         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15603         (*subsi3_flags, *xorsi3_flags): New.
15604
15605         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15606
15607         * config/rx/rx.c (rx_print_operand): Remove workaround for
15608         unsplit comparison operations.
15609
15610         * config/rx/rx.md (movsicc): Split after reload.
15611         (*movsicc): Merge *movsieq and *movsine via match_operator.
15612         (*stcc): New pattern.
15613
15614         * config/rx/rx.c (rx_float_compare_mode): Remove.
15615         * config/rx/rx.h (rx_float_compare_mode): Remove.
15616         * config/rx/rx.md (cstoresi4): Split after reload.
15617         (*sccc): New pattern.
15618
15619         * config/rx/predicates.md (label_ref_operand): New.
15620         (rx_z_comparison_operator): New.
15621         (rx_zs_comparison_operator): New.
15622         (rx_fp_comparison_operator): New.
15623         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15624         Validate that the flags are set properly for the comparison.
15625         (rx_gen_cond_branch_template): Remove.
15626         (rx_cc_modes_compatible): Remove.
15627         (mode_from_flags): New.
15628         (flags_from_code): Rename from flags_needed_for_conditional.
15629         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15630         (rx_select_cc_mode): Likewise.
15631         (rx_split_fp_compare): New.
15632         (rx_split_cbranch): New.
15633         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15634         (*cbranchsi4): Use match_operator and rx_split_cbranch.
15635         (*cbranchsf4): Similarly.
15636         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
15637         match_operator and rx_split_cbranch.
15638         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15639         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
15640         (*cmpsi): Rename from cmpsi.
15641         (*tstsi): Rename from tstsi.
15642         (*cmpsf): Rename from cmpsf; use CC_Fmode.
15643         (*conditional_branch): Rename from conditional_branch.
15644         (*reveresed_conditional_branch): Remove.
15645         (b<code>): Remove expander.
15646         * config/rx/rx-protos.h: Update.
15647
15648         * config/rx/rx.c (rx_compare_redundant): Remove.
15649         * config/rx/rx.md (cmpsi): Don't use it.
15650         * config/rx/rx-protos.h: Update.
15651
15652         * config/rx/rx-modes.def (CC_F): New mode.
15653         * config/rx/rx.c (rx_select_cc_mode): New.
15654         * config/rx/rx.h (SELECT_CC_MODE): Use it.
15655         * config/rx/rx-protos.h: Update.
15656
15657 2011-01-17  Richard Henderson  <rth@redhat.com>
15658
15659         * except.c (dump_eh_tree): Fix stray ; after for statement.
15660
15661 2011-01-17  Richard Guenther  <rguenther@suse.de>
15662
15663         PR tree-optimization/47313
15664         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15665         handling before copying the body.  Properly deal with
15666         by-reference result in SSA form.
15667
15668 2011-01-17  Ian Lance Taylor  <iant@google.com>
15669
15670         PR target/47219
15671         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15672         (struct_value_alias_set): Don't define.
15673         (sparc_option_override): Don't set sparc_sr_alias_set and
15674         struct_value_alias_set.
15675         (save_or_restore_regs): Use gen_frame_mem rather than calling
15676         set_mem_alias_set.
15677         (sparc_struct_value_rtx): Likewise.
15678
15679 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
15680
15681         PR target/47318
15682         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15683         (_mm_maskstore_pd): Likewise.
15684         (_mm_maskload_ps): Likewise.
15685         (_mm_maskstore_ps): Likewise.
15686         (_mm256_maskload_pd): Change mask to __m256i.
15687         (_mm256_maskstore_pd): Likewise.
15688         (_mm256_maskload_ps): Likewise.
15689         (_mm256_maskstore_ps): Likewise.
15690
15691         * config/i386/i386-builtin-types.def: Updated.
15692         (ix86_expand_special_args_builtin): Likewise.
15693
15694         * config/i386/i386.c (bdesc_special_args): Update
15695         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15696         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15697         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15698         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15699
15700         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15701         Use <avxpermvecmode> on mask register.
15702         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15703
15704 2011-01-17  Olivier Hainque  <hainque@adacore.com>
15705             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15706             Eric Botcazou  <ebotcazou@adacore.com>
15707
15708         PR target/46655
15709         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15710         if <= USHRT_MAX in 32-bit mode.
15711
15712 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15713
15714         * doc/install.texi (Configuration, Specific): Wrap long
15715         lines in examples.  Allow line wrapping in long options
15716         and URLs where beneficial for PDF output.
15717
15718 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
15719
15720         * config/mips/mips.c (mips_classify_symbol): Don't return
15721         SYMBOL_PC_RELATIVE for nonlocal labels.
15722
15723 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15724
15725         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15726
15727 2011-01-15  Jan Hubicka  <jh@suse.cz>
15728
15729         PR tree-optimization/47276
15730         * ipa.c (function_and_variable_visibility): Do not try to mark alias
15731         declarations as needed.
15732
15733 2011-01-15  Martin Jambor  <mjambor@suse.cz>
15734
15735         * common.opt (fdevirtualize): New flag.
15736         * doc/invoke.texi (Option Summary): Document it.
15737         * opts.c (default_options_table): Add devirtualize flag.
15738         * ipa-prop.c (detect_type_change): Return immediately if
15739         devirtualize flag is not set.
15740         (detect_type_change_ssa): Likewise.
15741         (compute_known_type_jump_func): Likewise.
15742         (ipa_analyze_virtual_call_uses): Likewise.
15743
15744 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15745
15746         PR tree-optimization/45934
15747         PR tree-optimization/46302
15748         * ipa-prop.c (type_change_info): New type.
15749         (stmt_may_be_vtbl_ptr_store): New function.
15750         (check_stmt_for_type_change): Likewise.
15751         (detect_type_change): Likewise.
15752         (detect_type_change_ssa): Likewise.
15753         (compute_complex_assign_jump_func): Check for dynamic type change.
15754         (compute_complex_ancestor_jump_func): Likewise.
15755         (compute_known_type_jump_func): Likewise.
15756         (compute_scalar_jump_functions): Likewise.
15757         (ipa_analyze_virtual_call_uses): Likewise.
15758         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15759
15760 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15761
15762         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15763         * config/i386/i386.opt (msse5): New Alias.
15764
15765 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15766
15767         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15768         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15769         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15770         * config/sparc/sparc.h (CC1_SPEC): Likewise.
15771
15772 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15773
15774         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15775         -mcpu options.
15776         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15777         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15778         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15779         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15780         Likewise.
15781         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15782
15783 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15784
15785         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15786
15787 2011-01-14  Mike Stump  <mikestump@comcast.net>
15788
15789         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15790         * config/fr30/fr30.md: Likweise
15791         (movsi_push): Likewise.
15792         (movsi_pop): Likewise.
15793         (enter_func): Likewise.
15794         * config/moxie/moxie.md (movsi_push): Likewise.
15795         (movsi_pop): Likewise.
15796
15797 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15798
15799         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15800         %{no_archive} %{exact_version}.
15801         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15802         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15803         %{no_archive} %{exact_version}.
15804         * config/mips/openbsd.h (LINK_SPEC): Likewise.
15805         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15806         * config/mips/vxworks.h: Likewise.
15807
15808 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15809
15810         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15811
15812 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15813
15814         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15815         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15816
15817 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15818
15819         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15820         -nodefaultlib.
15821
15822 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15823
15824         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15825         for mcpu not cpu.
15826         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15827         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15828         not cpu.
15829         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15830         Don't handle -shlib.
15831
15832 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15833
15834         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15835         (CC1_SPEC): Don't handle -profile.
15836
15837 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15838
15839         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15840         * config/mips/mips.h (CC1_SPEC): Likewise.
15841
15842 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15843
15844         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15845         * config/mips/mips.h (CC1_SPEC): Likewise.
15846
15847 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15848
15849         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15850         * config/m32r/linux.h (LINK_SPEC): Likewise.
15851         * config/mips/linux.h (LINK_SPEC): Likewise.
15852         * config/mips/linux64.h (LINK_SPEC): Likewise.
15853         * config/sparc/linux.h (LINK_SPEC): Likewise.
15854         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15855         LINK_SPEC): Likewise.
15856         * config/xtensa/linux.h (LINK_SPEC): Likewise.
15857
15858 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15859
15860         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15861         %{version:-v}.
15862         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15863
15864 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15865
15866         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15867         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15868
15869 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15870
15871         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15872
15873 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15874
15875         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15876         supports -Bstatic/-Bdynamic.
15877         * configure: Regenerate.
15878
15879 2011-01-14  Jan Hubicka  <jh@suse.cz>
15880             Jack Howarth  <howarth@bromo.med.uc.edu>
15881
15882         PR target/46037
15883         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15884         when checking debug_info_level. Test write_symbols instead of
15885         debug_hooks->var_location when setting flag_var_tracking_uninit.
15886
15887 2011-01-14  Richard Guenther  <rguenther@suse.de>
15888
15889         PR tree-optimization/47179
15890         * target.def (ref_may_alias_errno): New target hook.
15891         * targhooks.h (default_ref_may_alias_errno): Declare.
15892         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15893         (default_ref_may_alias_errno): New function.
15894         * target.h (struct ao_ref_s): Declare.
15895         * tree-ssa-alias.c: Include target.h.
15896         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15897         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15898         (targhooks.o): Likewise.
15899         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15900         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15901
15902 2011-01-14  Richard Guenther  <rguenther@suse.de>
15903
15904         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15905
15906 2011-01-14  Richard Guenther  <rguenther@suse.de>
15907
15908         PR tree-optimization/47280
15909         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15910         return CFG changes.
15911         (tree_ssa_forward_propagate_single_use_vars): Deal with
15912         CFG changes from associate_plusminus.
15913
15914 2011-01-14  Richard Guenther  <rguenther@suse.de>
15915
15916         PR middle-end/47281
15917         Revert
15918         2011-01-11  Richard Guenther  <rguenther@suse.de>
15919
15920         PR tree-optimization/46076
15921         * tree-ssa.c (useless_type_conversion_p): Conversions from
15922         unprototyped to empty argument list function types are useless.
15923
15924 2011-01-14  Richard Guenther  <rguenther@suse.de>
15925
15926         PR tree-optimization/47286
15927         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15928
15929 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15930
15931         PR middle-end/46823
15932         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15933
15934 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15935
15936         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15937         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15938         * config/xtensa/xtensa.c (xtensa_libcall_value,
15939         xtensa_function_value_regno_p): New functions.
15940         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15941
15942 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15943
15944         PR c++/47213
15945         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15946         PE specific hook.
15947         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15948         New function prototype.
15949         * config/i386/winnt.c (i386_pe_assemble_visibility):
15950         Warn only if attribute was specified by user.
15951
15952 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15953
15954         PR target/47251
15955         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15956         floating point.
15957         (floatunsdidf2_fcfidu): Ditto.
15958
15959 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15960
15961         * config/s390/s390.c (print_operand_address): Replace 'error' with
15962         'output_operand_lossage'.
15963         (print_operand): Likewise.
15964
15965 2011-01-13  Jeff Law  <law@redhat.com>
15966
15967         PR rtl-optimization/39077
15968         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15969         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15970         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15971         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15972         * gcse.c (prune_insertions_deletions): New function.
15973         (compute_pre_data): Use it.
15974
15975 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15976
15977         PR debug/PR46973
15978         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15979         static function.
15980         (prune_unused_types_mark): Use it.
15981
15982 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15983
15984         PR rtl-optimization/45352
15985         * sel-sched.c: Update copyright years.
15986         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15987         in the advancing loop when we have issued issue_rate insns.
15988
15989 2011-01-12  Richard Henderson  <rth@redhat.com>
15990
15991         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15992         (TARGET_MD_ASM_CLOBBERS): New.
15993
15994         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15995         (TARGET_DELEGITIMIZE_ADDRESS): New.
15996
15997         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15998         (clzsi2, *bsch): New patterns.
15999
16000         * config/mn10300/mn10300.md (INT): New mode iterator.
16001         (*mov<INT>_clr): New pattern, and peep2 to generate it.
16002
16003         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16004         flag_split_wide_types.
16005
16006         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16007         (mn10300_trampoline_init): Rewrite without a template, an immediate
16008         load and a direct branch.
16009         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16010
16011 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
16012
16013         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16014         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16015         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16016         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16017
16018 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
16019
16020         PR debug/47209
16021         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16022         of type.
16023
16024 2011-01-12  Jan Hubicka  <jh@suse.cz>
16025
16026         PR driver/47244
16027         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16028         (PLUGIN_COND_CLOSE): New macro.
16029         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16030
16031 2011-01-12  Richard Guenther  <rguenther@suse.de>
16032
16033         PR lto/47259
16034         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16035         register variables in a MEM_REF.
16036
16037 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
16038
16039         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16040         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16041         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16042         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16043         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16044         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16045         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16046         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16047         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16048         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16049         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16050         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16051         * config/gnu-user.h: New.  Copied from linux.h.
16052         (LINUX_TARGET_STARTFILE_SPEC): Rename to
16053         GNU_USER_TARGET_STARTFILE_SPEC.
16054         (LINUX_TARGET_ENDFILE_SPEC): Rename to
16055         GNU_USER_TARGET_ENDFILE_SPEC.
16056         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16057         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16058         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16059         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16060         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16061         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16062         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16063         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16064         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16065         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16066         * config/arm/linux-eabi.h (CC1_SPEC): Use
16067         GNU_USER_TARGET_CC1_SPEC.
16068         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16069         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16070         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16071         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16072         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16073         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16074         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16075         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16076
16077 2011-01-12  Richard Guenther  <rguenther@suse.de>
16078
16079         PR other/46946
16080         * doc/invoke.texi (ffast-math): Document it is turned on
16081         with -Ofast.
16082
16083 2011-01-12  Jan Hubicka  <jh@suse.cz>
16084
16085         PR tree-optimization/47233
16086         * opts.c (common_handle_option): Disable ipa-reference with profile
16087         feedback.
16088
16089 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16090
16091         * c-parser.c (c_parser_objc_at_property_declaration): Improved
16092         error message.
16093
16094 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16095
16096         * c-parser.c (c_lex_one_token): Updated and reindented some
16097         comments.  No changes in code.
16098
16099 2011-01-11  Ian Lance Taylor  <iant@google.com>
16100
16101         * godump.c (go_output_var): Don't output the variable if there is
16102         already a type with the same name.
16103
16104 2011-01-11  Ian Lance Taylor  <iant@google.com>
16105
16106         * godump.c (go_format_type): Don't generate float80.
16107
16108 2011-01-11  Richard Henderson  <rth@redhat.com>
16109
16110         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16111         declaration.  Rewrite for both speed and size.
16112         (mn10300_address_cost_1): Remove.
16113         (mn10300_register_move_cost): New.
16114         (mn10300_memory_move_cost): New.
16115         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
16116         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
16117         extensions, shifts, BSWAP, CLZ.
16118         (mn10300_wide_const_load_uses_clr): Remove.
16119         (TARGET_REGISTER_MOVE_COST): New.
16120         (TARGET_MEMORY_MOVE_COST): New.
16121         * config/mn10300/mn10300-protos.h: Update.
16122         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16123
16124         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16125         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16126         * config/mn10300/mn10300-protos.h: Update.
16127         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16128         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16129         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16130         (*test_int_bitfield, *test_byte_bitfield): Remove.
16131         (*bit_test, *subreg_bit_test): Remove.
16132         * config/mn10300/predicates.md (const_8bit_operand): Remove.
16133
16134         * config/mn10300/constraints.md ("c"): Rename from "A".
16135         ("A", "D"): New constraint letters.
16136         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16137         (fmssf4, fnmasf4, fnmssf4): Likewise.
16138
16139         * config/mn10300/mn10300.md (isa): New attribute.
16140         (enabled): New attribute.
16141
16142         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16143         (abssf2, negsf2): Define only for hardware fp.
16144         (sqrtsf2): Reformat.
16145         (addsf3, subsf3, mulsf3): Merge expander and insn.
16146
16147         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16148         (DEBUGGER_AUTO_OFFSET): Remove.
16149         (DEBUGGER_ARG_OFFSET): Remove.
16150
16151         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16152         Emit register stores with the same offsets as the hardware.
16153         (mn10300_store_multiple_operation): Don't check that the register
16154         save offsets are monotonic.
16155         * config/mn10300/mn10300-protos.h: Update.
16156
16157         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16158
16159         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16160         in terms of the value on the stack, not the MDR register.
16161
16162 2011-01-11  Jan Hubicka  <jh@suse.cz>
16163
16164         PR lto/45721
16165         PR lto/45375
16166         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16167         (symbol_alias_set_destroy, symbol_alias_set_contains,
16168         propagate_aliases_backward): Declare.
16169         * lto-streamer-out.c (struct sets): New sturcture.
16170         (trivally_defined_alias): New function.
16171         (output_alias_pair_p): Rewrite.
16172         (output_unreferenced_globals): Fix output of alias pairs.
16173         (produce_symtab): Likewise.
16174         * ipa.c (function_and_variable_visibility): Set weak alias destination
16175         as needed in lto.
16176         * varasm.c (symbol_alias_set_t): Remove.
16177         (symbol_alias_set_destroy): Export.
16178         (propagate_aliases_forward, propagate_aliases_backward): New functions
16179         based on ...
16180         (compute_visible_aliases): ... this one; remove.
16181         (trivially_visible_alias): New
16182         (trivially_defined_alias): New.
16183         (remove_unreachable_alias_pairs): Rewrite.
16184         (finish_aliases_1): Reorganize code checking if alias is defined.
16185         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16186         in LTO mode.
16187
16188 2011-01-11  Richard Guenther  <rguenther@suse.de>
16189
16190         PR tree-optimization/46076
16191         * tree-ssa.c (useless_type_conversion_p): Conversions from
16192         unprototyped to empty argument list function types are useless.
16193
16194 2011-01-11  Richard Guenther  <rguenther@suse.de>
16195
16196         PR middle-end/45235
16197         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16198         volatile MEMs as MEM_READONLY_P.
16199
16200 2011-01-11  Richard Guenther  <rguenther@suse.de>
16201
16202         PR tree-optimization/47239
16203         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16204
16205 2011-01-11  Jeff Law  <law@redhat.com>
16206
16207         PR tree-optimization/47086
16208         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16209         IVs from statements that might throw.
16210
16211 2011-01-10  Jan Hubicka  <jh@suse.cz>
16212
16213         PR lto/45375
16214         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16215
16216 2011-01-10  Jan Hubicka  <jh@suse.cz>
16217
16218         PR lto/45375
16219         * profile.c (read_profile_edge_counts): Ignore profile inconistency
16220         when correcting profile.
16221
16222 2011-01-10  Jan Hubicka  <jh@suse.cz>
16223
16224         PR lto/46083
16225         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16226         DECL_FINI_PRIORITY.
16227         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16228         Restore DECL_FINI_PRIORITY.
16229
16230 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16231
16232         * doc/gimple.texi: Fix quoting of multi-word return values in
16233         @deftypefn statements.  Ensure presence of return value.  Wrap
16234         overlong @deftypefn lines.
16235         (is_gimple_operand, is_gimple_min_invariant_address): Remove
16236         descriptions of removed functions.
16237         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16238         of multi-word return value in @deftypefn statement.
16239
16240 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16241
16242         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16243         (Conditional Expressions, Logical Operators)
16244         (Statement and operand traversals): Do not indent smallexample
16245         code.  Fix duplicate function argument in example.
16246
16247 2011-01-10  Jeff Law  <law@redhat.com>
16248
16249         PR tree-optimization/47141
16250         * ipa-split.c (split_function): Handle case where we are
16251         returning a value and the return block has a virtual operand phi.
16252
16253 2011-01-10  Jan Hubicka  <jh@suse.cz>
16254
16255         PR tree-optimization/47234
16256         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16257         (pass_feedback_split_functions): Declare.
16258         * passes.c (init_optimization_passes): Add ipa-split as subpass of
16259         tree-profile.
16260         * ipa-split.c (gate_split_functions): Update comments; disable
16261         split-functions for profile_arc_flag and branch_probabilities.
16262         (gate_feedback_split_functions): New function.
16263         (execute_feedback_split_functions): New function.
16264         (pass_feedback_split_functions): New global var.
16265
16266 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
16267
16268         PR lto/46760
16269         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16270         calling gimple_call_set_cannot_inline.
16271
16272 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
16273
16274         * config/darwin-sections.def: Remove unused section.
16275
16276 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
16277
16278         PR c++/47218
16279         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16280
16281 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
16282
16283         PR objc/47232
16284         * c-parser.c (c_parser_declaration_or_fndef): Improved
16285         error message.
16286
16287 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
16288
16289         * config/i386/winnt.c (i386_pe_start_function): Make sure
16290         to switch back to function's section.
16291
16292 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
16293
16294         PR gcc/46902
16295         PR testsuite/46912
16296         * plugin.c: Move include of dlfcn.h from here...
16297         * system.h: ... to here.
16298
16299 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16300
16301         * doc/cpp.texi (C++ Named Operators): Fix markup for header
16302         file name.
16303         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16304         two extra empty pages in PDF output.
16305
16306 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
16307
16308         PR objc/47078
16309         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16310         for error recovery purposes behave as if it was not specified so
16311         that the default type is usd.
16312
16313 2011-01-07  Jan Hubicka  <jh@suse.cz>
16314
16315         PR tree-optmization/46469
16316         * ipa.c (function_and_variable_visibility): Clear needed flags on
16317         nodes with external decls; handle weakrefs merging correctly.
16318
16319 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
16320
16321         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16322         not false.
16323
16324 2011-01-07  Jan Hubicka  <jh@suse.cz>
16325
16326         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16327         and no longer claim that gold is required for linker plugin.
16328         * configure: Regenerate.
16329         * gcc.c (PLUGIN_COND): New macro.
16330         (LINK_COMMAND_SPEC): Use it.
16331         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16332         * config.in (HAVE_LTO_PLUGIN): New.
16333         * configure.ac (--with-lto-plugin): New parameter; autodetect
16334         HAVE_LTO_PLUGIN.
16335
16336 2011-01-07  Jan Hubicka  <jh@suse.cz>
16337
16338         PR tree-optimization/46367
16339         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16340         when we can update original.
16341         (cgraph_mark_inline_edge): Sanity check.
16342         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16343
16344 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16345
16346         * config/spu/spu.h (ASM_COMMENT_START): Define.
16347
16348 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
16349
16350         PR driver/42445
16351         * gcc.c (%>S): New.
16352         (SWITCH_KEEP_FOR_GCC): Likewise.
16353         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16354         (do_spec_1): Handle "%>".
16355
16356         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16357
16358 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
16359
16360         PR target/47201
16361         * config/i386/i386.c (ix86_delegitimize_address): If
16362         simplify_gen_subreg fails, return orig_x.
16363
16364         PR bootstrap/47187
16365         * value-prof.c (gimple_stringop_fixed_value): Handle
16366         lhs of the call properly.
16367
16368 2011-01-07  Jan Hubicka  <jh@suse.cz>
16369
16370         PR lto/45375
16371         * lto-opt.c (lto_reissue_options): Set flag_shlib.
16372
16373 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16374
16375         * target.def (function_switched_text_sections): New hook.
16376         * doc/tm.texi: Regenerated.
16377         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16378         * final.c (default_function_switched_text_sections): New.
16379         (final_scan_insn): Call function_switched_text_sections when a
16380         mid-function section change occurs.
16381         * output.h (default_function_switched_text_sections): Declare.
16382         * config/darwin-protos.h (darwin_function_switched_text_sections):
16383         Likewise.
16384         * config/darwin.c (darwin_function_switched_text_sections): New.
16385         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16386
16387 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16388
16389         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
16390         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
16391         the secondary code fragment when outputting for DWARF == 2.
16392
16393 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
16394
16395         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16396         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16397         Remove.
16398         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16399         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16400
16401 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
16402
16403         PR debug/46704
16404         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16405         when it is not empty.
16406
16407 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
16408
16409         Bobcat Enablement
16410         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16411         (case ${target}): Add btver1.
16412         * config/i386/driver-i386.c (host_detect_local_cpu): Let
16413         -march=native recognize btver1 processors.
16414         * config/i386/i386-c.c (ix86_target_macros_internal): Add
16415         btver1 def_and_undef
16416         * config/i386/i386.c (struct processor_costs btver1_cost): New
16417         btver1 cost table.
16418         (m_BTVER1): New definition.
16419         (m_AMD_MULTIPLE): Includes m_BTVER1.
16420         (initial_ix86_tune_features): Add btver1 tune.
16421         (processor_target_table): Add btver1 entry.
16422         (static const char *const cpu_names): Add btver1 entry.
16423         (software_prefetching_beneficial_p): Add btver1.
16424         (ix86_option_override_internal): Add btver1 instruction sets.
16425         (ix86_issue_rate): Add btver1.
16426         (ix86_adjust_cost): Add btver1.
16427         * config/i386/i386.h (TARGET_BTVER1): New definition.
16428         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16429         (enum processor_type): Add PROCESSOR_BTVER1.
16430         * config/i386/i386.md (define_attr "cpu"): Add btver1.
16431
16432 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16433
16434         PR target/43309
16435         * config/i386/i386.c (legitimize_tls_address)
16436         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16437         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16438         (tls_initial_exec_64_sun): New pattern.
16439
16440 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
16441
16442         * doc/invoke.texi (Overall Options): Improve wording and markup
16443         of the description of -wrapper.
16444
16445 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
16446
16447         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16448         rdynamic, threads): New Driver options.
16449
16450 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16451
16452         PR target/38118
16453         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16454         if coming from .tdata.
16455         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16456
16457 2011-01-06  Jan Hubicka  <jh@suse.cz>
16458
16459         PR lto/47188
16460         * collect2.c (main): Do not enable LTOmode when plugin is active.
16461
16462 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16463
16464         PR other/45915
16465         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16466         --version output if supported.
16467         * configure: Regenerate.
16468
16469 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
16470
16471         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16472         Driver options.
16473
16474 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
16475
16476         PR c/47150
16477         * c-convert.c (convert): When converting a complex expression
16478         other than COMPLEX_EXPR to a different complex type, ensure
16479         c_save_expr is called instead of save_expr, unless in_late_binary_op.
16480         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16481         when converting COMPLEX_TYPE.
16482
16483 2011-01-06  Ira Rosen  <irar@il.ibm.com>
16484
16485         PR tree-optimization/47139
16486         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16487         only the last reduction value is used outside the loop.  Update
16488         documentation.
16489
16490 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
16491
16492         * config/rtems.opt: New.
16493         * config.gcc (*-*-rtems*): Use rtems.opt.
16494
16495 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
16496
16497         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16498         processors do not support 3DNow instructions.
16499
16500 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16501
16502         * config/spu/spu.c (spu_option_override): Set parameter
16503         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16504
16505 2011-01-05  Jan Hubicka  <jh@suse.cz>
16506
16507         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16508         at the command line.
16509
16510 2011-01-05  Martin Jambor  <mjambor@suse.cz>
16511
16512         PR lto/47162
16513         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16514         deltas on streamed outgoing edges.
16515         (output_node_opt_summary): Output info for outgoing edges only when
16516         the node is in new parameter set.
16517         (output_cgraph_opt_summary): New parameter set, passed to the two
16518         aforementioned functions.  Update its forward declaration and its
16519         callee too.
16520
16521 2011-01-05  Tom Tromey  <tromey@redhat.com>
16522
16523         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16524         operator to c_finish_omp_atomic.
16525         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16526         (build_unary_op): Update.
16527         (build_modify_expr): Update.
16528         (build_asm_expr): Update.
16529
16530 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16531
16532         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16533         newly inserted insns.
16534         (pad_bb): Likewise.
16535         (spu_emit_branch_hint): Likewise.
16536         (insert_hbrp_for_ilb_runout): Likewise.
16537         (spu_machine_dependent_reorg): Call df_finish_pass after
16538         schedule_insns returns.
16539
16540 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16541
16542         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16543
16544 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16545
16546         PR tree-optimization/47005
16547         * tree-sra.c (struct access): Add 'non_addressable' bit.
16548         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16549         (decide_one_param_reduction): Return 0 if the parameter is passed by
16550         reference and one of the accesses in the group is non_addressable.
16551
16552 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16553
16554         PR tree-optimization/47056
16555         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16556         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
16557         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
16558
16559 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16560
16561         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16562         initializer.  Skip view conversions from aggregate types.
16563
16564 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
16565
16566         PR bootstrap/47055
16567         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16568
16569 2011-01-04  Philipp Thomas  <pth@suse.de>
16570
16571         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16572         obvious typo.
16573
16574 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16575
16576         * function.c (thread_prologue_and_epilogue_insns): Do not crash
16577         on empty epilogue sequences.
16578
16579 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
16580
16581         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16582         non-static): New Driver options.
16583
16584 2011-01-04  Jie Zhang  <jie@codesourcery.com>
16585
16586         PR driver/47137
16587         * gcc.c (default_compilers[]): Set combinable field to 0
16588         for all assembly languages.
16589
16590 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
16591
16592         * config/mips/loongson3a.md: New file.
16593         * config/mips/mips.md: Include loongson3a.md.
16594         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16595         TUNE_LOONGSON_3A.
16596
16597 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
16598
16599         PR middle-end/47017
16600         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16601         instead of convert_memory_address_addr_space on the base expression.
16602
16603 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16604
16605         * config/spu/spu.c (spu_option_override): Update error text
16606         for bad -march= / -mtune= values.
16607
16608 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16609
16610         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16611         if branch-hint optimization will be performed.
16612
16613 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
16614
16615         PR tree-optimization/47148
16616         * ipa-split.c (split_function): Convert arguments to
16617         DECL_ARG_TYPE if possible.
16618
16619         PR tree-optimization/47155
16620         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16621         when computing uns.
16622
16623         PR rtl-optimization/47157
16624         * combine.c (try_combine): If undobuf.other_insn becomes
16625         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16626         and set *new_direct_jump_p too.
16627
16628 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16629
16630         PR tree-optimization/47021
16631         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16632
16633 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
16634
16635         * gcc.c (process_command): Update copyright notice dates.
16636         * gcov.c (print_version): Likewise.
16637         * gcov-dump.c (print_version): Likewise.
16638         * mips-tfile.c (main): Likewise.
16639         * mips-tdump.c (main): Likewise.
16640
16641 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16642
16643         PR tree-optimization/46801
16644         * tree-sra.c (type_internals_preclude_sra_p): Check whether
16645         aggregate fields start at byte boundary instead of the bit-field flag.
16646
16647 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
16648
16649         PR driver/47137
16650         * gcc.c (main): Revert revision 168407.
16651
16652 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16653
16654         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16655
16656 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16657
16658         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16659         vector optab to expand vector/scalar shift, update gimple to vector.
16660
16661 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16662
16663         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16664         a thunk.
16665
16666 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16667
16668         PR tree-optimization/46984
16669         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16670         HOST_WIDE_INT.
16671         (cgraph_create_indirect_edge): Fixed line length.
16672         (cgraph_indirect_call_info): Declare.
16673         (cgraph_make_edge_direct) Update declaration.
16674         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16675         (cgraph_create_indirect_edge): Use it.
16676         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
16677         callees.
16678         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16679         the new thunk_delta representation.
16680         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16681         HOST_WIDE_INT.
16682         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16683         (ipa_read_indirect_edge_info): Likewise.
16684         * lto-cgraph.c (output_edge_opt_summary): New function.
16685         (output_node_opt_summary): Call it on all outgoing edges.
16686         (input_edge_opt_summary): New function.
16687         (input_node_opt_summary): Call it on all outgoing edges.
16688
16689 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
16690
16691         PR driver/47137
16692         * gcc.c (main): Don't check have_o when settting combine_inputs.
16693
16694 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
16695
16696         * regrename.c: Add general comment describing the pass.
16697         (struct du_head): Remove 'length' field.
16698         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16699         (regrename_optimize): Do not sort chains.  Rework comments, add others.
16700         Force renaming to the preferred class (if any) in the first pass and do
16701         not consider registers that belong to it in the second pass.
16702         (create_new_chain): Do not set 'length' field.
16703         (scan_rtx_reg): Likewise.
16704
16705 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
16706
16707         PR tree-optimization/47140
16708         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16709         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16710         to bit_value_binop.
16711
16712         PR rtl-optimization/47028
16713         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16714         parm_birth_insn instead of at the beginning of first bb.
16715
16716 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
16717
16718         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16719         Remove the word "see" before "@pxref".
16720         * doc/rtl.texi: Remove the word "see" before "@pxref".
16721
16722 2011-01-01  Jan Hubicka  <jh@suse.cz>
16723
16724         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16725         memory.
16726
16727 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
16728
16729         PR target/38662
16730         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16731
16732 \f
16733 Copyright (C) 2011 Free Software Foundation, Inc.
16734
16735 Copying and distribution of this file, with or without modification,
16736 are permitted in any medium without royalty provided the copyright
16737 notice and this notice are preserved.