re PR target/42210 (avr: optimizing assignment to a bit field)
[gcc.git] / gcc / ChangeLog
1 2011-06-06 Richard Henderson <rth@redhat.com>
2 Georg-Johann Lay <avr@gjlay.de>
3
4 PR target/42210
5 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6 New predicates.
7 * config/avr/avr.md ("insv"): New insn expander.
8 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9 "*insv.not.io", "*insv.reg"): New insns.
10
11 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
12
13 PR target/49285
14 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
15 predicate to nonimmediate_operand from memory_operand for the
16 operand that is to be forced to memory by the expander. Lose
17 the constraints.
18
19 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
20
21 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
22 EH return when delayed branches are disabled.
23
24 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
25
26 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
27 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
28 calculation.
29 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
30 Simplify MODE_V1DF and MODE_V2SF handling.
31 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
32 Simplify MODE_SF handling.
33
34 2011-06-04 Jan Hubicka <jh@suse.cz>
35
36 PR tree-optimization/48893
37 PR tree-optimization/49091
38 PR tree-optimization/49179
39 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
40 Bounds check.
41
42 2011-06-04 Jan Hubicka <jh@suse.cz>
43
44 PR lto/48954
45 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
46
47 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
48
49 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
50
51 2011-06-04 Jakub Jelinek <jakub@redhat.com>
52
53 PR target/49281
54 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
55 to be strictly smaller than 1 << shiftcount.
56
57 2011-06-04 Jan Hubicka <jh@suse.cz>
58
59 PR tree-optimize/48929
60 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
61 of empty predicate.
62
63 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
64
65 PR debug/48333
66 * calls.c (emit_call_1): Prefer the __builtin declaration of
67 builtin functions.
68
69 2011-06-03 Diego Novillo <dnovillo@google.com>
70
71 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
72 (lto_input_tree_pointers): Likewise.
73 * lto-streamer-out.c (pack_value_fields): Likewise.
74 (lto_output_tree_pointers): Likewise.
75 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
76 and OPTIMIZATION_NODE.
77
78 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79
80 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
81 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
82 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
83 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
84 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
85 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
86 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
87 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
88 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
89 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
90 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
91 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
92 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
93 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
94 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
95 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
96 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
97 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
98 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
99 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
100 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
101 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
102 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
103 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
104 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
105 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
106 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
107 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
108 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
109 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
110 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
111 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
112 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
113 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
114 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
115 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
116 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
117 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
118 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
119 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
120 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
121 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
122 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
123 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
124 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
125 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
126 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
127 * system.h (MD_UNWIND_SUPPORT): Poison.
128 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
129 * doc/tm.texi: Regenerate.
130 * unwind-dw2.c: Include md-unwind-support.h instead of
131 MD_UNWIND_SUPPORT.
132 * config/ia64/unwind-ia64.c: Likewise.
133 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
134
135 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
136
137 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
138
139 2011-06-03 Richard Henderson <rth@redhat.com>
140 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141
142 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
143 (sigill_hdlr): Correct insn, insn size.
144 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
145
146 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
147
148 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
149 t-slibgcc-dummy.
150 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
151 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
152 * config/mips/t-iris: Remove.
153 * config/mips/t-irix6: New file.
154 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
155
156 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
157
158 * Makefile.in (LIB2ADDEHDEP): Remove.
159 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
160 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
161 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
162 * config/t-darwin (LIB2ADDEHDEP): Remove.
163 * config/t-freebsd (LIB2ADDEHDEP): Remove.
164 * config/t-linux (LIB2ADDEHDEP): Remove.
165
166 2011-06-03 Diego Novillo <dnovillo@google.com>
167
168 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
169 (lto_register_var_decl_in_symtab): Likewise.
170 (lto_register_function_decl_in_symtab): Likewise.
171 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
172 logic to uniquify_nodes.
173
174 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175
176 * config/alpha/t-osf5: Remove.
177 * config/alpha/t-osf-pthread: Remove.
178 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
179 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
180
181 2011-06-03 Julian Brown <julian@codesourcery.com>
182
183 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
184 (strongarm1110): Use strongarm tuning.
185 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
186 * config/arm/arm.c (arm_strongarm_tune): New.
187 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
188 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
189 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
190 setting, using previous defaults or 1 for Cortex-A5.
191 (arm_option_override): Set max_insns_skipped from current tuning.
192
193 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
194
195 * doc/install.texi (Options specification): Document --with-specs.
196
197 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
198
199 * config/arm/neon.md (orndi3_neon): Actually split it.
200
201 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
202
203 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
204 * var-tracking.c (reverse_op): Limite recurse depth to 5.
205
206 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
207
208 PR debug/47590
209 * target.def (delay_sched2, delay_vartrack): New.
210 * doc/tm.texi.in: Update.
211 * doc/tm.texi: Rebuild.
212 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
213 * var-tracking.c (gate_handle_var_tracking): Likewise.
214 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
215 (bfin_flag_var_tracking): Drop.
216 (output_file_start): Don't save and override flag_var_tracking.
217 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
218 (bfin_reorg): Test original variables.
219 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
220 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
221 (ia64_flag_var_tracking): Drop.
222 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
223 (ia64_file_start): Don't save and override flag_var_tracking.
224 (ia64_override_options_after_change): Ditto
225 flag_schedule_insns_after_reload.
226 (ia64_reorg): Test original variables.
227 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
228 (picochip_flag_var_tracking): Drop.
229 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
230 (picochip_option_override): Don't save and override
231 flag_schedule_insns_after_reload.
232 (picochip_asm_file_start): Ditto flag_var_tracking.
233 (picochip_reorg): Test original variables.
234 * config/spu/spu.c (spu_flag_var_tracking): Drop.
235 (TARGET_DELAY_VARTRACK): Define.
236 (spu_var_tracking): New.
237 (spu_machine_dependent_reorg): Call it.
238 (asm_file_start): Don't save and override flag_var_tracking.
239
240 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
241
242 PR target/49163
243 * config/sh/predicates.md (general_movsrc_operand): Return 0
244 for memory and memory subreg of which address is an invalid
245 indexed address for QI and HImode.
246 (general_movdst_operand): Likewise.
247
248 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
249
250 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
251 edges only, when there is a non-local label in the function.
252 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
253
254 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
255
256 * config/i386/constraints.md (Y3): New register constraint.
257 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
258 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
259 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
260 *sse2_interleave_lowv2df.
261
262 2011-06-02 Julian Brown <julian@codesourcery.com>
263
264 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
265 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
266 (arm_cortex_a5_tune): New.
267
268 2011-06-02 Julian Brown <julian@codesourcery.com>
269
270 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
271 * config/arm/arm.c (arm_default_branch_cost): New.
272 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
273 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
274 (arm_fa726_tune): Set branch_cost field using
275 arm_default_branch_cost.
276 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
277 current_tune structure.
278 * dojump.c (tm_p.h): Include file.
279
280 2011-06-02 Julian Brown <julian@codesourcery.com>
281
282 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
283 tuning.
284 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
285 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
286 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
287 field.
288 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
289 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
290 (arm_fa726te_tune): Add prefer_constant_pool setting.
291 (arm_v6t2_tune, arm_cortex_tune): New.
292 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
293 prefer_constant_pool setting.
294
295 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
296
297 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
298 switch statement.
299 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
300 (*movdf_internal) <case 6,7,8>: Ditto.
301
302 * config/i386/constraints.md (Y4): New register constraint.
303 * config/i386/sse.md (vec_set<mode>_0): Merge with
304 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
305 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
306 *vec_extractv2di_1_sse.
307 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
308 and *vec_concatv2di_rex64_sse.
309
310 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
311
312 PR target/48807
313 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
314 of cgraph_local_info for null before attempting to use it.
315
316 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
317
318 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
319 (current_function_dynamic_alloc_count): Delete.
320 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
321 (expand_builtin_nonlocal_goto): Remove obsolete comment.
322 (expand_builtin_update_setjmp_buf): Remove dead code.
323 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
324 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
325 support.
326 * function.c (instantiate_virtual_regs): Likewise.
327 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
328 for a block with a single abnormal incoming edge.
329 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
330 (SETJMP_VIA_SAVE_AREA): Delete.
331 * config/sparc/sparc-protos.h (load_got_register): Declare.
332 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
333 (load_got_register): Make global.
334 (sparc_frame_pointer_required): Add 'static'.
335 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
336 (sparc_builtin_setjmp_frame_value): New function.
337 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
338 (save_stack_nonlocal): New expander.
339 (restore_stack_nonlocal): Likewise.
340 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
341 (nonlocal_goto_internal): New insn.
342 (goto_handler_and_restore): Delete.
343 (builtin_setjmp_setup): Likewise.
344 (do_builtin_setjmp_setup): Likewise.
345 (setjmp): Likewise.
346 (builtin_setjmp_receiver): New expander.
347
348 2011-06-01 David Li <davidxl@google.com>
349
350 PR middle-end/49261
351 * tree-pretty-print.c (dump_function_header): Format cleanup.
352
353 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
354
355 PR target/49238
356 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
357 needed when original operands are used for msw_skip comparison.
358
359 2011-06-01 Jakub Jelinek <jakub@redhat.com>
360
361 PR debug/49250
362 * var-tracking.c (add_uses, add_stores): Don't call
363 cselib_subst_to_values on ENTRY_VALUE.
364
365 2011-06-01 Diego Novillo <dnovillo@google.com>
366
367 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
368 output_record_start with LTO_null instead of output_zero.
369 (lto_output_ts_binfo_tree_pointers): Likewise.
370 (lto_output_tree): Likewise.
371 (output_eh_try_list): Likewise.
372 (output_eh_region): Likewise.
373 (output_eh_lp): Likewise.
374 (output_eh_regions): Likewise.
375 (output_bb): Likewise.
376 (output_function): Likewise.
377 (output_unreferenced_globals): Likewise.
378 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
379 instead of NUM_TREE_CODES.
380 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
381 (lto_output_int_in_range): Change << to >> when shifting VAL.
382
383 2011-06-01 Diego Novillo <dnovillo@google.com>
384
385 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
386 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
387
388 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
389
390 PR target/45074
391 * optabs.h (valid_multiword_target_p): Declare.
392 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
393 doing multi-word operations.
394 * optabs.c (expand_binop): Likewise.
395 (expand_doubleword_bswap): Likewise.
396 (expand_absneg_bit): Likewise.
397 (expand_unop): Likewise.
398 (expand_copysign_bit): Likewise.
399 (multiword_target_p): New function.
400
401 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
402
403 PR rtl-optimization/48830
404 PR rtl-optimization/48808
405 PR rtl-optimization/48792
406 * reload.c (push_reload): Check contains_reg_of_mode.
407 * reload1.c (strip_paradoxical_subreg): New function.
408 (gen_reload_chain_without_interm_reg_p): Use it to handle
409 paradoxical subregs.
410 (emit_output_reload_insns, gen_reload): Likewise.
411
412 2011-06-01 David Li <davidxl@google.com>
413
414 * predict.c : Change pass name
415 * ipa.c: Ditto.
416 * dce.c: Ditto.
417 * tree-profile.c: Ditto.
418 * except.c: Ditto.
419
420 2011-06-01 David Li <davidxl@google.com>
421
422 * tree-pretty-print.c (dump_function_header): New function.
423 * final.c (rest_of_clean_state): Use header dumper.
424 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
425 * passes.c (pass_init_dump_file): Use header dumper.
426
427 2011-06-01 Jakub Jelinek <jakub@redhat.com>
428
429 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
430 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
431 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
432 New functions.
433 (mem_loc_descriptor): Use them.
434
435 * var-tracking.c (create_entry_value): New function.
436 (vt_add_function_parameter): Use it.
437
438 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
439
440 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
441 Include <signal.h>, <ucontext.h>.
442 (sigill_caught): Define.
443 (sigill_hdlr): New function.
444 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
445 insns can be executed.
446 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
447 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
448
449 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
450
451 * config/t-slibgcc-darwin: Move to ...
452 * config/t-slibgcc-dummy: ... this. Clarify comments.
453 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
454 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
455 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
456 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
457 Remove i386/t-crtstuff from tmake_file.
458 (i[34567]86-*-solaris2*): Remove t-svr4,
459 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
460 t-slibgcc-dummy.
461 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
462 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
463 sparc/t-crtfm from tmake_file.
464 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
465 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
466 Remove extra_parts.
467 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
468 * config/i386/t-nwld (SHLIB_LINK): Remove.
469 * config/i386/t-rtems-i386: Rename to ...
470 * config/i386/t-rtems: ... this.
471 ($(T)crti.o, $(T)crtn.o): Remove.
472 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
473 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
474 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
475 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
476 EXTRA_MULTILIB_PARTS): Remove.
477 * config/sparc/t-sol2-64: Likewise.
478 * config/sparc/t-sol2: Remove.
479 * config/sparc/t-crtin: Remove.
480 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
481 * config/i386/gmon-sol2.c: Remove.
482 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
483 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
484 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
485 * config/i386/sol2-gc1.asm: Remove.
486 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
487 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
488 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
489 * config/t-slibgcc-sld: Remove.
490
491 2011-06-01 Jakub Jelinek <jakub@redhat.com>
492
493 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
494 base_type_for_mode with op_mode instead of mode.
495
496 2011-06-01 Paul Brook <paul@cpodesourcery.com>
497
498 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
499 Cortex-A15.
500 * config/arm/arm-tune.md: Regenerate.
501 * config/arm/arm-tables.opt: Regenerate.
502 * config/arm/arm.c (FL_DIV): Rename...
503 (FL_THUMB_DIV): ... to this.
504 (FL_ARM_DIV): Define.
505 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
506 (arm_arch_hwdiv): Remove.
507 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
508 (arm_issue_rate): Add cortexr5.
509 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
510 __ARM_ARCH_EXT_IDIV__.
511 (TARGET_IDIV): Define.
512 (arm_arch_hwdiv): Remove.
513 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
514 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
515 (divsi3, udivsi3): New patterns.
516 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
517 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
518
519 2011-06-01 Martin Jambor <mjambor@suse.cz>
520
521 * ipa-utils.c (ipa_dfs_info): New field scc_no.
522 * ipa-utils.c (searchc): Set scc_no.
523
524 2011-06-01 Martin Jambor <mjambor@suse.cz>
525
526 * ipa-utils.c (searchc_env): New field allow_overwritable.
527 (searchc): do not ignore edges to overwritable nodes if indicated
528 by env->allow_overwritable.
529 (ipa_reduced_postorder): Set env.allow_overwritable.
530
531 2011-06-01 Richard Guenther <rguenther@suse.de>
532
533 * tree.c (free_lang_data): Do not reset boolean_type_node nor
534 char_type_node.
535 * lto-streamer.c (lto_record_common_node): Take node pointer,
536 do not register types.
537 (lto_preload_common_nodes): Explicitly skip preloading nodes
538 that differ between frontends.
539
540 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
541
542 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
543 NON_FLOAT_REGS.
544
545 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
546
547 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
548 parameter value for dump. Dump cost on outermost call only.
549 (rs6000_memory_move_cost): Dump cost on outermost call only.
550
551 2011-05-31 Jakub Jelinek <jakub@redhat.com>
552
553 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
554 DW_OP_GNU_convert ops.
555
556 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
557 cselib_preserve_constants.
558 (cselib_lookup_1): If cselib_preserve_constants,
559 a new VALUE is being created for REG and there is a VALUE for the
560 same register in wider mode, add another loc with lowpart SUBREG of
561 the wider VALUE.
562 (cselib_subst_to_values): Handle ENTRY_VALUE.
563 * var-tracking.c (replace_expr_with_values): Return NULL for
564 ENTRY_VALUE too.
565 * dwarf2out.c (convert_descriptor_to_signed): New function.
566 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
567 instead of two shifts.
568 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
569 the right mode if needed.
570 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
571 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
572 convert_descriptor_to_signed.
573 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
574 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
575
576 PR target/48688
577 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
578
579 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
580
581 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
582 of X87MODEI12 and SWI48x instead of SSEMODEI24.
583 (SWI248x): New mode iterator, rename from X87MODEI.
584 (X87MODEI): Remove mode iterator.
585 (X87MODEI12): Ditto.
586 (SSEMODEI24): Ditto.
587
588 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
589
590 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
591 * doc/invoke.texi: Document max-vartrack-expr-depth.
592 * var-tracking.c (EXPR_DEPTH): New.
593 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
594
595 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
596
597 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
598 * config/i386/sse.md: Add n to negated FMA pattern names.
599
600 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
601
602 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
603
604 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
605
606 * gengtype-state.c (read_state_params_structs): Initialize previous.
607
608 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
609
610 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
611 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
612
613 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
614
615 * config/i386/i386.md (*movtf_internal): Avoid allocating general
616 registers. Penalize F*r->o alternative to prevent partial memory
617 stalls. Slightly penalize *roF->*r alternative. Generate SSE
618 CONST_DOUBLE immediates when optimizing function for size. Do not move
619 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
620 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
621 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
622 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
623 alternatives.
624 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
625
626 (fp_register_operand splitters): Use fp_register_operand
627 constraint. Do not use FP_REG_P in insn condition.
628 (any_fp_register_operand splitters): Use any_fp_register_operand
629 constraint. Do not use ANY_FP_REG_P in insn condition.
630
631 2011-05-31 Jan Hubicka <jh@suse.cz>
632
633 * cgraph.h (cgraph_inline_failed_t): Give enum a name
634 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
635 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
636 (lto_output_edge): Use output_enum and var_len_unsigned.
637 (lto_output_varpool_node): Likewise.
638 (input_overwrite_node): Do not take resolution parameter;
639 extract it from a bitpack.
640 (input_node): Do not read resolution; use input_enum and
641 var_len_unsigned.
642 (input_varpool_node): Likewise.
643 (input_edge): Likewise.
644 (input_cgraph_1): Likewise.
645
646 2011-05-31 Richard Guenther <rguenther@suse.de>
647
648 * gimple.c (gimple_register_canonical_type): Do not register
649 any types via gimple_register_type.
650
651 2011-05-31 Jan Hubicka <jh@suse.cz>
652
653 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
654 of thunks.
655
656 2011-05-31 Jakub Jelinek <jakub@redhat.com>
657
658 PR rtl-optimization/49235
659 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
660 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
661
662 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
663
664 PR tree-optimization/49093
665 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
666 data references.
667
668 2011-05-31 Dodji Seketeli <dodji@redhat.com>
669
670 PR debug/49047
671 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
672 for concrete functions containing the code of cloned functions.
673
674 2011-05-31 Richard Guenther <rguenther@suse.de>
675
676 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
677 to ...
678 (forward_propagate_into_comparison_1): ... this.
679 (forward_propagate_comparison): Rename to ...
680 (forward_propagate_into_comparison): ... this. Split out
681 real forward propagation code to ...
682 (forward_propagate_comparison): ... this.
683 (forward_propagate_into_gimple_cond): Remove looping.
684 (forward_propagate_into_cond): Likewise.
685 (simplify_not_neg_expr): Return whether we have done something.
686 (simplify_gimple_switch): Likewise.
687 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
688 (ssa_forward_propagate_and_combine): ... this. Re-structure
689 to do a forward forward-propagation walk on BBs and a backward
690 stmt combining walk on BBs. Consistently re-scan changed statements.
691 (pass_forwprop): Adjust.
692
693 2011-05-30 Ian Lance Taylor <iant@google.com>
694
695 * godump.c (go_format_type): Correct length of name added to
696 obstack for anonymous field.
697
698 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
699
700 PR target/49186
701 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
702 part of the second operand is 0.
703
704 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
705
706 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
707 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
708 to memory for !TARGET_MEMORY_MISMATCH_STALL.
709 (*movdf_internal_rex64): Do not penalize F->r alternative.
710 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
711 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
712 when optimizing function for size. Do not move CONST_DOUBLEs
713 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
714 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
715 SUBREGs. Do not check for MEM_P operands in the insn condition,
716 check for ANY_FP_REGNO_P instead.
717 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
718 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
719 function for speed.
720 * config/i386/i386.c (ix86_option_override_internal): Do not
721 set TARGET_INTEGER_DFMODE_MOVES here.
722
723 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
724
725 PR target/49168
726 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
727
728 2011-05-30 Jakub Jelinek <jakub@redhat.com>
729
730 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
731 DW_TAG_rvalue_reference_type even for
732 -gdwarf-4 -fno-debug-types-section.
733
734 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
735
736 PR tree-optimization/46728
737 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
738 (build_and_insert_binop): New.
739 (gimple_expand_builtin_pow): Reorder args for
740 build_and_insert_call; use build_and_insert_binop; add more
741 optimizations for fractional exponents.
742
743 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
744
745 PR bootstrap/49190
746
747 Revert:
748 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
749
750 * tree.h (struct tree_identifier): Inherit from tree_typed, not
751 tree_common.
752 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
753 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
754 TS_BASE instead of TS_COMMON.
755 * varasm.c (assemble_name): Remove assert.
756
757 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
758
759 * config.gcc: Keep obselete list sorted.
760
761 2011-05-30 Jakub Jelinek <jakub@redhat.com>
762 Eric Botcazou <ebotcazou@adacore.com>
763
764 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
765 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
766 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
767 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
768 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
769
770 2011-05-30 Richard Guenther <rguenther@suse.de>
771
772 * gimple.c (gimple_types_compatible_p_1): Compare record
773 and union type members properly.
774
775 2011-05-30 Richard Guenther <rguenther@suse.de>
776
777 PR tree-optimization/49210
778 * ipa-split.c (split_function): Care for the case where the call
779 result is not trivially convertible to the result holding variable.
780
781 2011-05-30 Richard Guenther <rguenther@suse.de>
782
783 PR tree-optimization/49218
784 * tree-vrp.c (adjust_range_with_scev): Properly check whether
785 overflow occured.
786
787 2011-05-30 Richard Guenther <rguenther@suse.de>
788
789 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
790 New function split out from ...
791 (forward_propagate_into_gimple_cond): ... here. Adjust.
792 (forward_propagate_into_cond): Likewise.
793 (forward_propagate_comparison): Also propagate into
794 comparisons on assignment RHS. Change return value to
795 behave similar to forward_propagate_into_cond.
796 (tree_ssa_forward_propagate_single_use_vars): Handle
797 strict-overflow warnings properly for forward_propagate_comparison.
798
799 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
800
801 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
802 from plugin linker.
803 * configure: Regenerate.
804
805 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
806
807 PR tree-optimization/49199
808 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
809 non-reduction operands are either defined in the loop or by induction.
810
811 2011-05-29 Xinliang David Li <davidxl@google.com>
812
813 * opts-global.c (handle_common_deferred_options): Handle new options.
814 * passes.c (register_one_dump_file): Call register_pass_name.
815 (execute_one_pass): Check explicit enable/disable flag.
816 (passr_hash): New function.
817 (passr_eq): Ditto.
818 (register_pass_name): Ditto.
819 (get_pass_by_name): Ditto.
820 (pass_hash): Ditto.
821 (pass_eq): Ditto.
822 (enable_pass): Ditto.
823 (disable_pass): Ditto.
824 (is_pass_explicitly_enabled_or_disabled): Ditto.
825
826 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
827
828 * config/i386/i386.md (*movoi_internal_avx): Use
829 standard_sse_constant_opcode for alternative 0.
830 (*movti_internal_sse): Ditto.
831 (*movti_internal_rex64): Use standard_sse_constant_opcode for
832 alternative 2.
833 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
834 sselog1 type moves.
835 (*movsi_internal): Ditto.
836 (*movdi_internal): Ditto. Add ssecvt type moves.
837
838 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
839
840 PR target/48830
841 * rtlanal.c (simplify_subreg_regno): Adjust comment.
842
843 2011-05-29 Jakub Jelinek <jakub@redhat.com>
844
845 PR rtl-optimization/49095
846 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
847 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
848
849 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
850
851 PR target/43995
852 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
853 recurse_p argument. Only follow register copies if it is set,
854 and prevent mips_find_pic_call_symbol from recursing.
855 (mips_find_pic_call_symbol): Add a recurse_p argument.
856 Pass it to mips_pic_call_symbol_from_set.
857 (mips_annotate_pic_calls): Update accordingly.
858
859 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
860
861 * emit-rtl.c (try_split): Use a loop to search for
862 NOTE_INSN_CALL_ARG_LOCATIONs.
863
864 2011-05-29 Richard Guenther <rguenther@suse.de>
865
866 PR tree-optimization/49217
867 * ipa-pure-const.c (propagate_pure_const): Fix typos.
868
869 2011-05-28 Jan Hubicka <jh@suse.cz>
870
871 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
872 length.
873 (string_slot_free): Remove
874 (create_output_block): Initialize obstack.
875 (destroy_output_block): Free obstack.
876 (lto_string_index): Add PERSISTENT parameter; do not duplicate
877 the string unless it needs to be added into the hash.
878 (lto_output_string_with_length): Add persistent attribute;
879 handle NULL strings.
880 (lto_output_string): Add PERSISTENT parameter.
881 (output_string_cst, output_identifier): Simplify.
882 (lto_output_location_bitpack): Update.
883 (lto_output_builtin_tree): Update.
884 * lto-streamer.h (struct output_block): Add obstack.
885 (lto_output_string, lto_output_string_with_length): Remove
886 declarations; functions are static now.
887
888 2011-05-28 Jan Hubicka <jh@suse.cz>
889
890 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
891 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
892 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
893 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
894 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
895 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
896 unpack_ts_decl_with_vis_value_fields,
897 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
898 lto_get_builtin_tree): Use enum and variable length i/o.
899 * basic-block.h (profile_status_d): Add PROFILE_LAST.
900 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
901 New functions.
902 (bp_pack_enum, bp_unpack_enum): New macros.
903
904 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
905
906 * genrecog.c: Remove redundant forward declarations.
907
908 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
909
910 * config.gcc: Deprecate mips*-*-openbsd*.
911
912 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
913
914 PR bootstrap/49195
915 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
916 for match_op_dup.
917
918 2011-05-27 Andrew Pinski <pinskia@gmail.com>
919
920 PR middle-end/48981
921 * gengtype.c (vec_prefix_type): New function.
922 (note_def_vec): Use vec_prefix_type and change the length
923 attribute to be based on the prefix.
924 * vec.c: Include coretypes.h before vec.h.
925 (struct vec_prefix): Remove.
926 (vec_gc_p_reserve): Change the offsetof to sizeof.
927 (vec_gc_p_reserve_exact): Likewise.
928 (vec_heap_p_reserve): Likewise.
929 (vec_heap_p_reserve_exact): Likewise.
930 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
931 (vec_stack_p_reserve): Change the offsetof to sizeof.
932 (vec_stack_p_reserve_exact): Likewise.
933 * vec.h (struct vec_prefix): New struct definition.
934 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
935 (VEC_T_GTY(T,B)): Likewise.
936 (DEF_VEC_FUNC_P(T)): Use prefix field.
937 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
938 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
939
940 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
941
942 PR tree-optimization/46728
943 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
944 (powi_as_mults): Add gimple_set_location.
945 (build_and_insert_call): New.
946 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
947 0.5, 0.25, 0.75, 1./3., or 1./6.
948
949 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
950
951 * doc/contrib.texi: Update copyright years.
952 (Contributors): Add Zdenek Sojka.
953
954 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
955
956 * c-decl.c (c_push_function_context): Copy the current statement
957 list stack.
958 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
959 (finish_struct): Call building_stmt_list_p instead of checking
960 cur_stmt_list.
961 * c-parser.c (c_parser_postfix_expression): Likewise.
962 * c-typeck.c (c_end_compound_stmt): Likewise.
963 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
964 * tree-iterator.c (stmt_list_cache): Change to a VEC.
965 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
966 (free_stmt_list): Likewise.
967 * tree.h (struct tree_statement_list): Include typed_tree instead
968 of tree_common.
969 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
970 as TS_TYPED instead of TS_COMMON.
971
972 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
973 Uros Bizjak <ubizjak@gmail.com>
974
975 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
976 (HAVE_AS_IX86_TLSGDPTL): Define.
977 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
978 (HAVE_AS_IX86_TLSLDMPLT): Define.
979 * configure: Regenerate.
980 * config.in: Regenerate.
981 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
982 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
983 TARGET_SUN_TLS, use @tlsgdplt or @plt.
984 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
985 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
986 @tlsldmplt or @plt.
987 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
988
989 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
990
991 * sched-int.h (struct _haifa_deps_insn_data): New members cond
992 and reverse_cond.
993 (INSN_COND, INSN_REVERSE_COND): New macros.
994 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
995 once.
996 (sched_get_condition_with_rev): Cache the results, and look them up
997 if possible.
998 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
999 are clobbered by the current insn.
1000 * target.def (exposed_pipline): New sched data hook.
1001 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1002 * doc/tm.texi: Regenerate.
1003
1004 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1005
1006 PR tree-optimization/49170
1007 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1008 sincos or cexp.
1009
1010 2011-05-27 Richard Guenther <rguenther@suse.de>
1011
1012 PR middle-end/49189
1013 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1014 of comparisons.
1015
1016 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1017
1018 * haifa-sched.c (sched_scan_info): Remove.
1019 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1020 with NULL args.
1021 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1022 Remove functions.
1023 (sched_scan): Remove.
1024 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1025 static. All callers changed.
1026 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1027 static. All callers changed.
1028 (sched_init_luids): Remove all arguments except the first. All
1029 callers changed. Don't use sched_scan.
1030 (haifa_init_h_i_d): Likewise.
1031 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1032 manually rather than using sched_init_luids. Likewise with
1033 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1034 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1035 rather than sched_init_luids with NULL args.
1036 * sel-sched-ir.c (new_insns): Remove variable.
1037 (sched_scan): New static function, previously in haifa-sched.c. Remove
1038 all arguments but the first two; all callers changed.
1039 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1040 rather than sched_init_luids.
1041 (sel_init_bbs): Remove second argument. All callers changed.
1042 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1043 with NULL arguments.
1044 (create_insn_rtx_from_pattern): Likewise.
1045 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1046 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1047 (sched_init_insn_luid, sched_extend_luids): Declare.
1048 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1049 declarations.
1050
1051 2011-05-27 Richard Guenther <rguenther@suse.de>
1052
1053 PR middle-end/49177
1054 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1055 A CMP B ? (T) true : (T) false for non-integral types T again.
1056
1057 2011-05-27 Jan Hubicka <jh@suse.cz>
1058
1059 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1060 so 0 means NULL string.
1061 (lto_output_string_with_length): ... here.
1062 (lto_output_string, output_string_cst, output_identifier): Update
1063 handling of NULL strings.
1064 (lto_output_location_bitpack): New function.
1065 (lto_output_location): Use it.
1066 (lto_output_tree_ref): Use output_record_start.
1067 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1068 len values.
1069 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1070 values by 1.
1071 (input_string_internal): ... here;
1072 (input_string_cst, input_identifier, lto_input_string): Update handling
1073 of NULL strings.
1074 (lto_input_location_bitpack): New function
1075 (lto_input_location): Use it.
1076 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1077 values.
1078 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1079 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1080 (bp_pack_value): Sanity check the value range.
1081 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1082 New functions.
1083 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1084 New functions.
1085
1086 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1087
1088 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1089 call_arg_location instructions down the floor.
1090
1091 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1092
1093 PR rtl-optimization/49154
1094 * ira.c (setup_pressure_classes): Process class without sublcasses
1095 as a candidate for pressure classes.
1096
1097 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1098
1099 PR rtl-optimization/48575
1100 * genrecog.c (position_type): New enum.
1101 (position): New structure.
1102 (decision): Use position structure instead of a string.
1103 (root_pos, peep2_insn_pos_list): New variables.
1104 (next_position, compare_positions): New functions.
1105 (new_decision): Use position structures instead of strings.
1106 (maybe_both_true): Likewise.
1107 (change_state): Likewise.
1108 (write_tree): Likewise.
1109 (make_insn_sequence): Likewise.
1110
1111 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1112
1113 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1114 TS_BASE instead of TS_COMMON.
1115 (find_decls_types_r): Check for TS_TYPED structure before looking at
1116 TREE_TYPE.
1117 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1118 Add chain field.
1119 (BLOCK_CHAIN): Use new chain field.
1120
1121 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1122
1123 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1124 moves expensive on Power7 also.
1125
1126 2011-05-26 Richard Guenther <rguenther@suse.de>
1127
1128 * fold-const.c (fold_unary_loc): Remove bogus code.
1129
1130 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1131
1132 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1133 tree_common.
1134 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1135 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1136 TS_BASE instead of TS_COMMON.
1137 * varasm.c (assemble_name): Remove assert.
1138
1139 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1140
1141 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1142 substituted first.
1143 * libgcc-std.ver: Delete file.
1144
1145 2011-05-26 Richard Guenther <rguenther@suse.de>
1146
1147 PR tree-optimization/48702
1148 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1149 only when we know the base address is within bounds.
1150 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1151 assume the base address of TARGET_MEM_REFs is in bounds.
1152
1153 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1154
1155 PR target/49099
1156 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1157 declaration in TARGET_SOLARIS.
1158
1159 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1160
1161 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1162 The instruction is then expanded explicitly.
1163 (supported_compare): Callable instruction.
1164 (compare): Likewise.
1165
1166 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1167
1168 PR c++/49165
1169 * gimplify.c (shortcut_cond_r): Don't special case
1170 COND_EXPRs if they have void type on one of their arms.
1171
1172 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1173
1174 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1175 to reduce duplication, and to achieve a slightly more logical order
1176 of operations.
1177
1178 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1179
1180 PR tree-optimization/49161
1181 * tree-vrp.c (struct case_info): New type.
1182 (compare_case_labels): Sort case_info structs instead of
1183 trees, and not primarily by CASE_LABEL uids but by
1184 label_for_block indexes.
1185 (find_switch_asserts): Put case labels into struct case_info
1186 array instead of TREE_VEC, adjust sorting, compare label_for_block
1187 values instead of CASE_LABELs.
1188
1189 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1190
1191 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1192 ("orndi3_neon"): Likewise.
1193 ("bic<mode>3_neon"): Likewise.
1194
1195 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1196
1197 PR tree-optimization/49038
1198 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1199 Ensure at least one epilogue iteration if required by data
1200 accesses with gaps.
1201 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1202 to mark loops that require peeling for gaps.
1203 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1204 (vect_get_known_peeling_cost): Take peeling for gaps into
1205 account.
1206 (vect_transform_loop): Generate epilogue if required by data
1207 access with gaps.
1208 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1209 loop as requiring an epilogue if there are gaps in the end of
1210 the strided group.
1211
1212 2011-05-25 Ian Lance Taylor <iant@google.com>
1213
1214 * godump.c (go_format_type): Output the first field with a usable
1215 Go type, if any.
1216
1217 2011-05-25 Ian Lance Taylor <iant@google.com>
1218
1219 * godump.c (go_format_type): Check for invalid type names, pointer
1220 target types, and struct field types.
1221
1222 2011-05-25 Jason Merrill <jason@redhat.com>
1223
1224 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1225
1226 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1227
1228 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1229
1230 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1231
1232 * config/i386/i386.md (*movqi_extv_1)): Put back
1233 "register_operand" check in "type" calculation.
1234 (*movqi_extzv_2): Likewise.
1235
1236 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1237
1238 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1239
1240 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1241
1242 PR bootstrap/49160
1243 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1244 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1245 __divxc3, __divtc3): Wrap definitions in #ifndef.
1246
1247 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1248
1249 PR target/49142
1250 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1251 "register_operand" check and replace q_regs_operand with
1252 QIreg_operand in "type" calculation.
1253 (*movqi_extv_1): Likewise.
1254 (*movqi_extzv_2_rex64): Likewise.
1255 (*movqi_extzv_2): Likewise.
1256
1257 * config/i386/predicates.md (QIreg_operand): New.
1258
1259 2011-05-25 Richard Guenther <rguenther@suse.de>
1260
1261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1262 type-based offset disambiguation, streamline MEM_REF and
1263 TARGET_MEM_REF handling.
1264
1265 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1266
1267 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1268 (bdesc_special_args): Add pause intrinsic.
1269
1270 * config/i386/i386.md (UNSPEC_PAUSE): New.
1271 (pause): Likewise.
1272 (*pause): Likewise.
1273 * config/i386/ia32intrin.h (__pause): Likewise.
1274
1275 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1276 pause intrinsic.
1277
1278 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1279
1280 PR tree-optimization/46728
1281 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1282 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1283
1284 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1285
1286 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1287 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1288 instead of TS_COMMON.
1289
1290 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1291
1292 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1293 LIBGCC2_GNU_PREFIX is defined.
1294 (__N): New macro.
1295 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1296 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1297 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1298 __clz_tab): Define using __N.
1299 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1300 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1301 * target.def (libfunc_gnu_prefix): New hook.
1302 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1303 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1304 * doc/tm.texi: Regenerate.
1305 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1306 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1307 account.
1308 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1309 (init_optabs): Likewise for the bswap libfuncs.
1310 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1311 and divide.
1312 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1313 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1314 * libgcc-std.ver: Remove.
1315 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1316 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1317 libgcc-std.ver.
1318 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1319 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1320 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1321 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1322 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1323 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1324 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1325 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1326 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1327 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1328
1329 2011-05-25 Jan Hubicka <jh@suse.cz>
1330
1331 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1332 (lto_output_tree): Use output_record_start.
1333 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1334 (lto_get_pickled_tree): Use input_record_start.
1335 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1336 (lto_value_range_error): New function.
1337 * lto-streamer.h (lto_value_range_error): Declare.
1338 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1339 (lto_output_enum, lto_input_enum): New macros.
1340
1341 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1342
1343 * common.opt (flag_stack_usage_info): New variable.
1344 (-Wstack-usage): New option.
1345 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1346 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1347 <OPT_fstack_usage>: Likewise.
1348 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1349 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1350 of flag_stack_usage.
1351 (emit_library_call_value_1): Likewise.
1352 * explow.c (allocate_dynamic_stack_space): Likewise.
1353 * function.c (instantiate_virtual_regs ): Likewise.
1354 (prepare_function_start): Likewise.
1355 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1356 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1357 * config/arm/arm.c (arm_expand_prologue): Likewise.
1358 (thumb1_expand_prologue): Likewise.
1359 * config/avr/avr.c (expand_prologue): Likewise.
1360 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1361 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1362 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1363 * config/mips/mips.c (mips_expand_prologue): Likewise.
1364 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1365 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1366 * config/s390/s390.c (s390_emit_prologue): Likewise.
1367 * config/sh/sh.c (sh_expand_prologue): Likewise.
1368 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1369 * config/spu/spu.c (spu_expand_prologue): Likewise.
1370
1371 2011-05-25 Richard Guenther <rguenther@suse.de>
1372
1373 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1374 (gimple_canonical_types_compatible_p): Likewise.
1375
1376 2011-05-25 Jan Hubicka <jh@suse.cz>
1377
1378 PR middle-end/49062
1379 * ipa.c (function_and_variable_visibility): Only add to same
1380 comdat group list if DECL_ONE_ONLY.
1381
1382 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1383
1384 PR rtl-optimization/49014
1385 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1386
1387 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1388
1389 PR target/49128
1390 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1391
1392 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1393
1394 PR rtl-optimization/48757
1395 * ira-build.c (loop_with_eh_edge_p): Rename to
1396 loop_with_complex_edge_p, check edges on complexity, make function
1397 conditional.
1398 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1399 conditional.
1400
1401 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1402
1403 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1404 force flag_ira_share_save_slots to 0.
1405
1406 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1407
1408 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1409 (vt_initialize): Set PROLOGUE_BB unconditionally.
1410 Add block comment about CFA_BASE_RTX machinery.
1411 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1412 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1413
1414 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1415
1416 PR objc/48187
1417 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1418 parsing of syntax error in ObjC instance variable lists. In
1419 particular, avoid an infinite loop if there is a stray ']'.
1420 Updated error message.
1421
1422 2011-05-24 Ian Lance Taylor <iant@google.com>
1423
1424 * godump.c (go_define): Don't accept a string immediately after
1425 another operand.
1426
1427 2011-05-24 Ian Lance Taylor <iant@google.com>
1428
1429 * godump.c (struct godump_container): Add invalid_hash field.
1430 (go_format_type): Return false if type is found in invalid_hash.
1431 (go_output_typedef): Add invalid type to invalid_hash.
1432 (go_finish): Create and delete invalid_hash.
1433
1434 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1435
1436 PR tree-optimization/46728
1437 * tree-ssa-math-opts.c (powi_table): New.
1438 (powi_lookup_cost): New.
1439 (powi_cost): New.
1440 (powi_as_mults_1): New.
1441 (powi_as_mults): New.
1442 (gimple_expand_builtin_powi): New.
1443 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1444 (gate_cse_sincos): Remove sincos/cexp restriction.
1445
1446 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1447
1448 PR target/3746
1449 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1450 mips-tdump native.
1451 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1452 * mips-tdump.c: Likewise.
1453
1454 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1455
1456 PR target/49128
1457 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1458 add -mno-XXX. Handle FMA.
1459
1460 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1461
1462 PR rtl-optimization/48633
1463 * ira-build.c (loop_with_eh_edge_p): New function.
1464 (mark_loops_for_removal): Use it.
1465
1466 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1467
1468 PR rtl-optimization/48971
1469 * ira.c (setup_pressure_classes): Don't check register move cost
1470 for classes with one registers. Don't add pressure class if there
1471 is a pressure class with the same available hard registers.
1472 Check contains_reg_of_mode. Fix a typo in collecting
1473 temp_hard_regset. Ignore hard registers not belonging to a class.
1474
1475 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1476
1477 PR target/49133
1478 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1479
1480 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1481 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1482
1483 PR gcov-profile/48845
1484 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1485
1486 2011-05-24 Richard Guenther <rguenther@suse.de>
1487
1488 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1489 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1490 (gimple_types_compatible_p_1): Adjust.
1491 (iterative_hash_canonical_type): Do not bother about complete vs.
1492 incomplete types.
1493 (gimple_canonical_types_compatible_p): Likewise.
1494
1495 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1496
1497 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1498
1499 2011-05-24 Richard Guenther <rguenther@suse.de>
1500
1501 PR bootstrap/49078
1502 * gimple.c (gimple_register_canonical_type): Revert
1503 previous change.
1504 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1505 does not for a tree for the case where it matters. Cache
1506 pointer-type alias-sets.
1507
1508 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1509
1510 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1511 (OBJS): Remove options.o, opts-common.o and prefix.o.
1512 (OBJS-libcommon-target): New.
1513 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1514 (BACKEND): Include libcommon-target.a.
1515 (MOSTLYCLEANFILES): Include libcommon-target.a.
1516 (libcommon-target.a): New.
1517 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1518 prefix.o.
1519
1520 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1521
1522 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1523 parts of output shared with the driver.
1524 * optc-gen.awk: Don't generate parts of output not shared with the
1525 driver.
1526 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1527 * doc/options.texi (SourcerInclude): Mention options-save.c.
1528 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1529 (OBJS): Add options-save.o.
1530 (options-save.c, options-save.o): New.
1531 (options.o): Update dependencies.
1532 (gcc-options.o): Remove.
1533 (mostlyclean): Remove options-save.c.
1534
1535 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1536
1537 PR debug/49032
1538 * dbxout.c: Include cgraph.h.
1539 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1540 and without value expr, return NULL if no varpool node exists for
1541 it or if it is not needed.
1542 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1543
1544 PR c/49120
1545 * c-decl.c (start_decl): Convert expr to void_type_node.
1546
1547 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1548
1549 PR rtl-optimization/48826
1550 * emit-rtl.c (try_split): When splitting a call that is followed
1551 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1552
1553 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1554
1555 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1556 parameters passed in memory prefer using DECL_INCOMING_RTL over
1557 the pseudos it will be copied into.
1558
1559 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1560
1561 PR target/47315
1562 * config/i386/i386.c (ix86_option_override_internal): Save the
1563 initial options after checking vzeroupper.
1564
1565 2011-05-23 David Li <davidxl@google.com>
1566
1567 PR tree-optimization/48988
1568 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1569 Initialize has_valid_pred for each pred chain.
1570
1571 2011-05-23 Richard Guenther <rguenther@suse.de>
1572
1573 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1574 (iterative_hash_gimple_type): Always hash type names.
1575
1576 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1577
1578 * c-typeck.c (build_function_call_vec): Tweak call to
1579 check_function_arguments.
1580
1581 2011-05-23 Richard Guenther <rguenther@suse.de>
1582
1583 PR tree-optimization/49115
1584 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1585 is not necessarily carried out, do not claim it kills the ref.
1586 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1587
1588 2011-05-23 Richard Guenther <rguenther@suse.de>
1589
1590 PR middle-end/15419
1591 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1592 what pointer types we accept for folding.
1593
1594 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1595
1596 * gthr-gnat.c: Remove.
1597 * gthr-gnat.h: Remove.
1598 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1599 * config/t-freebsd (LIB2ADDEH): Likewise.
1600 * config/t-linux (LIB2ADDEH): Likewise.
1601 * config/t-sol2 (LIB2ADDEH): Likewise.
1602 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1603 * configure.ac (target_thread_file): Remove gnat handling.
1604 * configure: Regenerate.
1605 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1606
1607 2011-05-23 Tristan Gingold <gingold@adacore.com>
1608 Eric Botcazou <ebotcazou@adacore.com>
1609
1610 * gcov.c (create_file_names): If no object directory is specified,
1611 keep the directory of the file.
1612
1613 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1614
1615 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1616 * configure: Regenerate.
1617
1618 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1619
1620 PR middle-end/48973
1621 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1622 failed and the comparison has a single bit signed type, use
1623 constm1_rtx instead of const1_rtx for true value.
1624 (do_store_flag): If ops->type is single bit signed type, disable
1625 signel bit test optimization and pass -1 instead of 1 as last
1626 parameter to emit_store_flag_force.
1627
1628 2011-05-23 Tom de Vries <tom@codesourcery.com>
1629
1630 PR target/45098
1631 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1632 function.
1633 (infer_loop_bounds_from_undefined): Use new function.
1634
1635 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1636
1637 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1638 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1639 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1640 and -O0 otherwise.
1641 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1642
1643 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1644
1645 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1646 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1647 returns true.
1648
1649 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1650
1651 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1652
1653 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1654
1655 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1656 UNSPEC_MOVE_PIC pattern.
1657
1658 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1659
1660 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1661 (sparc-*-rtems*): Likewise.
1662 (sparc64-*-elf*): Likewise.
1663 (sparc64-*-rtems*): Likewise.
1664 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1665 * config/sparc/t-crtin: New file.
1666 * config/sparc/t-sol2 (crti.o): Delete rule.
1667 (crtn.o): Likewise.
1668 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1669 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1670 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1671 (ENDFILE_SPEC): Add crtn.o.
1672
1673 2011-05-22 Tom de Vries <tom@codesourcery.com>
1674
1675 PR middle-end/48689
1676 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1677 CODE_CONTAINS_STRUCT (TS_COMMON).
1678
1679 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1680
1681 PR middle-end/49029
1682 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1683 only after deciding which mode to use.
1684
1685 2011-05-22 Tom de Vries <tom@codesourcery.com>
1686
1687 PR target/45098
1688 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1689 for call to get_shiftadd_cost.
1690
1691 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1692
1693 PR target/49104
1694 * config/i386/cpuid.h (bit_MMXEXT): New define.
1695
1696 2011-05-22 Nick Clifton <nickc@redhat.com>
1697
1698 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1699 initialisation of non-existant args[2] element. Use args[] array
1700 not arg[] array to pass arguments to build_function_type_list.
1701
1702 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1703
1704 PR tree-optimization/49087
1705 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1706
1707 2011-05-21 Jason Merrill <jason@redhat.com>
1708
1709 PR c++/49092
1710 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1711 static storage duration.
1712
1713 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1714
1715 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1716 frame pointer.
1717
1718 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1719
1720 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1721 false if there are call-saved registers here...
1722 (sparc_can_use_return_insn_p): ...but here instead.
1723 (save_or_restore_regs): Fix thinko.
1724 (sparc_expand_prologue): Use current_function_is_leaf.
1725 (sparc_frame_pointer_required): Likewise.
1726
1727 2011-05-21 Nick Clifton <nickc@redhat.com>
1728
1729 PR target/49098
1730 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1731
1732 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1733
1734 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1735 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1736
1737 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1738
1739 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1740 * optc-gen.awk: Move common code to opt-read.awk.
1741 * opth-gen.awk: Likewise.
1742 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1743
1744 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1745
1746 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1747
1748 2011-05-20 Tom de Vries <tom@codesourcery.com>
1749
1750 PR target/45098
1751 * tree-ssa-loop-ivopts.c: Include expmed.h.
1752 (get_shiftadd_cost): New function.
1753 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1754
1755 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1756
1757 PR bootstrap/49086
1758 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1759 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1760
1761 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1762
1763 * Makefile.in: Update comment referring to $(OBJS-common).
1764
1765 2011-05-20 Ian Lance Taylor <iant@google.com>
1766
1767 * godump.c (go_output_typedef): Put enum constants in the macro
1768 hash table to avoid duplicate Go const definitions.
1769
1770 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1771
1772 * Makefile.in (LIBDEPS): Add libcommon.a.
1773 (LIBS): Likewise.
1774 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1775 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1776 pretty-print.o and version.o.
1777 (OBJS-libcommon): New.
1778 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1779 (BACKEND): Add libcommon.a.
1780 (MOSTLYCLEANFILES): Likewise.
1781 (libcommon.a): New.
1782 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1783 (cpp$(exeext)): Likewise.
1784 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1785 pretty-print.o and input.o.
1786 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1787 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1788 (errors.o): Remove.
1789 (mips-tfile): Don't explicitly use version.o.
1790 (mips-tdump): Likewise.
1791 (gcov.o): Depend on $(DIAGNOSTIC_H).
1792 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1793 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1794 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1795 * gcov-dump.c: Include intl.h and diagnostic.h.
1796 (main): Initialize diagnostics.
1797 * gcov.c: Include diagnostic.h.
1798 (fnotice): Remove.
1799 (main): Initialize diagnostics.
1800 * lto-wrapper.c: Include diagnostic.h.
1801 (main): Initialize diagnostics.
1802
1803 2011-05-20 Michael Matz <matz@suse.de>
1804
1805 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1806
1807 2011-05-20 Michael Matz <matz@suse.de>
1808 Richard Guenther <rguenther@suse.de>
1809
1810 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1811 use lto_streamer_cache_append directly instead of returning a VEC.
1812 (preload_common_node): Remove.
1813 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1814 track seen nodes.
1815 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1816
1817 2011-05-20 Richard Guenther <rguenther@suse.de>
1818
1819 PR tree-optimization/49079
1820 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1821 MEM_REFs correctly for the trailing array access detection.
1822 Special case constants the same way as decls for overall size
1823 constraining.
1824
1825 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1826
1827 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1828 argument expansion.
1829
1830 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1831
1832 PR tree-optimization/49073
1833 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1834 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1835 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1836
1837 2011-05-20 Richard Guenther <rguenther@suse.de>
1838
1839 PR middle-end/48849
1840 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1841 of pointer types the same way the middle-end does.
1842
1843 2011-05-20 Richard Guenther <rguenther@suse.de>
1844
1845 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1846 or pointer-to chains. Delay all fixup to uniquify_nodes.
1847
1848 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1849
1850 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1851 (fma4_fmaddsub): Likewise
1852
1853 2011-05-19 Jan Hubicka <jh@suse.cz>
1854
1855 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1856 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1857 (type_pair_cache): New static var.
1858 (lookup_type_pair): Use fixed sized custom hash; make inline.
1859 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1860 calls of lookup_type_pair.
1861 (print_gimple_types_stats): Remove cache stats.
1862 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1863 and gtc_ob.
1864
1865 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1866
1867 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1868 when TARGET_RDRND is active.
1869 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1870 Generate dummy SImode target register when target is NULL.
1871
1872 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1873
1874 * config/arm/arm-fpus.def: New.
1875 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1876 arm-fpus.def.
1877 * config/arm/arm-tables.opt: Regenerate.
1878 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1879 (arm_option_override): Don't decode FPU name to string here.
1880 * config/arm/arm.opt (mfpu=): Use Enum.
1881 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1882 Update dependencies.
1883
1884 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1885
1886 * collect2.c: Include diagnostic.h.
1887 (fatal_perror, fatal, error, fancy_abort): Remove.
1888 (main): Set progname. Call xmalloc_set_program_name and
1889 diagnostic_initialize.
1890 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1891 scan_libraries, resolve_lib_name): Call fatal_error instead of
1892 fatal and fatal_perror.
1893 * collect2.h (error, fatal, fatal_perror): Don't declare.
1894 * tlink.c: Include diagnostic-core.h.
1895 (recompile_files): Call fatal_error instead of fatal_perror.
1896 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1897 pretty-print.o and input.o.
1898 (collect2.o, tlink.o): Update dependencies.
1899
1900 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1901
1902 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1903
1904 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1905
1906 PR target/40483
1907 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1908 COMDAT group syntax, both SPARC and x86 variants.
1909 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1910 * configure: Regenerate.
1911 * config/sol2.h (TARGET_SOLARIS): Define.
1912 (PUSHSECTION_FORMAT): Remove.
1913 (SECTION_NAME_FORMAT): Define.
1914 * config/sol2.c: Include hashtab.h.
1915 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1916 expansion, using SECTION_NAME_FORMAT.
1917 (solaris_comdat_htab): New variable.
1918 (struct comdat_entry): Define.
1919 (comdat_hash): New function.
1920 (comdat_eq): New function.
1921 (solaris_elf_asm_comdat_section): New function.
1922 (solaris_define_comdat_signature): New function.
1923 (solaris_code_end): New function.
1924 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1925 (solaris_code_end): Declare.
1926 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1927 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1928 solaris_code_end.
1929 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1930 Remove ATTRIBUTE_UNUSED.
1931 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1932 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1933 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1934 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1935 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1936 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1937 (PUSHSECTION_FORMAT): Remove.
1938 (SECTION_NAME_FORMAT): Redefine.
1939
1940 2011-05-19 Kai Tietz <ktietz@redhat.com>
1941
1942 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1943 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1944 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1945
1946 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1947 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1948
1949 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1950
1951 2011-05-19 Richard Guenther <rguenther@suse.de>
1952
1953 PR middle-end/48985
1954 * tree-object-size.c (addr_object_size): If the pointed-to
1955 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1956
1957 2011-05-19 Richard Guenther <rguenther@suse.de>
1958
1959 * gimple.c (gimple_types_compatible_p_1): Compare names of
1960 the types themselves.
1961 (iterative_hash_gimple_type): And hash them that way.
1962 (gimple_register_type_1): If we register a main variant properly
1963 initialize the leader to ourselves.
1964
1965 2011-05-19 Tom de Vries <tom@codesourcery.com>
1966
1967 PR target/45098
1968 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1969 get_loop_invariant_expr_id.
1970 (get_loop_invariant_expr_id): Use get_expr_id.
1971 (parm_decl_cost): New function.
1972 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1973 Improve bound cost estimation. Use different inv_expr_id for elim and
1974 express cases.
1975
1976 2011-05-19 Tom de Vries <tom@codesourcery.com>
1977
1978 PR target/45098
1979 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1980 cost_base.cost == 0.
1981
1982 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 PR target/49002
1985 * config/i386/sse.md
1986 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1987 load cast.
1988
1989 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1990
1991 PR tree-optimization/49039
1992 * tree-vrp.c (extract_range_from_binary_expr): For
1993 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1994 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1995
1996 2011-05-18 Tom de Vries <tom@codesourcery.com>
1997
1998 PR target/45098
1999 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2000
2001 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2002
2003 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2004 (*tls_global_dynamic_64): Ditto.
2005 (*tls_local_dynamic_base_32_gnu): Ditto.
2006 (*tls_local_dynamic_base_64): Ditto.
2007 (tls_initial_exec_64_sun): Ditto.
2008
2009 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2010
2011 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2012 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2013 bf592-none.
2014 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2015 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2016 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2017 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2018 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2019 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2020 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2021
2022 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2023
2024 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2025 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2026 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2027 target_thread_pointer, arm_structure_size_boundary, struct
2028 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2029 struct abi_name, arm_all_abis): Remove.
2030 (arm_option_override) Don't process most enumerated option values here.
2031 Don't process target_fpe_name here. Work with integer not string for
2032 structure size boundary; use separate diagnostics for each case.
2033 * config/arm/arm.h (enum float_abi_type, enum
2034 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2035 to arm-opts.h.
2036 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2037 arm_structure_size_boundary): Remove.
2038 * config/arm/arm.opt (mabi=): Use Enum and Init.
2039 (arm_abi_type): New Enum and EnumValue entries.
2040 (mfloat-abi=): Use Enum and Init.
2041 (float_abi_type): New Enum and EnumValue entries.
2042 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2043 (mfp16-format=): Use Enum and Init.
2044 (arm_fp16_format_type): New Enum and EnumValue entries.
2045 (mstructure-size-boundary=): Use UInteger and Init.
2046 (mtp=): Use Enum and Init.
2047 (arm_tp_type): New Enum and EnumValue entries.
2048
2049 2011-05-18 Richard Guenther <rguenther@suse.de>
2050
2051 PR tree-optimization/49018
2052 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2053 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2054 gimple_has_side_effects.
2055
2056 2011-05-18 Richard Guenther <rguenther@suse.de>
2057
2058 * gimple.c (gimple_register_type_1): New function, split out from ...
2059 (gimple_register_type): ... here. Avoid infinite recursion.
2060
2061 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2062
2063 PR tree-optimization/41881
2064 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2065 reduction_chains along with a macro for its access.
2066 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2067 (destroy_loop_vec_info): Free reduction chains.
2068 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2069 (vect_is_slp_reduction): New function.
2070 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2071 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2072 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2073 definition types for reduction chains.
2074 (vect_supported_load_permutation_p): Don't allow permutations for
2075 reduction chains.
2076 (vect_analyze_slp_instance): Support reduction chains.
2077 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2078 (vect_get_constant_vectors): Handle reduction chains.
2079 (vect_schedule_slp_instance): Mark the first statement of the
2080 reduction chain as reduction.
2081
2082 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2083
2084 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2085 names for group elements access.
2086 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2087 reduction chains as well. Remove data reference and interleaving
2088 related words from the fields names.
2089 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2090 elements access.
2091 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2092 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2093 vect_update_interleaving_chain, vect_same_range_drs,
2094 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2095 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2096 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2097 vect_analyze_group_access, vect_analyze_data_ref_access,
2098 vect_create_data_ref_ptr, vect_transform_strided_load,
2099 vect_record_strided_load_vectors): Likewise.
2100 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2101 vect_model_load_cost, vectorizable_store, vectorizable_load,
2102 vect_remove_stores, new_stmt_vec_info): Likewise.
2103 * tree-vect-slp.c (vect_build_slp_tree,
2104 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2105
2106 2011-05-18 Richard Guenther <rguenther@suse.de>
2107
2108 PR middle-end/48989
2109 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2110 operand verification.
2111 (verify_gimple_assign_binary): Likewise.
2112 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2113 to non-1-precision BOOLEAN_TYPEs.
2114
2115 2011-05-18 Tom de Vries <tom@codesourcery.com>
2116
2117 PR target/45098
2118 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2119
2120 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2121
2122 PR tree-optimization/49000
2123 * tree-ssa.c (execute_update_addresses_taken): Call
2124 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2125 be rewritten and decl has been marked for renaming, reset
2126 the debug stmt.
2127
2128 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2129
2130 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2131 enum_opts_set when testing if attributes have set -mfpmath=.
2132
2133 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2134
2135 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2136
2137 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2138
2139 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2140 info->entry with 0
2141 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2142 id.transform_lang_insert_block with NULL.
2143
2144 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2145
2146 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2147 (output_fp_compare): Change args 3 and 4 to bool.
2148 (ix86_expand_call): Change arg 6 to bool.
2149 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2150 (ix86_attr_length_vex_default): Change arg 3 to bool.
2151 * config/i386/i386.md: Update all uses.
2152 * config/i386/i386.c: Ditto.
2153 (ix86_flags_dependent): Change return type to bool.
2154
2155 2011-05-17 Richard Guenther <rguenther@suse.de>
2156
2157 * gimple.c (type_hash_pair_compare): Fix comparison.
2158
2159 2011-05-17 Richard Guenther <rguenther@suse.de>
2160
2161 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2162 case some more, fix final hash value of the non-singleton case.
2163
2164 2011-05-17 Richard Guenther <rguenther@suse.de>
2165
2166 PR bootstrap/49013
2167 Revert
2168 2011-05-16 Richard Guenther <rguenther@suse.de>
2169
2170 * gimple.c (gimple_types_compatible_p_1): Use names of the
2171 type itself, not its main variant.
2172 (iterative_hash_gimple_type): Likewise.
2173
2174 2011-05-17 Richard Guenther <rguenther@suse.de>
2175
2176 * gimple.c (gimple_register_canonical_type): Use the main-variant
2177 leader for computing the canonical type.
2178
2179 2011-05-17 Nick Clifton <nickc@redhat.com>
2180
2181 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2182 moves.
2183
2184 * config/rx/rx.md: Add peephole to remove redundant extensions
2185 after loads.
2186 (bitset_in_memory): Use rx_restricted_mem_operand.
2187 (bitinvert_in_memory): Likewise.
2188 (bitclr_in_memory): Likewise.
2189
2190 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2191 Nick Clifton <nickc@redhat.com>
2192
2193 * config/rx/rx.md: Add peepholes to match a register move followed
2194 by a comparison of the moved register. Replace these with an
2195 addition of zero that does both actions in one instruction.
2196
2197 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2198
2199 PR target/48986
2200 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2201 predicate to allow CONST_INT.
2202 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2203
2204 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2205
2206 * opts-common.c (opt_enum_arg_to_value): New.
2207 * opts.h (opt_enum_arg_to_value): Declare.
2208 * config/i386/i386.opt (fpmath): Remove.
2209 (mfpmath=): Use Enum, Init and Save.
2210 (fpmath_unit): New Enum and EnumValue entries.
2211 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2212 name for function fpmath state.
2213 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2214 * config/i386/i386.c: Include diagnostic.h.
2215 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2216 (ix86_target_string): Take enum fpmath_unit value instead of string.
2217 (ix86_debug_options): Update call to ix86_target_string.
2218 (ix86_option_override_internal): Don't process fpmath strings here.
2219 (x86_function_specific_save, ix86_function_specific_restore):
2220 Don't handle fpmath state specially.
2221 (ix86_function_specific_print): Pass fpmath state to
2222 ix86_target_string instead of printing in this function.
2223 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2224 Handle enum attributes.
2225 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2226 (ix86_valid_target_attribute_tree): Update option_strings
2227 handling. Handle fpmath as enum option.
2228 (ix86_can_inline_p): Update field names for function fpmath state.
2229 (ix86_expand_builtin): Update call to ix86_target_string.
2230 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2231 (ix86_fpmath): Remove.
2232 * config/i386/t-i386 (i386.o): Update dependencies.
2233
2234 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2235
2236 PR preprocessor/48677
2237 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2238 from decoded_options[0], not from itself.
2239
2240 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2241
2242 * config/i386/constraints.md (z): New constraint.
2243 * config/i386/i386.c (c): New mode attribute.
2244 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2245 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2246 constraint for operand 0.
2247 (*call_vzeroupper): Ditto.
2248 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2249 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2250 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2251 Use "lzm" constraint for operand 0.
2252 (*call_pop_vzeroupper): Ditto.
2253 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2254 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2255 constraint for operand 0.
2256 (*sibcall_vzeroupper): Ditto.
2257 (*sibcall_rex64_ms_sysv): Ditto.
2258 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2259 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2260 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2261 (*sibcall_pop_vzeroupper): Ditto.
2262 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2263 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2264 mode iterator. Use "<c>zm" constraint for operand 1.
2265 (*call_value_vzeroupper): Ditto.
2266 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2267 for operand 1.
2268 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2269 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2270 *call_value_pop_1. Use "lzm" constraint for operand 1.
2271 (*call_value_pop_vzeroupper): Ditto.
2272 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2273 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2274 mode iterator. Use "Uz" constraint for operand 1.
2275 (*sibcall_value_vzeroupper): Ditto.
2276 (*sibcall_value_rex64_ms_sysv): Ditto.
2277 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2278 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2279 constraint for operand 1.
2280 (*sibcall_value_pop_vzeroupper): Ditto.
2281 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2282 and "z" constraint for operand 2.
2283 (*tls_global_dynamic_32_gnu): Ditto.
2284 (*tls_local_dynamic_base_32_gnu): Ditto.
2285 (*tls_local_dynamic_base_64): Ditto.
2286 (*tls_local_dynamic_32_once): Ditto.
2287 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2288 Update all callers.
2289 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2290
2291 2011-05-16 Richard Guenther <rguenther@suse.de>
2292
2293 * gimple.c (gimple_types_compatible_p_1): Use names of the
2294 type itself, not its main variant.
2295 (iterative_hash_gimple_type): Likewise.
2296
2297 2011-05-16 Richard Guenther <rguenther@suse.de>
2298
2299 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2300 always visit pointer target and function result and argument types.
2301
2302 2011-05-16 Jason Merrill <jason@redhat.com>
2303
2304 PR c++/48999
2305 * tree-inline.c (copy_statement_list): Put back recursion.
2306
2307 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2308
2309 PR target/27663
2310 PR target/41076
2311 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2312 * config/avr/avr.md ("*ior<mode>qi.byte0",
2313 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2314
2315 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2316
2317 PR target/45099
2318 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2319 register is needed for a function argument.
2320
2321 2011-05-16 Richard Guenther <rguenther@suse.de>
2322
2323 * gimple.c (struct type_hash_pair): New type.
2324 (type_hash_pair_compare): New function.
2325 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2326
2327 2011-05-16 Revital Eres <revital.eres@linaro.org>
2328
2329 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2330
2331 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2332
2333 * config/i386/i386.md (floating point move splitters): Fix
2334 usage of standard_80387_constant_p.
2335 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2336
2337 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2338
2339 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2340
2341 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2342
2343 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2344 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2345 (tree_ssa_lim_finalize): Likewise.
2346
2347 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2348
2349 * config/i386/constraint.md (Yd, Yx): New register constraints.
2350 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2351 Yd conditional register constraint.
2352 (*movtf_internal): Use standard_sse_constant_opcode.
2353 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2354 Yx conditional register constraint.
2355 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2356 Yd conditional register constraint. Use standard_sse_constant_p to
2357 check for valid SSE constants and call standard_sse_constant_opcode to
2358 output SSE insn.
2359 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2360 constants and call standard_sse_constant_opcode to output SSE insn.
2361 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2362 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2363 optimize_size is set.
2364 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2365
2366 2011-05-14 Tobias Burnus <burnus@net-b.de>
2367
2368 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2369
2370 2011-05-13 Martin Jambor <mjambor@suse.cz>
2371
2372 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2373 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2374 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2375 (evaluate_conditions_for_ipcp_clone): Removed.
2376 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2377 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2378 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2379
2380 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2381
2382 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2383 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2384 lieu of MAY_HAVE_DEBUG_STMTS.
2385 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2386 debug statements if !MAY_HAVE_DEBUG_STMTS.
2387
2388 2011-05-13 Martin Thuresson <martint@google.com>
2389
2390 PR gcov-profile/47793
2391 * libgcov.c (gcov_exit): Support relative profile paths.
2392 * doc/invoke.texi (-fprofile-dir): Update for above change.
2393
2394 2011-05-13 Richard Guenther <rguenther@suse.de>
2395
2396 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2397 type-pair caching, do not compare hashes.
2398
2399 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2400
2401 PR middle-end/48965
2402 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2403 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2404
2405 2011-05-13 Kai Tietz <ktietz@redhat.com>
2406
2407 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2408 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2409 compatible type for TRUTH_NOT_EXPR.
2410
2411 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2412
2413 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2414 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2415 can_create_pseudo_p ().
2416
2417 2011-05-13 Richard Guenther <rguenther@suse.de>
2418
2419 PR lto/48978
2420 * gimple.c (iterative_hash_gimple_type): Revert change in
2421 pointer target and function result and argument hashing.
2422
2423 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2424
2425 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2426 (*movxf_internal_nointeger): Ditto.
2427 (*movdf_internal_rex64): Ditto.
2428 (*movdf_internal): Ditto.
2429 (*movdf_internal_nointeger): Ditto.
2430 (*movsf_internal): Ditto.
2431 (sincos splitters): Use can_create_pseudo ().
2432
2433 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2434
2435 * config/i386/i386-opts.h: New.
2436 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2437 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2438 ix86_section_threshold): Remove.
2439 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2440 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2441 OPT_mbranch_cost_.
2442 (ix86_option_override_internal): Don't decode strings for options
2443 other than -march=, -mtune= and -mfpmath=. Don't allow for
2444 __attribute__ uses in remaining diagnostics for options with
2445 string arguments. Don't check for integer arguments being negative.
2446 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2447 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2448 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2449 ix86_branch_cost, ix86_section_threshold): Remove.
2450 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2451 HeaderInclude.
2452 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2453 but not Var.
2454 (masm=): Use Enum and Init.
2455 (asm_dialect): New Enum and EnumValue entries.
2456 (mbranch-cost=): Use UInteger.
2457 (mlarge-data-threshold=): Use UInteger and Init.
2458 (mcmodel=): Use Enum and Init.
2459 (cmodel): New Enum and EnumValue entries.
2460 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2461 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2462 mregparm=): Use UInteger.
2463 (mstringop-strategy=): Use Enum and Init.
2464 (stringop_alg): New Enum and EnumValue entries.
2465 (mtls-dialect=): Use Enum and Init.
2466 (tls_dialect): New Enum and EnumValue entries.
2467 (mabi=): Use Enum and Init.
2468 (calling_abi): New Enum and EnumValue entries.
2469 (mveclibabi=): Use Enum and Init.
2470 (ix86_veclibabi): New Enum and EnumValue entries.
2471
2472 2011-05-13 Nick Clifton <nickc@redhat.com>
2473
2474 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2475 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2476
2477 2011-05-13 Kai Tietz <ktietz@redhat.com>
2478
2479 PR middle-end/48984
2480 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2481 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2482 (gimple_boolify): Check for cast for boolean_type_node instead for
2483 BOOLEAN_TYPE.
2484
2485 2011-05-13 Richard Guenther <rguenther@suse.de>
2486
2487 PR tree-optimization/48172
2488 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2489 multiplying by number of iterations for equal step.
2490 (vect_create_cond_for_alias_checks): Likewise.
2491
2492 2011-05-13 Andreas Schwab <schwab@redhat.com>
2493
2494 * configure.ac: Use AS_HELP_STRING throughout.
2495 * configure: Regenerate.
2496
2497 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2498
2499 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2500 (ix86_emit_restore_regs_using_mov): Likewise.
2501 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2502
2503 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2504
2505 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2506 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2507 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2508 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2509 RTX_OK_FOR_OLO10_P): ...here.
2510 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2511 SYMBOLIC_CONST.
2512
2513 2011-05-12 Kai Tietz <ktietz@redhat.com>
2514
2515 * gimplify.c (gimple_boolify): Re-boolify expression
2516 arguments even if expression type is of kind BOOLEAN_TYPE.
2517 (gimplify_boolean_expr): Removed.
2518 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2519 and XOR. Additional take care that we keep expression's type.
2520 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2521 of TRUTH_AND|OR|XOR_EXPR.
2522
2523 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2524
2525 PR tree-optimization/48975
2526 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2527 on all bbs here and free and clear ifc_bbs at the end.
2528
2529 2011-05-12 Richard Guenther <rguenther@suse.de>
2530
2531 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2532 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2533 until after simple checks.
2534 (gimple_types_compatible_p): Likewise.
2535 (iterative_hash_gimple_type): Always hash pointer targets
2536 and function return and argument types.
2537 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2538 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2539 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2540 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2541 completely in the simple compare section.
2542 (gimple_register_canonical_type): Query the cache again after
2543 registering.
2544
2545 2011-05-12 Richard Guenther <rguenther@suse.de>
2546
2547 PR tree-optimization/48172
2548 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2549 the number of iterations from the segment size calculation.
2550 (vect_create_cond_for_alias_checks): Adjust.
2551
2552 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2553
2554 PR debug/48967
2555 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2556 if validate_subreg fails.
2557
2558 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2559
2560 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2561 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2562 early.
2563
2564 2011-05-12 DJ Delorie <dj@redhat.com>
2565
2566 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2567 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2568 created builtin into rx_builtins array.
2569 (rx_builtin_decl): New function.
2570 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2571
2572 2011-05-12 DJ Delorie <dj@redhat.com>
2573 Nick Clifton <nickc@redhat.com>
2574
2575 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2576 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2577 (rx_is_legitimate_address): Add pre-decrement and post-increment
2578 addressing in HImode and QImode. Fix test for out of range
2579 REG+INT addressing.
2580 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2581 (rx_align_for_label): Test label before extracting its usage count.
2582 (rx_adjust_insn_lengths): Fix selection of insn codes.
2583 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2584
2585 2011-05-11 Jason Merrill <jason@redhat.com>
2586
2587 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2588
2589 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2590
2591 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2592 reindent the subsequent block.
2593
2594 2011-05-11 Satoru Takabayashi <satorux@google.com>
2595 Paul Pluzhnikov <ppluzhnikov@google.com>
2596
2597 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2598 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2599 * config.in: Add LINKER_HASH_STYLE.
2600 * configure.ac: Add --with-linker-hash-style.
2601 * configure: Regenerate.
2602
2603 2011-05-11 Richard Guenther <rguenther@suse.de>
2604
2605 PR middle-end/48964
2606 * gimple.c (iterative_hash_canonical_type): Fix typo.
2607
2608 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2609
2610 * config/i386/i386.c (legitimize_tls_address)
2611 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2612 expanders directly for TARGET_GNU2_TLS. Determine pic and
2613 __tls_get_addr symbol reference here. Update call to
2614 gen_tls_global_dynamic_{32,64} for added arguments.
2615 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2616 expanders directly for TARGET_GNU2_TLS. Determine
2617 __tls_get_addr symbol reference here. Update call to
2618 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2619 unique UNSPEC REG_EQUIV to libcall block.
2620 (ix86_tls_get_addr): Declare static.
2621 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2622 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2623 Do not determine pic and __tls_get_addr symbol reference here. Do not
2624 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2625 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2626 (tls_global_dynamic_64): Add operand 2. Do not determine
2627 __tls_get_addr symbol reference here. Do not call
2628 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2629 (tls_local_dynamic_base64): Ditto for operand 1.
2630
2631 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2632
2633 * function.c (expand_function_start): Initialize stack_check_probe_note
2634 only if the generic stack checking mechanism is used.
2635
2636 2011-05-11 Richard Guenther <rguenther@suse.de>
2637
2638 PR tree-optimization/15256
2639 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2640 (A & B) | C, combine (A op CST1) op CST2.
2641 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2642 visit assigns that have uses.
2643
2644 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2645
2646 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2647 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2648 (unpack_ts_type_common_value_fields): ...this. Update comment.
2649 (unpack_value_fields): Adjust for renaming.
2650 (lto_input_ts_type_tree_pointers): Split into...
2651 (lto_input_ts_type_common_tree_pointer): ...this and...
2652 (lto_input_ts_type_non_common_tree_pointers): ...this.
2653 (lto_input_tree_pointers): Adjust for above split.
2654 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2655 (pack_ts_type_common_value_fields): ...this. Update comment.
2656 (lto_output_ts_type_tree_pointers): Split into...
2657 (lto_output_ts_type_common_tree_pointers): ...this and...
2658 (lto_output_ts_type_non_common_tree_pointers): ...this.
2659 (lto_output_tree_pointers): Adjust for above split.
2660 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2661 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2662 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2663 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2664 Define.
2665 (struct tree_type): Split into...
2666 (struct tree_type_common: ...this and...
2667 (struct tree_type_with_lang_specific): ...this and...
2668 (struct tree_type_non_common): ...this. Adjust accessor macros
2669 accordingly.
2670 (TYPE_VALUES_RAW): Define.
2671 (union tree_node): Update for above changes.
2672 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2673 TS_TYPE_NON_COMMON.
2674 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2675 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2676 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2677 * treestructu.def (TS_TYPE): Remove.
2678 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2679 Define.
2680
2681 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2682
2683 PR debug/48159
2684 * tree-ssa.c (reset_debug_uses): New function.
2685 * tree-flow.h (reset_debug_uses): New prototype.
2686 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2687 * tree-loop-distribution.c (generate_loops_for_partition): Call
2688 reset_debug_uses on the stmts that will be removed. Keep around
2689 all debug stmts, don't count them as bits in partition bitmap.
2690 (generate_builtin): Don't count debug stmts or labels as bits in
2691 partition bitmap.
2692
2693 2011-05-11 Richard Guenther <rguenther@suse.de>
2694
2695 * gimple.c (gimple_type_hash_1): Merge with ...
2696 (gimple_type_hash): ... this.
2697 (gtc_visit): Remove mode parameter and simplify accordingly.
2698 (gimple_types_compatible_p_1): Likewise.
2699 (gimple_types_compatible_p): Likewise.
2700 (iterative_hash_gimple_type): Likewise.
2701 (visit): Likewise.
2702 (gimple_type_eq): Adjust.
2703
2704 2011-05-11 Revital Eres <revital.eres@linaro.org>
2705
2706 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2707 enters the branch create an anti edge in the opposite direction
2708 to prevent the creation of reg-moves.
2709 * modulo-sched.c: Adjust comment to reflect the fact we are
2710 scheduling closing branch.
2711 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2712 (stage_count): New field in struct partial_schedule.
2713 (calculate_stage_count): New function.
2714 (normalize_sched_times): Rename to reset_sched_times and handle
2715 incrementing the sched time of the nodes by a constant value
2716 passed as parameter.
2717 (duplicate_insns_of_cycles): Skip closing branch.
2718 (sms_schedule_by_order): Schedule closing branch.
2719 (ps_insn_find_column): Handle closing branch.
2720 (sms_schedule): Call reset_sched_times and adjust the code to
2721 support scheduling of the closing branch.
2722 (ps_insert_empty_row): Update calls to normalize_sched_times
2723 and rotate_partial_schedule functions.
2724
2725 2011-05-11 Richard Guenther <rguenther@suse.de>
2726
2727 PR middle-end/48953
2728 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2729
2730 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2731
2732 * opts.c (finish_options): Move warning settings from process_options.
2733 * toplev.c (process_options): Move warning settings to finish_options.
2734
2735 2011-05-11 Richard Guenther <rguenther@suse.de>
2736
2737 PR tree-optimization/18041
2738 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2739 (simplify_bitwise_binary): ... this. Handle operand conversions
2740 by applying them to the result instead.
2741 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2742
2743 2011-05-11 Richard Guenther <rguenther@suse.de>
2744
2745 * gimple.c (gimple_canonical_types_compatible_p): Split out
2746 from gimple_types_compatible_p and friends. Do not recurse
2747 to pointed-to types.
2748 (gimple_canonical_type_eq): Use it.
2749 (iterative_hash_canonical_type): Split out from
2750 iterative_hash_gimple_type and friends. Do not recurse
2751 to pointed-to types.
2752 (gimple_canonical_type_hash): Use it, allocate the hash here.
2753
2754 2011-05-11 Revital Eres <revital.eres@linaro.org>
2755
2756 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2757 recognizing doloop.
2758
2759 2011-05-11 Revital Eres <revital.eres@linaro.org>
2760
2761 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2762 instead of PREV_INSN.
2763
2764 2011-05-11 Revital Eres <revital.eres@linaro.org>
2765
2766 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2767 * loop-doloop.c (doloop_condition_get): Likewise.
2768 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2769 (doloop_end): New.
2770 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2771
2772 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2773
2774 * tree.def (CASE_LABEL_EXPR): Add an operand.
2775 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2776
2777 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2778
2779 * c-decl.c (c_override_global_bindings_to_false): Remove.
2780 (global_bindings_p): Don't check
2781 c_override_global_bindings_to_false.
2782 * c-tree.h (c_override_global_bindings_to_false): Remove.
2783 * c-typeck.c (composite_type): Don't set
2784 c_override_global_bindings_to_false.
2785
2786 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2787
2788 PR target/48857, 48495
2789 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2790 (VSX_MODE): Ditto.
2791 (VSX_MOVE_MODE): Ditto.
2792 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2793 VSX vector types. Add V2DImode.
2794 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2795 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2796 (MODES_TIEABLE_P): Ditto.
2797
2798 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2799 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2800 VSX_VECTOR_MODE.
2801 (init_cumulative_args): Ditto.
2802 (rs6000_function_arg_boundary): Ditto.
2803 (rs6000_function_arg_advance_1): Ditto.
2804 (rs6000_function_arg): Ditto.
2805 (rs6000_function_ok_for_sibcall): Ditto.
2806 (emit_frame_save): Ditto.
2807 (rs6000_function_value): Ditto.
2808 (rs6000_libcall_value): Ditto.
2809
2810 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2811
2812 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2813 i386/darwin-lib.h to $libgcc_tm_file.
2814 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2815
2816 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2817
2818 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2819
2820 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2821
2822 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2823 * config/rs6000/rs6000-tables.opt: New file (generated).
2824 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2825 rs6000/rs6000-tables.opt to extra_options.
2826 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2827 * config/rs6000/rs6000.c (rs6000_select): Remove.
2828 (processor_target_table): Move contents to rs6000-cpus.def.
2829 (darwin_rs6000_override_options): Check
2830 global_options_set.x_rs6000_cpu_index instead of
2831 rs6000_select[1].string.
2832 (rs6000_option_override_internal): Likewise.
2833 (rs6000_handle_option): Don't assert that global structures are in
2834 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2835 (rs6000_default_cpu): New variable.
2836 (rs6000_file_start): Set it instead of local default_cpu. Check
2837 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2838 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2839 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2840 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2841 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2842 rs6000_select): Remove.
2843 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2844 Remove.
2845 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2846 * config/rs6000/t-rs6000
2847 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2848 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2849 global_options_set.x_rs6000_cpu_index instead of
2850 rs6000_select[1].string.
2851 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2852 global_options_set.x_rs6000_cpu_index instead of
2853 rs6000_select[1].string.
2854
2855 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2856
2857 * config.gcc (libgcc_tm_file): Define instead of including files
2858 from ../../libgcc/config/ in tm_file.
2859 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2860 * configure: Regenerate.
2861 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2862 libgcc_tm.h, cs-libgcc_tm.h): New.
2863 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2864 (clean): Remove libgcc_tm.h.
2865 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2866 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2867 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2868
2869 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2870
2871 PR target/48896
2872 * config/avr/avr.c (avr_ret_register): Return unsigned int
2873 instead of int.
2874 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2875 it to avr_libcall_value.
2876 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2877 expand_expr.
2878 (avr_expand_binop_builtin): Ditto.
2879 (avr_expand_unop_builtin): Ditto.
2880
2881 2011-05-10 DJ Delorie <dj@redhat.com>
2882
2883 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2884 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2885 * config/rx/rx.c (rx_align_for_label): Add label and
2886 uses_threshold parameters. Do not align when the label is not
2887 used enough.
2888 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2889
2890 2011-05-10 Richard Guenther <rguenther@suse.de>
2891
2892 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2893 a series of conversions and apply foldings similar to what
2894 fold-const does.
2895 (tree_ssa_forward_propagate_single_use_vars): Call it.
2896
2897 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2898
2899 PR tree-optimization/48611
2900 PR tree-optimization/48794
2901 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2902 referenced from RESX or EH_DISPATCH arguments.
2903
2904 PR debug/48928
2905 * dfp.c (decimal_to_decnumber): Handle conversion from
2906 dconst{1,2,m1,half}.
2907
2908 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2909
2910 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2911 for !flag_prefer_avx128.
2912 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2913
2914 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2915
2916 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2917 (fold_ternary_loc): Use expr_location_or.
2918
2919 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2920
2921 PR debug/48853
2922 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2923 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2924 Pmode and mem_mode is not VOIDmode.
2925
2926 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2927
2928 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2929 TYPE_QUAL_RESTRICT): Convert to enum.
2930
2931 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2932
2933 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2934 (const_pow2_1_to_8_operand): Ditto.
2935 (const_pow2_1_to_128_operand): Ditto.
2936 (const_pow2_1_to_32768_operand): Ditto.
2937 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2938 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2939 in insn constraint to check integer value of operand 3.
2940 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2941
2942 (PINSR_MODE): New mode iterator.
2943 (sse2p4_1): New mode attribute.
2944 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2945 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2946 iterator. Use const_int_operand instead of
2947 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2948 exact_log2 in insn constraint to check integer value of operand 3.
2949
2950 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2951
2952 * config/i386/sse.md (blendbits): Remove mode attribute.
2953 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2954 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2955 Check integer value of operand 3 in insn constraint.
2956
2957 2011-05-09 Richard Guenther <rguenther@suse.de>
2958
2959 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2960 for diagnostics.
2961 (lto_symtab_merge): Likewise. Do not register types here.
2962 (lto_symtab_merge_decls_2): Likewise.
2963 (lto_symtab_merge_decls_1): Likewise.
2964 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2965 * gimple.c (enum gtc_mode): Declare.
2966 (gimple_types_compatible_p): Make static.
2967
2968 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2969
2970 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2971 temporary register to match Pmode.
2972
2973 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2974
2975 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2976 and *vec_concatv4si_1_avx.
2977
2978 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2979
2980 PR rtl-optimization/48927
2981 * ira-conflicts.c (commutative_constraint_p): Use
2982 recog_data.alternative_enabled_p to disable alternatives where
2983 "enabled" attribute is false.
2984 (get_dup_num): Ditto.
2985 * ira-lives.c (single_reg_class): Ditto.
2986 (ira_implicitly_set_insn_hard_regs): Ditto.
2987
2988 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2989
2990 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2991 (dataflow_set_preserve_mem_locs): Likewise.
2992
2993 2011-05-09 Philipp Thomas <pth@suse.de>
2994
2995 * config/mep/mep.c (mep_validate_vliw): Syntax description
2996 should not be translated.
2997
2998 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2999
3000 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3001 * config/mips/mips-tables.opt: New file (generated).
3002 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3003 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3004 MIPS_ARCH_OPTION_NATIVE): Define.
3005 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3006 mips-cpus.def.
3007 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3008 mips_parse_cpu): Remove.
3009 (mips_cpu_info_from_opt, mips_default_arch): New.
3010 (mips_handle_option): Don't assert that global structures are in
3011 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3012 (mips_option_override): Use new variables and functions to set
3013 state of these options. Use strcmp to check for individual CPU names.
3014 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3015 definition.
3016 * config/mips/mips.opt (march=): Use ToLower and Enum.
3017 (mips): Use ToLower, Enum and Var.
3018 (mtune=): Use ToLower and Enum.
3019 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3020
3021 2011-05-08 Jan Hubicka <jh@suse.cz>
3022
3023 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3024 Arrange type pairs to be UID ordered.
3025 (gimple_lookup_type_leader): Make inline.
3026
3027 2011-05-09 Nick Clifton <nickc@redhat.com>
3028
3029 PR target/48899
3030 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3031 PROCESSOR_DEFAULT.
3032
3033 PR target/48897
3034 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3035 variable 's'.
3036
3037 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3038
3039 * combine.c (simplify_comparison): Abstract out parts into...
3040 (simplify_compare_const): ... new function.
3041 (try_combine): Generalize parallel arithmetic/compare combining
3042 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3043
3044 2011-05-08 Jan Hubicka <jh@suse.cz>
3045
3046 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3047 (cgraph_create_virtual_clone): Call hooks once virtual clone
3048 is finished.
3049 * cgraph.h (cgraph_clone_node): Update prototype.
3050 * ipa-cp.c (ipcp_estimate_growth): Use
3051 estimate_ipcp_clone_size_and_time.
3052 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3053 * lto-cgraph.c (input_node): Update.
3054 * ipa-inline.c (recursive_inlining): Update.
3055 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3056 (evaluate_conditions_for_known_args): Break out from ...
3057 (evaluate_conditions_for_edge): ... here.
3058 (evaluate_conditions_for_ipcp_clone): New function.
3059 (inline_node_duplication_hook): Update clone summary based
3060 on parameter map.
3061 (estimate_callee_size_and_time): Rename to ...
3062 (estimate_node_size_and_time): take NODE instead of EDGE;
3063 take POSSIBLE_TRUTHS as argument.
3064 (estimate_callee_size_and_time): Update.
3065 (estimate_ipcp_clone_size_and_time): New function.
3066 (do_estimate_edge_time): Update.
3067
3068 2011-05-08 Richard Guenther <rguenther@suse.de>
3069
3070 PR middle-end/48908
3071 PR middle-end/48905
3072 * expmed.c (expand_shift_1): Compute adjusted constant shift
3073 amount manually.
3074
3075 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3076
3077 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3078
3079 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3080
3081 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3082
3083 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3084
3085 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3086
3087 2011-05-07 Jan Hubicka <jh@suse.cz>
3088
3089 * ipa-inline-transform.c (inline_call): Account when program size
3090 decreases.
3091 * ipa-inline.c (relative_time_benefit): New function.
3092 (edge_badness): Reorganize to be power 2 based; fix thinko when
3093 computing badness for negative growth; update comments to match
3094 reality; better dumps.
3095
3096 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3097
3098 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3099 type to bool and adjust comment.
3100 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3101 (fold_mathfn_compare): Remove calls to global_bindings_p.
3102 (fold_inf_compare): Likewise.
3103 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3104 * c-tree.h (global_bindings_p): Adjust prototype.
3105 * c-decl.c (global_bindings_p): Return bool and simplify.
3106
3107 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3108
3109 PR tree-optimization/48837
3110 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3111 when accumulator transformation is performed.
3112
3113 2011-05-06 Jan Hubicka <jh@suse.cz>
3114
3115 * i386.h (ix86_tune_indices): Add
3116 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3117 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3118 * i386.c (initial_ix86_tune_features): Add
3119 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3120 (software_prefetching_beneficial_p): Remove predicate.
3121 (ix86_option_override_internal): Use new macro.
3122
3123 2011-05-06 Jan Hubicka <jh@suse.cz>
3124
3125 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3126
3127 2011-05-06 Jan Hubicka <jh@suse.cz>
3128
3129 * cgraph.c (cgraph_add_thunk): Create real function node instead
3130 of alias node; finalize it and mark needed/reachale; arrange visibility
3131 to be right and add it into the corresponding same comdat group list.
3132 (dump_cgraph_node): Dump thunks.
3133 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3134 cgraph_function_with_gimple_body_p,
3135 cgraph_first_function_with_gimple_body,
3136 cgraph_next_function_with_gimple_body): New functions.
3137 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3138 New macros.
3139 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3140 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3141 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3142 devirtualization when optimizing.
3143 (verify_cgraph_node): Verify thunks.
3144 (cgraph_analyze_function): Analyze thunks.
3145 (cgraph_mark_functions_to_output): Output thunks only in combination
3146 with function they are assigned to.
3147 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3148 alias into normal node.
3149 (assemble_thunks): New functoin.
3150 (cgraph_expand_function): Use it.
3151 * lto-cgraph.c (lto_output_node): Stream thunks.
3152 (input_overwrite_node): Stream in thunks.
3153 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3154 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3155 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3156 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3157 (inline_analyze_function): Do not care about thunk jump functions.
3158 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3159 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3160 cgraph_function_with_gimple_body_p.
3161 * passes.c (do_per_function_toporder): Use
3162 cgraph_function_with_gimple_body_p.
3163 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3164 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3165 (function_called_by_processed_nodes_p): Likewise.
3166
3167 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3168
3169 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3170 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3171 entries.
3172 (mabi=): Replace with separate entries for mabi=altivec,
3173 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3174 mabi=ieeelongdouble and mabi=ibmlongdouble.
3175 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3176 check for -mabi=spe without SPE ABI support here.
3177 (rs6000_handle_option): Replace OPT_mabi_ handling with
3178 OPT_mabi_altivec and OPT_mabi_spe handling.
3179
3180 2011-05-06 Cary Coutant <ccoutant@google.com>
3181
3182 * dwarf2out.c (contains_subprogram_definition): New function.
3183 (should_move_die_to_comdat): Call it.
3184
3185 2011-05-06 Jeff Law <law@redhat.com>
3186
3187 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3188 remove_ctrl_stmt_and_useless_edges.
3189 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3190 (fixup_template_block, thread_single_edge): Likewise.
3191 (mark_threaded_blocks): Use THREAD_TARGET.
3192
3193 2011-05-06 Alan Modra <amodra@gmail.com>
3194
3195 PR target/48900
3196 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3197 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3198
3199 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3200
3201 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3202 constraint modifier to "r".
3203
3204 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3205
3206 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3207 fall through for OPT_mcmodel_.
3208
3209 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3210
3211 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3212 instruction sizes.
3213 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3214
3215 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3216
3217 PR target/47930
3218 * config/arm/arm.opt (marm): Document it.
3219 (mthumb): Reject negative variant.
3220
3221 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3222
3223 PR target/48898
3224 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3225 Fix typo in "ccvt" variable name.
3226
3227 2011-05-06 Tristan Gingold <gingold@adacore.com>
3228
3229 PR target/48895
3230 * config/vms/vms-ar.c (main): Remove cwd variable.
3231
3232 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3233
3234 PR debug/48902
3235 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3236
3237 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3238
3239 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3240 * gimplify.c (gimplify_switch_expr): Likewise.
3241 * omp-low.c (expand_omp_sections): Likewise.
3242 * tree-eh.c (lower_try_finally_switch): Likewise.
3243 (lower_eh_dispatch): Likewise.
3244 * tree.h (build_case_label): Declare.
3245 * tree.c (build_case_label): Define.
3246
3247 2011-05-05 Jason Merrill <jason@redhat.com>
3248
3249 PR c++/40975
3250 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3251 (copy_statement_list): Don't recurse.
3252 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3253 STATEMENT_LIST.
3254
3255 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3256
3257 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3258 through from -mfpu= handling.
3259 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3260
3261 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3262
3263 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3264 POST_MODIFY.
3265
3266 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3267
3268 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3269 for 11.31.
3270 (hppa[12]*-*-hpux11*): Ditto.
3271 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3272 * config/ia64/hpux-unix2003.h: New.
3273 * config/pa/pa-hpux1131.opt: New.
3274 * config/pa/pa-hpux1131.h: New.
3275 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3276 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3277 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3278
3279 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3280
3281 PR debug/48853
3282 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3283 instead of mode as 3rd argument to recursive call.
3284 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3285 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3286 VOIDmode.
3287 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3288 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3289 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3290 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3291
3292 2011-05-05 Julian Brown <julian@codesourcery.com>
3293
3294 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3295 parenthesis in D-register case.
3296
3297 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3298
3299 * opt-functions.awk (var_type_struct): Handle Enum options.
3300 * optc-gen.awk: Don't check range of variables of character type.
3301 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3302 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3303 rs6000_sdata_name, rs6000_explicit_options): Remove.
3304 (rs6000_option_override_internal): Check for -malign-power here.
3305 Use global_options_set instead of rs6000_explicit_options.
3306 (rs6000_parse_fpu_option): Remove.
3307 (rs6000_handle_option): Access variables via opts and opts_set
3308 pointers. Use error_at and warning_at. Add fall-through
3309 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3310 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3311 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3312 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3313 here. Don't use rs6000_parse_fpu_option.
3314 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3315 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3316 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3317 (mrecip=): Use Var.
3318 (mspe): Use Var and Save.
3319 (mtraceback=): Use Enum and Var.
3320 (rs6000_traceback_type): New Enum and EnumValue entries.
3321 (mfloat-gprs=): Use Enum, Var and Save.
3322 (rs6000_float_gprs): New Enum and EnumValue entries.
3323 (mlong-double-): use Var and Save.
3324 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3325 (malign-): Use Enum and Var.
3326 (rs6000_alignment_flags): New Enum and EnumValue entries.
3327 (mfpu=): Use Enum.
3328 (fpu_type_t): New Enum and EnumValue entries.
3329 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3330 global_options_set instead of rs6000_explicit_options.
3331 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3332 global_options_set instead of rs6000_explicit_options.
3333 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3334 global_options_set instead of rs6000_explicit_options.
3335 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3336 global_options_set instead of rs6000_explicit_options.
3337 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3338 global_options_set instead of rs6000_explicit_options.
3339 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3340 global_options_set instead of rs6000_explicit_options.
3341 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3342 definition.
3343 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3344 global_options_set instead of rs6000_explicit_options.
3345 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3346 (rs6000_cmodel): New Enum and EnumValue entries.
3347 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3348 global_options_set instead of rs6000_explicit_options.
3349 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3350 (mtls-size=): Use Enum and Var.
3351 (rs6000_tls_size): New Enum and EnumValue entries.
3352
3353 2011-05-05 Michael Matz <matz@suse.de>
3354
3355 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3356 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3357 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3358 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3359 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3360 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3361 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3362 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3363 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3364 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3365 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3366 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3367 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3368 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3369 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3370 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3371
3372 2011-05-05 Richard Guenther <rguenther@suse.de>
3373
3374 * expmed.c (expand_variable_shift): Rename to ...
3375 (expand_shift_1): ... this. Take an expanded shift amount.
3376 For rotates recurse directly not building trees for the shift amount.
3377 (expand_variable_shift): Wrap around expand_shift_1.
3378 (expand_shift): Adjust.
3379
3380 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3381
3382 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3383
3384 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3385
3386 * tree.h (get_pending_sizes): Remove prototype.
3387 (put_pending_size): Likewise.
3388 (put_pending_sizes): Likewise.
3389 * stor-layout.c (pending_sizes): Delete.
3390 (get_pending_sizes): Likewise.
3391 (put_pending_size): Likewise.
3392 (put_pending_sizes): Likewise.
3393 (variable_size): Do not call put_pending_size and tidy up.
3394 * function.h (struct function): Remove dont_save_pending_sizes_p.
3395 * lto-streamer-in.c (input_function): Do not stream it.
3396 * lto-streamer-out.c (output_function): Likewise.
3397 * tree-inline.c (initialize_cfun): Do not copy it.
3398 * c-decl.c (store_parm_decls): Do not set it.
3399 * omp-low.c (create_task_copyfn): Likewise.
3400 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3401
3402 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3403
3404 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3405 conditions.
3406 (*movdf_internal): Ditto.
3407 (*movdf_internal_nointeger): Ditto.
3408 (*movsf_internal): Ditto.
3409
3410 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3411
3412 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3413 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3414 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3415 (c_variable_size): Remove.
3416 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3417 call put_pending_sizes.
3418 (get_parm_info): Add parameter expr. Use it to set
3419 arg_info->pending_sizes.
3420 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3421 get_pending_sizes.
3422 * c-parser.c (c_parser_parms_declarator): Update call to
3423 c_parser_parms_list_declarator.
3424 (c_parser_parms_list_declarator): Take parameter expr. Update
3425 call to push_parm_decl. Update recursive call. Don't call
3426 get_pending_sizes. Update calls to get_parm_info.
3427 (c_parser_objc_method_definition): Update calls to
3428 c_parser_objc_method_decl and objc_start_method_definition.
3429 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3430 (c_parser_objc_method_decl): Add parameter expr. Update call to
3431 grokparm.
3432 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3433 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3434 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3435
3436 2011-05-05 Michael Hope <michael.hope@linaro.org>
3437
3438 PR pch/45979
3439 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3440 __ARM_EABI__ hosts.
3441
3442 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3443
3444 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3445 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3446 (spu_output_mi_thunk): New function.
3447
3448 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3449
3450 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3451 targetm.asm_out.print_operand.
3452 * config/sol2.c: Include target.h.
3453
3454 2011-05-04 Jan Hubicka <jh@suse.cz>
3455
3456 * ipa-inline.c (reset_edge_caches): New function.
3457 (update_caller_keys): Add check_inlinablity_for; do not
3458 reset edge caches; remove now unnecesary loop.
3459 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3460 (update_all_callee_keys): Likewise.
3461 (inline_small_functions): Sanity check cache; update code
3462 recomputing it.
3463
3464 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3465
3466 PR rtl-optimization/47612
3467 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3468 as the last insn of the sequence to be moved.
3469
3470 2011-05-04 Tobias Burnus <burnus@net-b.de>
3471
3472 PR fortran/48864
3473 * doc/invoke.texi (Ofast): Document that it
3474 enables Fortran's -fno-protect-parens.
3475
3476 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3477
3478 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3479
3480 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3481
3482 * stor-layout.c (variable_size): Do not issue errors.
3483
3484 2011-05-04 Richard Guenther <rguenther@suse.de>
3485
3486 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3487 for array-ref indices.
3488 (tree_coverage_counter_addr): Likewise.
3489 (build_fn_info_type): Use size_int for index types.
3490 (build_gcov_info): Likewise.
3491
3492 2011-05-04 Richard Guenther <rguenther@suse.de>
3493
3494 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3495 to build_int_cst.
3496 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3497 for constructor indices.
3498 (push_init_level): Likewise.
3499
3500 2011-05-04 Richard Guenther <rguenther@suse.de>
3501
3502 * explow.c (promote_mode): Move variable declarations before code.
3503
3504 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3505
3506 * tree.h (build_function_type_array): Declare.
3507 (build_varargs_function_type_array): Declare.
3508 (build_function_type_vec, build_varargs_function_type_vec): Define.
3509 * tree.c (build_function_type_array_1): New function.
3510 (build_function_type_array): New function.
3511 (build_varargs_function_type_array): New function.
3512
3513 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3514
3515 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3516 before setting STMT_VINFO_TYPE.
3517
3518 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3519
3520 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3521 instead of spu_pass_by_reference.
3522
3523 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3524
3525 * calls.c (emit_library_call_value_1): Invoke
3526 promote_function_mode hook on libcall arguments.
3527 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3528 argument being NULL.
3529 * targhooks.c (default_promote_function_mode): Lisewise.
3530 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3531 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3532
3533 * doc/tm.texi: Document that TYPE argument might be NULL.
3534
3535 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3536
3537 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3538
3539 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3540
3541 From Bernd Schmidt
3542 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3543
3544 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3545
3546 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3547 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3548 Move ...
3549 * mips-tfile.c: ... here.
3550 Don't include coretypes.h, tm.h, filenames.h.
3551 (saber_stop): Remove definition and all calls.
3552 [__SABER__]: Remove.
3553 (__LINE__): Remove default.
3554 (Size_t, Ptrdiff_t): Remove definitions.
3555 Replace by size_t, ptrdiff_t.
3556 [!MIPS_DEBUGGING_INFO]: Remove.
3557 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3558 (progname): Add const.
3559 (STATIC): Remove.
3560 Replace all uses by static.
3561 (ALIGN_SYMTABLE_OFFSET): Remove default.
3562 * mips-tdump.c: Don't include coretypes.h, tm.h.
3563 Remove !MIPS_IS_STAB guard.
3564 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3565 $(TM_H), filenames.h dependencies.
3566 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3567
3568 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3569
3570 From Jie Zhang
3571 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3572 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3573
3574 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3575
3576 From Bernd Schmidt
3577 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3578 account and save/restore RETS.
3579 (PROFILE_BEFORE_PROLOGUE): Define.
3580 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3581 the push insn to use predecrement.
3582
3583 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3584
3585 From Jie Zhang
3586 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3587
3588 2011-05-04 Nick Clifton <nickc@redhat.com>
3589
3590 * config/mn10300/mn10300.c: Include cfgloop.h.
3591 (DUMP): New macro.
3592 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3593 Lcc or a FLcc insn into the instruction stream.
3594 (mn10300_block_contains_call): New function. Returns true if the
3595 given basic block contains a CALL insn.
3596 (mn10300_loop_contains_call_insn): New function. Returns true if
3597 the given loop contains a CALL insn.
3598 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3599 to use the SETLB and Lcc or FLcc insns.
3600 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3601 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3602 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3603 disable the SETLB optimization.
3604 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3605 __SETLB__ or __NO_SETLB__.
3606 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3607 (movsf_internal): Handle MDR register.
3608 (cmpsi): Make visible.
3609 (setlb): New pattern.
3610 (Lcc): New pattern.
3611 (FLcc): New pattern.
3612
3613 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3614
3615 PR target/48860
3616 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3617 for reg<->xmm moves.
3618 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3619 (vec_concatv2di_rex64_sse): Ditto.
3620 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3621 (*vec_extractv2di_1_rex64): Ditto.
3622
3623 Revert:
3624 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3625
3626 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3627 reg<->xmm moves.
3628 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3629
3630 2011-05-04 Richard Guenther <rguenther@suse.de>
3631
3632 * tree.h (int_const_binop): Remove notrunc argument.
3633 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3634 create integer constants that are properly truncated.
3635 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3636 (const_binop): Remove zero notrunc argument to int_const_binop.
3637 (size_binop_loc): Likewise.
3638 (fold_div_compare): Likewise.
3639 (maybe_canonicalize_comparison_1): Likewise.
3640 (fold_comparison): Likewise.
3641 (fold_binary_loc): Likewise.
3642 (multiple_of_p): Likewise.
3643 * expr.c (store_constructor): Likewise.
3644 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3645 (maybe_fold_stmt_addition): Likewise.
3646 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3647 * stor-layout.c (layout_type): Likewise.
3648 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3649 * tree-sra.c (build_ref_for_offset): Likewise.
3650 (build_user_friendly_ref_for_offset): Likewise.
3651 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3652 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3653 * tree-ssa-loop-niter.c (inverse): Likewise.
3654 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3655 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3656 * tree-switch-conversion.c (check_range): Likewise.
3657 (build_constructors): Likewise.
3658 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3659 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3660 (extract_range_from_assert): Likewise.
3661 (vrp_int_const_binop): Likewise.
3662 (extract_range_from_binary_expr): Likewise.
3663 (extract_range_from_unary_expr): Likewise.
3664 (check_array_ref): Likewise.
3665 (find_case_label_range): Likewise.
3666 (simplify_div_or_mod_using_ranges): Likewise.
3667 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3668 comparing case labels for merging.
3669
3670 2011-05-03 Mark Wielaard <mjw@redhat.com>
3671
3672 * dwarf2out.c (debug_str_hash_forced): Removed.
3673 (gen_label_for_indirect_string): Removed.
3674 (get_debug_string_label): Removed.
3675 (AT_string_form): Generate label directly.
3676 (output_indirect_string): Test indirect_string_node for
3677 DW_FORM_strp instead of checking label and refcount.
3678 (prune_indirect_string): Removed.
3679 (prune_unused_types): Don't check debug_str_hash_forced or
3680 call prune_indirect_string.
3681
3682 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3683
3684 PR other/48093
3685 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3686
3687 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3688
3689 PR debug/47994
3690 PR debug/47919
3691 * combine.c (try_combine): Skip debug insns at m_split tests.
3692
3693 2011-04-26 Mark Wielaard <mjw@redhat.com>
3694
3695 PR42288
3696 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3697 when info_section_emitted.
3698
3699 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3700
3701 * config/mips/mips-opts.h: New.
3702 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3703 to mips-opts.h.
3704 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3705 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3706 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3707 via opts pointer.
3708 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3709 mips-opts.h.
3710 (mips_abi, mips_code_readable): Don't declare.
3711 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3712 (mabi=): Use Enum and Var.
3713 (mips_abi): New Enum and EnumValue entries.
3714 (mcode-readable=): Use Enum and Var.
3715 (mips_code_readable_setting): New Enum and EnumValue entries.
3716 (mr10k-cache-barrier=): Use Enum and Var.
3717 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3718
3719 2011-05-03 Jan Hubicka <jh@suse.cz>
3720
3721 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3722 replace hash by pointer map.
3723 (cgraph_node_set_element_def, cgraph_node_set_element,
3724 const_cgraph_node_set_element, varpool_node_set_element_def,
3725 varpool_node_set_element, const_varpool_node_set_element): Remove.
3726 (free_cgraph_node_set, free_varpool_node_set): New function.
3727 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3728 * tree-emutls.c: Free varpool node set.
3729 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3730 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3731 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3732 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3733 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3734 Move here from ipa.c; implement using pointer_map
3735 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3736 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3737 debug_cgraph_node_set, varpool_node_set_new,
3738 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3739 dump_varpool_node_set, debug_varpool_node_set):
3740 Move to ipa-uitls.c.
3741 * passes.c (ipa_write_summaries): Update.
3742
3743 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3744
3745 From Mike Frysinger:
3746 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3747 bf542/bf544/bf547/bf548/bf549.
3748
3749 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3750
3751 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3752
3753 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3754
3755 From Bernd Schmidt:
3756 * config/bfin/bfin.md (MOVCC): New mode_macro.
3757 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3758 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3759 comments from generated assembly.
3760
3761 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3762
3763 From Bernd Schmidt
3764 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3765 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3766 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3767 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3768 * config/bfin/lib1funcs.asm (___muldi3): New function.
3769
3770 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3771
3772 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3773 build_function_type_list instead of build_function_type.
3774 Rearrange initialization of `args' to do so.
3775
3776 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3777
3778 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3779 instead of build_function_type.
3780
3781 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3782
3783 * config/rs6000/rs6000.c (spe_init_builtins): Call
3784 build_function_type_list instead of build_function_type.
3785 (paired_init_builtins, altivec_init_builtins): Likewise.
3786 (builtin_function_type): Likewise.
3787
3788 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3789
3790 * config/sh/sh.c (sh_media_init_builtins): Call
3791 build_function_type_list instead of build_function_type.
3792
3793 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3794
3795 * config/sparc/sparc.c (sparc_file_end): Call
3796 build_function_type_list instead of build_function_type.
3797
3798 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3799
3800 * config/alpha/alpha.c (alpha_init_builtins): Call
3801 build_function_type_list instead of build_function_type.
3802
3803 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3804
3805 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3806 build_function_type_list instead of build_function_type.
3807
3808 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3809
3810 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3811 build_function_type_list instead of build_function_type.
3812 Delete `endlink' variable.
3813
3814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3815
3816 * config/avr/avr.c (avr_init_builtins): Call
3817 build_function_type_list instead of build_function_type.
3818
3819 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3820
3821 * config/picochip/picochip.c (picochip_init_builtins): Call
3822 build_function_type_list instead of build_function_type.
3823 Delete `endlink' variable.
3824
3825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3826
3827 * config/bfin/bfin.c (bfin_init_builtins): Call
3828 build_function_type_list instead of build_function_type.
3829
3830 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3831
3832 From Bernd Schmidt
3833 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3834 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3835
3836 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3837
3838 From Jie Zhang:
3839 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3840 libbffastfp overrides libgcc when -mfast-fp.
3841
3842 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3843
3844 Originally from Bernd Schmidt
3845 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3846 * config/bfin/bfin.c (override_options): Test it and error if
3847 TARGET_FDPIC.
3848
3849 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3850
3851 Originally From Bernd Schmidt
3852 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3853 FD-PIC.
3854
3855 2011-05-03 Jeff Law <law@redhat.com>
3856
3857 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3858 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3859 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3860 than accessing AUX field directly. Free the AUX field before
3861 clearing it.
3862 (thread_block, thread_through_loop_header): Likewise.
3863 (thread_single_edge, mark_threaded_blocks): Likewise.
3864 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3865 (register_jump_thread): Do not attempt to thread to a NULL edge.
3866
3867 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3868
3869 * function.c (init_function_start): Call decide_function_section.
3870 * varasm.c (decide_function_section): New function.
3871 (assemble_start_function): When not using
3872 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3873 or first_function_block_is_cold.
3874 * rtl.h (decide_function_section): Declare.
3875
3876 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3877 Jakub Jelinek <jakub@redhat.com>
3878
3879 PR target/48774
3880 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3881 only succeed if req_mode is the same as set_mode.
3882
3883 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3884
3885 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3886 * genemit.c (gen_exp): Handle RETURN.
3887 * emit-rtl.c (verify_rtx_sharing): Likewise.
3888 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3889 * rtl.c (copy_rtx): RETURN is shared.
3890 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3891 (ret_rtx): New.
3892 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3893 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3894 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3895 * config/cris/cris.c (cris_expand_return): Likewise.
3896 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3897 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3898 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3899 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3900 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3901 Likewise.
3902 * config/v850/v850.c (expand_epilogue): Likewise.
3903 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3904 * config/arm/arm.md (epilogue): Likewise.
3905 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3906 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3907 variable to ret_reg.
3908
3909 2011-05-03 Richard Guenther <rguenther@suse.de>
3910
3911 PR lto/48846
3912 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3913 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3914 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3915
3916 2011-05-03 Richard Guenther <rguenther@suse.de>
3917
3918 * c-decl.c (grokdeclarator): Instead of looking at
3919 TREE_OVERFLOW check if the constant fits in the index type.
3920
3921 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3922
3923 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3924 (vec_store_lanes<mode><mode>): Likewise.
3925
3926 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3927
3928 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3929 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3930 convert_optab_index values.
3931 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3932 * genopinit.c (optabs): Initialize the new optabs.
3933 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3934 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3935 (expand_STORE_LANES): New functions.
3936 * tree.h (build_array_type_nelts): Declare.
3937 * tree.c (build_array_type_nelts): New function.
3938 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3939 (vect_model_load_cost): Likewise.
3940 (vect_store_lanes_supported, vect_load_lanes_supported)
3941 (vect_record_strided_load_vectors): Declare.
3942 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3943 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3944 (vect_transform_strided_load): Split out statement recording into...
3945 (vect_record_strided_load_vectors): ...this new function.
3946 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3947 (write_vector_array, create_array_ref): New functions.
3948 (vect_model_store_cost): Add store_lanes_p argument.
3949 (vect_model_load_cost): Add load_lanes_p argument.
3950 (vectorizable_store): Try to use store-lanes functions for
3951 interleaved stores.
3952 (vectorizable_load): Likewise load-lanes and loads.
3953 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3954 to vect_model_store_cost.
3955 (vect_build_slp_tree): Likewise vect_model_load_cost.
3956
3957 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3958
3959 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3960 * hooks.c (hook_bool_mode_uhwi_false): New function.
3961 * target.def (array_mode_supported_p): New hook.
3962 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3963 * doc/tm.texi: Regenerate.
3964 * stor-layout.c (mode_for_array): New function.
3965 (layout_type): Use it.
3966 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3967 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3968
3969 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3970
3971 PR target/48723
3972 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3973 for -fstack-check if the size to allocate is negative.
3974
3975 2011-05-02 Lawrence Crowl <crowl@google.com>
3976
3977 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3978 (timevar_cond_start): New for starting a timer only when it is not
3979 already running.
3980 (timevar_cond_stop): New for stopping a timer when it was not already
3981 running.
3982
3983 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3984 (timevar_cond_start): New as above.
3985 (timevar_cond_stop): New as above.
3986
3987 * timevar.def: Add start/stop timers for compiler phases,
3988 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3989 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3990 and TV_PHASE_FINALIZE.
3991 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3992 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3993 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3994 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3995 Make unused TV_OVERLOAD into a start/stop timer.
3996
3997 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3998 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3999 to indicate that they are start/stop timers.
4000
4001 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4002 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4003 Move initialization to do_compile.
4004 (do_compile): Add initialization from above.
4005 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4006
4007 * c-decl.c (c_write_global_declarations): Add start/stop of
4008 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4009
4010 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4011 or TV_PARSE_INLINE, as appropriate.
4012 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4013 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4014
4015 2011-05-02 Jason Merrill <jason@redhat.com>
4016
4017 PR c++/40975
4018 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4019
4020 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4021
4022 PR c/35445
4023 * c-decl.c (finish_decl): Only create a composite if the types are
4024 compatible.
4025
4026 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4027
4028 * config/fr30/fr30-protos.h (Mmode): Don't define.
4029 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4030 definition where used.
4031 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4032 define. Expand definitions where used.
4033 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4034 Expand definitions where used.
4035 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4036 rx_function_arg, rx_function_arg_advance,
4037 rx_function_arg_boundary): Expand definitions of those macros.
4038 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4039 definition where used.
4040
4041 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4042
4043 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4044 reg<->xmm moves.
4045 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4046 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4047 with *movv2sf_internal_rex64_avx.
4048 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4049 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4050 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4051 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4052 "vex" in "prefix" attribute calculation.
4053 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4054
4055 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4056
4057 PR target/47951
4058 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4059 inputs match the output.
4060
4061 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4062
4063 PR target/47955
4064 * config/m68k/m68k.c (m68k_expand_prologue): Set
4065 current_function_static_stack_size.
4066
4067 2011-05-02 Jan Hubicka <jh@suse.cz>
4068
4069 * lto-streamer.c (lto_streamer_cache_insert_1,
4070 lto_streamer_cache_lookup, lto_streamer_cache_create,
4071 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4072 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4073
4074 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4075
4076 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4077 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4078 config/m68k/t-opts: New files.
4079 * config/m68k/m68k-tables.opt: New file (generated).
4080 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4081 extra_options and m68k/t-opts to tmake_file.
4082 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4083 (all_isas): Initialize using m68k-isas.def.
4084 (all_microarchs): Initialize using m68k-microarchs.def.
4085 (m68k_find_selection): Remove.
4086 (m68k_handle_option): Don't assert that global structures are in
4087 use. Use error_at. Access variables via opts pointer. Don't
4088 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4089 directly for -m68020-40 and -m68020-60.
4090 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4091 m68k_tune_entry here.
4092 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4093 to m68k-opts.h.
4094 (m68k_library_id_string): Remove declaration.
4095 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4096 (m68k_library_id_string): New Variable.
4097 (march=, mcpu=, mtune=): Use Enum and Var.
4098
4099 2011-05-02 Richard Guenther <rguenther@suse.de>
4100
4101 * varasm.c (output_constructor_regular_field): Compute zero-based
4102 index with double-ints. Make sure to ICE instead of producing
4103 wrong code.
4104 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4105 in asserts. Properly use a signed type.
4106
4107 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4108
4109 * config/i386/sse.md (V): New mode iterator.
4110 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4111 TARGET_SSE2.
4112 (V_256): Rename from AVX256MODE.
4113 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4114 condition to all users.
4115 (VF1): Ditto.
4116 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4117 condition to all users.
4118 (VF_128): Make V4SF mode unconditional.
4119 (VF_256): Rename from AVX256MODEF2P.
4120 (VI4F_128): Rename from SSEMODE4S.
4121 (VI8F_128): Rename from SSEMODE2D.
4122 (VI4F_256): Rename from AVX256MODE8P.
4123 (VI8F_256): Rename from AVX256MODE4P.
4124 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4125 (ssescalarmodesuffix): Remove SF and DF modes.
4126 (SSEMODE124): Remove.
4127 (SSEMODE1248): Ditto.
4128 (SSEMODEF2P): Ditto.
4129 (AVXMODEF2P): Ditto.
4130 (AVXMODEFDP): Ditto.
4131 (AVXMODEFSP): Ditto.
4132 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4133 unconditional.
4134 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4135 unconditional.
4136 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4137 xop_pcmov_<mode>256. Use V mode iterator.
4138
4139 Adjust RTX patterns globally for renamed mode attributes.
4140
4141 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4142
4143 * haifa-sched.c (sched_emit_insn): Emit insn before first
4144 non-scheduled insn. Inform back-end about new insn. Add
4145 new insn to scheduled_insns list.
4146
4147 2011-05-02 Richard Guenther <rguenther@suse.de>
4148
4149 PR tree-optimization/48822
4150 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4151 (process_scc): Indicate which iteration we start.
4152
4153 2011-05-02 Jan Hubicka <jh@suse.cz>
4154
4155 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4156 (lto_section_overrun): New.
4157 * lto-section-out.c (append_block): Rename to ...
4158 (lto_append_block): ... this one; export.
4159 (lto_output_1_stream): Move lto lto-streamer.h
4160 (lto_output_data_stream): Update.
4161 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4162 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4163 functions.
4164
4165 2011-05-02 Richard Guenther <rguenther@suse.de>
4166
4167 * tree.c (tree_code_counts): New global array.
4168 (record_node_allocation_statistics): Count individual tree codes.
4169 (dump_tree_statistics): Dump individual code stats.
4170
4171 2011-05-01 Jan Hubicka <jh@suse.cz>
4172
4173 * ipa-inline.c (caller_growth_limits): Fix thinko when
4174 looking for largest stack frame.
4175 * ipa-inline.h (dump_inline_summary): Declare.
4176 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4177 on stack usage.
4178 (dump_inline_summary): Export.
4179 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4180
4181 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4182
4183 * reginfo.c (memory_move_cost): Change rclass argument type form
4184 'enum reg_class' to reg_class_t.
4185 * reload.h (memory_move_cost): Update prototype.
4186 * postreload.c reload_cse_simplify_set): Change type dclass var to
4187 reg_class_t.
4188 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4189 Update prototype.
4190 (ira_allocate_and_set_costs): Change aclass argument type form
4191 'enum reg_class' to reg_class_t.
4192 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4193 Change aclass argument type to reg_class_t.
4194 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4195 to reg_class_t.
4196 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4197 memory_move_cost call.
4198
4199 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4200 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4201 Change type tmp var to reg_class_t.
4202
4203 2011-04-30 Jan Hubicka <jh@suse.cz>
4204
4205 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4206 inlining into function with flatten attribute.
4207 (want_inline_small_function_p): Be more realistic about inlining
4208 cold calls where callee size grows.
4209
4210 2011-04-30 Jan Hubicka <jh@suse.cz>
4211
4212 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4213 flags.
4214
4215 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4216
4217 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4218 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4219 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4220 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4221 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4222 (print_operand): Rename to...
4223 (sparc_print_operand): ...this. Make static. Adjust
4224 sparc_print_operand function call.
4225 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4226 functions.
4227
4228 2011-04-30 Jan Hubicka <jh@suse.cz>
4229
4230 PR middle-end/48752
4231 * ipa-inline.c (early_inliner): Disable when doing late
4232 addition of function.
4233
4234 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4235
4236 * dwarf2out.c (get_address_mode): New inline.
4237 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4238 if not dwarf_strict emit
4239 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4240 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4241 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4242 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4243 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4244 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4245 mem_loc_descriptor callers.
4246 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4247 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4248 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4249 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4250 (base_types): New variable.
4251 (get_base_type_offset, calc_base_type_die_sizes,
4252 base_type_for_mode, mark_base_types, base_type_cmp,
4253 move_marked_base_types): New functions.
4254 (calc_die_sizes): Assert that die_offset is 0 or equal to
4255 next_die_offset.
4256 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4257 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4258 callers. If not dwarf_strict, call mem_loc_descriptor even for
4259 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4260 (gen_subprogram_die): Don't give up on call site parameters
4261 with non-integral or large integral modes. Adjust
4262 mem_loc_descriptor callers.
4263 (prune_unused_types): Call prune_unused_types_mark on base_types
4264 vector entries.
4265 (resolve_addr): Call mark_base_types.
4266 (dwarf2out_finish): Call move_marked_base_types.
4267
4268 PR tree-optimization/48809
4269 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4270 type.
4271 (gen_inbound_check): Don't compute index_expr - range_min in utype
4272 again, instead reuse SSA_NAME initialized in build_arrays.
4273 Remove two useless gsi_for_stmt calls.
4274
4275 2011-04-29 Jeff Law <law@redhat.com>
4276
4277 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4278
4279 2011-04-29 Martin Jambor <mjambor@suse.cz>
4280
4281 * cgraph.h (cgraph_postorder): Remove declaration.
4282 * ipa-utils.h (ipa_free_postorder_info): Declare.
4283 (ipa_reverse_postorder): Likewise.
4284 * cgraphunit.c: Include ipa-utils.h.
4285 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4286 * ipa-inline.c: Include ipa-utils.h.
4287 (ipa_inline): Update call to ipa_reverse_postorder.
4288 * ipa-pure-const.c (propagate_pure_const): Update call to
4289 ipa_reduced_postorder and ipa_print_order. Call
4290 ipa_free_postorder_info to clean up.
4291 (propagate_nothrow): Likewise.
4292 * ipa-reference.c (propagate): Removed a useless call to
4293 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4294 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4295 * ipa.c: Include ipa-utils.h.
4296 (ipa_profile): Update call to ipa_reverse_postorder.
4297 (cgraph_postorder): Moved to...
4298 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4299 (ipa_utils_print_order): Renamed to ipa_print_order.
4300 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4301 comments.
4302 (ipa_free_postorder_info): New function.
4303 * passes.c: Include ipa-utils.h.
4304 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4305 (ipa_write_summaries): Likewise.
4306 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4307 (cgraphunit.o): Likewise.
4308 (ipa.o): Likewise.
4309 (ipa-inline.o): Likewise.
4310
4311 2011-04-29 Jan Hubicka <jh@suse.cz>
4312
4313 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4314 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4315 * ipa-inline.h (clause_t): Turn into unsigned int.
4316 * ipa-inline-analysis.c (add_clause): Do more simplification.
4317 (and_predicates): Shortcut more cases.
4318 (predicates_equal_p): Move forward; check that clauses are properly
4319 ordered.
4320 (or_predicates): Shortcut more cases.
4321 (edge_execution_predicate): Rewrite as...
4322 (set_cond_stmt_execution_predicate): ... this function; handle
4323 __builtin_constant_p.
4324 (set_switch_stmt_execution_predicate): New .
4325 (compute_bb_predicates): New.
4326 (will_be_nonconstant_predicate): Update TODO.
4327 (estimate_function_body_sizes): Use compute_bb_predicates
4328 and free them later, always try to estimate if stmt is constant.
4329 (estimate_time_after_inlining, estimate_size_after_inlining):
4330 Gracefully handle optimized out edges.
4331 (read_predicate): Fix off by one error.
4332
4333 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4334
4335 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4336
4337 2011-04-27 Xinliang David Li <davidxl@google.com>
4338
4339 * tree-profile.c (init_ic_make_global_vars): Set
4340 tls attribute on ic vars.
4341 * coverage.c (coverage_end_function): Initialize
4342 function_list with zero.
4343
4344 2011-04-29 Richard Guenther <rguenther@suse.de>
4345
4346 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4347 for the type of the result.
4348 (fold_builtin_isascii): Likewise.
4349 (fold_builtin_toascii): Use integer_type_node where appropriate.
4350 (fold_builtin_logb): Likewise.
4351 (fold_builtin_frexp): Likewise.
4352 (fold_builtin_strstr): Likewise.
4353 (fold_builtin_strpbrk): Likewise.
4354 (fold_builtin_fputs): Likewise.
4355 (fold_builtin_sprintf): Likewise.
4356 (fold_builtin_snprintf): Likewise.
4357 (fold_builtin_printf): Likewise.
4358 (do_mpfr_remquo): Use a proper type for the assigned constant.
4359 (do_mpfr_lgamma_r): Likewise.
4360 * dwarf2out.c (resolve_one_addr): Use size_int.
4361 * except.c (init_eh): Likewise.
4362 (assign_filter_values): Use integer_type_node for filter values.
4363 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4364 indices.
4365 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4366 for EH region numbers.
4367 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4368 for the shift amount.
4369
4370 2011-04-29 Richard Guenther <rguenther@suse.de>
4371
4372 * expr.h (expand_shift): Rename to ...
4373 (expand_variable_shift): ... this.
4374 (expand_shift): Take a constant shift amount.
4375 * expmed.c (expand_shift): Rename to ...
4376 (expand_variable_shift): ... this.
4377 (expand_shift): New wrapper around expand_variable_shift.
4378 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4379 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4380 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4381 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4382 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4383 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4384 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4385 emit_store_flag_1, emit_store_flag): Likewise.
4386 * builtins.c (expand_builtin_signbit): Likewise.
4387 * calls.c (load_register_parameters): Likewise.
4388 * function.c (assign_parm_setup_block): Likewise.
4389 * lower-subreg.c (resolve_shift_zext): Likewise.
4390 * optabs.c (widen_bswap, expand_abs_nojump,
4391 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4392 * spu/spu.c (spu_expand_extv): Likewise.
4393 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4394
4395 2011-04-29 Richard Guenther <rguenther@suse.de>
4396
4397 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4398 for the remapped region number.
4399 * predict.c (build_predict_expr): Use integer_type_node for the
4400 predict kind.
4401 * fold-const.c (fold_binary_loc): Use integer_type_node for
4402 the shift amount. Use a proper type for the PLUS_EXPR operand.
4403
4404 2011-04-29 Michael Matz <matz@suse.de>
4405
4406 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4407 other trees that just builtins.
4408 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4409
4410 2011-04-29 Richard Guenther <rguenther@suse.de>
4411
4412 * tree-nested.c (get_trampoline_type): Use size_int.
4413 (get_nl_goto_field): Likewise.
4414 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4415 for all indexes.
4416 (lower_eh_constructs_2): Likewise.
4417 (lower_resx): Likewise.
4418 (lower_eh_dispatch): Likewise.
4419 * tree-mudflap.c (mf_build_string): Use size_int.
4420 (mudflap_register_call): Use integer_type_node for the flag.
4421 (mudflap_enqueue_constant): Use size_int.
4422 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4423 instead of rebuilding it.
4424
4425 2011-04-29 Richard Guenther <rguenther@suse.de>
4426
4427 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4428 Handle OBJ_TYPE_REF.
4429 (find_func_aliases_for_call): Use it more consistently.
4430
4431 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4432
4433 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4434 (rank_for_schedule): Use it.
4435 (schedule_block): Set it.
4436
4437 2011-04-28 David Li <davidxl@google.com>
4438
4439 * tree.c (crc32_string): Use crc32_byte.
4440 (crc32_byte): New function.
4441 * tree.h (crc32_byte): New function.
4442 * gcov.c (read_graph_file): Handle new cfg_cksum.
4443 (read_count_file): Ditto.
4444 * profile.c (instrument_values): Ditto.
4445 (get_exec_counts): Ditto.
4446 (read_profile_edge_counts): Ditto.
4447 (compute_branch_probabilities): Ditto.
4448 (compute_value_histograms): Ditto.
4449 (branch_prob): Ditto.
4450 (end_branch_prob): Ditto.
4451 * coverage.c (read_counts_file): Ditto.
4452 (get_coverage_counts): Ditto.
4453 (tree_coverage_counter_addr): Ditto.
4454 (coverage_checksum_string): Ditto.
4455 (coverage_begin_output): Ditto.
4456 (coverage_end_function): Ditto.
4457 (build_fn_info_type): Ditto.
4458 (build_fn_info_value): Ditto.
4459 * libgcov.c (gcov_exit): Ditto.
4460 * gcov-dump.c (tag_function): Ditto.
4461 (compute_checksum): Remove.
4462
4463 2011-04-29 Alan Modra <amodra@gmail.com>
4464
4465 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4466 unspec plus offset. Tidy macho code.
4467
4468 2011-04-29 Martin Jambor <mjambor@suse.cz>
4469
4470 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4471 node instead of a decl. Update all callers.
4472 * cgraph.h: Update declaration.
4473
4474 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4475
4476 PR tree-optimization/48765
4477 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4478 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4479 to indicate if loop aware SLP is being used. Scan the statements
4480 and update the vectorization factor according to the type of
4481 vectorization before statement analysis.
4482 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4483 pass it to vect_analyze_loop_operations.
4484 (vectorizable_reduction): Set number of copies to 1 in case of pure
4485 SLP statement.
4486 * tree-vect-stmts.c (vectorizable_conversion,
4487 vectorizable_assignment, vectorizable_shift,
4488 vectorizable_operation, vectorizable_type_demotion,
4489 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4490 Likewise.
4491 (vectorizable_condition): Move the check that it is not SLP
4492 vectorization before the number of copies check.
4493 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4494 to vectorize the loop using SLP.
4495
4496 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4497
4498 PR middle-end/48597
4499 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4500 inline asm.
4501
4502 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4503
4504 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4505 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4506 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4507 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4508 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4509 linux*.h headers.
4510 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4511 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4512 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4513 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4514 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4515 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4516 REG_NAME.
4517 * config/i386/linux.h (REG_NAME): Don't define.
4518 * config/i386/linux64.h (REG_NAME): Don't define.
4519 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4520 Undefine before defining.
4521
4522 2011-04-28 Jan Hubicka <jh@suse.cz>
4523
4524 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4525 nonconstant_names array.
4526 (estimate_function_body_sizes): Build nonconstant_names array; handle
4527 BUILT_IN_CONSTANT_P.
4528
4529 2011-04-28 Richard Guenther <rguenther@suse.de>
4530
4531 PR bootstrap/48804
4532 Revert
4533 2011-04-28 Richard Guenther <rguenther@suse.de>
4534
4535 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4536 as late as possible.
4537
4538 2011-04-28 Richard Guenther <rguenther@suse.de>
4539
4540 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4541 (debug_constraint): Do it here.
4542 (dump_constraints): And here.
4543 (rewrite_constraints): And here.
4544 (dump_constraint_edge): Remove.
4545 (dump_constraint_graph): Rewrite to produce DOT output.
4546 (solve_constraints): Build succ graph as late as possible.
4547 Dump constraint graphs before and after solving.
4548
4549 2011-04-28 Richard Guenther <rguenther@suse.de>
4550
4551 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4552 New function split out from ...
4553 (find_func_aliases): ... here. Call it.
4554 (find_func_aliases_for_call): Likewise.
4555
4556 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4557
4558 * internal-fn.h (internal_fn_name_array): Declare.
4559 (internal_fn_flags_array): Likewise.
4560
4561 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4562
4563 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4564 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4565 Move from sse.md.
4566 (ssemodefsuffix): Remove.
4567 (ssevecmodesuffix): New mode attribute.
4568 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4569 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4570 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4571 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4572 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4573 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4574 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4575 ssemodesuffix mode attribute.
4576 (float splitters): Use ssevecmodesuffix mode attribute.
4577 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4578 (sseinsmode): Rename from avxvecmode.
4579 (avxsizesuffix): Rename from avxmodesuffix.
4580 (sseintvecmode): Rename from avxpermvecmode.
4581 (ssedoublevecmode): Rename from ssedoublesizemode.
4582 (ssehalfvecmode): Rename from avxhalfvecmode.
4583 (ssescalarmode): Rename from avxscalarmode.
4584 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4585 templates for ssemodesuffix mode attribute.
4586 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4587 mode attribute.
4588
4589 Adjust RTX patterns globally for renamed mode attributes.
4590
4591 2011-04-27 Jan Hubcika <jh@suse.cz>
4592
4593 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4594 * ipa-inline-analysis.c: Include alloc-pool.h.
4595 (edge_predicate_pool): New.
4596 (trye_predicate_p): New function
4597 (false_predicate_p): New function.
4598 (add_clause): Sanity check that false clauses are "optimized";
4599 never add clauses to predicate that is already known to be false.
4600 (and_predicate): Use flase_predicate_p.
4601 (evaulate_predicate): Rename to ...
4602 (evaluate_predicate): ... this one; update all callers; assert
4603 that false is not listed among possible truths.
4604 (dump_predicate): Use true_predicate_p.
4605 (account_size_time): Use false_predicate_p.
4606 (evaulate_conditions_for_edge): Rename to ...
4607 (evaluate_conditions_for_edge) ... this one.
4608 (edge_set_predicate): New function.
4609 (inline_edge_duplication_hook): Duplicate edge predicates.
4610 (inline_edge_removal_hook): Free edge predicates.
4611 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4612 (dump_inline_summary): Update.
4613 (estimate_function_body_sizes): Set edge predicates.
4614 (estimate_calls_size_and_time): Handle predicates.
4615 (estimate_callee_size_and_time): Update.
4616 (remap_predicate): Add toplev_predicate; update comment.
4617 (remap_edge_predicates): New function.
4618 (inline_merge_summary): Compute toplev predicate; update.
4619 (read_predicate): New function.
4620 (read_inline_edge_summary): Use it.
4621 (inline_read_section): Likewise.
4622 (write_predicate): New function.
4623 (write_inline_edge_summary): Use it.
4624 (inline_write_summary): Likewise.
4625 (inline_free_summary): Free alloc pool and edge summary vec.
4626
4627 2011-04-27 Richard Guenther <rguenther@suse.de>
4628
4629 * tree-ssa-structalias.c (changed_count): Remove.
4630 (changed): Use a bitmap.
4631 (unify_nodes): Adjust.
4632 (do_sd_constraint): Likewise.
4633 (do_ds_constraint): Likewise.
4634 (do_complex_constraint): Likewise.
4635 (solve_graph): Likewise.
4636
4637 2011-04-27 Jan Hubicka <jh@suse.cz>
4638
4639 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4640
4641 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4642
4643 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4644 (avx_vperm2f128_*_operand): Ditto.
4645 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4646 Use avx_vpermilp_parallel in insn condition.
4647 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4648 Use avx_vperm2f128_parallel in insn condition.
4649
4650 2011-04-27 Richard Guenther <rguenther@suse.de>
4651
4652 * Makefile.in (tree-ssa-structalias.o): Remove
4653 gt-tree-ssa-structalias.h dependency.
4654 (GTFILES): Remove tree-ssa-structalias.c.
4655 * tree.c (allocate_decl_uid): New function.
4656 (make_node_stat): Use it.
4657 (copy_node_stat): Likewise.
4658 * tree.h (allocate_decl_uid): Declare.
4659 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4660 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4661 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4662 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4663 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4664 (struct heapvar_map): Likewise.
4665 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4666 heapvar_insert): Likewise.
4667 (make_heapvar_for): Rename to ...
4668 (make_heapvar): ... this. Simplify.
4669 (fake_var_decl_obstack): New global var.
4670 (build_fake_var_decl): New function.
4671 (make_constraint_from_heapvar): Adjust.
4672 (handle_lhs_call): Likewise.
4673 (create_function_info_for): Likewise.
4674 (intra_create_variable_infos): Likewise.
4675 (init_alias_vars): Allocate fake_var_decl_obstack.
4676 (init_alias_heapvars, delete_alias_heapvars): Remove.
4677 (compute_points_to_sets): Do not call init_alias_heapvars.
4678 (ipa_pta_execute): Likewise.
4679 (delete_points_to_sets): Free fake_var_decl_obstack.
4680
4681 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4682
4683 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4684 (si_from_UTItype, si_to_UTItype): New functions.
4685 (__udivmodti4): Use them to implement type-punning.
4686 * config/spu/multi3.c (union qword_TItype): New data type.
4687 (si_from_TItype, si_to_TItype): New functions.
4688 (__multi3): Use them to implement type-punning.
4689
4690 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4691
4692 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4693
4694 2011-04-27 Jan Hubicka <jh@suse.cz>
4695
4696 * ipa-prop.c (function_insertion_hook_holder): New holder.
4697 (ipa_add_new_function): New function.
4698 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4699 Register/deregister holder.
4700
4701 2011-04-27 Richard Guenther <rguenther@suse.de>
4702
4703 PR tree-optimization/48772
4704 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4705
4706 2011-04-27 Richard Guenther <rguenther@suse.de>
4707
4708 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4709 TARGET_MEM_REF handling.
4710
4711 2011-04-27 Nick Clifton <nickc@redhat.com>
4712
4713 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4714 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4715 (REG_CLASS_NAMES): Likewise.
4716 (REG_CLASS_CONTENTS): Likewise.
4717 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4718 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4719 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4720 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4721 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4722 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4723 duplicate register classes.
4724 (frv_class_likely_spilled_p): Likewise.
4725 (frv_register_move_cost): Likewise.
4726
4727 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4728 end of the regno_reg_class array.
4729
4730 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4731
4732 PR c/48742
4733 * c-typeck.c (build_binary_op): Don't wrap arguments if
4734 int_operands is true.
4735
4736 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4737
4738 PR target/48767
4739 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4740 targetm.calls.must_pass_in_stack for void type.
4741
4742 2011-04-26 Jan Hubicka <jh@suse.cz>
4743
4744 * cgraphbuild.c (build_cgraph_edges): Update call
4745 of cgraph_create_edge and cgraph_create_indirect_edge.
4746 * cgraph.c (cgraph_create_edge_including_clones,
4747 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4748 cgraph_update_edges_for_call_stmt_node): Do not take nest
4749 argument; do not initialize call_stmt_size/time.
4750 (dump_cgraph_node): Do not dump nest.
4751 (cgraph_clone_edge): Do not take loop_nest argument;
4752 do not propagate it; do not clone call_stmt_size/time.
4753 (cgraph_clone_node): Likewise.
4754 (cgraph_create_virtual_clone): Update.
4755 * cgraph.h (struct cgraph_edge): Remove
4756 call_stmt_size/call_stmt_time/loop_nest.
4757 (cgraph_create_edge, cgraph_create_indirect_edge,
4758 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4759 prototype.
4760 * tree-emutls.c (gen_emutls_addr): Update.
4761 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4762 loop_nest; handle indirect calls, too.
4763 (clone_inlined_nodes): Do not care about updating inline summaries.
4764 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4765 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4766 stream call_stmt_size/call_stmt_time/loop_nest.
4767 * ipa-inline.c (edge_badness): Update.
4768 (ipa_inline): dump summaries after inlining.
4769 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4770 New.
4771 (inline_edge_summary): New function.
4772 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4773 (inline_edge_removal_hook): Handle edge summaries.
4774 (inline_edge_duplication_hook): New hook.
4775 (inline_summary_alloc): Alloc hooks.
4776 (initialize_growth_caches): Do not register removal hooks.
4777 (free_growth_caches); Do not free removal hook.
4778 (dump_inline_edge_summary): New function.
4779 (dump_inline_summary): Use it.
4780 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4781 (inline_update_callee_summaries): New function.
4782 (inline_merge_summary): Use it.
4783 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4784 (read_inline_edge_summary): New function.
4785 (inline_read_section): Use it.
4786 (write_inline_edge_summary): New function.
4787 (inline_write_summary): Use it.
4788 (inline_free_summary): Free edge new holders.
4789 * tree-inline.c (copy_bb): Update.
4790
4791 2011-04-26 Jason Merrill <jason@redhat.com>
4792
4793 * tree-eh.c (lower_try_finally_switch): Create the label along with
4794 the CASE_LABEL_EXPR.
4795
4796 2011-04-26 David S. Miller <davem@davemloft.net>
4797 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4798
4799 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4800 * configure: Regenerate.
4801
4802 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4803
4804 PR target/48258
4805 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4806 reduction.
4807 (VEC_reduc): New code iterator and splitters for vector reduction.
4808 (VEC_reduc_name): Ditto.
4809 (VEC_reduc_rtx): Ditto.
4810 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4811 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4812
4813 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4814 support for extracting SF on VSX.
4815
4816 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4817 generating xscvspdp.
4818 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4819 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4820 double add, minimum, maximum vector reduction.
4821 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4822 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4823 optimize double vector reduction.
4824 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4825
4826 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4827
4828 * config/fr30/fr30.h (inhibit_libc): Don't define.
4829 * config/m32r/m32r-protos.h: Correct comment.
4830 * config/v850/v850.h (GHS_default_section_names,
4831 GHS_current_section_names): Use tree, not union tree_node *.
4832
4833 2011-04-26 Xinliang David Li <davidxl@google.com>
4834
4835 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4836 * c-family/c-opts.c (c_common_handle_option): Set
4837 warn_maybe_uninitialized.
4838 * opts.c (common_handle_option): Ditto.
4839 * common.opt: New option.
4840 * tree-ssa.c (warn_uninit): Add one more parameter.
4841 (warn_uninitialized_var): Pass warning code.
4842 * tree-flow.h: Interface change.
4843
4844 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4845
4846 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4847 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4848 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4849
4850 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4851
4852 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4853 * config/mips/mips.opt (mmips-tfile): Remove.
4854
4855 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4856 mips-tdump reference to ...
4857 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4858 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4859 reference by Tru64 UNIX.
4860
4861 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4862
4863 PR debug/48768
4864 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4865 is error_mark_node, set value to NULL.
4866
4867 PR tree-optimization/48734
4868 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4869 if return value from maybe_fold_*_comparsions isn't something
4870 the code is prepared to handle.
4871
4872 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4873
4874 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4875 mode check.
4876 (ext_QIreg_nomode_operands): Remove.
4877 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4878 (*andsi_1): Ditto.
4879 (*andhi_1): Ditto.
4880
4881 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4882
4883 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4884
4885 2011-04-26 Richard Guenther <rguenther@suse.de>
4886
4887 * c-typeck.c (build_unary_op): Do not expand array-refs via
4888 pointer arithmetic. Only adjust qualifiers for function types.
4889
4890 2011-04-26 Richard Guenther <rguenther@suse.de>
4891
4892 PR middle-end/48694
4893 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4894 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4895 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4896 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4897
4898 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4899
4900 * doc/extend.texi: Document __underlying_type.
4901
4902 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4903
4904 * config/rs6000/titan.md (automata_option "progress"): Remove.
4905
4906 2011-04-25 Jeff Law <law@redhat.com>
4907
4908 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4909
4910 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4911
4912 * system.h (ENUM_BITFIELD): Remove.
4913
4914 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4915 Eric Botcazou <ebotcazou@adacore.com>
4916
4917 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4918 for STORE_FLAG_VALUE==-1 case.
4919
4920 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4921
4922 PR target/43804
4923 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4924 LEGITIMATE_PIC_OPERAND_P.
4925
4926 2011-04-24 Jan Hubicka <jh@suse.cz>
4927
4928 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4929 WPA hack.
4930 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4931 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4932 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4933 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4934 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4935 Sanity check predicate length.
4936 (remap_predicate): Likewise; sanity check jump functions.
4937 (inline_read_section, inline_write_summary): Sanity check
4938 predicate length.
4939
4940 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4941
4942 PR other/48748
4943 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4944 __is_literal_type, and __is_trivial; update throughout about
4945 possibly cv-qualified void types.
4946
4947 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4948
4949 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4950 testsuite and make it version agnostic.
4951
4952 2011-04-22 Jan Hubicka <jh@suse.cz>
4953
4954 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4955
4956 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4957
4958 PR c/48685
4959 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4960 to VOID_TYPE even around MODIFY_EXPR.
4961
4962 2011-04-22 Mike Stump <mikestump@comcast.net>
4963
4964 * gensupport.c (read_md_rtx): Fix typo in comment.
4965 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4966 comment.
4967
4968 2011-04-22 Jan Hubicka <jh@suse.cz>
4969
4970 * gengtype.c (open_base_files): Add ipa-inline.h include.
4971 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4972 ipa-prop.c; update all uses.
4973 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4974 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4975 merge summary of inlined function into former caller.
4976 * ipa-inline.c (max_benefit): Remove.
4977 (edge_badness): Compensate for removal of benefits.
4978 (update_caller_keys): Use
4979 reset_node_growth_cache/reset_edge_growth_cache.
4980 (update_callee_keys): Likewise.
4981 (update_all_callee_keys): Likewise.
4982 (inline_small_functions): Do not collect max_benefit; do not reset
4983 estimated_growth; call free_growth_caches and initialize_growth_caches.
4984 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4985 struct size_time_entry): New structures.
4986 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4987 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4988 and estimated_growth.
4989 (edge_growth_cache_entry): New structure.
4990 (node_growth_cache, edge_growth_cache): New global vars.
4991 (estimate_growth): Turn into inline.
4992 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4993 initialize_growth_caches, free_growth_caches): Declare.
4994 (estimate_edge_growth): Rewrite.
4995 (estimate_edge_time): Implement as inline cache lookup.
4996 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4997 functions.
4998 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4999 (NUM_CONDITIONS): New constant.
5000 (predicate_conditions): New enum.
5001 (IS_NOT_CONSTANT): New constant.
5002 (edge_removal_hook_holder): New var.
5003 (node_growth_cache, edge_growth_cache): New global vars.
5004 (true_predicate, single_cond_predicate, false_predicate,
5005 not_inlined_predicate, add_condition, add_clause, and_predicates,
5006 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5007 dump_clause, dump_predicate, account_size_time,
5008 evaulate_conditions_for_edge): New functions.
5009 (inline_summary_alloc): Move to heap.
5010 (inline_node_removal_hook): Clear condition and entry vectors.
5011 (inline_edge_removal_hook): New function.
5012 (initialize_growth_caches, free_growth_caches): New function.
5013 (dump_inline_summary): Update.
5014 (edge_execution_predicate): New function.
5015 (will_be_nonconstant_predicate): New function.
5016 (estimate_function_body_sizes): Compute BB and constantness predicates.
5017 (compute_inline_parameters): Do not clear estimated_growth.
5018 (estimate_edge_size_and_time): New function.
5019 (estimate_calls_size_and_time): New function.
5020 (estimate_callee_size_and_time): New function.
5021 (remap_predicate): New function.
5022 (inline_merge_summary): New function.
5023 (do_estimate_edge_time): New function based on...
5024 (estimate_edge_time): ... this one.
5025 (do_estimate_edge_growth): New function.
5026 (do_estimate_growth): New function based on....
5027 (estimate_growth): ... this one.
5028 (inline_analyze_function): Analyze after deciding on jump functions.
5029 (inline_read_section): New function.
5030 (inline_read_summary): Use it.
5031 (inline_write_summary): Write all the new data.
5032 * ipa-prop.c (ipa_get_param_decl_index): Export.
5033 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5034 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5035 Declare.
5036 (ipa_get_lattice): Move here from ipa-cp.c
5037 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5038 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5039 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5040 cgraph_edge_inlinable_p): Remove.
5041 * cgraphunit.c: Include ipainline.h
5042 (cgraph_process_new_functions): Update call of
5043 compute_inline_parameters.
5044
5045 2011-04-22 Richard Guenther <rguenther@suse.de>
5046
5047 * tree.c (build_int_cst): Properly create canonicalized integer
5048 constants.
5049 (build_int_cst_type): Remove scary comments.
5050
5051 2011-04-22 Xinliang David Li <davidxl@google.com>
5052
5053 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5054 by default when -Wno-error is not specified.
5055 * opts-global.c (decode_options): Remove call to
5056 control_warning_options.
5057
5058 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5059
5060 PR tree-optimization/48717
5061 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5062 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5063
5064 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5065
5066 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5067 definition where used.
5068
5069 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5070
5071 PR c/48716
5072 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5073 TREE_STATIC variables declared inside of some OpenMP construct.
5074
5075 2011-04-22 Martin Jambor <mjambor@suse.cz>
5076
5077 PR middle-end/48585
5078 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5079
5080 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5081
5082 PR c/36750
5083 * c-typeck.c (pop_init_level): Do not warn about initializing
5084 with ` = {0}'.
5085
5086 2011-04-22 Alan Modra <amodra@gmail.com>
5087
5088 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5089 when returning call_cookie.
5090 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5091 pointers, to functions with no more vector args than the current
5092 function, and some non-local calls for ABI_V4.
5093 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5094 sibcall_nonlocal_aix64): Combine to ..
5095 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5096 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5097 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5098 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5099 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5100 operand.
5101 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5102 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5103 sibcall_value_symbolic_64): Delete.
5104
5105 2011-04-21 Xinliang David Li <davidxl@google.com>
5106
5107 * cgraph.h: Remove pid.
5108 * cgraph.c: Remove pid.
5109 * value-prof.c (init_node_map): New function.
5110 (del_node_map): New function.
5111 (find_func_by_funcdef_no): New function.
5112 (gimple_ic_transform): Call new function.
5113 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5114 * function.c (get_last_funcdef_no): New function.
5115 * function.h (get_last_funcdef_no): New function.
5116 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5117 to libgcov function.
5118 (tree-profiling): Call node map init and delete function.
5119
5120 2011-04-21 Ian Lance Taylor <iant@google.com>
5121
5122 * godump.c (go_format_type): Use exported Go name for anonymous
5123 field name.
5124
5125 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5126
5127 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5128 Call builtin_function_type_list instead of builtin_function_type.
5129 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5130
5131 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5132
5133 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5134 build_function_type_list instead of build_function_type.
5135 Delete variable `endlink'.
5136
5137 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5138
5139 * config/s390/s390.c (s390_init_builtins): Call
5140 build_function_type_list instead of build_function_type.
5141
5142 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5143
5144 * config/ia64/ia64.c (ia64_init_builtins): Call
5145 build_function_type_list instead of builtin_function_type.
5146
5147 2011-04-21 Easwaran Raman <eraman@google.com>
5148
5149 * cfgexpand.c (stack_var): Remove OFFSET...
5150 (add_stack_var): ...and its reference here...
5151 (expand_stack_vars): ...and here.
5152 (stack_var_cmp): Sort by descending order of size.
5153 (partition_stack_vars): Change heuristic.
5154 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5155 (dump_stack_var_partition): Add newline after each partition.
5156
5157 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5158 Jeff Law <law@redhat.com>
5159
5160 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5161 * gengtype.c (matching_file_name_substitute): Likewise.
5162
5163 2011-04-21 Richard Guenther <rguenther@suse.de>
5164
5165 PR lto/48703
5166 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5167
5168 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5169
5170 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5171
5172 2011-04-21 Richard Guenther <rguenther@suse.de>
5173
5174 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5175 file name.
5176
5177 2011-04-21 Richard Guenther <rguenther@suse.de>
5178
5179 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5180 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5181 Use DECL_P, not SSA_VAR_P.
5182 (ptr_derefs_may_alias_p): Likewise.
5183 (ptr_deref_may_alias_ref_p_1): Likewise.
5184 (decl_refs_may_alias_p): Likewise.
5185 (refs_may_alias_p_1): Likewise.
5186 (ref_maybe_used_by_call_p_1): Likewise.
5187 (call_may_clobber_ref_p_1): Likewise.
5188 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5189 are either MEM_REF or TARGET_MEM_REF.
5190 (indirect_refs_may_alias_p): Likewise.
5191 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5192 for MEM_EXPR of indirect calls.
5193
5194 2011-04-21 Tristan Gingold <gingold@adacore.com>
5195
5196 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5197 (dst_file_info_struct): Remove flen field.
5198 (lookup_filename): Remove code that set flen field.
5199
5200 2011-04-21 Tristan Gingold <gingold@adacore.com>
5201
5202 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5203
5204 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5205
5206 PR target/48708
5207 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5208 vec_extract and vec_concat for non-SSE4_1 targets.
5209
5210 2011-04-21 Richard Guenther <rguenther@suse.de>
5211
5212 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5213 return statements.
5214
5215 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5216
5217 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5218 undefine.
5219 (FILE): Don't undefine.
5220
5221 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5222
5223 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5224 struct rtx_def *.
5225 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5226 struct rtx_def *.
5227 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5228 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5229 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5230 rtx_def *.
5231 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5232 definitions where used.
5233 * config/microblaze/microblaze.h (struct microblaze_args): Use
5234 rtx, not struct rtx_def *.
5235 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5236 rtx_def *.
5237 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5238 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5239 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5240 not struct rtx_def *.
5241 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5242 struct rtx_def *.
5243 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5244 rtx_def *.
5245 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5246
5247 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5248
5249 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5250 operand_equal_p to compare DR_BASE_ADDRESSes.
5251 (vect_check_interleaving): Likewise.
5252
5253 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5254
5255 PR target/46329
5256 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5257 for all Neon struct constants.
5258
5259 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5260
5261 * target.def (legitimate_constant_p): New hook.
5262 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5263 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5264 * doc/tm.texi: Regenerate.
5265 * hooks.h (hook_bool_mode_rtx_true): Declare.
5266 * hooks.c (hook_bool_mode_rtx_true): Define.
5267 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5268 * calls.c (precompute_register_parameters): Replace uses of
5269 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5270 (emit_library_call_value_1): Likewise.
5271 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5272 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5273 * ira-costs.c (scan_one_insn): Likewise.
5274 * recog.c (general_operand, immediate_operand): Likewise.
5275 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5276 * reload1.c (init_eliminable_invariants): Likewise.
5277
5278 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5279 mode argument.
5280 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5281 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5282 argument.
5283 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5284 * config/alpha/predicates.md (input_operand): Update call to
5285 alpha_legitimate_constant_p.
5286
5287 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5288 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5289 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5290 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5291 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5292 (arm_legitimate_constant_p): New functions.
5293 (arm_cannot_force_const_mem): Make static.
5294
5295 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5296
5297 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5298 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5299 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5300 instead of bfin_legitimate_constant_p.
5301 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5302 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5303
5304 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5305
5306 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5307
5308 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5309 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5310 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5311 (frv_legitimate_constant_p): Make static. Add a mode argument.
5312
5313 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5314 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5315 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5316
5317 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5318 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5319 * config/i386/i386.c (legitimate_constant_p): Rename to...
5320 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5321 argument.
5322 (ix86_cannot_force_const_mem): Update accordingly.
5323 (ix86_legitimate_address_p): Likewise.
5324 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5325 * config/i386/i386.md: Update commentary.
5326
5327 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5328 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5329 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5330 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5331
5332 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5333
5334 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5335 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5336 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5337 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5338
5339 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5340 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5341 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5342
5343 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5344 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5345 (m32r_legitimate_constant_p): New function.
5346
5347 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5348 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5349 LEGITIMATE_CONSTANT_P.
5350 (LEGITIMATE_CONSTANT_P): Delete.
5351 * config/m68k/m68k.c (m68k_expand_prologue): Call
5352 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5353 (m68k_legitimate_constant_p): New function.
5354 * config/m68k/m68k.md: Update comments.
5355
5356 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5357 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5358 (mcore_legitimate_constant_p): New function.
5359
5360 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5361 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5362 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5363 Add a mode argument.
5364 (mep_legitimate_address): Update accordingly.
5365 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5366
5367 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5368 Delete.
5369 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5370 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5371 static. Check OP's mode for VOIDmode.
5372 (microblaze_legitimate_constant_p): New function.
5373 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5374
5375 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5376 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5377 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5378 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5379 * config/mips/predicates.md: Update comments.
5380
5381 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5382 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5383 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5384 (mmix_legitimate_constant_p): Make static, return a bool, and take
5385 a mode argument.
5386 (mmix_print_operand_address): Update accordingly.
5387
5388 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5389 Delete.
5390 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5391 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5392 static. Add a mode argument.
5393 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5394
5395 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5396
5397 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5398 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5399 (pa_legitimate_constant_p): New function.
5400
5401 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5402
5403 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5404 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5405 (pdp11_legitimate_constant_p): New function.
5406
5407 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5408 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5409 (rs6000_legitimate_constant_p): New function.
5410
5411 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5412 (rx_legitimate_constant_p): ...this.
5413 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5414 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5415 (rx_legitimate_constant_p): ...this.
5416 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5417 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5418
5419 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5420 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5421 * config/s390/s390.c (legitimate_constant_p): Rename to...
5422 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5423 and add a mode argument.
5424 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5425
5426 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5427
5428 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5429 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5430 (sh_legitimate_constant_p): New function.
5431
5432 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5433 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5434 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5435 (legitimate_constant_p): Rename to...
5436 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5437 argument.
5438 (constant_address_p): Update accordingly.
5439
5440 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5441 argument and return a bool.
5442 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5443 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5444 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5445 (spu_rtx_costs): Update accordingly.
5446 * config/spu/predicates.md (vec_imm_operand): Likewise.
5447
5448 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5449
5450 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5451 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5452 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5453
5454 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5455 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5456 * config/vax/vax.c (legitimate_constant_p): Likewise.
5457
5458 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5459 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5460 (xtensa_legitimate_constant_p): New function.
5461
5462 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5463
5464 * target.def (cannot_force_const_mem): Add a mode argument.
5465 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5466 * doc/tm.texi: Regenerate.
5467 * hooks.h (hook_bool_mode_rtx_false): Declare.
5468 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5469 (hook_bool_mode_const_rtx_true): Likewise.
5470 (hook_bool_mode_rtx_false): New function.
5471 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5472 to be non-VOID. Update call to cannot_force_const_mem.
5473 (find_reloads): Update accordingly.
5474 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5475 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5476 argument.
5477 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5478 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5479 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5480 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5481 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5482 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5483 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5484 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5485 (m68k_cannot_force_const_mem): ...this new function.
5486 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5487 argument.
5488 (mips_const_insns, mips_legitimize_const_move): Update calls.
5489 (mips_secondary_reload_class): Likewise.
5490 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5491 (pa_cannot_force_const_mem): ...this new function.
5492 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5493 (rs6000_cannot_force_const_mem): ...this new function.
5494 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5495 argument.
5496 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5497 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5498 to...
5499 (xtensa_cannot_force_const_mem): ...this new function.
5500
5501 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5502
5503 * config/mips/mips.c (mips16_build_function_stub): Call
5504 build_function_type_list instead of build_function_type.
5505 (mips16_build_call_stub): Likewise.
5506
5507 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5508
5509 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5510 instead of build_function_type.
5511
5512 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5513
5514 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5515 instead of build_function_type.
5516
5517 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5518
5519 PR target/48678
5520 * config/i386/i386.md (insv): Change operand 0 constraint to
5521 "register_operand". Change operand 1 and 2 constraint to
5522 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5523 * config/i386/sse.md (sse4_1_pinsrb): Export.
5524 (sse2_pinsrw): Ditto.
5525 (sse4_1_pinsrd): Ditto.
5526 (sse4_1_pinsrq): Ditto.
5527 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5528 * config/i386/i386.c (ix86_expand_pinsr): New.
5529
5530 2011-04-20 Easwaran Raman <eraman@google.com>
5531
5532 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5533 containing union type only with -fstrict-aliasing.
5534
5535 2011-04-20 Jim Meyering <meyering@redhat.com>
5536
5537 Remove useless if-before-free tests.
5538 * calls.c (expand_call, save_area): Likewise.
5539 * cfgcleanup.c (try_forward_edges): Likewise.
5540 * collect2.c (collect_execute): Likewise.
5541 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5542 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5543 * coverage.c (coverage_checksum_string): Likewise.
5544 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5545 * cselib.c (cselib_init): Likewise.
5546 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5547 (df_set_clean_cfg): Likewise.
5548 * function.c (free_after_compilation): Likewise.
5549 * gcc.c (do_spec_1, main): Likewise.
5550 * gcov.c (create_file_names): Likewise.
5551 * gensupport.c (identify_predicable_attribute): Likewise.
5552 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5553 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5554 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5555 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5556 * ipa-pure-const.c (local_pure_const): Likewise.
5557 * ipa-reference.c (propagate): Likewise.
5558 * ira-costs.c (free_ira_costs): Likewise.
5559 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5560 * matrix-reorg.c (mat_free): Likewise.
5561 * prefix.c (get_key_value): Likewise.
5562 * profile.c (compute_value_histograms): Likewise.
5563 * reload1.c (free_reg_equiv): Likewise.
5564 * sched-deps.c (free_deps): Likewise.
5565 * sel-sched-ir.c (fence_clear): Likewise.
5566 * sese.c (set_rename, if_region_set_false_region): Likewise.
5567 * tree-data-ref.c (free_rdg): Likewise.
5568 * tree-eh.c (lower_try_finally): Likewise.
5569 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5570 * tree-ssa-live.c (delete_var_map): Likewise.
5571 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5572 * tree-ssa-pre.c (phi_trans_add): Likewise.
5573
5574 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5575
5576 PR tree-optimization/48611
5577 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5578 beyond ERT_MUST_NOT_THROW region.
5579
5580 2011-04-20 Catherine Moore <clm@codesourcery.com>
5581
5582 * config/mips/mips.opt (mfix-24k): New.
5583 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5584 * config/mips/mips.md (length): Increase by 4 for stores if
5585 fixing 24K errata.
5586 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5587 all noreorder if fixing 24K errata.
5588 * doc/invoke.texi: Document mfix-24k.
5589
5590 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5591
5592 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5593 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5594
5595 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5596
5597 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5598 (const_ok_for_op): ... to here.
5599
5600 2011-04-20 Kai Tietz <ktietz@redhat.com>
5601
5602 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5603 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5604
5605 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5606
5607 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5608
5609 2011-04-20 Richard Guenther <rguenther@suse.de>
5610
5611 PR tree-optimization/47892
5612 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5613 are if-convertible.
5614
5615 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5616
5617 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5618
5619 2011-04-20 Tristan Gingold <gingold@adacore.com>
5620
5621 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5622
5623 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5624
5625 PR target/18145
5626
5627 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5628 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5629 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5630 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5631 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5632
5633 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5634 New prototype.
5635
5636 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5637 (avr_asm_named_section, avr_asm_output_aligned_common,
5638 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5639 New functions to update...
5640 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5641 (avr_asm_init_sections): Overwrite section callbacks for
5642 data_section, bss_section.
5643 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5644 from here to...
5645 (avr_file_end): ...here.
5646
5647 2011-04-20 Richard Guenther <rguenther@suse.de>
5648
5649 PR middle-end/48695
5650 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5651 objects and types here. Adjust for their offset before comparing.
5652
5653 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5654
5655 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5656 statement per copy.
5657
5658 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5659
5660 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5661 (GIMPLE_H): Include $(INTERNAL_FN_H).
5662 (OBJS-common): Add internal-fn.o.
5663 (internal-fn.o): New rule.
5664 * internal-fn.def: New file.
5665 * internal-fn.h: Likewise.
5666 * internal-fn.c: Likewise.
5667 * gimple.h: Include internal-fn.h.
5668 (GF_CALL_INTERNAL): New gf_mask.
5669 (gimple_statement_call): Put fntype into a union with a new
5670 internal_fn field.
5671 (gimple_build_call_internal): Declare.
5672 (gimple_build_call_internal_vec): Likewise.
5673 (gimple_call_same_target_p): Likewise.
5674 (gimple_call_internal_p): New function.
5675 (gimple_call_internal_fn): Likewise.
5676 (gimple_call_fntype): Return null for internal calls.
5677 (gimple_call_set_fntype): Assert that the function is not internal.
5678 (gimple_call_set_fn): Likewise.
5679 (gimple_call_set_fndecl): Likewise.
5680 (gimple_call_set_internal_fn): New function.
5681 (gimple_call_addr_fndecl): Handle null functions.
5682 (gimple_call_return_type): Likewise null types.
5683 * gimple.c (gimple_build_call_internal_1): New function.
5684 (gimple_build_call_internal): Likewise.
5685 (gimple_build_call_internal_vec): Likewise.
5686 (gimple_call_same_target_p): Likewise.
5687 (gimple_call_flags): Handle calls to internal functions.
5688 (gimple_call_fnspec): New function.
5689 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5690 (gimple_has_side_effects): Handle null functions.
5691 (gimple_rhs_has_side_effects): Likewise.
5692 (gimple_call_copy_skip_args): Handle calls to internal functions.
5693 * cfgexpand.c (expand_call_stmt): Likewise.
5694 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5695 * gimple-fold.c (gimple_fold_call): Handle null functions.
5696 (gimple_fold_stmt_to_constant_1): Don't fold
5697 calls to internal functions.
5698 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5699 functions.
5700 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5701 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5702 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5703 (do_warn_unused_result): Likewise.
5704 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5705 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5706 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5707 the target of a call.
5708 (initialize_hash_element): Update accordingly.
5709 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5710 (iterative_hash_hashable_expr): Handle calls to internal functions.
5711 (print_expr_hash_elt): Likewise.
5712 * tree-ssa-pre.c (can_value_number_call): Likewise.
5713 (eliminate): Handle null functions.
5714 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5715 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5716 (find_func_aliases): Likewise.
5717 * value-prof.c (gimple_ic_transform): Likewise.
5718 (gimple_indirect_call_to_profile): Likewise.
5719 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5720 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5721
5722 2011-04-19 Jan Hubicka <jh@suse.cz>
5723
5724 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5725 * ipa-inline.c (inline_small_functions): Compute summaries first,
5726 populate heap later.
5727
5728 2011-04-19 Jan Hubicka <jh@suse.cz>
5729
5730 * cgraph.h (save_inline_function_body): Remove.
5731 * ipa-inline-transform.c: New file, broke out of...
5732 * ipa-inline.c: ... this one; Update toplevel comment.
5733 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5734 make global.
5735 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5736 (cgraph_mark_inline_edge): Rename to inline_call; move to
5737 ipa-inline-transform.c.
5738 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5739 move to ipa-inline-transform.c
5740 (recursive_inlining, inline_small_functions, flatten_function,
5741 ipa_inline, inline_always_inline_functions,
5742 early_inline_small_functions): Update.
5743 (inline_transform): Move to ipa-inline-transform.c.
5744 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5745 Declare.
5746 * Makefile.in (ipa-inline-transform.o): New file.
5747 * cgraphunit.c (save_inline_function_body): Move to
5748 ipa-inline-transform.c
5749
5750 2011-04-19 DJ Delorie <dj@redhat.com>
5751
5752 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5753 registers if we already know there aren't any.
5754 (m32c_emit_epilogue): Don't emit a barrier here.
5755 (m32c_emit_eh_epilogue): Likewise.
5756 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5757 operands at expand time.
5758 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5759 int" wchar type.
5760 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5761 duplicates. Provide aliases instead.
5762 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5763 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5764 the compiler.
5765
5766 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5767
5768 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5769 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5770 (general_or_i64_p, sparc_register_move_cost): New function.
5771
5772 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5773
5774 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5775 Add lynx, mipssde. Sort table.
5776
5777 2011-04-19 Xinliang David Li <davidxl@google.com>
5778
5779 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5780 not negative.
5781
5782 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5783
5784 PR target/48678
5785 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5786 is a SUBREG with non-MODE_INT mode inside of it.
5787
5788 2011-04-19 Martin Jambor <mjambor@suse.cz>
5789
5790 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5791 also according to actual contants.
5792 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5793 (gimple_fold_call): Use it.
5794 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5795
5796 2011-04-19 Martin Jambor <mjambor@suse.cz>
5797
5798 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5799 non-pointer assignments.
5800
5801 2011-04-19 Martin Jambor <mjambor@suse.cz>
5802
5803 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5804 account anc_offset and otr_type from the indirect edge info.
5805 * ipa-prop.c (get_ancestor_addr_info): New function.
5806 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5807 get_ancestor_addr_info, call it.
5808 (ipa_note_param_call): Do not initialize information about polymorphic
5809 calls, return the indirect call graph edge. Remove the last
5810 parameter, adjust all callers.
5811 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5812 parameters. Initialize polymorphic information in the indirect edge.
5813
5814 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5815
5816 PR lto/48148
5817 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5818 the types if they have different enumeration identifiers.
5819
5820 2011-04-19 Jan Hubicka <jh@suse.cz>
5821
5822 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5823 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5824 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5825 (optimize_function_for_size_p) ... here.
5826
5827 2011-04-19 Richard Guenther <rguenther@suse.de>
5828
5829 PR lto/48207
5830 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5831 langhook.
5832
5833 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5834
5835 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5836 if DECL_NO_INLINE_WARNING_P is set on the function.
5837
5838 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5839
5840 PR fortran/47976
5841 * reload1.c (inc_for_reload): Return void. All callers changed.
5842 (emit_input_reload_insns): Don't try to delete previous output
5843 reloads to a register, or record spill_reg_store for autoincs.
5844
5845 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5846
5847 * gengtype.h: Updated copyright year.
5848 (struct input_file_st): Add inpisplugin field.
5849 (type_fileloc): New function.
5850 * gengtype.c
5851 (write_typed_struct_alloc_def): Add gcc_assert.
5852 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5853 (write_typed_alloc_defns): Don't output for plugin files.
5854 (input_file_by_name): Clear inpisplugin field.
5855 (main): Set inpisplugin field for plugin files.
5856
5857 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5858
5859 * gengtype-state.c (string_eq): New.
5860 (read_state): Use string_eq instead of strcmp when creating the
5861 state_ident_tab.
5862
5863 2011-04-19 Wei Guozhi <carrot@google.com>
5864
5865 PR target/47855
5866 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5867 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5868 linkage.
5869 * config/arm/constraints.md (Uu): New constraint.
5870 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5871
5872 2011-04-19 Tristan Gingold <gingold@adacore.com>
5873
5874 * config.gcc (-*-*-*vms): Added.
5875 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5876 definitions moved.
5877 * config/vms/vms-ld.c: New file.
5878 * config/vms/vms-ar.c: New file.
5879 * config/vms/t-vmsnative: New file.
5880
5881 2011-04-18 Xinliang David Li <davidxl@google.com>
5882
5883 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5884
5885 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5886
5887 PR middle-end/48661
5888 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5889 if TREE_TYPE (v) is non-NULL.
5890
5891 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5892 gimple_get_virt_mehtod_for_binfo.
5893 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5894 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5895 callers.
5896 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5897
5898 2011-04-18 Michael Matz <matz@suse.de>
5899 Steve Ellcey <sje@cup.hp.com>
5900
5901 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5902 use its mode as source mode if it isn't VOIDmode.
5903
5904 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5905
5906 * doc/passes.texi: Fill crossref nodes.
5907
5908 2011-04-18 Jim Meyering <meyering@redhat.com>
5909
5910 Fix doubled-word typos in comments and strings
5911 * config/alpha/vms-unwind.h: s/for for/for/
5912 * config/arm/unwind-arm.h: Likewise.
5913 * config/microblaze/microblaze.c: Likewise.
5914 * config/sh/constraints.md: s/in in/in/
5915 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5916
5917 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5918
5919 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5920 (AVX_FLOAT_MODE_P): Ditto.
5921 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5922 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5923 (AVX_VEC_FLOAT_MODE_P): Ditto.
5924 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5925 (UNSPEC_MASKSTORE): Ditto.
5926 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5927 Merge from <sse>_movmsk<ssemodesuffix> and
5928 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5929 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5930 iterator.
5931 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5932 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5933 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5934
5935 2011-04-18 Jan Hubicka <jh@suse.cz>
5936
5937 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5938
5939 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5940 (want_inline_function_called_once_p): Break out the logic from
5941 ipa_inline.
5942 (edge_badness): Ensure that profile is not misupdated.
5943 (lookup_recursive_calls): Prioritize by call frequencies.
5944 (inline_small_functions): Move program size estimates here;
5945 actually process whole queue even when unit growth has been
5946 met. (to properly compute inline_failed reasons and for the
5947 case unit size decrease.) Revisit comments on recursive inlining.
5948 (ipa_inline): Remove unit summary code; first inline hot calls
5949 of functions called once, cold calls next.
5950 (order, nnodes): Remove unused variables.
5951 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5952 (GTFILES): Remove ipa-inline.c
5953 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5954
5955 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5956
5957 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5958
5959 2011-04-18 Jie Zhang <jie@codesourcery.com>
5960 Richard Earnshaw <rearnsha@arm.com>
5961
5962 * arm.c (neon_builtin_type_bits): Remove.
5963 (typedef enum neon_builtin_mode): New.
5964 (T_MAX): Don't define.
5965 (typedef enum neon_builtin_datum): Remove bits, codes[],
5966 num_vars and base_fcode. Add mode, code and fcode.
5967 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5968 VAR10): Change accordingly.
5969 (neon_builtin_data[]): Change accordingly
5970 (arm_init_neon_builtins): Change accordingly.
5971 (neon_builtin_compare): Remove.
5972 (locate_neon_builtin_icode): Remove.
5973 (arm_expand_neon_builtin): Change accordingly.
5974
5975 * arm.h (enum arm_builtins): Move to ...
5976 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5977
5978 * arm.c (arm_builtin_decl): Declare.
5979 (TARGET_BUILTIN_DECL): Define.
5980 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5981 (arm_builtin_decls[]): New.
5982 (arm_init_neon_builtins): Store builtin declarations in
5983 arm_builtin_decls[].
5984 (arm_init_tls_builtins): Likewise.
5985 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5986 (arm_builtin_decl): New.
5987
5988 2011-04-18 Richard Guenther <rguenther@suse.de>
5989
5990 * tree.c (upper_bound_in_type): Build properly canonicalized
5991 INTEGER_CSTs.
5992 (lower_bound_in_type): Likewise.
5993
5994 2011-04-18 Richard Guenther <rguenther@suse.de>
5995
5996 * gimple.h (gimple_call_addr_fndecl): New function.
5997 (gimple_call_fndecl): Use it.
5998 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5999 for direct calls.
6000 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6001 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6002
6003 2011-04-18 Richard Guenther <rguenther@suse.de>
6004
6005 PR middle-end/48650
6006 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6007
6008 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6009
6010 PR lto/48492
6011 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6012 DECL_IN_CONSTANT_POOL without RTL.
6013
6014 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6015 Ira Rosen <ira.rosen@linaro.org>
6016
6017 PR target/48252
6018 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6019 to match neon_vzip/vuzp/vtrn_internal.
6020 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6021 outputs explicitly dependent on both inputs.
6022 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6023
6024 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6025
6026 PR tree-optimization/48616
6027 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6028 whether the shift is by scalar or vector based on whether all SLP
6029 scalar stmts have the same rhs.
6030
6031 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6032
6033 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6034 memory operands.
6035
6036 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6037
6038 PR target/43700
6039 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6040 registers.
6041
6042 2011-04-17 Jan Hubicka <jh@suse.cz>
6043
6044 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6045 * cgrpahunit.c (cgraph_finalize_function): Do not set
6046 finalized_by_frontend.
6047 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6048 finalized_by_frontend.
6049
6050 2011-04-17 Jan Hubicka <jh@suse.cz>
6051
6052 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6053 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6054 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6055 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6056 method.
6057 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6058 gimple-fold.c
6059 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6060
6061 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6062
6063 PR lto/48538
6064 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6065 is non-null before accessing it.
6066 (input_cgraph): Remove trailing spaces.
6067
6068 2011-04-17 Revital Eres <revital.eres@linaro.org>
6069
6070 * params.def (sms-min-sc): New param flag.
6071 * modulo-sched.c (sms_schedule): Use it.
6072 * doc/invoke.texi (sms-min-sc): Document it.
6073
6074 2011-04-17 Jan Hubicka <jh@suse.cz>
6075
6076 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6077 present, also set gimple_call_set_cannot_inline.
6078 * ipa-inline.c: Update toplevel comment.
6079 (MAX_TIME): Remove.
6080 (cgraph_clone_inlined_nodes): Fix linebreaks.
6081 (cgraph_check_inline_limits): Restructure to ...
6082 (caller_growth_limits): ... this one; be more tolerant
6083 on growth in nested inline chains; add explanatory comment;
6084 fix stack accounting thinko introduced by previous patch.
6085 (cgraph_default_inline_p): Remove.
6086 (report_inline_failed_reason): New function.
6087 (can_inline_edge_p): New function.
6088 (can_early_inline_edge_p): New function.
6089 (leaf_node_p): Move upwards in file.
6090 (want_early_inline_function_p): New function.
6091 (want_inline_small_function_p): New function.
6092 (want_inline_self_recursive_call_p): New function.
6093 (cgraph_edge_badness): Rename to ...
6094 (edge_badness) ... this one; fix linebreaks.
6095 (update_edge_key): Update call of edge_baddness; add
6096 detailed dump about queue updates.
6097 (update_caller_keys): Use can_inline_edge_p and
6098 want_inline_small_function_p.
6099 (cgraph_decide_recursive_inlining): Rename to...
6100 (recursive_inlining): Use can_inline_edge_p and
6101 want_inline_self_recursive_call_p; simplify and remove no longer
6102 valid FIXME.
6103 (cgraph_set_inline_failed): Remove.
6104 (add_new_edges_to_heap): Use can_inline_edge_p and
6105 want_inline_small_function_p.
6106 (cgraph_decide_inlining_of_small_functions): Rename to ...
6107 (inline_small_functions): ... this one; cleanup; use
6108 can/want predicates; cleanup debug ouput; work edges till fibheap
6109 is exhausted and do not stop once unit growth is reached; remove
6110 later loop processing remaining edges.
6111 (cgraph_flatten): Rename to ...
6112 (flatten_function): ... this one; use can_inline_edge_p
6113 and can_early_inline_edge_p predicates.
6114 (cgraph_decide_inlining): Rename to ...
6115 (ipa_inline): ... this one; remove unreachable nodes before
6116 inlining functions called once; simplify the pass.
6117 (cgraph_perform_always_inlining): Rename to ...
6118 (inline_always_inline_functions): ... this one; use
6119 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6120 (cgraph_decide_inlining_incrementally): Rename to ...
6121 (early_inline_small_functions): ... this one; simplify
6122 using new predicates; cleanup; make dumps prettier.
6123 (cgraph_early_inlining): Rename to ...
6124 (early_inliner): newer inline regular functions into always-inlines;
6125 fix updating of call stmt summaries.
6126 (pass_early_inline): Update for new names.
6127 (inline_transform): Fix formating.
6128 (gate_cgraph_decide_inlining): Rename to ...
6129 (pass_ipa_inline): ... this one.
6130 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6131 * ipa-inline-analysis.c (dump_inline_summary): Update.
6132 (compute_inline_parameters): Do not compute disregard_inline_limits;
6133 look for mismatching arguments.
6134 (estimate_growth): Fix handlig of non-trivial self recursion.
6135 (inline_read_summary): Do not read info->disregard_inline_limits.
6136 (inline_write_summary): Do not write info->disregard_inline_limits.
6137 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6138 and move all checks into can_inline_edge_p predicate; re-enable code
6139 comparing optimization levels.
6140 (expand_call_inline): Do not test inline_forbidden_into_p.
6141 * Makefile.in (ipa-inline.o): Update arguments.
6142
6143 2011-04-17 Revital Eres <revital.eres@linaro.org>
6144
6145 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6146
6147 2011-04-17 Revital Eres <revital.eres@linaro.org>
6148
6149 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6150
6151 2011-04-17 Michael Matz <matz@suse.de>
6152
6153 PR tree-optimization/48622
6154 PR lto/48645
6155 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6156 in same order as they're written.
6157
6158 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6159
6160 * config/pa/predicates.md: Reorganize and simplify predicates.
6161 Eliminate duplicate code checks.
6162 (arith_operand): Rename to arith14_operand
6163 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6164 * config/pa/pa.md: Use renamed operands.
6165 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6166 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6167 arith11_operand, adddi3_operand, indexed_memory_operand,
6168 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6169 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6170 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6171 move_dest_operand, move_src_operand, prefetch_cc_operand,
6172 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6173 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6174 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6175 div_operand, int5_operand, movb_comparison_operator,
6176 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6177 arith_double_operand, ireg_operand, lhs_lshift_operand,
6178 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6179 integer_store_memory_operand): Likewise.
6180 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6181 (integer_store_memory_operand, read_only_operand,
6182 function_label_operand, borx_reg_operand,
6183 non_hard_reg_operand): Likewise.
6184 (eq_neq_comparison_operator): Delete unused operator.
6185 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6186 function_label_operand.
6187 (emit_move_sequence): Likewise.
6188
6189 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6190
6191 * config/i386/sse.md (sseunpackmode): New mode attribute.
6192 (ssepackmode): Ditto.
6193 (vec_pack_trunc_<mode>): Macroize expander from
6194 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6195 (vec_unpacks_lo_<mode>): Macroize expander from
6196 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6197 (vec_unpacks_hi_<mode>): Macroize expander from
6198 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6199 (vec_unpacku_lo_<mode>): Macroize expander from
6200 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6201 (vec_unpacku_hi_<mode>): Macroize expander from
6202 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6203 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6204 ix86_expand_sse4_unpack.
6205 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6206
6207 2011-04-16 Jan Hubicka <jh@suse.cz>
6208
6209 * cgraphbuild.c: Include ipa-inline.h.
6210 (reset_inline_failed): Use initialize_inline_failed.
6211 * cgraph.c: Include ipa-inline.h.
6212 (cgraph_create_node_1): Do not initialize estimated_growth.
6213 (initialize_inline_failed): More to ipa-inline-analysis.c
6214 (dump_cgraph_node): Do not dump inline flags.
6215 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6216 and disregard_inline_limits flags.
6217 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6218 time, size, estimated_growth.
6219 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6220 Update.
6221 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6222 DECL_DISREGARD_INLINE_LIMITS.
6223 (cgraph_analyze_function): Do not initialize
6224 node->local.disregard_inline_limits.
6225 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6226 inlinable, versionable and disregard_inline_limits.
6227 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6228 cgraph_check_inline_limits, cgraph_default_inline_p,
6229 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6230 add_new_edges_to_heap): Update.
6231 (cgraph_decide_inlining_of_small_function): Update; set
6232 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6233 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6234 cgraph_decide_inlining_incrementally): Update.
6235 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6236 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6237 time, size and estimated_growth parameters.
6238 (estimate_edge_growth): Update.
6239 (initialize_inline_failed): Declare.
6240 * ipa-split.c: Include ipa-inline.h
6241 (execute_split_functions): Update.
6242 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6243 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6244 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6245 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6246 estimated_growth to INT_MIN.
6247 (inline_node_duplication_hook): Likewise.
6248 (dump_inline_summary): Dump new fields.
6249 (compute_inline_parameters): Update.
6250 (estimate_edge_time, estimate_time_after_inlining,
6251 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6252 inline_write_summary):
6253 (initialize_inline_failed): Move here from cgraph.c.
6254 * tree-sra.c: Include ipa-inline.h.
6255 (ipa_sra_preliminary_function_checks): Update.
6256 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6257 ipa-inline.h.
6258
6259 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6260
6261 * config/i386/sse.md (V16): New mode iterator.
6262 (VI1, VI8): Ditto.
6263 (AVXMODEQI, AVXMODEDI): Remove.
6264 (sse2, sse3): New mode attribute.
6265 (mov<mode>): Use V16 mode iterator.
6266 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6267 (push<mode>1): Use V16 mode iterator.
6268 (movmisalign<mode>): Ditto.
6269 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6270 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6271 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6272 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6273 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6274 avx_movdqu<avxmodesuffix>.
6275 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6276 *avx_movdqu<avxmodesuffix>.
6277 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6278 avx_lddqu<avxmodesuffix>.
6279 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6280 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6281 avx_movnt<AVXMODEDI:mode>.
6282 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6283 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6284
6285 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6286
6287 PR target/48629
6288 * haifa-sched.c (prune_ready_list, schedule_block): Use
6289 sched_pressure_p rather than flag_sched_pressure.
6290
6291 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6292
6293 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6294 cgraph_get_node instead of cgraph_get_create_node.
6295
6296 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6297
6298 * cfgexpand.c (expand_debug_expr): Use
6299 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6300
6301 2011-04-15 Michael Matz <matz@suse.de>
6302
6303 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6304 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6305 * function.c (gimplify_parameters): Ditto.
6306 * gimplify.c (gimplify_vla_decl): Ditto.
6307
6308 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6309 (gimple_call_set_alloca_for_var): New inline function.
6310 (gimple_call_alloca_for_var_p): Ditto.
6311 * gimple.c (gimple_build_call_from_tree): Remember
6312 CALL_ALLOCA_FOR_VAR_P state.
6313 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6314
6315 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6316 calls if they were for VLA objects.
6317
6318 2011-04-15 Martin Jambor <mjambor@suse.cz>
6319
6320 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6321 of ADR_EXPRs.
6322
6323 2011-04-15 Martin Jambor <mjambor@suse.cz>
6324
6325 PR middle-end/48601
6326 * tree-emutls.c (lower_emutls_function_body): Call
6327 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6328 result is non-NULL.
6329
6330 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6331
6332 * c-decl.c (detect_field_duplicates): Call
6333 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6334
6335 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6336
6337 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6338 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6339 * ipa-pure-const.c (check_stmt): Call it.
6340 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6341
6342 2011-04-15 Richard Guenther <rguenther@suse.de>
6343
6344 PR tree-optimization/48290
6345 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6346 Properly decide inhibiting propagation based on the valueized
6347 operand. Do loop-closed SSA form preserving here ...
6348 (init_copy_prop): ... not here.
6349
6350 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6351
6352 PR target/48612
6353 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6354 (*ieee_smax<mode>3): Likewise.
6355
6356 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6357
6358 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6359 Replace match_operand with match_dup for the third operand in
6360 these expanders.
6361
6362 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6363
6364 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6365 to track processing of conditionals. Update all callers.
6366 (try_combine, simplify_if_then_else): Update.
6367
6368 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6369
6370 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6371 -fsched-pressure.
6372
6373 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6374
6375 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6376 instead of match_operand for operand 3.
6377
6378 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6379
6380 * recog.h (insn_operand_data): Add an "allows_mem" field.
6381 * genoutput.c (output_operand_data): Initialize it.
6382 * optabs.c (maybe_legitimize_operand_same_code): New function.
6383 (maybe_legitimize_operand): Use it when matching the original
6384 op->value.
6385
6386 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6387
6388 * gimplify.c: Fix issues in comments throughout.
6389 (voidify_wrapper_expr): Fix long line.
6390 (build_stack_save_restore): Likewise.
6391 (gimplify_loop_expr): Likewise.
6392 (gimplify_compound_lval): Likewise.
6393 (gimplify_init_ctor_eval): Likewise.
6394 (gimplify_modify_expr_rhs): Likewise.
6395 (omp_notice_threadprivate_variable): Likewise.
6396
6397 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6398
6399 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6400 original one if this is not a builtin function.
6401
6402 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6403
6404 PR target/48605
6405 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6406 offset it as needed based on top 2 bits in operands[3], change
6407 MEM mode to SFmode and mask those 2 bits away from operands[3].
6408
6409 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6410
6411 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6412 change from objc_declare_protocols() to objc_declare_protocol().
6413
6414 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6415
6416 * config/i386/sse.md (sse4_1): New mode attribute.
6417 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6418 avx_blend<ssemodesuffix><avxmodesuffix> and
6419 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6420 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6421 avx_blendv<ssemodesuffix><avxmodesuffix> and
6422 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6423 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6424 avx_dp<ssemodesuffix><avxmodesuffix> and
6425 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6426 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6427 (sse4_1_packusdw): Merge with *avx_packusdw.
6428 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6429 (sse4_1_pblendw): Merge with *avx_pblendw.
6430 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6431 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6432 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6433 VF mode iterator.
6434 (sse4_1_round<ssescalarmodesuffix>): Merge with
6435 *avx_round<ssescalarmodesuffix>.
6436 (aesenc): Merge with *avx_aesenc.
6437 (aesenclast): Merge with *avx_aesenclast.
6438 (aesdec): Merge with *avx_aesdec.
6439 (aesdeclast): Merge with *avx_aesdeclast.
6440 (pclmulqdq): Merge with *pclmulqdq.
6441 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6442 New predicate.
6443 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6444
6445 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6446
6447 PR middle-end/48608
6448 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6449 (align_local_variable): This. Update DECL_ALIGN.
6450 (add_stack_var): Updated.
6451 (expand_one_stack_var): Likewise.
6452
6453 2011-04-14 Richard Guenther <rguenther@suse.de>
6454
6455 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6456 Remove.
6457 (dse_initialize_block_local_data, dse_leave_block,
6458 record_voperand_set, get_stmt_uid): Likewise.
6459 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6460 (dse_optimize_stmt): Remove voperand set handling code.
6461 Simplify and improve to handle any kind of killing stmt.
6462 (dse_record_phi): Remove.
6463 (dse_enter_block): Simplify.
6464 (tree_ssa_dse): Likewise.
6465 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6466
6467 2011-04-14 Jan Hubicka <jh@suse.cz>
6468
6469 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6470 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6471 (cgraph_local_info): Remove inline_summary.
6472 * ipa-cp.c: Include ipa-inline.h.
6473 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6474 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6475 accesor.
6476 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6477 (input_overwrite_node): Do not set inline summary.
6478 (input_node): Do not stream inline summary.
6479 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6480 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6481 growth; we do not have inline parameters computed for that anyway.
6482 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6483 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6484 (inline_summary_t): New type and VECtor.
6485 (debug_inline_summary, dump_inline_summaries): Declare.
6486 (inline_summary): Use VOCtor.
6487 (estimate_edge_growth): Kill hack computing call stmt size directly.
6488 * lto-section-in.c (lto_section_name): Add inline section.
6489 * ipa-inline-analysis.c: Include lto-streamer.h
6490 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6491 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6492 (inline_summary_vec): Define.
6493 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6494 dump_inline_summaries): New functions.
6495 (estimate_function_body_sizes): Properly compute size/time of outgoing
6496 calls.
6497 (compute_inline_parameters): Alloc inline_summary; do not compute
6498 size/time of incomming calls.
6499 (estimate_edge_time): Avoid missing time summary hack.
6500 (inline_read_summary): Read inline summary info.
6501 (inline_write_summary): Write inline summary info.
6502 (inline_free_summary): Free all hooks and inline summary vector.
6503 * lto-streamer.h: Add LTO_section_inline_summary section.
6504 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6505 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6506
6507 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6508
6509 * tree-vectorizer.h (vect_strided_store_supported): Add a
6510 HOST_WIDE_INT argument.
6511 (vect_strided_load_supported): Likewise.
6512 (vect_permute_store_chain): Return void.
6513 (vect_transform_strided_load): Likewise.
6514 (vect_permute_load_chain): Delete.
6515 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6516 count argument. Check that the count is a power of two.
6517 (vect_strided_load_supported): Likewise.
6518 (vect_permute_store_chain): Return void. Update after above changes.
6519 Assert that the access is supported.
6520 (vect_permute_load_chain): Likewise.
6521 (vect_transform_strided_load): Return void.
6522 * tree-vect-stmts.c (vectorizable_store): Update calls after
6523 above interface changes.
6524 (vectorizable_load): Likewise.
6525 (vect_analyze_stmt): Don't check for strided powers of two here.
6526
6527 2011-04-14 Richard Guenther <rguenther@suse.de>
6528
6529 PR tree-optimization/48590
6530 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6531 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6532 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6533 BUILT_IN_STACK_SAVE.
6534 * tree-ssa-dce.c (propagate_necessity): Handle
6535 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6536
6537 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6538
6539 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6540 objc_declare_class.
6541
6542 2011-04-14 Richard Guenther <rguenther@suse.de>
6543
6544 * tree.h (get_object_alignment_1): Declare.
6545 * builtins.c (get_object_alignment_1): Split out worker from ...
6546 (get_object_alignment): ... here.
6547 * fold-const.c (get_pointer_modulus_and_residue): Use
6548 get_object_alignment_1.
6549
6550 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6551
6552 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6553 type parameter.
6554 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6555 parameter. Generalise code to handle arrays as well as vectors.
6556 (vect_setup_realignment): Update accordingly.
6557 * tree-vect-stmts.c (vectorizable_store): Likewise.
6558 (vectorizable_load): Likewise.
6559
6560 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6561
6562 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6563 within the per-copy loop.
6564
6565 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6566
6567 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6568 in the dump file.
6569
6570 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6571
6572 * doc/options.texi (Negative): Explicitly mention that the
6573 Negative chain must be circular.
6574
6575 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6576
6577 * function.h (block_chainon): Declare.
6578 * function.c (block_chainon): Define.
6579
6580 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6581 Eric Weddington <eric.weddington@atmel.com>
6582 Georg-Johann Lay <avr@gjlay.de>
6583
6584 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6585 New Includes
6586 (avr_init_builtins, avr_expand_builtin,
6587 avr_expand_delay_cycles, avr_expand_unop_builtin,
6588 avr_expand_binop_builtin ): New functions.
6589 (avr_builtin_id): New enum
6590 (struct avr_builtin_description): New struct
6591 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6592 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6593
6594 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6595 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6596 UNSPECV_DELAY_CYCLES): new enumeration values
6597 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6598 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6599 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6600 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6601 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6602 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6603 "fmulsu"): New insns
6604
6605 * config/avr/avr-c.c: fix line endings
6606 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6607 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6608 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6609 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6610 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6611
6612 * doc/extend.texi (AVR Built-in Functions): New node
6613 (Target Builtins): Add documentation of AVR
6614 built-in functions.
6615
6616 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6617
6618 PR target/44643
6619 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6620 alone. Error if non-const data has attribute progmem.
6621
6622 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6623
6624 * tree.h (struct tree_constructor): Include tree_typed instead of
6625 tree_common.
6626 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6627 TS_TYPED instead of TS_COMMON.
6628
6629 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6630
6631 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6632 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6633 (sse2_psadbw): Merge with *avx_psadbw.
6634 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6635 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6636 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6637 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6638 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6639 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6640 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6641 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6642 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6643 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6644 (ssse3_palignrti): Merge with *avx_palignrti.
6645
6646 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6647
6648 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6649 * tree-ssanames.c (fini_ssanames): VEC_free it.
6650 (make_ssa_name_fn): Update for VECness of free_ssanames.
6651 (release_ssa_name, release_dead_ssa_names): Likewise.
6652 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6653 tree_common.
6654 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6655 TS_TYPED instead of TS_COMMON.
6656
6657 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6658
6659 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6660 statistics_counter_event.
6661 * tree-ssa-copyrename.c (stats): Define.
6662 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6663 statistics_counter_event.
6664 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6665 (bswap_stats, widen_mul_stats): Define.
6666 (insert_reciprocals): Increment rdivs_inserted.
6667 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6668 rfuncs_inserted. Add calls to statistics_counter_event.
6669 (execute_cse_sincos_1): Increment inserted.
6670 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6671 statistics_counter_event.
6672 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6673 of bswap_stats. Add calls to statistics_counter_event.
6674 (convert_mult_to_widen): Increment widen_mults_inserted.
6675 (convert_plusminus_to_widen): Increment maccs_inserted.
6676 (convert_mult_to_fma): Increment fmas_inserted.
6677 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6678 calls to statistics_counter_event.
6679
6680 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6681
6682 PR rtl-optimization/48455
6683 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6684 `temp_costs->mem_cost'.
6685
6686 2011-04-13 Jan Hubicka <jh@suse.cz>
6687
6688 * ipa-inline.h: New file.
6689 * ipa-inline-analysis.c: New file. Broken out of ...
6690 * ipa-inline.c: ... this file; update toplevel comment;
6691 include ipa-inline.h
6692 (inline_summary): Move to ipa-inline.h
6693 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6694 ipa-inline-analysis.c.
6695 (cgraph_estimate_time_after_inlining): Rename to
6696 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6697 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6698 to estimate_edge_growth.
6699 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6700 rename to estimate_size_after_inlining.
6701 (cgraph_mark_inline_edge): Update for new naming convention.
6702 (cgraph_check_inline_limits): Likewise.
6703 (cgraph_edge_badness): Likewise.
6704 (cgraph_decide_recursive_inlining): Likewise.
6705 (cgraph_decide_inlining_of_small_functions): Likewise.
6706 (cgraph_decide_inlining_incrementally): Likewise.
6707 (cgraph_estimate_growth): Rename to estimate_growth; move to
6708 ipa-inline-analysis.c.
6709 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6710 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6711 (compute_inline_parameters): Likewise.
6712 (compute_inline_parameters_for_current): Likewise.
6713 (pass_inline_parameters): Likewise.
6714 (inline_indirect_intraprocedural_analysis): Likewise.
6715 (analyze_function): Rename to inline_analyze_function; likewise.
6716 (add_new_function): Move to ipa-inline-analysis.c.
6717 (inline_generate_summary): Likewise.
6718 (inline_read_summary): Likewise.
6719 (inline_write_summary): Likewise.
6720 * Makefile.in (ipa-inline-analysis.c): New file.
6721
6722 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6723
6724 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6725 * configure: Regenerate.
6726
6727 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6728
6729 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6730 instead of tree_common.
6731 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6732 Likewise.
6733 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6734 TS_TYPED rather than TS_COMMON.
6735 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6736
6737 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6738
6739 PR target/45263
6740 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6741 r20 around calls of __tablejump_elpm__
6742
6743 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6744
6745 PR middle-end/48591
6746 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6747 NULL.
6748 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6749
6750 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6751
6752 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6753 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6754 (cfi_vec): New typedef.
6755 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6756 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6757 (cie_cfi_vec): New static variable.
6758 (cie_cfi_head): Delete.
6759 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6760 declaration changed. Use vector rather than list operations.
6761 (new_cfi): Don't initialize the dw_cfi_next field.
6762 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6763 rather than list operations.
6764 (lookup_cfa): Use vector rather than list operations.
6765 (output_cfis): New argument upto. Accept a cfi_vec rather than
6766 a dw_cfi_ref list head as argument. All callers changed.
6767 Iterate over the vector using upto as a maximum index.
6768 (output_all_cfis): New static function.
6769 (output_fde): Use vector rather than list operations. Use the
6770 new upto argument for output_cfis rather than manipulating a
6771 list.
6772 (dwarf2out_begin_prologue): Change initializations to match
6773 new struct members.
6774 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6775 from the vector length rather than searching for the end of a list.
6776 Use output_all_cfis.
6777 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6778
6779 2011-04-13 Nick Clifton <nickc@redhat.com>
6780
6781 * config/rx/rx.md (movmemsi): Do not use this pattern when
6782 volatile pointers are involved.
6783
6784 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6785
6786 * config/i386/sse.md (pinsrbits): Remove.
6787 (sse2_packsswb): Merge with *avx_packsswb.
6788 (sse2_packssdw): Merge with *avx_packssdw.
6789 (sse2_packuswb): Merge with *avx_packuswb.
6790 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6791 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6792 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6793 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6794 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6795 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6796 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6797 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6798 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6799 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6800 (sse2_loadld): Merge with *avx_loadld.
6801 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6802 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6803 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6804 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6805 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6806
6807 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6808
6809 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6810 calling TREE_CHAIN.
6811 * print-tree.c (print_node): Likewise.
6812 * tree-inline.c (copy_tree_r): Likewise.
6813 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6814 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6815 instead of TS_COMMON.
6816 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6817 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6818 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6819 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6820 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6821 ...and these...
6822 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6823 * tree.h: ...here.
6824 (TREE_CHAIN): Check for a TS_COMMON structure.
6825 (TREE_TYPE): Check for a TS_TYPED structure.
6826
6827 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6828
6829 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6830 cgraph_get_create_node instead of cgraph_node.
6831
6832 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6833
6834 * c-parser.c (c_parser_initelt): Updated call to
6835 objc_build_message_expr.
6836 (c_parser_postfix_expression): Likewise.
6837
6838 2011-04-12 Kai Tietz <ktietz@redhat.com>
6839
6840 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6841 MASK_MS_BITFIELD_LAYOUT bit.
6842
6843 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6844
6845 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6846 assert it is always true.
6847 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6848 moves.
6849
6850 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6851
6852 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6853 compiling Objective-C to be more efficient.
6854
6855 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6856
6857 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6858 argv_copied.
6859
6860 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6861
6862 * recog.h, genoutput.c, optabs.c: Revert last patch.
6863
6864 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6865
6866 PR target/48090
6867 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6868
6869 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6870
6871 * recog.h (insn_operand_data): Add an "allows_mem" field.
6872 * genoutput.c (output_operand_data): Initialize it.
6873 * optabs.c (maybe_legitimize_operand_same_code): New function.
6874 (maybe_legitimize_operand): Use it when matching the original
6875 op->value.
6876
6877 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6878
6879 * genpreds.c (process_define_predicate): Move most processing
6880 to gensupport.c. Continue to validate the expression.
6881 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6882 (process_define_predicate): Move processing to gensupport.c.
6883 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6884 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6885 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6886 argument.
6887 (valid_predicate_name_p): New function, split out from old
6888 genpreds.c:process_define_predicate.
6889 (process_define_predicate): New function, combining code from
6890 old genpreds.c and genrecog.c functions.
6891 (process_rtx): Call it for DEFINE_PREDICATE and
6892 DEFINE_SPECIAL_PREDICATE.
6893
6894 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6895
6896 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6897 size of a '%A' memory reference.
6898 (T_DREG, T_QREG): New neon_builtin_type_bits.
6899 (arm_init_neon_builtins): Assert that the load and store operands
6900 are neon_struct_operands.
6901 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6902 (NEON_ARG_MEMORY): New builtin_arg.
6903 (neon_dereference_pointer): New function.
6904 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6905 Handle NEON_ARG_MEMORY.
6906 (arm_expand_neon_builtin): Update after above interface changes.
6907 Use NEON_ARG_MEMORY for loads and stores.
6908 * config/arm/predicates.md (neon_struct_operand): New predicate.
6909 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6910 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6911 (V_four_elem): Tweak formatting.
6912 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6913 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6914 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6915 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6916 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6917 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6918 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6919 Use %A in the output template.
6920 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6921 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6922 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6923 the width of the memory access. Remove post-increment.
6924 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6925
6926 2011-04-12 Nick Clifton <nickc@redhat.com>
6927
6928 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6929 instruction for interrupt handlers if the target is the basic V850
6930 architecture.
6931 (expand_epilogue): Likewise.
6932
6933 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6934
6935 PR rtl-optimization/48549
6936 * combine.c (propagate_for_debug): Also stop after BB_END of
6937 this_basic_block. Process LAST and just stop processing after it.
6938 (combine_instructions): If last_combined_insn has been deleted,
6939 set last_combined_insn to its PREV_INSN.
6940
6941 2011-04-12 Richard Guenther <rguenther@suse.de>
6942
6943 PR tree-optimization/46076
6944 * gimple.h (struct gimple_statement_call): Add fntype field.
6945 (gimple_call_fntype): Adjust.
6946 (gimple_call_set_fntype): New function.
6947 * gimple.c (gimple_build_call_1): Set the call function type.
6948 * gimplify.c (gimplify_call_expr): Preserve the function
6949 type the frontend used for the call.
6950 (gimplify_modify_expr): Likewise.
6951 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6952 function type.
6953 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6954 function type.
6955 * tree-ssa.c (useless_type_conversion_p): Function pointer
6956 conversions are useless.
6957
6958 2011-04-12 Martin Jambor <mjambor@suse.cz>
6959
6960 * cgraph.h (cgraph_node): Remove function declaration.
6961 (cgraph_create_node): Declare.
6962 (cgraph_get_create_node): Likewise.
6963 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6964 Updated all callers.
6965 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6966 the decl does not already exist. Call cgraph_get_create_node instead
6967 of cgraph_node.
6968 (cgraph_get_create_node): New function.
6969 (cgraph_same_body_alias): Update comment.
6970 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6971 assert it does not return NULL.
6972 (cgraph_update_edges_for_call_stmt): Likewise.
6973 (cgraph_clone_edge): Likewise.
6974 (cgraph_create_virtual_clone): Likewise.
6975 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6976 instead of cgraph_node.
6977 (cgraph_add_new_function): Call cgraph_create_node or
6978 cgraph_get_create_node instead of cgraph_node.
6979 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6980 instead of cgraph_node.
6981 (record_eh_tables): Likewise.
6982 (mark_address): Likewise.
6983 (mark_load): Likewise.
6984 (build_cgraph_edges): Call cgraph_get_create_node instead
6985 of cgraph_node.
6986 (rebuild_cgraph_edges): Likewise.
6987 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6988 instead of cgraph_node.
6989 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6990 cgraph_node.
6991 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6992 cgraph_create_node instead of cgraph_node.
6993 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6994 of cgraph_node.
6995 * lto-cgraph.c (input_node): Likewise.
6996 * lto-streamer-in.c (input_function): Likewise.
6997 * varasm.c (mark_decl_referenced): Likewise.
6998 (assemble_alias): Likewise.
6999
7000 2011-04-12 Martin Jambor <mjambor@suse.cz>
7001
7002 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7003 instead of cgraph_node and assert it does not return NULL.
7004 * lto-streamer-in.c (lto_read_body): Likewise.
7005 * omp-low.c (new_omp_context): Likewise.
7006 (create_task_copyfn): Likewise.
7007 * tree-emutls.c (lower_emutls_function_body): Likewise.
7008 * matrix-reorg.c (transform_allocation_sites): Likewise.
7009
7010 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7011
7012 PR c/48552
7013 * c-typeck.c (build_asm_expr): Error out on attempts to use
7014 void type outputs or inputs for constraints that allow reg or
7015 don't allow memory.
7016
7017 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7018 Richard Earnshaw <rearnsha@arm.com>
7019
7020 PR target/48250
7021 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7022 to use sign-magnitude offsets. Reject unsupported unaligned
7023 cases. Add detailed description in comments.
7024 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7025 condition from TARGET_32BIT to TARGET_ARM.
7026
7027 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7028
7029 * tree.h (struct typed_tree): New.
7030 (struct tree_common): Include it instead of tree_base.
7031 (TREE_TYPE): Update for new location of type field.
7032 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7033 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7034 (union tree_node): Add typed field.
7035 * treestruct.def (TS_TYPED): New.
7036 * lto-streamer.c (check_handled_ts_structures): Handle it.
7037 * tree.c (MARK_TS_TYPED): New macro.
7038 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7039
7040 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7041
7042 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7043 (force_nonfallthru): Do not alter the loop nest if no basic block
7044 was created.
7045
7046 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7047
7048 * config/i386/sse.md (VI): New mode iterator.
7049 (SSEMODEI): Remove.
7050 (AVX256MODEI): Ditto.
7051 (AVXMODEF4P): Ditto.
7052 (avxvecpsmode): Ditto.
7053 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7054 (sse2_andnot<mode>3): New expander.
7055 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7056 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7057 (<any_logic:code><mode>3): Use VI mode iterator.
7058 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7059 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7060 (*andnottf3): Handle AVX three-operand constraints.
7061 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7062
7063 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7064 Robert Millan <rmh@gnu.org>
7065
7066 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7067 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7068 GNU_USER_DYNAMIC_LINKER64): Define.
7069 (REG_NAME): Don't undefine.
7070 (MD_UNWIND_SUPPORT): Undefine.
7071 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7072 (REG_NAME): Don't undefine.
7073 (MD_UNWIND_SUPPORT): Undefine.
7074 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7075
7076 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7077
7078 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7079 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7080
7081 2011-04-11 Xinliang David Li <davidxl@google.com>
7082
7083 * value-profile.c (check_ic_target): New function.
7084 (gimple_ic_transform): Sanity check indirect call target.
7085 * gimple-low.c (gimple_check_call_args): Interface change.
7086 (gimple_check_call_matching_types): New function.
7087 * tree-inline.c (tree_can_inline_p): Call new function.
7088
7089 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7090
7091 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7092 tree-pretty-print.h & realmpfr.h.
7093
7094 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7095
7096 PR middle-end/48464
7097 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7098 (setup_allocno_and_important_classes): Ditto.
7099
7100 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7101
7102 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7103 GNU_USER_DYNAMIC_LINKER.
7104 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7106 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7107 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7108 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7109 GNU_USER_TARGET_OS_CPP_BUILTINS.
7110 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7112 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7114 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7115 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7116 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7117 GNU_USER_TARGET_OS_CPP_BUILTINS.
7118 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7119 GNU_USER_DYNAMIC_LINKER.
7120 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7121 GNU_USER_TARGET_OS_CPP_BUILTINS.
7122 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7124 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7125 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7126 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7127 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7128 GNU_USER_DYNAMIC_LINKER64): Remove.
7129 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7131 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7132 GNU_USER_DYNAMIC_LINKER.
7133 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7134 GNU_USER_TARGET_OS_CPP_BUILTINS.
7135 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7136 GNU_USER_TARGET_OS_CPP_BUILTINS.
7137 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7138 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7139 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7140 GNU_USER_TARGET_OS_CPP_BUILTINS.
7141 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7142 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7143 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7144 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7145 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7146 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7147 GNU_USER_DYNAMIC_LINKER.
7148 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7149 GNU_USER_TARGET_OS_CPP_BUILTINS.
7150 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7151 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7152 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7153 GNU_USER_DYNAMIC_LINKER.
7154 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7156 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7158 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7159 GNU_USER_DYNAMIC_LINKER.
7160 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7161 GNU_USER_DYNAMIC_LINKERN32.
7162 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7163 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7164 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7165 GNU_USER_DYNAMIC_LINKER32.
7166 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7168 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7169 GNU_USER_DYNAMIC_LINKER.
7170 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7172 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7173 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7174 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7175 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7176 GNU_USER_DYNAMIC_LINKER32.
7177 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7178 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7179 GNU_USER_DYNAMIC_LINKER.
7180 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7181 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7182 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7183 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7184 GNU_USER_DYNAMIC_LINKER64.
7185 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7186 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7187 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7188 GNU_USER_DYNAMIC_LINKER.
7189 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7190 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7191 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7192 GNU_USER_DYNAMIC_LINKER.
7193 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7194 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7195 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7196 GNU_USER_DYNAMIC_LINKER32.
7197 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7198 GNU_USER_DYNAMIC_LINKER64.
7199 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7200 GNU_USER_DYNAMIC_LINKER64.
7201 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7203 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7204 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7205 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7206
7207 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7208
7209 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7210 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7211 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7212 GNU_USER_DYNAMIC_LINKER.
7213 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7214 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7215 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7216 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7217 GNU_USER_DYNAMIC_LINKER64.
7218 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7219 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7220 GNU_USER_LINK_EMULATION.
7221 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7222 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7223 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7224 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7225 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7226 CPP_SPEC, CC1_SPEC): Remove.
7227 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7228 (GNU_USER_DYNAMIC_LINKER): Define.
7229 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7230 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7231 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7232 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7233 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7234 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7235 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7236 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7237 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7238 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7239 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7240 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7241 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7242 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7243 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7244 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7245 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7246 GNU_USER_DYNAMIC_LINKER.
7247 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7248 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7249 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7250 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7251 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7252 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7253 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7254 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7255 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7256 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7257
7258 2011-04-11 Kai Tietz <ktietz@redhat.com>
7259
7260 PR target/9601
7261 PR target/11772
7262 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7263 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7264 comment.
7265 (ix86_is_msabi_thiscall): Removed.
7266 (ix86_is_type_thiscall): Likewise.
7267 (ix86_get_callcvt): New function.
7268 (ix86_comp_type_attributes): Simplify check.
7269 (ix86_function_regparm): Use ix86_get_callcvt for calling
7270 convention attribute checks.
7271 (ix86_return_pops_args): Likewise.
7272 (ix86_static_chain): Likewise.
7273 (x86_this_parameter): Likewise.
7274 (x86_output_mi_thunk): Likewise.
7275 (ix86_function_type_abi): Optimize check for types without attributes.
7276 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7277 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7278 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7279 by flag-values.
7280 (IX86_BASE_CALLCVT): Helper macro.
7281 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7282 Use ix86_get_callcvt for calling convention attribute checks and avoid
7283 symbol-decoration for stdcall in TARGET_RTD case.
7284 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7285 Likewise.
7286 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7287 for declaration.
7288
7289 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7290
7291 * config/i386/sse.md (VI_128): New mode iterator.
7292 (VI12_128): Rename from SSEMODE12.
7293 (VI14_128): Rename from SSEMODE14.
7294 (VI124_128): New mode iterator.
7295 (VI24_128): Rename from SSEMODE248.
7296 (VI248_128): Rename from SSEMODE248.
7297 (SSEMODE124C8): Remove.
7298 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7299 (*sse2_<plusminus_insn><mode>3): Merge with
7300 *avx_<plusminus_insn><mode>3.
7301 (*mulv8hi3): Merge with *avx_mulv8hi3.
7302 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7303 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7304 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7305 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7306 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7307 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7308 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7309 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7310 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7311 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7312 (*<smaxmin:code>v8hi3): Ditto.
7313 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7314 (*<smaxmin:code>v16qi3): Ditto.
7315 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7316 (*sse2_eq<mode>3): Ditto.
7317 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7318 (*sse2_gt<mode>3): Ditto.
7319 (vcondv2di): Split out of vcond<mode>.
7320 (vconduv2di): Split out of vcondu<mode>.
7321
7322 2011-04-11 Richard Guenther <rguenther@suse.de>
7323
7324 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7325 before calling tree_low_cst.
7326
7327 2011-04-11 Richard Guenther <rguenther@suse.de>
7328
7329 * stor-layout.c (layout_type): Compute all array index size operations
7330 in the original type.
7331 (initialize_sizetypes): Add comment.
7332 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7333
7334 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7335
7336 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7337
7338 2011-04-11 Martin Jambor <mjambor@suse.cz>
7339
7340 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7341 of cgraph_node, handle NULL return value.
7342 (cgraph_global_info): Likewise.
7343 (cgraph_rtl_info): Likewise.
7344 * tree-inline.c (estimate_num_insns): Likewise.
7345 * gimplify.c (unshare_body): Likewise.
7346 (unvisit_body): Likewise.
7347 (gimplify_body): Likewise.
7348 * predict.c (optimize_function_for_size_p): Likewise.
7349 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7350 (call_may_clobber_ref_p_1): Likewise.
7351 * varasm.c (function_section_1): Likewise.
7352 (assemble_start_function): Likewise.
7353
7354 2011-04-11 Martin Jambor <mjambor@suse.cz>
7355
7356 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7357 of cgraph_node.
7358 * final.c (rest_of_clean_state): Likewise.
7359 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7360 * passes.c (pass_init_dump_file): Likewise.
7361 (execute_all_ipa_transforms): Likewise.
7362 (function_called_by_processed_nodes_p): Likewise.
7363 * predict.c (maybe_hot_frequency_p): Likewise.
7364 (probably_never_executed_bb_p): Likewise.
7365 (compute_function_frequency): Likewise.
7366 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7367 (unnest_nesting_tree_1): Likewise.
7368 (lower_nested_functions): Likewise.
7369 * tree-optimize.c (execute_fixup_cfg): Likewise.
7370 (tree_rest_of_compilation): Likewise.
7371 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7372 * tree-sra.c (ipa_early_sra): Likewise.
7373 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7374 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7375 * ipa.c (record_cdtor_fn): Likewise.
7376 * ipa-inline.c (cgraph_early_inlining): Likewise.
7377 (compute_inline_parameters_for_current): Likewise.
7378 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7379 * ipa-pure-const.c (local_pure_const): Likewise.
7380 * ipa-split.c (split_function): Likewise.
7381 (execute_split_functions): Likewise.
7382 * cgraphbuild.c (build_cgraph_edges): Likewise.
7383 (rebuild_cgraph_edges): Likewise.
7384 (cgraph_rebuild_references): Likewise.
7385 (remove_cgraph_callee_edges): Likewise.
7386 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7387 (verify_cgraph_node): Likewise.
7388 (cgraph_analyze_functions): Likewise.
7389 (cgraph_preserve_function_body_p): Likewise.
7390 (save_inline_function_body): Likewise.
7391 (save_inline_function_body): Likewise.
7392 * tree-inline.c (copy_bb): Likewise.
7393 (optimize_inline_calls): Likewise.
7394
7395 2011-04-11 Martin Jambor <mjambor@suse.cz>
7396
7397 PR tree-optimization/48195
7398 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7399 ipa_check_create_edge_args.
7400 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7401 ipa_check_create_edge_args.
7402 * ipa-inline.c (inline_generate_summary): Do not call
7403 ipa_check_create_node_params and ipa_check_create_edge_args.
7404 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7405 ipa_check_create_edge_args.
7406
7407 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7408
7409 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7410 instead of loop.
7411 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7412 * function.c (record_hard_reg_sets): Likewise.
7413 * ira.c (compute_regs_asm_clobbered): Likewise.
7414 * sched-deps.c (sched_analyze_1): Likewise.
7415 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7416
7417 2011-04-09 Xinliang David Li <davidxl@google.com>
7418
7419 PR tree-optimization/PR48484
7420 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7421 has_valid_pred lazily
7422
7423 2011-04-09 Duncan Sands <baldrick@free.fr>
7424
7425 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7426
7427 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7428
7429 * combine.c (combine_validate_cost): Adjust comments. Set registered
7430 cost of I0 to zero at the end, if any.
7431
7432 2011-04-08 Xinliang David Li <davidxl@google.com>
7433
7434 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7435 to insane profile data.
7436
7437 2011-04-08 Xinliang David Li <davidxl@google.com>
7438
7439 * ipa-cp.c (ipcp_update_profiling): Correct
7440 negative scale factor due to insane profile data.
7441
7442 2011-04-08 Xinliang David Li <davidxl@google.com>
7443
7444 * final.c (dump_basic_block_info): New function.
7445 (final): Dump basic block.
7446 (final_scan_insn): Remove old dump.
7447
7448 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7449
7450 PR target/47829
7451 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7452 crtbegin/crtend.
7453
7454 2011-04-08 Michael Matz <matz@suse.de>
7455
7456 PR middle-end/48389
7457 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7458 functions.
7459 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7460 * rtl.h (rebuild_jump_labels_chain): Declare.
7461 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7462 insns inserted on edges.
7463
7464 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7465
7466 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7467 * config/arm/arm-arches.def: New.
7468 * config/arm/arm-opts.h: New.
7469 * config/arm/genopt.sh: New.
7470 * config/arm/arm-tables.opt: New (generated).
7471 * config/arm/arm.c (arm_handle_option, arm_target_help,
7472 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7473 (all_architectures): Get most table contents from arm-arches.def.
7474 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7475 arm_selected_tune here.
7476 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7477 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7478 (march=, mcpu=, mtune=): Use Enum and Var.
7479 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7480 (arm.o): Update dependencies.
7481
7482 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7483
7484 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7485 of header_file.
7486 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7487 (write_typed_alloc_defns): Likewise.
7488 (main): Calls write_typed_alloc_defns with output_header.
7489
7490 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7491
7492 PR inline-asm/48435
7493 * ira-color.c (setup_profitable_hard_regs): Add comments.
7494 Don't take prohibited hard regs into account.
7495 (setup_conflict_profitable_regs): Rename to
7496 get_conflict_profitable_regs.
7497 (check_hard_reg_p): Check prohibited hard regs.
7498
7499 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7500
7501 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7502 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7503 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7504
7505 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7506
7507 PR target/48366
7508 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7509 move from floating point to shift amount register.
7510 (emit_move_sequence): Remove secondary reload support for floating
7511 point to shift amount amount register copies.
7512 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7513 amount register copies.
7514 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7515 register, return false if mode isn't a scalar integer mode.
7516 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7517
7518 2011-04-08 Richard Guenther <rguenther@suse.de>
7519
7520 * gimple.c (gimple_call_flags): Remove kludge.
7521
7522 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7523
7524 * sel-sched.c (sel_region_init): Move call to
7525 sel_setup_region_sched_flags after setup_current_loop_nest.
7526
7527 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7528
7529 PR rtl-optimization/48272
7530 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7531 init_insn_reg_pressure_info. Adjust a caller.
7532 * sched-int.h (init_insn_reg_pressure_info): Declare.
7533 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7534 when sched-pressure is enabled.
7535
7536 2011-04-08 Richard Guenther <rguenther@suse.de>
7537
7538 * gimple.c (gimple_set_modified): Do not queue calls to
7539 MODIFIED_NORETURN_CALLS here ...
7540 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7541
7542 2011-04-08 Richard Guenther <rguenther@suse.de>
7543
7544 PR lto/48467
7545 * toplev.c (lang_dependent_init): Do not open asm_out_file
7546 in WPA mode, nor perform debug machinery initialization.
7547 (finalize): Do not unlink asm_out_file in WPA mode.
7548
7549 2011-04-08 Richard Guenther <rguenther@suse.de>
7550
7551 * gimple.h (gimple_call_fntype): New function.
7552 (gimple_call_return_type): Use it.
7553 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7554 * gimple-low.c (gimple_check_call_args): Likewise.
7555 * gimple.c (gimple_call_flags): Likewise.
7556 (gimple_call_arg_flags): Likewise.
7557 (gimple_call_return_flags): Likewise.
7558 * tree-cfg.c (verify_gimple_call): Likewise.
7559 (do_warn_unused_result): Likewise.
7560 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7561 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7562
7563 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7564
7565 PR rtl-optimization/48235
7566 * sel-sched.c (code_motion_process_successors): Recompute the last
7567 insn in basic block if control flow changed.
7568 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7569 Update condition for ilist_remove.
7570
7571 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7572
7573 PR rtl-optimization/48302
7574 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7575 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7576 it to record added preheader blocks.
7577 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7578 on to sel_add_loop_preheaders.
7579 (sel_region_init): Move call to setup_current_loop_nest after
7580 sel_init_bbs.
7581
7582 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7583
7584 PR target/48273
7585 * cfgloop.h (loop_has_exit_edges): New helper.
7586 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7587 non-clonable.
7588 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7589 that have no exit edges.
7590
7591 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7592
7593 PR rtl-optimization/48442
7594 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7595 all callers. Adjust assert.
7596
7597 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7598
7599 PR tree-optimization/48377
7600 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7601 is_packed to true even for types with smaller TYPE_ALIGN than
7602 TYPE_SIZE.
7603
7604 2011-04-08 Richard Guenther <rguenther@suse.de>
7605
7606 PR bootstrap/48513
7607 * doc/tm.texi: Re-generate.
7608
7609 2011-04-08 Wei Guozhi <carrot@google.com>
7610
7611 PR target/47855
7612 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7613 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7614 * config/arm/arm.md (*push_multi): Change the length computation to
7615 call a C function.
7616
7617 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7618
7619 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7620 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7621 * doc/tm.texi: Regenerate.
7622 * system.h (ASM_OUTPUT_BSS): Poison.
7623 * varasm.c (asm_output_bss): Remove function.
7624 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7625
7626 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7627 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7628 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7629 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7630 Likewise.
7631 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7632 Likewise.
7633 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7634 Likewise.
7635 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7636
7637 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7638
7639 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7640 EnumValue lines.
7641
7642 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7643
7644 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7645 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7646 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7647 OPT_mcpu32.
7648 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7649 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7650 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7651 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7652 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7653 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7654 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7655 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7656 options. Don't map other m68k options manually. Don't handle
7657 old-style options as canonical.
7658 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7659 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7660
7661 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7662
7663 * basic-block.h (force_nonfallthru): Move to...
7664 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7665 (force_nonfallthru): ...here.
7666 * cfghooks.c (force_nonfallthru): New function.
7667 * cfgrtl.c (force_nonfallthru): Rename into...
7668 (rtl_force_nonfallthru): ...this.
7669 (commit_one_edge_insertion): Do not set AUX field.
7670 (commit_edge_insertions): Do not discover new basic blocks.
7671 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7672 (cfg_layout_rtl_cfg_hooks): Likewise.
7673 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7674 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7675 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7676
7677 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7678
7679 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7680 Remove macros.
7681
7682 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7683
7684 * config/i386/sse.md: Update copyright year.
7685 (avxcvtvecmode): Remove.
7686 (sse_movhlps): Merge with *avx_movhlps.
7687 (sse_movlhps): Merge with *avx_movlhps.
7688 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7689 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7690 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7691 (sse_loadhps): Merge with *avx_loadhps.
7692 (sse_storelps): Merge with *avx_storelps.
7693 (sse_loadlps): Merge with *avx_loadlps.
7694 (sse_movss): Merge with *avx_movss.
7695 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7696 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7697 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7698 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7699 (vec_set<mode>_0): Ditto.
7700 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7701 (sse4_1_insertps): Merge with *avx_insertps.
7702 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7703 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7704 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7705 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7706 (sse2_storehpd): Merge with *avx_storehpd.
7707 (sse2_loadhpd): Merge with *avx_loadhpd.
7708 (sse2_loadlpd): Merge with *avx_loadlpd.
7709 (sse2_movsd): Merge with *avx_movsd.
7710 (*vec_concatv2df): Merge with *vec_concatv2df.
7711
7712 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR debug/48343
7715 * combine.c (combine_instructions): Add last_combined_insn,
7716 update it if insn is after it, pass it to all try_combine calls.
7717 (try_combine): Add last_combined_insn parameter, pass it instead of
7718 i3 to propagate_for_debug.
7719
7720 2011-04-07 Nick Clifton <nickc@redhat.com>
7721
7722 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7723 to handle MDR <-> data register transfers.
7724 (movhi_internal): Likewise.
7725
7726 2011-04-07 Alan Modra <amodra@gmail.com>
7727
7728 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7729 previous stack info.
7730
7731 2011-04-07 Tom de Vries <tom@codesourcery.com>
7732
7733 PR target/43920
7734 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7735 flow_find_cross_jump. Swap variables to implement backward replacement.
7736 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7737
7738 2011-04-07 Tom de Vries <tom@codesourcery.com>
7739
7740 PR target/43920
7741 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7742 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7743 and bb2.
7744 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7745 src1 or src2. Redirect edges to the last basic block. Update
7746 frequency and count on multiple basic blocks in case of fallthru.
7747
7748 2011-04-07 Tom de Vries <tom@codesourcery.com>
7749
7750 PR target/43920
7751 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7752 function.
7753 (old_insns_match_p): Change return type. Replace return false/true
7754 with return dir_none/dir_both. Use can_replace_by.
7755 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7756 direction from dir_p. Register replacement direction in dir, last_dir
7757 and afterlast_dir. Handle new return type of old_insns_match_p using
7758 merge_dir. Return replacement direction in dir_p.
7759 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7760 return type of old_insns_match_p.
7761 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7762 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7763 flow_find_cross_jump.
7764 * basic-block.h (enum replace_direction): New type.
7765 (flow_find_cross_jump): Add parameter to declaration.
7766
7767 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7768
7769 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7770 (AVXMODEDCVTPS2DQ): Ditto.
7771 (VEC_FLOAT_MODE): Ditto.
7772 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7773 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7774 (<any_logic:code><mode>3): Use VF mode iterator.
7775 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7776 Use VF mode iterator.
7777 (copysign<mode>3): Use VF mode iterator.
7778 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7779 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7780 (*<any_logic:code><MODEF:mode>3): Merge with
7781 *avx_<any_logic:code><MODEF:mode>3.
7782 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7783 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7784 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7785 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7786 (sse2_cvtdq2ps): Use %v modifier.
7787 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7788 (avx_cvtps2dq<avxmodesuffix>): Remove.
7789 (sse2_cvtps2dq): Use %v modifier.
7790 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7791 (avx_cvttps2dq<avxmodesuffix>): Remove.
7792 (sse2_cvttps2dq): Use %v modifier.
7793 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7794 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7795 (sse2_cvtsd2siq): Fix insn template.
7796 (sse2_cvtsd2siq_2): Ditto.
7797 (sse2_cvttsd2siq): Ditto.
7798 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7799 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7800
7801 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7802
7803 * gcov-io.c: Use GCC Runtime Library Exception.
7804
7805 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7806
7807 PR debug/48466
7808 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7809 as base_reg whatever register reg has been eliminated to, instead
7810 of hardcoding STACK_POINTER_REGNUM.
7811
7812 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7813
7814 * doc/tm.texi.in: Document C target hooks as separate from general
7815 target hooks.
7816 * doc/tm.texi: Regenerate.
7817 * genhooks.c (struct hook_desc): Add docname field.
7818 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7819 docname field.
7820 (hook_array): Include c-target.def.
7821 (emit_documentation): Use docname field in output.
7822 (emit_init_macros): Take docname argument. Only emit definitions
7823 for hooks matching docname.
7824 (main): Expect additional arguments in all cases. Pass argument
7825 to emit_init_macros.
7826 * target.def: Move initial macro definitions and comments to
7827 target-hooks-macros.h.
7828 (gcc_targetcm): Move to c-family/c-target.def.
7829 * target.h (targetcm): Move declaration to c-family/c-target.h.
7830 * targhooks.c (default_handle_c_option): Move to
7831 c-family/c-opts.c.
7832 * targhooks.h (default_handle_c_option): Move declaration to
7833 c-family/c-common.h.
7834 * target-hooks-macros.h: New file.
7835 * config.gcc (target_has_targetcm): Define and use to add to
7836 c_target_objs and cxx_target_objs.
7837 * config/default-c.c: New file.
7838 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7839 of target.h and target-def.h.
7840 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7841 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7842 darwin_check_cfstring_format_arg): Make static.
7843 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7844 TARGET_STRING_OBJECT_REF_TYPE_P,
7845 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7846 * config/darwin-protos.h (darwin_objc_construct_string,
7847 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7848 declare.
7849 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7850 TARGET_STRING_OBJECT_REF_TYPE_P,
7851 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7852 * config/t-darwin (darwin-c.o): Update dependencies.
7853 * system.h (TARGET_HAS_TARGETCM): Poison.
7854 * Makefile.in (TARGET_H): Update.
7855 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7856 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7857 (default-c.o): New target.
7858 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7859 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7860 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7861 c-target.def.
7862 (build/genhooks.o): Update dependencies.
7863
7864 2011-04-06 Richard Guenther <rguenther@suse.de>
7865
7866 * ipa-inline.c (enum inlining_mode): Remove.
7867 (cgraph_flatten): Use some other token.
7868 (cgraph_edge_early_inlinable_p): New function, split out from ...
7869 (cgraph_perform_always_inlining): New function, split out from ...
7870 (cgraph_decide_inlining_incrementally): ... here.
7871 (cgraph_mark_inline_edge): Adjust.
7872 (cgraph_early_inlining): Re-structure.
7873 (pass_early_inline): Require SSA form.
7874
7875 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7876 Julian Brown <julian@codesourcery.com>
7877 Mark Shinwell <shinwell@codesourcery.com>
7878
7879 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7880 LO_REGS only for Thumb-1.
7881 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7882 be used in short instructions when optimising for size on Thumb-2.
7883
7884 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7885
7886 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7887 associated with user returns to be preserved.
7888
7889 2011-04-06 Tristan Gingold <gingold@adacore.com>
7890
7891 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7892 symbol_queue_size, DBXOUT_DECR_NESTING,
7893 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7894 if XCOFF_DEBUGGING_INFO.
7895
7896 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7897
7898 * config/i386/i386.md (attribute isa): New.
7899 (attribute enabled): New.
7900 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7901 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7902 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7903 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7904 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7905 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7906 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7907 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7908
7909 * config/i386/sse.md (VF): New mode iterator.
7910 (VF1): Ditto.
7911 (VF2): Ditto.
7912 (VF_128): Ditto.
7913 (SSEMODEF4): Remove.
7914 (attribute sse): Handle V8SF and V4DF modes.
7915 (<absneg:code><mode>2): Use VF mode iterator.
7916 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7917 mode iterator.
7918 (<plusminus_insn><mode>3): Use VF mode iterator.
7919 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7920 Use VF mode iterator.
7921 (<sse>_vm<plusminus_insn><mode>3): Merge with
7922 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7923 (mul<mode>3): Use VF mode iterator.
7924 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7925 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7926 mode iterator.
7927 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7928 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7929 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7930 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7931 mode iterator.
7932 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7933 Use VF1 mode iterator.
7934 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7935 (sqrt<VF2:mode>2): New expander.
7936 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7937 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7938 and sqrtv2df2. Use VF mode iterator.
7939 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7940 mode iterator.
7941 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7942 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7943 Use VF1 mode iterator.
7944 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7945 (<smaxmin:code><mode>3): Use VF mode iterator.
7946 (*<smaxmin:code><mode>3_finite): Merge with
7947 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7948 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7949 (<sse>_vm<smaxmin:code><mode>2): Merge with
7950 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7951 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7952 mode iterator.
7953 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7954 mode iterator.
7955 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7956 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7957 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7958 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7959 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7960 VF mode iterator.
7961 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7962 Use VF_128 mode iterator.
7963 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7964 mode iterator.
7965 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7966 VF_128 mode iterator.
7967 (vcond<mode>): Use VF mode iterator.
7968 * config/i386/predicates.md (sse_comparison_operator): Merge with
7969 avx_comparison_float_operator. Do not declare as special_predicate.
7970 * config/i386/i386.c (struct builtin_description): Update for renamed
7971 compare patterns.
7972 (ix86_expand_args_builtin): Ditto.
7973 (ix86_expand_sse_compare_mask): Ditto.
7974
7975 2011-04-06 Richard Guenther <rguenther@suse.de>
7976
7977 * tree-inline.c (estimate_num_insns): For calls simply account
7978 for all passed arguments and a used return value.
7979
7980 2011-04-06 Richard Guenther <rguenther@suse.de>
7981
7982 PR tree-optimization/47663
7983 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7984 call_stmt_time fields.
7985 (cgraph_edge_inlinable_p): Declare.
7986 (cgraph_edge_recursive_p): New inline function.
7987 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7988 (cgraph_clone_edge): Copy it.
7989 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7990 Account for call stmt time.
7991 (cgraph_estimate_time_after_inlining): Take edge argument.
7992 (cgraph_estimate_edge_growth): Account call stmt size.
7993 (cgraph_estimate_size_after_inlining): Take edge argument.
7994 (cgraph_mark_inline_edge): Adjust.
7995 (cgraph_check_inline_limits): Likewise.
7996 (cgraph_recursive_inlining_p): Remove.
7997 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7998 (cgraph_decide_recursive_inlining): Take edge argument and
7999 adjust.
8000 (cgraph_decide_inlining_of_small_functions): Do not avoid
8001 diags for recursive inlining here.
8002 (cgraph_flatten): Adjust.
8003 (cgraph_decide_inlining_incrementally): Likewise.
8004 (estimate_function_body_sizes): Remove call cost handling.
8005 (compute_inline_parameters): Initialize caller edge call costs.
8006 (cgraph_estimate_edge_growth): New function.
8007 (cgraph_estimate_growth): Use it.
8008 (cgraph_edge_badness): Likewise.
8009 (cgraph_check_inline_limits): Take an edge argument.
8010 (cgraph_decide_inlining_of_small_functions): Adjust.
8011 (cgraph_decide_inlining): Likewise.
8012 * tree-inline.c (estimate_num_insns): Only account for call
8013 return value if it is used.
8014 (expand_call_inline): Avoid diagnostics on recursive inline
8015 functions here.
8016 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8017 (input_edge): Input edge call costs.
8018
8019 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8020
8021 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8022
8023 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8024
8025 * doc/invoke.texi (Spec Files): Fix typo.
8026
8027 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8028
8029 * profile.c (branch_prob): Move declaration of local variable. Remove
8030 obsolete ??? comment. Expand the location explicitly instead of using
8031 the LOCATION_FILE and LOCATION_LINE macros.
8032
8033 2011-04-06 Wei Guozhi <carrot@google.com>
8034
8035 PR target/47855
8036 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8037 (arm_cond_branch): Likewise.
8038 (arm_cond_branch_reversed): Likewise.
8039 (arm_jump): Likewise.
8040 (push_multi): Likewise.
8041 * config/arm/constraints.md (Py): New constraint.
8042
8043 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8044
8045 PR bootstrap/48471
8046 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8047 Move these...
8048 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8049 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8050 #ifdef DBX_DEBUGGING_INFO.
8051
8052 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8053
8054 PR bootstrap/48403
8055 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8056 if old and new states differ.
8057
8058 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8059
8060 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8061 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8062 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8063 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8064 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8065 mcfv4e): Use Alias.
8066 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8067 ColdFire options to -mcpu= options.
8068
8069 2011-04-05 Jeff Law <law@redhat.com>
8070
8071 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8072 check if BB is a successor of LOOP->header and return
8073 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8074
8075 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8076
8077 * cprop.c (struct reg_use): Remove.
8078 (reg_use_table): Make an array of RTX.
8079 (find_used_regs, constprop_register, local_cprop_pass,
8080 bypass_block): Simplify users of reg_use_table.
8081 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8082 on one of the uses found by find_used_regs.
8083
8084 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8085
8086 PR bootstrap/48469
8087 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8088 declaration.
8089
8090 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8091
8092 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8093 as an rtx.
8094 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8095
8096 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8097
8098 PR middle-end/48441
8099 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8100
8101 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8102
8103 * combine.c: Include obstack.h.
8104 (struct insn_link): Define.
8105 (uid_log_links): Adjust type.
8106 (FOR_EACH_LOG_LINK): New macro.
8107 (insn_link_obstack): Declare.
8108 (alloc_insn_link): Define.
8109 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8110 type of link variables.
8111 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8112 (try_combine, record_promoted_values, distribute_notes): Likewise.
8113 (distribute_links): Likewise. Tweak prototype.
8114 (clear_log_links): Delete.
8115 (adjust_for_new_dest): Call alloc_insn_link.
8116 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8117
8118 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8119
8120 * gcse.c (modify_mem_list): Convert to an array of VECs.
8121 (canon_modify_mem_list, compute_transp): Tweak formatting.
8122 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8123 (load_killed_in_block_p): Likewise.
8124 (record_last_mem_set_info): Likewise.
8125 (clear_modify_mem_tables): Likewise.
8126
8127 2011-04-05 Tom de Vries <tom@codesourcery.com>
8128
8129 PR middle-end/48461
8130 * function.c (emit_use_return_register_into_block): Only define if
8131 HAVE_return.
8132
8133 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8134
8135 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8136
8137 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8138
8139 * config/rx/rx-opts.h: New.
8140 * config/rx/rx.c (rx_cpu_type): Remove.
8141 (rx_handle_option): Don't assert that global structures are in
8142 use. Access variables via opts pointer. Defer most handling of
8143 OPT_mint_register_. Use error_at.
8144 (rx_option_override): Handle deferred OPT_mint_register_ here.
8145 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8146 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8147 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8148 (rx_cpu_types): New Enum and EnumValue entries.
8149 (mint-register=): Use Defer and use Var accordingly.
8150
8151 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8152
8153 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8154 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8155 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8156 Move these...
8157 (debug_free_queue, debug_nesting, symbol_queue_index):
8158 ...and these...
8159 * dbxout.c: ...to here. Make static.
8160
8161 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8162
8163 * gcse.c (modify_pair): Define. Define a VEC of it.
8164 (canon_modify_mem_list): Convert to an array of VECs.
8165 (free_insn_expr_list_list): Delete.
8166 (clear_modify_mem_tables): Call VEC_free instead.
8167 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8168 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8169 (canon_list_insert, compute_transp): Likewise.
8170
8171 2011-04-05 Tom de Vries <tom@codesourcery.com>
8172
8173 PR target/43920
8174 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8175 for size.
8176
8177 2011-04-05 Tom de Vries <tom@codesourcery.com>
8178
8179 PR target/43920
8180 * function.c (emit_use_return_register_into_block): New function.
8181 (thread_prologue_and_epilogue_insns): Use
8182 emit_use_return_register_into_block.
8183
8184 2011-04-05 Tom de Vries <tom@codesourcery.com>
8185
8186 PR target/43920
8187 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8188 insn.
8189
8190 2011-04-05 Tom de Vries <tom@codesourcery.com>
8191
8192 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8193
8194 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8195
8196 * config/arm/arm.md (define_constants for unspec): Replace with
8197 define_c_enum.
8198 (define_constants for unspecv): Replace with define_c_enum.
8199 * config/arm/neon.md (define_constants for unspec): Replace with
8200 define_c_enum.
8201
8202 2011-04-04 Richard Henderson <rth@redhat.com>
8203
8204 PR bootstrap/48400
8205 * dwarf2out.c (output_line_info): Always emit line info from
8206 at least one section.
8207 (dwarf2out_init): Create text_section_line_info here ...
8208 (set_cur_line_info_table): ... not here.
8209
8210 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8211
8212 PR target/48380
8213 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8214 not called.
8215
8216 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8217
8218 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8219
8220 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8221 (expr_equiv_p): Remove.
8222 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8223 (hash_scan_set): Update call to insert_set_in_table.
8224 (dump_hash_table): Dump <dest, src> pair.
8225 (lookup_set): Simplify. Lookup <dest, src> pair.
8226 (compute_transp): Remove, fold heavily simplified code into...
8227 (compute_local_properties): ...here. Expect COMP and TRANSP
8228 unconditionally.
8229 (find_avail_set): Take set directly from struct expr.
8230 (find_bypass-set): Likewise.
8231 (bypass_block): Likewise.
8232 (cprop_insn): Likewise. Remove redundant INSN_P test.
8233
8234 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8235 checks on form of COND from find_implicit_sets to here.
8236 (find_implicit_sets): Cleanup control flow. Split critical edges
8237 if it exposes implicit sets. Allocate/resize implicit_sets as
8238 necessary.
8239 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8240 changed something. Run df_analyze after find_implicit_sets if any
8241 edges were split. Do not allocate implicit_sets here.
8242
8243 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8244 (gcse_obstack): Renamed to cprop_obstack.
8245 (GNEW, GNEWVEC, GNEWVAR): Remove.
8246 (gmalloc): Remove.
8247 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8248 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8249 (gcse_alloc): Likewise, and rename to cprop_alloc.
8250 (alloc_gcse_men, free_gcse_mem): Remove.
8251 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8252 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8253 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8254
8255 * cprop.c (oprs_not_set_p): Remove.
8256 (mark_set, mark_clobber): Remove.
8257 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8258 (reg_not_set_p): New function.
8259 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8260 (cprop_insn): Likewise.
8261 (cprop_jump): Use FOR_EACH_EDGE.
8262
8263 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8264
8265 PR bootstrap/48403
8266 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8267 (rank_for_schedule): Use scheduled_insns vector instead of
8268 last_scheduled_insn.
8269 (ok_for_early_queue_removal): Likewise.
8270 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8271 we have a dbg_cnt.
8272 (choose_ready): Likewise.
8273 (commit_schedule): Use VEC_iterate.
8274 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8275 a dbg_cnt, use it and ensure the first insn is in the ready list.
8276 (haifa_sched_init): Allocate scheduled_insns.
8277 (sched_extend_ready_list): Don't allocate it; reserve space.
8278 (haifa_sched_finish): Free it.
8279
8280 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8281
8282 * optc-gen.awk: Always remove type from Variable entry before
8283 recording in var_seen.
8284
8285 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8286
8287 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8288 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8289 call to tidy_fallthru_edges.
8290
8291 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8292
8293 * doc/options.texi (ToLower): Document.
8294 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8295 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8296 * opts.h (cl_option): Add cl_tolower field.
8297 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8298 arguments with lowercase strings.
8299 * config/rx/rx.opt (mcpu=): Add ToLower.
8300 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8301 argument.
8302
8303 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8304
8305 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8306
8307 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8308
8309 * config/vax/vax.c: Include reload.h.
8310
8311 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8312
8313 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8314 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8315 (sparc_preferred_reload_class): New function.
8316
8317 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8318
8319 PR debug/48401
8320 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8321 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8322
8323 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8324
8325 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8326 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8327
8328 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8329
8330 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8331 (ASM_OUTPUT_ALIGNED_BSS): Define.
8332
8333 2011-04-03 Michael Matz <matz@suse.de>
8334
8335 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8336 and next_slot members.
8337 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8338 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8339 (lto_streamer_cache_append): Declare.
8340 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8341 unsigned index, remove offset parameter, ensure that we append
8342 or update existing entries.
8343 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8344 parameter, update next_slot for append.
8345 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8346 parameter.
8347 (lto_streamer_cache_insert_at): Likewise.
8348 (lto_streamer_cache_append): New function.
8349 (lto_streamer_cache_lookup): Use unsigned index.
8350 (lto_streamer_cache_get): Likewise.
8351 (lto_record_common_node): Don't test tree_node_can_be_shared.
8352 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8353 (lto_streamer_cache_delete): Don't free offsets member.
8354 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8355 (lto_output_string_with_length): Use lto_output_data_stream.
8356 (lto_output_tree_header): Remove ix parameter, don't write it.
8357 (lto_output_builtin_tree): Likewise.
8358 (lto_write_tree): Adjust callers to above, don't track and write
8359 offset, write unsigned index.
8360 (output_unreferenced_globals): Don't emit all global vars.
8361 (write_global_references): Use unsigned indices.
8362 (lto_output_decl_state_refs): Likewise.
8363 (write_symbol): Likewise.
8364 * lto-streamer-in.c (lto_input_chain): Move earlier.
8365 (input_function): Use unsigned index.
8366 (input_alias_pairs): Don't read and then ignore all global vars.
8367 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8368 don't pass it back, use lto_streamer_cache_append.
8369 (lto_register_var_decl_in_symtab): Use unsigned index.
8370 (lto_register_function_decl_in_symtab): Likewise.
8371 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8372 index.
8373 (lto_get_builtin_tree): Don't read index, use
8374 lto_streamer_cache_append.
8375 (lto_read_tree): Adjust call to lto_materialize_tree.
8376
8377 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8378 don't use function calls in arguments to MIN.
8379
8380 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8381 twice.
8382
8383 * gimple.c (gimple_type_leader_entry): Mark deletable.
8384
8385 2011-04-03 Alan Modra <amodra@gmail.com>
8386
8387 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8388
8389 2011-04-03 Michael Matz <matz@suse.de>
8390
8391 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8392 an integer.
8393 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8394
8395 2011-04-03 Michael Matz <matz@suse.de>
8396
8397 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8398 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8399 without function context.
8400 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8401 current_function_decl and cfun.
8402
8403 2011-04-03 Michael Matz <matz@suse.de>
8404
8405 * tree.c (decl_init_priority_insert): Don't create entry for
8406 default priority.
8407 (decl_fini_priority_insert): Ditto.
8408 (fields_compatible_p, find_compatible_field): Remove.
8409 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8410 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8411
8412 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8413
8414 * combine.c (try_combine): Remove useless local variable.
8415
8416 2011-04-03 Richard Guenther <rguenther@suse.de>
8417 Ira Rosen <ira.rosen@linaro.org>
8418
8419 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8420 non-variable offsets and compare the remaining bases of the two
8421 accesses instead of looking for exact same data-ref.
8422
8423 2011-04-02 Kai Tietz <ktietz@redhat.com>
8424
8425 PR target/48416
8426 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8427
8428 * i386.c (ix86_is_msabi_thiscall): New helper function.
8429 (ix86_is_type_thiscall): New helper function.
8430 (ix86_comp_type_attributes): Handle thiscall for method-functions
8431 special.
8432 (init_cumulative_args): Likewise.
8433 (find_drap_reg): Likewise.
8434 (ix86_static_chain): Likewise.
8435 (x86_this_parameter): Likewise.
8436 (x86_output_mi_thunk): Likewise.
8437
8438 2011-04-01 Olivier Hainque <hainque@adacore.com>
8439 Nicolas Setton <setton@adacore.com>
8440 Eric Botcazou <ebotcazou@adacore.com>
8441
8442 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8443 (add_gnat_descriptive_type_attribute): New function.
8444 (gen_array_type_die): Call it.
8445 (gen_enumeration_type_die): Likewise.
8446 (gen_struct_or_union_type_die): Likewise.
8447 (modified_type_die): Likewise.
8448 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8449 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8450 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8451
8452 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8453
8454 PR bootstrap/48148
8455 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8456 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8457
8458 Revert:
8459 2011-03-17 Richard Guenther <rguenther@suse.de>
8460
8461 PR bootstrap/48148
8462 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8463 origin for decls in other ltrans units.
8464 (input_varpool_node): Likewise.
8465
8466 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8467
8468 PR middle-end/48335
8469 * expr.c (expand_assignment): Handle all possibilities
8470 if TO_RTX is CONCAT.
8471 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8472 (store_split_bit_field): If SUBREG_REG (op0) or
8473 op0 itself has smaller mode than word, return it
8474 for offset 0 and const0_rtx for out-of-bounds stores.
8475 If word is const0_rtx, skip it.
8476
8477 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8478
8479 * config/h8300/h8300.c (print_operand_address): Rename to...
8480 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8481 Call h8300_print_operand and h8300_print_operand_address instead of
8482 print_operand and print_operand_address. Declare.
8483 (print_operand): Renake to...
8484 (h8300_print_operand): ...this. Make static. Adjust comments.
8485 Call h8300_print_operand instead of print_operand. Declare.
8486 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8487 (h8300_register_move_cost): Likewise.
8488 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8489 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8490 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8491 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8492 * config/h8300/h8300-protos.h (print_operand): Delete.
8493 (print_operand_address): Delete.
8494
8495 2011-04-01 Richard Henderson <rth@redhat.com>
8496
8497 PR 48400
8498 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8499 in strict mode before dwarf4. Re-order tests to early out
8500 before switching sections.
8501
8502 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8503
8504 * config/h8300/constraints.md: New file.
8505 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8506 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8507 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8508 * config/h8300/predicates.md (bit_operand): Likewise.
8509 (incdec_operand): Use satisfies_constraint_M and
8510 satisfies_constraint_O. Don't use C code block.
8511 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8512 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8513 (compute_mov_length): Use satisfies_constraint_G.
8514 (fix_bit_operand): Use satisfies_constraint_U.
8515 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8516 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8517 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8518 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8519 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8520 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8521 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8522 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8523 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8524 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8525 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8526 (EXTRA_MEMORY_CONSTRAINT): Delete.
8527
8528 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8529 Michael Meissner <meissner@linux.vnet.ibm.com>
8530
8531 PR target/48262
8532 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8533 operands, as per the specifications.
8534
8535 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8536 (vec_extract_evenv4sf): Ditto.
8537 (vec_extract_evenv8hi): Ditto.
8538 (vec_extract_evenv16qi): Ditto.
8539 (vec_extract_oddv4si): Ditto.
8540
8541 2011-03-31 Mark Wielaard <mjw@redhat.com>
8542
8543 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8544 high_pc attribute if the CU has no associated code. Only output
8545 DW_AT_entry_pc for CU if not generating strict dwarf and
8546 dwarf_version < 4.
8547
8548 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8549
8550 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8551 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8552 out of ...
8553 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8554 * final.c (final_start_function): Call the new function rather
8555 than using a NULL argument for dwarf2out_frame_debug.
8556
8557 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8558 that contains the prologue.
8559
8560 * haifa-sched.c (queue_insn): New arg REASON. All callers
8561 changed. Print it in debugging output.
8562
8563 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8564
8565 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8566 Split most of the code into...
8567 (begin_move_insn): ... here. New function.
8568 (ebb_sched_info): Add a pointer to it.
8569 * haifa-sched.c (scheduled_insns): New static variable.
8570 (sched_extend_ready_list): Allocate it.
8571 (schedule_block): Use it to record the order of scheduled insns.
8572 Perform RTL changes to move insns only after all scheduling
8573 decisions have been made.
8574 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8575 begin_move_insn field.
8576 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8577 * sched-int.h (struct haifa_sched_info): Remove second argument
8578 from begin_schedule_ready hook. Add new member begin_move_insn.
8579 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8580 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8581
8582 * haifa-sched.c (prune_ready_list): New function, broken out of
8583 schedule_block.
8584 (schedule_block): Use it.
8585
8586 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8587
8588 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8589
8590 2011-04-01 Kai Tietz <ktietz@redhat.com>
8591
8592 * config.gcc (*-*-mingw*): Allow as option the
8593 posix threading model.
8594 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8595 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8596 definition.
8597 (CPP_SPEC): Add pthread/no-pthread handling.
8598 (LIB_SPEC): Likewise.
8599 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8600 (LIB_SPEC): Likewise.
8601 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8602 flag to pass -pthread option for shared libgcc build.
8603 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8604 for shared libgcc build.
8605 * config/i386/t-mingw-pthread: New file.
8606 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8607 New define to enable use of library pthread by default.
8608 * config/i386/mingw.opt (pthread): New driver option.
8609 (no-pthread): New driver option.
8610 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8611 * config/i386/mingw-w64.opt: Likewise.
8612
8613 2011-04-01 Gary Funck <gary@intrepid.com>
8614
8615 * c-decl.c (grokdeclarator): Fix formatting.
8616
8617 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8618
8619 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8620 instead of n_operands.
8621 (set_storage_via_setmem): Likewise.
8622 * optabs.c (maybe_gen_insn): Likewise.
8623 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8624 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8625 (mips_expand_builtin_direct): Likewise.
8626 * config/spu/spu.c (expand_builtin_args): Likewise.
8627
8628 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8629
8630 * recog.h (insn_data_d): Add n_generator_args.
8631 * genoutput.c (data): Likewise.
8632 (output_insn_data): Print it.
8633 (max_opno, num_dups): Delete.
8634 (scan_operands): Just fill in "d->operand[...]".
8635 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8636
8637 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8638
8639 * gensupport.h (pattern_stats): New structure.
8640 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8641 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8642 (max_operand_1, max_operand_vec): Delete.
8643 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8644
8645 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8646
8647 * emit-rtl.c (emit_pattern_after_setloc): New function.
8648 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8649 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8650 (emit_pattern_after): New function.
8651 (emit_insn_after, emit_jump_insn_after): Call it.
8652 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8653 (emit_pattern_before_setloc): New function.
8654 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8655 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8656 Likewise.
8657 (emit_pattern_before): New function.
8658 (emit_insn_before, emit_jump_insn_before): Call it.
8659 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8660
8661 2011-03-31 Richard Henderson <rth@redhat.com>
8662
8663 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8664 (dw_separate_line_info_entry): Remove.
8665 (enum dw_line_info_opcode): New.
8666 (dw_line_info_entry): Use it.
8667 (dw_line_info_table, dw_line_info_table_p): New.
8668 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8669 (line_info_table, line_info_label_num): Remove.
8670 (line_info_table_in_use): Remove.
8671 (separate_line_info_table): Remove.
8672 (separate_line_info_table_allocated): Remove.
8673 (separate_line_info_table_in_use): Remove.
8674 (LINE_INFO_TABLE_INCREMENT): Remove.
8675 (line_info_label_num): New.
8676 (cur_line_info_table): New.
8677 (text_section_line_info, cold_text_section_line_info): New.
8678 (separate_line_info): New.
8679 (SEPARATE_LINE_CODE_LABEL): Remove.
8680 (print_dwarf_line_table): Remove.
8681 (debug_dwarf): Don't dump it.
8682 (output_one_line_info_table): New.
8683 (output_line_info): Use it.
8684 (new_line_info_table): New.
8685 (set_cur_line_info_table): New.
8686 (dwarf2out_switch_text_section): Use it.
8687 (dwarf2out_begin_function): Likewise.
8688 (push_dw_line_info_entry): New.
8689 (dwarf2out_source_line): Rewrite for new line info tables.
8690 (dwarf2out_init): Remove dead initailizations.
8691
8692 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8693
8694 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8695 various flags.
8696 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8697 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8698 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8699 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8700 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8701 * opt-functions.awk (flag_init, switch_bit_fields): New.
8702 (switch_flags): Don't handle flags moved to bit-fields. Don't
8703 generate CL_MISSING_OK or CL_SAVE.
8704 * optc-gen.awk: Update to generate bit-field output as well as
8705 flags field.
8706 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8707 bit-field instead of CL_REJECT_DRIVER flag.
8708 * opts-common.c (generate_canonical_option,
8709 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8710 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8711 instead of CL_REJECT_NEGATIVE flag.
8712 * toplev.c (print_switch_values): Use cl_report bit-field instead
8713 of CL_REPORT flag.
8714
8715 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8716
8717 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8718 a zero minimum index only if it is redundant.
8719
8720 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8721
8722 PR rtl-optimization/48381
8723 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8724 instead of ira_class_hard_reg_index for calculating conflicting
8725 hard registers.
8726
8727 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8728
8729 * cprop.c: Clean up hash table building.
8730 (reg_avail_info): Remove.
8731 (oprs_available_p): Remove.
8732 (record_last_reg_set_info): Remove.
8733 (record_last_set_info): Remove.
8734 (reg_available_p): New function.
8735 (gcse_constant_p): Do not treat unfolded conditions as constants.
8736 (make_set_regs_unavailable): New function.
8737 (hash_scan_set): Simplify with new reg_available_p.
8738 (compute_hash_table_work): Traverse insns stream only once.
8739 Do not compute reg_avail_info. Traverse insns in reverse order.
8740 Record implicit sets after recording explicit sets from the block.
8741
8742 2011-03-31 Michael Matz <matz@suse.de>
8743
8744 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8745
8746 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8747
8748 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8749 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8750 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8751 (h8300_mode_dependent_address_p): New function.
8752 (h8300_get_index): Make static.
8753
8754 2011-03-31 Jeff Law <law@redhat.com>
8755
8756 * reload1.c (elimination_effects): Fix typo in recent change.
8757
8758 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8759 typo potentially leading to null pointer dereference.
8760
8761 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8762 (setup_save_areas): Corresponding changes to avoid useless
8763 assignments.
8764
8765 * jump.c (reversed_comparison_code_parts): Avoid successive return
8766 statements when REVERSE_CONDITION is defined.
8767
8768 * expr.c (expand_assignment): Avoid useless assignments.
8769 (expand_expr_real_1): Likewise.
8770 (expand_expr_real_2): Avoid useless statements.
8771
8772 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8773
8774 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8775
8776 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8777 statements.
8778
8779 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8780
8781 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8782
8783 PR target/47109
8784 * doc/tm.texi.in (TARGET_VERSION): Remove.
8785 * doc/tm.texi: Regenerate.
8786 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8787 * collect2.c (main): Don't use TARGET_VERSION.
8788 * mips-tdump.c (main): Don't use TARGET_VERSION.
8789 * mips-tfile.c (main): Don't use TARGET_VERSION.
8790 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8791 * config/rs6000/vxworksae.h: Remove.
8792 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8793 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8794 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8795 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8796 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8797 * config/arm/arm.h (TARGET_VERSION): Remove.
8798 * config/arm/coff.h (TARGET_VERSION): Remove.
8799 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8800 * config/arm/elf.h (TARGET_VERSION): Remove.
8801 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8802 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8803 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8804 * config/arm/pe.h (TARGET_VERSION): Remove.
8805 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8806 * config/arm/semi.h (TARGET_VERSION): Remove.
8807 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8808 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8809 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8810 * config/avr/avr.h (TARGET_VERSION): Remove.
8811 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8812 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8813 * config/frv/frv.h (TARGET_VERSION): Remove.
8814 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8815 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8816 * config/i386/darwin.h (TARGET_VERSION): Remove.
8817 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8818 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8819 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8820 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8821 * config/i386/gnu.h (TARGET_VERSION): Remove.
8822 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8823 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8824 * config/i386/linux.h (TARGET_VERSION): Remove.
8825 * config/i386/linux64.h (TARGET_VERSION): Remove.
8826 * config/i386/lynx.h (TARGET_VERSION): Remove.
8827 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8828 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8829 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8830 * config/i386/netware.h (TARGET_VERSION): Remove.
8831 * config/i386/nto.h (TARGET_VERSION): Remove.
8832 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8833 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8834 * config/ia64/elf.h (TARGET_VERSION): Remove.
8835 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8836 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8837 * config/ia64/linux.h (TARGET_VERSION): Remove.
8838 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8839 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8840 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8841 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8842 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8843 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8844 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8845 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8846 * config/m68k/linux.h (TARGET_VERSION): Remove.
8847 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8848 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8849 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8850 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8851 * config/mep/mep.h (TARGET_VERSION): Remove.
8852 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8853 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8854 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8855 * config/mips/linux.h (TARGET_VERSION): Remove.
8856 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8857 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8858 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8859 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8860 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8861 * config/pa/pa.h (TARGET_VERSION): Remove.
8862 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8863 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8864 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8865 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8866 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8867 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8868 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8869 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8870 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8871 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8872 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8873 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8874 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8875 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8876 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8877 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8878 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8879 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8880 * config/s390/linux.h (TARGET_VERSION): Remove.
8881 * config/s390/s390.h (TARGET_VERSION): Remove.
8882 * config/s390/tpf.h (TARGET_VERSION): Remove.
8883 * config/score/score.h (TARGET_VERSION): Remove.
8884 * config/sh/linux.h (TARGET_VERSION): Remove.
8885 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8886 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8887 * config/sh/sh.h (TARGET_VERSION): Remove.
8888 * config/sh/sh64.h (TARGET_VERSION): Remove.
8889 * config/sh/superh.h (TARGET_VERSION): Remove.
8890 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8891 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8892 * config/sparc/linux.h (TARGET_VERSION): Remove.
8893 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8894 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8895 TARGET_NAME32, TARGET_NAME): Remove.
8896 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8897 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8898 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8899 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8900 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8901 * config/spu/spu.h (TARGET_VERSION): Remove.
8902 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8903 * config/v850/v850.h (TARGET_VERSION): Remove.
8904 * config/vax/linux.h (TARGET_VERSION): Remove.
8905 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8906 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8907 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8908
8909 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8910
8911 PR target/48142
8912 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8913 frame-related from frame-unrelated adjustments to the stack pointer.
8914
8915 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8916
8917 * common.opt (fdebug-types-section): Move earlier.
8918 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8919
8920 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8921
8922 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8923 var.
8924
8925 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8926
8927 * tree.h (CASE_CHAIN): Define.
8928 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8929 (gimple_redirect_edge_and_branch): Likewise.
8930
8931 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8932
8933 PR middle-end/48367
8934 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8935 calculation.
8936
8937 2011-03-30 Jeff Law <law@redhat.com>
8938
8939 * PR bootstrap/48371
8940 * reload1.c (reload): Fix botch in last change.
8941
8942 * reload.h (struct reload): Fix typo introduced in last change.
8943
8944 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8945
8946 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8947 Undocumented. Remove help text.
8948 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8949 -mhard-float.
8950
8951 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8952
8953 * doc/options.texi (NegativeAlias): Document.
8954 (Alias): Mention NegativeAlias.
8955 * opt-functions.awk: Handle NegativeAlias.
8956 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8957 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8958 * opts.h (CL_NEGATIVE_ALIAS): Define.
8959 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8960 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8961 OPT_mspe_.
8962 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8963 Alias entries.
8964 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8965 mno-spe and mno-isel instead of mspe=no and -misel=no.
8966
8967 2011-03-29 Mark Wielaard <mjw@redhat.com>
8968
8969 * common.opt (fdebug-types-section): New flag.
8970 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8971 * dwarf2out.c (use_debug_types): New define.
8972 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8973 (print_die): Guard output of type unit signatures using
8974 use_debug_types.
8975 (build_abbrev_table): Replace assert of dwarf_version >= 4
8976 with assert on use_debug_types.
8977 (size_of_die): Likewise.
8978 (unmark_dies): Likewise.
8979 (value_format): Decide AT_ref_external form on use_debug_types.
8980 (output_die): Replace dwarf_version version check guard with
8981 use_debug_types where appropriate.
8982 (modified_type_die): Likewise.
8983 (gen_reference_type_die): Likewise.
8984 (dwarf2out_start_source_file): Likewise.
8985 (dwarf2out_end_source_file): Likewise.
8986 (prune_unused_types_walk_attribs): Likewise.
8987 (dwarf2out_finish): Likewise.
8988
8989 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8990
8991 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8992
8993 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8994
8995 PR rtl-optimization/48332
8996 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8997 mode of input operand N and modeN to its actual mode.
8998
8999 2011-03-30 Jeff Law <law@redhat.com>
9000
9001 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9002 define accessor macro.
9003 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9004 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9005 (reg_equiv_init): Likewise.
9006 (reg_equivs_size): New variable.
9007 (reg_equiv_init_size): Remove.
9008 (allocate_initial_values): Move prototype to here from....
9009 * integrate.h (allocate_initial_values): Remove prototype.
9010 * integrate.c: Include reload.h.
9011 (allocate_initial_values): Corresponding changes.
9012 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9013 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9014 (update_equiv_regs): Corresponding changes.
9015 (ira): Corresponding changes.
9016 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9017 (push_secondary_reload): Corresponding changes.
9018 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9019 (make_memloc, find_reloads_address): Corresponding changes.
9020 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9021 (find_reloads_address_1): Corresponding changes.
9022 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9023 (refers_to_regno_for_reload_p): Corresponding changes.
9024 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9025 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9026 * reload1.c: Include ggc.h.
9027 (grow_reg_equivs): New function.
9028 (replace_pseudos_in, reload): Corresponding changes.
9029 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9030 (eliminate_regs_1, elimination_effects): Corresponding changes.
9031 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9032 (delete_output_reload): Likewise.
9033 * caller-save.c (mark_referenced_regs): Corresponding changes.
9034 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9035 * frv/predicates.md (frv_load_operand): Corresponding changes.
9036 * microblaze/microblaze.c (double_memory_operand): Corresponding
9037 changes.
9038 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9039 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9040 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9041 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9042 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9043 changes.
9044 * pa/pa.c (emit_move_sequence): Corresponding changes.
9045 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9046
9047 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9048
9049 PR target/47551
9050 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9051 structure modes. Don't check neon_vector_mem_operand for
9052 vector or structure modes.
9053
9054 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9055 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9056
9057 PR target/43590
9058 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9059 operand 1 and reshuffle the operands to match.
9060 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9061
9062 2011-03-30 Christian Schüler <cschueler@gmx.de>
9063
9064 PR driver/48208
9065 * config/c.opt (F): Added 'Driver' to -F option.
9066
9067 PR driver/48260
9068 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9069 handler function.
9070 * config/darwin.opt: Added '-arch' option.
9071
9072 2011-03-30 Nick Clifton <nickc@redhat.com>
9073
9074 * config/rx/rx.md: Add peepholes and patterns to combine
9075 extending loads and simple arithmetic instructions.
9076 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9077 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9078 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9079 modes to use pre-decrement and post-increment addressing.
9080 (rx_is_restricted_memory_address): Add range checking of REG+INT
9081 addresses.
9082 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9083 (rx_memory_move_cost): Adjust cost of stores.
9084 (rx_adjust_insn_length): New function.
9085
9086 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9087
9088 PR c/48305
9089 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9090 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9091 matching arg00/arg01 types.
9092
9093 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9094
9095 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9096 last_location to UNKNOWN_LOCATION.
9097
9098 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9099
9100 PR target/48349
9101 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9102 FLOAT_SSE_REGS.
9103
9104 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9105 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9106
9107 PR bootstrap/48337
9108 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9109 Init(PROCESSOR_V7).
9110 (sparc_cpu): Likewise.
9111 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9112 PROCESSOR_V7.
9113
9114 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9115
9116 PR target/48336
9117 PR middle-end/48342
9118 PR rtl-optimization/48345
9119 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9120 hard regs for given mode from profitable regs when doing secondary
9121 allocation.
9122
9123 2011-03-29 Jeff Law <law@redhat.com>
9124
9125 PR bootstrap/48327
9126 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9127 do_not_duplicate field.
9128 (lookup_redirection_data): Corresponding changes.
9129 (create_duplicates): Always create a template block.
9130 (redirect_edges): Remove code which reused the original block
9131 when it was going to become unreachable code.
9132 (thread_block): Don't set do_not_duplicate field.
9133
9134 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9135
9136 * lto-opts.c (register_user_option_p, lto_register_user_option):
9137 Make type argument unsigned.
9138 * lto-streamer.h (lto_register_user_option): Make type argument
9139 unsigned.
9140 * opth-gen.awk: Make CL_* macros unsigned.
9141 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9142 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9143 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9144 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9145 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9146 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9147 (find_opt): Make lang_mask argument unsigned.
9148
9149 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9150
9151 PR rtl-optimization/48331
9152 PR rtl-optimization/48334
9153 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9154 for any used algorithm.
9155
9156 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9157
9158 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9159 to parent_max.
9160
9161 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9162
9163 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9164 (alpha_option_override): Don't set alpha_sr_alias_set.
9165 (emit_frame_store_1): Use gen_frame_mem rather than calling
9166 set_mem_alias_set.
9167 (alpha_expand_epilogue): Ditto.
9168
9169 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9170
9171 PR tree-optimization/48290
9172 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9173 vectorization, check that relevant phis in the basic block after
9174 the inner loop are really inner loop's exit phis.
9175
9176 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9177
9178 PR debug/48190
9179 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9180 (cached_dw_loc_list_def): New structure.
9181 (cached_dw_loc_list): New typedef.
9182 (cached_dw_loc_list_table): New variable.
9183 (cached_dw_loc_list_table_hash): New function.
9184 (cached_dw_loc_list_table_eq): Likewise.
9185 (add_location_or_const_value_attribute): Take a bool cache_p.
9186 Cache the list when the parameter is true.
9187 (gen_formal_parameter_die): Update caller.
9188 (gen_variable_die): Likewise.
9189 (dwarf2out_finish): Likewise.
9190 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9191 while generating debug info for the decl.
9192 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9193 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9194 (resolve_addr): Cache the result of resolving a chain of
9195 location lists.
9196
9197 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9198
9199 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9200 conflict object hard regset nodes have intersecting hard reg sets.
9201
9202 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9203 after regstat_init_n_sets_and_refs.
9204
9205 * ira.c: Add more comments at the top.
9206 (setup_stack_reg_pressure_class, setup_pressure_classes):
9207 Add comments how we compute the register pressure classes.
9208 (setup_allocno_and_important_classes): Add more comments.
9209 (setup_class_translate_array, reorder_important_classes)
9210 (setup_reg_class_relations): Add comments.
9211
9212 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9213 start of the file.
9214
9215 * ira-color.c: Add 2011 to the Copyright line.
9216 (assign_hard_reg): Add more comments.
9217 (improve_allocation): Ditto.
9218
9219 * ira-costs.c: Add 2011 to the Copyright line.
9220 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9221 comments.
9222 (setup_regno_cost_classes_by_mode): Ditto.
9223
9224 Initial patches from ira-improv branch:
9225
9226 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9227
9228 * ira-build.c (ira_create_object): Remove initialization of
9229 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9230 (ira_create_allocno): Remove initialization of
9231 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9232 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9233 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9234 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9235 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9236 Initialize ALLOCNO_ADD_DATA.
9237 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9238 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9239 ALLOCNO_REG.
9240 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9241 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9242
9243 * ira.c (ira_reallocate): Remove.
9244 (setup_pressure_classes): Call
9245 ira_init_register_move_cost_if_necessary. Use
9246 ira_register_move_cost instead of ira_get_register_move_cost.
9247 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9248 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9249
9250 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9251 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9252 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9253 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9254 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9255 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9256 Fix formatting.
9257 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9258 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9259 (struct allocno_color_data): New.
9260 (allocno_color_data_t): New typedef.
9261 (allocno_color_data): New definition.
9262 (ALLOCNO_COLOR_DATA): New macro.
9263 (struct object_color_data): New.
9264 (object_color_data_t): New typedef.
9265 (object_color_data): New definition.
9266 (OBJECT_COLOR_DATA): New macro.
9267 (update_copy_costs, calculate_allocno_spill_cost): Call
9268 ira_init_register_move_cost_if_necessary. Use
9269 ira_register_move_cost instead of ira_get_register_move_cost.
9270 (move_spill_restore, update_curr_costs): Ditto.
9271 (allocno_spill_priority): Make it inline.
9272 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9273 (struct coalesce_data, coalesce_data_t): New.
9274 (allocno_coalesce_data): New definition.
9275 (ALLOCNO_COALESCE_DATA): New macro.
9276 (merge_allocnos, coalesced_allocno_conflict_p): Use
9277 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9278 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9279 (coalesce_allocnos): Ditto.
9280 (setup_coalesced_allocno_costs_and_nums): Ditto.
9281 (collect_spilled_coalesced_allocnos): Ditto.
9282 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9283 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9284 (coalesce_spill_slots): Ditto.
9285 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9286 free allocno_coalesce_data.
9287
9288 * ira-conflicts.c: Fix formatting.
9289 (process_regs_for_copy): Call
9290 ira_init_register_move_cost_if_necessary. Use
9291 ira_register_move_cost instead of ira_get_register_move_cost.
9292 (build_object_conflicts): Optimize.
9293
9294 * ira-costs.c (record_reg_classes): Optimize. Call
9295 ira_init_register_move_cost_if_necessary. Use
9296 ira_register_move_cost, ira_may_move_in_cost, and
9297 ira_may_move_out_cost instead of ira_get_register_move_cost and
9298 ira_get_may_move_cost.
9299 (record_address_regs): Ditto.
9300 (scan_one_insn): Optimize.
9301 (find_costs_and_classes): Optimize.
9302 (process_bb_node_for_hard_reg_moves): Call
9303 ira_init_register_move_cost_if_necessary. Use
9304 ira_register_move_cost instead of ira_get_register_move_cost.
9305
9306 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9307 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9308 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9309 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9310 definitions.
9311 (ira_initiate_emit_data, ira_finish_emit_data)
9312 (create_new_allocno): New functions.
9313 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9314 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9315 Use ira_register_move_cost instead of ira_get_register_move_cost.
9316
9317 * ira-int.h: Fix some comments.
9318 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9319 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9320 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9321 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9322 add_data.
9323 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9324 bitfield after mode. Make hard_regno a short int. Make
9325 hard_regno short. Remove first_coalesced_allocno and
9326 next_coalesced_allocno. Move mem_optimized_dest_p,
9327 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9328 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9329 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9330 temp, colorable_p. Add new member add_data.
9331 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9332 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9333 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9334 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9335 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9336 (ALLOCNO_ADD_DATA): New macro.
9337 (ira_emit_data_t): New typedef.
9338 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9339 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9340 from struct ira_allocno.
9341 (ALLOCNO_EMIT_DATA): New macro.
9342 (ira_allocno_emit_data, allocno_emit_reg): New.
9343 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9344 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9345 (OBJECT_ADD_DATA): New macro.
9346 (ira_reallocate): Remove.
9347 (ira_initiate_emit_data, ira_finish_emit_data): New.
9348 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9349 (ira_init_register_move_cost_if_necessary): New.
9350 (ira_object_conflict_iter_next): Merge into
9351 ira_object_conflict_iter_cond.
9352 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9353
9354 * ira-live.c (process_single_reg_class_operands): Call
9355 ira_init_register_move_cost_if_necessary. Use
9356 ira_register_move_cost instead of ira_get_register_move_cost.
9357
9358 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9359
9360 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9361
9362 * ira-costs.c: Fix formatting.
9363 (cost_classes, cost_classes_num): Remove.
9364 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9365 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9366 (cost_classes_del, cost_classes_htab): New.
9367 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9368 (initiate_regno_cost_classes, setup_cost_classes): New.
9369 (setup_regno_cost_classes_by_aclass): New.
9370 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9371 (record_reg_classes): Use regno_cost_classes instead of
9372 cost_classes. Move checking opposite operand up.
9373 (record_address_regs): Use regno_cost_classes
9374 instead of cost_classes.
9375 (scan_one_insn): Ditto. Use always general register.
9376 (print_allocno_costs): Use regno_cost_classes instead of
9377 cost_classes.
9378 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9379 (find_costs_and_classes): Set up cost classes for each registers.
9380 Use also their mode for this. Use regno_cost_classes instead of
9381 cost_classes.
9382 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9383 cost_classes.
9384 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9385 (ira_costs, ira_set_pseudo_classes): Call
9386 initiate_regno_cost_classes and finish_regno_cost_classes.
9387
9388 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9389
9390 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9391
9392 * target.def (ira_cover_classes): Remove.
9393
9394 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9395
9396 * doc/tm.texi.in: Ditto.
9397
9398 * ira-conflicts.c: Remove mentioning cover classes from the file.
9399 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9400 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9401
9402 * targhooks.c (default_ira_cover_classes): Remove.
9403
9404 * targhooks.h (default_ira_cover_classes): Ditto.
9405
9406 * haifa-sched.c: Remove mentioning cover classes from the file.
9407 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9408 ira_pressure_classes and ira_pressure_classes_num instead of
9409 ira_reg_class_cover_size and ira_reg_class_cover. Use
9410 sched_regno_pressure_class instead of sched_regno_cover_class.
9411 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9412 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9413
9414 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9415 classes from the file.
9416 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9417 (struct object_hard_regs, struct object_hard_regs_node): New.
9418 (struct ira_object): New members profitable_hard_regs,
9419 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9420 (struct ira_allocno): Rename cover_class to aclass. Rename
9421 cover_class_cost and updated_cover_class_cost to class_cost and
9422 updated_class_cost. Remove splay_removed_p and
9423 left_conflict_size. Add new members colorable_p.
9424 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9425 (ALLOCNO_COLORABLE_P): New macro.
9426 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9427 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9428 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9429 (OBJECT_...): Rename parameter C to O.
9430 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9431 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9432 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9433 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9434 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9435 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9436 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9437 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9438 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9439 x_ira_reg_class_subunion.
9440 (ira_max_memory_move_cost, ira_max_register_move_cost)
9441 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9442 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9443 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9444 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9445 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9446 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9447 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9448 (ira_tune_allocno_costs_and_cover_classes): Rename to
9449 ira_tune_allocno_costs.
9450 (ira_debug_hard_regs_forest): New.
9451 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9452 (ira_object_conflict_iter_next): Fix comments.
9453 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9454 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9455 cover_class to aclass.
9456 (ira_allocate_and_accumulate_costs): Ditto.
9457 (ira_allocate_and_set_or_copy_costs): Ditto.
9458
9459 * opts.c (decode_options): Remove ira_cover_class check.
9460
9461 * ira-color.c: Remove mentioning cover classes from the file. Use
9462 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9463 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9464 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9465 (splay-tree.h): Remove include.
9466 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9467 before copy_freq_compare_func.
9468 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9469 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9470 New definitions.
9471 (hard_regs_roots, hard_regs_node_vec): Ditto.
9472 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9473 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9474 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9475 (create_new_object_hard_regs_node): Ditto.
9476 (add_new_object_hard_regs_node_to_forest): Ditto.
9477 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9478 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9479 Ditto.
9480 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9481 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9482 (remove_unused_object_hard_regs_nodes): Ditto.
9483 (enumerate_object_hard_regs_nodes): Ditto.
9484 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9485 (object_hard_regs_subnode_t): Ditto.
9486 (struct object_hard_regs_subnode): Ditto.
9487 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9488 (setup_object_hard_regs_subnode_index): Ditto.
9489 (get_object_hard_regs_subnodes_num): Ditto.
9490 (form_object_hard_regs_nodes_forest): Ditto.
9491 (finish_object_hard_regs_nodes_tree): Ditto.
9492 (finish_object_hard_regs_nodes_forest): Ditto.
9493 (allocnos_have_intersected_live_ranges_p): Rename to
9494 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9495 (pseudos_have_intersected_live_ranges_p): Rename to
9496 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9497 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9498 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9499 (update_copy_costs): Remove assert. Skip cost update if the hard
9500 reg does not belong the class.
9501 (assign_hard_reg): Process only profitable hard regs.
9502 (uncolorable_allocnos_num): Make it scalar.
9503 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9504 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9505 and ira_reg_class_max_nregs.
9506 (bucket_allocno_compare_func): Check frequency first.
9507 (sort_bucket): Add compare function as a parameter.
9508 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9509 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9510 (push_allocno_to_stack): Rewrite for checking new allocno
9511 colorability.
9512 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9513 (push_only_colorable): Pass new parameter to sort_bucket.
9514 (push_allocno_to_spill): Remove.
9515 (allocno_spill_priority_compare): Make it inline and rewrite.
9516 (splay_tree_allocate, splay_tree_free): Remove.
9517 (allocno_spill_sort_compare): New function.
9518 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9519 build and use splay tree. Choose first allocno in uncolorable
9520 allocno bucket to spill. Remove setting spill cost.
9521 (all_conflicting_hard_regs): Remove.
9522 (setup_allocno_available_regs_num): Check only profitable hard
9523 regs. Print info about hard regs nodes.
9524 (setup_allocno_left_conflicts_size): Remove.
9525 (put_allocno_into_bucket): Don't call
9526 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9527 (improve_allocation): New.
9528 (color_allocnos): Call setup_profitable_hard_regs,
9529 form_object_hard_regs_nodes_forest, improve_allocation,
9530 finish_object_hard_regs_nodes_forest. Setup spill cost.
9531 (print_loop_title): Use pressure classes.
9532 (color_allocnso): Ditto.
9533 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9534 and allocnos_for_spilling.
9535 (ira_sort_regnos_for_alter_reg): Don't setup members
9536 {first,next}_coalesced_allocno.
9537 (color): Remove allocating and freeing removed_splay_allocno_vec.
9538 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9539 prohibited_class_mode_regs.
9540
9541 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9542 formatting.
9543 (update_allocno_pressure_excess_length): Use pressure classes.
9544 (inc_register_pressure, dec_register_pressure): Check for pressure
9545 class.
9546 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9547 pressure class. Use ira_reg_class_nregs instead of
9548 ira_reg_class_max_nregs.
9549 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9550 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9551 (single_reg_class): Use ira_reg_class_nregs instead of
9552 ira_reg_class_max_nregs.
9553 (process_bb_node_lives): Use pressure classes.
9554
9555 * ira-emit.c: Remove mentioning cover classes from the file. Use
9556 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9557 (change_loop): Use pressure classes.
9558 (modify_move_list): Call ira_set_allocno_class instead of
9559 ira_set_allocno_cover_class.
9560
9561 * ira-build.c: Remove mentioning cover classes from the file. Use
9562 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9563 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9564 ALLOCNO_UPDATED_CLASS_COST instead of
9565 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9566 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9567 (ira_create_allocno): Remove initialization of
9568 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9569 ALLOCNO_COLORABLE_P.
9570 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9571 Update conflict regs for the objects.
9572 (create_cap_allocno): Remove assert. Don't propagate
9573 ALLOCNO_AVAILABLE_REGS_NUM.
9574 (ira_free_allocno_costs): New function.
9575 (finish_allocno): Change a part of code into call of
9576 ira_free_allocno_costs.
9577 (low_pressure_loop_node_p): Use pressure classes.
9578 (object_range_compare_func): Don't compare classes.
9579 (setup_min_max_conflict_allocno_ids): Ditto.
9580
9581 * loop-invariant.c: Remove mentioning cover classes from the file.
9582 Use ira_pressure_classes and ira_pressure_classes_num instead of
9583 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9584 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9585 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9586 Use reg_allocno_class instead of reg_cover_class.
9587 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9588 STACK_REG_COVER_CLASS.
9589 (get_regno_cover_class): Rename to get_regno_pressure_class.
9590 (move_loop_invariants): Initialize and finalize regstat.
9591
9592 * ira.c: Remove mentioning cover classes from the file. Add
9593 comments about coloring without cover classes. Use ALLOCNO_CLASS
9594 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9595 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9596 setup_class_subset_and_memory_move_costs.
9597 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9598 (setup_cover_and_important_classes): Rename to
9599 setup_allocno_and_important_classes.
9600 (setup_class_translate_array): New.
9601 (setup_class_translate): Call it for allocno and pressure classes.
9602 (cover_class_order): Rename to allocno_class_order.
9603 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9604 of ira_class_translate.
9605 (reorder_important_classes): Set up ira_important_class_nums.
9606 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9607 (print_class_cover): Rename to print_classes. Add parameter.
9608 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9609 Print pressure classes too.
9610 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9611 setup_reg_subclasses.
9612 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9613 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9614 (setup_prohibited_class_mode_regs): Use
9615 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9616 (clarify_prohibited_class_mode_regs): New function.
9617 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9618 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9619 (ira_init_once): Initialize them.
9620 (free_register_move_costs): Process them.
9621 (ira_init): Move calls of find_reg_classes and
9622 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9623 Call clarify_prohibited_class_mode_regs.
9624 (ira_no_alloc_reg): Remove.
9625 (too_high_register_pressure_p): Use pressure classes.
9626
9627 * sched-deps.c: Remove mentioning cover classes from the file.
9628 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9629 ira_pressure_classes and ira_pressure_classes_num instead of
9630 ira_reg_class_cover_size and ira_reg_class_cover.
9631 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9632 sched_regno_pressure_class instead of sched_regno_cover_class.
9633 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9634 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9635
9636 * ira.h: Add 2010 to Copyright.
9637 (ira_no_alloc_reg): Remove external.
9638 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9639 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9640 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9641 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9642 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9643 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9644 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9645 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9646 x_ira_no_alloc_regs.
9647 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9648 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9649 ira_allocno_classes_num and ira_allocno_classes.
9650 (ira_class_translate): Rename to ira_allocno_class_translate.
9651 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9652 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9653 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9654 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9655 (ira_no_alloc_regs): New.
9656
9657 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9658 classes from the file. Use ALLOCNO_CLASS instead of
9659 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9660 ALLOCNO_COVER_CLASS_COST.
9661 (regno_cover_class): Rename to regno_aclass.
9662 (record_reg_classes): Use ira_reg_class_subunion instead of
9663 ira_reg_class_union.
9664 (record_address_regs): Check overflow.
9665 (scan_one_insn): Ditto.
9666 (print_allocno_costs): Print total mem cost fore regional allocation.
9667 (print_pseudo_costs): Use REG_N_REFS.
9668 (find_costs_and_classes): Use classes intersected with them on the
9669 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9670 ira_reg_class_union. Use ira_allocno_class_translate and
9671 regno_aclass instead of ira_class_translate and regno_cover_class.
9672 Modify code for finding regno_aclass. Setup preferred classes for
9673 the next pass.
9674 (setup_allocno_cover_class_and_costs): Rename to
9675 setup_allocno_class_and_costs. Use regno_aclass instead of
9676 regno_cover_class. Use ira_set_allocno_class instead of
9677 ira_set_allocno_cover_class.
9678 (init_costs, finish_costs): Use regno_aclass instead of
9679 regno_cover_class.
9680 (ira_costs): Use setup_allocno_class_and_costs instead of
9681 setup_allocno_cover_class_and_costs.
9682 (ira_tune_allocno_costs_and_cover_classes): Rename to
9683 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9684 by processing objects. Use ira_reg_class_max_nregs instead of
9685 ira_reg_class_nregs.
9686
9687 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9688
9689 * sched-int.h: Remove mentioning cover classes from the file.
9690 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9691
9692 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9693 classes from the file.
9694 (struct reg_pref): Rename coverclass into allocnoclass.
9695 (reg_cover_class): Rename to reg_allocno_class.
9696
9697 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9698
9699 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9700
9701 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9702
9703 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9704
9705 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9706
9707 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9708
9709 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9710
9711 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9712
9713 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9714
9715 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9716
9717 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9718 (i386_ira_cover_classes): Ditto.
9719
9720 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9721
9722 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9723
9724 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9725
9726 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9727
9728 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9729
9730 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9731
9732 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9733 (mips_ira_cover_classes): Ditto.
9734
9735 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9736
9737 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9738
9739 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9740
9741 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9742
9743 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9744
9745 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9746 (IRA_COVER_CLASSES_VSX): Ditto.
9747
9748 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9749 (rs6000_ira_cover_classes): Ditto.
9750
9751 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9752
9753 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9754
9755 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9756
9757 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9758
9759 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9760
9761 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9762
9763 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9764
9765 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9766
9767 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9768
9769 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9770
9771 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9772
9773 PR debug/48253
9774 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9775 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9776 dw_fde_unlikely_section_end_label, cold_in_std_section,
9777 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9778 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9779 fields.
9780 (output_fde): Use dw_fde_second_{begin,end} if second is
9781 true, otherwise dw_fde_{begin,end}.
9782 (output_call_frame_info): Test dw_fde_second_begin != NULL
9783 instead of dw_fde_switched_sections.
9784 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9785 fields, initialize new fields. Initialize in_std_section
9786 unconditionally from the first partition.
9787 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9788 dw_fde_second_begin is non-NULL.
9789 (dwarf2out_switch_text_section): Stop initializing removed
9790 dw_fde_struct fields, initialize new fields, initialize
9791 also dw_fde_end here. Set dw_fde_switch_cfi even when
9792 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9793 (struct var_loc_list_def): Add last_before_switch field.
9794 (arange_table, arange_table_allocated, arange_table_in_use,
9795 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9796 (size_of_aranges): Count !in_std_section and !second_in_std_section
9797 hunks in fdes, instead of looking at arange_table_in_use.
9798 (output_aranges): Add aranges_length argument, don't call
9799 size_of_aranges here. Instead of using aranges_table*
9800 emit ranges for fdes when !in_std_section resp.
9801 !second_in_std_section.
9802 (dw_loc_list): Break ranges crossing section switch.
9803 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9804 use dw_fde_second_end instead of dw_fde_end as end of last range.
9805 (gen_subprogram_die): Don't call add_arange. Use
9806 dw_fde_{begin,end} for first partition and if switched
9807 section dw_fde_second_{begin,end} for the second.
9808 (var_location_switch_text_section_1,
9809 var_location_switch_text_section): New functions.
9810 (dwarf2out_begin_function): Initialize cold_text_section even
9811 when function_section () isn't text_section.
9812 (prune_unused_types): Don't walk arange_table.
9813 (dwarf2out_finish): Don't needlessly test
9814 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9815 If info_section_emitted, call size_of_aranges and if it indicates
9816 non-empty .debug_aranges, call output_aranges with the computed
9817 size. Stop using removed dw_fde_struct fields, use
9818 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9819 for second.
9820
9821 PR debug/48203
9822 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9823 create ENTRY_VALUE if incoming or address of incoming's MEM
9824 is a hard REG.
9825 * dwarf2out.c (mem_loc_descriptor): Don't emit
9826 DW_OP_GNU_entry_value of DW_OP_fbreg.
9827 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9828 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9829 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9830 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9831 ENTRY_VALUE_EXPs.
9832 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9833 is a REG_P or MEM_P with REG_P address, compute hash directly
9834 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9835 (preserve_only_constants): Don't clear VALUES forwaring
9836 ENTRY_VALUE to some other VALUE.
9837
9838 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9839
9840 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9841 instead of GEN_INT.
9842
9843 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9844
9845 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9846 block before expanding the statement.
9847 (expand_gimple_stmt_1): Likewise. Set them here...
9848 (expand_gimple_stmt): ...and not here. Tidy.
9849 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9850 unknown.
9851
9852 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9853
9854 * Makefile.in: New rule for cprop.o.
9855 * gcse.c: Move constant/copy propagation to cprop.c.
9856 (compute_local_properties): Only handle expression tables.
9857 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9858 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9859 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9860 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9861 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9862 compute_cprop_data, find_used_regs, try_replace_reg,
9863 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9864 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9865 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9866 find_bypass_set, reg_killed_on_edge, bypass_block,
9867 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9868 execute_rtl_cprop, pass_rtl_cprop): Move to...
9869 * cprop.c: ...here. New file, constant/copy propagation for RTL
9870 moved from gcse.c to here with minor cleanups in duplicated code.
9871
9872 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9873
9874 * config/i386/i386.c (flag_opts): Fix a typo in
9875 -mavx256-split-unaligned-store.
9876
9877 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9878
9879 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9880 LIBCALL_VALUE): Remove macros.
9881 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9882 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9883 (h8300_function_value, h8300_libcall_value,
9884 h8300_function_value_regno_p): New functions.
9885
9886 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9887
9888 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9889
9890 2011-03-28 Jeff Law <law@redhat.com>
9891
9892 * tree-ssa-threadupdate.c (redirect_edges): Call
9893 create_edge_and_update_destination_phis as needed.
9894 (create_edge_and_update_destination_phis): Accept new BB argument.
9895 All callers updated.
9896 (thread_block): Do not update the profile when threading around
9897 intermediate blocks.
9898 (thread_single_edge): Likewise.
9899 (determine_bb_domination_status): If BB is not a successor of the
9900 loop header, return NONDOMINATING.
9901 (register_jump_thread): Note when we register a jump thread around
9902 an intermediate block.
9903 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9904 (thread_across_edge): Use it.
9905
9906 2011-03-28 Tristan Gingold <gingold@adacore.com>
9907
9908 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9909 when for_return is 2.
9910
9911 2011-03-28 Jeff Law <law@redhat.com>
9912
9913 * var-tracking.c (canonicalize_values_mark): Delete unused
9914 lhs assignment.
9915 (canonicalize_values_star, set_variable_part): Likewise.
9916 (clobber_variable_part, delete_variable_part): Likewise.
9917
9918 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9919
9920 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9921
9922 2011-03-28 Martin Jambor <mjambor@suse.cz>
9923
9924 * tree-inline.c (expand_call_inline): Do not check that destination
9925 node is analyzed.
9926 (optimize_inline_calls): Assert that destination node is analyzed.
9927 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9928 not call tree_lowering_passes.
9929 * cgraph.h (cgraph_analyze_function): Declare.
9930 * cgraphunit.c (cgraph_analyze_function): Make public.
9931
9932 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9933
9934 * config/sparc/sparc-opts.h: New.
9935 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9936 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9937 (sparc_option_override): Store processor_type enumeration rather
9938 than string in cpu_default. Remove name and enumeration from
9939 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9940 without using sparc_select. Use target_flags_explicit instead of
9941 fpu_option_set.
9942 * config/sparc/sparc.h (enum processor_type): Move to
9943 sparc-opts.h.
9944 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9945 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9946 HeaderInclude entry.
9947 (mcpu=, mtune=): Use Var and Enum.
9948 (sparc_processor_type): New Enum and EnumValue entries.
9949
9950 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9951 Iain Sandoe <iains@gcc.gnu.org>
9952
9953 PR target/48245
9954 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9955
9956 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9957
9958 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9959 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9960 Insert new statements at it in lieu of STMT.
9961 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9962 * tree-vect-stmts.c (vectorizable_store): Likewise.
9963 (vectorizable_load): Likewise.
9964
9965 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9966
9967 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9968 (divtf3): Ditto.
9969 (multf3): Ditto.
9970 (subtf3): Ditto.
9971
9972 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9973
9974 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9975 unaligned 256bit load/store.
9976 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9977 (*avx_movdqu<avxmodesuffix>): Likewise.
9978
9979 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9980
9981 PR target/48288
9982 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9983 * config/pa/pa.md (iordi3): Use new predicate in expander.
9984 (iorsi3): Likewise.
9985
9986 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9987
9988 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9989 FUNCTION_VALUE_REGNO_P): Remove macros.
9990 * config/mips/mips-protos.h (mips_function_value): Remove.
9991 * config/mips/mips.c (mips_function_value): Rename to...
9992 (mips_function_value_1): ... this. Make static. Handle receiving
9993 the function type in 'fn_decl_or_type' argument.
9994 (mips_function_value, mips_libcall_value,
9995 mips_function_value_regno_p): New function.
9996 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9997 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9998
9999 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10000
10001 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10002 and -mavx256-split-unaligned-store.
10003 (ix86_option_override_internal): Split 32-byte AVX unaligned
10004 load/store by default.
10005 (ix86_avx256_split_vector_move_misalign): New.
10006 (ix86_expand_vector_move_misalign): Use it.
10007
10008 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10009 -mavx256-split-unaligned-store.
10010
10011 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10012 256bit load/store. Generate unaligned store on misaligned memory
10013 operand.
10014 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10015 256bit load/store.
10016 (*avx_movdqu<avxmodesuffix>): Likewise.
10017
10018 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10019 -mavx256-split-unaligned-store.
10020
10021 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10022
10023 PR target/38598
10024 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10025 Update commentary.
10026
10027 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10028
10029 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10030 opno arguments with an expand_operand. Use create_input_operand.
10031 (mips_prepare_builtin_target): Delete.
10032 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10033 functions.
10034 (mips_expand_builtin_direct): Use create_output_operand and
10035 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10036 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10037 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10038
10039 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10040
10041 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10042 function.
10043 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10044
10045 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10046
10047 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10048 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10049 basic blocks and call commit_edge_insertions directly.
10050 (fixup_abnormal_edges): Move from here to...
10051 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10052 on the edges and return whether some have actually been inserted.
10053 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10054 compensation code.
10055
10056 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10057
10058 PR rtl-optimization/48144
10059 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10060 (merge_expr_data): ... here.
10061 (av_set_intersect): Rename to av_set_code_motion_filter.
10062 Update all callers. Call merge_history_vect when an expression
10063 is found in both sets.
10064 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10065
10066 2011-03-26 Alan Modra <amodra@gmail.com>
10067
10068 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10069 cmodel medium addresses.
10070 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10071 64-bit gpr loads and stores.
10072 (rs6000_secondary_reload_ppc64): New function.
10073 * config/rs6000/rs6000-protos.h: Declare it.
10074 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10075
10076 2011-03-26 Alan Modra <amodra@gmail.com>
10077
10078 PR target/47487
10079 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10080 GNU Go in traceback table.
10081
10082 2011-03-25 Richard Henderson <rth@redhat.com>
10083
10084 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10085 if there are exactly 6 operands.
10086 (set_storage_via_setmem): Similarly.
10087
10088 2011-03-25 Kai Tietz <ktietz@redhat.com>
10089
10090 * collect2.c (write_c_file_stat): Handle backslash
10091 as right-hand directory separator.
10092 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10093 checking just for slash.
10094 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10095 instead of checking for trailing slash.
10096 * gcc.c (record_temp_file): Use filename_cmp instead
10097 of strcmp.
10098 (do_spec_1): Likewise.
10099 (replace_outfile_spec_function): Likewise.
10100 (is_directory): Use filename_ncmp instead of strncmp.
10101 (print_multilib_info): Likewise.
10102 * gcov.c (find_source): Use filename_cmp instead
10103 instead of strcmp.
10104 (make_gcov_file_name): Fix order of slash/backslash
10105 checks.
10106 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10107 (add_standard_paths): Likewise.
10108 * mips-tfile.c (saber_stop): Handle backslash.
10109 * prefix.c (update_path): Use filename_ncmp instead of
10110 strncmp.
10111 * profile.c (output_location): Use filename_cmp instead
10112 of strcmp.
10113 * read-md.c (handle_toplevel_file): Handle backslash.
10114 * tlink.c (frob_extension): Likewise.
10115 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10116 strcmp.
10117 * tree-dump.c (dequeue_and_dump): Handle backslash.
10118 * tree.c (get_file_function_name): Likewise.
10119 * gengtype.c (read_input_list): Likewise.
10120 (get_file_realbasename): Likewise.
10121 (get_output_file_with_visibility): Use filename_cmp
10122 instead of strcmp.
10123
10124 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10125
10126 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10127 case to VFPv1.
10128
10129 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10130
10131 * fold-const.c (expr_location_or): New function.
10132 (fold_truth_not_expr): Call it.
10133
10134 2011-03-25 Jeff Law <law@redhat.com>
10135
10136 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10137 va_end.
10138 * c-family/c-common.c (def_fn_type): Likewise.
10139 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10140 * emit-rtl.c (gen_rtvec): Likewise.
10141 * lto/lto-lang.c (def_fn_type): Likewise.
10142
10143 2011-03-25 Richard Guenther <rguenther@suse.de>
10144
10145 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10146 also generate copies.
10147 (fini_copy_prop): Handle constant values properly.
10148
10149 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10150
10151 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10152 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10153 (hash_loc_operands, compare_loc_operands): Handle
10154 DW_OP_GNU_entry_value.
10155
10156 2011-03-25 Kai Tietz <ktietz@redhat.com>
10157
10158 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10159 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10160 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10161 comment and use macro TARGET_64BIT_MS_ABI instead.
10162 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10163 and change default behavior for 32-bit MS_ABI.
10164 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10165 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10166 32-bit, too.
10167 (ix86_cfun_abi): Likewise.
10168 (ix86_maybe_switch_abi): Adjust comment.
10169 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10170 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10171 instead of checking for SYSV_ABI.
10172 (ix86_nsaved_sseregs): Likewise.
10173 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10174 to 16 bytes.
10175 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10176 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10177 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10178 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10179 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10180
10181 2011-03-25 Richard Guenther <rguenther@suse.de>
10182
10183 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10184 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10185 (verify_gimple): Remove.
10186 * tree-cfg.c (verify_gimple_call): Merge verification
10187 from verify_stmts.
10188 (verify_gimple_phi): Merge verification from verify_stmts.
10189 (verify_gimple_label): New function.
10190 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10191 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10192 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10193 (verify_stmts): Rename to verify_gimple_in_cfg.
10194 (verify_gimple_in_cfg): New function.
10195 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10196 * tree-ssa.c (verify_ssa): Likewise.
10197 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10198
10199 2011-03-25 Richard Guenther <rguenther@suse.de>
10200
10201 * passes.c (init_optimization_passes): Add FRE pass after
10202 early SRA.
10203
10204 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10205 Andrew Stubbs <ams@codesourcery.com>
10206
10207 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10208 for Cortex-A8.
10209 (arm_movdi_vfp_cortexa8): New pattern.
10210 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10211 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10212 instructions when tuning for Cortex-A8. Set attribute "arch".
10213 * config/arm/arm.md: Move include arm-tune.md up a bit.
10214 (define_attr "arch"): Add "onlya8" and "nota8" values.
10215 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10216
10217 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10218
10219 PR bootstrap/48282
10220 Revert:
10221 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10222
10223 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10224 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10225 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10226 * passes.c (init_optimization_passes): Move
10227 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10228
10229 2011-03-25 Kai Tietz <ktietz@redhat.com>
10230
10231 * c-typeck.c (comptypes_internal): Replace target
10232 hook call of comp_type_attributes by version in tree.c file.
10233 * gimple.c (gimple_types_compatible_p_1): Likewise.
10234 * tree-ssa.c (useless_type_conversion_p): Likewise.
10235 * tree.c (build_type_attribute_qual_variant): Likewise.
10236 (attribute_value_equal): New static helper function.
10237 (comp_type_attributes): New function.
10238 (merge_attributes): Use attribute_value_equal for comparison.
10239 (attribute_list_contained): Likewise.
10240 * tree.h (comp_type_attributes): New prototype.
10241
10242 2011-03-25 Richard Guenther <rguenther@suse.de>
10243
10244 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10245 of complex types at -O0.
10246 (verify_gimple_assign_binary): Likewise.
10247 (verify_gimple_assign_ternary): Likewise.
10248
10249 2011-03-24 Mark Wielaard <mjw@redhat.com>
10250
10251 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10252 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10253
10254 2011-03-24 Mark Wielaard <mjw@redhat.com>
10255
10256 PR debug/48041
10257 * dwarf2out.c (output_abbrev_section): Only write table when
10258 abbrev_die_table_in_use > 1.
10259
10260 2011-02-24 Richard Henderson <rth@redhat.com>
10261
10262 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10263 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10264 (alpha_expand_unaligned_load_words): Use extql.
10265 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10266 (emit_insxl): Handle all modes for consistency.
10267
10268 2011-02-24 Richard Henderson <rth@redhat.com>
10269
10270 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10271 (alpha_expand_unaligned_load): Likewise.
10272 (alpha_expand_unaligned_store): Likewise.
10273 (alpha_expand_unaligned_load_words): Likewise.
10274 (alpha_expand_unaligned_store_words): Likewise.
10275 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10276 (alpha_split_lock_test_and_set_12): Likewise.
10277 (print_operand, alpha_fold_builtin_extxx): Likewise.
10278 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10279 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10280 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10281 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10282 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10283 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10284 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10285 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10286 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10287 (extwl, extll, extql): Similarly.
10288 (inswh, inslh, insqh): Similarly.
10289 (mskbl, mskwl, mskll, mskql): Similarly.
10290 (mskwh, msklh, mskqh): Similarly.
10291
10292 2011-02-24 Richard Henderson <rth@redhat.com>
10293
10294 * config/alpha/alpha.md (attribute isa): Add er, ner.
10295 (attribute enabled): Handle them.
10296 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10297
10298 2011-02-24 Richard Henderson <rth@redhat.com>
10299
10300 * config/alpha/alpha.md (attribute isa): Add vms.
10301 (attribute enabled): Handle it.
10302 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10303 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10304 (*movtf): Rename from *movtf_internal for consistency.
10305 (*movsi): Merge with *movsi_nt_vms.
10306 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10307 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10308 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10309 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10310
10311 2011-02-24 Richard Henderson <rth@redhat.com>
10312
10313 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10314 (extendqisi2, extendhisi2): Likewise.
10315 (extendqidi2): Simplify BWX/non-BWX expansions.
10316 (extendhidi2): Similarly.
10317
10318 2011-02-24 Richard Henderson <rth@redhat.com>
10319
10320 * config/alpha/alpha.md (attribute isa): New.
10321 (attribute enabled): New.
10322 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10323 (zero_extendqisi2, zero_extendqidi2): Similarly.
10324 (zero_extendhisi2, zero_extendhidi2): Similarly.
10325 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10326
10327 2011-02-24 Richard Henderson <rth@redhat.com>
10328
10329 * config/alpha/predicates.md (input_operand): Revert last change;
10330 update comment to mention 32-bit VMS rather than Windows.
10331
10332 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10333
10334 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10335 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10336 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10337 * passes.c (init_optimization_passes): Move
10338 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10339
10340 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10341
10342 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10343
10344 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10345
10346 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10347 correctly.
10348
10349 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10350
10351 PR debug/48204
10352 * simplify-rtx.c (simplify_const_unary_operation): Call
10353 real_convert when changing mode class with FLOAT_EXTEND.
10354
10355 2011-03-24 Nick Clifton <nickc@redhat.com>
10356
10357 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10358 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10359 * config/rx/rx.c (rx_option_override): Set align_jumps,
10360 align_loops and align_labels if not set by the user.
10361 (rx_align_for_label): New function.
10362 (rx_max_skip_for_label): New function.
10363 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10364 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10365 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10366 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10367 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10368
10369 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10370
10371 PR rtl-optimization/48263
10372 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10373 and original commutative_p handling. Use maybe_gen_insn.
10374
10375 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10376
10377 * reload.c (find_reloads_subreg_address): Add address_reloaded
10378 parameter and return true there if the full address has been
10379 reloaded.
10380 (find_reloads_toplev): Pass address_reloaded flag.
10381 (find_reloads_address_1): Don't use address_reloaded parameter.
10382
10383 2011-03-24 Jeff Law <law@redhat.com>
10384
10385 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10386 unused variable "ann".
10387 (remove_unused_locals): Likewise.
10388
10389 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10390 statement.
10391
10392 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10393 after it is freed.
10394
10395 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10396
10397 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10398 for invalid symbolic addresses.
10399 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10400 larl operands.
10401
10402 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10403
10404 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10405 the argument in calls to fold_truth_not_expr.
10406
10407 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10408
10409 * tree.c (record_node_allocation_statistics): New function.
10410 (make_node_stat, copy_node_stat, build_string): Call it.
10411 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10412 (build1_stat, build_omp_clause): Likewise.
10413
10414 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10415
10416 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10417 last commit.
10418
10419 2011-03-24 Richard Guenther <rguenther@suse.de>
10420
10421 PR tree-optimization/48271
10422 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10423 blocks that still exist.
10424
10425 2011-03-24 Richard Guenther <rguenther@suse.de>
10426
10427 PR tree-optimization/48270
10428 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10429 not free datarefs before ddrs.
10430
10431 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10432
10433 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10434 from the address built for a reference with variable offset.
10435
10436 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10437
10438 PR target/48237
10439 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10440 alternatives that can be handled with movq or movabsq insn.
10441 (*movdf_internal): Disable for !TARGET_64BIT.
10442 (*movdf_internal_nointeger): Ditto.
10443 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10444
10445 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10446
10447 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10448 (FUNCTION_ARG_ADVANCE): Likewise.
10449 * tm.texi.in: Change references to them to hook references.
10450 * tm.texi: Regenerate.
10451 * targhooks.c (default_function_arg): Eliminate check for target macro.
10452 (default_function_incoming_arg): Likewise.
10453 (default_function_arg_advance): Likewise.
10454 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10455 (function_arg_advance): Likewise.
10456 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10457
10458 2011-03-24 Richard Guenther <rguenther@suse.de>
10459
10460 PR middle-end/48269
10461 * tree-object-size.c (addr_object_size): Do not double-account
10462 for MEM_REF offsets.
10463
10464 2011-03-24 Diego Novillo <dnovillo@google.com>
10465
10466 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10467 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10468 (lto_input_data_block): Move from lto-opts.c. Make extern.
10469 Update all users.
10470 (lto_input_string): Rename from input_string. Make extern.
10471 Update all users.
10472 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10473 output_string_with_length.
10474 Output 0 to indicate a non-NULL string. Update all callers to
10475 not emit 0.
10476 (lto_output_string): Rename from output_string. Make extern.
10477 Update all users.
10478 (lto_output_decl_state_streams): Make extern.
10479 (lto_output_decl_state_refs): Make extern.
10480 * lto-streamer.h (lto_input_string): Declare.
10481 (lto_input_data_block): Declare.
10482 (lto_output_string): Declare.
10483 (lto_output_string_with_length): Declare.
10484 (lto_output_decl_state_streams): Declare.
10485 (lto_output_decl_state_refs): Declare.
10486
10487 2011-03-24 Richard Guenther <rguenther@suse.de>
10488
10489 PR tree-optimization/46562
10490 * tree.c (build_invariant_address): New function.
10491 * tree.h (build_invariant_address): Declare.
10492 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10493 a renamed function moved ...
10494 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10495 Take valueization callback parameter.
10496 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10497 * gimple-fold.h: New file.
10498 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10499 (ccp_fold, fold_const_aggregate_ref,
10500 fold_ctor_reference, fold_nonarray_ctor_reference,
10501 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10502 get_base_constructor): Move ...
10503 * gimple-fold.c: ... here.
10504 (gimple_fold_stmt_to_constant_1): New function
10505 split out from ccp_fold. Take a valueization callback parameter.
10506 Valueize all operands.
10507 (gimple_fold_stmt_to_constant): New wrapper function.
10508 (fold_const_aggregate_ref_1): New function split out from
10509 fold_const_aggregate_ref. Take a valueization callback parameter.
10510 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10511 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10512 invariant POINTER_PLUS_EXPRs to invariant form.
10513 (vn_valueize): New function.
10514 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10515 * tree-vrp.c (vrp_valueize): New function.
10516 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10517 to fold statements to constants.
10518 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10519 function declarations.
10520 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10521 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10522
10523 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10524
10525 * config/h8300/predicates.md (jump_address_operand): Fix register
10526 mode check.
10527
10528 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10529
10530 * doc/invoke.texi (max-stores-to-sink): Document.
10531 * params.h (MAX_STORES_TO_SINK): Define.
10532 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10533 if either vectorization or if-conversion is disabled.
10534 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10535 tree-vect-data-refs.c vect_equal_offsets.
10536 (dr_equal_offsets_p): New function.
10537 (find_data_references_in_bb): Remove static.
10538 * tree-data-ref.h (find_data_references_in_bb): Declare.
10539 (dr_equal_offsets_p): Likewise.
10540 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10541 (vect_drs_dependent_in_basic_block): Update calls to
10542 vect_equal_offsets.
10543 (vect_check_interleaving): Likewise.
10544 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10545 (cond_if_else_store_replacement): Rename to...
10546 (cond_if_else_store_replacement_1): ... this. Change arguments and
10547 documentation.
10548 (cond_if_else_store_replacement): New function.
10549 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10550 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10551
10552 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10553
10554 PR target/46934
10555 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10556 to subtract lower bound instead of GEN_INT().
10557
10558 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10559
10560 PR other/48179
10561 PR other/48221
10562 PR other/48234
10563 * doc/extend.texi (Alignment): Move section to match order in TOC.
10564 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10565 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10566
10567 2011-03-23 Jeff Law <law@redhat.com>
10568
10569 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10570 before removing the edge.
10571
10572 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10573 it may have been freed by redirect_branch_edge or
10574 redirect_edge_succ_nodup.
10575
10576 2011-03-23 Richard Guenther <rguenther@suse.de>
10577
10578 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10579 (check_va_list_escapes): Likewise.
10580 (check_all_va_list_escapes): Likewise.
10581
10582 2011-03-23 Richard Guenther <rguenther@suse.de>
10583
10584 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10585 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10586 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10587 (alias.o): Likewise.
10588 (ipa-type-escape.o): Remove.
10589 (ipa-struct-reorg.o): Likewise.
10590 (GTFILES): Remove ipa-struct-reorg.c.
10591 * alias.c: Do not include ipa-type-escape.h.
10592 * tree-ssa-alias.c: Likewise.
10593 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10594 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10595 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10596 and ipa-type-escape passes.
10597 * tree-pass.h (pass_ipa_type_escape): Remove.
10598 (pass_ipa_struct_reorg): Likewise.
10599 * ipa-struct-reorg.h: Remove.
10600 * ipa-struct-reorg.c: Likewise.
10601 * ipa-type-escape.h: Likewise.
10602 * ipa-type-escape.c: Likewise.
10603 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10604 (--param struct-reorg-cold-struct-ratio): Likewise.
10605 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10606 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10607 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10608
10609 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10610
10611 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10612 cpu attribute value.
10613 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10614 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10615 * config/s390/s390.c (processor_flags_table): New constant array.
10616 (s390_handle_arch_option): Remove.
10617 (s390_handle_option): Remove s390_handle_arch_option invocations
10618 and OPT_mwarn_framesize_ handling.
10619 (s390_option_override): Remove s390_handle_arch_option invocation.
10620 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10621 warnings.
10622 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10623 * config/s390/s390.opt (s390_tune, s390_arch)
10624 (march=): Replace s390_arch_option enum and values with
10625 processor_type. Set variable name to s390_arch. Set
10626 initialization value.
10627 (mtune=): Replace s390_arch_option with processor_type. Set
10628 variable name to s390_tune. Set initialization value.
10629
10630 2011-03-23 Julian Brown <julian@codesourcery.com>
10631
10632 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10633 accesses which are not naturally aligned.
10634
10635 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10636
10637 PR target/47553
10638 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10639
10640 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10641
10642 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10643 parameter from "int" to "enum insn_code".
10644 (expand_operand_type): New enum.
10645 (expand_operand): New structure.
10646 (create_expand_operand): New function.
10647 (create_fixed_operand, create_output_operand): Likewise
10648 (create_input_operand, create_convert_operand_to): Likewise.
10649 (create_convert_operand_from, create_address_operand): Likewise.
10650 (create_integer_operand): Likewise.
10651 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10652 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10653 (expand_insn, expand_jump_insn): Likewise.
10654 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10655 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10656 (expand_movstr, expand_builtin___clear_cache): Likewise.
10657 (expand_builtin_lock_release): Likewise.
10658 * explow.c (allocate_dynamic_stack_space): Likewise.
10659 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10660 and use the default handling in that case.
10661 * expmed.c (check_predicate_volatile_ok): Delete.
10662 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10663 (emit_cstore): Likewise.
10664 * expr.c (emit_block_move_via_movmem): Likewise.
10665 (set_storage_via_setmem, expand_assignment): Likewise.
10666 (emit_storent_insn, try_casesi): Likewise.
10667 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10668 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10669 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10670 (expand_twoval_unop, expand_twoval_binop): Likewise.
10671 (expand_unop_direct, emit_indirect_jump): Likewise.
10672 (emit_conditional_move, vector_compare_rtx): Likewise.
10673 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10674 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10675 (expand_sync_lock_test_and_set): Likewise.
10676 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10677 (emit_unop_insn): Likewise.
10678 (expand_copysign_absneg): Change icode to an insn_code.
10679 (create_convert_operand_from_type): New function.
10680 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10681 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10682 (expand_insn, expand_jump_insn): Likewise.
10683 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10684 than const_int_operand for operand 2.
10685
10686 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10687
10688 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10689 if possible.
10690
10691 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10692
10693 * emit-rtl.c (emit_pattern_before_noloc): New function.
10694 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10695 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10696 (emit_pattern_after_noloc): New function.
10697 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10698 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10699
10700 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10701
10702 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10703 (__ffsDI2): Likewise.
10704
10705 2011-03-22 Richard Henderson <rth@redhat.com>
10706
10707 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10708 of !TARGET_ABI_OPEN_VMS.
10709 (alpha_trampoline_init, alpha_start_function): Likewise.
10710 (alpha_expand_epilogue, alpha_file_start): Likewise.
10711 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10712 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10713 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10714 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10715 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10716
10717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10718
10719 * config/s390/s390-opts.h: New.
10720 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10721 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10722 s390_stack_guard): Remove.
10723 (s390_handle_arch_option): Return void. Take enum
10724 s390_arch_option value instead of string and searching array.
10725 (s390_handle_option): Don't assert that global structures are in
10726 use. Access variables via opts pointer. Use error_at. Don't use
10727 sscanf for -mstack-guard= or -mstack-size=. Update call to
10728 s390_handle_arch_option.
10729 (s390_option_override): Update call to s390_handle_arch_option.
10730 (s390_emit_prologue): Use %d format for s390_stack_size in
10731 diagnostic. Use %wd for HOST_WIDE_INT.
10732 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10733 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10734 * config/s390/s390.opt (config/s390/s390-opts.h): New
10735 HeaderInclude entry.
10736 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10737 s390_arch_flags, s390_warn_framesize): New Variable entries.
10738 (s390_arch_option): New Enum and EnumValue entries.
10739 (march=): Use Enum instead of Var.
10740 (mstack-guard=, mstack-size=): Use UInteger and Var.
10741 (mtune=): Use Enum.
10742
10743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10744
10745 * config/score/score.c (score_handle_option): Don't assert that
10746 global structures are in use. Access target_flags via opts
10747 pointer. Use value of -march= option to determine target_flags
10748 settings.
10749 * config/score/score.opt (march=): Use Enum.
10750 (score_arch): New Enum and EnumValue entries.
10751
10752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10753
10754 * config/mep/mep.c (option_mtiny_specified): Remove.
10755 (mep_option_override): Move register handling for -mivc2 from
10756 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10757 instead of option_mtiny_specified.
10758 (mep_handle_option): Access target_flags via opts pointer. Don't
10759 assert that global structures are in use. Defer part of -mivc2
10760 handling and move it to mep_option_override.
10761 * config/mep/mep.opt (IVC2): New Mask entry.
10762 (mivc2): Use Var and Defer instead of Mask.
10763
10764 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10765
10766 * config/v850/v850-opts.h: New.
10767 * config/v850/v850.c (small_memory): Replace with
10768 small_memory_physical_max array. Make that array static const.
10769 (v850_handle_memory_option): Take integer value of argument. Take
10770 gcc_options pointer, option text and location. Return void.
10771 Update for changes to small memory structures.
10772 (v850_handle_option): Access target_flags via opts pointer. Don't
10773 assert that global structures are in use. Update calls to
10774 v850_handle_memory_option.
10775 (v850_encode_data_area): Update references to small memory settings.
10776 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10777 (enum small_memory_type): Move to v850-opts.h.
10778 * config/v850/v850.opt (config/v850/v850-opts.h): New
10779 HeaderInclude entry.
10780 (small_memory_max): New Variable entry.
10781 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10782 (mtda, mzda): Likewise.
10783
10784 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10785
10786 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10787 pointer. Don't assert that global structures are in use.
10788
10789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10790
10791 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10792 via opts pointer. Don't assert that global structures are in use.
10793
10794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10795
10796 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10797 (munix=93): Use Var.
10798 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10799 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10800 * config/pa/pa-opts.h: New.
10801 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10802 (pa_handle_option): Don't assert that global structures are in
10803 use. Access target_flags via opts pointer. Don't handle
10804 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10805 OPT_munix_98 here.
10806 (pa_option_override): Handle deferred OPT_mfixed_range_.
10807
10808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10809
10810 * config/mn10300/mn10300-opts.h: New.
10811 * config/mn10300/mn10300.c (mn10300_processor,
10812 mn10300_tune_string): Remove.
10813 (mn10300_handle_option): Don't assert that global structures are
10814 in use. Access mn10300_processor via opts pointer. Don't handle
10815 OPT_mtune_ here.
10816 * config/mn10300/mn10300.h (enum processor_type): Move to
10817 mn10300-opts.h.
10818 (mn10300_processor): Remove.
10819 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10820 HeaderInclude entry.
10821 (mn10300_processor): New Variable entry.
10822 (mtune=): Use Var.
10823
10824 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10825
10826 * config/microblaze/microblaze.c: Don't include opts.h.
10827 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10828 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10829 (mno-clearbss): Use Var and Warn.
10830
10831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10832
10833 * config/m32r/m32r-opts.h: New.
10834 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10835 (m32r_handle_option): Don't assert that global structures are in
10836 use. Access target_flags and m32r_cache_flush_func via opts
10837 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10838 OPT_mno_flush_trap here.
10839 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10840 include of m32r-opts.h.
10841 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10842 HeaderInclude entry.
10843 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10844 (mmodel=): Use Enum and Var.
10845 (m32r_model): New Enum and EnumValue entries.
10846 (mno-flush-trap): Use Var.
10847 (msdata=): Use Enum and Var.
10848 (m32r_sdata): New Enum and EnumValue entries.
10849
10850 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10851
10852 * config/m32c/m32c.c: Don't include opts.h.
10853 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10854 m32c_handle_option): Remove.
10855 (m32c_option_override): Check global_options_set.x_target_memregs
10856 instead of target_memregs_set.
10857 * config/m32c/m32c.h (target_memregs): Remove.
10858 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10859 variable.
10860
10861 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10862
10863 * config/iq2000/iq2000-opts.h: New.
10864 * config/iq2000/iq2000.c: Don't include opts.h.
10865 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10866 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10867 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10868 HeaderInclude entry.
10869 (iq2000_tune): New Variable entry.
10870 (march=): Add comment. Use Enum.
10871 (iq2000_arch): New Enum and EnumValue entries.
10872 (mcpu=): Use Enum and Var.
10873 (iq2000_tune): New Enum and EnumValue entries.
10874
10875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10876
10877 * config/ia64/ia64-opts.h: New.
10878 * config/ia64/ia64.c (ia64_tune): Remove.
10879 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10880 here. Use error_at.
10881 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10882 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10883 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10884 HeaderInclude entry.
10885 (ia64_tune): New Variable entry.
10886 (mfixed-range=): Use Defer and Var.
10887 (mtune=): Use Enum and Var.
10888 (ia64_tune): New Enum and EnumValue entries.
10889
10890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10891
10892 * config/frv/frv-opts.h: New.
10893 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10894 frv-opts.h.
10895 (frv_cpu_type): Remove.
10896 * config/frv/frv.c: Don't include opts.h.
10897 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10898 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10899 (frv_cpu_type): New Variable entry.
10900 (frv_cpu): New Enum and EnumValue entries.
10901
10902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10903
10904 * config/cris/cris.c (cris_handle_option): Access target_flags via
10905 opts pointer. Don't assert that global structures are in use.
10906 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10907 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10908
10909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10910
10911 * config/bfin/bfin-opts.h: New.
10912 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10913 bfin_si_revision, bfin_workarounds): Remove.
10914 (bfin_cpus): Make static const.
10915 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10916 not bfin_lib_id_given.
10917 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10918 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10919 pointer. Use error_at. Don't assert that global structures are in use.
10920 * config/bfin/bfin.h: Include bfin-opts.h.
10921 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10922 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10923 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10924 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10925 entries.
10926
10927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10928
10929 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10930 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10931 or -msoft-float here.
10932 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10933 -msoft-float and -mhard-float.
10934 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10935 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10936 msoft-float.
10937 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10938 -msoft-float.
10939 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10940 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10941 not mhard-float.
10942 (LIBGCC_SPEC): Don't handle -msoft-float.
10943 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10944 -mhard-float.
10945 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10946 msoft-float.
10947 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10948 -mfloat-abi=*, not -msoft-float and -mhard-float.
10949 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10950 -msoft-float.
10951 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10952 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10953 mhard-float and msoft-float.
10954 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10955 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10956 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10957 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10958 mhard-float.
10959 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10960 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10961 msoft-float.
10962 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10963 not mhard-float.
10964 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10965 not msoft-float.
10966
10967 2011-03-22 Richard Henderson <rth@redhat.com>
10968
10969 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10970 TARGET_ABI_WINDOWS_NT.
10971 (alpha_output_function_end_prologue): Likewise.
10972 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10973 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10974 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10975 (trap, *movsi_nt_vms): Likewise.
10976 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10977 (*tablejump_osf_nt_internal): Remove.
10978 * config/alpha/predicates.md (input_operand): Only test Pmode.
10979
10980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10981
10982 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10983 via opts pointer. Use error_at. Don't assert that global
10984 structures are in use.
10985
10986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10987
10988 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10989 (ix86_handle_option): Access ix86_isa_flags and
10990 ix86_isa_flags_explicit via opts pointer. Don't assert that
10991 global structures are in use.
10992 (ix86_function_specific_save, ix86_function_specific_restore):
10993 Update ix86_isa_flags_explicit field name.
10994 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10995 (ix86_isa_flags_explicit): Rename TargetSave entry to
10996 x_ix86_isa_flags_explicit.
10997
10998 2011-03-22 Richard Henderson <rth@redhat.com>
10999
11000 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11001 (alpha_option_override, direct_return): Likewise.
11002 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11003 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11004 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11005 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11006 (alpha_expand_epilogue, alpha_end_function): Likewise.
11007 (alpha_init_libfuncs): Likewise.
11008 (struct machine_function): Remove unicosmk members.
11009 (print_operand) ['t']: Remove.
11010 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11011 unicosmk_output_module_name, unicosmk_output_common,
11012 current_section_align, unicosmk_output_text_section_asm_op,
11013 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11014 unicosmk_section_type_flags, unicosmk_unique_section,
11015 unicosmk_asm_named_section, unicosmk_insert_attributes,
11016 unicosmk_output_align, unicosmk_defer_case_vector,
11017 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11018 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11019 unicosmk_output_ssib, unicosmk_add_call_info_word,
11020 unicosmk_extern_head, unicosmk_output_default_externs,
11021 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11022 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11023 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11024 * config/alpha/alpha-protos.h: Update.
11025 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11026 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11027 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11028 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11029 (*mulsi_se, mulvsi3): Likewise.
11030 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11031 (*divmodsi_internal, call, call_value, realign): Likewise.
11032 (moddi3, umoddi3): Likewise; remove duplicate expander.
11033 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11034 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11035 (*movdi_nofix): Remove r/U alternative.
11036 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11037 * config/alpha/constraints.md ("U"): Remove.
11038 * config/alpha/predicates.md (call_operand"): Don't test
11039 TARGET_ABI_UNICOSMK.
11040
11041 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11042
11043 * target.def (handle_option): Take gcc_options and
11044 cl_decoded_option pointers and location_t.
11045 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11046 * doc/tm.texi: Regenerate.
11047 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11048 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11049 * lto-opts.c (lto_reissue_options): Generate option structure for
11050 targetm.handle_option call.
11051 * opts.c (target_handle_option): Update call to
11052 targetm.handle_option. Remove assertions about values now passed
11053 down to hook.
11054 * targhooks.c (default_target_handle_option): New.
11055 * targhooks.h (default_target_handle_option): Declare.
11056 * config/alpha/alpha.c: Include opts.h.
11057 (alpha_handle_option): Update to new hook interface.
11058 * config/arm/arm.c: Include opts.h.
11059 (arm_handle_option): Update to new hook interface.
11060 * config/arm/t-arm (arm.o): Update dependencies.
11061 * config/bfin/bfin.c: Include opts.h.
11062 (bfin_handle_option): Update to new hook interface.
11063 * config/cris/cris.c: Include opts.h.
11064 (cris_handle_option): Update to new hook interface.
11065 * config/frv/frv.c: Include opts.h.
11066 (frv_handle_option): Update to new hook interface.
11067 * config/i386/i386.c: Include opts.h.
11068 (ix86_handle_option): Update to new hook interface.
11069 (ix86_valid_target_attribute_inner_p): Generate option structure
11070 for call to ix86_handle_option.
11071 * config/i386/t-i386 (i386.o): Update dependencies.
11072 * config/ia64/ia64.c: Include opts.h.
11073 (ia64_handle_option): Update to new hook interface.
11074 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11075 * config/iq2000/iq2000.c: Include opts.h.
11076 (iq2000_handle_option): Update to new hook interface.
11077 * config/m32c/m32c.c: Include opts.h.
11078 (m32c_handle_option): Update to new hook interface.
11079 * config/m32r/m32r.c: Include opts.h.
11080 (m32r_handle_option): Update to new hook interface.
11081 * config/m68k/m68k.c: Include opts.h.
11082 (m68k_handle_option): Update to new hook interface.
11083 * config/mep/mep.c: Include opts.h.
11084 (mep_handle_option): Update to new hook interface.
11085 * config/microblaze/microblaze.c: Include opts.h.
11086 (microblaze_handle_option): Update to new hook interface.
11087 * config/mips/mips.c: Include opts.h.
11088 (mips_handle_option): Update to new hook interface.
11089 * config/mn10300/mn10300.c: Include opts.h.
11090 (mn10300_handle_option): Update to new hook interface.
11091 * config/pa/pa.c: Include opts.h.
11092 (pa_handle_option): Update to new hook interface.
11093 * config/pdp11/pdp11.c: Include opts.h.
11094 (pdp11_handle_option): Update to new hook interface.
11095 * config/rs6000/rs6000.c: Include opts.h.
11096 (rs6000_handle_option): Update to new hook interface.
11097 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11098 * config/rx/rx.c: Include opts.h.
11099 (rx_handle_option): Update to new hook interface.
11100 * config/s390/s390.c: Include opts.h.
11101 (s390_handle_option): Update to new hook interface.
11102 * config/score/score.c: Include opts.h.
11103 (score_handle_option): Update to new hook interface.
11104 * config/sh/sh.c: Include opts.h.
11105 (sh_handle_option): Update to new hook interface.
11106 * config/sparc/sparc.c: Include opts.h.
11107 (sparc_handle_option): Update to new hook interface.
11108 * config/v850/v850.c: Include opts.h.
11109 (v850_handle_option): Update to new hook interface.
11110
11111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11112
11113 * gcc.c (driver_unknown_option_callback): Only permit and save
11114 unknown -Wno- options.
11115 (driver_wrong_lang_callback): Save options directly instead of via
11116 driver_unknown_option_callback.
11117
11118 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11119
11120 * combine.c (simplify_set): Try harder to find the best CC mode when
11121 simplifying a nested COMPARE on the RHS.
11122
11123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11124
11125 * config/alpha/gnu.h: Remove.
11126 * config/arc: Remove directory.
11127 * config/arm/netbsd.h: Remove.
11128 * config/arm/t-pe: Remove.
11129 * config/crx: Remove directory.
11130 * config/i386/netbsd.h: Remove.
11131 * config/m68hc11: Remove directory.
11132 * config/m68k/uclinux-oldabi.h: Remove.
11133 * config/mcore/mcore-pe.h: Remove.
11134 * config/mcore/t-mcore-pe: Remove.
11135 * config/netbsd-aout.h: Remove.
11136 * config/rs6000/gnu.h: Remove.
11137 * config/sh/sh-symbian.h: Remove.
11138 * config/sh/symbian-base.c: Remove.
11139 * config/sh/symbian-c.c: Remove.
11140 * config/sh/symbian-cxx.c: Remove.
11141 * config/sh/symbian-post.h: Remove.
11142 * config/sh/symbian-pre.h: Remove.
11143 * config/sh/t-symbian: Remove.
11144 * config/svr3.h: Remove.
11145 * config/vax/netbsd.h: Remove.
11146 * config.build: Don't handle i[34567]86-*-pe.
11147 * config.gcc: Remove handling of deprecations for most deprecated
11148 targets.
11149 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11150 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11151 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11152 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11153 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11154 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11155 Remove cases.
11156 * config.host: Don't handle i[34567]86-*-pe.
11157 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11158 (ASM_SPEC32): Don't handle -mcall-gnu.
11159 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11160 -mcall-gnu.
11161 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11162 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11163 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11164 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11165 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11166 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11167 conditional on SYMBIAN.
11168 * configure.ac: Don't handle powerpc*-*-gnu*.
11169 * configure: Regenerate.
11170 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11171 * doc/install-old.texi (m6811, m6812): Don't mention.
11172 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11173 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11174 (m68k-uclinuxoldabi): Don't mention.
11175 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11176 Remove.
11177 (-mcall-gnu): Remove.
11178 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11179 families): Remove constraint documentation.
11180
11181 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11182
11183 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11184 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11185 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11186
11187 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11188
11189 PR target/48226
11190 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11191 vector when peeking at the next token for vector, don't expand the
11192 keywords.
11193
11194 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11195
11196 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11197 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11198 * config/avr/avr.c (init_cumulative_args)
11199 (avr_function_arg_advance): Use it.
11200 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11201 sibcall epilogues.
11202 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11203 (avr_function_ok_for_sibcall): ...this new function.
11204 (avr_lookup_function_attribute1): New static Function.
11205 (avr_naked_function_p, interrupt_function_p)
11206 (signal_function_p, avr_OS_task_function_p)
11207 (avr_OS_main_function_p): Use it.
11208 * config/avr/avr.md ("sibcall", "sibcall_value")
11209 ("sibcall_epilogue"): New expander.
11210 ("*call_insn", "*call_value_insn"): New insn.
11211 ("call_insn", "call_value_insn"): Remove
11212 ("call", "call_value", "epilogue"): Change expander to handle
11213 sibling calls.
11214
11215 2011-03-21 Nick Clifton <nickc@redhat.com>
11216
11217 * doc/invoke.texi (Overall Options): Move closing brace to end of
11218 options list.
11219 (Optimization Options): Add missing @gol.
11220 (Directory Options): Likewise.
11221 (i386 and x86-64 Options): Likewise.
11222 (RS6000 and PowerPC Options): Likewise.
11223 (i386 and x86-64 Windows Options): Likewise.
11224 (V850 Options): Add text missing from descriptions.
11225
11226 2011-03-22 Richard Henderson <rth@redhat.com>
11227
11228 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11229 (avr_incoming_return_addr_rtx): New.
11230 (emit_push_byte): New.
11231 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11232 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11233 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11234 (emit_pop_byte): New.
11235 (expand_epilogue): Use it. Pop frame pointer by bytes.
11236 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11237 (INCOMING_RETURN_ADDR_RTX): New.
11238 (INCOMING_FRAME_SP_OFFSET): New.
11239 (ARG_POINTER_CFA_OFFSET): New.
11240 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11241 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11242 (pophi): Remove.
11243
11244 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11245
11246 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11247
11248 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11249 (FUNCTION_ARG_ADVANCE): Likewise.
11250 * tm.texi.in: Change references to them to hook references.
11251 * tm.texi: Regenerate.
11252 * targhooks.c (default_function_arg): Eliminate check for target
11253 macro.
11254 (default_function_incoming_arg): Likewise.
11255 (default_function_arg_advance): Likewise.
11256 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11257 (function_arg_advance): Likewise.
11258 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11259
11260 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11261
11262 * tree.c (build_call_1): New function.
11263 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11264
11265 2011-03-22 Richard Guenther <rguenther@suse.de>
11266
11267 PR tree-optimization/48228
11268 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11269 for single-arg PHIs.
11270
11271 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11272
11273 PR rtl-optimization/48143
11274 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11275 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11276 sse2_cvtps2pd): Likewise.
11277
11278 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11279
11280 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11281
11282 2011-03-22 Richard Guenther <rguenther@suse.de>
11283
11284 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11285 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11286 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11287 and REALIGN_LOAD_EXPR.
11288 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11289 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11290 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11291 DOT_PROD_EXPR case ...
11292 (expand_expr_real_2): ... here.
11293 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11294 and REALIGN_LOAD_EXPR.
11295 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11296 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11297 (vect_create_epilog_for_reduction): Likewise.
11298 (vectorizable_reduction): Likewise.
11299 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11300 * tree-vect-stmts.c (vectorizable_load): Likewise.
11301
11302 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11303
11304 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11305
11306 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11307
11308 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11309 handling for PLTOFF/GOTOFF.
11310
11311 2011-03-22 Nick Clifton <nickc@redhat.com>
11312
11313 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11314 trailing backslash from the end of the macro definition.
11315
11316 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11317
11318 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11319 and PLT unspecs.
11320
11321 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11322
11323 * expr.h (prepare_operand): Move to...
11324 * optabs.h (prepare_operand): ...here and change the insn code
11325 parameter from "int" to "enum insn_code".
11326 (insn_operand_matches): Declare.
11327 * expr.c (init_expr_target): Use insn_operand_matches.
11328 (compress_float_constant): Likewise.
11329 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11330 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11331 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11332 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11333 Likewise.
11334 (gen_cond_trap): Likewise.
11335 (prepare_operand): Likewise. Change icode to an insn_code.
11336 (insn_operand_matches): New function.
11337 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11338 * reload1.c (gen_reload): Likewise.
11339 * targhooks.c (default_secondary_reload): Likewise.
11340
11341 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11342
11343 * config/alpha/alpha.md (unspec): New define_c_enum.
11344 (unspecv): Ditto.
11345
11346 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11347
11348 PR debug/48214
11349 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11350 between a call and its CALL_ARG_LOCATION note.
11351
11352 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11353
11354 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11355
11356 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11357
11358 PR c/42544
11359 PR c/48197
11360 * c-common.c (shorten_compare): If primopN is first sign-extended
11361 to opN and then zero-extended to result type, set primopN to opN.
11362
11363 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11364
11365 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11366 for barrier handlers.
11367
11368 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11369
11370 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11371 UNSPEC constants to be in the unspec enumeration, and redefine
11372 all UNSPECV constants to be in the unspecv enumeration, so that
11373 dumps print which unspec/unspec_volatile this is.
11374 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11375 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11376 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11377 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11378 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11379
11380 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11381 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11382 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11383 * config/rs6000/sync.md (isync, lwsync): Ditto.
11384
11385 2011-03-21 Richard Guenther <rguenther@suse.de>
11386
11387 * params.def (lto-min-partition): Fix typo.
11388
11389 2011-03-21 Richard Guenther <rguenther@suse.de>
11390
11391 PR c/47939
11392 * c-decl.c (grokdeclarator): Drop to the main variant only
11393 for array types. Drop flag_gen_aux_info check.
11394
11395 2011-03-21 Richard Guenther <rguenther@suse.de>
11396
11397 PR translation/47911
11398 * params.def (lto-partitions): Fix typo.
11399 (lto-min-partition): Fix wording.
11400
11401 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11402
11403 * config/rs6000/t-freebsd: Remove duplication from file.
11404
11405 2011-03-21 Richard Guenther <rguenther@suse.de>
11406
11407 PR middle-end/47661
11408 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11409
11410 2011-03-21 Richard Guenther <rguenther@suse.de>
11411
11412 PR lto/48210
11413 * params.def (lto-partitions): Require at least 1 partition.
11414
11415 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11416
11417 * gthr-solaris.h: Remove.
11418 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11419 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11420 (LIB_SPEC): Likewise.
11421 * config/sol2.opt (threads): Remove.
11422 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11423 (sparc*-*-solaris2*): Likewise.
11424 * configure.ac (enable_threads): Enable solaris support.
11425 * configure: Regenerate.
11426 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11427 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11428 solaris.
11429
11430 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11431
11432 * config.gcc: Obsolete *-*-solaris2.8*.
11433 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11434
11435 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11436
11437 PR bootstrap/48135
11438 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11439 reference. Solaris 8 perl works.
11440
11441 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11442
11443 PR bootstrap/48135
11444 * doc/install.texi (Prerequisites): Move jar etc. up.
11445 Explain support library version requirements.
11446
11447 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11448
11449 PR bootstrap/48135
11450 * doc/install.texi (Prerequisites): Move Perl to build
11451 requirements. Always necessary on Solaris 2 with Sun ld.
11452
11453 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11454
11455 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11456 binutils 2.21.
11457 (Specific, i?86-*-solaris2.[89]): Likewise.
11458 (Specific, i?86-*-solaris2.10): Likewise.
11459 (Specific, mips-sgi-irix6): Likewise.
11460 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11461 Update for binutils 2.21.
11462
11463 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11464
11465 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11466 Allow -fuse-linker-plugin for non-default plugin linker.
11467 * configure: Regenerate.
11468
11469 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11470
11471 PR bootstrap/48167
11472 * gengtype.c (files_rules): Added rule for cp/parser.h.
11473
11474 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11475
11476 PR target/48213
11477 * config/s390/s390.c (s390_delegitimize_address): Don't call
11478 lowpart_subreg if orig_x has BLKmode.
11479
11480 2011-03-21 Kai Tietz <ktietz@redhat.com>
11481
11482 PR target/12171
11483 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11484 * tree.h (attribute_spec): Add new member affects_type_identity.
11485 * attribs.c (empty_attribute_table): Adjust attribute_spec
11486 initializers.
11487 * config/alpha/alpha.c: Likewise.
11488 * config/arc/arc.c: Likewise.
11489 * config/arm/arm.c: Likewise.
11490 * config/avr/avr.c: Likewise.
11491 * config/bfin/bfin.c: Likewise.
11492 * config/crx/crx.c: Likewise.
11493 * config/darwin.h: Likewise.
11494 * config/h8300/h8300.c: Likewise.
11495 * config/i386/cygming.h: Likewise.
11496 * config/i386/i386.c: Likewise.
11497 * config/ia64/ia64.c: Likewise.
11498 * config/m32c/m32c.c: Likewise.
11499 * config/m32r/m32r.c: Likewise.
11500 * config/m68hc11/m68hc11.c: Likewise.
11501 * config/m68k/m68k.c: Likewise.
11502 * config/mcore/mcore.c: Likewise.
11503 * config/mep/mep.c: Likewise.
11504 * config/microblaze/microblaze.c: Likewise.
11505 * config/mips/mips.c: Likewise.
11506 * config/rs6000/rs6000.c: Likewise.
11507 * config/rx/rx.c: Likewise.
11508 * config/sh/sh.c: Likewise.
11509 * config/sol2.h: Likewise.
11510 * config/sparc/sparc.c: Likewise.
11511 * config/spu/spu.c: Likewise.
11512 * config/stormy16/stormy16.c: Likewise.
11513 * config/v850/v850.c: Likewise.
11514
11515 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11516
11517 * simplify-rtx.c (simplify_binary_operation_1): Handle
11518 (xor (and A B) C) case when B and C are both constants.
11519
11520 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11521
11522 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11523
11524 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11525
11526 PR bootstrap/48168
11527 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11528
11529 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11530
11531 PR rtl-optimization/48156
11532 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11533 assume df and df_lr are not NULL.
11534
11535 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11536
11537 PR debug/48023
11538 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11539 between a call and its CALL_ARG_LOCATION note.
11540
11541 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11542
11543 PR debug/48178
11544 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11545 between a call and its corresponding CALL_ARG_LOCATION note.
11546
11547 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11548
11549 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11550 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11551 * haifa-sched.c (setup_ref_regs): Ditto.
11552 * caller-save.c (add_used_regs_1): Ditto.
11553 * dse.c (look_for_hardregs): Ditto.
11554 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11555 * sched-rgn.c (check_live_1): Ditto.
11556
11557 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11558
11559 * c-decl.c (diagnose_mismatched_decls): Give an error for
11560 redefining a typedef with variably modified type.
11561
11562 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11563
11564 * c-decl.c (grokfield): Don't allow typedefs for structures or
11565 unions with no tag by default.
11566 * doc/extend.texi (Unnamed Fields): Update.
11567
11568 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11569
11570 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11571 Rewrite using indirect functions.
11572 (lwp_slwpcb): Ditto.
11573 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11574 (avx_vinsertf128<mode>): Ditto.
11575
11576 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11577
11578 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11579 unspecs.
11580
11581 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11582
11583 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11584 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11585
11586 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11587
11588 PR rtl-optimization/48170
11589 * gcse.c (hoist_code): Remove bogus asserts.
11590
11591 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11592
11593 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11594 computation for prologue/epilogue.
11595
11596 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11597
11598 * Makefile.in (check-consistency): Remove.
11599
11600 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11601
11602 PR debug/48176
11603 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11604 arange_table_in_use is 0, but either text_section_used or
11605 cold_text_section_used is true. Don't call it if
11606 !info_section_emitted.
11607
11608 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11609
11610 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11611 FUNCTION_VALUE_REGNO_P): Remove.
11612 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11613 Remove.
11614 * config/avr/avr.c (avr_ret_register): Make static inline.
11615 (avr_function_value_regno_p): New function.
11616 (avr_libcall_value): Make static. Add 'func' argument.
11617 (avr_function_value): Make static. Rename 'func' argument to
11618 'fn_decl_or_type', forward it to avr_libcall_value. Call
11619 avr_ret_register function instead of RET_REGISTER macro.
11620 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11621
11622 2011-03-18 Jason Merrill <jason@redhat.com>
11623
11624 PR c++/23372
11625 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11626
11627 2011-03-18 Richard Guenther <rguenther@suse.de>
11628
11629 * doc/install.texi (--enable-gold): Remove.
11630 (--with-plugin-ld): Document.
11631 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11632
11633 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11634
11635 PR middle-end/47790
11636 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11637 again after expansion changes.
11638
11639 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11640
11641 * combine.c (try_combine): Do simplification only call of
11642 subst() on i2 even when i1 is present. Update comments.
11643
11644 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11645
11646 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11647 and UNSPEC_PCREL_SYMOFF.
11648
11649 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11650
11651 * config/s390/s390.md: Use define_c_enum for the unspec constant
11652 definitions.
11653
11654 2011-03-18 Richard Henderson <rth@redhat.com>
11655 Jakub Jelinek <jakub@redhat.com>
11656
11657 PR bootstrap/48161
11658 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11659 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11660
11661 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11662
11663 PR middle-end/47725
11664 * combine.c (cant_combine_insn_p): Don't check zero/sign
11665 extended hard registers.
11666
11667 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11668
11669 PR middle-end/47725
11670 * combine.c (cant_combine_insn_p): Check zero/sign extended
11671 hard registers.
11672
11673 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11674
11675 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11676 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11677 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11678 Change return type to bool.
11679 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11680
11681 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11682
11683 PR debug/48163
11684 * var-tracking.c (prepare_call_arguments): If CALL target
11685 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11686 pc instead of looking it up using cselib_lookup and use
11687 Pmode for it if x has VOIDmode.
11688 * dwarf2out.c (gen_subprogram_die): If also both first and
11689 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11690
11691 PR debug/48163
11692 * function.c (assign_parms): For data.passed_pointer parms
11693 use MEM of data.entry_parm instead of data.entry_parm itself
11694 as DECL_INCOMING_RTL.
11695 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11696 also when passed and declared mode is the same, DECL_RTL
11697 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11698 a MEM too.
11699
11700 2011-03-16 Jeff Law <law@redhat.com>
11701
11702 PR rtl-optimization/37273
11703 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11704 handle them like argument loads from stack slots. Do not double
11705 count memory for memory constants and argument loads from stack slots.
11706
11707 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11708
11709 PR debug/48160
11710 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11711
11712 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11713
11714 PR target/48171
11715 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11716
11717 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11718
11719 PR bootstrap/48153
11720 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11721 if dwarf_strict.
11722 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11723 Clear call_arg_locations and call_arg_loc_last always.
11724
11725 PR middle-end/48152
11726 * var-tracking.c (prepare_call_arguments): If argument needs to be
11727 passed by reference, adjust argtype and mode.
11728
11729 2011-03-17 Richard Guenther <rguenther@suse.de>
11730
11731 PR middle-end/48134
11732 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11733 a value make sure to fold the statement.
11734
11735 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11736
11737 PR target/43872
11738 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11739 return condition with !cfun->calls_alloca.
11740
11741 2011-03-17 Richard Guenther <rguenther@suse.de>
11742
11743 PR bootstrap/48148
11744 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11745 origin for decls in other ltrans units.
11746 (input_varpool_node): Likewise.
11747
11748 2011-03-17 Richard Guenther <rguenther@suse.de>
11749
11750 PR middle-end/48165
11751 * tree-object-size.c (compute_object_offset): Properly return
11752 the offset operand of MEM_REFs as sizetype.
11753
11754 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11755
11756 PR rtl-optimization/48141
11757 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11758 * dse.c: Include params.h.
11759 (active_local_stores_len): New variable.
11760 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11761 to NULL.
11762 (record_store, check_mem_read_rtx): Decrease it when removing
11763 from the chain.
11764 (scan_insn): Likewise. Increase it when adding to chain, if it
11765 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11766 set active_local_stores to NULL before the addition.
11767 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11768
11769 PR rtl-optimization/48141
11770 * dse.c (record_store): If no positions are needed in an insn
11771 that cannot be deleted, at least unchain it from active_local_stores.
11772
11773 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11774
11775 PR debug/47510
11776 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11777 (lookup_type_die_strip_naming_typedef): ... here.
11778 (get_context_die): Use it.
11779 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11780 the anonymous struct named by the naming typedef.
11781
11782 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11783
11784 PR target/48154
11785 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11786 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11787
11788 2011-03-16 Jeff Law <law@redhat.com>
11789
11790 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11791 check for operands of conditional. Allow type to be a pointer.
11792
11793 2011-03-16 Richard Guenther <rguenther@suse.de>
11794
11795 PR tree-optimization/48149
11796 * fold-const.c (fold_binary_loc): Fold
11797 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11798
11799 2011-03-16 Richard Guenther <rguenther@suse.de>
11800
11801 PR tree-optimization/26134
11802 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11803 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11804 (non_rewritable_mem_ref_base): Handle complex type component
11805 accesses, constrain offsets for vector and complex extracts
11806 more properly.
11807
11808 2011-03-16 Richard Guenther <rguenther@suse.de>
11809
11810 PR tree-optimization/48146
11811 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11812 operands avoiding the need for renaming.
11813
11814 2011-03-16 Richard Guenther <rguenther@suse.de>
11815
11816 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11817 constant folding. Move MEM_REF canonicalization first.
11818 Rely on fold_const_aggregate_ref for initializer folding.
11819 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11820
11821 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11822
11823 PR middle-end/48136
11824 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11825 arg0/arg1 or their arguments are always fold converted to matching
11826 types.
11827
11828 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11829 to nargs.
11830
11831 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11832
11833 PR lto/46944
11834 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11835 Handle in-tree gold.
11836 (ld_vers): Extract binutils version for gold.
11837 (gcc_cv_ld_hidden): Handle gold here.
11838 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11839 * configure: Regenerate.
11840 * config.in: Regenerate.
11841 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11842 -fuse-linker-plugin otherwise.
11843 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11844 (LINK_COMMAND_SPEC): Use it.
11845 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11846
11847 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11848
11849 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11850 * calls.c: Remove debug.h include.
11851 (emit_call_1): Don't call virtual_call_token debug hook.
11852 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11853 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11854 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11855 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11856 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11857 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11858 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11859 dwarf2out_virtual_call): Remove.
11860 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11861 copy_call_info and virtual_call hooks.
11862 (dwarf2out_init): Don't initialize vcall_insn_table,
11863 debug_dcall_section and debug_vcall_section.
11864 (prune_unused_types): Don't mark nodes from dcall_table.
11865 (dwarf2out_finish): Don't output dcall or vcall tables.
11866 * final.c (final_scan_insn): Don't call direct_call or
11867 virtual_call debug hooks.
11868 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11869 virtual_call_token, copy_call_info and virtual_call hooks.
11870 (debug_nothing_uid): Remove prototype.
11871 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11872 copy_call_info and virtual_call hooks.
11873 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11874 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11875 * debug.c (do_nothing_debug_hooks): Likewise.
11876 (debug_nothing_uid): Remove.
11877 * doc/invoke.texi (-fenable-icf-debug): Remove.
11878 * common.opt (-fenable-icf-debug): Likewise.
11879
11880 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11881 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11882 call's MEM. Handle functions returning aggregate through a hidden
11883 first pointer. For virtual calls add clobbered pc to call arguments
11884 chain.
11885 * dwarf2out.c (gen_subprogram_die): Emit
11886 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11887 can't be emitted.
11888
11889 PR debug/45882
11890 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11891 * rtl.h (ENTRY_VALUE_EXP): Define.
11892 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11893 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11894 * print-rtl.c (print_rtx): Likewise.
11895 * gengtype.c (adjust_field_rtx_def): Likewise.
11896 * var-tracking.c (vt_add_function_parameter): Adjust
11897 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11898 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11899 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11900 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11901 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11902
11903 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11904 Call var_location debug hook even on CALL_INSNs.
11905 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11906 * rtl.def (ENTRY_VALUE): New.
11907 * dwarf2out.c: Include cfglayout.h.
11908 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11909 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11910 (struct call_arg_loc_node): New type.
11911 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11912 tail_call_site_count): New variables.
11913 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11914 DW_TAG_GNU_call_site_parameter.
11915 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11916 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11917 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11918 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11919 and DW_AT_GNU_all_source_call_sites.
11920 (mem_loc_descriptor): Handle ENTRY_VALUE.
11921 (add_src_coords_attributes): Don't add enything if
11922 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11923 (dwarf2out_abstract_function): Save and clear call_arg_location,
11924 call_site_count and tail_call_site_count around dwarf2out_decl call.
11925 (gen_call_site_die): New function.
11926 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11927 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11928 (dwarf2out_function_decl): Clear call_arg_locations,
11929 call_arg_loc_last, set call_site_count and tail_call_site_count
11930 to -1 and free block_map.
11931 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11932 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11933 followed by any real instructions.
11934 (dwarf2out_begin_function): Set call_site_count and
11935 tail_call_site_count to 0.
11936 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11937 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11938 attempt to force a DIE for it and worst case remove the attribute.
11939 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11940 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11941 the decl itself.
11942 * var-tracking.c: Include tm_p.h.
11943 (vt_stack_adjustments): For calls call note_register_arguments.
11944 (argument_reg_set): New variable.
11945 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11946 ensure the VALUE is resolved.
11947 (call_arguments): New variable.
11948 (prepare_call_arguments): New function.
11949 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11950 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11951 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11952 always use the best expression.
11953 (vt_expand_loc): Add ignore_cur_loc argument.
11954 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11955 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11956 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11957 note for all calls.
11958 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11959 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11960 argument. Don't call cselib_preserve_only_values and
11961 cselib_reset_table.
11962 (note_register_arguments): New function.
11963 (vt_initialize): Compute argument_reg_set. Call
11964 vt_add_function_parameters before processing basic blocks instead of
11965 afterwards. For calls call prepare_call_arguments before calling
11966 cselib_process_insn.
11967 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11968 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11969 (var-tracking.o): Depend on $(TM_P_H).
11970 * cfglayout.h (insn_scope): New prototype.
11971 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11972 * cfglayout.c (insn_scope): No longer static.
11973 * insn-notes.def (CALL_ARG_LOCATION): New.
11974 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11975 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11976 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11977 nothing for DECL_EXTERNAL BLOCK_VARS.
11978
11979 2011-03-16 Alan Modra <amodra@gmail.com>
11980
11981 PR target/45844
11982 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11983 create invalid offset address for vsx splat insn.
11984 * config/rs6000/predicates.md (splat_input_operand): New.
11985 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11986
11987 2011-03-15 Xinliang David Li <davidxl@google.com>
11988
11989 PR c/47837
11990 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11991 (normalize_preds): New function.
11992 (is_use_properly_guarded): Normalize def predicates.
11993
11994 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11995
11996 PR target/46788
11997 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11998 in the output template.
11999
12000 2011-03-15 Richard Guenther <rguenther@suse.de>
12001
12002 PR middle-end/47650
12003 * tree-pretty-print.c (dump_function_declaration): Properly
12004 dump unprototyped and varargs function types.
12005
12006 2011-03-15 Richard Guenther <rguenther@suse.de>
12007
12008 PR tree-optimization/13954
12009 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12010 and friends.
12011
12012 2011-03-15 Richard Guenther <rguenther@suse.de>
12013
12014 PR tree-optimization/48037
12015 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12016 selects into BIT_FIELD_REFs.
12017 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12018 vector select.
12019
12020 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12021
12022 PR tree-optimization/48129
12023 * builtins.c (fold_builtin_snprintf): Convert to type of
12024 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12025 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12026
12027 2011-03-15 Richard Guenther <rguenther@suse.de>
12028
12029 PR tree-optimization/41490
12030 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12031 value but with VUSE.
12032 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12033 return statements.
12034 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12035 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12036 * tree-tailcall.c (find_tail_calls): Ignore returns.
12037
12038 2011-03-15 Richard Guenther <rguenther@suse.de>
12039
12040 PR middle-end/48031
12041 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12042 or variable-indexed array accesses when in gimple form.
12043
12044 2011-03-15 Richard Guenther <rguenther@suse.de>
12045
12046 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12047
12048 2011-03-15 Alan Modra <amodra@gmail.com>
12049
12050 PR target/48032
12051 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12052 presume symbol_refs without a symbol_ref_decl are suitably
12053 aligned, nor other trees we may see here. Handle anchor symbols.
12054 (legitimate_constant_pool_address_p): Comment. Add mode param.
12055 Check cmodel=medium addresses. Adjust all calls.
12056 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12057 creating cmodel=medium optimized access to locals.
12058 * config/rs6000/constraints.md (R): Pass QImode to
12059 legitimate_constant_pool_address_p.
12060 * config/rs6000/predicates.md (input_operand): Pass mode to
12061 legitimate_constant_pool_address_p.
12062 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12063 Update prototype.
12064
12065 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12066
12067 PR target/48053
12068 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12069 64-bit constants being loaded into registers other than GPRs such
12070 as loading 0 into a VSX register.
12071
12072 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12073
12074 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12075
12076 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12077
12078 PR middle-end/47917
12079 * builtins.c (fold_builtin_snprintf): New function.
12080 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12081 (fold_builtin_4): Likewise.
12082
12083 PR middle-end/38878
12084 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12085 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12086 and C - X == X also strip nops from +/-/p+ operand.
12087 When optimizing -X == C, fold C to arg0's type.
12088
12089 PR debug/47946
12090 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12091 emit it as add_AT_int instead of add_AT_unsigned.
12092
12093 2011-03-14 Tom Tromey <tromey@redhat.com>
12094
12095 * unwind-dw2.c: Include sys/sdt.h if it exists.
12096 (_Unwind_DebugHook): Use STAP_PROBE2.
12097 * config.in, configure: Rebuild.
12098 * configure.ac: Check for sys/sdt.h.
12099
12100 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12101
12102 * config/i386/i386.md (ROUND_FLOOR): New constant.
12103 (ROUND_CEIL): Ditto.
12104 (ROUND_TRUNC): Ditto.
12105 (ROUND_MXCSR): Ditto.
12106 (ROUND_NO_EXC): Ditto.
12107 (rint<mode>2): Use new defines instead of numerical constants.
12108 (floor<mode>2): Ditto.
12109 (ceil<mode>2): Ditto.
12110 (btrunc<mode>2): Ditto.
12111 * config/i386/i386-builtin-types.def: Define ROUND function type
12112 aliases.
12113 * config/i386/i386.c (enum ix86_builtins): Add
12114 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12115 (struct builtin_description): Add
12116 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12117 (ix86_expand_sse_round): New static function.
12118 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12119 function types.
12120 (ix86_builtin_vectorized_function): Handle
12121 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12122
12123 2011-03-14 Tom Tromey <tromey@redhat.com>
12124
12125 * c-parser.c (c_parser_asm_string_literal): Clear
12126 warn_overlength_strings.
12127
12128 2011-03-14 Tom Tromey <tromey@redhat.com>
12129
12130 * c-parser.c (disable_extension_diagnostics): Save
12131 warn_overlength_strings.
12132 (restore_extension_diagnostics): Restore warn_overlength_strings.
12133
12134 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12135
12136 * BASE-VER: Change to 4.7.0.
12137
12138 2011-03-14 Richard Guenther <rguenther@suse.de>
12139
12140 PR middle-end/48098
12141 * tree.c (build_vector_from_val): Adjust assert to requirements
12142 and reality.
12143
12144 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12145
12146 PR bootstrap/48102
12147 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12148
12149 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12150
12151 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12152 terms of target_flags_explicit. Adjust copyright year.
12153
12154 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12155 * config/rs6000/t-freebsd: New file. Add override for
12156 LIB2FUNCS_EXTRA.
12157
12158 2011-03-13 Chris Demetriou <cgd@google.com>
12159
12160 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12161 (-fno-diagnostics-show-option): this, to reflect current default.
12162 (-Werror=): Update text about -fno-diagnostics-show-option.
12163
12164 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12165
12166 PR target/48053
12167 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12168 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12169 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12170 mode is not V2DImode or V2DFmode.
12171 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12172 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12173 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12174 registers to 0.
12175 (movdi_internal64): Likewise.
12176
12177 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12178
12179 PR tree-optimization/47127
12180 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12181 parameter.
12182 (set_cloog_options): Same.
12183 (scop_to_clast): Same.
12184 (print_clast_stmt): Do not call cloog_state_malloc and
12185 cloog_state_free.
12186 (print_generated_program): Same.
12187 (gloog): Same.
12188 * graphite-clast-to-gimple.h (cloog_state): Declared.
12189 (scop_to_clast): Adjust declaration.
12190 * graphite.c (cloog_state): Defined here.
12191 (graphite_initialize): Call cloog_state_malloc.
12192 (graphite_finalize): Call cloog_state_free.
12193
12194 2011-03-11 Jason Merrill <jason@redhat.com>
12195
12196 * attribs.c (lookup_attribute_spec): Take const_tree.
12197 * tree.h: Adjust.
12198
12199 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12200
12201 * config/sparc/sparc.c (sparc_option_override): Use
12202 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12203
12204 2011-03-11 Richard Guenther <rguenther@suse.de>
12205
12206 PR tree-optimization/48067
12207 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12208 multiplication result will be only used once on the target
12209 stmt.
12210
12211 2011-03-11 Richard Guenther <rguenther@suse.de>
12212
12213 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12214
12215 2011-03-11 Richard Guenther <rguenther@suse.de>
12216
12217 PR lto/48073
12218 * tree.c (find_decls_types_r): Do not walk types only reachable
12219 from IDENTIFIER_NODEs.
12220
12221 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12222
12223 PR middle-end/48044
12224 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12225 all vnode->force_output nodes as needed.
12226
12227 2011-03-11 Jason Merrill <jason@redhat.com>
12228
12229 PR c++/48069
12230 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12231 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12232
12233 2011-03-11 Martin Jambor <mjambor@suse.cz>
12234
12235 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12236 cgraph_node.
12237
12238 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12239
12240 PR tree-optimization/48063
12241 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12242 inline functions called once if !tree_can_inline_p (node->callers).
12243
12244 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12245
12246 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12247 extra_objs.
12248 * config/score/score3.c: Delete.
12249 * config/score/score3.h: Delete.
12250 * config/score/mul-div.S: Delete.
12251 * config/score/sfp-machine.h: Add new file.
12252 * config/score/constraints.md: Add new file.
12253 * config/score/t-score-softfp: Add new file.
12254 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12255 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12256 (score7_extra_constraint): Delete.
12257 (score7_option_override): Remove unused code.
12258 * config/score/score.c: Remove score3 and score5 define and code.
12259 * config/score/score.h: Remove score3 and score5 define and code.
12260 * config/score/score.md: Remove score3 template and unusual insn.
12261 * config/score/score.opt: Remove score3 and score5 options.
12262
12263 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12264
12265 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12266 when _HPUX_SOURCE is defined.
12267 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12268
12269 2011-03-10 Jason Merrill <jason@redhat.com>
12270
12271 PR c++/48029
12272 * stor-layout.c (layout_type): Don't set structural equality
12273 on arrays of incomplete type.
12274 * tree.c (type_hash_eq): Handle comparing them properly.
12275
12276 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12277
12278 PR debug/48043
12279 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12280 result mode matches original rtl mode.
12281
12282 2011-03-10 Nick Clifton <nickc@redhat.com>
12283
12284 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12285 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12286
12287 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12288
12289 PR rtl-optimization/47866
12290 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12291 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12292 if target wasn't scalar.
12293 * function.c (assign_stack_temp_for_type): Assert that neither
12294 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12295 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12296 macro.
12297 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12298
12299 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12300
12301 * config/s390/s390-protos.h (s390_label_align): New prototype.
12302 * config/s390/s390.c (s390_label_align): New function.
12303 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12304
12305 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12306
12307 PR target/47755
12308 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12309 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12310 (output_vec_const_move): Ditto.
12311
12312 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12313
12314 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12315 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12316 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12317 Change 'rclass' argument and result type to reg_class_t.
12318 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12319
12320 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12321
12322 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12323 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12324 (TARGET_MEMORY_MOVE_COST): Define.
12325 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12326
12327 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12328
12329 PR debug/47881
12330 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12331 removed anything.
12332
12333 PR tree-optimization/48022
12334 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12335 for EQ/NE_EXPR.
12336
12337 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12338
12339 PR debug/47991
12340 * var-tracking.c (find_use_val): Return NULL for
12341 cui->sets && cui->store_p BLKmode MEMs.
12342
12343 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12344
12345 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12346 Remove.
12347 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12348 xstormy16_print_operand_address): Remove.
12349 * config/stormy16/stormy16.c (xstormy16_print_operand,
12350 xstormy16_print_operand_address): Make static.
12351 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12352
12353 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12354
12355 PR target/47862
12356 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12357 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12358 before definition.
12359
12360 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12361
12362 PR bootstrap/48000
12363 * cfgloopmanip.c (fix_bb_placements): Return immediately
12364 if FROM is BASE_LOOP's header.
12365
12366 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12367
12368 * gimplify.c (gimplify_function_tree): Fix building calls
12369 to __builtin_return_address.
12370
12371 2011-03-07 Alan Modra <amodra@gmail.com>
12372
12373 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12374 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12375 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12376 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12377 return_mode args.
12378 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12379 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12380 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12381 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12382 * config/rs6000/rs6000.c
12383 (rs6000_elf_end_indicate_exec_stack): Rename to..
12384 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12385 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12386 (rs6000_file_start): ..here.
12387 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12388 file scope variables.
12389 (call_ABI_of_interest): New function.
12390 (init_cumulative_args): Set above vars when function return value
12391 is a float, vector, or small struct.
12392 (rs6000_function_arg_advance_1): Likewise for function args.
12393 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12394 references float args.
12395
12396 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12397
12398 * doc/cfg.texi: Remove "See" before @ref.
12399 * doc/invoke.texi: Likewise.
12400
12401 2011-03-05 Jason Merrill <jason@redhat.com>
12402
12403 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12404
12405 2011-03-05 Anthony Green <green@moxielogic.com>
12406
12407 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12408
12409 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12410
12411 PR rtl-optimization/47899
12412 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12413 to flow_loop_nested_p when moving the loop upward.
12414
12415 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12416
12417 PR target/47719
12418 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12419
12420 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12421
12422 PR tree-optimization/47967
12423 * ipa-cp.c (build_const_val): Return NULL instead of creating
12424 VIEW_CONVERT_EXPR for mismatching sizes.
12425 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12426 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12427 give up on versioning.
12428
12429 2011-03-05 Alan Modra <amodra@gmail.com>
12430
12431 PR target/47986
12432 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12433 full cmodel medium/large lo_sum + high addresses.
12434
12435 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12436
12437 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12438 pool references in UNSPEC_LTREL_OFFSET.
12439
12440 2011-03-04 Jan Hubicka <jh@suse.cz>
12441
12442 PR lto/47497
12443 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12444 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12445 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12446 Add node pointers.
12447 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12448 cgraph_add_thunk): Add node pointers.
12449 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12450 associated to right node.
12451 (input_node): Update use of cgraph_same_body_alias
12452 and cgraph_add_thunk.
12453
12454 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12455
12456 * config/i386/i386.opt (mprefer-avx128): New flag.
12457 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12458 modes when the flag -mprefer-avx128 is on.
12459
12460 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12461
12462 * dwarf2out.c (compare_loc_operands): Fix address handling.
12463
12464 2011-03-04 Alan Modra <amodra@gmail.com>
12465
12466 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12467
12468 2011-03-04 Richard Guenther <rguenther@suse.de>
12469
12470 PR middle-end/47968
12471 * expmed.c (extract_bit_field_1): Prefer vector modes that
12472 vec_extract patterns can handle.
12473
12474 2011-03-04 Richard Guenther <rguenther@suse.de>
12475
12476 PR middle-end/47975
12477 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12478
12479 2011-03-04 Richard Henderson <rth@redhat.com>
12480
12481 * explow.c (emit_stack_save): Remove 'after' parameter.
12482 (emit_stack_restore): Likewise.
12483 * expr.h: Update to match.
12484 * builtins.c, calls.c, stmt.c: Likewise.
12485 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12486 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12487 * function.c (expand_function_end): Insert the emit_stack_save
12488 sequence before parm_birth_insn instead of after.
12489
12490 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12491
12492 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12493 (ssse3_pmaddubsw128): Ditto.
12494 (ssse3_pmaddubsw): Ditto.
12495
12496 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12497
12498 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12499
12500 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12501
12502 PR c/47963
12503 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12504 on TYPE_SIZE_UNIT if it is a DECL.
12505
12506 PR debug/47283
12507 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12508 first operand is not is_gimple_mem_ref_addr, try to fold it.
12509 If the operand still isn't is_gimple_mem_ref_addr, clear
12510 MEM_EXPR on op0.
12511
12512 2011-03-03 Richard Guenther <rguenther@suse.de>
12513
12514 PR middle-end/47283
12515 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12516 match comment.
12517 (refs_may_alias_p_1): For release branches return true if
12518 we are confused by our input.
12519
12520 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12521
12522 * config/s390/s390.c (s390_function_value): Rename to ...
12523 (s390_function_and_libcall_value): ... this.
12524 (s390_function_value): New function.
12525 (s390_libcall_value): New function.
12526 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12527 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12528 target macro definitions.
12529 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12530
12531 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12532
12533 * config/i386/freebsd64.h (CC1_SPEC): Define.
12534 * config/i386/linux64.h (CC1_SPEC): Define.
12535 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12536
12537 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12538
12539 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12540 Remove.
12541 * config/stormy16/stormy16.c: Include reload.h.
12542 (xstormy16_memory_move_cost): New function.
12543 (TARGET_MEMORY_MOVE_COST): Define.
12544
12545 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12546
12547 PR rtl-optimization/47925
12548 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12549 with side effects. Remove the more-specific check for volatile asms.
12550
12551 2011-03-02 Alan Modra <amodra@gmail.com>
12552
12553 PR target/47935
12554 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12555 toc relative addresses for valid offsets.
12556
12557 2011-03-01 Richard Guenther <rguenther@suse.de>
12558
12559 PR tree-optimization/47890
12560 * tree-vect-loop.c (get_initial_def_for_induction): Set
12561 related stmt properly.
12562
12563 2011-03-01 Richard Guenther <rguenther@suse.de>
12564
12565 PR lto/47924
12566 * lto-streamer.c (lto_record_common_node): Also register
12567 the canonical type.
12568
12569 2011-03-01 Richard Guenther <rguenther@suse.de>
12570
12571 PR lto/46911
12572 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12573 Do not stream DECL_ABSTRACT_ORIGIN.
12574 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12575 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12576 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12577 Do not stream DECL_ABSTRACT_ORIGIN.
12578 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12579 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12580
12581 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12582
12583 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12584 FUNCTION_VALUE_REGNO_P): Remove.
12585 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12586 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12587 Add 'outgoing' argument.
12588 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12589 function.
12590 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12591 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12592
12593 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12594
12595 PR debug/28047
12596 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12597 (lookup_filename): Likewise.
12598 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12599
12600 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12601 Jakub Jelinek <jakub@redhat.com>
12602
12603 PR middle-end/47893
12604 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12605 (assign_stack_local_1): Change last argument type to int.
12606 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12607 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12608 don't record padding space into frame_space_list nor use those areas.
12609 (assign_stack_local): Adjust caller.
12610 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12611 of assign_stack_local, pass 0 as last argument.
12612 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12613 callers.
12614
12615 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12616
12617 PR debug/47283
12618 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12619 Use target address_mode and pointer_mode hooks instead of hardcoded
12620 Pmode and ptr_mode. Handle some simple cases of extending if
12621 POINTERS_EXTEND_UNSIGNED < 0.
12622 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12623 Call convert_debug_memory_address.
12624 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12625 convert_debug_memory_address.
12626
12627 PR middle-end/46790
12628 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12629 * configure: Regenerated.
12630 * config.in: Regenerated.
12631 * varasm.c (default_function_section): Return NULL
12632 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12633
12634 2011-02-28 Martin Jambor <mjambor@suse.cz>
12635
12636 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12637 the description to match the printed values.
12638
12639 2011-02-28 Richard Guenther <rguenther@suse.de>
12640
12641 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12642 of the copied scope tree.
12643
12644 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12645
12646 * doc/extend.texi (Function Attributes): Avoid deeply (and
12647 wrongly) nested tables.
12648
12649 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12650
12651 PR middle-end/47903
12652 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12653 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12654 r isn't op0 nor op1.
12655
12656 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12657
12658 * config/avr/avr.md: Remove magic comment for emacs.
12659
12660 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12661
12662 PR target/45261
12663 * config/avr/avr.c (avr_option_override): Use error on bad options.
12664 (avr_help): New function.
12665 (TARGET_HELP): Define.
12666
12667 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12668
12669 PR target/42240
12670 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12671 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12672
12673 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12674
12675 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12676 (ARM Options): Ditto.
12677 (i386 and x86-64 Options): Ditto.
12678 (RX Options): Ditto.
12679 (SPARC Options): Ditto.
12680
12681 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12682
12683 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12684 FreeBSD 6 and later. Generally use cpu generic.
12685
12686 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12687
12688 * doc/cpp.texi: Update copyright years.
12689
12690 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12691
12692 PR target/46898
12693 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12694
12695 2011-02-25 Jon Beniston <jon@beniston.com>
12696
12697 PR target/46898
12698 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12699 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12700 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12701 (lm32_block_move_inline): Add type cast to remove warning.
12702 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12703 (gen_int_relational): Move declarations to start of function.
12704
12705 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12706
12707 PR tree-optimization/45470
12708 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12709 can throw internally only.
12710 * tree-vect-stmts.c (vectorizable_call): Likewise.
12711
12712 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12713
12714 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12715 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12716 * config/stormy16/stormy16-protos.h
12717 (xstormy16_preferred_reload_class): Remove.
12718 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12719 static. Change 'rclass' argument and return type to reg_class_t.
12720 (TARGET_PREFERRED_RELOAD_CLASS,
12721 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12722
12723 2011-02-24 Richard Guenther <rguenther@suse.de>
12724
12725 * lto-streamer-in.c (input_bb): Do not find referenced vars
12726 in debug statements.
12727
12728 2011-02-23 Jason Merrill <jason@redhat.com>
12729
12730 * common.opt (fabi-version): Document v5 and v6.
12731
12732 2011-02-23 Richard Guenther <rguenther@suse.de>
12733
12734 PR tree-optimization/47849
12735 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12736
12737 2011-02-23 Jie Zhang <jie@codesourcery.com>
12738
12739 * opts-common.c (decode_cmdline_option): Print empty string
12740 argument as "" in decoded->orig_option_with_args_text.
12741 * gcc.c (execute): Print empty string argument as ""
12742 in the verbose output.
12743 (do_spec_1): Keep empty string argument.
12744
12745 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12746
12747 * config.gcc: Declare score-* and crx-* obsolete.
12748
12749 2011-02-23 Jie Zhang <jie@codesourcery.com>
12750
12751 PR rtl-optimization/47763
12752 * web.c (web_main): Ignore naked clobber when replacing register.
12753
12754 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12755
12756 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12757 Remove.
12758
12759 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12760
12761 PR doc/47848
12762 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12763
12764 2011-02-22 Mike Stump <mikestump@comcast.net>
12765
12766 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12767 assembler.
12768 * configure: Regenerate.
12769
12770 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12771
12772 PR rtl-optimization/46002
12773 * ira-color.c (update_copy_costs): Change class intersection
12774 test to reg_class_contents[] test of 'hard_regno'.
12775
12776 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12777
12778 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12779 than Driver option.
12780 * config/hpux11.opt (mt): Likewise.
12781 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12782 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12783 * config/vax/elf.opt (mno-asm-pic): Likewise.
12784 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12785
12786 2011-02-21 Mike Stump <mikestump@comcast.net>
12787
12788 PR target/47822
12789 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12790 tree so we can get save the type.
12791 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12792 for CFString instead of trying to use past the end of the builtins.
12793 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12794 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12795 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12796 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12797 Rename to darwin_builtin_cfstring.
12798 (darwin_init_cfstring_builtins): Return the built type.
12799
12800 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12801
12802 PR target/47840
12803 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12804 (_mm256_insert_epi64): Use _mm_insert_epi64.
12805
12806 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12807
12808 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12809 * config/stormy16/stormy16-protos.h
12810 (xstormy16_mode_dependent_address_p): Remove.
12811 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12812 Make static. Change return type to bool. Change argument type to
12813 const_rtx. Remove dead code.
12814 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12815
12816 2011-02-21 Richard Guenther <rguenther@suse.de>
12817
12818 PR lto/47820
12819 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12820 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12821 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12822 TUs context.
12823 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12824 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12825
12826 2011-02-20 Richard Guenther <rguenther@suse.de>
12827
12828 PR lto/47822
12829 * tree.c (free_lang_data_in_decl): Clean builtins from
12830 the TU decl BLOCK_VARS.
12831
12832 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12833
12834 PR debug/47620
12835 PR debug/47630
12836 * haifa-sched.c (fix_tick_ready): Skip tick computation
12837 for debug insns.
12838
12839 2011-02-19 Richard Guenther <rguenther@suse.de>
12840
12841 PR lto/47647
12842 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12843 Remove lazy BLOCK_VARS streaming.
12844 (lto_input_ts_block_tree_pointers): Likewise.
12845 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12846
12847 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12848
12849 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12850
12851 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12852
12853 * config/i386/biarch32.h, config/i386/mach.h,
12854 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12855
12856 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12857
12858 PR target/47800
12859 * config/i386/i386.md (peephole2 for shift and plus): Use
12860 operands[1] original mode in the first insn.
12861
12862 2011-02-18 Mike Stump <mikestump@comcast.net>
12863
12864 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12865
12866 2011-02-18 Jan Hubicka <jh@suse.cz>
12867
12868 PR middle-end/47788
12869 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12870 to zero when the function is not inlinable at all.
12871
12872 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12873
12874 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12875 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12876 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12877 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12878 * config/pa/t-pa64: Likewise.
12879 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12880
12881 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12882
12883 PR driver/47787
12884 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12885
12886 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12887
12888 PR target/47792
12889 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12890
12891 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12892
12893 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12894 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12895 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12896 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12897 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12898 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12899 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12900 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12901 m32r_legitimate_address_p): New functions.
12902 * config/m32r/constraints.md (constraint "S"): Don't use
12903 STORE_PREINC_PREDEC_P.
12904 (constraint "U"): Don't use LOAD_POSTINC_P.
12905
12906 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12907
12908 PR rtl-optimization/46178
12909 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12910 compute ira_hard_regno_cover_class[].
12911
12912 2011-02-18 Richard Guenther <rguenther@suse.de>
12913
12914 PR lto/47798
12915 * lto-streamer.h (lto_global_var_decls): Declare.
12916 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12917 statics for global var processing.
12918
12919 2011-02-18 Richard Guenther <rguenther@suse.de>
12920
12921 PR tree-optimization/47737
12922 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12923 edge dominance check.
12924
12925 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12926
12927 PR debug/47780
12928 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12929 avoid invalid rtx sharing.
12930
12931 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12932
12933 * doc/cpp.texi (Obsolete Features): Add background on the
12934 origin of assertions.
12935
12936 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12937
12938 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12939 objc_abi == 2.
12940 * config/darwin.c (output_objc_section_asm_op): Added support for
12941 ABI v1 and v2.
12942 (is_objc_metadata): New.
12943 (darwin_objc2_section): New.
12944 (darwin_objc1_section): New.
12945 (machopic_select_section): Added support for ABI v1 and v2.
12946 (darwin_emit_objc_zeroed): New.
12947 (darwin_output_aligned_bss): Detect objc metadata and treat it
12948 appropriately.
12949 (darwin_asm_output_aligned_decl_common): Same.
12950 (darwin_asm_output_aligned_decl_local): Same.
12951 * config/darwin-sections.def: Updated for ABI v1 and v2.
12952 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12953 compiling Objective-C code for the NeXT runtime, default to using
12954 ABI version 0 for 32-bit, and version 2 for 64-bit.
12955
12956 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12957
12958 * common.opt (optimize_fast): New Variable.
12959 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12960 instead of local variable ofast.
12961
12962 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12963
12964 * doc/invoke.texi (fobjc-abi-version): Documented.
12965 (fobjc-nilcheck): Documented.
12966 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12967 version.
12968
12969 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12970
12971 PR driver/47390
12972 * common.opt (export-dynamic): New Driver option.
12973 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12974
12975 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12976
12977 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12978
12979 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12980 Jan Hubicka <jh@suse.cz>
12981
12982 PR debug/47106
12983 PR debug/47402
12984 * cfgexpand.c (account_used_vars_for_block): Remove.
12985 (estimated_stack_frame_size): Use referenced vars.
12986 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12987 that were referenced in the original function. Test src_fn
12988 rather than cfun. Drop redundant get_var_ann.
12989 (setup_one_parameter): Drop redundant get_var_ann.
12990 (declare_return_variable): Likewise.
12991 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12992 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12993 * ipa-inline.c (compute_inline_parameters): Do not compute
12994 disregard_inline_limits here.
12995 (compute_inlinable_for_current, pass_inlinable): New.
12996 (pass_inline_parameters): Require PROP_referenced_vars.
12997 * cgraphunit.c (cgraph_process_new_functions): Don't run
12998 compute_inline_parameters explicitly unless function is in SSA form.
12999 (cgraph_analyze_function): Set .disregard_inline_limits.
13000 * tree-sra.c (convert_callers): Compute inliner parameters
13001 only for functions already in SSA form.
13002
13003 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13004
13005 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13006 -mlittle-endian-data.
13007
13008 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13009
13010 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13011 -mno-fpu, not -fpu and -no-fpu.
13012 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13013 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13014
13015 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13016
13017 PR target/43653
13018 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13019 input reload with PLUS RTX.
13020
13021 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13022
13023 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13024 of InverseVar(MDMX).
13025
13026 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13027
13028 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13029 --m4-340.
13030
13031 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13032
13033 * config/mn10300/mn10300.opt (mno-crt0): New.
13034
13035 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13036
13037 * config/m68k/uclinux.opt (static-libc): New Driver option.
13038
13039 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13040
13041 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13042
13043 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13044
13045 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13046 %{muser-extend-enabled}.
13047
13048 2011-02-16 Richard Guenther <rguenther@suse.de>
13049
13050 PR tree-optimization/47738
13051 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13052 the TODO from tree_predictive_commoning.
13053
13054 2011-02-15 Jeff Law <law@redhat.com>
13055
13056 Revert
13057 2011-01-25 Jeff Law <law@redhat.com>
13058
13059 PR rtl-optimization/37273
13060 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13061 handle them like argument loads from stack slots. Do not double
13062 count memory for memory constants and argument loads from stack slots.
13063
13064 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13065
13066 PR middle-end/47725
13067 * combine.c (cant_combine_insn_p): Revert the last change.
13068
13069 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13070
13071 PR target/47755
13072 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13073 mode for vector constants. Remove code that checks for TImode.
13074
13075 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13076
13077 PR debug/47106
13078 PR debug/47402
13079 * cgraph.h (compute_inline_parameters): Return void.
13080 * ipa-inline.c (compute_inline_parameters): Adjust.
13081
13082 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13083
13084 PR debug/47106
13085 PR debug/47402
13086 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13087 rather than decl.
13088 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13089 * ipa-inline.c (compute_inline_parameters): Adjust.
13090
13091 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13092
13093 PR debug/47106
13094 PR debug/47402
13095 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13096 Adjust all users. Pass FN to...
13097 * tree-flow-inline.h (first_referenced_var): ... this. Add
13098 fn argument.
13099 * ipa-struct-reorg.c: Adjust.
13100 * tree-dfa.c: Adjust.
13101 * tree-into-ssa.c: Adjust.
13102 * tree-sra.c: Adjust.
13103 * tree-ssa-alias.c: Adjust.
13104 * tree-ssa-live.c: Adjust.
13105 * tree-ssa.c: Adjust.
13106 * tree-ssanames.c: Adjust.
13107 * tree-tailcall.c: Adjust.
13108
13109 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13110
13111 PR debug/47106
13112 PR debug/47402
13113 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13114 Adjust all callers.
13115 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13116 * tree-flow-inline.h: Adjust.
13117 * gimple-pretty-print.c: Adjust.
13118 * tree-into-ssa.c: Adjust.
13119 * tree-ssa.c: Adjust.
13120 * cfgexpand.c: Adjust.
13121
13122 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13123
13124 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13125 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13126 (EXTRA_CONSTRAINT): Delete.
13127 * config/iq2000/constraints.md: New file.
13128 * config/iq2000/iq2000.md: Include it.
13129 (define_insn ""): Delete.
13130 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13131 unsupported constraint letters from patterns.
13132 (call_value, call_value_internal1): Likewise.
13133 (call_value_multiple_internal1): Likewise.
13134
13135 2011-02-15 Nick Clifton <nickc@redhat.com>
13136
13137 * config/mn10300/mn10300.c: Include tm-constrs.h.
13138 (struct liw_data): New data structure describing an LIW candidate
13139 instruction.
13140 (extract_bundle): Use struct liw_data. Allow small integer
13141 operands for some instructions.
13142 (check_liw_constraints): Use struct liw_data. Remove swapped
13143 parameter. Add comments describing the checks. Fix bug when
13144 assigning the source of liw1 to the source of liw2.
13145 (liw_candidate): Delete. Code moved into extract_bundle.
13146 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13147 before swapping.
13148 * config/mn10300/predicates.md (liw_operand): New predicate.
13149 Allows registers and small integer constants.
13150 * config/mn10300/constraints.md (O): New constraint. Accetps
13151 integers in the range -8 to +7 inclusive.
13152 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13153 for moving a small integer into a register. Give this alternative
13154 LIW attributes.
13155 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13156 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13157 using the J,K,L and M constraints,
13158 (liw): Remove SI mode on second operands to allow for HI and QI
13159 mode values.
13160 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13161 instruction.
13162
13163 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13164
13165 PR middle-end/47725
13166 * combine.c (cant_combine_insn_p): Check zero/sign extended
13167 hard registers.
13168
13169 2011-02-15 Richard Guenther <rguenther@suse.de>
13170
13171 PR tree-optimization/47743
13172 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13173 for a non-type-compatible VN lookup bail out.
13174
13175 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13176
13177 * config/fr30/constraints.md: New file.
13178 * config/fr30/fr30.md: Include it.
13179 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13180 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13181 (EXTRA_CONSTRAINT): Delete.
13182
13183 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13184
13185 * config/frv/constraints.md: New file.
13186 * config/frv/predicates.md: Include it.
13187 * config/frv/frv.c (reg_class_from_letter): Delete.
13188 (frv_option_override): Don't initialize it.
13189 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13190 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13191 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13192 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13193 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13194 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13195 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13196 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13197 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13198 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13199 (REG_CLASS_FROM_CONSTRAINT): Delete.
13200
13201 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13202
13203 PR middle-end/47581
13204 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13205 if frame size is 0 in a leaf function.
13206
13207 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13208
13209 PR pch/14940
13210 * config/alpha/host-osf.c: New file.
13211 * config/alpha/x-osf: New file.
13212 * config.host (alpha*-dec-osf*): Use it.
13213
13214 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13215
13216 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13217 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13218 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13219 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13220 type to const_rtx.
13221 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13222
13223 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13224
13225 * config/stormy16/constraints.md: New file.
13226 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13227 Use satisfies_constraint_Q and satisfies_constraint_R.
13228 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13229 Delete.
13230 (xstormy16_legitiamte_address_p): Declare.
13231 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13232 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13233 (EXTRA_CONSTRAINT): Delete.
13234 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13235 Un-staticize.
13236 (xstormy16_extra_constraint_p): Delete.
13237
13238 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13239
13240 PR tree-optimization/46494
13241 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13242 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13243 (pass_rtl_loop_done): Add TODO_verify_flow.
13244 * fwprop.c (pass_rtl_fwprop): Likewise.
13245 * modulo-sched.c (pass_sms): Likewise.
13246 * tree-ssa-dom.c (pass_dominator): Likewise.
13247 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13248 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13249 (pass_tree_loop_done): Likewise.
13250 * tree-ssa-pre.c (execute_pre): Likewise.
13251 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13252 * tree-ssa-sink.c (pass_sink_code): Likewise.
13253 * tree-vrp.c (pass_vrp): Likewise.
13254
13255 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13256
13257 * config/v850/constraints.md: New file.
13258 * config/v850/v850.md: Include it.
13259 * config/v850/predicates.md (reg_or_0_operand): Use
13260 satisfies_constraint_G.
13261 (special_symbolref_operand): Use satisfies_constraint_K.
13262 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13263 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13264 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13265 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13266 (EXTRA_CONSTRAINT): Delete.
13267 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13268 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13269 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13270
13271 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13272
13273 PR target/47696
13274 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13275 description.
13276
13277 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13278
13279 * config/mcore/constraints.md: New file.
13280 * config/mcore/mcore.md: Include it.
13281 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13282 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13283 (REG_CLASS_FROM_LETTER): Delete.
13284 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13285 insn_const_int_ok_for_constraint.
13286 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13287 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13288 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13289 (EXTRA_CONSTRAINT): Delete.
13290
13291 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13292
13293 PR ada/41929
13294 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13295 (IS_SIGHANDLER): Define.
13296 (sparc64_is_sighandler): New function, split off from
13297 sparc64_fallback_frame_state.
13298 (sparc_is_sighandler): New function, split off from
13299 sparc_fallback_frame_state.
13300 (sparc64_fallback_frame_state): Merge with ...
13301 (sparc_fallback_frame_state): ... this into ...
13302 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13303 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13304 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13305 stack instead of hardcoded offsets.
13306
13307 2011-02-14 Andriy Gapon <avg@freebsd.org>
13308
13309 PR target/45808
13310 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13311
13312 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13313
13314 * configure: Regenerate.
13315
13316 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13317
13318 PR driver/45731
13319 * gcc.c (asm_options): Correct spec matching --target-help.
13320
13321 2011-02-12 Martin Jambor <mjambor@suse.cz>
13322
13323 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13324 to gimple call error.
13325
13326 2011-02-12 Mike Stump <mikestump@comcast.net>
13327
13328 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13329 comments in backslash regions.
13330
13331 2011-02-12 Mike Stump <mikestump@comcast.net>
13332 Jakub Jelinek <jakub@redhat.com>
13333 Iain Sandoe <iains@gcc.gnu.org>
13334
13335 PR target/47324
13336 * dwarf2out.c (output_cfa_loc): When required, apply the
13337 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13338 (output_loc_sequence): Likewise.
13339 (output_loc_operands_raw): Likewise.
13340 (output_loc_sequence_raw): Likewise.
13341 (output_cfa_loc): Likewise.
13342 (output_loc_list): Suppress register number adjustment when
13343 calling output_loc_sequence()
13344 (output_die): Likewise.
13345
13346 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13347
13348 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13349 Remove macros.
13350 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13351 xtensa_memory_move_cost): New functions.
13352 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13353
13354 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13355
13356 PR lto/47225
13357 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13358 in the current directory.
13359 * configure: Rebuilt.
13360
13361 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13362
13363 * config/darwin.c (darwin_override_options): Add a hunk missed
13364 from the commit of r168571. Trim comment line lengths and
13365 correct indents of the preceding block.
13366
13367 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13368
13369 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13370 the switch.
13371
13372 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13373
13374 * common.opt (nostartfiles): New Driver option.
13375
13376 2011-02-11 Xinliang David Li <davidxl@google.com>
13377
13378 PR tree-optimization/47707
13379 * tree-chrec.c (convert_affine_scev): Keep type precision.
13380
13381 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13382
13383 PR tree-optimization/47420
13384 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13385
13386 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13387
13388 PR rtl-optimization/47614
13389 * rtl.h (check_for_inc_dec): Declare.
13390 * dse.c (check_for_inc_dec): Externalize...
13391 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13392 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13393
13394 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13395
13396 PR driver/47678
13397 * gcc.c (main): Do not compile inputs if there were errors in
13398 option handling.
13399 * opts-common.c (read_cmdline_option): Check for wrong language
13400 after other error checks.
13401
13402 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13403
13404 * cgraph.c: Fix comment typos.
13405 * cgraph.h: Likewise.
13406 * cgraphunit.c: Likewise.
13407 * ipa-cp.c: Likewise.
13408 * ipa-inline.c: Likewise.
13409 * ipa-prop.c: Likewise.
13410 * ipa-pure-const.c: Likewise.
13411 * ipa-ref.c: Likewise.
13412 * ipa-reference.c: Likewise.
13413
13414 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13415
13416 PR debug/47684
13417 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13418
13419 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13420
13421 PR testsuite/47400
13422 * doc/sourcebuild.texi (Require Support): Document
13423 dg-require-ascii-locale.
13424
13425 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13426
13427 * doc/lto.texi (Write summary): Fix missing parentheses.
13428
13429 2011-02-10 DJ Delorie <dj@redhat.com>
13430
13431 * config/m32c/m32c.c (m32c_option_override): Disable
13432 -fcombine-stack-adjustments until flag value tracking and compare
13433 optimization can be rewritten.
13434
13435 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13436
13437 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13438 PROCESSOR_POWER7.
13439 (PROCESSOR_DEFAULT64): Likewise.
13440
13441 2011-02-10 Richard Henderson <rth@redhat.com>
13442
13443 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13444 change from 2011-02-03.
13445 * config/rx/rx.c (flags_from_code): Likewise.
13446 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13447 is valid, n/pz otherwise.
13448 (rx_select_cc_mode): Return CCmode if Y is not zero.
13449
13450 2011-02-10 Richard Guenther <rguenther@suse.de>
13451
13452 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13453
13454 2011-02-10 Richard Guenther <rguenther@suse.de>
13455
13456 PR tree-optimization/47677
13457 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13458
13459 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13460
13461 PR target/47665
13462 * combine.c (make_compound_operation): Only change shifts into
13463 multiplication for SCALAR_INT_MODE_P.
13464
13465 2011-02-10 Jie Zhang <jie@codesourcery.com>
13466
13467 PR testsuite/47622
13468 Revert
13469 2011-02-05 Jie Zhang <jie@codesourcery.com>
13470 PR debug/42631
13471 * web.c (entry_register): Don't clobber the number of the
13472 first uninitialized reference in used[].
13473
13474 2011-02-09 Richard Guenther <rguenther@suse.de>
13475
13476 PR tree-optimization/47664
13477 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13478 all edges again.
13479
13480 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13481
13482 PR target/46481
13483 PR target/47032
13484 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13485 PROCESSOR_POWER7.
13486 (PROCESSOR_DEFAULT64): Same.
13487 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13488
13489 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13490
13491 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13492
13493 2011-02-09 Martin Jambor <mjambor@suse.cz>
13494
13495 PR middle-end/45505
13496 * tree-sra.c (struct access): New flags grp_scalar_read and
13497 grp_scalar_write. Changed description of assignment read and write
13498 flags.
13499 (dump_access): Dump new flags, reorder all of them.
13500 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13501 to detect multiple scalar reads.
13502 (analyze_access_subtree): Use the new scalar read write flags instead
13503 of the old flags. Adjusted comments.
13504
13505 2011-02-08 DJ Delorie <dj@redhat.com>
13506
13507 PR target/47548
13508 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13509 patterns.
13510
13511 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13512
13513 * config/m68k/uclinux.opt: New.
13514 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13515
13516 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13517
13518 * config/cris/elf.opt (sim): New Driver option.
13519
13520 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13521
13522 * config/xtensa/elf.opt: New.
13523 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13524
13525 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13526
13527 * config/vax/elf.opt: New.
13528 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13529
13530 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13531
13532 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13533
13534 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13535
13536 * config/gnu-user.opt: New.
13537 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13538 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13539 *-*-uclinux*): Use gnu-user.opt.
13540
13541 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13542
13543 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13544 * config/i386/gnu.h (CPP_SPEC): Likewise.
13545
13546 2011-02-08 Ian Lance Taylor <iant@google.com>
13547
13548 * common.opt (fcx-limited-range): Add SetByCombined flag.
13549 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13550 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13551 (fassociative-math, freciprocal-math): Likewise.
13552 (funsafe-math-optimizations): Likewise.
13553 * opth-gen.awk: Handle SetByCombined.
13554 * optc-gen.awk: Likewise.
13555 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13556 (set_unsafe_math_optimizations_flags): Likewise.
13557 * doc/options.texi (Option properties): Document SetByCombined.
13558
13559 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13560
13561 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13562 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13563 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13564 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13565 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13566
13567 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13568
13569 PR tree-optimization/46834
13570 PR tree-optimization/46994
13571 PR tree-optimization/46995
13572 * graphite-sese-to-poly.c (used_outside_reduction): New.
13573 (detect_commutative_reduction): Call used_outside_reduction.
13574 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13575 translate_scalar_reduction_to_array only when at least one
13576 loop-phi/close-phi tuple has been detected.
13577
13578 2011-02-08 Richard Guenther <rguenther@suse.de>
13579
13580 PR middle-end/47639
13581 * tree-vect-generic.c (expand_vector_operations_1): Update
13582 stmts here ...
13583 (expand_vector_operations): ... not here. Cleanup EH info
13584 and the CFG if required.
13585
13586 2011-02-08 Richard Guenther <rguenther@suse.de>
13587
13588 PR tree-optimization/47641
13589 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13590 require type compatibility.
13591
13592 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13593
13594 * gimple-low.c (lower_function_body): Don't remove the location of
13595 the return statement here.
13596 (lower_gimple_return): Do it here instead but only if the return
13597 statement is actually used twice.
13598
13599 2011-02-08 Richard Guenther <rguenther@suse.de>
13600
13601 PR tree-optimization/47632
13602 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13603 unused up_to_stmt parameter, return whether cfg-cleanup is
13604 necessary, remove EH info properly.
13605 (forward_propagate_into_gimple_cond): Adjust caller.
13606 (forward_propagate_into_cond): Likewise.
13607 (forward_propagate_comparison): Likewise.
13608 (tree_ssa_forward_propagate_single_use_vars): Make
13609 forward_propagate_comparison case similar to the two others.
13610
13611 2011-02-08 Nick Clifton <nickc@redhat.com>
13612
13613 * config/mn10300/mn10300.opt (mliw): New command line option.
13614 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13615 (liw_bundling): New automaton.
13616 (liw): New attribute.
13617 (liw_op): New attribute.
13618 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13619 (movsi_internal): Add LIW attributes.
13620 (andsi3): Likewise.
13621 (iorsi3): Likewise.
13622 (xorsi3): Likewise.
13623 (addsi3): Separate register and immediate alternatives.
13624 Add LIW attributes.
13625 (subsi3): Likewise.
13626 (cmpsi): Likewise.
13627 (aslsi3): Likewise.
13628 (lshrsi3): Likewise.
13629 (ashrsi3): Likewise.
13630 (liw): New pattern.
13631 * config/mn10300/mn10300.c (liw_op_names): New
13632 (mn10300_print_operand): Handle 'W' operand descriptor.
13633 (extract_bundle): New function.
13634 (check_liw_constraints): New function.
13635 (liw_candidate): New function.
13636 (mn10300_bundle_liw): New function.
13637 (mn10300_reorg): New function.
13638 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13639 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13640 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13641 __LIW__ or __NO_LIW__.
13642 * doc/invoke.texi: Describe the -mliw command line option.
13643
13644 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13645
13646 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13647 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13648 pthread_mutex_unlock): Remove.
13649 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13650 * config/pa/t-pa64: Likewise.
13651 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13652 shared libc if not linking against libpthread.
13653 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13654
13655 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13656
13657 PR target/47558
13658 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13659 on 10.6 and later to ensure that we always use the unwinder from
13660 the system. Only add -no_compact_unwind when tarteting darwin
13661 10.6 or later.
13662
13663 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13664
13665 PR target/46997
13666 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13667 (vec_interleave_lowv2sf): Ditto.
13668 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13669 (vec_extract_oddv2sf): Ditto.
13670
13671 2011-02-07 Mike Stump <mikestump@comcast.net>
13672
13673 PR target/42333
13674 Add __ieee_divdc3 entry point.
13675 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13676 entry point.
13677 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13678 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13679 * config/darwin.c (darwin_rename_builtins): Add.
13680 * config/darwin-protos.h (darwin_rename_builtins): Add.
13681
13682 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13683
13684 PR target/47636
13685 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13686 for the condition.
13687
13688 2011-02-07 Mike Stump <mikestump@comcast.net>
13689
13690 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13691
13692 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13693
13694 PR target/47534
13695 * config/avr/libgcc.S (exit): Move .endfunc
13696
13697 2011-02-07 Richard Guenther <rguenther@suse.de>
13698
13699 PR tree-optimization/47615
13700 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13701 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13702 (run_scc_vn): Initialize it.
13703 (visit_reference_op_load): Use it.
13704 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13705
13706 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13707
13708 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13709 DImode trapping arithmetic libfuncs.
13710
13711 2011-02-07 Richard Guenther <rguenther@suse.de>
13712
13713 PR tree-optimization/47621
13714 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13715 two duplicates ...
13716 (execute_update_addresses_taken): ... here. Make it more
13717 conservative in what we accept.
13718
13719 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13720
13721 * config/sparc/freebsd.h (ASM_SPEC): Define.
13722 * config/sparc/vxworks.h (ASM_SPEC): Define.
13723
13724 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13725
13726 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13727
13728 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13729
13730 * doc/invoke.texi: Remove reference to compiler internals from
13731 user documentation.
13732
13733 * reg-notes.def: Remove REG_VALUE_PROFILE.
13734 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13735
13736 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR middle-end/47610
13739 * varasm.c (default_section_type_flags): If decl is NULL,
13740 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13741
13742 2011-02-05 Jie Zhang <jie@codesourcery.com>
13743
13744 PR debug/42631
13745 * web.c (entry_register): Don't clobber the number of the
13746 first uninitialized reference in used[].
13747
13748 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13749
13750 PR tree-optimization/46194
13751 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13752 (build_classic_dist_vector_1): Do not represent classic distance
13753 vectors when the access functions are variating in different loops.
13754
13755 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13756
13757 * config/mips/iris6.opt: New.
13758 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13759
13760 2011-02-04 Richard Henderson <rth@redhat.com>
13761 Steve Ellcey <sje@cup.hp.com>
13762
13763 PR target/46997
13764 * config/ia64/predicates.md (mux1_brcst_element): New.
13765 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13766 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13767 (ia64_unpack_sign): New.
13768 (ia64_expand_unpack): Rewrite using new routines.
13769 (ia64_expand_widen_sum): Ditto.
13770 (ia64_expand_dot_prod_v8qi): Ditto.
13771 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13772 routines, add endian check.
13773 (pmpy2_even): Rename from pmpy2_r, add endian check.
13774 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13775 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13776 (vec_widen_smult_hi_v4hi): Ditto.
13777 (vec_widen_umult_lo_v4hi): Ditto.
13778 (vec_widen_umult_hi_v4hi): Ditto.
13779 (mulv2si3): Change endian checks.
13780 (sdot_prodv4hi): Rewrite with new calls.
13781 (udot_prodv4hi): New.
13782 (vec_pack_ssat_v4hi): Add endian check.
13783 (vec_pack_usat_v4hi): Ditto.
13784 (vec_pack_ssat_v2si): Ditto.
13785 (max1_even): Rename from max1_r, add endian check.
13786 (max1_odd): Rename from max1_l, add endian check.
13787 (*mux1_rev): Format change.
13788 (*mux1_mix): Ditto.
13789 (*mux1_shuf): Ditto.
13790 (*mux1_alt): Ditto.
13791 (*mux1_brcst_v8qi): Use new predicate.
13792 (vec_extract_evenv8qi): Remove endian check.
13793 (vec_extract_oddv8qi): Ditto.
13794 (vec_interleave_lowv4hi): Format change.
13795 (vec_interleave_highv4hi): Ditto.
13796 (mix2_even): Rename from mix2_r, add endian check.
13797 (mix2_odd): Rename from mux2_l, add endian check.
13798 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13799 (vec_extract_evenodd_helper): Format change.
13800 (vec_extract_evenv4hi): Remove endian check.
13801 (vec_extract_oddv4hi): Remove endian check.
13802 (vec_interleave_lowv2si): Format change.
13803 (vec_interleave_highv2si): Format change.
13804 (vec_initv2si): Remove endian check.
13805 (vecinit_v2si): Add endian check.
13806 (reduc_splus_v2sf): Add endian check.
13807 (reduc_smax_v2sf): Ditto.
13808 (reduc_smin_v2sf): Ditto.
13809 (vec_initv2sf): Remove endian check.
13810 (fpack): Add endian check.
13811 (fswap): Add endian check.
13812 (vec_interleave_highv2sf): Add endian check.
13813 (vec_interleave_lowv2sf): Add endian check.
13814 (fmix_lr): Add endian check.
13815 (vec_setv2sf): Format change.
13816 (*vec_extractv2sf_0_be): Use shift to extract operand.
13817 (*vec_extractv2sf_1_be): New.
13818 (vec_pack_trunc_v4hi): Add endian check.
13819 (vec_pack_trunc_v2si): Format change.
13820
13821 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13822
13823 PR inline-asm/23200
13824 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13825 do bb, locus and block comparison and disallow loads if it is not set.
13826 (stmt_is_replaceable_p): New function.
13827 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13828 callers.
13829 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13830 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13831 SSA_NAME_DEF_STMT.
13832 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13833
13834 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13835
13836 * config/rs6000/xilinx.opt: New.
13837 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13838
13839 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13840
13841 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13842
13843 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13844
13845 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13846 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13847 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13848 secondary_reload_info, xtensa_secondary_reload): Remove.
13849 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13850 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13851 (xtensa_preferred_reload_class): Make static. Change return and
13852 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13853 Use CONST_DOUBLE_P predicate.
13854 (xtensa_preferred_output_reload_class): New function.
13855 (xtensa_secondary_reload): Make static.
13856
13857 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13858
13859 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13860 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13861 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13862
13863 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13864
13865 PR middle-end/31490
13866 * output.h (SECTION_RELRO): Define.
13867 (SECTION_MACH_DEP): Adjust.
13868 (get_variable_section): New prototype.
13869 * varpool.c (varpool_finalize_named_section_flags): New function.
13870 (varpool_assemble_pending_decls): Call it.
13871 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13872 * cgraphunit.c (cgraph_output_in_order): Call
13873 varpool_finalize_named_section_flags.
13874 * varasm.c (get_section): Allow section flags conflicts between
13875 relro and read-only sections if the section hasn't been declared yet.
13876 Set SECTION_OVERRIDE after diagnosing section type conflict.
13877 (get_variable_section): No longer static.
13878 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13879 readonly sections that need relocations.
13880 (decl_readonly_section_1): New function.
13881 (decl_readonly_section): Use it.
13882
13883 Revert:
13884 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13885 Steve Ellcey <sje@cup.hp.com>
13886
13887 PR middle-end/31490
13888 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13889 if section attribute used.
13890
13891 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13892
13893 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13894 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13895 (darwin_init_sections): Remove assertion.
13896
13897 2011-02-03 Nick Clifton <nickc@redhat.com>
13898
13899 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13900 lt and ge.
13901 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13902 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13903 instead of "n" and "pz".
13904 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13905 CC_FLAG_S.
13906
13907 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13908
13909 PR target/47312
13910 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13911 fma, expand FMA_EXPR as fma{,f,l} call.
13912
13913 PR lto/47274
13914 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13915 copy them into a unsigned char variable and pass address of it to
13916 lto_output_data_stream.
13917
13918 PR target/47564
13919 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13920 around backend_init_target and lang_dependent_init_target calls.
13921 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13922 (verify_cgraph_node): Don't call set_cfun here. Use
13923 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13924 Set error_found for incorrectly represented calls to thunks.
13925
13926 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13927
13928 PR debug/43092
13929 PR rtl-optimization/43494
13930 * rtl.h (for_each_inc_dec_fn): New type.
13931 (for_each_inc_dec): Declare.
13932 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13933 (for_each_inc_dec_find_inc_dec): New fn.
13934 (for_each_inc_dec_find_mem): New fn.
13935 (for_each_inc_dec): New fn.
13936 * dse.c (struct insn_size): Remove.
13937 (replace_inc_dec, replace_inc_dec_mem): Remove.
13938 (emit_inc_dec_insn_before): New fn.
13939 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13940 (canon_address): Pass mem modes to cselib_lookup.
13941 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13942 (cselib_lookup_from_insn): Likewise.
13943 (cselib_subst_to_values): Likewise.
13944 * cselib.c (find_slot_memmode): New var.
13945 (cselib_find_slot): New fn. Use it instead of
13946 htab_find_slot_with_hash everywhere.
13947 (entry_and_rtx_equal_p): Use find_slot_memmode.
13948 (autoinc_split): New fn.
13949 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13950 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13951 Deal with autoinc. Special-case recursion into MEMs.
13952 (cselib_hash_rtx): Likewise.
13953 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13954 address and MEM modes.
13955 (cselib_subst_to_values): Add memmode, pass it on.
13956 Deal with autoinc.
13957 (cselib_lookup): Add memmode argument, pass it on.
13958 (cselib_lookup_from_insn): Add memmode.
13959 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13960 (struct cselib_record_autoinc_data): New.
13961 (cselib_record_autoinc_cb): New fn.
13962 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13963 mode to cselib_lookup. Reset autoinced REGs here instead of...
13964 (cselib_process_insn): ... here.
13965 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13966 to cselib_lookup.
13967 (add_uses): Likewise, also to cselib_subst_to_values.
13968 (add_stores): Likewise.
13969 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13970 cselib_subst_to_values.
13971 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13972 * gcse.c (do_local_cprop): Adjusted.
13973 * postreload.c (reload_cse_simplify_set): Adjusted.
13974 (reload_cse_simplify_operands): Adjusted.
13975 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13976
13977 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13978
13979 PR tree-optimization/45122
13980 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13981 unsafe assumptions when there's more than one loop exit.
13982
13983 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13984
13985 PR target/47272
13986 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13987 Document using vector double with the load/store builtins, and
13988 that the load/store builtins always use Altivec instructions.
13989
13990 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13991 to use altivec memory instructions, even on VSX.
13992 (vector_altivec_store_<mode>): Ditto.
13993
13994 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13995 function.
13996
13997 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13998 V2DF, V2DI support to load/store overloaded builtins.
13999
14000 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14001 altivec load/store builtins for V2DF/V2DI types.
14002
14003 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14004 set avoid indexed addresses on power6 if -maltivec.
14005 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14006 vector_altivec_load/vector_altivec_store builtins.
14007 (altivec_expand_st_builtin): Ditto.
14008 (altivec_expand_builtin): Add VSX memory builtins.
14009 (rs6000_init_builtins): Add V2DI types to internal types.
14010 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14011 load/store builtins.
14012 (rs6000_address_for_altivec): Insure memory address is appropriate
14013 for Altivec.
14014
14015 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14016 vec_vsx_ld and vec_vsx_st.
14017 (vsx_store_<mode>): Ditto.
14018
14019 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14020 variables to hold long long types for VSX vector memory builtins.
14021 (RS6000_BTI_unsigned_long_long): Ditto.
14022 (long_long_integer_type_internal_node): Ditti.
14023 (long_long_unsigned_type_internal_node): Ditti.
14024
14025 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14026 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14027 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14028
14029 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14030 short cuts.
14031 (vec_vsx_st): Ditto.
14032
14033 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14034
14035 * config/pa/pa-hpux10.opt: New.
14036 * config/hpux11.opt (pthread): New Driver option.
14037 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14038 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14039
14040 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14041
14042 * config/ia64/vms.opt: New.
14043 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14044
14045 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14046
14047 PR target/47580
14048 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14049 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14050 generator functions.
14051 (vsx_floatuns<VSi><mode>2): Ditto.
14052 (vsx_fix_trunc<mode><VSi>2): Ditto.
14053 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14054
14055 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14056
14057 * config/i386/djgpp.opt (posix): New Driver option.
14058
14059 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14060
14061 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14062 Move to the unsupported targets list.
14063
14064 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14065
14066 PR rtl-optimization/47525
14067 * df-scan.c: Update copyright years.
14068 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14069 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14070
14071 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14072
14073 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14074 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14075 (ASM_OUTPUT_ASCII): Remove.
14076 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14077
14078 2011-02-02 Jeff Law <law@redhat.com>
14079
14080 PR middle-end/47543
14081 * reload.c (find_reloads_address): Handle reg+d address where both
14082 components are invalid by reloading the entire address.
14083
14084 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14085 Richard Guenther <rguenther@suse.de>
14086
14087 PR tree-optimization/40979
14088 PR bootstrap/47044
14089 * passes.c (init_optimization_passes): After LIM call copy_prop
14090 and DCE to clean up.
14091 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14092
14093 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14094
14095 PR tree-optimization/47576
14096 PR tree-optimization/47555
14097 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14098 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14099 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14100 * tree-scalar-evolution.c (follow_ssa_edge): Use
14101 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14102
14103 2011-02-02 Richard Guenther <rguenther@suse.de>
14104
14105 PR tree-optimization/47566
14106 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14107
14108 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14109
14110 PR debug/47106
14111 PR debug/47402
14112 * tree-inline.c (declare_return_variable): Remove unused caller
14113 variable.
14114
14115 PR debug/47106
14116 PR debug/47402
14117 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14118 * cfgexpand.c (account_used_vars_for_block): Use them.
14119 * tree-nrv.c (tree_nrv): Likewise.
14120 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14121 (dump_scope_block): Likewise.
14122 (remove_unused_locals): Likewise.
14123
14124 PR debug/47106
14125 PR debug/47402
14126 * tree-inline.c (declare_return_variable): Add result decl to
14127 local decls only once.
14128 * gimple-low.c (record_vars_into): Mark newly-created variables
14129 as referenced.
14130
14131 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14132
14133 PR debug/47498
14134 PR debug/47501
14135 PR debug/45136
14136 PR debug/45130
14137 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14138 debug insns.
14139 (no_real_insns_p, schedule_block, set_priorities): Drop special
14140 treatment of boundary debug insns.
14141 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14142 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14143 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14144 (BOUNDARY_DEBUG_INSN_P): Likewise.
14145 (SCHEDULE_DEBUG_INSN_P): Likewise.
14146 * sched-rgn.c (init_ready_list): Drop special treatment of
14147 boundary debug insns.
14148 * final.c (rest_of_clean_state): Clear notes' BB.
14149
14150 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14151
14152 * config/openbsd.opt (assert=): New Driver option.
14153
14154 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14155
14156 * config/i386/nto.opt: New.
14157 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14158
14159 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14160
14161 * config/i386/netware.opt: New.
14162 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14163
14164 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14165
14166 * config/interix.opt (posix): New Driver option.
14167
14168 2011-02-01 DJ Delorie <dj@redhat.com>
14169
14170 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14171
14172 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14173 class for A0/A1.
14174
14175 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14176
14177 PR tree-optimization/47561
14178 * toplev.c (process_options): Print the Graphite flags. Add
14179 flag_loop_flatten to the list of options requiring Graphite.
14180
14181 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14182
14183 * config/i386/cygming.opt (posix): New Driver option.
14184
14185 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14186
14187 * config/arm/vxworks.opt: New.
14188 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14189
14190 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14191
14192 * config/alpha/elf.opt: New.
14193 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14194 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14195
14196 2011-02-01 Richard Guenther <rguenther@suse.de>
14197
14198 PR tree-optimization/47559
14199 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14200 store-motion on references that can throw.
14201
14202 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14203
14204 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14205 * tree-pass.h (TDF_CSELIB): New macro.
14206 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14207 cselib_lookup): Check for it rather than for TDF_DETAILS.
14208
14209 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14210
14211 PR driver/47547
14212 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14213 is HOST_BIT_BUCKET.
14214
14215 * opts.c (finish_options): Don't add x_aux_base_name if it is
14216 HOST_BIT_BUCKET.
14217
14218 2011-02-01 Richard Guenther <rguenther@suse.de>
14219
14220 PR tree-optimization/47555
14221 Revert
14222 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14223
14224 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14225
14226 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14227
14228 PR gcc/46692
14229 * config/lm32/t-lm32: Add multilib for all CPU options.
14230
14231 2011-02-01 Richard Guenther <rguenther@suse.de>
14232
14233 PR tree-optimization/47541
14234 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14235 sure to have a field at offset zero.
14236
14237 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14238
14239 * config/arc/arc.opt (EB, EL): New Driver options.
14240
14241 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14242
14243 * config/alpha/osf5.opt: New.
14244 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14245
14246 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14247
14248 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14249
14250 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14251
14252 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14253 -floop-interchange.
14254 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14255 is an alias of -floop-interchange and that it requires the
14256 Graphite infrastructure.
14257 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14258 flag_loop_interchange based on the value of flag_tree_loop_linear.
14259
14260 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14261 Richard Guenther <rguenther@suse.de>
14262
14263 PR tree-optimization/47538
14264 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14265 type instead of r1type, except for comparisons. For right
14266 shifts and comparisons punt if there are mismatches in
14267 sizetype vs. non-sizetype types.
14268
14269 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14270
14271 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14272 avx_runtime.
14273
14274 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14275
14276 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14277 version number.
14278 * configure: Regenerate.
14279
14280 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14281
14282 * configure.ac (gcc_cv_ld_static_option): Define.
14283 (gcc_cv_ld_dynamic_option): Define.
14284 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14285 instead.
14286 (HAVE_LD_STATIC_DYNAMIC): Update message.
14287 (LD_STATIC_OPTION): Define.
14288 (LD_DYNAMIC_OPTION): Define.
14289 * configure: Regenerate.
14290 * config.in: Regenerate.
14291 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14292 HAVE_LD_STATIC_DYNAMIC]: Use them.
14293
14294 2011-01-31 Nick Clifton <nickc@redhat.com>
14295
14296 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14297 registers inside interrupt handlers if the handler is not a leaf
14298 function.
14299
14300 2011-01-31 Nick Clifton <nickc@redhat.com>
14301
14302 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14303 reg_renumber returning an INVALID_REGNUM.
14304
14305 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14306
14307 PR libgcj/44341
14308 * doc/install.texi: Document host options discarded when cross
14309 configuring target libraries.
14310
14311 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14312
14313 Reverted:
14314 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14315 PR debug/45136
14316 PR debug/45130
14317 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14318 debug insns.
14319 (no_real_insns_p, schedule_block, set_priorities): Drop special
14320 treatment of boundary debug insns.
14321 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14322 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14323 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14324 (BOUNDARY_DEBUG_INSN_P): Likewise.
14325 (SCHEDULE_DEBUG_INSN_P): Likewise.
14326 * sched-rgn.c (init_ready_list): Drop special treatment of
14327 boundary debug insns.
14328 * final.c (rest_of_clean-state): Clear notes' BB.
14329
14330 2011-01-31 Alan Modra <amodra@gmail.com>
14331
14332 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14333 toc relative expressions as we do in print_operand_address.
14334
14335 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14336
14337 * doc/extend.texi: Follow spelling conventions.
14338 * doc/invoke.texi: Fix a typo.
14339
14340 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14341
14342 * config/hpux11.opt: New.
14343 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14344 ia64*-*-hpux*): Use hpux11.opt.
14345
14346 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14347
14348 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14349 to tmake_file.
14350
14351 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14352
14353 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14354 support sites.
14355
14356 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14357
14358 * doc/install.texi (Binaries): Remove outdated reference for
14359 Motorola 68HC11/68HC12 downloads.
14360
14361 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14362
14363 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14364 Drepper's paper.
14365
14366 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14367
14368 PR bootstrap/47147
14369 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14370 used by NetBSD.
14371
14372 2011-01-28 Ahmad Sharif <asharif@google.com>
14373
14374 * value-prof.c (check_counter): Corrected error message.
14375
14376 2011-01-29 Jie Zhang <jie@codesourcery.com>
14377
14378 * config/arm/arm.c (arm_legitimize_reload_address): New.
14379 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14380 arm_legitimize_reload_address.
14381 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14382
14383 2011-01-28 Ian Lance Taylor <iant@google.com>
14384
14385 * godump.c (go_define): Ignore macros whose definitions include
14386 two adjacent operands.
14387
14388 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14389
14390 PR target/42894
14391 * varasm.c (force_const_mem): Store copy of x in desc->constant
14392 instead of x itself.
14393 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14394 itself into REG_EQUAL note.
14395
14396 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14397
14398 * config/freebsd.opt (posix, rdynamic): New Driver options.
14399
14400 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14401
14402 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14403 -Bstatic/-Bdynamic.
14404 * configure: Regenerate.
14405
14406 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14407
14408 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14409 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14410
14411 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14412
14413 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14414 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14415 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14416 (s390_preferred_reload_class): Make static. Change return and
14417 'rclass' argument type to reg_class_t.
14418
14419 2011-01-27 Jan Hubicka <jh@suse.cz>
14420
14421 PR middle-end/46949
14422 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14423 (process_function_and_variable_attributes): Check defined weakrefs.
14424
14425 2011-01-27 Martin Jambor <mjambor@suse.cz>
14426
14427 PR tree-optimization/47228
14428 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14429 build_ref_for_offset.
14430
14431 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14432
14433 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14434
14435 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14436
14437 PR rtl-optimization/46856
14438 * postreload.c (reload_combine_recognize_const_pattern): Do not
14439 separate cc0 setter and user on cc0 targets.
14440
14441 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14442
14443 PR c/43082
14444 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14445 passed a VOID_TYPE expression, immediately emit an error and
14446 return error_mark_node.
14447
14448 2011-01-26 Jeff Law <law@redhat.com>
14449
14450 PR rtl-optimization/47464
14451 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14452 rather than may_trap_p as needed.
14453
14454 2011-01-26 DJ Delorie <dj@redhat.com>
14455
14456 PR rtl-optimization/46878
14457 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14458 setter/user dependency as well.
14459
14460 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14461
14462 PR rtl-optimization/44469
14463 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14464 after removing trivially dead basic blocks.
14465
14466 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14467
14468 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14469 * config/frv/frv.h (LINK_SPEC): Likewise.
14470 * config/i386/netware.h (LINK_SPEC): Likewise.
14471 * config/m68k/linux.h (ASM_SPEC): Likewise.
14472 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14473 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14474 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14475 * config/sparc/linux.h (ASM_SPEC): Likewise.
14476 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14477 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14478
14479 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14480
14481 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14482 * config/frv/frv.h (ASM_SPEC): Likewise.
14483 * config/m68k/linux.h (ASM_SPEC): Likewise.
14484 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14485 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14486 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14487 * config/sparc/linux.h (ASM_SPEC): Likewise.
14488 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14489 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14490
14491 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14492
14493 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14494 * config/frv/frv.h (LINK_SPEC): Likewise.
14495 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14496
14497 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14498
14499 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14500 * config/frv/frv.h (ASM_SPEC): Likewise.
14501 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14502 * config/m68k/linux.h (ASM_SPEC): Likewise.
14503 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14504 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14505 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14506 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14507 * config/sparc/linux.h (ASM_SPEC): Likewise.
14508 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14509 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14510 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14511
14512 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14513
14514 PR target/46997
14515 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14516 (*mux2): Ditto.
14517 (vec_extract_evenodd_help): Ditto.
14518 (vec_extract_evenv4hi): Ditto.
14519 (vec_extract_oddv4hi): Ditto.
14520 (vec_interleave_lowv2si): Ditto.
14521 (vec_interleave_highv2si): Ditto.
14522 (vec_extract_evenv2si): Ditto.
14523 (vec_extract_oddv2si: Ditto.
14524 (vec_pack_trunc_v2si): Ditto.
14525
14526 2011-01-22 Jan Hubicka <jh@suse.cz>
14527
14528 PR target/47237
14529 * cgraph.h (cgraph_local_info): New field can_change_signature.
14530 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14531 signature can change.
14532 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14533 can change.
14534 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14535 (cgraph_function_versioning): We can not change signature of functions
14536 that don't allow that.
14537 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14538 (lto_input_node): Likewise.
14539 * ipa-inline.c (compute_inline_parameters): Compute
14540 local.can_change_signature.
14541 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14542 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14543 functions that can not change signature.
14544 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14545 init_cumulative_args): Do not use local calling conventions
14546 for functions that can not change signature.
14547
14548 2011-01-22 Jan Hubicka <jh@suse.cz>
14549
14550 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14551
14552 2011-01-26 Richard Guenther <rguenther@suse.de>
14553
14554 PR tree-optimization/47190
14555 * cgraphunit.c (process_common_attributes): New function.
14556 (process_function_and_variable_attributes): Use it.
14557
14558 2011-01-26 Richard Guenther <rguenther@suse.de>
14559
14560 PR lto/47423
14561 * cgraphbuild.c (record_eh_tables): Record reference to personality
14562 function.
14563
14564 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14565
14566 PR debug/45454
14567 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14568 non-debug insns from moving up.
14569
14570 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14571
14572 PR target/40125
14573 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14574 t-dlldir{,-x} fragment for build and add it to tmake_file.
14575 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14576 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14577 * config/i386/t-dlldir: New file.
14578 (SHLIB_DLLDIR): Define.
14579 * config/i386/t-dlldir-x: New file.
14580 (SHLIB_DLLDIR): Define.
14581 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14582 (SHLIB_INSTALL): Use it.
14583
14584 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14585
14586 PR target/47246
14587 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14588 lower bound of the allowed Thumb-2 coprocessor load/store
14589 index range to -256. Add explaining comment.
14590
14591 2011-01-25 Ian Lance Taylor <iant@google.com>
14592
14593 * godump.c (go_define): Improve lexing of macro expansion to only
14594 accept expressions which match Go spec.
14595
14596 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14597
14598 PR c++/43601
14599 * tree.c (handle_dll_attribute): Handle it.
14600 * doc/extend.texi (@item dllexport): Mention it.
14601 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14602
14603 2011-01-25 Ian Lance Taylor <iant@google.com>
14604
14605 PR tree-optimization/26854
14606 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14607 (decl_jump_unsafe): Move higher in file, with no other change.
14608 (bind): Set has_jump_unsafe_decl if appropriate.
14609 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14610 (check_earlier_gotos): Likewise.
14611 (c_check_switch_jump_warnings): Likewise.
14612
14613 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14614
14615 * doc/invoke.texi (Warning Options): Add missing hyphen.
14616 (-fprofile-dir): Minor grammatical fixes.
14617 (-fbranch-probabilities): Likewise.
14618
14619 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14620
14621 PR debug/45136
14622 PR debug/45130
14623 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14624 debug insns.
14625 (no_real_insns_p, schedule_block, set_priorities): Drop special
14626 treatment of boundary debug insns.
14627 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14628 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14629 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14630 (BOUNDARY_DEBUG_INSN_P): Likewise.
14631 (SCHEDULE_DEBUG_INSN_P): Likewise.
14632 * sched-rgn.c (init_ready_list): Drop special treatment of
14633 boundary debug insns.
14634 * final.c (rest_of_clean-state): Clear notes' BB.
14635
14636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14637
14638 * Makefile.in (LAMBDA_H): Removed.
14639 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14640 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14641 lambda-trans.o, and tree-loop-linear.o.
14642 (lto-symtab.o): Remove dependence on LAMBDA_H.
14643 (tree-loop-linear.o): Remove rule.
14644 (lambda-mat.o): Same.
14645 (lambda-trans.o): Same.
14646 (lambda-code.o): Same.
14647 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14648 (tree-vect-slp.o): Same.
14649 * hwint.h (gcd): Moved here.
14650 (least_common_multiple): Same.
14651 * lambda-code.c: Removed.
14652 * lambda-mat.c: Removed.
14653 * lambda-trans.c: Removed.
14654 * lambda.h: Removed.
14655 * tree-loop-linear.c: Removed.
14656 * lto-symtab.c: Do not include lambda.h.
14657 * omega.c (gcd): Removed.
14658 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14659 * tree-data-ref.c (print_lambda_vector): Moved here.
14660 (lambda_vector_copy): Same.
14661 (lambda_matrix_copy): Same.
14662 (lambda_matrix_id): Same.
14663 (lambda_vector_first_nz): Same.
14664 (lambda_matrix_row_add): Same.
14665 (lambda_matrix_row_exchange): Same.
14666 (lambda_vector_mult_const): Same.
14667 (lambda_vector_negate): Same.
14668 (lambda_matrix_row_negate): Same.
14669 (lambda_vector_equal): Same.
14670 (lambda_matrix_right_hermite): Same.
14671 * tree-data-ref.h: Do not include lambda.h.
14672 (lambda_vector): Moved here.
14673 (lambda_matrix): Same.
14674 (dependence_level): Same.
14675 (lambda_transform_legal_p): Removed declaration.
14676 (lambda_collect_parameters): Same.
14677 (lambda_compute_access_matrices): Same.
14678 (lambda_vector_gcd): Same.
14679 (lambda_vector_new): Same.
14680 (lambda_vector_clear): Same.
14681 (lambda_vector_lexico_pos): Same.
14682 (lambda_vector_zerop): Same.
14683 (lambda_matrix_new): Same.
14684 * tree-flow.h (least_common_multiple): Removed declaration.
14685 * tree-parloops.c (lambda_trans_matrix): Moved here.
14686 (LTM_MATRIX): Same.
14687 (LTM_ROWSIZE): Same.
14688 (LTM_COLSIZE): Same.
14689 (LTM_DENOMINATOR): Same.
14690 (lambda_trans_matrix_new): Same.
14691 (lambda_matrix_vector_mult): Same.
14692 (lambda_transform_legal_p): Same.
14693 * tree-pass.h (pass_linear_transform): Removed declaration.
14694 * tree-ssa-loop.c (tree_linear_transform): Removed.
14695 (gate_tree_linear_transform): Removed.
14696 (pass_linear_transform): Removed.
14697 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14698 flag_loop_interchange.
14699
14700 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14701
14702 PR tree-optimization/47265
14703 PR tree-optimization/47443
14704 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14705 if name still has some uses.
14706
14707 2011-01-25 Martin Jambor <mjambor@suse.cz>
14708
14709 PR tree-optimization/47382
14710 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14711 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14712
14713 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14714
14715 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14716 sjlj_except_unwind_info.
14717
14718 2011-01-25 Richard Guenther <rguenther@suse.de>
14719
14720 PR tree-optimization/47426
14721 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14722 visible functions results escape.
14723
14724 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14725
14726 PR target/45701
14727 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14728 (arm_get_frame_offsets): Use it.
14729
14730 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14731 Jakub Jelinek <jakub@redhat.com>
14732
14733 PR tree-optimization/47271
14734 * tree-if-conv.c (bb_postdominates_preds): New.
14735 (if_convertible_bb_p): Call bb_postdominates_preds.
14736 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14737 (predicate_scalar_phi): Call bb_postdominates_preds.
14738
14739 2011-01-25 Nick Clifton <nickc@redhat.com>
14740
14741 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14742 * config/rx/rx.c (rx_function_value): Likewise.
14743 (rx_promote_function_mode): Likewise.
14744 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14745 in order to make it legitimate.
14746 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14747 make sure that the first operand is the same as the result register.
14748 (addsi3_unspec): Delete.
14749 (subdi3): Do not accept immediate operands.
14750 (subdi3_internal): Likewise.
14751
14752 2011-01-25 Jeff Law <law@redhat.com>
14753
14754 PR rtl-optimization/37273
14755 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14756 handle them like argument loads from stack slots. Do not double
14757 count memory for memory constants and argument loads from stack slots.
14758
14759 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14760
14761 PR tree-optimization/47427
14762 PR tree-optimization/47428
14763 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14764 coalesce if the new root var would be TREE_READONLY.
14765
14766 2011-01-25 Richard Guenther <rguenther@suse.de>
14767
14768 PR middle-end/47414
14769 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14770 correct type for TBAA.
14771
14772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14773
14774 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14775 (close_phi_written_to_memory): Call for_each_index with
14776 dr_indices_valid_in_loop.
14777
14778 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14779
14780 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14781 when it is initialized.
14782
14783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14784
14785 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14786 call to graphite_find_data_references_in_stmt.
14787 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14788 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14789 call to graphite_find_data_references_in_stmt.
14790 (analyze_drs_in_stmts): Same.
14791 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14792 in which the scalar analysis of indices is performed.
14793 (create_data_ref): Same. Update call to dr_analyze_indices.
14794 (find_data_references_in_stmt): Update call to create_data_ref.
14795 (graphite_find_data_references_in_stmt): Same.
14796 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14797 declaration.
14798 (create_data_ref): Same.
14799 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14800 call to create_data_ref.
14801
14802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14803
14804 * graphite-sese-to-poly.c (build_poly_scop): Move
14805 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14806
14807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14808
14809 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14810 VAR_DECL, PARM_DECL, and RESULT_DECL.
14811
14812 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14813
14814 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14815 in a reduction PBB.
14816 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14817 that have already been marked as PBB_IS_REDUCTION.
14818
14819 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14820
14821 * graphite-scop-detection.c (same_close_phi_node): New.
14822 (remove_duplicate_close_phi): New.
14823 (make_close_phi_nodes_unique): New.
14824 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14825
14826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14827
14828 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14829 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14830 of both data references to be the same.
14831
14832 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14833
14834 * graphite-dependences.c (build_lexicographical_constraint): Remove
14835 the gdim parameter.
14836 (build_lexicographical_constraint): Adjust call to
14837 ppl_powerset_is_empty.
14838 (dependence_polyhedron): Same.
14839 (graphite_legal_transform_dr): Same.
14840 (graphite_carried_dependence_level_k): Same.
14841 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14842 parameter.
14843 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14844
14845 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14846
14847 * graphite-sese-to-poly.c
14848 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14849 (close_phi_written_to_memory): New.
14850 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14851 and unshare_expr.
14852
14853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14854
14855 * doc/install.texi: Update the expected version number of PPL to 0.11.
14856 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14857 #if PPL_VERSION_MINOR < 11.
14858
14859 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14860
14861 * graphite-dependences.c: Include graphite-cloog-util.h.
14862 (new_poly_ddr): Inlined into dependence_polyhedron.
14863 (free_poly_ddr): Moved close by new_poly_ddr.
14864 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14865 Early return NULL when ppl_powerset_is_empty returns true.
14866 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14867 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14868 (graphite_legal_transform_dr): Call new_poly_ddr.
14869 (graphite_carried_dependence_level_k): Same.
14870 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14871 (dot_transformed_deps_stmt_1): Removed.
14872 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14873 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14874 (dot_deps_1): Call dot_deps_2.
14875 * Makefile.in (graphite-dependences.o): Add missing dependence on
14876 graphite-cloog-util.h.
14877
14878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14879
14880 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14881 (build_lexicographical_constraint): Same.
14882 (dependence_polyhedron_1): Same.
14883 (graphite_legal_transform_dr): Same.
14884 (graphite_carried_dependence_level_k): Same.
14885 * graphite-ppl.c (ppl_powerset_is_empty): New.
14886 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14887 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14888
14889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14890
14891 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14892 the "a followed by b" relation and document it.
14893
14894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14895
14896 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14897 iteration when the bag of constraints is empty.
14898
14899 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14900
14901 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14902
14903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14904
14905 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14906 nest and two loop depths as parameters.
14907 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14908 lst_perfect_nestify.
14909
14910 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14911
14912 * graphite-dependences.c (print_pddr): Call
14913 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14914
14915 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14916
14917 * graphite-ppl.c (debug_gmp_value): New.
14918 * graphite-ppl.h (debug_gmp_value): Declared.
14919
14920 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14921
14922 * doc/install.texi: Document availability of cloog-0.16.
14923
14924 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14925
14926 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14927 invalid postdominance info.
14928
14929 2011-01-24 Jan Hubicka <jh@suse.cz>
14930
14931 PR c/21659
14932 * doc/extend.texi (weak pragma): Drop claim that it must
14933 appear before definition.
14934 * varasm.c (merge_weak, declare_weak): Only sanity check
14935 that DECL is not output at a time it is declared weak.
14936
14937 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14938
14939 * machmode.def: Fixed comments.
14940
14941 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14942
14943 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14944
14945 2011-01-24 Paul Koning <ni1d@arrl.net>
14946
14947 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14948 WORDS_BIG_ENDIAN.
14949
14950 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14951
14952 PR target/46519
14953 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14954 (block_info): Add scanned and prev.
14955 (move_or_delete_vzeroupper_2): Return if the basic block
14956 has been scanned and the upper 128bit state is unchanged
14957 from the last scan.
14958 (move_or_delete_vzeroupper_1): Return true if the exit
14959 state is changed.
14960 (move_or_delete_vzeroupper): Visit basic blocks using the
14961 work-list based algorithm based on vt_find_locations in
14962 var-tracking.c.
14963
14964 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14965
14966 2011-01-24 Nick Clifton <nickc@redhat.com>
14967
14968 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14969 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14970 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14971 then define __v850e1__.
14972 * doc/invoke.texi: Document -mv850es.
14973
14974 2011-01-24 Richard Henderson <rth@redhat.com>
14975
14976 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14977 compound unordered comparisons.
14978 * config/rx/rx.c (rx_split_fp_compare): Remove.
14979 * config/rx/rx-protos.h: Update.
14980 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14981 (cbranchsf4): Don't call rx_split_fp_compare.
14982 (*cbranchsf4): Use rx_split_cbranch.
14983 (*cmpsf): Don't accept "i" constraint.
14984 (*conditional_branch): Only valid after reload.
14985 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14986
14987 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14988
14989 PR target/47385
14990 * config/rs6000/altivec.md (vector constant splitters): Add
14991 support for creating vector single precision constants if -mvsx is
14992 used and we would create the constant using Altivec primitives.
14993
14994 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14995 Richard Sandiford <rdsandiford@googlemail.com>
14996
14997 PR rtl-optimization/47166
14998 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14999 mechanism for PRE_MODIFY and POST_MODIFY.
15000 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15001 reloadreg.
15002
15003 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15004
15005 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15006
15007 2011-01-22 Jan Hubicka <jh@suse.cz>
15008
15009 PR lto/47333
15010 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15011
15012 2011-01-22 Jan Hubicka <jh@suse.cz>
15013
15014 PR tree-optimization/43884
15015 PR lto/44334
15016 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15017 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15018
15019 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15020
15021 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15022 * config/s390/s390.c (s390_register_move_cost,
15023 s390_memory_move_cost): New.
15024 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15025
15026 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15027
15028 PR middle-end/47401
15029 * except.c (sjlj_assign_call_site_values): Move setting the
15030 crtl->uses_eh_lsda flag to ...
15031 (sjlj_mark_call_sites): ... here.
15032 (sjlj_emit_function_enter): Support NULL dispatch label.
15033 (sjlj_build_landing_pads): In a function with no landing pads
15034 that still has must-not-throw regions, generate code to register
15035 a personality function with empty LSDA.
15036
15037 2011-01-21 Richard Henderson <rth@redhat.com>
15038
15039 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15040
15041 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15042
15043 * compare-elim.c: New file.
15044 * Makefile.in (OBJS-common): Add it.
15045 (compare-elim.o): New.
15046 * common.opt (fcompare-elim): New.
15047 * opts.c (default_options_table): Add OPT_fcompare_elim.
15048 * tree-pass.h (pass_compare_elim_after_reload): New.
15049 * passes.c (init_optimization_passes): Add it.
15050 * recog.h: Protect against re-inclusion.
15051 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15052 * doc/invoke.texi (-fcompare-elim): Document it.
15053 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15054 * doc/tm.texi: Rebuild.
15055
15056 2011-01-22 Nick Clifton <nickc@redhat.com>
15057
15058 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15059 rx_split_fp_compare.
15060
15061 2011-01-22 Nick Clifton <nickc@redhat.com>
15062
15063 * config/rx/rx.md (UNSPEC_CONST): New.
15064 (deallocate_and_return): Wrap the amount popped off the stack in
15065 an UNSPEC_CONST in order to stop it being rejected by
15066 -mmax-constant-size.
15067 (pop_and_return): Add a "(return)" rtx.
15068 (call): Drop the immediate operand.
15069 (call_internal): Likewise.
15070 (call_value): Likewise.
15071 (call_value_internal): Likewise.
15072 (sibcall_internal): Likewise.
15073 (sibcall_value_internal): Likewise.
15074 (sibcall): Likewise. Generate an explicit call using
15075 sibcall_internal.
15076 (sibcall_value): Likewise.
15077 (mov<>): FAIL if a constant operand is not legitimate.
15078 (addsi3_unpsec): New pattern.
15079
15080 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15081 (ok_for_max_constant): New function.
15082 (gen_safe_add): New function.
15083 (rx_expand_prologue): Use gen_safe_add.
15084 (rx_expand_epilogue): Likewise.
15085 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15086 UNSPEC CONSTs.
15087
15088 2011-01-21 Jeff Law <law@redhat.com>
15089
15090 PR tree-optimization/47053
15091 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15092 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15093 statements are deleted.
15094 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15095 is nonempty, then purge dead edges and cleanup the CFG.
15096
15097 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15098
15099 PR debug/47402
15100 Temporarily revert:
15101 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15102 PR debug/47106
15103 * tree-dfa.c (create_var_ann): Mark variable as used.
15104
15105 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15106
15107 PR middle-end/45566
15108 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15109 notes from other section in hot/cold partitioning even if
15110 last_action is -3. Increment call_site_base.
15111
15112 PR rtl-optimization/47366
15113 * fwprop.c (forward_propagate_into): Return bool. If
15114 any changes are made, -fnon-call-exceptions is used and
15115 REG_EH_REGION note is present, call purge_dead_edges
15116 and return true if it purged anything.
15117 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15118 any EH edges were purged.
15119
15120 2011-01-21 Jeff Law <law@redhat.com>
15121
15122 PR rtl-optimization/41619
15123 * caller-save.c (setup_save_areas): Break out code to determine
15124 which hard regs are live across calls by examining the reload chains
15125 so that it is always used.
15126 Eliminate code which checked REG_N_CALLS_CROSSED.
15127
15128 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15129
15130 PR tree-optimization/47355
15131 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15132 NOP has non-debug uses beyond PHIs in new_bb.
15133
15134 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15135
15136 PR debug/47106
15137 * cfgexpand.c (account_used_vars_for_block): Only account vars
15138 that are annotated as used.
15139 (estimated_stack_frame_size): Don't set TREE_USED.
15140 * tree-dfa.c (create_var_ann): Mark variable as used.
15141
15142 2011-01-21 Richard Guenther <rguenther@suse.de>
15143
15144 PR middle-end/47395
15145 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15146
15147 2011-01-21 Richard Guenther <rguenther@suse.de>
15148
15149 PR tree-optimization/47365
15150 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15151 (vn_reference_lookup_pieces): Adjust.
15152 (vn_reference_lookup): Likewise.
15153 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15154 (vn_reference_lookup_3): Only look through kills if in
15155 VN_WALKREWRITE mode.
15156 (vn_reference_lookup_pieces): Adjust.
15157 (vn_reference_lookup): Likewise.
15158 (visit_reference_op_load): Likewise.
15159 (visit_reference_op_store): Likewise.
15160 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15161 (compute_avail): Likewise.
15162 (eliminate): Likewise.
15163
15164 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15165
15166 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15167 DECL_IGNORED_P non-reg vars if they are used.
15168
15169 PR tree-optimization/47391
15170 * varpool.c (const_value_known_p): Return false if
15171 decl is volatile.
15172
15173 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15174
15175 PR bootstrap/47215
15176 * config/i386/i386.c (ix86_local_alignment): Handle
15177 case for va_list_type_node is nil.
15178 (ix86_canonical_va_list_type): Likewise.
15179
15180 2011-01-21 Alan Modra <amodra@gmail.com>
15181
15182 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15183 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15184
15185 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15186
15187 * config/arm/arm.md (define_attr type): Rename f_load
15188 and f_store to f_fpa_load and f_fpa_store. Update.
15189 (write_conflict): Deal with rename fallout.
15190 (*push_fp_multi): Likewise.
15191 * config/arm/fpa.md (f_load): Use f_fpa_load.
15192 (f_store): Use f_fpa_store.
15193 (*movsf_fpa): Likewise.
15194 (*movdf_fpa): Likewise.
15195 (*movxf_fpa): Likewise.
15196 (*thumb2_movsf_fpa): Likewise.
15197 (*thumb2_movdf_fpa): Likewise.
15198 (*thumb2_movxf_fpa): Likewise.
15199 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15200 f_loadd and f_stored.
15201 (*thumb2_movdi_vfp): Likewise.
15202 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15203 (*thumb2_movsi_vfp): Likewise.
15204 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15205 Use f_loads instead of f_load.
15206 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15207
15208 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15209
15210 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15211 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15212 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15213 (xtensa_mode_dependent_address_p): New function.
15214 (constantpool_address_p): Make static. Change return type to bool.
15215 Change argument type to const_rtx. Use CONST_INT_P predicate.
15216
15217 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15218
15219 PR debug/46583
15220 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15221
15222 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15223
15224 PR debug/47283
15225 * cfgexpand.c (expand_debug_expr): Instead of generating
15226 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15227 etc. handling.
15228
15229 2011-01-20 Richard Guenther <rguenther@suse.de>
15230
15231 PR middle-end/47370
15232 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15233 the pointer operand of MEM_REFs.
15234
15235 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15236
15237 PR tree-optimization/46130
15238 * ipa-split.c (consider_split): If return_bb contains non-virtual
15239 PHIs other than for retval or if split_function would not adjust it,
15240 refuse to split.
15241
15242 2011-01-20 Richard Guenther <rguenther@suse.de>
15243
15244 PR tree-optimization/47167
15245 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15246 Revert previous change, only avoid enumeral type changes.
15247
15248 2011-01-19 Mike Stump <mikestump@comcast.net>
15249
15250 * doc/tm.texi.in (BRANCH_COST): Englishify.
15251 * doc/tm.texi (BRANCH_COST): Likewise.
15252
15253 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15254
15255 PR c++/47291
15256 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15257 (gen_scheduled_generic_parms_dies): New functions.
15258 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15259 generation for the end of CU compilation.
15260 (dwarf2out_finish): Generate template parameters DIEs here.
15261
15262 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15263
15264 PR debug/46240
15265 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15266 debug bind stmt on merge edges.
15267
15268 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15269
15270 PR debug/47079
15271 PR debug/46724
15272 * function.c (instantiate_expr): Instantiate incoming rtl of
15273 implicit arguments, and recurse on VALUE_EXPRs.
15274 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15275 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15276
15277 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15278
15279 * c-parser.c (c_parser_for_statement): Initialize
15280 collection_expression.
15281
15282 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15283
15284 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15285
15286 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15287
15288 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15289 (LINK_SHLIB_SPEC): Don't use %(link_path).
15290 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15291
15292 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15293
15294 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15295 (NO_SHARED_LIB_SUPPORT): Remove.
15296 (LINK_SHLIB_SPEC): Remove one conditional definition.
15297
15298 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15299
15300 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15301 %{call_shared}.
15302 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15303 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15304 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15305 %{call_shared} and conditionals on these options not being passed.
15306 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15307 %{call_shared}.
15308
15309 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15310
15311 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15312 simplify.
15313
15314 * ipa-split.c: Spelling fixes.
15315
15316 2011-01-19 Richard Henderson <rth@redhat.com>
15317
15318 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15319 (*mulsi3): Likewise.
15320
15321 * longlong.h [__mn10300__] (count_leading_zeros): New.
15322 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15323 [__mn10300__] (add_ssaaaa, subddmmss): New.
15324 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15325 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15326
15327 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15328
15329 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15330
15331 2011-01-19 Richard Henderson <rth@redhat.com>
15332
15333 * config/mn10300/mn10300.md (addsi3_flags): New.
15334 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15335 (subsi3_flags, subc_internal, subdi3): New.
15336 (subdi3_internal, *subdi3_degenerate): New.
15337 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15338
15339 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15340 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15341 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15342 * config/mn10300/mn10300-protos.h: Update.
15343 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15344 (return_ret): Likewise. Rename from return_internal_regs.
15345 (return_internal): Remove.
15346
15347 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15348 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15349 (mn10300_legitimate_constant_p): Likewise.
15350 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15351 (mn10300_frame_size): New.
15352 (mn10300_expand_prologue): Use it.
15353 (mn10300_expand_epilogue): Likewise.
15354 (mn10300_initial_offset): Likewise.
15355 * config/mn10300/mn10300-protos.h: Update.
15356 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15357 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15358 (prologue, epilogue, return_internal): Tidy output code.
15359 (mn10300_store_multiple_operation, return): Likewise.
15360 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15361 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15362 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15363 (load_pic, am33_load_pic): New.
15364 (mn10300_load_pic0, mn10300_load_pic1): New.
15365
15366 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15367 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15368 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15369 (cc_flags_for_mode, cc_flags_for_code): New.
15370 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15371 overflow flag is not valid. Validate that the flags we need
15372 for the comparison are valid.
15373 (mn10300_output_cmp): Remove.
15374 (mn10300_output_add): New.
15375 (mn10300_select_cc_mode): Use cc_flags_for_code.
15376 (mn10300_split_cbranch): New.
15377 (mn10300_match_ccmode): New.
15378 (mn10300_split_and_operand_count): New.
15379 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15380 to the function.
15381 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15382 (addsi3): ... here. Use mn10300_output_add.
15383 (*addsi3_flags): New.
15384 (*am33_subsi3, *mn10300_subsi3): Merge...
15385 (subsi3): ... here. Use attribute isa.
15386 (*subsi3_flags): New.
15387 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15388 when possible.
15389 (*am33_andsi3, *mn10300_andsi3): Merge...
15390 (andsi3): ... here.
15391 (*andsi3_flags): New.
15392 (andsi3 splitters): New.
15393 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15394 (iorsi3): ... here.
15395 (*iorsi3_flags): New.
15396 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15397 (xorsi3): ... here.
15398 (*xorsi3_flags): New.
15399 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15400 (one_cmplsi2): ... here.
15401 (*one_cmplsi2_flags): New.
15402 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15403 instead of "dax" in constraints. Use mn10300_split_cbranch.
15404 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15405 use matching constraints to eliminate a self-comparison.
15406 (*integer_conditional_branch): Rename from integer_conditional_branch.
15407 Use int_mode_flags to match CC_REG.
15408 (*cbranchsi4_btst, *btstsi): New.
15409 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15410 mn10300_split_cbranch.
15411 (*am33_cmpsf): Rename from am33_cmpsf.
15412 (*float_conditional_branch): Rename from float_conditional_branch.
15413 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15414 (zero_extendqisi2): ... here.
15415 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15416 (zero_extendhisi2): ... here.
15417 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15418 (extendqisi2): ... here.
15419 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15420 (extendhisi2): ... here.
15421 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15422 (ashlsi3): ... here.
15423 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15424 (lshrsi3): ... here.
15425 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15426 (ashrsi3): ... here.
15427 (consecutive add peephole): Remove.
15428 * config/mn10300/predicates.md (label_ref_operand): New.
15429 (int_mode_flags): New.
15430 (CCZN_comparison_operator): New.
15431
15432 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15433 (throughput_42_latency_43): New reservation.
15434 (mulsidi3, umulsidi3): New expanders.
15435 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15436 the MDR register to allocation; separately allocate the low and
15437 high parts of the DImode result.
15438 (umulsidi3_internal): Similarly.
15439 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15440 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15441 (udivsi3, umodsi3): Remove.
15442 (udivmodsi4, divmodsi4): New expanders.
15443 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15444 (*divmodsi4): Simiarly.
15445 (ext_internal): New.
15446
15447 * config/mn10300/constraints.md ("z"): New constraint.
15448 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15449 (FIXED_REGISTERS): Don't fix MDR.
15450 (CALL_USED_REGSITERS): Reformat nicely.
15451 (REG_ALLOC_ORDER): Add MDR.
15452 (enum regclass): Add MDR_REGS.
15453 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15454 (IRA_COVER_CLASSES): Add MDR_REGS.
15455 (REGNO_REG_CLASS): Handle MDR_REG.
15456 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15457 (mn10300_register_move_cost): Likewise.
15458 * config/mn10300/mn10300.md (MDR_REG): New.
15459 (*movsi_internal): Handle moves to/from MDR_REGS.
15460
15461 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15462 POST_MODIFY.
15463 (mn10300_secondary_reload): Tidy combination reload classes.
15464 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15465 addresses for AM33. Allow symbolic offsets for reg+imm.
15466 (mn10300_regno_in_class_p): New.
15467 (mn10300_legitimize_reload_address): New.
15468 * config/mn10300/mn10300.h (enum reg_class): Remove
15469 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15470 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15471 SP_OR_GENERAL_REGS.
15472 (REG_CLASS_NAMES): Update to match.
15473 (REG_CLASS_CONTENTS): Likewise.
15474 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15475 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15476 (REGNO_IN_RANGE_P): Remove.
15477 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15478 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15479 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15480 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15481 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15482 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15483 (REGNO_GENERAL_P): New.
15484 (HAVE_POST_MODIFY_DISP): New.
15485 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15486 (LEGITIMIZE_RELOAD_ADDRESS): New.
15487 * config/mn10300/mn10300-protos.h: Update.
15488
15489 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15490 DATA_REGS for AM33 stack-pointer destination.
15491 (mn10300_preferred_output_reload_class): Likewise.
15492 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15493 into a form appropriate for ...
15494 (TARGET_SECONDARY_RELOAD): New.
15495 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15496 * config/mn10300/mn10300-protos.h: Update.
15497 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15498 reload_insi; use the "A" constraint for the scratch; handle AM33
15499 moves of sp to non-address registers.
15500
15501 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15502 (*movqi_internal): ... here.
15503 (*am33_movhi, *mn10300_movhi): Merge into...
15504 (*movhi_internal): ... here.
15505 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15506 as the source/destination of moves from/to SP.
15507 (movsf): Only allow for AM33-2.
15508 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15509 any integer constant constraint. Only allow for AM33-2. Tidy
15510 all of the alternative outputs.
15511 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15512 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15513 for MN103.
15514 (udivsi3, umodsi3): New patterns for MN103 only.
15515
15516 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15517
15518 * doc/tm.texi.in: Spell out that a lack of register class unions
15519 can lead to ICEs.
15520 * doc/tm.texi: Regenerate.
15521
15522 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15523
15524 PR rtl-optimization/47337
15525 * dce.c (check_argument_store): New function.
15526 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15527
15528 PR tree-optimization/47290
15529 * tree-eh.c (infinite_empty_loop_p): New function.
15530 (cleanup_empty_eh): Use it.
15531
15532 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15533
15534 PR target/46997
15535 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15536 (a64_expand_widen_sum): Ditto.
15537 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15538 (vec_extract_evenodd_help): Ditto.
15539 (vec_extract_evenv4hi): Ditto.
15540 (vec_extract_oddv4hi): Ditto.
15541 (vec_extract_evenv2si): Ditto.
15542 (vec_extract_oddv2si): Ditto.
15543 (vec_extract_evenv2sf): Ditto.
15544 (vec_extract_oddv2sf): Ditto.
15545 (vec_pack_trunc_v4hi: Ditto.
15546 (vec_pack_trunc_v2si): Ditto.
15547 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15548 (vec_interleave_highv8qi): Ditto.
15549 (mix1_r): Ditto.
15550 (vec_extract_oddv8qi): Ditto.
15551 (vec_interleave_lowv4hi): Ditto.
15552 (vec_interleave_highv4hi): Ditto.
15553 (vec_interleave_lowv2si): Ditto.
15554 (vec_interleave_highv2si): Ditto.
15555
15556 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15557
15558 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15559 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15560 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15561 (pa_c_mode_for_suffix): New.
15562 (TARGET_EXPAND_BUILTIN): Define.
15563 (TARGET_C_MODE_FOR_SUFFIX): Define.
15564 (pa_builtins): Define.
15565 (pa_init_builtins): Register __float128 type and init new support
15566 builtins.
15567 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15568 * config/pa/quadlib.c (_U_Qfcopysign): New.
15569
15570 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15571
15572 PR middle-end/46894
15573 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15574 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15575 are defined.
15576
15577 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15578
15579 PR tree-optimization/47179
15580 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15581 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15582
15583 2011-01-18 Richard Guenther <rguenther@suse.de>
15584
15585 PR rtl-optimization/47216
15586 * emit-rtl.c: Include tree-flow.h.
15587 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15588 of replicating it with different semantics.
15589 * Makefile.in (emit-rtl.o): Adjust.
15590
15591 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15592
15593 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15594 (cortex_a9_dp): Handle neon types correctly.
15595
15596 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15597
15598 PR rtl-optimization/47299
15599 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15600 subtarget. Use normal multiplication if both operands are constants.
15601 * expmed.c (expand_widening_mult): Don't try to optimize constant
15602 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15603 before using it.
15604
15605 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15606
15607 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15608 spacing after 'e.g.', typos, comma, hyphenation.
15609
15610 2011-01-17 Richard Henderson <rth@redhat.com>
15611
15612 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15613 (rx_restricted_mem_operand): New.
15614 (rx_shift_operand): Use register_operand.
15615 (rx_source_operand, rx_compare_operand): Likewise.
15616 * config/rx/rx.md (addsi3_flags): New expander.
15617 (adddi3): Rewrite as expander.
15618 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15619 (subsi3_flags): New expander.
15620 (subdi3): Rewrite as expander.
15621 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15622
15623 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15624 (rx_init_builtins): Remove sat builtin.
15625 (rx_expand_builtin): Likewise.
15626 * config/rx/rx.md (ssaddsi3): New.
15627 (*sat): Rename from sat. Represent the CC_REG input.
15628
15629 * config/rx/predicates.md (rshift_operator): New.
15630 * config/rx/rx.c (rx_expand_insv): Remove.
15631 * config/rx/rx-protos.h: Update.
15632 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15633 operand to the canonical position.
15634 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15635 (*bitclr, *bitclr_in_memory): Similarly.
15636 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15637 (insv): Retain the zero_extract in the expansion.
15638
15639 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15640 (bswaphi2, bitinvert, revw): Likewise.
15641
15642 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15643 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15644 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15645 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15646 (bitset, bitset_in_memory): Likewise.
15647 (bitinvert, bitinvert_in_memory): Likewise.
15648 (bitclr, bitclr_in_memory): Likewise.
15649 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15650 (rx_strend, rx_cmpstrn): Likewise.
15651 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15652 (bitop peep2 patterns): Remove.
15653
15654 * config/rx/rx.c (rx_match_ccmode): New.
15655 * config/rx/rx-protos.h: Update.
15656 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15657 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15658 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15659 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15660 (fix_truncsfsi2, floatsisf2): Likewise.
15661 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15662 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15663 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15664 (*subsi3_flags, *xorsi3_flags): New.
15665
15666 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15667
15668 * config/rx/rx.c (rx_print_operand): Remove workaround for
15669 unsplit comparison operations.
15670
15671 * config/rx/rx.md (movsicc): Split after reload.
15672 (*movsicc): Merge *movsieq and *movsine via match_operator.
15673 (*stcc): New pattern.
15674
15675 * config/rx/rx.c (rx_float_compare_mode): Remove.
15676 * config/rx/rx.h (rx_float_compare_mode): Remove.
15677 * config/rx/rx.md (cstoresi4): Split after reload.
15678 (*sccc): New pattern.
15679
15680 * config/rx/predicates.md (label_ref_operand): New.
15681 (rx_z_comparison_operator): New.
15682 (rx_zs_comparison_operator): New.
15683 (rx_fp_comparison_operator): New.
15684 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15685 Validate that the flags are set properly for the comparison.
15686 (rx_gen_cond_branch_template): Remove.
15687 (rx_cc_modes_compatible): Remove.
15688 (mode_from_flags): New.
15689 (flags_from_code): Rename from flags_needed_for_conditional.
15690 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15691 (rx_select_cc_mode): Likewise.
15692 (rx_split_fp_compare): New.
15693 (rx_split_cbranch): New.
15694 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15695 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15696 (*cbranchsf4): Similarly.
15697 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15698 match_operator and rx_split_cbranch.
15699 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15700 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15701 (*cmpsi): Rename from cmpsi.
15702 (*tstsi): Rename from tstsi.
15703 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15704 (*conditional_branch): Rename from conditional_branch.
15705 (*reveresed_conditional_branch): Remove.
15706 (b<code>): Remove expander.
15707 * config/rx/rx-protos.h: Update.
15708
15709 * config/rx/rx.c (rx_compare_redundant): Remove.
15710 * config/rx/rx.md (cmpsi): Don't use it.
15711 * config/rx/rx-protos.h: Update.
15712
15713 * config/rx/rx-modes.def (CC_F): New mode.
15714 * config/rx/rx.c (rx_select_cc_mode): New.
15715 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15716 * config/rx/rx-protos.h: Update.
15717
15718 2011-01-17 Richard Henderson <rth@redhat.com>
15719
15720 * except.c (dump_eh_tree): Fix stray ; after for statement.
15721
15722 2011-01-17 Richard Guenther <rguenther@suse.de>
15723
15724 PR tree-optimization/47313
15725 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15726 handling before copying the body. Properly deal with
15727 by-reference result in SSA form.
15728
15729 2011-01-17 Ian Lance Taylor <iant@google.com>
15730
15731 PR target/47219
15732 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15733 (struct_value_alias_set): Don't define.
15734 (sparc_option_override): Don't set sparc_sr_alias_set and
15735 struct_value_alias_set.
15736 (save_or_restore_regs): Use gen_frame_mem rather than calling
15737 set_mem_alias_set.
15738 (sparc_struct_value_rtx): Likewise.
15739
15740 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15741
15742 PR target/47318
15743 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15744 (_mm_maskstore_pd): Likewise.
15745 (_mm_maskload_ps): Likewise.
15746 (_mm_maskstore_ps): Likewise.
15747 (_mm256_maskload_pd): Change mask to __m256i.
15748 (_mm256_maskstore_pd): Likewise.
15749 (_mm256_maskload_ps): Likewise.
15750 (_mm256_maskstore_ps): Likewise.
15751
15752 * config/i386/i386-builtin-types.def: Updated.
15753 (ix86_expand_special_args_builtin): Likewise.
15754
15755 * config/i386/i386.c (bdesc_special_args): Update
15756 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15757 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15758 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15759 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15760
15761 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15762 Use <avxpermvecmode> on mask register.
15763 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15764
15765 2011-01-17 Olivier Hainque <hainque@adacore.com>
15766 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15767 Eric Botcazou <ebotcazou@adacore.com>
15768
15769 PR target/46655
15770 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15771 if <= USHRT_MAX in 32-bit mode.
15772
15773 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15774
15775 * doc/install.texi (Configuration, Specific): Wrap long
15776 lines in examples. Allow line wrapping in long options
15777 and URLs where beneficial for PDF output.
15778
15779 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15780
15781 * config/mips/mips.c (mips_classify_symbol): Don't return
15782 SYMBOL_PC_RELATIVE for nonlocal labels.
15783
15784 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15785
15786 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15787
15788 2011-01-15 Jan Hubicka <jh@suse.cz>
15789
15790 PR tree-optimization/47276
15791 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15792 declarations as needed.
15793
15794 2011-01-15 Martin Jambor <mjambor@suse.cz>
15795
15796 * common.opt (fdevirtualize): New flag.
15797 * doc/invoke.texi (Option Summary): Document it.
15798 * opts.c (default_options_table): Add devirtualize flag.
15799 * ipa-prop.c (detect_type_change): Return immediately if
15800 devirtualize flag is not set.
15801 (detect_type_change_ssa): Likewise.
15802 (compute_known_type_jump_func): Likewise.
15803 (ipa_analyze_virtual_call_uses): Likewise.
15804
15805 2011-01-14 Martin Jambor <mjambor@suse.cz>
15806
15807 PR tree-optimization/45934
15808 PR tree-optimization/46302
15809 * ipa-prop.c (type_change_info): New type.
15810 (stmt_may_be_vtbl_ptr_store): New function.
15811 (check_stmt_for_type_change): Likewise.
15812 (detect_type_change): Likewise.
15813 (detect_type_change_ssa): Likewise.
15814 (compute_complex_assign_jump_func): Check for dynamic type change.
15815 (compute_complex_ancestor_jump_func): Likewise.
15816 (compute_known_type_jump_func): Likewise.
15817 (compute_scalar_jump_functions): Likewise.
15818 (ipa_analyze_virtual_call_uses): Likewise.
15819 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15820
15821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15822
15823 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15824 * config/i386/i386.opt (msse5): New Alias.
15825
15826 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15827
15828 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15829 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15830 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15831 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15832
15833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15834
15835 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15836 -mcpu options.
15837 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15838 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15839 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15840 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15841 Likewise.
15842 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15843
15844 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15845
15846 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15847
15848 2011-01-14 Mike Stump <mikestump@comcast.net>
15849
15850 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15851 * config/fr30/fr30.md: Likweise
15852 (movsi_push): Likewise.
15853 (movsi_pop): Likewise.
15854 (enter_func): Likewise.
15855 * config/moxie/moxie.md (movsi_push): Likewise.
15856 (movsi_pop): Likewise.
15857
15858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15859
15860 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15861 %{no_archive} %{exact_version}.
15862 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15863 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15864 %{no_archive} %{exact_version}.
15865 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15866 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15867 * config/mips/vxworks.h: Likewise.
15868
15869 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15870
15871 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15872
15873 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15874
15875 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15876 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15877
15878 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15879
15880 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15881 -nodefaultlib.
15882
15883 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15884
15885 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15886 for mcpu not cpu.
15887 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15888 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15889 not cpu.
15890 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15891 Don't handle -shlib.
15892
15893 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15894
15895 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15896 (CC1_SPEC): Don't handle -profile.
15897
15898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15899
15900 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15901 * config/mips/mips.h (CC1_SPEC): Likewise.
15902
15903 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15904
15905 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15906 * config/mips/mips.h (CC1_SPEC): Likewise.
15907
15908 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15909
15910 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15911 * config/m32r/linux.h (LINK_SPEC): Likewise.
15912 * config/mips/linux.h (LINK_SPEC): Likewise.
15913 * config/mips/linux64.h (LINK_SPEC): Likewise.
15914 * config/sparc/linux.h (LINK_SPEC): Likewise.
15915 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15916 LINK_SPEC): Likewise.
15917 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15918
15919 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15920
15921 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15922 %{version:-v}.
15923 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15924
15925 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15926
15927 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15928 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15929
15930 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15931
15932 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15933
15934 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15935
15936 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15937 supports -Bstatic/-Bdynamic.
15938 * configure: Regenerate.
15939
15940 2011-01-14 Jan Hubicka <jh@suse.cz>
15941 Jack Howarth <howarth@bromo.med.uc.edu>
15942
15943 PR target/46037
15944 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15945 when checking debug_info_level. Test write_symbols instead of
15946 debug_hooks->var_location when setting flag_var_tracking_uninit.
15947
15948 2011-01-14 Richard Guenther <rguenther@suse.de>
15949
15950 PR tree-optimization/47179
15951 * target.def (ref_may_alias_errno): New target hook.
15952 * targhooks.h (default_ref_may_alias_errno): Declare.
15953 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15954 (default_ref_may_alias_errno): New function.
15955 * target.h (struct ao_ref_s): Declare.
15956 * tree-ssa-alias.c: Include target.h.
15957 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15958 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15959 (targhooks.o): Likewise.
15960 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15961 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15962
15963 2011-01-14 Richard Guenther <rguenther@suse.de>
15964
15965 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15966
15967 2011-01-14 Richard Guenther <rguenther@suse.de>
15968
15969 PR tree-optimization/47280
15970 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15971 return CFG changes.
15972 (tree_ssa_forward_propagate_single_use_vars): Deal with
15973 CFG changes from associate_plusminus.
15974
15975 2011-01-14 Richard Guenther <rguenther@suse.de>
15976
15977 PR middle-end/47281
15978 Revert
15979 2011-01-11 Richard Guenther <rguenther@suse.de>
15980
15981 PR tree-optimization/46076
15982 * tree-ssa.c (useless_type_conversion_p): Conversions from
15983 unprototyped to empty argument list function types are useless.
15984
15985 2011-01-14 Richard Guenther <rguenther@suse.de>
15986
15987 PR tree-optimization/47286
15988 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15989
15990 2011-01-14 Martin Jambor <mjambor@suse.cz>
15991
15992 PR middle-end/46823
15993 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15994
15995 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15996
15997 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15998 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15999 * config/xtensa/xtensa.c (xtensa_libcall_value,
16000 xtensa_function_value_regno_p): New functions.
16001 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16002
16003 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16004
16005 PR c++/47213
16006 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16007 PE specific hook.
16008 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16009 New function prototype.
16010 * config/i386/winnt.c (i386_pe_assemble_visibility):
16011 Warn only if attribute was specified by user.
16012
16013 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16014
16015 PR target/47251
16016 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16017 floating point.
16018 (floatunsdidf2_fcfidu): Ditto.
16019
16020 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16021
16022 * config/s390/s390.c (print_operand_address): Replace 'error' with
16023 'output_operand_lossage'.
16024 (print_operand): Likewise.
16025
16026 2011-01-13 Jeff Law <law@redhat.com>
16027
16028 PR rtl-optimization/39077
16029 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16030 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16031 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16032 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16033 * gcse.c (prune_insertions_deletions): New function.
16034 (compute_pre_data): Use it.
16035
16036 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16037
16038 PR debug/PR46973
16039 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16040 static function.
16041 (prune_unused_types_mark): Use it.
16042
16043 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16044
16045 PR rtl-optimization/45352
16046 * sel-sched.c: Update copyright years.
16047 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16048 in the advancing loop when we have issued issue_rate insns.
16049
16050 2011-01-12 Richard Henderson <rth@redhat.com>
16051
16052 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16053 (TARGET_MD_ASM_CLOBBERS): New.
16054
16055 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16056 (TARGET_DELEGITIMIZE_ADDRESS): New.
16057
16058 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16059 (clzsi2, *bsch): New patterns.
16060
16061 * config/mn10300/mn10300.md (INT): New mode iterator.
16062 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16063
16064 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16065 flag_split_wide_types.
16066
16067 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16068 (mn10300_trampoline_init): Rewrite without a template, an immediate
16069 load and a direct branch.
16070 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16071
16072 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16073
16074 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16075 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16076 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16077 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16078
16079 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16080
16081 PR debug/47209
16082 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16083 of type.
16084
16085 2011-01-12 Jan Hubicka <jh@suse.cz>
16086
16087 PR driver/47244
16088 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16089 (PLUGIN_COND_CLOSE): New macro.
16090 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16091
16092 2011-01-12 Richard Guenther <rguenther@suse.de>
16093
16094 PR lto/47259
16095 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16096 register variables in a MEM_REF.
16097
16098 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16099
16100 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16101 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16102 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16103 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16104 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16105 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16106 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16107 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16108 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16109 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16110 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16111 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16112 * config/gnu-user.h: New. Copied from linux.h.
16113 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16114 GNU_USER_TARGET_STARTFILE_SPEC.
16115 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16116 GNU_USER_TARGET_ENDFILE_SPEC.
16117 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16118 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16119 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16120 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16121 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16122 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16123 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16124 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16125 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16126 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16127 * config/arm/linux-eabi.h (CC1_SPEC): Use
16128 GNU_USER_TARGET_CC1_SPEC.
16129 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16130 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16131 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16132 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16133 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16134 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16135 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16136 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16137
16138 2011-01-12 Richard Guenther <rguenther@suse.de>
16139
16140 PR other/46946
16141 * doc/invoke.texi (ffast-math): Document it is turned on
16142 with -Ofast.
16143
16144 2011-01-12 Jan Hubicka <jh@suse.cz>
16145
16146 PR tree-optimization/47233
16147 * opts.c (common_handle_option): Disable ipa-reference with profile
16148 feedback.
16149
16150 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16151
16152 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16153 error message.
16154
16155 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16156
16157 * c-parser.c (c_lex_one_token): Updated and reindented some
16158 comments. No changes in code.
16159
16160 2011-01-11 Ian Lance Taylor <iant@google.com>
16161
16162 * godump.c (go_output_var): Don't output the variable if there is
16163 already a type with the same name.
16164
16165 2011-01-11 Ian Lance Taylor <iant@google.com>
16166
16167 * godump.c (go_format_type): Don't generate float80.
16168
16169 2011-01-11 Richard Henderson <rth@redhat.com>
16170
16171 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16172 declaration. Rewrite for both speed and size.
16173 (mn10300_address_cost_1): Remove.
16174 (mn10300_register_move_cost): New.
16175 (mn10300_memory_move_cost): New.
16176 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16177 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16178 extensions, shifts, BSWAP, CLZ.
16179 (mn10300_wide_const_load_uses_clr): Remove.
16180 (TARGET_REGISTER_MOVE_COST): New.
16181 (TARGET_MEMORY_MOVE_COST): New.
16182 * config/mn10300/mn10300-protos.h: Update.
16183 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16184
16185 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16186 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16187 * config/mn10300/mn10300-protos.h: Update.
16188 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16189 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16190 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16191 (*test_int_bitfield, *test_byte_bitfield): Remove.
16192 (*bit_test, *subreg_bit_test): Remove.
16193 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16194
16195 * config/mn10300/constraints.md ("c"): Rename from "A".
16196 ("A", "D"): New constraint letters.
16197 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16198 (fmssf4, fnmasf4, fnmssf4): Likewise.
16199
16200 * config/mn10300/mn10300.md (isa): New attribute.
16201 (enabled): New attribute.
16202
16203 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16204 (abssf2, negsf2): Define only for hardware fp.
16205 (sqrtsf2): Reformat.
16206 (addsf3, subsf3, mulsf3): Merge expander and insn.
16207
16208 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16209 (DEBUGGER_AUTO_OFFSET): Remove.
16210 (DEBUGGER_ARG_OFFSET): Remove.
16211
16212 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16213 Emit register stores with the same offsets as the hardware.
16214 (mn10300_store_multiple_operation): Don't check that the register
16215 save offsets are monotonic.
16216 * config/mn10300/mn10300-protos.h: Update.
16217
16218 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16219
16220 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16221 in terms of the value on the stack, not the MDR register.
16222
16223 2011-01-11 Jan Hubicka <jh@suse.cz>
16224
16225 PR lto/45721
16226 PR lto/45375
16227 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16228 (symbol_alias_set_destroy, symbol_alias_set_contains,
16229 propagate_aliases_backward): Declare.
16230 * lto-streamer-out.c (struct sets): New sturcture.
16231 (trivally_defined_alias): New function.
16232 (output_alias_pair_p): Rewrite.
16233 (output_unreferenced_globals): Fix output of alias pairs.
16234 (produce_symtab): Likewise.
16235 * ipa.c (function_and_variable_visibility): Set weak alias destination
16236 as needed in lto.
16237 * varasm.c (symbol_alias_set_t): Remove.
16238 (symbol_alias_set_destroy): Export.
16239 (propagate_aliases_forward, propagate_aliases_backward): New functions
16240 based on ...
16241 (compute_visible_aliases): ... this one; remove.
16242 (trivially_visible_alias): New
16243 (trivially_defined_alias): New.
16244 (remove_unreachable_alias_pairs): Rewrite.
16245 (finish_aliases_1): Reorganize code checking if alias is defined.
16246 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16247 in LTO mode.
16248
16249 2011-01-11 Richard Guenther <rguenther@suse.de>
16250
16251 PR tree-optimization/46076
16252 * tree-ssa.c (useless_type_conversion_p): Conversions from
16253 unprototyped to empty argument list function types are useless.
16254
16255 2011-01-11 Richard Guenther <rguenther@suse.de>
16256
16257 PR middle-end/45235
16258 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16259 volatile MEMs as MEM_READONLY_P.
16260
16261 2011-01-11 Richard Guenther <rguenther@suse.de>
16262
16263 PR tree-optimization/47239
16264 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16265
16266 2011-01-11 Jeff Law <law@redhat.com>
16267
16268 PR tree-optimization/47086
16269 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16270 IVs from statements that might throw.
16271
16272 2011-01-10 Jan Hubicka <jh@suse.cz>
16273
16274 PR lto/45375
16275 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16276
16277 2011-01-10 Jan Hubicka <jh@suse.cz>
16278
16279 PR lto/45375
16280 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16281 when correcting profile.
16282
16283 2011-01-10 Jan Hubicka <jh@suse.cz>
16284
16285 PR lto/46083
16286 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16287 DECL_FINI_PRIORITY.
16288 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16289 Restore DECL_FINI_PRIORITY.
16290
16291 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16292
16293 * doc/gimple.texi: Fix quoting of multi-word return values in
16294 @deftypefn statements. Ensure presence of return value. Wrap
16295 overlong @deftypefn lines.
16296 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16297 descriptions of removed functions.
16298 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16299 of multi-word return value in @deftypefn statement.
16300
16301 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16302
16303 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16304 (Conditional Expressions, Logical Operators)
16305 (Statement and operand traversals): Do not indent smallexample
16306 code. Fix duplicate function argument in example.
16307
16308 2011-01-10 Jeff Law <law@redhat.com>
16309
16310 PR tree-optimization/47141
16311 * ipa-split.c (split_function): Handle case where we are
16312 returning a value and the return block has a virtual operand phi.
16313
16314 2011-01-10 Jan Hubicka <jh@suse.cz>
16315
16316 PR tree-optimization/47234
16317 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16318 (pass_feedback_split_functions): Declare.
16319 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16320 tree-profile.
16321 * ipa-split.c (gate_split_functions): Update comments; disable
16322 split-functions for profile_arc_flag and branch_probabilities.
16323 (gate_feedback_split_functions): New function.
16324 (execute_feedback_split_functions): New function.
16325 (pass_feedback_split_functions): New global var.
16326
16327 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16328
16329 PR lto/46760
16330 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16331 calling gimple_call_set_cannot_inline.
16332
16333 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16334
16335 * config/darwin-sections.def: Remove unused section.
16336
16337 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16338
16339 PR c++/47218
16340 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16341
16342 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16343
16344 PR objc/47232
16345 * c-parser.c (c_parser_declaration_or_fndef): Improved
16346 error message.
16347
16348 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16349
16350 * config/i386/winnt.c (i386_pe_start_function): Make sure
16351 to switch back to function's section.
16352
16353 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16354
16355 PR gcc/46902
16356 PR testsuite/46912
16357 * plugin.c: Move include of dlfcn.h from here...
16358 * system.h: ... to here.
16359
16360 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16361
16362 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16363 file name.
16364 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16365 two extra empty pages in PDF output.
16366
16367 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16368
16369 PR objc/47078
16370 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16371 for error recovery purposes behave as if it was not specified so
16372 that the default type is usd.
16373
16374 2011-01-07 Jan Hubicka <jh@suse.cz>
16375
16376 PR tree-optmization/46469
16377 * ipa.c (function_and_variable_visibility): Clear needed flags on
16378 nodes with external decls; handle weakrefs merging correctly.
16379
16380 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16381
16382 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16383 not false.
16384
16385 2011-01-07 Jan Hubicka <jh@suse.cz>
16386
16387 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16388 and no longer claim that gold is required for linker plugin.
16389 * configure: Regenerate.
16390 * gcc.c (PLUGIN_COND): New macro.
16391 (LINK_COMMAND_SPEC): Use it.
16392 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16393 * config.in (HAVE_LTO_PLUGIN): New.
16394 * configure.ac (--with-lto-plugin): New parameter; autodetect
16395 HAVE_LTO_PLUGIN.
16396
16397 2011-01-07 Jan Hubicka <jh@suse.cz>
16398
16399 PR tree-optimization/46367
16400 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16401 when we can update original.
16402 (cgraph_mark_inline_edge): Sanity check.
16403 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16404
16405 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16406
16407 * config/spu/spu.h (ASM_COMMENT_START): Define.
16408
16409 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16410
16411 PR driver/42445
16412 * gcc.c (%>S): New.
16413 (SWITCH_KEEP_FOR_GCC): Likewise.
16414 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16415 (do_spec_1): Handle "%>".
16416
16417 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16418
16419 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16420
16421 PR target/47201
16422 * config/i386/i386.c (ix86_delegitimize_address): If
16423 simplify_gen_subreg fails, return orig_x.
16424
16425 PR bootstrap/47187
16426 * value-prof.c (gimple_stringop_fixed_value): Handle
16427 lhs of the call properly.
16428
16429 2011-01-07 Jan Hubicka <jh@suse.cz>
16430
16431 PR lto/45375
16432 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16433
16434 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16435
16436 * target.def (function_switched_text_sections): New hook.
16437 * doc/tm.texi: Regenerated.
16438 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16439 * final.c (default_function_switched_text_sections): New.
16440 (final_scan_insn): Call function_switched_text_sections when a
16441 mid-function section change occurs.
16442 * output.h (default_function_switched_text_sections): Declare.
16443 * config/darwin-protos.h (darwin_function_switched_text_sections):
16444 Likewise.
16445 * config/darwin.c (darwin_function_switched_text_sections): New.
16446 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16447
16448 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16449
16450 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16451 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16452 the secondary code fragment when outputting for DWARF == 2.
16453
16454 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16455
16456 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16457 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16458 Remove.
16459 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16460 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16461
16462 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16463
16464 PR debug/46704
16465 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16466 when it is not empty.
16467
16468 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16469
16470 Bobcat Enablement
16471 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16472 (case ${target}): Add btver1.
16473 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16474 -march=native recognize btver1 processors.
16475 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16476 btver1 def_and_undef
16477 * config/i386/i386.c (struct processor_costs btver1_cost): New
16478 btver1 cost table.
16479 (m_BTVER1): New definition.
16480 (m_AMD_MULTIPLE): Includes m_BTVER1.
16481 (initial_ix86_tune_features): Add btver1 tune.
16482 (processor_target_table): Add btver1 entry.
16483 (static const char *const cpu_names): Add btver1 entry.
16484 (software_prefetching_beneficial_p): Add btver1.
16485 (ix86_option_override_internal): Add btver1 instruction sets.
16486 (ix86_issue_rate): Add btver1.
16487 (ix86_adjust_cost): Add btver1.
16488 * config/i386/i386.h (TARGET_BTVER1): New definition.
16489 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16490 (enum processor_type): Add PROCESSOR_BTVER1.
16491 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16492
16493 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16494
16495 PR target/43309
16496 * config/i386/i386.c (legitimize_tls_address)
16497 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16498 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16499 (tls_initial_exec_64_sun): New pattern.
16500
16501 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16502
16503 * doc/invoke.texi (Overall Options): Improve wording and markup
16504 of the description of -wrapper.
16505
16506 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16507
16508 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16509 rdynamic, threads): New Driver options.
16510
16511 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16512
16513 PR target/38118
16514 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16515 if coming from .tdata.
16516 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16517
16518 2011-01-06 Jan Hubicka <jh@suse.cz>
16519
16520 PR lto/47188
16521 * collect2.c (main): Do not enable LTOmode when plugin is active.
16522
16523 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16524
16525 PR other/45915
16526 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16527 --version output if supported.
16528 * configure: Regenerate.
16529
16530 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16531
16532 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16533 Driver options.
16534
16535 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16536
16537 PR c/47150
16538 * c-convert.c (convert): When converting a complex expression
16539 other than COMPLEX_EXPR to a different complex type, ensure
16540 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16541 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16542 when converting COMPLEX_TYPE.
16543
16544 2011-01-06 Ira Rosen <irar@il.ibm.com>
16545
16546 PR tree-optimization/47139
16547 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16548 only the last reduction value is used outside the loop. Update
16549 documentation.
16550
16551 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16552
16553 * config/rtems.opt: New.
16554 * config.gcc (*-*-rtems*): Use rtems.opt.
16555
16556 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16557
16558 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16559 processors do not support 3DNow instructions.
16560
16561 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16562
16563 * config/spu/spu.c (spu_option_override): Set parameter
16564 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16565
16566 2011-01-05 Jan Hubicka <jh@suse.cz>
16567
16568 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16569 at the command line.
16570
16571 2011-01-05 Martin Jambor <mjambor@suse.cz>
16572
16573 PR lto/47162
16574 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16575 deltas on streamed outgoing edges.
16576 (output_node_opt_summary): Output info for outgoing edges only when
16577 the node is in new parameter set.
16578 (output_cgraph_opt_summary): New parameter set, passed to the two
16579 aforementioned functions. Update its forward declaration and its
16580 callee too.
16581
16582 2011-01-05 Tom Tromey <tromey@redhat.com>
16583
16584 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16585 operator to c_finish_omp_atomic.
16586 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16587 (build_unary_op): Update.
16588 (build_modify_expr): Update.
16589 (build_asm_expr): Update.
16590
16591 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16592
16593 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16594 newly inserted insns.
16595 (pad_bb): Likewise.
16596 (spu_emit_branch_hint): Likewise.
16597 (insert_hbrp_for_ilb_runout): Likewise.
16598 (spu_machine_dependent_reorg): Call df_finish_pass after
16599 schedule_insns returns.
16600
16601 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16602
16603 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16604
16605 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16606
16607 PR tree-optimization/47005
16608 * tree-sra.c (struct access): Add 'non_addressable' bit.
16609 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16610 (decide_one_param_reduction): Return 0 if the parameter is passed by
16611 reference and one of the accesses in the group is non_addressable.
16612
16613 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16614
16615 PR tree-optimization/47056
16616 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16617 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16618 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16619
16620 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16621
16622 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16623 initializer. Skip view conversions from aggregate types.
16624
16625 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16626
16627 PR bootstrap/47055
16628 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16629
16630 2011-01-04 Philipp Thomas <pth@suse.de>
16631
16632 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16633 obvious typo.
16634
16635 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16636
16637 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16638 on empty epilogue sequences.
16639
16640 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16641
16642 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16643 non-static): New Driver options.
16644
16645 2011-01-04 Jie Zhang <jie@codesourcery.com>
16646
16647 PR driver/47137
16648 * gcc.c (default_compilers[]): Set combinable field to 0
16649 for all assembly languages.
16650
16651 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16652
16653 * config/mips/loongson3a.md: New file.
16654 * config/mips/mips.md: Include loongson3a.md.
16655 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16656 TUNE_LOONGSON_3A.
16657
16658 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16659
16660 PR middle-end/47017
16661 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16662 instead of convert_memory_address_addr_space on the base expression.
16663
16664 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16665
16666 * config/spu/spu.c (spu_option_override): Update error text
16667 for bad -march= / -mtune= values.
16668
16669 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16670
16671 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16672 if branch-hint optimization will be performed.
16673
16674 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16675
16676 PR tree-optimization/47148
16677 * ipa-split.c (split_function): Convert arguments to
16678 DECL_ARG_TYPE if possible.
16679
16680 PR tree-optimization/47155
16681 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16682 when computing uns.
16683
16684 PR rtl-optimization/47157
16685 * combine.c (try_combine): If undobuf.other_insn becomes
16686 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16687 and set *new_direct_jump_p too.
16688
16689 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16690
16691 PR tree-optimization/47021
16692 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16693
16694 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16695
16696 * gcc.c (process_command): Update copyright notice dates.
16697 * gcov.c (print_version): Likewise.
16698 * gcov-dump.c (print_version): Likewise.
16699 * mips-tfile.c (main): Likewise.
16700 * mips-tdump.c (main): Likewise.
16701
16702 2011-01-03 Martin Jambor <mjambor@suse.cz>
16703
16704 PR tree-optimization/46801
16705 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16706 aggregate fields start at byte boundary instead of the bit-field flag.
16707
16708 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16709
16710 PR driver/47137
16711 * gcc.c (main): Revert revision 168407.
16712
16713 2011-01-03 Martin Jambor <mjambor@suse.cz>
16714
16715 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16716
16717 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16718
16719 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16720 vector optab to expand vector/scalar shift, update gimple to vector.
16721
16722 2011-01-03 Martin Jambor <mjambor@suse.cz>
16723
16724 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16725 a thunk.
16726
16727 2011-01-03 Martin Jambor <mjambor@suse.cz>
16728
16729 PR tree-optimization/46984
16730 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16731 HOST_WIDE_INT.
16732 (cgraph_create_indirect_edge): Fixed line length.
16733 (cgraph_indirect_call_info): Declare.
16734 (cgraph_make_edge_direct) Update declaration.
16735 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16736 (cgraph_create_indirect_edge): Use it.
16737 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16738 callees.
16739 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16740 the new thunk_delta representation.
16741 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16742 HOST_WIDE_INT.
16743 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16744 (ipa_read_indirect_edge_info): Likewise.
16745 * lto-cgraph.c (output_edge_opt_summary): New function.
16746 (output_node_opt_summary): Call it on all outgoing edges.
16747 (input_edge_opt_summary): New function.
16748 (input_node_opt_summary): Call it on all outgoing edges.
16749
16750 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16751
16752 PR driver/47137
16753 * gcc.c (main): Don't check have_o when settting combine_inputs.
16754
16755 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16756
16757 * regrename.c: Add general comment describing the pass.
16758 (struct du_head): Remove 'length' field.
16759 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16760 (regrename_optimize): Do not sort chains. Rework comments, add others.
16761 Force renaming to the preferred class (if any) in the first pass and do
16762 not consider registers that belong to it in the second pass.
16763 (create_new_chain): Do not set 'length' field.
16764 (scan_rtx_reg): Likewise.
16765
16766 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16767
16768 PR tree-optimization/47140
16769 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16770 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16771 to bit_value_binop.
16772
16773 PR rtl-optimization/47028
16774 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16775 parm_birth_insn instead of at the beginning of first bb.
16776
16777 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16778
16779 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16780 Remove the word "see" before "@pxref".
16781 * doc/rtl.texi: Remove the word "see" before "@pxref".
16782
16783 2011-01-01 Jan Hubicka <jh@suse.cz>
16784
16785 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16786 memory.
16787
16788 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16789
16790 PR target/38662
16791 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16792
16793 \f
16794 Copyright (C) 2011 Free Software Foundation, Inc.
16795
16796 Copying and distribution of this file, with or without modification,
16797 are permitted in any medium without royalty provided the copyright
16798 notice and this notice are preserved.