re PR tree-optimization/46728 (GCC does not generate fmadd for pow (x, 0.75)+y on...
[gcc.git] / gcc / ChangeLog
1 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2
3 PR tree-optimization/46728
4 * builtins.c (powi_table): Remove.
5 (powi_lookup_cost): Remove.
6 (powi_cost): Remove.
7 (expand_powi_1): Remove.
8 (expand_powi): Remove.
9 (expand_builtin_pow_root): Remove.
10 (expand_builtin_pow): Remove.
11 (expand_builtin_powi): Eliminate handling of constant exponent.
12 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13
14 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15
16 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
17
18 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
19
20 * dce.c (reset_unmarked_insns_debug_uses): New.
21 (delete_unmarked_insns): Skip debug insns.
22 (prescan_insns_for_dce): Likewise.
23 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
24 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
25 active reg can be found.
26 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
27 (convert_regs_1): Use it.
28
29 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
30
31 * tree-pretty-print.c (dump_function_header): Add flags.
32 Don't dump decl_uid with nouid.
33 * tree-pretty-print.h (dump_function_header): Adjust.
34 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
35 * passes.c (pass_init_dump_file): Pass dump_flags on.
36 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
37
38 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
39
40 PR bootstrap/49270
41 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
42
43 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
44
45 PR tree-optimization/49243
46 * calls.c (setjmp_call_p): Also check if fndecl has the
47 returns_twice attribute.
48
49 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
50
51 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
52 -ffast-math etc.
53
54 2011-06-06 Richard Henderson <rth@redhat.com>
55 Georg-Johann Lay <avr@gjlay.de>
56
57 PR target/42210
58 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
59 New predicates.
60 * config/avr/avr.md ("insv"): New insn expander.
61 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
62 "*insv.not.io", "*insv.reg"): New insns.
63
64 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
65
66 PR target/49285
67 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
68 predicate to nonimmediate_operand from memory_operand for the
69 operand that is to be forced to memory by the expander. Lose
70 the constraints.
71
72 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
73
74 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
75 EH return when delayed branches are disabled.
76
77 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
78
79 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
80 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
81 calculation.
82 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
83 Simplify MODE_V1DF and MODE_V2SF handling.
84 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
85 Simplify MODE_SF handling.
86
87 2011-06-04 Jan Hubicka <jh@suse.cz>
88
89 PR tree-optimization/48893
90 PR tree-optimization/49091
91 PR tree-optimization/49179
92 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
93 Bounds check.
94
95 2011-06-04 Jan Hubicka <jh@suse.cz>
96
97 PR lto/48954
98 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
99
100 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
101
102 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
103
104 2011-06-04 Jakub Jelinek <jakub@redhat.com>
105
106 PR target/49281
107 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
108 to be strictly smaller than 1 << shiftcount.
109
110 2011-06-04 Jan Hubicka <jh@suse.cz>
111
112 PR tree-optimize/48929
113 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
114 of empty predicate.
115
116 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
117
118 PR debug/48333
119 * calls.c (emit_call_1): Prefer the __builtin declaration of
120 builtin functions.
121
122 2011-06-03 Diego Novillo <dnovillo@google.com>
123
124 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
125 (lto_input_tree_pointers): Likewise.
126 * lto-streamer-out.c (pack_value_fields): Likewise.
127 (lto_output_tree_pointers): Likewise.
128 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
129 and OPTIMIZATION_NODE.
130
131 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
132
133 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
134 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
135 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
136 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
137 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
138 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
139 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
140 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
141 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
142 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
143 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
144 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
145 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
146 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
147 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
148 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
149 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
150 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
151 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
152 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
153 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
154 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
155 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
156 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
157 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
158 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
159 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
160 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
161 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
162 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
163 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
164 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
165 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
166 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
167 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
168 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
169 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
170 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
171 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
172 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
173 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
174 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
175 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
176 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
177 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
178 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
179 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
180 * system.h (MD_UNWIND_SUPPORT): Poison.
181 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
182 * doc/tm.texi: Regenerate.
183 * unwind-dw2.c: Include md-unwind-support.h instead of
184 MD_UNWIND_SUPPORT.
185 * config/ia64/unwind-ia64.c: Likewise.
186 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
187
188 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
189
190 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
191
192 2011-06-03 Richard Henderson <rth@redhat.com>
193 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194
195 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
196 (sigill_hdlr): Correct insn, insn size.
197 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
198
199 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
200
201 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
202 t-slibgcc-dummy.
203 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
204 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
205 * config/mips/t-iris: Remove.
206 * config/mips/t-irix6: New file.
207 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
208
209 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
210
211 * Makefile.in (LIB2ADDEHDEP): Remove.
212 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
213 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
214 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
215 * config/t-darwin (LIB2ADDEHDEP): Remove.
216 * config/t-freebsd (LIB2ADDEHDEP): Remove.
217 * config/t-linux (LIB2ADDEHDEP): Remove.
218
219 2011-06-03 Diego Novillo <dnovillo@google.com>
220
221 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
222 (lto_register_var_decl_in_symtab): Likewise.
223 (lto_register_function_decl_in_symtab): Likewise.
224 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
225 logic to uniquify_nodes.
226
227 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
228
229 * config/alpha/t-osf5: Remove.
230 * config/alpha/t-osf-pthread: Remove.
231 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
232 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
233
234 2011-06-03 Julian Brown <julian@codesourcery.com>
235
236 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
237 (strongarm1110): Use strongarm tuning.
238 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
239 * config/arm/arm.c (arm_strongarm_tune): New.
240 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
241 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
242 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
243 setting, using previous defaults or 1 for Cortex-A5.
244 (arm_option_override): Set max_insns_skipped from current tuning.
245
246 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
247
248 * doc/install.texi (Options specification): Document --with-specs.
249
250 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
251
252 * config/arm/neon.md (orndi3_neon): Actually split it.
253
254 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
255
256 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
257 * var-tracking.c (reverse_op): Limite recurse depth to 5.
258
259 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
260
261 PR debug/47590
262 * target.def (delay_sched2, delay_vartrack): New.
263 * doc/tm.texi.in: Update.
264 * doc/tm.texi: Rebuild.
265 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
266 * var-tracking.c (gate_handle_var_tracking): Likewise.
267 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
268 (bfin_flag_var_tracking): Drop.
269 (output_file_start): Don't save and override flag_var_tracking.
270 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
271 (bfin_reorg): Test original variables.
272 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
273 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
274 (ia64_flag_var_tracking): Drop.
275 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
276 (ia64_file_start): Don't save and override flag_var_tracking.
277 (ia64_override_options_after_change): Ditto
278 flag_schedule_insns_after_reload.
279 (ia64_reorg): Test original variables.
280 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
281 (picochip_flag_var_tracking): Drop.
282 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
283 (picochip_option_override): Don't save and override
284 flag_schedule_insns_after_reload.
285 (picochip_asm_file_start): Ditto flag_var_tracking.
286 (picochip_reorg): Test original variables.
287 * config/spu/spu.c (spu_flag_var_tracking): Drop.
288 (TARGET_DELAY_VARTRACK): Define.
289 (spu_var_tracking): New.
290 (spu_machine_dependent_reorg): Call it.
291 (asm_file_start): Don't save and override flag_var_tracking.
292
293 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
294
295 PR target/49163
296 * config/sh/predicates.md (general_movsrc_operand): Return 0
297 for memory and memory subreg of which address is an invalid
298 indexed address for QI and HImode.
299 (general_movdst_operand): Likewise.
300
301 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
302
303 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
304 edges only, when there is a non-local label in the function.
305 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
306
307 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
308
309 * config/i386/constraints.md (Y3): New register constraint.
310 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
311 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
312 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
313 *sse2_interleave_lowv2df.
314
315 2011-06-02 Julian Brown <julian@codesourcery.com>
316
317 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
318 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
319 (arm_cortex_a5_tune): New.
320
321 2011-06-02 Julian Brown <julian@codesourcery.com>
322
323 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
324 * config/arm/arm.c (arm_default_branch_cost): New.
325 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
326 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
327 (arm_fa726_tune): Set branch_cost field using
328 arm_default_branch_cost.
329 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
330 current_tune structure.
331 * dojump.c (tm_p.h): Include file.
332
333 2011-06-02 Julian Brown <julian@codesourcery.com>
334
335 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
336 tuning.
337 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
338 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
339 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
340 field.
341 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
342 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
343 (arm_fa726te_tune): Add prefer_constant_pool setting.
344 (arm_v6t2_tune, arm_cortex_tune): New.
345 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
346 prefer_constant_pool setting.
347
348 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
349
350 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
351 switch statement.
352 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
353 (*movdf_internal) <case 6,7,8>: Ditto.
354
355 * config/i386/constraints.md (Y4): New register constraint.
356 * config/i386/sse.md (vec_set<mode>_0): Merge with
357 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
358 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
359 *vec_extractv2di_1_sse.
360 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
361 and *vec_concatv2di_rex64_sse.
362
363 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
364
365 PR target/48807
366 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
367 of cgraph_local_info for null before attempting to use it.
368
369 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
370
371 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
372 (current_function_dynamic_alloc_count): Delete.
373 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
374 (expand_builtin_nonlocal_goto): Remove obsolete comment.
375 (expand_builtin_update_setjmp_buf): Remove dead code.
376 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
377 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
378 support.
379 * function.c (instantiate_virtual_regs): Likewise.
380 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
381 for a block with a single abnormal incoming edge.
382 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
383 (SETJMP_VIA_SAVE_AREA): Delete.
384 * config/sparc/sparc-protos.h (load_got_register): Declare.
385 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
386 (load_got_register): Make global.
387 (sparc_frame_pointer_required): Add 'static'.
388 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
389 (sparc_builtin_setjmp_frame_value): New function.
390 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
391 (save_stack_nonlocal): New expander.
392 (restore_stack_nonlocal): Likewise.
393 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
394 (nonlocal_goto_internal): New insn.
395 (goto_handler_and_restore): Delete.
396 (builtin_setjmp_setup): Likewise.
397 (do_builtin_setjmp_setup): Likewise.
398 (setjmp): Likewise.
399 (builtin_setjmp_receiver): New expander.
400
401 2011-06-01 David Li <davidxl@google.com>
402
403 PR middle-end/49261
404 * tree-pretty-print.c (dump_function_header): Format cleanup.
405
406 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
407
408 PR target/49238
409 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
410 needed when original operands are used for msw_skip comparison.
411
412 2011-06-01 Jakub Jelinek <jakub@redhat.com>
413
414 PR debug/49250
415 * var-tracking.c (add_uses, add_stores): Don't call
416 cselib_subst_to_values on ENTRY_VALUE.
417
418 2011-06-01 Diego Novillo <dnovillo@google.com>
419
420 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
421 output_record_start with LTO_null instead of output_zero.
422 (lto_output_ts_binfo_tree_pointers): Likewise.
423 (lto_output_tree): Likewise.
424 (output_eh_try_list): Likewise.
425 (output_eh_region): Likewise.
426 (output_eh_lp): Likewise.
427 (output_eh_regions): Likewise.
428 (output_bb): Likewise.
429 (output_function): Likewise.
430 (output_unreferenced_globals): Likewise.
431 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
432 instead of NUM_TREE_CODES.
433 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
434 (lto_output_int_in_range): Change << to >> when shifting VAL.
435
436 2011-06-01 Diego Novillo <dnovillo@google.com>
437
438 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
439 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
440
441 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
442
443 PR target/45074
444 * optabs.h (valid_multiword_target_p): Declare.
445 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
446 doing multi-word operations.
447 * optabs.c (expand_binop): Likewise.
448 (expand_doubleword_bswap): Likewise.
449 (expand_absneg_bit): Likewise.
450 (expand_unop): Likewise.
451 (expand_copysign_bit): Likewise.
452 (multiword_target_p): New function.
453
454 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
455
456 PR rtl-optimization/48830
457 PR rtl-optimization/48808
458 PR rtl-optimization/48792
459 * reload.c (push_reload): Check contains_reg_of_mode.
460 * reload1.c (strip_paradoxical_subreg): New function.
461 (gen_reload_chain_without_interm_reg_p): Use it to handle
462 paradoxical subregs.
463 (emit_output_reload_insns, gen_reload): Likewise.
464
465 2011-06-01 David Li <davidxl@google.com>
466
467 * predict.c : Change pass name
468 * ipa.c: Ditto.
469 * dce.c: Ditto.
470 * tree-profile.c: Ditto.
471 * except.c: Ditto.
472
473 2011-06-01 David Li <davidxl@google.com>
474
475 * tree-pretty-print.c (dump_function_header): New function.
476 * final.c (rest_of_clean_state): Use header dumper.
477 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
478 * passes.c (pass_init_dump_file): Use header dumper.
479
480 2011-06-01 Jakub Jelinek <jakub@redhat.com>
481
482 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
483 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
484 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
485 New functions.
486 (mem_loc_descriptor): Use them.
487
488 * var-tracking.c (create_entry_value): New function.
489 (vt_add_function_parameter): Use it.
490
491 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
492
493 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
494 Include <signal.h>, <ucontext.h>.
495 (sigill_caught): Define.
496 (sigill_hdlr): New function.
497 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
498 insns can be executed.
499 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
500 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
501
502 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
503
504 * config/t-slibgcc-darwin: Move to ...
505 * config/t-slibgcc-dummy: ... this. Clarify comments.
506 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
507 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
508 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
509 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
510 Remove i386/t-crtstuff from tmake_file.
511 (i[34567]86-*-solaris2*): Remove t-svr4,
512 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
513 t-slibgcc-dummy.
514 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
515 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
516 sparc/t-crtfm from tmake_file.
517 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
518 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
519 Remove extra_parts.
520 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
521 * config/i386/t-nwld (SHLIB_LINK): Remove.
522 * config/i386/t-rtems-i386: Rename to ...
523 * config/i386/t-rtems: ... this.
524 ($(T)crti.o, $(T)crtn.o): Remove.
525 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
526 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
527 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
528 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
529 EXTRA_MULTILIB_PARTS): Remove.
530 * config/sparc/t-sol2-64: Likewise.
531 * config/sparc/t-sol2: Remove.
532 * config/sparc/t-crtin: Remove.
533 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
534 * config/i386/gmon-sol2.c: Remove.
535 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
536 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
537 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
538 * config/i386/sol2-gc1.asm: Remove.
539 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
540 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
541 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
542 * config/t-slibgcc-sld: Remove.
543
544 2011-06-01 Jakub Jelinek <jakub@redhat.com>
545
546 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
547 base_type_for_mode with op_mode instead of mode.
548
549 2011-06-01 Paul Brook <paul@cpodesourcery.com>
550
551 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
552 Cortex-A15.
553 * config/arm/arm-tune.md: Regenerate.
554 * config/arm/arm-tables.opt: Regenerate.
555 * config/arm/arm.c (FL_DIV): Rename...
556 (FL_THUMB_DIV): ... to this.
557 (FL_ARM_DIV): Define.
558 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
559 (arm_arch_hwdiv): Remove.
560 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
561 (arm_issue_rate): Add cortexr5.
562 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
563 __ARM_ARCH_EXT_IDIV__.
564 (TARGET_IDIV): Define.
565 (arm_arch_hwdiv): Remove.
566 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
567 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
568 (divsi3, udivsi3): New patterns.
569 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
570 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
571
572 2011-06-01 Martin Jambor <mjambor@suse.cz>
573
574 * ipa-utils.c (ipa_dfs_info): New field scc_no.
575 * ipa-utils.c (searchc): Set scc_no.
576
577 2011-06-01 Martin Jambor <mjambor@suse.cz>
578
579 * ipa-utils.c (searchc_env): New field allow_overwritable.
580 (searchc): do not ignore edges to overwritable nodes if indicated
581 by env->allow_overwritable.
582 (ipa_reduced_postorder): Set env.allow_overwritable.
583
584 2011-06-01 Richard Guenther <rguenther@suse.de>
585
586 * tree.c (free_lang_data): Do not reset boolean_type_node nor
587 char_type_node.
588 * lto-streamer.c (lto_record_common_node): Take node pointer,
589 do not register types.
590 (lto_preload_common_nodes): Explicitly skip preloading nodes
591 that differ between frontends.
592
593 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
594
595 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
596 NON_FLOAT_REGS.
597
598 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
599
600 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
601 parameter value for dump. Dump cost on outermost call only.
602 (rs6000_memory_move_cost): Dump cost on outermost call only.
603
604 2011-05-31 Jakub Jelinek <jakub@redhat.com>
605
606 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
607 DW_OP_GNU_convert ops.
608
609 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
610 cselib_preserve_constants.
611 (cselib_lookup_1): If cselib_preserve_constants,
612 a new VALUE is being created for REG and there is a VALUE for the
613 same register in wider mode, add another loc with lowpart SUBREG of
614 the wider VALUE.
615 (cselib_subst_to_values): Handle ENTRY_VALUE.
616 * var-tracking.c (replace_expr_with_values): Return NULL for
617 ENTRY_VALUE too.
618 * dwarf2out.c (convert_descriptor_to_signed): New function.
619 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
620 instead of two shifts.
621 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
622 the right mode if needed.
623 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
624 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
625 convert_descriptor_to_signed.
626 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
627 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
628
629 PR target/48688
630 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
631
632 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
633
634 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
635 of X87MODEI12 and SWI48x instead of SSEMODEI24.
636 (SWI248x): New mode iterator, rename from X87MODEI.
637 (X87MODEI): Remove mode iterator.
638 (X87MODEI12): Ditto.
639 (SSEMODEI24): Ditto.
640
641 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
642
643 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
644 * doc/invoke.texi: Document max-vartrack-expr-depth.
645 * var-tracking.c (EXPR_DEPTH): New.
646 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
647
648 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
649
650 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
651 * config/i386/sse.md: Add n to negated FMA pattern names.
652
653 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
654
655 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
656
657 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
658
659 * gengtype-state.c (read_state_params_structs): Initialize previous.
660
661 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
662
663 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
664 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
665
666 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
667
668 * config/i386/i386.md (*movtf_internal): Avoid allocating general
669 registers. Penalize F*r->o alternative to prevent partial memory
670 stalls. Slightly penalize *roF->*r alternative. Generate SSE
671 CONST_DOUBLE immediates when optimizing function for size. Do not move
672 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
673 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
674 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
675 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
676 alternatives.
677 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
678
679 (fp_register_operand splitters): Use fp_register_operand
680 constraint. Do not use FP_REG_P in insn condition.
681 (any_fp_register_operand splitters): Use any_fp_register_operand
682 constraint. Do not use ANY_FP_REG_P in insn condition.
683
684 2011-05-31 Jan Hubicka <jh@suse.cz>
685
686 * cgraph.h (cgraph_inline_failed_t): Give enum a name
687 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
688 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
689 (lto_output_edge): Use output_enum and var_len_unsigned.
690 (lto_output_varpool_node): Likewise.
691 (input_overwrite_node): Do not take resolution parameter;
692 extract it from a bitpack.
693 (input_node): Do not read resolution; use input_enum and
694 var_len_unsigned.
695 (input_varpool_node): Likewise.
696 (input_edge): Likewise.
697 (input_cgraph_1): Likewise.
698
699 2011-05-31 Richard Guenther <rguenther@suse.de>
700
701 * gimple.c (gimple_register_canonical_type): Do not register
702 any types via gimple_register_type.
703
704 2011-05-31 Jan Hubicka <jh@suse.cz>
705
706 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
707 of thunks.
708
709 2011-05-31 Jakub Jelinek <jakub@redhat.com>
710
711 PR rtl-optimization/49235
712 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
713 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
714
715 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
716
717 PR tree-optimization/49093
718 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
719 data references.
720
721 2011-05-31 Dodji Seketeli <dodji@redhat.com>
722
723 PR debug/49047
724 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
725 for concrete functions containing the code of cloned functions.
726
727 2011-05-31 Richard Guenther <rguenther@suse.de>
728
729 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
730 to ...
731 (forward_propagate_into_comparison_1): ... this.
732 (forward_propagate_comparison): Rename to ...
733 (forward_propagate_into_comparison): ... this. Split out
734 real forward propagation code to ...
735 (forward_propagate_comparison): ... this.
736 (forward_propagate_into_gimple_cond): Remove looping.
737 (forward_propagate_into_cond): Likewise.
738 (simplify_not_neg_expr): Return whether we have done something.
739 (simplify_gimple_switch): Likewise.
740 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
741 (ssa_forward_propagate_and_combine): ... this. Re-structure
742 to do a forward forward-propagation walk on BBs and a backward
743 stmt combining walk on BBs. Consistently re-scan changed statements.
744 (pass_forwprop): Adjust.
745
746 2011-05-30 Ian Lance Taylor <iant@google.com>
747
748 * godump.c (go_format_type): Correct length of name added to
749 obstack for anonymous field.
750
751 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
752
753 PR target/49186
754 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
755 part of the second operand is 0.
756
757 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
758
759 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
760 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
761 to memory for !TARGET_MEMORY_MISMATCH_STALL.
762 (*movdf_internal_rex64): Do not penalize F->r alternative.
763 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
764 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
765 when optimizing function for size. Do not move CONST_DOUBLEs
766 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
767 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
768 SUBREGs. Do not check for MEM_P operands in the insn condition,
769 check for ANY_FP_REGNO_P instead.
770 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
771 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
772 function for speed.
773 * config/i386/i386.c (ix86_option_override_internal): Do not
774 set TARGET_INTEGER_DFMODE_MOVES here.
775
776 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
777
778 PR target/49168
779 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
780
781 2011-05-30 Jakub Jelinek <jakub@redhat.com>
782
783 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
784 DW_TAG_rvalue_reference_type even for
785 -gdwarf-4 -fno-debug-types-section.
786
787 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
788
789 PR tree-optimization/46728
790 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
791 (build_and_insert_binop): New.
792 (gimple_expand_builtin_pow): Reorder args for
793 build_and_insert_call; use build_and_insert_binop; add more
794 optimizations for fractional exponents.
795
796 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
797
798 PR bootstrap/49190
799
800 Revert:
801 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
802
803 * tree.h (struct tree_identifier): Inherit from tree_typed, not
804 tree_common.
805 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
806 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
807 TS_BASE instead of TS_COMMON.
808 * varasm.c (assemble_name): Remove assert.
809
810 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
811
812 * config.gcc: Keep obselete list sorted.
813
814 2011-05-30 Jakub Jelinek <jakub@redhat.com>
815 Eric Botcazou <ebotcazou@adacore.com>
816
817 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
818 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
819 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
820 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
821 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
822
823 2011-05-30 Richard Guenther <rguenther@suse.de>
824
825 * gimple.c (gimple_types_compatible_p_1): Compare record
826 and union type members properly.
827
828 2011-05-30 Richard Guenther <rguenther@suse.de>
829
830 PR tree-optimization/49210
831 * ipa-split.c (split_function): Care for the case where the call
832 result is not trivially convertible to the result holding variable.
833
834 2011-05-30 Richard Guenther <rguenther@suse.de>
835
836 PR tree-optimization/49218
837 * tree-vrp.c (adjust_range_with_scev): Properly check whether
838 overflow occured.
839
840 2011-05-30 Richard Guenther <rguenther@suse.de>
841
842 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
843 New function split out from ...
844 (forward_propagate_into_gimple_cond): ... here. Adjust.
845 (forward_propagate_into_cond): Likewise.
846 (forward_propagate_comparison): Also propagate into
847 comparisons on assignment RHS. Change return value to
848 behave similar to forward_propagate_into_cond.
849 (tree_ssa_forward_propagate_single_use_vars): Handle
850 strict-overflow warnings properly for forward_propagate_comparison.
851
852 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
853
854 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
855 from plugin linker.
856 * configure: Regenerate.
857
858 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
859
860 PR tree-optimization/49199
861 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
862 non-reduction operands are either defined in the loop or by induction.
863
864 2011-05-29 Xinliang David Li <davidxl@google.com>
865
866 * opts-global.c (handle_common_deferred_options): Handle new options.
867 * passes.c (register_one_dump_file): Call register_pass_name.
868 (execute_one_pass): Check explicit enable/disable flag.
869 (passr_hash): New function.
870 (passr_eq): Ditto.
871 (register_pass_name): Ditto.
872 (get_pass_by_name): Ditto.
873 (pass_hash): Ditto.
874 (pass_eq): Ditto.
875 (enable_pass): Ditto.
876 (disable_pass): Ditto.
877 (is_pass_explicitly_enabled_or_disabled): Ditto.
878
879 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
880
881 * config/i386/i386.md (*movoi_internal_avx): Use
882 standard_sse_constant_opcode for alternative 0.
883 (*movti_internal_sse): Ditto.
884 (*movti_internal_rex64): Use standard_sse_constant_opcode for
885 alternative 2.
886 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
887 sselog1 type moves.
888 (*movsi_internal): Ditto.
889 (*movdi_internal): Ditto. Add ssecvt type moves.
890
891 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
892
893 PR target/48830
894 * rtlanal.c (simplify_subreg_regno): Adjust comment.
895
896 2011-05-29 Jakub Jelinek <jakub@redhat.com>
897
898 PR rtl-optimization/49095
899 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
900 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
901
902 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
903
904 PR target/43995
905 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
906 recurse_p argument. Only follow register copies if it is set,
907 and prevent mips_find_pic_call_symbol from recursing.
908 (mips_find_pic_call_symbol): Add a recurse_p argument.
909 Pass it to mips_pic_call_symbol_from_set.
910 (mips_annotate_pic_calls): Update accordingly.
911
912 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
913
914 * emit-rtl.c (try_split): Use a loop to search for
915 NOTE_INSN_CALL_ARG_LOCATIONs.
916
917 2011-05-29 Richard Guenther <rguenther@suse.de>
918
919 PR tree-optimization/49217
920 * ipa-pure-const.c (propagate_pure_const): Fix typos.
921
922 2011-05-28 Jan Hubicka <jh@suse.cz>
923
924 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
925 length.
926 (string_slot_free): Remove
927 (create_output_block): Initialize obstack.
928 (destroy_output_block): Free obstack.
929 (lto_string_index): Add PERSISTENT parameter; do not duplicate
930 the string unless it needs to be added into the hash.
931 (lto_output_string_with_length): Add persistent attribute;
932 handle NULL strings.
933 (lto_output_string): Add PERSISTENT parameter.
934 (output_string_cst, output_identifier): Simplify.
935 (lto_output_location_bitpack): Update.
936 (lto_output_builtin_tree): Update.
937 * lto-streamer.h (struct output_block): Add obstack.
938 (lto_output_string, lto_output_string_with_length): Remove
939 declarations; functions are static now.
940
941 2011-05-28 Jan Hubicka <jh@suse.cz>
942
943 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
944 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
945 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
946 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
947 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
948 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
949 unpack_ts_decl_with_vis_value_fields,
950 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
951 lto_get_builtin_tree): Use enum and variable length i/o.
952 * basic-block.h (profile_status_d): Add PROFILE_LAST.
953 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
954 New functions.
955 (bp_pack_enum, bp_unpack_enum): New macros.
956
957 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
958
959 * genrecog.c: Remove redundant forward declarations.
960
961 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
962
963 * config.gcc: Deprecate mips*-*-openbsd*.
964
965 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
966
967 PR bootstrap/49195
968 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
969 for match_op_dup.
970
971 2011-05-27 Andrew Pinski <pinskia@gmail.com>
972
973 PR middle-end/48981
974 * gengtype.c (vec_prefix_type): New function.
975 (note_def_vec): Use vec_prefix_type and change the length
976 attribute to be based on the prefix.
977 * vec.c: Include coretypes.h before vec.h.
978 (struct vec_prefix): Remove.
979 (vec_gc_p_reserve): Change the offsetof to sizeof.
980 (vec_gc_p_reserve_exact): Likewise.
981 (vec_heap_p_reserve): Likewise.
982 (vec_heap_p_reserve_exact): Likewise.
983 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
984 (vec_stack_p_reserve): Change the offsetof to sizeof.
985 (vec_stack_p_reserve_exact): Likewise.
986 * vec.h (struct vec_prefix): New struct definition.
987 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
988 (VEC_T_GTY(T,B)): Likewise.
989 (DEF_VEC_FUNC_P(T)): Use prefix field.
990 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
991 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
992
993 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
994
995 PR tree-optimization/46728
996 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
997 (powi_as_mults): Add gimple_set_location.
998 (build_and_insert_call): New.
999 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1000 0.5, 0.25, 0.75, 1./3., or 1./6.
1001
1002 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1003
1004 * doc/contrib.texi: Update copyright years.
1005 (Contributors): Add Zdenek Sojka.
1006
1007 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1008
1009 * c-decl.c (c_push_function_context): Copy the current statement
1010 list stack.
1011 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1012 (finish_struct): Call building_stmt_list_p instead of checking
1013 cur_stmt_list.
1014 * c-parser.c (c_parser_postfix_expression): Likewise.
1015 * c-typeck.c (c_end_compound_stmt): Likewise.
1016 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1017 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1018 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1019 (free_stmt_list): Likewise.
1020 * tree.h (struct tree_statement_list): Include typed_tree instead
1021 of tree_common.
1022 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1023 as TS_TYPED instead of TS_COMMON.
1024
1025 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1026 Uros Bizjak <ubizjak@gmail.com>
1027
1028 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1029 (HAVE_AS_IX86_TLSGDPTL): Define.
1030 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1031 (HAVE_AS_IX86_TLSLDMPLT): Define.
1032 * configure: Regenerate.
1033 * config.in: Regenerate.
1034 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1035 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1036 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1037 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1038 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1039 @tlsldmplt or @plt.
1040 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1041
1042 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1043
1044 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1045 and reverse_cond.
1046 (INSN_COND, INSN_REVERSE_COND): New macros.
1047 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1048 once.
1049 (sched_get_condition_with_rev): Cache the results, and look them up
1050 if possible.
1051 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1052 are clobbered by the current insn.
1053 * target.def (exposed_pipline): New sched data hook.
1054 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1055 * doc/tm.texi: Regenerate.
1056
1057 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1058
1059 PR tree-optimization/49170
1060 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1061 sincos or cexp.
1062
1063 2011-05-27 Richard Guenther <rguenther@suse.de>
1064
1065 PR middle-end/49189
1066 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1067 of comparisons.
1068
1069 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1070
1071 * haifa-sched.c (sched_scan_info): Remove.
1072 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1073 with NULL args.
1074 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1075 Remove functions.
1076 (sched_scan): Remove.
1077 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1078 static. All callers changed.
1079 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1080 static. All callers changed.
1081 (sched_init_luids): Remove all arguments except the first. All
1082 callers changed. Don't use sched_scan.
1083 (haifa_init_h_i_d): Likewise.
1084 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1085 manually rather than using sched_init_luids. Likewise with
1086 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1087 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1088 rather than sched_init_luids with NULL args.
1089 * sel-sched-ir.c (new_insns): Remove variable.
1090 (sched_scan): New static function, previously in haifa-sched.c. Remove
1091 all arguments but the first two; all callers changed.
1092 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1093 rather than sched_init_luids.
1094 (sel_init_bbs): Remove second argument. All callers changed.
1095 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1096 with NULL arguments.
1097 (create_insn_rtx_from_pattern): Likewise.
1098 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1099 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1100 (sched_init_insn_luid, sched_extend_luids): Declare.
1101 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1102 declarations.
1103
1104 2011-05-27 Richard Guenther <rguenther@suse.de>
1105
1106 PR middle-end/49177
1107 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1108 A CMP B ? (T) true : (T) false for non-integral types T again.
1109
1110 2011-05-27 Jan Hubicka <jh@suse.cz>
1111
1112 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1113 so 0 means NULL string.
1114 (lto_output_string_with_length): ... here.
1115 (lto_output_string, output_string_cst, output_identifier): Update
1116 handling of NULL strings.
1117 (lto_output_location_bitpack): New function.
1118 (lto_output_location): Use it.
1119 (lto_output_tree_ref): Use output_record_start.
1120 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1121 len values.
1122 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1123 values by 1.
1124 (input_string_internal): ... here;
1125 (input_string_cst, input_identifier, lto_input_string): Update handling
1126 of NULL strings.
1127 (lto_input_location_bitpack): New function
1128 (lto_input_location): Use it.
1129 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1130 values.
1131 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1132 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1133 (bp_pack_value): Sanity check the value range.
1134 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1135 New functions.
1136 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1137 New functions.
1138
1139 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1140
1141 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1142 call_arg_location instructions down the floor.
1143
1144 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1145
1146 PR rtl-optimization/49154
1147 * ira.c (setup_pressure_classes): Process class without sublcasses
1148 as a candidate for pressure classes.
1149
1150 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1151
1152 PR rtl-optimization/48575
1153 * genrecog.c (position_type): New enum.
1154 (position): New structure.
1155 (decision): Use position structure instead of a string.
1156 (root_pos, peep2_insn_pos_list): New variables.
1157 (next_position, compare_positions): New functions.
1158 (new_decision): Use position structures instead of strings.
1159 (maybe_both_true): Likewise.
1160 (change_state): Likewise.
1161 (write_tree): Likewise.
1162 (make_insn_sequence): Likewise.
1163
1164 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1165
1166 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1167 TS_BASE instead of TS_COMMON.
1168 (find_decls_types_r): Check for TS_TYPED structure before looking at
1169 TREE_TYPE.
1170 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1171 Add chain field.
1172 (BLOCK_CHAIN): Use new chain field.
1173
1174 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1175
1176 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1177 moves expensive on Power7 also.
1178
1179 2011-05-26 Richard Guenther <rguenther@suse.de>
1180
1181 * fold-const.c (fold_unary_loc): Remove bogus code.
1182
1183 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1184
1185 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1186 tree_common.
1187 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1188 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1189 TS_BASE instead of TS_COMMON.
1190 * varasm.c (assemble_name): Remove assert.
1191
1192 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1193
1194 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1195 substituted first.
1196 * libgcc-std.ver: Delete file.
1197
1198 2011-05-26 Richard Guenther <rguenther@suse.de>
1199
1200 PR tree-optimization/48702
1201 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1202 only when we know the base address is within bounds.
1203 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1204 assume the base address of TARGET_MEM_REFs is in bounds.
1205
1206 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1207
1208 PR target/49099
1209 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1210 declaration in TARGET_SOLARIS.
1211
1212 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1213
1214 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1215 The instruction is then expanded explicitly.
1216 (supported_compare): Callable instruction.
1217 (compare): Likewise.
1218
1219 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR c++/49165
1222 * gimplify.c (shortcut_cond_r): Don't special case
1223 COND_EXPRs if they have void type on one of their arms.
1224
1225 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1226
1227 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1228 to reduce duplication, and to achieve a slightly more logical order
1229 of operations.
1230
1231 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1232
1233 PR tree-optimization/49161
1234 * tree-vrp.c (struct case_info): New type.
1235 (compare_case_labels): Sort case_info structs instead of
1236 trees, and not primarily by CASE_LABEL uids but by
1237 label_for_block indexes.
1238 (find_switch_asserts): Put case labels into struct case_info
1239 array instead of TREE_VEC, adjust sorting, compare label_for_block
1240 values instead of CASE_LABELs.
1241
1242 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1243
1244 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1245 ("orndi3_neon"): Likewise.
1246 ("bic<mode>3_neon"): Likewise.
1247
1248 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1249
1250 PR tree-optimization/49038
1251 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1252 Ensure at least one epilogue iteration if required by data
1253 accesses with gaps.
1254 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1255 to mark loops that require peeling for gaps.
1256 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1257 (vect_get_known_peeling_cost): Take peeling for gaps into
1258 account.
1259 (vect_transform_loop): Generate epilogue if required by data
1260 access with gaps.
1261 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1262 loop as requiring an epilogue if there are gaps in the end of
1263 the strided group.
1264
1265 2011-05-25 Ian Lance Taylor <iant@google.com>
1266
1267 * godump.c (go_format_type): Output the first field with a usable
1268 Go type, if any.
1269
1270 2011-05-25 Ian Lance Taylor <iant@google.com>
1271
1272 * godump.c (go_format_type): Check for invalid type names, pointer
1273 target types, and struct field types.
1274
1275 2011-05-25 Jason Merrill <jason@redhat.com>
1276
1277 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1278
1279 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1280
1281 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1282
1283 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1284
1285 * config/i386/i386.md (*movqi_extv_1)): Put back
1286 "register_operand" check in "type" calculation.
1287 (*movqi_extzv_2): Likewise.
1288
1289 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1290
1291 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1292
1293 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1294
1295 PR bootstrap/49160
1296 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1297 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1298 __divxc3, __divtc3): Wrap definitions in #ifndef.
1299
1300 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1301
1302 PR target/49142
1303 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1304 "register_operand" check and replace q_regs_operand with
1305 QIreg_operand in "type" calculation.
1306 (*movqi_extv_1): Likewise.
1307 (*movqi_extzv_2_rex64): Likewise.
1308 (*movqi_extzv_2): Likewise.
1309
1310 * config/i386/predicates.md (QIreg_operand): New.
1311
1312 2011-05-25 Richard Guenther <rguenther@suse.de>
1313
1314 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1315 type-based offset disambiguation, streamline MEM_REF and
1316 TARGET_MEM_REF handling.
1317
1318 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1319
1320 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1321 (bdesc_special_args): Add pause intrinsic.
1322
1323 * config/i386/i386.md (UNSPEC_PAUSE): New.
1324 (pause): Likewise.
1325 (*pause): Likewise.
1326 * config/i386/ia32intrin.h (__pause): Likewise.
1327
1328 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1329 pause intrinsic.
1330
1331 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1332
1333 PR tree-optimization/46728
1334 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1335 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1336
1337 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1338
1339 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1340 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1341 instead of TS_COMMON.
1342
1343 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1344
1345 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1346 LIBGCC2_GNU_PREFIX is defined.
1347 (__N): New macro.
1348 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1349 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1350 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1351 __clz_tab): Define using __N.
1352 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1353 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1354 * target.def (libfunc_gnu_prefix): New hook.
1355 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1356 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1357 * doc/tm.texi: Regenerate.
1358 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1359 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1360 account.
1361 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1362 (init_optabs): Likewise for the bswap libfuncs.
1363 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1364 and divide.
1365 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1366 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1367 * libgcc-std.ver: Remove.
1368 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1369 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1370 libgcc-std.ver.
1371 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1372 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1373 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1374 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1375 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1376 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1377 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1378 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1379 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1380 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1381
1382 2011-05-25 Jan Hubicka <jh@suse.cz>
1383
1384 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1385 (lto_output_tree): Use output_record_start.
1386 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1387 (lto_get_pickled_tree): Use input_record_start.
1388 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1389 (lto_value_range_error): New function.
1390 * lto-streamer.h (lto_value_range_error): Declare.
1391 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1392 (lto_output_enum, lto_input_enum): New macros.
1393
1394 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1395
1396 * common.opt (flag_stack_usage_info): New variable.
1397 (-Wstack-usage): New option.
1398 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1399 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1400 <OPT_fstack_usage>: Likewise.
1401 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1402 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1403 of flag_stack_usage.
1404 (emit_library_call_value_1): Likewise.
1405 * explow.c (allocate_dynamic_stack_space): Likewise.
1406 * function.c (instantiate_virtual_regs ): Likewise.
1407 (prepare_function_start): Likewise.
1408 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1409 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1410 * config/arm/arm.c (arm_expand_prologue): Likewise.
1411 (thumb1_expand_prologue): Likewise.
1412 * config/avr/avr.c (expand_prologue): Likewise.
1413 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1414 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1415 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1416 * config/mips/mips.c (mips_expand_prologue): Likewise.
1417 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1418 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1419 * config/s390/s390.c (s390_emit_prologue): Likewise.
1420 * config/sh/sh.c (sh_expand_prologue): Likewise.
1421 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1422 * config/spu/spu.c (spu_expand_prologue): Likewise.
1423
1424 2011-05-25 Richard Guenther <rguenther@suse.de>
1425
1426 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1427 (gimple_canonical_types_compatible_p): Likewise.
1428
1429 2011-05-25 Jan Hubicka <jh@suse.cz>
1430
1431 PR middle-end/49062
1432 * ipa.c (function_and_variable_visibility): Only add to same
1433 comdat group list if DECL_ONE_ONLY.
1434
1435 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1436
1437 PR rtl-optimization/49014
1438 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1439
1440 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1441
1442 PR target/49128
1443 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1444
1445 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1446
1447 PR rtl-optimization/48757
1448 * ira-build.c (loop_with_eh_edge_p): Rename to
1449 loop_with_complex_edge_p, check edges on complexity, make function
1450 conditional.
1451 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1452 conditional.
1453
1454 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1455
1456 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1457 force flag_ira_share_save_slots to 0.
1458
1459 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1460
1461 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1462 (vt_initialize): Set PROLOGUE_BB unconditionally.
1463 Add block comment about CFA_BASE_RTX machinery.
1464 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1465 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1466
1467 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1468
1469 PR objc/48187
1470 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1471 parsing of syntax error in ObjC instance variable lists. In
1472 particular, avoid an infinite loop if there is a stray ']'.
1473 Updated error message.
1474
1475 2011-05-24 Ian Lance Taylor <iant@google.com>
1476
1477 * godump.c (go_define): Don't accept a string immediately after
1478 another operand.
1479
1480 2011-05-24 Ian Lance Taylor <iant@google.com>
1481
1482 * godump.c (struct godump_container): Add invalid_hash field.
1483 (go_format_type): Return false if type is found in invalid_hash.
1484 (go_output_typedef): Add invalid type to invalid_hash.
1485 (go_finish): Create and delete invalid_hash.
1486
1487 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1488
1489 PR tree-optimization/46728
1490 * tree-ssa-math-opts.c (powi_table): New.
1491 (powi_lookup_cost): New.
1492 (powi_cost): New.
1493 (powi_as_mults_1): New.
1494 (powi_as_mults): New.
1495 (gimple_expand_builtin_powi): New.
1496 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1497 (gate_cse_sincos): Remove sincos/cexp restriction.
1498
1499 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500
1501 PR target/3746
1502 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1503 mips-tdump native.
1504 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1505 * mips-tdump.c: Likewise.
1506
1507 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1508
1509 PR target/49128
1510 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1511 add -mno-XXX. Handle FMA.
1512
1513 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1514
1515 PR rtl-optimization/48633
1516 * ira-build.c (loop_with_eh_edge_p): New function.
1517 (mark_loops_for_removal): Use it.
1518
1519 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1520
1521 PR rtl-optimization/48971
1522 * ira.c (setup_pressure_classes): Don't check register move cost
1523 for classes with one registers. Don't add pressure class if there
1524 is a pressure class with the same available hard registers.
1525 Check contains_reg_of_mode. Fix a typo in collecting
1526 temp_hard_regset. Ignore hard registers not belonging to a class.
1527
1528 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1529
1530 PR target/49133
1531 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1532
1533 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1534 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1535
1536 PR gcov-profile/48845
1537 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1538
1539 2011-05-24 Richard Guenther <rguenther@suse.de>
1540
1541 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1542 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1543 (gimple_types_compatible_p_1): Adjust.
1544 (iterative_hash_canonical_type): Do not bother about complete vs.
1545 incomplete types.
1546 (gimple_canonical_types_compatible_p): Likewise.
1547
1548 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1549
1550 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1551
1552 2011-05-24 Richard Guenther <rguenther@suse.de>
1553
1554 PR bootstrap/49078
1555 * gimple.c (gimple_register_canonical_type): Revert
1556 previous change.
1557 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1558 does not for a tree for the case where it matters. Cache
1559 pointer-type alias-sets.
1560
1561 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1562
1563 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1564 (OBJS): Remove options.o, opts-common.o and prefix.o.
1565 (OBJS-libcommon-target): New.
1566 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1567 (BACKEND): Include libcommon-target.a.
1568 (MOSTLYCLEANFILES): Include libcommon-target.a.
1569 (libcommon-target.a): New.
1570 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1571 prefix.o.
1572
1573 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1574
1575 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1576 parts of output shared with the driver.
1577 * optc-gen.awk: Don't generate parts of output not shared with the
1578 driver.
1579 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1580 * doc/options.texi (SourcerInclude): Mention options-save.c.
1581 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1582 (OBJS): Add options-save.o.
1583 (options-save.c, options-save.o): New.
1584 (options.o): Update dependencies.
1585 (gcc-options.o): Remove.
1586 (mostlyclean): Remove options-save.c.
1587
1588 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1589
1590 PR debug/49032
1591 * dbxout.c: Include cgraph.h.
1592 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1593 and without value expr, return NULL if no varpool node exists for
1594 it or if it is not needed.
1595 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1596
1597 PR c/49120
1598 * c-decl.c (start_decl): Convert expr to void_type_node.
1599
1600 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1601
1602 PR rtl-optimization/48826
1603 * emit-rtl.c (try_split): When splitting a call that is followed
1604 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1605
1606 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1607
1608 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1609 parameters passed in memory prefer using DECL_INCOMING_RTL over
1610 the pseudos it will be copied into.
1611
1612 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1613
1614 PR target/47315
1615 * config/i386/i386.c (ix86_option_override_internal): Save the
1616 initial options after checking vzeroupper.
1617
1618 2011-05-23 David Li <davidxl@google.com>
1619
1620 PR tree-optimization/48988
1621 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1622 Initialize has_valid_pred for each pred chain.
1623
1624 2011-05-23 Richard Guenther <rguenther@suse.de>
1625
1626 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1627 (iterative_hash_gimple_type): Always hash type names.
1628
1629 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1630
1631 * c-typeck.c (build_function_call_vec): Tweak call to
1632 check_function_arguments.
1633
1634 2011-05-23 Richard Guenther <rguenther@suse.de>
1635
1636 PR tree-optimization/49115
1637 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1638 is not necessarily carried out, do not claim it kills the ref.
1639 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1640
1641 2011-05-23 Richard Guenther <rguenther@suse.de>
1642
1643 PR middle-end/15419
1644 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1645 what pointer types we accept for folding.
1646
1647 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 * gthr-gnat.c: Remove.
1650 * gthr-gnat.h: Remove.
1651 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1652 * config/t-freebsd (LIB2ADDEH): Likewise.
1653 * config/t-linux (LIB2ADDEH): Likewise.
1654 * config/t-sol2 (LIB2ADDEH): Likewise.
1655 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1656 * configure.ac (target_thread_file): Remove gnat handling.
1657 * configure: Regenerate.
1658 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1659
1660 2011-05-23 Tristan Gingold <gingold@adacore.com>
1661 Eric Botcazou <ebotcazou@adacore.com>
1662
1663 * gcov.c (create_file_names): If no object directory is specified,
1664 keep the directory of the file.
1665
1666 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1667
1668 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1669 * configure: Regenerate.
1670
1671 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1672
1673 PR middle-end/48973
1674 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1675 failed and the comparison has a single bit signed type, use
1676 constm1_rtx instead of const1_rtx for true value.
1677 (do_store_flag): If ops->type is single bit signed type, disable
1678 signel bit test optimization and pass -1 instead of 1 as last
1679 parameter to emit_store_flag_force.
1680
1681 2011-05-23 Tom de Vries <tom@codesourcery.com>
1682
1683 PR target/45098
1684 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1685 function.
1686 (infer_loop_bounds_from_undefined): Use new function.
1687
1688 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1689
1690 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1691 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1692 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1693 and -O0 otherwise.
1694 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1695
1696 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1697
1698 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1699 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1700 returns true.
1701
1702 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1703
1704 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1705
1706 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1707
1708 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1709 UNSPEC_MOVE_PIC pattern.
1710
1711 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1712
1713 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1714 (sparc-*-rtems*): Likewise.
1715 (sparc64-*-elf*): Likewise.
1716 (sparc64-*-rtems*): Likewise.
1717 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1718 * config/sparc/t-crtin: New file.
1719 * config/sparc/t-sol2 (crti.o): Delete rule.
1720 (crtn.o): Likewise.
1721 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1722 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1723 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1724 (ENDFILE_SPEC): Add crtn.o.
1725
1726 2011-05-22 Tom de Vries <tom@codesourcery.com>
1727
1728 PR middle-end/48689
1729 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1730 CODE_CONTAINS_STRUCT (TS_COMMON).
1731
1732 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1733
1734 PR middle-end/49029
1735 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1736 only after deciding which mode to use.
1737
1738 2011-05-22 Tom de Vries <tom@codesourcery.com>
1739
1740 PR target/45098
1741 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1742 for call to get_shiftadd_cost.
1743
1744 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1745
1746 PR target/49104
1747 * config/i386/cpuid.h (bit_MMXEXT): New define.
1748
1749 2011-05-22 Nick Clifton <nickc@redhat.com>
1750
1751 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1752 initialisation of non-existant args[2] element. Use args[] array
1753 not arg[] array to pass arguments to build_function_type_list.
1754
1755 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1756
1757 PR tree-optimization/49087
1758 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1759
1760 2011-05-21 Jason Merrill <jason@redhat.com>
1761
1762 PR c++/49092
1763 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1764 static storage duration.
1765
1766 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1767
1768 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1769 frame pointer.
1770
1771 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1772
1773 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1774 false if there are call-saved registers here...
1775 (sparc_can_use_return_insn_p): ...but here instead.
1776 (save_or_restore_regs): Fix thinko.
1777 (sparc_expand_prologue): Use current_function_is_leaf.
1778 (sparc_frame_pointer_required): Likewise.
1779
1780 2011-05-21 Nick Clifton <nickc@redhat.com>
1781
1782 PR target/49098
1783 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1784
1785 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1786
1787 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1788 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1789
1790 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1791
1792 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1793 * optc-gen.awk: Move common code to opt-read.awk.
1794 * opth-gen.awk: Likewise.
1795 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1796
1797 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1798
1799 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1800
1801 2011-05-20 Tom de Vries <tom@codesourcery.com>
1802
1803 PR target/45098
1804 * tree-ssa-loop-ivopts.c: Include expmed.h.
1805 (get_shiftadd_cost): New function.
1806 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1807
1808 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1809
1810 PR bootstrap/49086
1811 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1812 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1813
1814 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1815
1816 * Makefile.in: Update comment referring to $(OBJS-common).
1817
1818 2011-05-20 Ian Lance Taylor <iant@google.com>
1819
1820 * godump.c (go_output_typedef): Put enum constants in the macro
1821 hash table to avoid duplicate Go const definitions.
1822
1823 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1824
1825 * Makefile.in (LIBDEPS): Add libcommon.a.
1826 (LIBS): Likewise.
1827 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1828 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1829 pretty-print.o and version.o.
1830 (OBJS-libcommon): New.
1831 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1832 (BACKEND): Add libcommon.a.
1833 (MOSTLYCLEANFILES): Likewise.
1834 (libcommon.a): New.
1835 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1836 (cpp$(exeext)): Likewise.
1837 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1838 pretty-print.o and input.o.
1839 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1840 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1841 (errors.o): Remove.
1842 (mips-tfile): Don't explicitly use version.o.
1843 (mips-tdump): Likewise.
1844 (gcov.o): Depend on $(DIAGNOSTIC_H).
1845 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1846 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1847 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1848 * gcov-dump.c: Include intl.h and diagnostic.h.
1849 (main): Initialize diagnostics.
1850 * gcov.c: Include diagnostic.h.
1851 (fnotice): Remove.
1852 (main): Initialize diagnostics.
1853 * lto-wrapper.c: Include diagnostic.h.
1854 (main): Initialize diagnostics.
1855
1856 2011-05-20 Michael Matz <matz@suse.de>
1857
1858 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1859
1860 2011-05-20 Michael Matz <matz@suse.de>
1861 Richard Guenther <rguenther@suse.de>
1862
1863 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1864 use lto_streamer_cache_append directly instead of returning a VEC.
1865 (preload_common_node): Remove.
1866 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1867 track seen nodes.
1868 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1869
1870 2011-05-20 Richard Guenther <rguenther@suse.de>
1871
1872 PR tree-optimization/49079
1873 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1874 MEM_REFs correctly for the trailing array access detection.
1875 Special case constants the same way as decls for overall size
1876 constraining.
1877
1878 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1879
1880 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1881 argument expansion.
1882
1883 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR tree-optimization/49073
1886 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1887 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1888 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1889
1890 2011-05-20 Richard Guenther <rguenther@suse.de>
1891
1892 PR middle-end/48849
1893 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1894 of pointer types the same way the middle-end does.
1895
1896 2011-05-20 Richard Guenther <rguenther@suse.de>
1897
1898 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1899 or pointer-to chains. Delay all fixup to uniquify_nodes.
1900
1901 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1902
1903 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1904 (fma4_fmaddsub): Likewise
1905
1906 2011-05-19 Jan Hubicka <jh@suse.cz>
1907
1908 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1909 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1910 (type_pair_cache): New static var.
1911 (lookup_type_pair): Use fixed sized custom hash; make inline.
1912 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1913 calls of lookup_type_pair.
1914 (print_gimple_types_stats): Remove cache stats.
1915 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1916 and gtc_ob.
1917
1918 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1919
1920 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1921 when TARGET_RDRND is active.
1922 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1923 Generate dummy SImode target register when target is NULL.
1924
1925 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1926
1927 * config/arm/arm-fpus.def: New.
1928 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1929 arm-fpus.def.
1930 * config/arm/arm-tables.opt: Regenerate.
1931 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1932 (arm_option_override): Don't decode FPU name to string here.
1933 * config/arm/arm.opt (mfpu=): Use Enum.
1934 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1935 Update dependencies.
1936
1937 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1938
1939 * collect2.c: Include diagnostic.h.
1940 (fatal_perror, fatal, error, fancy_abort): Remove.
1941 (main): Set progname. Call xmalloc_set_program_name and
1942 diagnostic_initialize.
1943 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1944 scan_libraries, resolve_lib_name): Call fatal_error instead of
1945 fatal and fatal_perror.
1946 * collect2.h (error, fatal, fatal_perror): Don't declare.
1947 * tlink.c: Include diagnostic-core.h.
1948 (recompile_files): Call fatal_error instead of fatal_perror.
1949 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1950 pretty-print.o and input.o.
1951 (collect2.o, tlink.o): Update dependencies.
1952
1953 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1954
1955 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1956
1957 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1958
1959 PR target/40483
1960 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1961 COMDAT group syntax, both SPARC and x86 variants.
1962 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1963 * configure: Regenerate.
1964 * config/sol2.h (TARGET_SOLARIS): Define.
1965 (PUSHSECTION_FORMAT): Remove.
1966 (SECTION_NAME_FORMAT): Define.
1967 * config/sol2.c: Include hashtab.h.
1968 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1969 expansion, using SECTION_NAME_FORMAT.
1970 (solaris_comdat_htab): New variable.
1971 (struct comdat_entry): Define.
1972 (comdat_hash): New function.
1973 (comdat_eq): New function.
1974 (solaris_elf_asm_comdat_section): New function.
1975 (solaris_define_comdat_signature): New function.
1976 (solaris_code_end): New function.
1977 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1978 (solaris_code_end): Declare.
1979 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1980 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1981 solaris_code_end.
1982 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1983 Remove ATTRIBUTE_UNUSED.
1984 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1985 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1986 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1987 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1988 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1989 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1990 (PUSHSECTION_FORMAT): Remove.
1991 (SECTION_NAME_FORMAT): Redefine.
1992
1993 2011-05-19 Kai Tietz <ktietz@redhat.com>
1994
1995 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1996 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1997 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1998
1999 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2000 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2001
2002 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2003
2004 2011-05-19 Richard Guenther <rguenther@suse.de>
2005
2006 PR middle-end/48985
2007 * tree-object-size.c (addr_object_size): If the pointed-to
2008 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2009
2010 2011-05-19 Richard Guenther <rguenther@suse.de>
2011
2012 * gimple.c (gimple_types_compatible_p_1): Compare names of
2013 the types themselves.
2014 (iterative_hash_gimple_type): And hash them that way.
2015 (gimple_register_type_1): If we register a main variant properly
2016 initialize the leader to ourselves.
2017
2018 2011-05-19 Tom de Vries <tom@codesourcery.com>
2019
2020 PR target/45098
2021 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2022 get_loop_invariant_expr_id.
2023 (get_loop_invariant_expr_id): Use get_expr_id.
2024 (parm_decl_cost): New function.
2025 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2026 Improve bound cost estimation. Use different inv_expr_id for elim and
2027 express cases.
2028
2029 2011-05-19 Tom de Vries <tom@codesourcery.com>
2030
2031 PR target/45098
2032 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2033 cost_base.cost == 0.
2034
2035 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2036
2037 PR target/49002
2038 * config/i386/sse.md
2039 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2040 load cast.
2041
2042 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2043
2044 PR tree-optimization/49039
2045 * tree-vrp.c (extract_range_from_binary_expr): For
2046 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2047 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2048
2049 2011-05-18 Tom de Vries <tom@codesourcery.com>
2050
2051 PR target/45098
2052 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2053
2054 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2055
2056 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2057 (*tls_global_dynamic_64): Ditto.
2058 (*tls_local_dynamic_base_32_gnu): Ditto.
2059 (*tls_local_dynamic_base_64): Ditto.
2060 (tls_initial_exec_64_sun): Ditto.
2061
2062 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2063
2064 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2065 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2066 bf592-none.
2067 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2068 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2069 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2070 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2071 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2072 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2073 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2074
2075 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2076
2077 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2078 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2079 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2080 target_thread_pointer, arm_structure_size_boundary, struct
2081 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2082 struct abi_name, arm_all_abis): Remove.
2083 (arm_option_override) Don't process most enumerated option values here.
2084 Don't process target_fpe_name here. Work with integer not string for
2085 structure size boundary; use separate diagnostics for each case.
2086 * config/arm/arm.h (enum float_abi_type, enum
2087 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2088 to arm-opts.h.
2089 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2090 arm_structure_size_boundary): Remove.
2091 * config/arm/arm.opt (mabi=): Use Enum and Init.
2092 (arm_abi_type): New Enum and EnumValue entries.
2093 (mfloat-abi=): Use Enum and Init.
2094 (float_abi_type): New Enum and EnumValue entries.
2095 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2096 (mfp16-format=): Use Enum and Init.
2097 (arm_fp16_format_type): New Enum and EnumValue entries.
2098 (mstructure-size-boundary=): Use UInteger and Init.
2099 (mtp=): Use Enum and Init.
2100 (arm_tp_type): New Enum and EnumValue entries.
2101
2102 2011-05-18 Richard Guenther <rguenther@suse.de>
2103
2104 PR tree-optimization/49018
2105 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2106 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2107 gimple_has_side_effects.
2108
2109 2011-05-18 Richard Guenther <rguenther@suse.de>
2110
2111 * gimple.c (gimple_register_type_1): New function, split out from ...
2112 (gimple_register_type): ... here. Avoid infinite recursion.
2113
2114 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2115
2116 PR tree-optimization/41881
2117 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2118 reduction_chains along with a macro for its access.
2119 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2120 (destroy_loop_vec_info): Free reduction chains.
2121 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2122 (vect_is_slp_reduction): New function.
2123 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2124 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2125 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2126 definition types for reduction chains.
2127 (vect_supported_load_permutation_p): Don't allow permutations for
2128 reduction chains.
2129 (vect_analyze_slp_instance): Support reduction chains.
2130 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2131 (vect_get_constant_vectors): Handle reduction chains.
2132 (vect_schedule_slp_instance): Mark the first statement of the
2133 reduction chain as reduction.
2134
2135 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2136
2137 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2138 names for group elements access.
2139 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2140 reduction chains as well. Remove data reference and interleaving
2141 related words from the fields names.
2142 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2143 elements access.
2144 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2145 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2146 vect_update_interleaving_chain, vect_same_range_drs,
2147 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2148 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2149 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2150 vect_analyze_group_access, vect_analyze_data_ref_access,
2151 vect_create_data_ref_ptr, vect_transform_strided_load,
2152 vect_record_strided_load_vectors): Likewise.
2153 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2154 vect_model_load_cost, vectorizable_store, vectorizable_load,
2155 vect_remove_stores, new_stmt_vec_info): Likewise.
2156 * tree-vect-slp.c (vect_build_slp_tree,
2157 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2158
2159 2011-05-18 Richard Guenther <rguenther@suse.de>
2160
2161 PR middle-end/48989
2162 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2163 operand verification.
2164 (verify_gimple_assign_binary): Likewise.
2165 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2166 to non-1-precision BOOLEAN_TYPEs.
2167
2168 2011-05-18 Tom de Vries <tom@codesourcery.com>
2169
2170 PR target/45098
2171 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2172
2173 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2174
2175 PR tree-optimization/49000
2176 * tree-ssa.c (execute_update_addresses_taken): Call
2177 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2178 be rewritten and decl has been marked for renaming, reset
2179 the debug stmt.
2180
2181 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2182
2183 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2184 enum_opts_set when testing if attributes have set -mfpmath=.
2185
2186 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2187
2188 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2189
2190 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2191
2192 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2193 info->entry with 0
2194 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2195 id.transform_lang_insert_block with NULL.
2196
2197 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2198
2199 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2200 (output_fp_compare): Change args 3 and 4 to bool.
2201 (ix86_expand_call): Change arg 6 to bool.
2202 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2203 (ix86_attr_length_vex_default): Change arg 3 to bool.
2204 * config/i386/i386.md: Update all uses.
2205 * config/i386/i386.c: Ditto.
2206 (ix86_flags_dependent): Change return type to bool.
2207
2208 2011-05-17 Richard Guenther <rguenther@suse.de>
2209
2210 * gimple.c (type_hash_pair_compare): Fix comparison.
2211
2212 2011-05-17 Richard Guenther <rguenther@suse.de>
2213
2214 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2215 case some more, fix final hash value of the non-singleton case.
2216
2217 2011-05-17 Richard Guenther <rguenther@suse.de>
2218
2219 PR bootstrap/49013
2220 Revert
2221 2011-05-16 Richard Guenther <rguenther@suse.de>
2222
2223 * gimple.c (gimple_types_compatible_p_1): Use names of the
2224 type itself, not its main variant.
2225 (iterative_hash_gimple_type): Likewise.
2226
2227 2011-05-17 Richard Guenther <rguenther@suse.de>
2228
2229 * gimple.c (gimple_register_canonical_type): Use the main-variant
2230 leader for computing the canonical type.
2231
2232 2011-05-17 Nick Clifton <nickc@redhat.com>
2233
2234 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2235 moves.
2236
2237 * config/rx/rx.md: Add peephole to remove redundant extensions
2238 after loads.
2239 (bitset_in_memory): Use rx_restricted_mem_operand.
2240 (bitinvert_in_memory): Likewise.
2241 (bitclr_in_memory): Likewise.
2242
2243 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2244 Nick Clifton <nickc@redhat.com>
2245
2246 * config/rx/rx.md: Add peepholes to match a register move followed
2247 by a comparison of the moved register. Replace these with an
2248 addition of zero that does both actions in one instruction.
2249
2250 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2251
2252 PR target/48986
2253 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2254 predicate to allow CONST_INT.
2255 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2256
2257 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2258
2259 * opts-common.c (opt_enum_arg_to_value): New.
2260 * opts.h (opt_enum_arg_to_value): Declare.
2261 * config/i386/i386.opt (fpmath): Remove.
2262 (mfpmath=): Use Enum, Init and Save.
2263 (fpmath_unit): New Enum and EnumValue entries.
2264 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2265 name for function fpmath state.
2266 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2267 * config/i386/i386.c: Include diagnostic.h.
2268 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2269 (ix86_target_string): Take enum fpmath_unit value instead of string.
2270 (ix86_debug_options): Update call to ix86_target_string.
2271 (ix86_option_override_internal): Don't process fpmath strings here.
2272 (x86_function_specific_save, ix86_function_specific_restore):
2273 Don't handle fpmath state specially.
2274 (ix86_function_specific_print): Pass fpmath state to
2275 ix86_target_string instead of printing in this function.
2276 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2277 Handle enum attributes.
2278 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2279 (ix86_valid_target_attribute_tree): Update option_strings
2280 handling. Handle fpmath as enum option.
2281 (ix86_can_inline_p): Update field names for function fpmath state.
2282 (ix86_expand_builtin): Update call to ix86_target_string.
2283 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2284 (ix86_fpmath): Remove.
2285 * config/i386/t-i386 (i386.o): Update dependencies.
2286
2287 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2288
2289 PR preprocessor/48677
2290 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2291 from decoded_options[0], not from itself.
2292
2293 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2294
2295 * config/i386/constraints.md (z): New constraint.
2296 * config/i386/i386.c (c): New mode attribute.
2297 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2298 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2299 constraint for operand 0.
2300 (*call_vzeroupper): Ditto.
2301 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2302 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2303 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2304 Use "lzm" constraint for operand 0.
2305 (*call_pop_vzeroupper): Ditto.
2306 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2307 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2308 constraint for operand 0.
2309 (*sibcall_vzeroupper): Ditto.
2310 (*sibcall_rex64_ms_sysv): Ditto.
2311 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2312 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2313 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2314 (*sibcall_pop_vzeroupper): Ditto.
2315 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2316 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2317 mode iterator. Use "<c>zm" constraint for operand 1.
2318 (*call_value_vzeroupper): Ditto.
2319 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2320 for operand 1.
2321 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2322 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2323 *call_value_pop_1. Use "lzm" constraint for operand 1.
2324 (*call_value_pop_vzeroupper): Ditto.
2325 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2326 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2327 mode iterator. Use "Uz" constraint for operand 1.
2328 (*sibcall_value_vzeroupper): Ditto.
2329 (*sibcall_value_rex64_ms_sysv): Ditto.
2330 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2331 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2332 constraint for operand 1.
2333 (*sibcall_value_pop_vzeroupper): Ditto.
2334 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2335 and "z" constraint for operand 2.
2336 (*tls_global_dynamic_32_gnu): Ditto.
2337 (*tls_local_dynamic_base_32_gnu): Ditto.
2338 (*tls_local_dynamic_base_64): Ditto.
2339 (*tls_local_dynamic_32_once): Ditto.
2340 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2341 Update all callers.
2342 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2343
2344 2011-05-16 Richard Guenther <rguenther@suse.de>
2345
2346 * gimple.c (gimple_types_compatible_p_1): Use names of the
2347 type itself, not its main variant.
2348 (iterative_hash_gimple_type): Likewise.
2349
2350 2011-05-16 Richard Guenther <rguenther@suse.de>
2351
2352 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2353 always visit pointer target and function result and argument types.
2354
2355 2011-05-16 Jason Merrill <jason@redhat.com>
2356
2357 PR c++/48999
2358 * tree-inline.c (copy_statement_list): Put back recursion.
2359
2360 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2361
2362 PR target/27663
2363 PR target/41076
2364 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2365 * config/avr/avr.md ("*ior<mode>qi.byte0",
2366 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2367
2368 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2369
2370 PR target/45099
2371 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2372 register is needed for a function argument.
2373
2374 2011-05-16 Richard Guenther <rguenther@suse.de>
2375
2376 * gimple.c (struct type_hash_pair): New type.
2377 (type_hash_pair_compare): New function.
2378 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2379
2380 2011-05-16 Revital Eres <revital.eres@linaro.org>
2381
2382 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2383
2384 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2385
2386 * config/i386/i386.md (floating point move splitters): Fix
2387 usage of standard_80387_constant_p.
2388 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2389
2390 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2391
2392 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2393
2394 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2395
2396 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2397 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2398 (tree_ssa_lim_finalize): Likewise.
2399
2400 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2401
2402 * config/i386/constraint.md (Yd, Yx): New register constraints.
2403 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2404 Yd conditional register constraint.
2405 (*movtf_internal): Use standard_sse_constant_opcode.
2406 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2407 Yx conditional register constraint.
2408 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2409 Yd conditional register constraint. Use standard_sse_constant_p to
2410 check for valid SSE constants and call standard_sse_constant_opcode to
2411 output SSE insn.
2412 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2413 constants and call standard_sse_constant_opcode to output SSE insn.
2414 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2415 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2416 optimize_size is set.
2417 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2418
2419 2011-05-14 Tobias Burnus <burnus@net-b.de>
2420
2421 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2422
2423 2011-05-13 Martin Jambor <mjambor@suse.cz>
2424
2425 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2426 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2427 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2428 (evaluate_conditions_for_ipcp_clone): Removed.
2429 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2430 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2431 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2432
2433 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2434
2435 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2436 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2437 lieu of MAY_HAVE_DEBUG_STMTS.
2438 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2439 debug statements if !MAY_HAVE_DEBUG_STMTS.
2440
2441 2011-05-13 Martin Thuresson <martint@google.com>
2442
2443 PR gcov-profile/47793
2444 * libgcov.c (gcov_exit): Support relative profile paths.
2445 * doc/invoke.texi (-fprofile-dir): Update for above change.
2446
2447 2011-05-13 Richard Guenther <rguenther@suse.de>
2448
2449 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2450 type-pair caching, do not compare hashes.
2451
2452 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2453
2454 PR middle-end/48965
2455 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2456 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2457
2458 2011-05-13 Kai Tietz <ktietz@redhat.com>
2459
2460 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2461 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2462 compatible type for TRUTH_NOT_EXPR.
2463
2464 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2467 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2468 can_create_pseudo_p ().
2469
2470 2011-05-13 Richard Guenther <rguenther@suse.de>
2471
2472 PR lto/48978
2473 * gimple.c (iterative_hash_gimple_type): Revert change in
2474 pointer target and function result and argument hashing.
2475
2476 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2477
2478 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2479 (*movxf_internal_nointeger): Ditto.
2480 (*movdf_internal_rex64): Ditto.
2481 (*movdf_internal): Ditto.
2482 (*movdf_internal_nointeger): Ditto.
2483 (*movsf_internal): Ditto.
2484 (sincos splitters): Use can_create_pseudo ().
2485
2486 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2487
2488 * config/i386/i386-opts.h: New.
2489 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2490 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2491 ix86_section_threshold): Remove.
2492 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2493 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2494 OPT_mbranch_cost_.
2495 (ix86_option_override_internal): Don't decode strings for options
2496 other than -march=, -mtune= and -mfpmath=. Don't allow for
2497 __attribute__ uses in remaining diagnostics for options with
2498 string arguments. Don't check for integer arguments being negative.
2499 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2500 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2501 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2502 ix86_branch_cost, ix86_section_threshold): Remove.
2503 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2504 HeaderInclude.
2505 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2506 but not Var.
2507 (masm=): Use Enum and Init.
2508 (asm_dialect): New Enum and EnumValue entries.
2509 (mbranch-cost=): Use UInteger.
2510 (mlarge-data-threshold=): Use UInteger and Init.
2511 (mcmodel=): Use Enum and Init.
2512 (cmodel): New Enum and EnumValue entries.
2513 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2514 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2515 mregparm=): Use UInteger.
2516 (mstringop-strategy=): Use Enum and Init.
2517 (stringop_alg): New Enum and EnumValue entries.
2518 (mtls-dialect=): Use Enum and Init.
2519 (tls_dialect): New Enum and EnumValue entries.
2520 (mabi=): Use Enum and Init.
2521 (calling_abi): New Enum and EnumValue entries.
2522 (mveclibabi=): Use Enum and Init.
2523 (ix86_veclibabi): New Enum and EnumValue entries.
2524
2525 2011-05-13 Nick Clifton <nickc@redhat.com>
2526
2527 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2528 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2529
2530 2011-05-13 Kai Tietz <ktietz@redhat.com>
2531
2532 PR middle-end/48984
2533 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2534 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2535 (gimple_boolify): Check for cast for boolean_type_node instead for
2536 BOOLEAN_TYPE.
2537
2538 2011-05-13 Richard Guenther <rguenther@suse.de>
2539
2540 PR tree-optimization/48172
2541 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2542 multiplying by number of iterations for equal step.
2543 (vect_create_cond_for_alias_checks): Likewise.
2544
2545 2011-05-13 Andreas Schwab <schwab@redhat.com>
2546
2547 * configure.ac: Use AS_HELP_STRING throughout.
2548 * configure: Regenerate.
2549
2550 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2551
2552 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2553 (ix86_emit_restore_regs_using_mov): Likewise.
2554 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2555
2556 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2557
2558 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2559 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2560 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2561 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2562 RTX_OK_FOR_OLO10_P): ...here.
2563 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2564 SYMBOLIC_CONST.
2565
2566 2011-05-12 Kai Tietz <ktietz@redhat.com>
2567
2568 * gimplify.c (gimple_boolify): Re-boolify expression
2569 arguments even if expression type is of kind BOOLEAN_TYPE.
2570 (gimplify_boolean_expr): Removed.
2571 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2572 and XOR. Additional take care that we keep expression's type.
2573 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2574 of TRUTH_AND|OR|XOR_EXPR.
2575
2576 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2577
2578 PR tree-optimization/48975
2579 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2580 on all bbs here and free and clear ifc_bbs at the end.
2581
2582 2011-05-12 Richard Guenther <rguenther@suse.de>
2583
2584 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2585 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2586 until after simple checks.
2587 (gimple_types_compatible_p): Likewise.
2588 (iterative_hash_gimple_type): Always hash pointer targets
2589 and function return and argument types.
2590 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2591 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2592 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2593 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2594 completely in the simple compare section.
2595 (gimple_register_canonical_type): Query the cache again after
2596 registering.
2597
2598 2011-05-12 Richard Guenther <rguenther@suse.de>
2599
2600 PR tree-optimization/48172
2601 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2602 the number of iterations from the segment size calculation.
2603 (vect_create_cond_for_alias_checks): Adjust.
2604
2605 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2606
2607 PR debug/48967
2608 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2609 if validate_subreg fails.
2610
2611 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2612
2613 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2614 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2615 early.
2616
2617 2011-05-12 DJ Delorie <dj@redhat.com>
2618
2619 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2620 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2621 created builtin into rx_builtins array.
2622 (rx_builtin_decl): New function.
2623 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2624
2625 2011-05-12 DJ Delorie <dj@redhat.com>
2626 Nick Clifton <nickc@redhat.com>
2627
2628 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2629 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2630 (rx_is_legitimate_address): Add pre-decrement and post-increment
2631 addressing in HImode and QImode. Fix test for out of range
2632 REG+INT addressing.
2633 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2634 (rx_align_for_label): Test label before extracting its usage count.
2635 (rx_adjust_insn_lengths): Fix selection of insn codes.
2636 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2637
2638 2011-05-11 Jason Merrill <jason@redhat.com>
2639
2640 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2641
2642 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2643
2644 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2645 reindent the subsequent block.
2646
2647 2011-05-11 Satoru Takabayashi <satorux@google.com>
2648 Paul Pluzhnikov <ppluzhnikov@google.com>
2649
2650 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2651 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2652 * config.in: Add LINKER_HASH_STYLE.
2653 * configure.ac: Add --with-linker-hash-style.
2654 * configure: Regenerate.
2655
2656 2011-05-11 Richard Guenther <rguenther@suse.de>
2657
2658 PR middle-end/48964
2659 * gimple.c (iterative_hash_canonical_type): Fix typo.
2660
2661 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2662
2663 * config/i386/i386.c (legitimize_tls_address)
2664 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2665 expanders directly for TARGET_GNU2_TLS. Determine pic and
2666 __tls_get_addr symbol reference here. Update call to
2667 gen_tls_global_dynamic_{32,64} for added arguments.
2668 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2669 expanders directly for TARGET_GNU2_TLS. Determine
2670 __tls_get_addr symbol reference here. Update call to
2671 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2672 unique UNSPEC REG_EQUIV to libcall block.
2673 (ix86_tls_get_addr): Declare static.
2674 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2675 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2676 Do not determine pic and __tls_get_addr symbol reference here. Do not
2677 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2678 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2679 (tls_global_dynamic_64): Add operand 2. Do not determine
2680 __tls_get_addr symbol reference here. Do not call
2681 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2682 (tls_local_dynamic_base64): Ditto for operand 1.
2683
2684 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2685
2686 * function.c (expand_function_start): Initialize stack_check_probe_note
2687 only if the generic stack checking mechanism is used.
2688
2689 2011-05-11 Richard Guenther <rguenther@suse.de>
2690
2691 PR tree-optimization/15256
2692 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2693 (A & B) | C, combine (A op CST1) op CST2.
2694 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2695 visit assigns that have uses.
2696
2697 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2698
2699 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2700 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2701 (unpack_ts_type_common_value_fields): ...this. Update comment.
2702 (unpack_value_fields): Adjust for renaming.
2703 (lto_input_ts_type_tree_pointers): Split into...
2704 (lto_input_ts_type_common_tree_pointer): ...this and...
2705 (lto_input_ts_type_non_common_tree_pointers): ...this.
2706 (lto_input_tree_pointers): Adjust for above split.
2707 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2708 (pack_ts_type_common_value_fields): ...this. Update comment.
2709 (lto_output_ts_type_tree_pointers): Split into...
2710 (lto_output_ts_type_common_tree_pointers): ...this and...
2711 (lto_output_ts_type_non_common_tree_pointers): ...this.
2712 (lto_output_tree_pointers): Adjust for above split.
2713 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2714 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2715 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2716 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2717 Define.
2718 (struct tree_type): Split into...
2719 (struct tree_type_common: ...this and...
2720 (struct tree_type_with_lang_specific): ...this and...
2721 (struct tree_type_non_common): ...this. Adjust accessor macros
2722 accordingly.
2723 (TYPE_VALUES_RAW): Define.
2724 (union tree_node): Update for above changes.
2725 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2726 TS_TYPE_NON_COMMON.
2727 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2728 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2729 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2730 * treestructu.def (TS_TYPE): Remove.
2731 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2732 Define.
2733
2734 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2735
2736 PR debug/48159
2737 * tree-ssa.c (reset_debug_uses): New function.
2738 * tree-flow.h (reset_debug_uses): New prototype.
2739 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2740 * tree-loop-distribution.c (generate_loops_for_partition): Call
2741 reset_debug_uses on the stmts that will be removed. Keep around
2742 all debug stmts, don't count them as bits in partition bitmap.
2743 (generate_builtin): Don't count debug stmts or labels as bits in
2744 partition bitmap.
2745
2746 2011-05-11 Richard Guenther <rguenther@suse.de>
2747
2748 * gimple.c (gimple_type_hash_1): Merge with ...
2749 (gimple_type_hash): ... this.
2750 (gtc_visit): Remove mode parameter and simplify accordingly.
2751 (gimple_types_compatible_p_1): Likewise.
2752 (gimple_types_compatible_p): Likewise.
2753 (iterative_hash_gimple_type): Likewise.
2754 (visit): Likewise.
2755 (gimple_type_eq): Adjust.
2756
2757 2011-05-11 Revital Eres <revital.eres@linaro.org>
2758
2759 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2760 enters the branch create an anti edge in the opposite direction
2761 to prevent the creation of reg-moves.
2762 * modulo-sched.c: Adjust comment to reflect the fact we are
2763 scheduling closing branch.
2764 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2765 (stage_count): New field in struct partial_schedule.
2766 (calculate_stage_count): New function.
2767 (normalize_sched_times): Rename to reset_sched_times and handle
2768 incrementing the sched time of the nodes by a constant value
2769 passed as parameter.
2770 (duplicate_insns_of_cycles): Skip closing branch.
2771 (sms_schedule_by_order): Schedule closing branch.
2772 (ps_insn_find_column): Handle closing branch.
2773 (sms_schedule): Call reset_sched_times and adjust the code to
2774 support scheduling of the closing branch.
2775 (ps_insert_empty_row): Update calls to normalize_sched_times
2776 and rotate_partial_schedule functions.
2777
2778 2011-05-11 Richard Guenther <rguenther@suse.de>
2779
2780 PR middle-end/48953
2781 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2782
2783 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2784
2785 * opts.c (finish_options): Move warning settings from process_options.
2786 * toplev.c (process_options): Move warning settings to finish_options.
2787
2788 2011-05-11 Richard Guenther <rguenther@suse.de>
2789
2790 PR tree-optimization/18041
2791 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2792 (simplify_bitwise_binary): ... this. Handle operand conversions
2793 by applying them to the result instead.
2794 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2795
2796 2011-05-11 Richard Guenther <rguenther@suse.de>
2797
2798 * gimple.c (gimple_canonical_types_compatible_p): Split out
2799 from gimple_types_compatible_p and friends. Do not recurse
2800 to pointed-to types.
2801 (gimple_canonical_type_eq): Use it.
2802 (iterative_hash_canonical_type): Split out from
2803 iterative_hash_gimple_type and friends. Do not recurse
2804 to pointed-to types.
2805 (gimple_canonical_type_hash): Use it, allocate the hash here.
2806
2807 2011-05-11 Revital Eres <revital.eres@linaro.org>
2808
2809 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2810 recognizing doloop.
2811
2812 2011-05-11 Revital Eres <revital.eres@linaro.org>
2813
2814 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2815 instead of PREV_INSN.
2816
2817 2011-05-11 Revital Eres <revital.eres@linaro.org>
2818
2819 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2820 * loop-doloop.c (doloop_condition_get): Likewise.
2821 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2822 (doloop_end): New.
2823 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2824
2825 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2826
2827 * tree.def (CASE_LABEL_EXPR): Add an operand.
2828 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2829
2830 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2831
2832 * c-decl.c (c_override_global_bindings_to_false): Remove.
2833 (global_bindings_p): Don't check
2834 c_override_global_bindings_to_false.
2835 * c-tree.h (c_override_global_bindings_to_false): Remove.
2836 * c-typeck.c (composite_type): Don't set
2837 c_override_global_bindings_to_false.
2838
2839 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2840
2841 PR target/48857, 48495
2842 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2843 (VSX_MODE): Ditto.
2844 (VSX_MOVE_MODE): Ditto.
2845 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2846 VSX vector types. Add V2DImode.
2847 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2848 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2849 (MODES_TIEABLE_P): Ditto.
2850
2851 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2852 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2853 VSX_VECTOR_MODE.
2854 (init_cumulative_args): Ditto.
2855 (rs6000_function_arg_boundary): Ditto.
2856 (rs6000_function_arg_advance_1): Ditto.
2857 (rs6000_function_arg): Ditto.
2858 (rs6000_function_ok_for_sibcall): Ditto.
2859 (emit_frame_save): Ditto.
2860 (rs6000_function_value): Ditto.
2861 (rs6000_libcall_value): Ditto.
2862
2863 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2864
2865 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2866 i386/darwin-lib.h to $libgcc_tm_file.
2867 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2868
2869 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2870
2871 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2872
2873 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2874
2875 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2876 * config/rs6000/rs6000-tables.opt: New file (generated).
2877 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2878 rs6000/rs6000-tables.opt to extra_options.
2879 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2880 * config/rs6000/rs6000.c (rs6000_select): Remove.
2881 (processor_target_table): Move contents to rs6000-cpus.def.
2882 (darwin_rs6000_override_options): Check
2883 global_options_set.x_rs6000_cpu_index instead of
2884 rs6000_select[1].string.
2885 (rs6000_option_override_internal): Likewise.
2886 (rs6000_handle_option): Don't assert that global structures are in
2887 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2888 (rs6000_default_cpu): New variable.
2889 (rs6000_file_start): Set it instead of local default_cpu. Check
2890 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2891 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2892 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2893 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2894 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2895 rs6000_select): Remove.
2896 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2897 Remove.
2898 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2899 * config/rs6000/t-rs6000
2900 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2901 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2902 global_options_set.x_rs6000_cpu_index instead of
2903 rs6000_select[1].string.
2904 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2905 global_options_set.x_rs6000_cpu_index instead of
2906 rs6000_select[1].string.
2907
2908 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2909
2910 * config.gcc (libgcc_tm_file): Define instead of including files
2911 from ../../libgcc/config/ in tm_file.
2912 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2913 * configure: Regenerate.
2914 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2915 libgcc_tm.h, cs-libgcc_tm.h): New.
2916 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2917 (clean): Remove libgcc_tm.h.
2918 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2919 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2920 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2921
2922 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2923
2924 PR target/48896
2925 * config/avr/avr.c (avr_ret_register): Return unsigned int
2926 instead of int.
2927 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2928 it to avr_libcall_value.
2929 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2930 expand_expr.
2931 (avr_expand_binop_builtin): Ditto.
2932 (avr_expand_unop_builtin): Ditto.
2933
2934 2011-05-10 DJ Delorie <dj@redhat.com>
2935
2936 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2937 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2938 * config/rx/rx.c (rx_align_for_label): Add label and
2939 uses_threshold parameters. Do not align when the label is not
2940 used enough.
2941 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2942
2943 2011-05-10 Richard Guenther <rguenther@suse.de>
2944
2945 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2946 a series of conversions and apply foldings similar to what
2947 fold-const does.
2948 (tree_ssa_forward_propagate_single_use_vars): Call it.
2949
2950 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2951
2952 PR tree-optimization/48611
2953 PR tree-optimization/48794
2954 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2955 referenced from RESX or EH_DISPATCH arguments.
2956
2957 PR debug/48928
2958 * dfp.c (decimal_to_decnumber): Handle conversion from
2959 dconst{1,2,m1,half}.
2960
2961 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2962
2963 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2964 for !flag_prefer_avx128.
2965 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2966
2967 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2968
2969 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2970 (fold_ternary_loc): Use expr_location_or.
2971
2972 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2973
2974 PR debug/48853
2975 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2976 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2977 Pmode and mem_mode is not VOIDmode.
2978
2979 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2980
2981 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2982 TYPE_QUAL_RESTRICT): Convert to enum.
2983
2984 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2985
2986 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2987 (const_pow2_1_to_8_operand): Ditto.
2988 (const_pow2_1_to_128_operand): Ditto.
2989 (const_pow2_1_to_32768_operand): Ditto.
2990 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2991 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2992 in insn constraint to check integer value of operand 3.
2993 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2994
2995 (PINSR_MODE): New mode iterator.
2996 (sse2p4_1): New mode attribute.
2997 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2998 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2999 iterator. Use const_int_operand instead of
3000 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3001 exact_log2 in insn constraint to check integer value of operand 3.
3002
3003 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3004
3005 * config/i386/sse.md (blendbits): Remove mode attribute.
3006 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3007 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3008 Check integer value of operand 3 in insn constraint.
3009
3010 2011-05-09 Richard Guenther <rguenther@suse.de>
3011
3012 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3013 for diagnostics.
3014 (lto_symtab_merge): Likewise. Do not register types here.
3015 (lto_symtab_merge_decls_2): Likewise.
3016 (lto_symtab_merge_decls_1): Likewise.
3017 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3018 * gimple.c (enum gtc_mode): Declare.
3019 (gimple_types_compatible_p): Make static.
3020
3021 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3022
3023 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3024 temporary register to match Pmode.
3025
3026 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3027
3028 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3029 and *vec_concatv4si_1_avx.
3030
3031 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3032
3033 PR rtl-optimization/48927
3034 * ira-conflicts.c (commutative_constraint_p): Use
3035 recog_data.alternative_enabled_p to disable alternatives where
3036 "enabled" attribute is false.
3037 (get_dup_num): Ditto.
3038 * ira-lives.c (single_reg_class): Ditto.
3039 (ira_implicitly_set_insn_hard_regs): Ditto.
3040
3041 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3042
3043 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3044 (dataflow_set_preserve_mem_locs): Likewise.
3045
3046 2011-05-09 Philipp Thomas <pth@suse.de>
3047
3048 * config/mep/mep.c (mep_validate_vliw): Syntax description
3049 should not be translated.
3050
3051 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3052
3053 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3054 * config/mips/mips-tables.opt: New file (generated).
3055 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3056 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3057 MIPS_ARCH_OPTION_NATIVE): Define.
3058 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3059 mips-cpus.def.
3060 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3061 mips_parse_cpu): Remove.
3062 (mips_cpu_info_from_opt, mips_default_arch): New.
3063 (mips_handle_option): Don't assert that global structures are in
3064 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3065 (mips_option_override): Use new variables and functions to set
3066 state of these options. Use strcmp to check for individual CPU names.
3067 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3068 definition.
3069 * config/mips/mips.opt (march=): Use ToLower and Enum.
3070 (mips): Use ToLower, Enum and Var.
3071 (mtune=): Use ToLower and Enum.
3072 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3073
3074 2011-05-08 Jan Hubicka <jh@suse.cz>
3075
3076 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3077 Arrange type pairs to be UID ordered.
3078 (gimple_lookup_type_leader): Make inline.
3079
3080 2011-05-09 Nick Clifton <nickc@redhat.com>
3081
3082 PR target/48899
3083 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3084 PROCESSOR_DEFAULT.
3085
3086 PR target/48897
3087 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3088 variable 's'.
3089
3090 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3091
3092 * combine.c (simplify_comparison): Abstract out parts into...
3093 (simplify_compare_const): ... new function.
3094 (try_combine): Generalize parallel arithmetic/compare combining
3095 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3096
3097 2011-05-08 Jan Hubicka <jh@suse.cz>
3098
3099 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3100 (cgraph_create_virtual_clone): Call hooks once virtual clone
3101 is finished.
3102 * cgraph.h (cgraph_clone_node): Update prototype.
3103 * ipa-cp.c (ipcp_estimate_growth): Use
3104 estimate_ipcp_clone_size_and_time.
3105 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3106 * lto-cgraph.c (input_node): Update.
3107 * ipa-inline.c (recursive_inlining): Update.
3108 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3109 (evaluate_conditions_for_known_args): Break out from ...
3110 (evaluate_conditions_for_edge): ... here.
3111 (evaluate_conditions_for_ipcp_clone): New function.
3112 (inline_node_duplication_hook): Update clone summary based
3113 on parameter map.
3114 (estimate_callee_size_and_time): Rename to ...
3115 (estimate_node_size_and_time): take NODE instead of EDGE;
3116 take POSSIBLE_TRUTHS as argument.
3117 (estimate_callee_size_and_time): Update.
3118 (estimate_ipcp_clone_size_and_time): New function.
3119 (do_estimate_edge_time): Update.
3120
3121 2011-05-08 Richard Guenther <rguenther@suse.de>
3122
3123 PR middle-end/48908
3124 PR middle-end/48905
3125 * expmed.c (expand_shift_1): Compute adjusted constant shift
3126 amount manually.
3127
3128 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3129
3130 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3131
3132 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3133
3134 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3135
3136 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3137
3138 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3139
3140 2011-05-07 Jan Hubicka <jh@suse.cz>
3141
3142 * ipa-inline-transform.c (inline_call): Account when program size
3143 decreases.
3144 * ipa-inline.c (relative_time_benefit): New function.
3145 (edge_badness): Reorganize to be power 2 based; fix thinko when
3146 computing badness for negative growth; update comments to match
3147 reality; better dumps.
3148
3149 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3150
3151 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3152 type to bool and adjust comment.
3153 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3154 (fold_mathfn_compare): Remove calls to global_bindings_p.
3155 (fold_inf_compare): Likewise.
3156 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3157 * c-tree.h (global_bindings_p): Adjust prototype.
3158 * c-decl.c (global_bindings_p): Return bool and simplify.
3159
3160 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3161
3162 PR tree-optimization/48837
3163 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3164 when accumulator transformation is performed.
3165
3166 2011-05-06 Jan Hubicka <jh@suse.cz>
3167
3168 * i386.h (ix86_tune_indices): Add
3169 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3170 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3171 * i386.c (initial_ix86_tune_features): Add
3172 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3173 (software_prefetching_beneficial_p): Remove predicate.
3174 (ix86_option_override_internal): Use new macro.
3175
3176 2011-05-06 Jan Hubicka <jh@suse.cz>
3177
3178 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3179
3180 2011-05-06 Jan Hubicka <jh@suse.cz>
3181
3182 * cgraph.c (cgraph_add_thunk): Create real function node instead
3183 of alias node; finalize it and mark needed/reachale; arrange visibility
3184 to be right and add it into the corresponding same comdat group list.
3185 (dump_cgraph_node): Dump thunks.
3186 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3187 cgraph_function_with_gimple_body_p,
3188 cgraph_first_function_with_gimple_body,
3189 cgraph_next_function_with_gimple_body): New functions.
3190 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3191 New macros.
3192 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3193 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3194 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3195 devirtualization when optimizing.
3196 (verify_cgraph_node): Verify thunks.
3197 (cgraph_analyze_function): Analyze thunks.
3198 (cgraph_mark_functions_to_output): Output thunks only in combination
3199 with function they are assigned to.
3200 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3201 alias into normal node.
3202 (assemble_thunks): New functoin.
3203 (cgraph_expand_function): Use it.
3204 * lto-cgraph.c (lto_output_node): Stream thunks.
3205 (input_overwrite_node): Stream in thunks.
3206 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3207 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3208 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3209 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3210 (inline_analyze_function): Do not care about thunk jump functions.
3211 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3212 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3213 cgraph_function_with_gimple_body_p.
3214 * passes.c (do_per_function_toporder): Use
3215 cgraph_function_with_gimple_body_p.
3216 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3217 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3218 (function_called_by_processed_nodes_p): Likewise.
3219
3220 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3221
3222 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3223 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3224 entries.
3225 (mabi=): Replace with separate entries for mabi=altivec,
3226 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3227 mabi=ieeelongdouble and mabi=ibmlongdouble.
3228 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3229 check for -mabi=spe without SPE ABI support here.
3230 (rs6000_handle_option): Replace OPT_mabi_ handling with
3231 OPT_mabi_altivec and OPT_mabi_spe handling.
3232
3233 2011-05-06 Cary Coutant <ccoutant@google.com>
3234
3235 * dwarf2out.c (contains_subprogram_definition): New function.
3236 (should_move_die_to_comdat): Call it.
3237
3238 2011-05-06 Jeff Law <law@redhat.com>
3239
3240 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3241 remove_ctrl_stmt_and_useless_edges.
3242 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3243 (fixup_template_block, thread_single_edge): Likewise.
3244 (mark_threaded_blocks): Use THREAD_TARGET.
3245
3246 2011-05-06 Alan Modra <amodra@gmail.com>
3247
3248 PR target/48900
3249 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3250 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3251
3252 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3253
3254 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3255 constraint modifier to "r".
3256
3257 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3258
3259 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3260 fall through for OPT_mcmodel_.
3261
3262 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3263
3264 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3265 instruction sizes.
3266 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3267
3268 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3269
3270 PR target/47930
3271 * config/arm/arm.opt (marm): Document it.
3272 (mthumb): Reject negative variant.
3273
3274 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3275
3276 PR target/48898
3277 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3278 Fix typo in "ccvt" variable name.
3279
3280 2011-05-06 Tristan Gingold <gingold@adacore.com>
3281
3282 PR target/48895
3283 * config/vms/vms-ar.c (main): Remove cwd variable.
3284
3285 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3286
3287 PR debug/48902
3288 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3289
3290 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3291
3292 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3293 * gimplify.c (gimplify_switch_expr): Likewise.
3294 * omp-low.c (expand_omp_sections): Likewise.
3295 * tree-eh.c (lower_try_finally_switch): Likewise.
3296 (lower_eh_dispatch): Likewise.
3297 * tree.h (build_case_label): Declare.
3298 * tree.c (build_case_label): Define.
3299
3300 2011-05-05 Jason Merrill <jason@redhat.com>
3301
3302 PR c++/40975
3303 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3304 (copy_statement_list): Don't recurse.
3305 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3306 STATEMENT_LIST.
3307
3308 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3309
3310 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3311 through from -mfpu= handling.
3312 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3313
3314 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3315
3316 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3317 POST_MODIFY.
3318
3319 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3320
3321 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3322 for 11.31.
3323 (hppa[12]*-*-hpux11*): Ditto.
3324 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3325 * config/ia64/hpux-unix2003.h: New.
3326 * config/pa/pa-hpux1131.opt: New.
3327 * config/pa/pa-hpux1131.h: New.
3328 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3329 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3330 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3331
3332 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3333
3334 PR debug/48853
3335 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3336 instead of mode as 3rd argument to recursive call.
3337 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3338 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3339 VOIDmode.
3340 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3341 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3342 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3343 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3344
3345 2011-05-05 Julian Brown <julian@codesourcery.com>
3346
3347 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3348 parenthesis in D-register case.
3349
3350 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3351
3352 * opt-functions.awk (var_type_struct): Handle Enum options.
3353 * optc-gen.awk: Don't check range of variables of character type.
3354 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3355 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3356 rs6000_sdata_name, rs6000_explicit_options): Remove.
3357 (rs6000_option_override_internal): Check for -malign-power here.
3358 Use global_options_set instead of rs6000_explicit_options.
3359 (rs6000_parse_fpu_option): Remove.
3360 (rs6000_handle_option): Access variables via opts and opts_set
3361 pointers. Use error_at and warning_at. Add fall-through
3362 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3363 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3364 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3365 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3366 here. Don't use rs6000_parse_fpu_option.
3367 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3368 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3369 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3370 (mrecip=): Use Var.
3371 (mspe): Use Var and Save.
3372 (mtraceback=): Use Enum and Var.
3373 (rs6000_traceback_type): New Enum and EnumValue entries.
3374 (mfloat-gprs=): Use Enum, Var and Save.
3375 (rs6000_float_gprs): New Enum and EnumValue entries.
3376 (mlong-double-): use Var and Save.
3377 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3378 (malign-): Use Enum and Var.
3379 (rs6000_alignment_flags): New Enum and EnumValue entries.
3380 (mfpu=): Use Enum.
3381 (fpu_type_t): New Enum and EnumValue entries.
3382 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3383 global_options_set instead of rs6000_explicit_options.
3384 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3385 global_options_set instead of rs6000_explicit_options.
3386 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3387 global_options_set instead of rs6000_explicit_options.
3388 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3389 global_options_set instead of rs6000_explicit_options.
3390 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3391 global_options_set instead of rs6000_explicit_options.
3392 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3393 global_options_set instead of rs6000_explicit_options.
3394 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3395 definition.
3396 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3397 global_options_set instead of rs6000_explicit_options.
3398 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3399 (rs6000_cmodel): New Enum and EnumValue entries.
3400 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3401 global_options_set instead of rs6000_explicit_options.
3402 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3403 (mtls-size=): Use Enum and Var.
3404 (rs6000_tls_size): New Enum and EnumValue entries.
3405
3406 2011-05-05 Michael Matz <matz@suse.de>
3407
3408 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3409 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3410 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3411 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3412 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3413 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3414 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3415 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3416 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3417 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3418 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3419 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3420 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3421 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3422 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3423 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3424
3425 2011-05-05 Richard Guenther <rguenther@suse.de>
3426
3427 * expmed.c (expand_variable_shift): Rename to ...
3428 (expand_shift_1): ... this. Take an expanded shift amount.
3429 For rotates recurse directly not building trees for the shift amount.
3430 (expand_variable_shift): Wrap around expand_shift_1.
3431 (expand_shift): Adjust.
3432
3433 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3434
3435 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3436
3437 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3438
3439 * tree.h (get_pending_sizes): Remove prototype.
3440 (put_pending_size): Likewise.
3441 (put_pending_sizes): Likewise.
3442 * stor-layout.c (pending_sizes): Delete.
3443 (get_pending_sizes): Likewise.
3444 (put_pending_size): Likewise.
3445 (put_pending_sizes): Likewise.
3446 (variable_size): Do not call put_pending_size and tidy up.
3447 * function.h (struct function): Remove dont_save_pending_sizes_p.
3448 * lto-streamer-in.c (input_function): Do not stream it.
3449 * lto-streamer-out.c (output_function): Likewise.
3450 * tree-inline.c (initialize_cfun): Do not copy it.
3451 * c-decl.c (store_parm_decls): Do not set it.
3452 * omp-low.c (create_task_copyfn): Likewise.
3453 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3454
3455 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3456
3457 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3458 conditions.
3459 (*movdf_internal): Ditto.
3460 (*movdf_internal_nointeger): Ditto.
3461 (*movsf_internal): Ditto.
3462
3463 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3464
3465 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3466 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3467 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3468 (c_variable_size): Remove.
3469 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3470 call put_pending_sizes.
3471 (get_parm_info): Add parameter expr. Use it to set
3472 arg_info->pending_sizes.
3473 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3474 get_pending_sizes.
3475 * c-parser.c (c_parser_parms_declarator): Update call to
3476 c_parser_parms_list_declarator.
3477 (c_parser_parms_list_declarator): Take parameter expr. Update
3478 call to push_parm_decl. Update recursive call. Don't call
3479 get_pending_sizes. Update calls to get_parm_info.
3480 (c_parser_objc_method_definition): Update calls to
3481 c_parser_objc_method_decl and objc_start_method_definition.
3482 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3483 (c_parser_objc_method_decl): Add parameter expr. Update call to
3484 grokparm.
3485 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3486 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3487 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3488
3489 2011-05-05 Michael Hope <michael.hope@linaro.org>
3490
3491 PR pch/45979
3492 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3493 __ARM_EABI__ hosts.
3494
3495 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3496
3497 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3498 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3499 (spu_output_mi_thunk): New function.
3500
3501 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3502
3503 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3504 targetm.asm_out.print_operand.
3505 * config/sol2.c: Include target.h.
3506
3507 2011-05-04 Jan Hubicka <jh@suse.cz>
3508
3509 * ipa-inline.c (reset_edge_caches): New function.
3510 (update_caller_keys): Add check_inlinablity_for; do not
3511 reset edge caches; remove now unnecesary loop.
3512 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3513 (update_all_callee_keys): Likewise.
3514 (inline_small_functions): Sanity check cache; update code
3515 recomputing it.
3516
3517 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3518
3519 PR rtl-optimization/47612
3520 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3521 as the last insn of the sequence to be moved.
3522
3523 2011-05-04 Tobias Burnus <burnus@net-b.de>
3524
3525 PR fortran/48864
3526 * doc/invoke.texi (Ofast): Document that it
3527 enables Fortran's -fno-protect-parens.
3528
3529 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3530
3531 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3532
3533 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3534
3535 * stor-layout.c (variable_size): Do not issue errors.
3536
3537 2011-05-04 Richard Guenther <rguenther@suse.de>
3538
3539 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3540 for array-ref indices.
3541 (tree_coverage_counter_addr): Likewise.
3542 (build_fn_info_type): Use size_int for index types.
3543 (build_gcov_info): Likewise.
3544
3545 2011-05-04 Richard Guenther <rguenther@suse.de>
3546
3547 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3548 to build_int_cst.
3549 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3550 for constructor indices.
3551 (push_init_level): Likewise.
3552
3553 2011-05-04 Richard Guenther <rguenther@suse.de>
3554
3555 * explow.c (promote_mode): Move variable declarations before code.
3556
3557 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3558
3559 * tree.h (build_function_type_array): Declare.
3560 (build_varargs_function_type_array): Declare.
3561 (build_function_type_vec, build_varargs_function_type_vec): Define.
3562 * tree.c (build_function_type_array_1): New function.
3563 (build_function_type_array): New function.
3564 (build_varargs_function_type_array): New function.
3565
3566 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3567
3568 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3569 before setting STMT_VINFO_TYPE.
3570
3571 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3572
3573 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3574 instead of spu_pass_by_reference.
3575
3576 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3577
3578 * calls.c (emit_library_call_value_1): Invoke
3579 promote_function_mode hook on libcall arguments.
3580 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3581 argument being NULL.
3582 * targhooks.c (default_promote_function_mode): Lisewise.
3583 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3584 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3585
3586 * doc/tm.texi: Document that TYPE argument might be NULL.
3587
3588 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3589
3590 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3591
3592 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3593
3594 From Bernd Schmidt
3595 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3596
3597 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3598
3599 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3600 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3601 Move ...
3602 * mips-tfile.c: ... here.
3603 Don't include coretypes.h, tm.h, filenames.h.
3604 (saber_stop): Remove definition and all calls.
3605 [__SABER__]: Remove.
3606 (__LINE__): Remove default.
3607 (Size_t, Ptrdiff_t): Remove definitions.
3608 Replace by size_t, ptrdiff_t.
3609 [!MIPS_DEBUGGING_INFO]: Remove.
3610 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3611 (progname): Add const.
3612 (STATIC): Remove.
3613 Replace all uses by static.
3614 (ALIGN_SYMTABLE_OFFSET): Remove default.
3615 * mips-tdump.c: Don't include coretypes.h, tm.h.
3616 Remove !MIPS_IS_STAB guard.
3617 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3618 $(TM_H), filenames.h dependencies.
3619 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3620
3621 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3622
3623 From Jie Zhang
3624 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3625 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3626
3627 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3628
3629 From Bernd Schmidt
3630 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3631 account and save/restore RETS.
3632 (PROFILE_BEFORE_PROLOGUE): Define.
3633 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3634 the push insn to use predecrement.
3635
3636 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3637
3638 From Jie Zhang
3639 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3640
3641 2011-05-04 Nick Clifton <nickc@redhat.com>
3642
3643 * config/mn10300/mn10300.c: Include cfgloop.h.
3644 (DUMP): New macro.
3645 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3646 Lcc or a FLcc insn into the instruction stream.
3647 (mn10300_block_contains_call): New function. Returns true if the
3648 given basic block contains a CALL insn.
3649 (mn10300_loop_contains_call_insn): New function. Returns true if
3650 the given loop contains a CALL insn.
3651 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3652 to use the SETLB and Lcc or FLcc insns.
3653 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3654 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3655 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3656 disable the SETLB optimization.
3657 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3658 __SETLB__ or __NO_SETLB__.
3659 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3660 (movsf_internal): Handle MDR register.
3661 (cmpsi): Make visible.
3662 (setlb): New pattern.
3663 (Lcc): New pattern.
3664 (FLcc): New pattern.
3665
3666 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3667
3668 PR target/48860
3669 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3670 for reg<->xmm moves.
3671 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3672 (vec_concatv2di_rex64_sse): Ditto.
3673 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3674 (*vec_extractv2di_1_rex64): Ditto.
3675
3676 Revert:
3677 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3678
3679 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3680 reg<->xmm moves.
3681 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3682
3683 2011-05-04 Richard Guenther <rguenther@suse.de>
3684
3685 * tree.h (int_const_binop): Remove notrunc argument.
3686 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3687 create integer constants that are properly truncated.
3688 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3689 (const_binop): Remove zero notrunc argument to int_const_binop.
3690 (size_binop_loc): Likewise.
3691 (fold_div_compare): Likewise.
3692 (maybe_canonicalize_comparison_1): Likewise.
3693 (fold_comparison): Likewise.
3694 (fold_binary_loc): Likewise.
3695 (multiple_of_p): Likewise.
3696 * expr.c (store_constructor): Likewise.
3697 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3698 (maybe_fold_stmt_addition): Likewise.
3699 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3700 * stor-layout.c (layout_type): Likewise.
3701 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3702 * tree-sra.c (build_ref_for_offset): Likewise.
3703 (build_user_friendly_ref_for_offset): Likewise.
3704 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3705 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3706 * tree-ssa-loop-niter.c (inverse): Likewise.
3707 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3708 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3709 * tree-switch-conversion.c (check_range): Likewise.
3710 (build_constructors): Likewise.
3711 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3712 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3713 (extract_range_from_assert): Likewise.
3714 (vrp_int_const_binop): Likewise.
3715 (extract_range_from_binary_expr): Likewise.
3716 (extract_range_from_unary_expr): Likewise.
3717 (check_array_ref): Likewise.
3718 (find_case_label_range): Likewise.
3719 (simplify_div_or_mod_using_ranges): Likewise.
3720 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3721 comparing case labels for merging.
3722
3723 2011-05-03 Mark Wielaard <mjw@redhat.com>
3724
3725 * dwarf2out.c (debug_str_hash_forced): Removed.
3726 (gen_label_for_indirect_string): Removed.
3727 (get_debug_string_label): Removed.
3728 (AT_string_form): Generate label directly.
3729 (output_indirect_string): Test indirect_string_node for
3730 DW_FORM_strp instead of checking label and refcount.
3731 (prune_indirect_string): Removed.
3732 (prune_unused_types): Don't check debug_str_hash_forced or
3733 call prune_indirect_string.
3734
3735 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3736
3737 PR other/48093
3738 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3739
3740 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3741
3742 PR debug/47994
3743 PR debug/47919
3744 * combine.c (try_combine): Skip debug insns at m_split tests.
3745
3746 2011-04-26 Mark Wielaard <mjw@redhat.com>
3747
3748 PR42288
3749 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3750 when info_section_emitted.
3751
3752 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3753
3754 * config/mips/mips-opts.h: New.
3755 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3756 to mips-opts.h.
3757 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3758 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3759 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3760 via opts pointer.
3761 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3762 mips-opts.h.
3763 (mips_abi, mips_code_readable): Don't declare.
3764 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3765 (mabi=): Use Enum and Var.
3766 (mips_abi): New Enum and EnumValue entries.
3767 (mcode-readable=): Use Enum and Var.
3768 (mips_code_readable_setting): New Enum and EnumValue entries.
3769 (mr10k-cache-barrier=): Use Enum and Var.
3770 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3771
3772 2011-05-03 Jan Hubicka <jh@suse.cz>
3773
3774 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3775 replace hash by pointer map.
3776 (cgraph_node_set_element_def, cgraph_node_set_element,
3777 const_cgraph_node_set_element, varpool_node_set_element_def,
3778 varpool_node_set_element, const_varpool_node_set_element): Remove.
3779 (free_cgraph_node_set, free_varpool_node_set): New function.
3780 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3781 * tree-emutls.c: Free varpool node set.
3782 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3783 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3784 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3785 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3786 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3787 Move here from ipa.c; implement using pointer_map
3788 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3789 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3790 debug_cgraph_node_set, varpool_node_set_new,
3791 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3792 dump_varpool_node_set, debug_varpool_node_set):
3793 Move to ipa-uitls.c.
3794 * passes.c (ipa_write_summaries): Update.
3795
3796 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3797
3798 From Mike Frysinger:
3799 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3800 bf542/bf544/bf547/bf548/bf549.
3801
3802 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3803
3804 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3805
3806 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3807
3808 From Bernd Schmidt:
3809 * config/bfin/bfin.md (MOVCC): New mode_macro.
3810 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3811 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3812 comments from generated assembly.
3813
3814 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3815
3816 From Bernd Schmidt
3817 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3818 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3819 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3820 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3821 * config/bfin/lib1funcs.asm (___muldi3): New function.
3822
3823 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3824
3825 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3826 build_function_type_list instead of build_function_type.
3827 Rearrange initialization of `args' to do so.
3828
3829 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3830
3831 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3832 instead of build_function_type.
3833
3834 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3835
3836 * config/rs6000/rs6000.c (spe_init_builtins): Call
3837 build_function_type_list instead of build_function_type.
3838 (paired_init_builtins, altivec_init_builtins): Likewise.
3839 (builtin_function_type): Likewise.
3840
3841 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3842
3843 * config/sh/sh.c (sh_media_init_builtins): Call
3844 build_function_type_list instead of build_function_type.
3845
3846 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3847
3848 * config/sparc/sparc.c (sparc_file_end): Call
3849 build_function_type_list instead of build_function_type.
3850
3851 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3852
3853 * config/alpha/alpha.c (alpha_init_builtins): Call
3854 build_function_type_list instead of build_function_type.
3855
3856 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3857
3858 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3859 build_function_type_list instead of build_function_type.
3860
3861 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3862
3863 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3864 build_function_type_list instead of build_function_type.
3865 Delete `endlink' variable.
3866
3867 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3868
3869 * config/avr/avr.c (avr_init_builtins): Call
3870 build_function_type_list instead of build_function_type.
3871
3872 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3873
3874 * config/picochip/picochip.c (picochip_init_builtins): Call
3875 build_function_type_list instead of build_function_type.
3876 Delete `endlink' variable.
3877
3878 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3879
3880 * config/bfin/bfin.c (bfin_init_builtins): Call
3881 build_function_type_list instead of build_function_type.
3882
3883 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3884
3885 From Bernd Schmidt
3886 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3887 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3888
3889 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3890
3891 From Jie Zhang:
3892 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3893 libbffastfp overrides libgcc when -mfast-fp.
3894
3895 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3896
3897 Originally from Bernd Schmidt
3898 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3899 * config/bfin/bfin.c (override_options): Test it and error if
3900 TARGET_FDPIC.
3901
3902 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3903
3904 Originally From Bernd Schmidt
3905 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3906 FD-PIC.
3907
3908 2011-05-03 Jeff Law <law@redhat.com>
3909
3910 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3911 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3912 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3913 than accessing AUX field directly. Free the AUX field before
3914 clearing it.
3915 (thread_block, thread_through_loop_header): Likewise.
3916 (thread_single_edge, mark_threaded_blocks): Likewise.
3917 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3918 (register_jump_thread): Do not attempt to thread to a NULL edge.
3919
3920 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3921
3922 * function.c (init_function_start): Call decide_function_section.
3923 * varasm.c (decide_function_section): New function.
3924 (assemble_start_function): When not using
3925 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3926 or first_function_block_is_cold.
3927 * rtl.h (decide_function_section): Declare.
3928
3929 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3930 Jakub Jelinek <jakub@redhat.com>
3931
3932 PR target/48774
3933 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3934 only succeed if req_mode is the same as set_mode.
3935
3936 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3937
3938 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3939 * genemit.c (gen_exp): Handle RETURN.
3940 * emit-rtl.c (verify_rtx_sharing): Likewise.
3941 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3942 * rtl.c (copy_rtx): RETURN is shared.
3943 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3944 (ret_rtx): New.
3945 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3946 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3947 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3948 * config/cris/cris.c (cris_expand_return): Likewise.
3949 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3950 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3951 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3952 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3953 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3954 Likewise.
3955 * config/v850/v850.c (expand_epilogue): Likewise.
3956 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3957 * config/arm/arm.md (epilogue): Likewise.
3958 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3959 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3960 variable to ret_reg.
3961
3962 2011-05-03 Richard Guenther <rguenther@suse.de>
3963
3964 PR lto/48846
3965 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3966 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3967 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3968
3969 2011-05-03 Richard Guenther <rguenther@suse.de>
3970
3971 * c-decl.c (grokdeclarator): Instead of looking at
3972 TREE_OVERFLOW check if the constant fits in the index type.
3973
3974 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3975
3976 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3977 (vec_store_lanes<mode><mode>): Likewise.
3978
3979 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3980
3981 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3982 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3983 convert_optab_index values.
3984 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3985 * genopinit.c (optabs): Initialize the new optabs.
3986 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3987 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3988 (expand_STORE_LANES): New functions.
3989 * tree.h (build_array_type_nelts): Declare.
3990 * tree.c (build_array_type_nelts): New function.
3991 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3992 (vect_model_load_cost): Likewise.
3993 (vect_store_lanes_supported, vect_load_lanes_supported)
3994 (vect_record_strided_load_vectors): Declare.
3995 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3996 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3997 (vect_transform_strided_load): Split out statement recording into...
3998 (vect_record_strided_load_vectors): ...this new function.
3999 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4000 (write_vector_array, create_array_ref): New functions.
4001 (vect_model_store_cost): Add store_lanes_p argument.
4002 (vect_model_load_cost): Add load_lanes_p argument.
4003 (vectorizable_store): Try to use store-lanes functions for
4004 interleaved stores.
4005 (vectorizable_load): Likewise load-lanes and loads.
4006 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4007 to vect_model_store_cost.
4008 (vect_build_slp_tree): Likewise vect_model_load_cost.
4009
4010 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4011
4012 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4013 * hooks.c (hook_bool_mode_uhwi_false): New function.
4014 * target.def (array_mode_supported_p): New hook.
4015 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4016 * doc/tm.texi: Regenerate.
4017 * stor-layout.c (mode_for_array): New function.
4018 (layout_type): Use it.
4019 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4020 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4021
4022 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4023
4024 PR target/48723
4025 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4026 for -fstack-check if the size to allocate is negative.
4027
4028 2011-05-02 Lawrence Crowl <crowl@google.com>
4029
4030 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4031 (timevar_cond_start): New for starting a timer only when it is not
4032 already running.
4033 (timevar_cond_stop): New for stopping a timer when it was not already
4034 running.
4035
4036 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4037 (timevar_cond_start): New as above.
4038 (timevar_cond_stop): New as above.
4039
4040 * timevar.def: Add start/stop timers for compiler phases,
4041 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4042 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4043 and TV_PHASE_FINALIZE.
4044 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4045 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4046 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4047 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4048 Make unused TV_OVERLOAD into a start/stop timer.
4049
4050 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4051 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4052 to indicate that they are start/stop timers.
4053
4054 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4055 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4056 Move initialization to do_compile.
4057 (do_compile): Add initialization from above.
4058 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4059
4060 * c-decl.c (c_write_global_declarations): Add start/stop of
4061 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4062
4063 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4064 or TV_PARSE_INLINE, as appropriate.
4065 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4066 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4067
4068 2011-05-02 Jason Merrill <jason@redhat.com>
4069
4070 PR c++/40975
4071 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4072
4073 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4074
4075 PR c/35445
4076 * c-decl.c (finish_decl): Only create a composite if the types are
4077 compatible.
4078
4079 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4080
4081 * config/fr30/fr30-protos.h (Mmode): Don't define.
4082 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4083 definition where used.
4084 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4085 define. Expand definitions where used.
4086 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4087 Expand definitions where used.
4088 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4089 rx_function_arg, rx_function_arg_advance,
4090 rx_function_arg_boundary): Expand definitions of those macros.
4091 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4092 definition where used.
4093
4094 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4095
4096 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4097 reg<->xmm moves.
4098 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4099 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4100 with *movv2sf_internal_rex64_avx.
4101 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4102 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4103 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4104 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4105 "vex" in "prefix" attribute calculation.
4106 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4107
4108 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4109
4110 PR target/47951
4111 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4112 inputs match the output.
4113
4114 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4115
4116 PR target/47955
4117 * config/m68k/m68k.c (m68k_expand_prologue): Set
4118 current_function_static_stack_size.
4119
4120 2011-05-02 Jan Hubicka <jh@suse.cz>
4121
4122 * lto-streamer.c (lto_streamer_cache_insert_1,
4123 lto_streamer_cache_lookup, lto_streamer_cache_create,
4124 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4125 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4126
4127 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4128
4129 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4130 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4131 config/m68k/t-opts: New files.
4132 * config/m68k/m68k-tables.opt: New file (generated).
4133 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4134 extra_options and m68k/t-opts to tmake_file.
4135 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4136 (all_isas): Initialize using m68k-isas.def.
4137 (all_microarchs): Initialize using m68k-microarchs.def.
4138 (m68k_find_selection): Remove.
4139 (m68k_handle_option): Don't assert that global structures are in
4140 use. Use error_at. Access variables via opts pointer. Don't
4141 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4142 directly for -m68020-40 and -m68020-60.
4143 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4144 m68k_tune_entry here.
4145 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4146 to m68k-opts.h.
4147 (m68k_library_id_string): Remove declaration.
4148 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4149 (m68k_library_id_string): New Variable.
4150 (march=, mcpu=, mtune=): Use Enum and Var.
4151
4152 2011-05-02 Richard Guenther <rguenther@suse.de>
4153
4154 * varasm.c (output_constructor_regular_field): Compute zero-based
4155 index with double-ints. Make sure to ICE instead of producing
4156 wrong code.
4157 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4158 in asserts. Properly use a signed type.
4159
4160 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4161
4162 * config/i386/sse.md (V): New mode iterator.
4163 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4164 TARGET_SSE2.
4165 (V_256): Rename from AVX256MODE.
4166 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4167 condition to all users.
4168 (VF1): Ditto.
4169 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4170 condition to all users.
4171 (VF_128): Make V4SF mode unconditional.
4172 (VF_256): Rename from AVX256MODEF2P.
4173 (VI4F_128): Rename from SSEMODE4S.
4174 (VI8F_128): Rename from SSEMODE2D.
4175 (VI4F_256): Rename from AVX256MODE8P.
4176 (VI8F_256): Rename from AVX256MODE4P.
4177 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4178 (ssescalarmodesuffix): Remove SF and DF modes.
4179 (SSEMODE124): Remove.
4180 (SSEMODE1248): Ditto.
4181 (SSEMODEF2P): Ditto.
4182 (AVXMODEF2P): Ditto.
4183 (AVXMODEFDP): Ditto.
4184 (AVXMODEFSP): Ditto.
4185 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4186 unconditional.
4187 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4188 unconditional.
4189 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4190 xop_pcmov_<mode>256. Use V mode iterator.
4191
4192 Adjust RTX patterns globally for renamed mode attributes.
4193
4194 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4195
4196 * haifa-sched.c (sched_emit_insn): Emit insn before first
4197 non-scheduled insn. Inform back-end about new insn. Add
4198 new insn to scheduled_insns list.
4199
4200 2011-05-02 Richard Guenther <rguenther@suse.de>
4201
4202 PR tree-optimization/48822
4203 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4204 (process_scc): Indicate which iteration we start.
4205
4206 2011-05-02 Jan Hubicka <jh@suse.cz>
4207
4208 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4209 (lto_section_overrun): New.
4210 * lto-section-out.c (append_block): Rename to ...
4211 (lto_append_block): ... this one; export.
4212 (lto_output_1_stream): Move lto lto-streamer.h
4213 (lto_output_data_stream): Update.
4214 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4215 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4216 functions.
4217
4218 2011-05-02 Richard Guenther <rguenther@suse.de>
4219
4220 * tree.c (tree_code_counts): New global array.
4221 (record_node_allocation_statistics): Count individual tree codes.
4222 (dump_tree_statistics): Dump individual code stats.
4223
4224 2011-05-01 Jan Hubicka <jh@suse.cz>
4225
4226 * ipa-inline.c (caller_growth_limits): Fix thinko when
4227 looking for largest stack frame.
4228 * ipa-inline.h (dump_inline_summary): Declare.
4229 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4230 on stack usage.
4231 (dump_inline_summary): Export.
4232 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4233
4234 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4235
4236 * reginfo.c (memory_move_cost): Change rclass argument type form
4237 'enum reg_class' to reg_class_t.
4238 * reload.h (memory_move_cost): Update prototype.
4239 * postreload.c reload_cse_simplify_set): Change type dclass var to
4240 reg_class_t.
4241 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4242 Update prototype.
4243 (ira_allocate_and_set_costs): Change aclass argument type form
4244 'enum reg_class' to reg_class_t.
4245 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4246 Change aclass argument type to reg_class_t.
4247 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4248 to reg_class_t.
4249 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4250 memory_move_cost call.
4251
4252 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4253 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4254 Change type tmp var to reg_class_t.
4255
4256 2011-04-30 Jan Hubicka <jh@suse.cz>
4257
4258 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4259 inlining into function with flatten attribute.
4260 (want_inline_small_function_p): Be more realistic about inlining
4261 cold calls where callee size grows.
4262
4263 2011-04-30 Jan Hubicka <jh@suse.cz>
4264
4265 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4266 flags.
4267
4268 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4269
4270 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4271 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4272 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4273 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4274 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4275 (print_operand): Rename to...
4276 (sparc_print_operand): ...this. Make static. Adjust
4277 sparc_print_operand function call.
4278 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4279 functions.
4280
4281 2011-04-30 Jan Hubicka <jh@suse.cz>
4282
4283 PR middle-end/48752
4284 * ipa-inline.c (early_inliner): Disable when doing late
4285 addition of function.
4286
4287 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4288
4289 * dwarf2out.c (get_address_mode): New inline.
4290 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4291 if not dwarf_strict emit
4292 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4293 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4294 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4295 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4296 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4297 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4298 mem_loc_descriptor callers.
4299 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4300 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4301 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4302 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4303 (base_types): New variable.
4304 (get_base_type_offset, calc_base_type_die_sizes,
4305 base_type_for_mode, mark_base_types, base_type_cmp,
4306 move_marked_base_types): New functions.
4307 (calc_die_sizes): Assert that die_offset is 0 or equal to
4308 next_die_offset.
4309 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4310 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4311 callers. If not dwarf_strict, call mem_loc_descriptor even for
4312 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4313 (gen_subprogram_die): Don't give up on call site parameters
4314 with non-integral or large integral modes. Adjust
4315 mem_loc_descriptor callers.
4316 (prune_unused_types): Call prune_unused_types_mark on base_types
4317 vector entries.
4318 (resolve_addr): Call mark_base_types.
4319 (dwarf2out_finish): Call move_marked_base_types.
4320
4321 PR tree-optimization/48809
4322 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4323 type.
4324 (gen_inbound_check): Don't compute index_expr - range_min in utype
4325 again, instead reuse SSA_NAME initialized in build_arrays.
4326 Remove two useless gsi_for_stmt calls.
4327
4328 2011-04-29 Jeff Law <law@redhat.com>
4329
4330 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4331
4332 2011-04-29 Martin Jambor <mjambor@suse.cz>
4333
4334 * cgraph.h (cgraph_postorder): Remove declaration.
4335 * ipa-utils.h (ipa_free_postorder_info): Declare.
4336 (ipa_reverse_postorder): Likewise.
4337 * cgraphunit.c: Include ipa-utils.h.
4338 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4339 * ipa-inline.c: Include ipa-utils.h.
4340 (ipa_inline): Update call to ipa_reverse_postorder.
4341 * ipa-pure-const.c (propagate_pure_const): Update call to
4342 ipa_reduced_postorder and ipa_print_order. Call
4343 ipa_free_postorder_info to clean up.
4344 (propagate_nothrow): Likewise.
4345 * ipa-reference.c (propagate): Removed a useless call to
4346 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4347 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4348 * ipa.c: Include ipa-utils.h.
4349 (ipa_profile): Update call to ipa_reverse_postorder.
4350 (cgraph_postorder): Moved to...
4351 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4352 (ipa_utils_print_order): Renamed to ipa_print_order.
4353 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4354 comments.
4355 (ipa_free_postorder_info): New function.
4356 * passes.c: Include ipa-utils.h.
4357 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4358 (ipa_write_summaries): Likewise.
4359 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4360 (cgraphunit.o): Likewise.
4361 (ipa.o): Likewise.
4362 (ipa-inline.o): Likewise.
4363
4364 2011-04-29 Jan Hubicka <jh@suse.cz>
4365
4366 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4367 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4368 * ipa-inline.h (clause_t): Turn into unsigned int.
4369 * ipa-inline-analysis.c (add_clause): Do more simplification.
4370 (and_predicates): Shortcut more cases.
4371 (predicates_equal_p): Move forward; check that clauses are properly
4372 ordered.
4373 (or_predicates): Shortcut more cases.
4374 (edge_execution_predicate): Rewrite as...
4375 (set_cond_stmt_execution_predicate): ... this function; handle
4376 __builtin_constant_p.
4377 (set_switch_stmt_execution_predicate): New .
4378 (compute_bb_predicates): New.
4379 (will_be_nonconstant_predicate): Update TODO.
4380 (estimate_function_body_sizes): Use compute_bb_predicates
4381 and free them later, always try to estimate if stmt is constant.
4382 (estimate_time_after_inlining, estimate_size_after_inlining):
4383 Gracefully handle optimized out edges.
4384 (read_predicate): Fix off by one error.
4385
4386 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4387
4388 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4389
4390 2011-04-27 Xinliang David Li <davidxl@google.com>
4391
4392 * tree-profile.c (init_ic_make_global_vars): Set
4393 tls attribute on ic vars.
4394 * coverage.c (coverage_end_function): Initialize
4395 function_list with zero.
4396
4397 2011-04-29 Richard Guenther <rguenther@suse.de>
4398
4399 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4400 for the type of the result.
4401 (fold_builtin_isascii): Likewise.
4402 (fold_builtin_toascii): Use integer_type_node where appropriate.
4403 (fold_builtin_logb): Likewise.
4404 (fold_builtin_frexp): Likewise.
4405 (fold_builtin_strstr): Likewise.
4406 (fold_builtin_strpbrk): Likewise.
4407 (fold_builtin_fputs): Likewise.
4408 (fold_builtin_sprintf): Likewise.
4409 (fold_builtin_snprintf): Likewise.
4410 (fold_builtin_printf): Likewise.
4411 (do_mpfr_remquo): Use a proper type for the assigned constant.
4412 (do_mpfr_lgamma_r): Likewise.
4413 * dwarf2out.c (resolve_one_addr): Use size_int.
4414 * except.c (init_eh): Likewise.
4415 (assign_filter_values): Use integer_type_node for filter values.
4416 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4417 indices.
4418 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4419 for EH region numbers.
4420 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4421 for the shift amount.
4422
4423 2011-04-29 Richard Guenther <rguenther@suse.de>
4424
4425 * expr.h (expand_shift): Rename to ...
4426 (expand_variable_shift): ... this.
4427 (expand_shift): Take a constant shift amount.
4428 * expmed.c (expand_shift): Rename to ...
4429 (expand_variable_shift): ... this.
4430 (expand_shift): New wrapper around expand_variable_shift.
4431 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4432 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4433 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4434 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4435 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4436 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4437 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4438 emit_store_flag_1, emit_store_flag): Likewise.
4439 * builtins.c (expand_builtin_signbit): Likewise.
4440 * calls.c (load_register_parameters): Likewise.
4441 * function.c (assign_parm_setup_block): Likewise.
4442 * lower-subreg.c (resolve_shift_zext): Likewise.
4443 * optabs.c (widen_bswap, expand_abs_nojump,
4444 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4445 * spu/spu.c (spu_expand_extv): Likewise.
4446 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4447
4448 2011-04-29 Richard Guenther <rguenther@suse.de>
4449
4450 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4451 for the remapped region number.
4452 * predict.c (build_predict_expr): Use integer_type_node for the
4453 predict kind.
4454 * fold-const.c (fold_binary_loc): Use integer_type_node for
4455 the shift amount. Use a proper type for the PLUS_EXPR operand.
4456
4457 2011-04-29 Michael Matz <matz@suse.de>
4458
4459 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4460 other trees that just builtins.
4461 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4462
4463 2011-04-29 Richard Guenther <rguenther@suse.de>
4464
4465 * tree-nested.c (get_trampoline_type): Use size_int.
4466 (get_nl_goto_field): Likewise.
4467 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4468 for all indexes.
4469 (lower_eh_constructs_2): Likewise.
4470 (lower_resx): Likewise.
4471 (lower_eh_dispatch): Likewise.
4472 * tree-mudflap.c (mf_build_string): Use size_int.
4473 (mudflap_register_call): Use integer_type_node for the flag.
4474 (mudflap_enqueue_constant): Use size_int.
4475 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4476 instead of rebuilding it.
4477
4478 2011-04-29 Richard Guenther <rguenther@suse.de>
4479
4480 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4481 Handle OBJ_TYPE_REF.
4482 (find_func_aliases_for_call): Use it more consistently.
4483
4484 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4485
4486 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4487 (rank_for_schedule): Use it.
4488 (schedule_block): Set it.
4489
4490 2011-04-28 David Li <davidxl@google.com>
4491
4492 * tree.c (crc32_string): Use crc32_byte.
4493 (crc32_byte): New function.
4494 * tree.h (crc32_byte): New function.
4495 * gcov.c (read_graph_file): Handle new cfg_cksum.
4496 (read_count_file): Ditto.
4497 * profile.c (instrument_values): Ditto.
4498 (get_exec_counts): Ditto.
4499 (read_profile_edge_counts): Ditto.
4500 (compute_branch_probabilities): Ditto.
4501 (compute_value_histograms): Ditto.
4502 (branch_prob): Ditto.
4503 (end_branch_prob): Ditto.
4504 * coverage.c (read_counts_file): Ditto.
4505 (get_coverage_counts): Ditto.
4506 (tree_coverage_counter_addr): Ditto.
4507 (coverage_checksum_string): Ditto.
4508 (coverage_begin_output): Ditto.
4509 (coverage_end_function): Ditto.
4510 (build_fn_info_type): Ditto.
4511 (build_fn_info_value): Ditto.
4512 * libgcov.c (gcov_exit): Ditto.
4513 * gcov-dump.c (tag_function): Ditto.
4514 (compute_checksum): Remove.
4515
4516 2011-04-29 Alan Modra <amodra@gmail.com>
4517
4518 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4519 unspec plus offset. Tidy macho code.
4520
4521 2011-04-29 Martin Jambor <mjambor@suse.cz>
4522
4523 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4524 node instead of a decl. Update all callers.
4525 * cgraph.h: Update declaration.
4526
4527 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4528
4529 PR tree-optimization/48765
4530 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4531 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4532 to indicate if loop aware SLP is being used. Scan the statements
4533 and update the vectorization factor according to the type of
4534 vectorization before statement analysis.
4535 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4536 pass it to vect_analyze_loop_operations.
4537 (vectorizable_reduction): Set number of copies to 1 in case of pure
4538 SLP statement.
4539 * tree-vect-stmts.c (vectorizable_conversion,
4540 vectorizable_assignment, vectorizable_shift,
4541 vectorizable_operation, vectorizable_type_demotion,
4542 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4543 Likewise.
4544 (vectorizable_condition): Move the check that it is not SLP
4545 vectorization before the number of copies check.
4546 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4547 to vectorize the loop using SLP.
4548
4549 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4550
4551 PR middle-end/48597
4552 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4553 inline asm.
4554
4555 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4556
4557 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4558 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4559 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4560 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4561 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4562 linux*.h headers.
4563 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4564 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4565 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4566 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4567 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4568 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4569 REG_NAME.
4570 * config/i386/linux.h (REG_NAME): Don't define.
4571 * config/i386/linux64.h (REG_NAME): Don't define.
4572 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4573 Undefine before defining.
4574
4575 2011-04-28 Jan Hubicka <jh@suse.cz>
4576
4577 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4578 nonconstant_names array.
4579 (estimate_function_body_sizes): Build nonconstant_names array; handle
4580 BUILT_IN_CONSTANT_P.
4581
4582 2011-04-28 Richard Guenther <rguenther@suse.de>
4583
4584 PR bootstrap/48804
4585 Revert
4586 2011-04-28 Richard Guenther <rguenther@suse.de>
4587
4588 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4589 as late as possible.
4590
4591 2011-04-28 Richard Guenther <rguenther@suse.de>
4592
4593 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4594 (debug_constraint): Do it here.
4595 (dump_constraints): And here.
4596 (rewrite_constraints): And here.
4597 (dump_constraint_edge): Remove.
4598 (dump_constraint_graph): Rewrite to produce DOT output.
4599 (solve_constraints): Build succ graph as late as possible.
4600 Dump constraint graphs before and after solving.
4601
4602 2011-04-28 Richard Guenther <rguenther@suse.de>
4603
4604 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4605 New function split out from ...
4606 (find_func_aliases): ... here. Call it.
4607 (find_func_aliases_for_call): Likewise.
4608
4609 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4610
4611 * internal-fn.h (internal_fn_name_array): Declare.
4612 (internal_fn_flags_array): Likewise.
4613
4614 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4615
4616 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4617 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4618 Move from sse.md.
4619 (ssemodefsuffix): Remove.
4620 (ssevecmodesuffix): New mode attribute.
4621 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4622 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4623 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4624 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4625 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4626 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4627 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4628 ssemodesuffix mode attribute.
4629 (float splitters): Use ssevecmodesuffix mode attribute.
4630 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4631 (sseinsmode): Rename from avxvecmode.
4632 (avxsizesuffix): Rename from avxmodesuffix.
4633 (sseintvecmode): Rename from avxpermvecmode.
4634 (ssedoublevecmode): Rename from ssedoublesizemode.
4635 (ssehalfvecmode): Rename from avxhalfvecmode.
4636 (ssescalarmode): Rename from avxscalarmode.
4637 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4638 templates for ssemodesuffix mode attribute.
4639 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4640 mode attribute.
4641
4642 Adjust RTX patterns globally for renamed mode attributes.
4643
4644 2011-04-27 Jan Hubcika <jh@suse.cz>
4645
4646 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4647 * ipa-inline-analysis.c: Include alloc-pool.h.
4648 (edge_predicate_pool): New.
4649 (trye_predicate_p): New function
4650 (false_predicate_p): New function.
4651 (add_clause): Sanity check that false clauses are "optimized";
4652 never add clauses to predicate that is already known to be false.
4653 (and_predicate): Use flase_predicate_p.
4654 (evaulate_predicate): Rename to ...
4655 (evaluate_predicate): ... this one; update all callers; assert
4656 that false is not listed among possible truths.
4657 (dump_predicate): Use true_predicate_p.
4658 (account_size_time): Use false_predicate_p.
4659 (evaulate_conditions_for_edge): Rename to ...
4660 (evaluate_conditions_for_edge) ... this one.
4661 (edge_set_predicate): New function.
4662 (inline_edge_duplication_hook): Duplicate edge predicates.
4663 (inline_edge_removal_hook): Free edge predicates.
4664 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4665 (dump_inline_summary): Update.
4666 (estimate_function_body_sizes): Set edge predicates.
4667 (estimate_calls_size_and_time): Handle predicates.
4668 (estimate_callee_size_and_time): Update.
4669 (remap_predicate): Add toplev_predicate; update comment.
4670 (remap_edge_predicates): New function.
4671 (inline_merge_summary): Compute toplev predicate; update.
4672 (read_predicate): New function.
4673 (read_inline_edge_summary): Use it.
4674 (inline_read_section): Likewise.
4675 (write_predicate): New function.
4676 (write_inline_edge_summary): Use it.
4677 (inline_write_summary): Likewise.
4678 (inline_free_summary): Free alloc pool and edge summary vec.
4679
4680 2011-04-27 Richard Guenther <rguenther@suse.de>
4681
4682 * tree-ssa-structalias.c (changed_count): Remove.
4683 (changed): Use a bitmap.
4684 (unify_nodes): Adjust.
4685 (do_sd_constraint): Likewise.
4686 (do_ds_constraint): Likewise.
4687 (do_complex_constraint): Likewise.
4688 (solve_graph): Likewise.
4689
4690 2011-04-27 Jan Hubicka <jh@suse.cz>
4691
4692 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4693
4694 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4695
4696 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4697 (avx_vperm2f128_*_operand): Ditto.
4698 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4699 Use avx_vpermilp_parallel in insn condition.
4700 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4701 Use avx_vperm2f128_parallel in insn condition.
4702
4703 2011-04-27 Richard Guenther <rguenther@suse.de>
4704
4705 * Makefile.in (tree-ssa-structalias.o): Remove
4706 gt-tree-ssa-structalias.h dependency.
4707 (GTFILES): Remove tree-ssa-structalias.c.
4708 * tree.c (allocate_decl_uid): New function.
4709 (make_node_stat): Use it.
4710 (copy_node_stat): Likewise.
4711 * tree.h (allocate_decl_uid): Declare.
4712 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4713 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4714 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4715 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4716 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4717 (struct heapvar_map): Likewise.
4718 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4719 heapvar_insert): Likewise.
4720 (make_heapvar_for): Rename to ...
4721 (make_heapvar): ... this. Simplify.
4722 (fake_var_decl_obstack): New global var.
4723 (build_fake_var_decl): New function.
4724 (make_constraint_from_heapvar): Adjust.
4725 (handle_lhs_call): Likewise.
4726 (create_function_info_for): Likewise.
4727 (intra_create_variable_infos): Likewise.
4728 (init_alias_vars): Allocate fake_var_decl_obstack.
4729 (init_alias_heapvars, delete_alias_heapvars): Remove.
4730 (compute_points_to_sets): Do not call init_alias_heapvars.
4731 (ipa_pta_execute): Likewise.
4732 (delete_points_to_sets): Free fake_var_decl_obstack.
4733
4734 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4735
4736 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4737 (si_from_UTItype, si_to_UTItype): New functions.
4738 (__udivmodti4): Use them to implement type-punning.
4739 * config/spu/multi3.c (union qword_TItype): New data type.
4740 (si_from_TItype, si_to_TItype): New functions.
4741 (__multi3): Use them to implement type-punning.
4742
4743 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4744
4745 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4746
4747 2011-04-27 Jan Hubicka <jh@suse.cz>
4748
4749 * ipa-prop.c (function_insertion_hook_holder): New holder.
4750 (ipa_add_new_function): New function.
4751 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4752 Register/deregister holder.
4753
4754 2011-04-27 Richard Guenther <rguenther@suse.de>
4755
4756 PR tree-optimization/48772
4757 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4758
4759 2011-04-27 Richard Guenther <rguenther@suse.de>
4760
4761 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4762 TARGET_MEM_REF handling.
4763
4764 2011-04-27 Nick Clifton <nickc@redhat.com>
4765
4766 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4767 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4768 (REG_CLASS_NAMES): Likewise.
4769 (REG_CLASS_CONTENTS): Likewise.
4770 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4771 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4772 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4773 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4774 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4775 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4776 duplicate register classes.
4777 (frv_class_likely_spilled_p): Likewise.
4778 (frv_register_move_cost): Likewise.
4779
4780 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4781 end of the regno_reg_class array.
4782
4783 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4784
4785 PR c/48742
4786 * c-typeck.c (build_binary_op): Don't wrap arguments if
4787 int_operands is true.
4788
4789 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4790
4791 PR target/48767
4792 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4793 targetm.calls.must_pass_in_stack for void type.
4794
4795 2011-04-26 Jan Hubicka <jh@suse.cz>
4796
4797 * cgraphbuild.c (build_cgraph_edges): Update call
4798 of cgraph_create_edge and cgraph_create_indirect_edge.
4799 * cgraph.c (cgraph_create_edge_including_clones,
4800 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4801 cgraph_update_edges_for_call_stmt_node): Do not take nest
4802 argument; do not initialize call_stmt_size/time.
4803 (dump_cgraph_node): Do not dump nest.
4804 (cgraph_clone_edge): Do not take loop_nest argument;
4805 do not propagate it; do not clone call_stmt_size/time.
4806 (cgraph_clone_node): Likewise.
4807 (cgraph_create_virtual_clone): Update.
4808 * cgraph.h (struct cgraph_edge): Remove
4809 call_stmt_size/call_stmt_time/loop_nest.
4810 (cgraph_create_edge, cgraph_create_indirect_edge,
4811 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4812 prototype.
4813 * tree-emutls.c (gen_emutls_addr): Update.
4814 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4815 loop_nest; handle indirect calls, too.
4816 (clone_inlined_nodes): Do not care about updating inline summaries.
4817 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4818 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4819 stream call_stmt_size/call_stmt_time/loop_nest.
4820 * ipa-inline.c (edge_badness): Update.
4821 (ipa_inline): dump summaries after inlining.
4822 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4823 New.
4824 (inline_edge_summary): New function.
4825 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4826 (inline_edge_removal_hook): Handle edge summaries.
4827 (inline_edge_duplication_hook): New hook.
4828 (inline_summary_alloc): Alloc hooks.
4829 (initialize_growth_caches): Do not register removal hooks.
4830 (free_growth_caches); Do not free removal hook.
4831 (dump_inline_edge_summary): New function.
4832 (dump_inline_summary): Use it.
4833 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4834 (inline_update_callee_summaries): New function.
4835 (inline_merge_summary): Use it.
4836 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4837 (read_inline_edge_summary): New function.
4838 (inline_read_section): Use it.
4839 (write_inline_edge_summary): New function.
4840 (inline_write_summary): Use it.
4841 (inline_free_summary): Free edge new holders.
4842 * tree-inline.c (copy_bb): Update.
4843
4844 2011-04-26 Jason Merrill <jason@redhat.com>
4845
4846 * tree-eh.c (lower_try_finally_switch): Create the label along with
4847 the CASE_LABEL_EXPR.
4848
4849 2011-04-26 David S. Miller <davem@davemloft.net>
4850 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4851
4852 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4853 * configure: Regenerate.
4854
4855 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4856
4857 PR target/48258
4858 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4859 reduction.
4860 (VEC_reduc): New code iterator and splitters for vector reduction.
4861 (VEC_reduc_name): Ditto.
4862 (VEC_reduc_rtx): Ditto.
4863 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4864 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4865
4866 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4867 support for extracting SF on VSX.
4868
4869 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4870 generating xscvspdp.
4871 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4872 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4873 double add, minimum, maximum vector reduction.
4874 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4875 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4876 optimize double vector reduction.
4877 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4878
4879 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4880
4881 * config/fr30/fr30.h (inhibit_libc): Don't define.
4882 * config/m32r/m32r-protos.h: Correct comment.
4883 * config/v850/v850.h (GHS_default_section_names,
4884 GHS_current_section_names): Use tree, not union tree_node *.
4885
4886 2011-04-26 Xinliang David Li <davidxl@google.com>
4887
4888 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4889 * c-family/c-opts.c (c_common_handle_option): Set
4890 warn_maybe_uninitialized.
4891 * opts.c (common_handle_option): Ditto.
4892 * common.opt: New option.
4893 * tree-ssa.c (warn_uninit): Add one more parameter.
4894 (warn_uninitialized_var): Pass warning code.
4895 * tree-flow.h: Interface change.
4896
4897 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4898
4899 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4900 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4901 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4902
4903 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4904
4905 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4906 * config/mips/mips.opt (mmips-tfile): Remove.
4907
4908 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4909 mips-tdump reference to ...
4910 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4911 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4912 reference by Tru64 UNIX.
4913
4914 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4915
4916 PR debug/48768
4917 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4918 is error_mark_node, set value to NULL.
4919
4920 PR tree-optimization/48734
4921 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4922 if return value from maybe_fold_*_comparsions isn't something
4923 the code is prepared to handle.
4924
4925 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4926
4927 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4928 mode check.
4929 (ext_QIreg_nomode_operands): Remove.
4930 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4931 (*andsi_1): Ditto.
4932 (*andhi_1): Ditto.
4933
4934 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4935
4936 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4937
4938 2011-04-26 Richard Guenther <rguenther@suse.de>
4939
4940 * c-typeck.c (build_unary_op): Do not expand array-refs via
4941 pointer arithmetic. Only adjust qualifiers for function types.
4942
4943 2011-04-26 Richard Guenther <rguenther@suse.de>
4944
4945 PR middle-end/48694
4946 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4947 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4948 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4949 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4950
4951 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4952
4953 * doc/extend.texi: Document __underlying_type.
4954
4955 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4956
4957 * config/rs6000/titan.md (automata_option "progress"): Remove.
4958
4959 2011-04-25 Jeff Law <law@redhat.com>
4960
4961 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4962
4963 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 * system.h (ENUM_BITFIELD): Remove.
4966
4967 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4968 Eric Botcazou <ebotcazou@adacore.com>
4969
4970 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4971 for STORE_FLAG_VALUE==-1 case.
4972
4973 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4974
4975 PR target/43804
4976 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4977 LEGITIMATE_PIC_OPERAND_P.
4978
4979 2011-04-24 Jan Hubicka <jh@suse.cz>
4980
4981 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4982 WPA hack.
4983 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4984 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4985 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4986 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4987 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4988 Sanity check predicate length.
4989 (remap_predicate): Likewise; sanity check jump functions.
4990 (inline_read_section, inline_write_summary): Sanity check
4991 predicate length.
4992
4993 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4994
4995 PR other/48748
4996 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4997 __is_literal_type, and __is_trivial; update throughout about
4998 possibly cv-qualified void types.
4999
5000 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5001
5002 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5003 testsuite and make it version agnostic.
5004
5005 2011-04-22 Jan Hubicka <jh@suse.cz>
5006
5007 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5008
5009 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5010
5011 PR c/48685
5012 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5013 to VOID_TYPE even around MODIFY_EXPR.
5014
5015 2011-04-22 Mike Stump <mikestump@comcast.net>
5016
5017 * gensupport.c (read_md_rtx): Fix typo in comment.
5018 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5019 comment.
5020
5021 2011-04-22 Jan Hubicka <jh@suse.cz>
5022
5023 * gengtype.c (open_base_files): Add ipa-inline.h include.
5024 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5025 ipa-prop.c; update all uses.
5026 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5027 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5028 merge summary of inlined function into former caller.
5029 * ipa-inline.c (max_benefit): Remove.
5030 (edge_badness): Compensate for removal of benefits.
5031 (update_caller_keys): Use
5032 reset_node_growth_cache/reset_edge_growth_cache.
5033 (update_callee_keys): Likewise.
5034 (update_all_callee_keys): Likewise.
5035 (inline_small_functions): Do not collect max_benefit; do not reset
5036 estimated_growth; call free_growth_caches and initialize_growth_caches.
5037 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5038 struct size_time_entry): New structures.
5039 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5040 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5041 and estimated_growth.
5042 (edge_growth_cache_entry): New structure.
5043 (node_growth_cache, edge_growth_cache): New global vars.
5044 (estimate_growth): Turn into inline.
5045 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5046 initialize_growth_caches, free_growth_caches): Declare.
5047 (estimate_edge_growth): Rewrite.
5048 (estimate_edge_time): Implement as inline cache lookup.
5049 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5050 functions.
5051 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5052 (NUM_CONDITIONS): New constant.
5053 (predicate_conditions): New enum.
5054 (IS_NOT_CONSTANT): New constant.
5055 (edge_removal_hook_holder): New var.
5056 (node_growth_cache, edge_growth_cache): New global vars.
5057 (true_predicate, single_cond_predicate, false_predicate,
5058 not_inlined_predicate, add_condition, add_clause, and_predicates,
5059 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5060 dump_clause, dump_predicate, account_size_time,
5061 evaulate_conditions_for_edge): New functions.
5062 (inline_summary_alloc): Move to heap.
5063 (inline_node_removal_hook): Clear condition and entry vectors.
5064 (inline_edge_removal_hook): New function.
5065 (initialize_growth_caches, free_growth_caches): New function.
5066 (dump_inline_summary): Update.
5067 (edge_execution_predicate): New function.
5068 (will_be_nonconstant_predicate): New function.
5069 (estimate_function_body_sizes): Compute BB and constantness predicates.
5070 (compute_inline_parameters): Do not clear estimated_growth.
5071 (estimate_edge_size_and_time): New function.
5072 (estimate_calls_size_and_time): New function.
5073 (estimate_callee_size_and_time): New function.
5074 (remap_predicate): New function.
5075 (inline_merge_summary): New function.
5076 (do_estimate_edge_time): New function based on...
5077 (estimate_edge_time): ... this one.
5078 (do_estimate_edge_growth): New function.
5079 (do_estimate_growth): New function based on....
5080 (estimate_growth): ... this one.
5081 (inline_analyze_function): Analyze after deciding on jump functions.
5082 (inline_read_section): New function.
5083 (inline_read_summary): Use it.
5084 (inline_write_summary): Write all the new data.
5085 * ipa-prop.c (ipa_get_param_decl_index): Export.
5086 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5087 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5088 Declare.
5089 (ipa_get_lattice): Move here from ipa-cp.c
5090 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5091 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5092 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5093 cgraph_edge_inlinable_p): Remove.
5094 * cgraphunit.c: Include ipainline.h
5095 (cgraph_process_new_functions): Update call of
5096 compute_inline_parameters.
5097
5098 2011-04-22 Richard Guenther <rguenther@suse.de>
5099
5100 * tree.c (build_int_cst): Properly create canonicalized integer
5101 constants.
5102 (build_int_cst_type): Remove scary comments.
5103
5104 2011-04-22 Xinliang David Li <davidxl@google.com>
5105
5106 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5107 by default when -Wno-error is not specified.
5108 * opts-global.c (decode_options): Remove call to
5109 control_warning_options.
5110
5111 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5112
5113 PR tree-optimization/48717
5114 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5115 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5116
5117 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5118
5119 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5120 definition where used.
5121
5122 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5123
5124 PR c/48716
5125 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5126 TREE_STATIC variables declared inside of some OpenMP construct.
5127
5128 2011-04-22 Martin Jambor <mjambor@suse.cz>
5129
5130 PR middle-end/48585
5131 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5132
5133 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5134
5135 PR c/36750
5136 * c-typeck.c (pop_init_level): Do not warn about initializing
5137 with ` = {0}'.
5138
5139 2011-04-22 Alan Modra <amodra@gmail.com>
5140
5141 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5142 when returning call_cookie.
5143 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5144 pointers, to functions with no more vector args than the current
5145 function, and some non-local calls for ABI_V4.
5146 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5147 sibcall_nonlocal_aix64): Combine to ..
5148 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5149 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5150 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5151 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5152 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5153 operand.
5154 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5155 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5156 sibcall_value_symbolic_64): Delete.
5157
5158 2011-04-21 Xinliang David Li <davidxl@google.com>
5159
5160 * cgraph.h: Remove pid.
5161 * cgraph.c: Remove pid.
5162 * value-prof.c (init_node_map): New function.
5163 (del_node_map): New function.
5164 (find_func_by_funcdef_no): New function.
5165 (gimple_ic_transform): Call new function.
5166 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5167 * function.c (get_last_funcdef_no): New function.
5168 * function.h (get_last_funcdef_no): New function.
5169 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5170 to libgcov function.
5171 (tree-profiling): Call node map init and delete function.
5172
5173 2011-04-21 Ian Lance Taylor <iant@google.com>
5174
5175 * godump.c (go_format_type): Use exported Go name for anonymous
5176 field name.
5177
5178 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5179
5180 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5181 Call builtin_function_type_list instead of builtin_function_type.
5182 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5183
5184 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5185
5186 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5187 build_function_type_list instead of build_function_type.
5188 Delete variable `endlink'.
5189
5190 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5191
5192 * config/s390/s390.c (s390_init_builtins): Call
5193 build_function_type_list instead of build_function_type.
5194
5195 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5196
5197 * config/ia64/ia64.c (ia64_init_builtins): Call
5198 build_function_type_list instead of builtin_function_type.
5199
5200 2011-04-21 Easwaran Raman <eraman@google.com>
5201
5202 * cfgexpand.c (stack_var): Remove OFFSET...
5203 (add_stack_var): ...and its reference here...
5204 (expand_stack_vars): ...and here.
5205 (stack_var_cmp): Sort by descending order of size.
5206 (partition_stack_vars): Change heuristic.
5207 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5208 (dump_stack_var_partition): Add newline after each partition.
5209
5210 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5211 Jeff Law <law@redhat.com>
5212
5213 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5214 * gengtype.c (matching_file_name_substitute): Likewise.
5215
5216 2011-04-21 Richard Guenther <rguenther@suse.de>
5217
5218 PR lto/48703
5219 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5220
5221 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5222
5223 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5224
5225 2011-04-21 Richard Guenther <rguenther@suse.de>
5226
5227 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5228 file name.
5229
5230 2011-04-21 Richard Guenther <rguenther@suse.de>
5231
5232 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5233 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5234 Use DECL_P, not SSA_VAR_P.
5235 (ptr_derefs_may_alias_p): Likewise.
5236 (ptr_deref_may_alias_ref_p_1): Likewise.
5237 (decl_refs_may_alias_p): Likewise.
5238 (refs_may_alias_p_1): Likewise.
5239 (ref_maybe_used_by_call_p_1): Likewise.
5240 (call_may_clobber_ref_p_1): Likewise.
5241 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5242 are either MEM_REF or TARGET_MEM_REF.
5243 (indirect_refs_may_alias_p): Likewise.
5244 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5245 for MEM_EXPR of indirect calls.
5246
5247 2011-04-21 Tristan Gingold <gingold@adacore.com>
5248
5249 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5250 (dst_file_info_struct): Remove flen field.
5251 (lookup_filename): Remove code that set flen field.
5252
5253 2011-04-21 Tristan Gingold <gingold@adacore.com>
5254
5255 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5256
5257 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5258
5259 PR target/48708
5260 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5261 vec_extract and vec_concat for non-SSE4_1 targets.
5262
5263 2011-04-21 Richard Guenther <rguenther@suse.de>
5264
5265 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5266 return statements.
5267
5268 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5269
5270 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5271 undefine.
5272 (FILE): Don't undefine.
5273
5274 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5275
5276 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5277 struct rtx_def *.
5278 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5279 struct rtx_def *.
5280 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5281 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5282 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5283 rtx_def *.
5284 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5285 definitions where used.
5286 * config/microblaze/microblaze.h (struct microblaze_args): Use
5287 rtx, not struct rtx_def *.
5288 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5289 rtx_def *.
5290 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5291 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5292 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5293 not struct rtx_def *.
5294 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5295 struct rtx_def *.
5296 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5297 rtx_def *.
5298 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5299
5300 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5301
5302 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5303 operand_equal_p to compare DR_BASE_ADDRESSes.
5304 (vect_check_interleaving): Likewise.
5305
5306 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5307
5308 PR target/46329
5309 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5310 for all Neon struct constants.
5311
5312 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5313
5314 * target.def (legitimate_constant_p): New hook.
5315 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5316 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5317 * doc/tm.texi: Regenerate.
5318 * hooks.h (hook_bool_mode_rtx_true): Declare.
5319 * hooks.c (hook_bool_mode_rtx_true): Define.
5320 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5321 * calls.c (precompute_register_parameters): Replace uses of
5322 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5323 (emit_library_call_value_1): Likewise.
5324 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5325 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5326 * ira-costs.c (scan_one_insn): Likewise.
5327 * recog.c (general_operand, immediate_operand): Likewise.
5328 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5329 * reload1.c (init_eliminable_invariants): Likewise.
5330
5331 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5332 mode argument.
5333 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5334 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5335 argument.
5336 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5337 * config/alpha/predicates.md (input_operand): Update call to
5338 alpha_legitimate_constant_p.
5339
5340 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5341 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5342 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5343 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5344 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5345 (arm_legitimate_constant_p): New functions.
5346 (arm_cannot_force_const_mem): Make static.
5347
5348 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5349
5350 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5351 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5352 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5353 instead of bfin_legitimate_constant_p.
5354 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5355 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5356
5357 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5358
5359 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5360
5361 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5362 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5363 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5364 (frv_legitimate_constant_p): Make static. Add a mode argument.
5365
5366 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5367 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5368 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5369
5370 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5371 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5372 * config/i386/i386.c (legitimate_constant_p): Rename to...
5373 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5374 argument.
5375 (ix86_cannot_force_const_mem): Update accordingly.
5376 (ix86_legitimate_address_p): Likewise.
5377 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5378 * config/i386/i386.md: Update commentary.
5379
5380 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5381 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5382 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5383 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5384
5385 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5386
5387 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5388 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5389 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5390 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5391
5392 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5393 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5394 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5395
5396 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5397 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5398 (m32r_legitimate_constant_p): New function.
5399
5400 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5401 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5402 LEGITIMATE_CONSTANT_P.
5403 (LEGITIMATE_CONSTANT_P): Delete.
5404 * config/m68k/m68k.c (m68k_expand_prologue): Call
5405 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5406 (m68k_legitimate_constant_p): New function.
5407 * config/m68k/m68k.md: Update comments.
5408
5409 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5410 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5411 (mcore_legitimate_constant_p): New function.
5412
5413 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5414 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5415 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5416 Add a mode argument.
5417 (mep_legitimate_address): Update accordingly.
5418 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5419
5420 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5421 Delete.
5422 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5423 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5424 static. Check OP's mode for VOIDmode.
5425 (microblaze_legitimate_constant_p): New function.
5426 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5427
5428 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5429 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5430 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5431 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5432 * config/mips/predicates.md: Update comments.
5433
5434 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5435 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5436 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5437 (mmix_legitimate_constant_p): Make static, return a bool, and take
5438 a mode argument.
5439 (mmix_print_operand_address): Update accordingly.
5440
5441 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5442 Delete.
5443 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5444 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5445 static. Add a mode argument.
5446 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5447
5448 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5449
5450 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5451 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5452 (pa_legitimate_constant_p): New function.
5453
5454 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5455
5456 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5457 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5458 (pdp11_legitimate_constant_p): New function.
5459
5460 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5461 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5462 (rs6000_legitimate_constant_p): New function.
5463
5464 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5465 (rx_legitimate_constant_p): ...this.
5466 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5467 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5468 (rx_legitimate_constant_p): ...this.
5469 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5470 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5471
5472 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5473 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5474 * config/s390/s390.c (legitimate_constant_p): Rename to...
5475 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5476 and add a mode argument.
5477 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5478
5479 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5480
5481 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5482 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5483 (sh_legitimate_constant_p): New function.
5484
5485 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5486 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5487 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5488 (legitimate_constant_p): Rename to...
5489 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5490 argument.
5491 (constant_address_p): Update accordingly.
5492
5493 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5494 argument and return a bool.
5495 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5496 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5497 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5498 (spu_rtx_costs): Update accordingly.
5499 * config/spu/predicates.md (vec_imm_operand): Likewise.
5500
5501 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5502
5503 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5504 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5505 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5506
5507 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5508 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5509 * config/vax/vax.c (legitimate_constant_p): Likewise.
5510
5511 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5512 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5513 (xtensa_legitimate_constant_p): New function.
5514
5515 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5516
5517 * target.def (cannot_force_const_mem): Add a mode argument.
5518 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5519 * doc/tm.texi: Regenerate.
5520 * hooks.h (hook_bool_mode_rtx_false): Declare.
5521 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5522 (hook_bool_mode_const_rtx_true): Likewise.
5523 (hook_bool_mode_rtx_false): New function.
5524 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5525 to be non-VOID. Update call to cannot_force_const_mem.
5526 (find_reloads): Update accordingly.
5527 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5528 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5529 argument.
5530 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5531 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5532 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5533 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5534 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5535 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5536 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5537 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5538 (m68k_cannot_force_const_mem): ...this new function.
5539 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5540 argument.
5541 (mips_const_insns, mips_legitimize_const_move): Update calls.
5542 (mips_secondary_reload_class): Likewise.
5543 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5544 (pa_cannot_force_const_mem): ...this new function.
5545 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5546 (rs6000_cannot_force_const_mem): ...this new function.
5547 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5548 argument.
5549 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5550 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5551 to...
5552 (xtensa_cannot_force_const_mem): ...this new function.
5553
5554 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5555
5556 * config/mips/mips.c (mips16_build_function_stub): Call
5557 build_function_type_list instead of build_function_type.
5558 (mips16_build_call_stub): Likewise.
5559
5560 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5561
5562 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5563 instead of build_function_type.
5564
5565 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5566
5567 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5568 instead of build_function_type.
5569
5570 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5571
5572 PR target/48678
5573 * config/i386/i386.md (insv): Change operand 0 constraint to
5574 "register_operand". Change operand 1 and 2 constraint to
5575 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5576 * config/i386/sse.md (sse4_1_pinsrb): Export.
5577 (sse2_pinsrw): Ditto.
5578 (sse4_1_pinsrd): Ditto.
5579 (sse4_1_pinsrq): Ditto.
5580 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5581 * config/i386/i386.c (ix86_expand_pinsr): New.
5582
5583 2011-04-20 Easwaran Raman <eraman@google.com>
5584
5585 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5586 containing union type only with -fstrict-aliasing.
5587
5588 2011-04-20 Jim Meyering <meyering@redhat.com>
5589
5590 Remove useless if-before-free tests.
5591 * calls.c (expand_call, save_area): Likewise.
5592 * cfgcleanup.c (try_forward_edges): Likewise.
5593 * collect2.c (collect_execute): Likewise.
5594 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5595 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5596 * coverage.c (coverage_checksum_string): Likewise.
5597 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5598 * cselib.c (cselib_init): Likewise.
5599 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5600 (df_set_clean_cfg): Likewise.
5601 * function.c (free_after_compilation): Likewise.
5602 * gcc.c (do_spec_1, main): Likewise.
5603 * gcov.c (create_file_names): Likewise.
5604 * gensupport.c (identify_predicable_attribute): Likewise.
5605 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5606 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5607 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5608 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5609 * ipa-pure-const.c (local_pure_const): Likewise.
5610 * ipa-reference.c (propagate): Likewise.
5611 * ira-costs.c (free_ira_costs): Likewise.
5612 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5613 * matrix-reorg.c (mat_free): Likewise.
5614 * prefix.c (get_key_value): Likewise.
5615 * profile.c (compute_value_histograms): Likewise.
5616 * reload1.c (free_reg_equiv): Likewise.
5617 * sched-deps.c (free_deps): Likewise.
5618 * sel-sched-ir.c (fence_clear): Likewise.
5619 * sese.c (set_rename, if_region_set_false_region): Likewise.
5620 * tree-data-ref.c (free_rdg): Likewise.
5621 * tree-eh.c (lower_try_finally): Likewise.
5622 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5623 * tree-ssa-live.c (delete_var_map): Likewise.
5624 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5625 * tree-ssa-pre.c (phi_trans_add): Likewise.
5626
5627 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5628
5629 PR tree-optimization/48611
5630 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5631 beyond ERT_MUST_NOT_THROW region.
5632
5633 2011-04-20 Catherine Moore <clm@codesourcery.com>
5634
5635 * config/mips/mips.opt (mfix-24k): New.
5636 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5637 * config/mips/mips.md (length): Increase by 4 for stores if
5638 fixing 24K errata.
5639 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5640 all noreorder if fixing 24K errata.
5641 * doc/invoke.texi: Document mfix-24k.
5642
5643 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5644
5645 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5646 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5647
5648 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5649
5650 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5651 (const_ok_for_op): ... to here.
5652
5653 2011-04-20 Kai Tietz <ktietz@redhat.com>
5654
5655 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5656 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5657
5658 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5659
5660 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5661
5662 2011-04-20 Richard Guenther <rguenther@suse.de>
5663
5664 PR tree-optimization/47892
5665 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5666 are if-convertible.
5667
5668 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5669
5670 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5671
5672 2011-04-20 Tristan Gingold <gingold@adacore.com>
5673
5674 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5675
5676 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5677
5678 PR target/18145
5679
5680 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5681 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5682 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5683 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5684 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5685
5686 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5687 New prototype.
5688
5689 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5690 (avr_asm_named_section, avr_asm_output_aligned_common,
5691 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5692 New functions to update...
5693 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5694 (avr_asm_init_sections): Overwrite section callbacks for
5695 data_section, bss_section.
5696 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5697 from here to...
5698 (avr_file_end): ...here.
5699
5700 2011-04-20 Richard Guenther <rguenther@suse.de>
5701
5702 PR middle-end/48695
5703 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5704 objects and types here. Adjust for their offset before comparing.
5705
5706 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5707
5708 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5709 statement per copy.
5710
5711 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5712
5713 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5714 (GIMPLE_H): Include $(INTERNAL_FN_H).
5715 (OBJS-common): Add internal-fn.o.
5716 (internal-fn.o): New rule.
5717 * internal-fn.def: New file.
5718 * internal-fn.h: Likewise.
5719 * internal-fn.c: Likewise.
5720 * gimple.h: Include internal-fn.h.
5721 (GF_CALL_INTERNAL): New gf_mask.
5722 (gimple_statement_call): Put fntype into a union with a new
5723 internal_fn field.
5724 (gimple_build_call_internal): Declare.
5725 (gimple_build_call_internal_vec): Likewise.
5726 (gimple_call_same_target_p): Likewise.
5727 (gimple_call_internal_p): New function.
5728 (gimple_call_internal_fn): Likewise.
5729 (gimple_call_fntype): Return null for internal calls.
5730 (gimple_call_set_fntype): Assert that the function is not internal.
5731 (gimple_call_set_fn): Likewise.
5732 (gimple_call_set_fndecl): Likewise.
5733 (gimple_call_set_internal_fn): New function.
5734 (gimple_call_addr_fndecl): Handle null functions.
5735 (gimple_call_return_type): Likewise null types.
5736 * gimple.c (gimple_build_call_internal_1): New function.
5737 (gimple_build_call_internal): Likewise.
5738 (gimple_build_call_internal_vec): Likewise.
5739 (gimple_call_same_target_p): Likewise.
5740 (gimple_call_flags): Handle calls to internal functions.
5741 (gimple_call_fnspec): New function.
5742 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5743 (gimple_has_side_effects): Handle null functions.
5744 (gimple_rhs_has_side_effects): Likewise.
5745 (gimple_call_copy_skip_args): Handle calls to internal functions.
5746 * cfgexpand.c (expand_call_stmt): Likewise.
5747 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5748 * gimple-fold.c (gimple_fold_call): Handle null functions.
5749 (gimple_fold_stmt_to_constant_1): Don't fold
5750 calls to internal functions.
5751 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5752 functions.
5753 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5754 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5755 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5756 (do_warn_unused_result): Likewise.
5757 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5758 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5759 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5760 the target of a call.
5761 (initialize_hash_element): Update accordingly.
5762 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5763 (iterative_hash_hashable_expr): Handle calls to internal functions.
5764 (print_expr_hash_elt): Likewise.
5765 * tree-ssa-pre.c (can_value_number_call): Likewise.
5766 (eliminate): Handle null functions.
5767 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5768 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5769 (find_func_aliases): Likewise.
5770 * value-prof.c (gimple_ic_transform): Likewise.
5771 (gimple_indirect_call_to_profile): Likewise.
5772 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5773 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5774
5775 2011-04-19 Jan Hubicka <jh@suse.cz>
5776
5777 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5778 * ipa-inline.c (inline_small_functions): Compute summaries first,
5779 populate heap later.
5780
5781 2011-04-19 Jan Hubicka <jh@suse.cz>
5782
5783 * cgraph.h (save_inline_function_body): Remove.
5784 * ipa-inline-transform.c: New file, broke out of...
5785 * ipa-inline.c: ... this one; Update toplevel comment.
5786 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5787 make global.
5788 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5789 (cgraph_mark_inline_edge): Rename to inline_call; move to
5790 ipa-inline-transform.c.
5791 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5792 move to ipa-inline-transform.c
5793 (recursive_inlining, inline_small_functions, flatten_function,
5794 ipa_inline, inline_always_inline_functions,
5795 early_inline_small_functions): Update.
5796 (inline_transform): Move to ipa-inline-transform.c.
5797 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5798 Declare.
5799 * Makefile.in (ipa-inline-transform.o): New file.
5800 * cgraphunit.c (save_inline_function_body): Move to
5801 ipa-inline-transform.c
5802
5803 2011-04-19 DJ Delorie <dj@redhat.com>
5804
5805 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5806 registers if we already know there aren't any.
5807 (m32c_emit_epilogue): Don't emit a barrier here.
5808 (m32c_emit_eh_epilogue): Likewise.
5809 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5810 operands at expand time.
5811 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5812 int" wchar type.
5813 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5814 duplicates. Provide aliases instead.
5815 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5816 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5817 the compiler.
5818
5819 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5820
5821 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5822 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5823 (general_or_i64_p, sparc_register_move_cost): New function.
5824
5825 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5826
5827 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5828 Add lynx, mipssde. Sort table.
5829
5830 2011-04-19 Xinliang David Li <davidxl@google.com>
5831
5832 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5833 not negative.
5834
5835 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5836
5837 PR target/48678
5838 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5839 is a SUBREG with non-MODE_INT mode inside of it.
5840
5841 2011-04-19 Martin Jambor <mjambor@suse.cz>
5842
5843 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5844 also according to actual contants.
5845 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5846 (gimple_fold_call): Use it.
5847 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5848
5849 2011-04-19 Martin Jambor <mjambor@suse.cz>
5850
5851 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5852 non-pointer assignments.
5853
5854 2011-04-19 Martin Jambor <mjambor@suse.cz>
5855
5856 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5857 account anc_offset and otr_type from the indirect edge info.
5858 * ipa-prop.c (get_ancestor_addr_info): New function.
5859 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5860 get_ancestor_addr_info, call it.
5861 (ipa_note_param_call): Do not initialize information about polymorphic
5862 calls, return the indirect call graph edge. Remove the last
5863 parameter, adjust all callers.
5864 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5865 parameters. Initialize polymorphic information in the indirect edge.
5866
5867 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5868
5869 PR lto/48148
5870 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5871 the types if they have different enumeration identifiers.
5872
5873 2011-04-19 Jan Hubicka <jh@suse.cz>
5874
5875 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5876 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5877 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5878 (optimize_function_for_size_p) ... here.
5879
5880 2011-04-19 Richard Guenther <rguenther@suse.de>
5881
5882 PR lto/48207
5883 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5884 langhook.
5885
5886 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5887
5888 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5889 if DECL_NO_INLINE_WARNING_P is set on the function.
5890
5891 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5892
5893 PR fortran/47976
5894 * reload1.c (inc_for_reload): Return void. All callers changed.
5895 (emit_input_reload_insns): Don't try to delete previous output
5896 reloads to a register, or record spill_reg_store for autoincs.
5897
5898 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5899
5900 * gengtype.h: Updated copyright year.
5901 (struct input_file_st): Add inpisplugin field.
5902 (type_fileloc): New function.
5903 * gengtype.c
5904 (write_typed_struct_alloc_def): Add gcc_assert.
5905 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5906 (write_typed_alloc_defns): Don't output for plugin files.
5907 (input_file_by_name): Clear inpisplugin field.
5908 (main): Set inpisplugin field for plugin files.
5909
5910 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5911
5912 * gengtype-state.c (string_eq): New.
5913 (read_state): Use string_eq instead of strcmp when creating the
5914 state_ident_tab.
5915
5916 2011-04-19 Wei Guozhi <carrot@google.com>
5917
5918 PR target/47855
5919 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5920 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5921 linkage.
5922 * config/arm/constraints.md (Uu): New constraint.
5923 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5924
5925 2011-04-19 Tristan Gingold <gingold@adacore.com>
5926
5927 * config.gcc (-*-*-*vms): Added.
5928 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5929 definitions moved.
5930 * config/vms/vms-ld.c: New file.
5931 * config/vms/vms-ar.c: New file.
5932 * config/vms/t-vmsnative: New file.
5933
5934 2011-04-18 Xinliang David Li <davidxl@google.com>
5935
5936 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5937
5938 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5939
5940 PR middle-end/48661
5941 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5942 if TREE_TYPE (v) is non-NULL.
5943
5944 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5945 gimple_get_virt_mehtod_for_binfo.
5946 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5947 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5948 callers.
5949 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5950
5951 2011-04-18 Michael Matz <matz@suse.de>
5952 Steve Ellcey <sje@cup.hp.com>
5953
5954 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5955 use its mode as source mode if it isn't VOIDmode.
5956
5957 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5958
5959 * doc/passes.texi: Fill crossref nodes.
5960
5961 2011-04-18 Jim Meyering <meyering@redhat.com>
5962
5963 Fix doubled-word typos in comments and strings
5964 * config/alpha/vms-unwind.h: s/for for/for/
5965 * config/arm/unwind-arm.h: Likewise.
5966 * config/microblaze/microblaze.c: Likewise.
5967 * config/sh/constraints.md: s/in in/in/
5968 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5969
5970 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5971
5972 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5973 (AVX_FLOAT_MODE_P): Ditto.
5974 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5975 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5976 (AVX_VEC_FLOAT_MODE_P): Ditto.
5977 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5978 (UNSPEC_MASKSTORE): Ditto.
5979 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5980 Merge from <sse>_movmsk<ssemodesuffix> and
5981 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5982 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5983 iterator.
5984 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5985 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5986 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5987
5988 2011-04-18 Jan Hubicka <jh@suse.cz>
5989
5990 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5991
5992 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5993 (want_inline_function_called_once_p): Break out the logic from
5994 ipa_inline.
5995 (edge_badness): Ensure that profile is not misupdated.
5996 (lookup_recursive_calls): Prioritize by call frequencies.
5997 (inline_small_functions): Move program size estimates here;
5998 actually process whole queue even when unit growth has been
5999 met. (to properly compute inline_failed reasons and for the
6000 case unit size decrease.) Revisit comments on recursive inlining.
6001 (ipa_inline): Remove unit summary code; first inline hot calls
6002 of functions called once, cold calls next.
6003 (order, nnodes): Remove unused variables.
6004 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6005 (GTFILES): Remove ipa-inline.c
6006 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6007
6008 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6009
6010 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6011
6012 2011-04-18 Jie Zhang <jie@codesourcery.com>
6013 Richard Earnshaw <rearnsha@arm.com>
6014
6015 * arm.c (neon_builtin_type_bits): Remove.
6016 (typedef enum neon_builtin_mode): New.
6017 (T_MAX): Don't define.
6018 (typedef enum neon_builtin_datum): Remove bits, codes[],
6019 num_vars and base_fcode. Add mode, code and fcode.
6020 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6021 VAR10): Change accordingly.
6022 (neon_builtin_data[]): Change accordingly
6023 (arm_init_neon_builtins): Change accordingly.
6024 (neon_builtin_compare): Remove.
6025 (locate_neon_builtin_icode): Remove.
6026 (arm_expand_neon_builtin): Change accordingly.
6027
6028 * arm.h (enum arm_builtins): Move to ...
6029 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6030
6031 * arm.c (arm_builtin_decl): Declare.
6032 (TARGET_BUILTIN_DECL): Define.
6033 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6034 (arm_builtin_decls[]): New.
6035 (arm_init_neon_builtins): Store builtin declarations in
6036 arm_builtin_decls[].
6037 (arm_init_tls_builtins): Likewise.
6038 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6039 (arm_builtin_decl): New.
6040
6041 2011-04-18 Richard Guenther <rguenther@suse.de>
6042
6043 * tree.c (upper_bound_in_type): Build properly canonicalized
6044 INTEGER_CSTs.
6045 (lower_bound_in_type): Likewise.
6046
6047 2011-04-18 Richard Guenther <rguenther@suse.de>
6048
6049 * gimple.h (gimple_call_addr_fndecl): New function.
6050 (gimple_call_fndecl): Use it.
6051 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6052 for direct calls.
6053 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6054 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6055
6056 2011-04-18 Richard Guenther <rguenther@suse.de>
6057
6058 PR middle-end/48650
6059 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6060
6061 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6062
6063 PR lto/48492
6064 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6065 DECL_IN_CONSTANT_POOL without RTL.
6066
6067 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6068 Ira Rosen <ira.rosen@linaro.org>
6069
6070 PR target/48252
6071 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6072 to match neon_vzip/vuzp/vtrn_internal.
6073 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6074 outputs explicitly dependent on both inputs.
6075 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6076
6077 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6078
6079 PR tree-optimization/48616
6080 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6081 whether the shift is by scalar or vector based on whether all SLP
6082 scalar stmts have the same rhs.
6083
6084 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6085
6086 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6087 memory operands.
6088
6089 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6090
6091 PR target/43700
6092 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6093 registers.
6094
6095 2011-04-17 Jan Hubicka <jh@suse.cz>
6096
6097 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6098 * cgrpahunit.c (cgraph_finalize_function): Do not set
6099 finalized_by_frontend.
6100 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6101 finalized_by_frontend.
6102
6103 2011-04-17 Jan Hubicka <jh@suse.cz>
6104
6105 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6106 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6107 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6108 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6109 method.
6110 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6111 gimple-fold.c
6112 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6113
6114 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6115
6116 PR lto/48538
6117 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6118 is non-null before accessing it.
6119 (input_cgraph): Remove trailing spaces.
6120
6121 2011-04-17 Revital Eres <revital.eres@linaro.org>
6122
6123 * params.def (sms-min-sc): New param flag.
6124 * modulo-sched.c (sms_schedule): Use it.
6125 * doc/invoke.texi (sms-min-sc): Document it.
6126
6127 2011-04-17 Jan Hubicka <jh@suse.cz>
6128
6129 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6130 present, also set gimple_call_set_cannot_inline.
6131 * ipa-inline.c: Update toplevel comment.
6132 (MAX_TIME): Remove.
6133 (cgraph_clone_inlined_nodes): Fix linebreaks.
6134 (cgraph_check_inline_limits): Restructure to ...
6135 (caller_growth_limits): ... this one; be more tolerant
6136 on growth in nested inline chains; add explanatory comment;
6137 fix stack accounting thinko introduced by previous patch.
6138 (cgraph_default_inline_p): Remove.
6139 (report_inline_failed_reason): New function.
6140 (can_inline_edge_p): New function.
6141 (can_early_inline_edge_p): New function.
6142 (leaf_node_p): Move upwards in file.
6143 (want_early_inline_function_p): New function.
6144 (want_inline_small_function_p): New function.
6145 (want_inline_self_recursive_call_p): New function.
6146 (cgraph_edge_badness): Rename to ...
6147 (edge_badness) ... this one; fix linebreaks.
6148 (update_edge_key): Update call of edge_baddness; add
6149 detailed dump about queue updates.
6150 (update_caller_keys): Use can_inline_edge_p and
6151 want_inline_small_function_p.
6152 (cgraph_decide_recursive_inlining): Rename to...
6153 (recursive_inlining): Use can_inline_edge_p and
6154 want_inline_self_recursive_call_p; simplify and remove no longer
6155 valid FIXME.
6156 (cgraph_set_inline_failed): Remove.
6157 (add_new_edges_to_heap): Use can_inline_edge_p and
6158 want_inline_small_function_p.
6159 (cgraph_decide_inlining_of_small_functions): Rename to ...
6160 (inline_small_functions): ... this one; cleanup; use
6161 can/want predicates; cleanup debug ouput; work edges till fibheap
6162 is exhausted and do not stop once unit growth is reached; remove
6163 later loop processing remaining edges.
6164 (cgraph_flatten): Rename to ...
6165 (flatten_function): ... this one; use can_inline_edge_p
6166 and can_early_inline_edge_p predicates.
6167 (cgraph_decide_inlining): Rename to ...
6168 (ipa_inline): ... this one; remove unreachable nodes before
6169 inlining functions called once; simplify the pass.
6170 (cgraph_perform_always_inlining): Rename to ...
6171 (inline_always_inline_functions): ... this one; use
6172 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6173 (cgraph_decide_inlining_incrementally): Rename to ...
6174 (early_inline_small_functions): ... this one; simplify
6175 using new predicates; cleanup; make dumps prettier.
6176 (cgraph_early_inlining): Rename to ...
6177 (early_inliner): newer inline regular functions into always-inlines;
6178 fix updating of call stmt summaries.
6179 (pass_early_inline): Update for new names.
6180 (inline_transform): Fix formating.
6181 (gate_cgraph_decide_inlining): Rename to ...
6182 (pass_ipa_inline): ... this one.
6183 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6184 * ipa-inline-analysis.c (dump_inline_summary): Update.
6185 (compute_inline_parameters): Do not compute disregard_inline_limits;
6186 look for mismatching arguments.
6187 (estimate_growth): Fix handlig of non-trivial self recursion.
6188 (inline_read_summary): Do not read info->disregard_inline_limits.
6189 (inline_write_summary): Do not write info->disregard_inline_limits.
6190 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6191 and move all checks into can_inline_edge_p predicate; re-enable code
6192 comparing optimization levels.
6193 (expand_call_inline): Do not test inline_forbidden_into_p.
6194 * Makefile.in (ipa-inline.o): Update arguments.
6195
6196 2011-04-17 Revital Eres <revital.eres@linaro.org>
6197
6198 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6199
6200 2011-04-17 Revital Eres <revital.eres@linaro.org>
6201
6202 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6203
6204 2011-04-17 Michael Matz <matz@suse.de>
6205
6206 PR tree-optimization/48622
6207 PR lto/48645
6208 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6209 in same order as they're written.
6210
6211 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6212
6213 * config/pa/predicates.md: Reorganize and simplify predicates.
6214 Eliminate duplicate code checks.
6215 (arith_operand): Rename to arith14_operand
6216 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6217 * config/pa/pa.md: Use renamed operands.
6218 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6219 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6220 arith11_operand, adddi3_operand, indexed_memory_operand,
6221 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6222 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6223 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6224 move_dest_operand, move_src_operand, prefetch_cc_operand,
6225 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6226 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6227 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6228 div_operand, int5_operand, movb_comparison_operator,
6229 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6230 arith_double_operand, ireg_operand, lhs_lshift_operand,
6231 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6232 integer_store_memory_operand): Likewise.
6233 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6234 (integer_store_memory_operand, read_only_operand,
6235 function_label_operand, borx_reg_operand,
6236 non_hard_reg_operand): Likewise.
6237 (eq_neq_comparison_operator): Delete unused operator.
6238 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6239 function_label_operand.
6240 (emit_move_sequence): Likewise.
6241
6242 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6243
6244 * config/i386/sse.md (sseunpackmode): New mode attribute.
6245 (ssepackmode): Ditto.
6246 (vec_pack_trunc_<mode>): Macroize expander from
6247 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6248 (vec_unpacks_lo_<mode>): Macroize expander from
6249 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6250 (vec_unpacks_hi_<mode>): Macroize expander from
6251 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6252 (vec_unpacku_lo_<mode>): Macroize expander from
6253 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6254 (vec_unpacku_hi_<mode>): Macroize expander from
6255 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6256 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6257 ix86_expand_sse4_unpack.
6258 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6259
6260 2011-04-16 Jan Hubicka <jh@suse.cz>
6261
6262 * cgraphbuild.c: Include ipa-inline.h.
6263 (reset_inline_failed): Use initialize_inline_failed.
6264 * cgraph.c: Include ipa-inline.h.
6265 (cgraph_create_node_1): Do not initialize estimated_growth.
6266 (initialize_inline_failed): More to ipa-inline-analysis.c
6267 (dump_cgraph_node): Do not dump inline flags.
6268 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6269 and disregard_inline_limits flags.
6270 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6271 time, size, estimated_growth.
6272 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6273 Update.
6274 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6275 DECL_DISREGARD_INLINE_LIMITS.
6276 (cgraph_analyze_function): Do not initialize
6277 node->local.disregard_inline_limits.
6278 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6279 inlinable, versionable and disregard_inline_limits.
6280 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6281 cgraph_check_inline_limits, cgraph_default_inline_p,
6282 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6283 add_new_edges_to_heap): Update.
6284 (cgraph_decide_inlining_of_small_function): Update; set
6285 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6286 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6287 cgraph_decide_inlining_incrementally): Update.
6288 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6289 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6290 time, size and estimated_growth parameters.
6291 (estimate_edge_growth): Update.
6292 (initialize_inline_failed): Declare.
6293 * ipa-split.c: Include ipa-inline.h
6294 (execute_split_functions): Update.
6295 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6296 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6297 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6298 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6299 estimated_growth to INT_MIN.
6300 (inline_node_duplication_hook): Likewise.
6301 (dump_inline_summary): Dump new fields.
6302 (compute_inline_parameters): Update.
6303 (estimate_edge_time, estimate_time_after_inlining,
6304 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6305 inline_write_summary):
6306 (initialize_inline_failed): Move here from cgraph.c.
6307 * tree-sra.c: Include ipa-inline.h.
6308 (ipa_sra_preliminary_function_checks): Update.
6309 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6310 ipa-inline.h.
6311
6312 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6313
6314 * config/i386/sse.md (V16): New mode iterator.
6315 (VI1, VI8): Ditto.
6316 (AVXMODEQI, AVXMODEDI): Remove.
6317 (sse2, sse3): New mode attribute.
6318 (mov<mode>): Use V16 mode iterator.
6319 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6320 (push<mode>1): Use V16 mode iterator.
6321 (movmisalign<mode>): Ditto.
6322 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6323 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6324 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6325 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6326 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6327 avx_movdqu<avxmodesuffix>.
6328 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6329 *avx_movdqu<avxmodesuffix>.
6330 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6331 avx_lddqu<avxmodesuffix>.
6332 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6333 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6334 avx_movnt<AVXMODEDI:mode>.
6335 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6336 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6337
6338 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6339
6340 PR target/48629
6341 * haifa-sched.c (prune_ready_list, schedule_block): Use
6342 sched_pressure_p rather than flag_sched_pressure.
6343
6344 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6345
6346 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6347 cgraph_get_node instead of cgraph_get_create_node.
6348
6349 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6350
6351 * cfgexpand.c (expand_debug_expr): Use
6352 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6353
6354 2011-04-15 Michael Matz <matz@suse.de>
6355
6356 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6357 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6358 * function.c (gimplify_parameters): Ditto.
6359 * gimplify.c (gimplify_vla_decl): Ditto.
6360
6361 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6362 (gimple_call_set_alloca_for_var): New inline function.
6363 (gimple_call_alloca_for_var_p): Ditto.
6364 * gimple.c (gimple_build_call_from_tree): Remember
6365 CALL_ALLOCA_FOR_VAR_P state.
6366 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6367
6368 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6369 calls if they were for VLA objects.
6370
6371 2011-04-15 Martin Jambor <mjambor@suse.cz>
6372
6373 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6374 of ADR_EXPRs.
6375
6376 2011-04-15 Martin Jambor <mjambor@suse.cz>
6377
6378 PR middle-end/48601
6379 * tree-emutls.c (lower_emutls_function_body): Call
6380 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6381 result is non-NULL.
6382
6383 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6384
6385 * c-decl.c (detect_field_duplicates): Call
6386 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6387
6388 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6389
6390 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6391 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6392 * ipa-pure-const.c (check_stmt): Call it.
6393 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6394
6395 2011-04-15 Richard Guenther <rguenther@suse.de>
6396
6397 PR tree-optimization/48290
6398 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6399 Properly decide inhibiting propagation based on the valueized
6400 operand. Do loop-closed SSA form preserving here ...
6401 (init_copy_prop): ... not here.
6402
6403 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6404
6405 PR target/48612
6406 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6407 (*ieee_smax<mode>3): Likewise.
6408
6409 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6410
6411 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6412 Replace match_operand with match_dup for the third operand in
6413 these expanders.
6414
6415 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6416
6417 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6418 to track processing of conditionals. Update all callers.
6419 (try_combine, simplify_if_then_else): Update.
6420
6421 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6422
6423 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6424 -fsched-pressure.
6425
6426 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6427
6428 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6429 instead of match_operand for operand 3.
6430
6431 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6432
6433 * recog.h (insn_operand_data): Add an "allows_mem" field.
6434 * genoutput.c (output_operand_data): Initialize it.
6435 * optabs.c (maybe_legitimize_operand_same_code): New function.
6436 (maybe_legitimize_operand): Use it when matching the original
6437 op->value.
6438
6439 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6440
6441 * gimplify.c: Fix issues in comments throughout.
6442 (voidify_wrapper_expr): Fix long line.
6443 (build_stack_save_restore): Likewise.
6444 (gimplify_loop_expr): Likewise.
6445 (gimplify_compound_lval): Likewise.
6446 (gimplify_init_ctor_eval): Likewise.
6447 (gimplify_modify_expr_rhs): Likewise.
6448 (omp_notice_threadprivate_variable): Likewise.
6449
6450 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6451
6452 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6453 original one if this is not a builtin function.
6454
6455 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6456
6457 PR target/48605
6458 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6459 offset it as needed based on top 2 bits in operands[3], change
6460 MEM mode to SFmode and mask those 2 bits away from operands[3].
6461
6462 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6463
6464 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6465 change from objc_declare_protocols() to objc_declare_protocol().
6466
6467 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6468
6469 * config/i386/sse.md (sse4_1): New mode attribute.
6470 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6471 avx_blend<ssemodesuffix><avxmodesuffix> and
6472 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6473 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6474 avx_blendv<ssemodesuffix><avxmodesuffix> and
6475 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6476 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6477 avx_dp<ssemodesuffix><avxmodesuffix> and
6478 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6479 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6480 (sse4_1_packusdw): Merge with *avx_packusdw.
6481 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6482 (sse4_1_pblendw): Merge with *avx_pblendw.
6483 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6484 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6485 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6486 VF mode iterator.
6487 (sse4_1_round<ssescalarmodesuffix>): Merge with
6488 *avx_round<ssescalarmodesuffix>.
6489 (aesenc): Merge with *avx_aesenc.
6490 (aesenclast): Merge with *avx_aesenclast.
6491 (aesdec): Merge with *avx_aesdec.
6492 (aesdeclast): Merge with *avx_aesdeclast.
6493 (pclmulqdq): Merge with *pclmulqdq.
6494 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6495 New predicate.
6496 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6497
6498 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6499
6500 PR middle-end/48608
6501 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6502 (align_local_variable): This. Update DECL_ALIGN.
6503 (add_stack_var): Updated.
6504 (expand_one_stack_var): Likewise.
6505
6506 2011-04-14 Richard Guenther <rguenther@suse.de>
6507
6508 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6509 Remove.
6510 (dse_initialize_block_local_data, dse_leave_block,
6511 record_voperand_set, get_stmt_uid): Likewise.
6512 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6513 (dse_optimize_stmt): Remove voperand set handling code.
6514 Simplify and improve to handle any kind of killing stmt.
6515 (dse_record_phi): Remove.
6516 (dse_enter_block): Simplify.
6517 (tree_ssa_dse): Likewise.
6518 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6519
6520 2011-04-14 Jan Hubicka <jh@suse.cz>
6521
6522 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6523 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6524 (cgraph_local_info): Remove inline_summary.
6525 * ipa-cp.c: Include ipa-inline.h.
6526 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6527 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6528 accesor.
6529 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6530 (input_overwrite_node): Do not set inline summary.
6531 (input_node): Do not stream inline summary.
6532 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6533 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6534 growth; we do not have inline parameters computed for that anyway.
6535 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6536 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6537 (inline_summary_t): New type and VECtor.
6538 (debug_inline_summary, dump_inline_summaries): Declare.
6539 (inline_summary): Use VOCtor.
6540 (estimate_edge_growth): Kill hack computing call stmt size directly.
6541 * lto-section-in.c (lto_section_name): Add inline section.
6542 * ipa-inline-analysis.c: Include lto-streamer.h
6543 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6544 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6545 (inline_summary_vec): Define.
6546 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6547 dump_inline_summaries): New functions.
6548 (estimate_function_body_sizes): Properly compute size/time of outgoing
6549 calls.
6550 (compute_inline_parameters): Alloc inline_summary; do not compute
6551 size/time of incomming calls.
6552 (estimate_edge_time): Avoid missing time summary hack.
6553 (inline_read_summary): Read inline summary info.
6554 (inline_write_summary): Write inline summary info.
6555 (inline_free_summary): Free all hooks and inline summary vector.
6556 * lto-streamer.h: Add LTO_section_inline_summary section.
6557 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6558 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6559
6560 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6561
6562 * tree-vectorizer.h (vect_strided_store_supported): Add a
6563 HOST_WIDE_INT argument.
6564 (vect_strided_load_supported): Likewise.
6565 (vect_permute_store_chain): Return void.
6566 (vect_transform_strided_load): Likewise.
6567 (vect_permute_load_chain): Delete.
6568 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6569 count argument. Check that the count is a power of two.
6570 (vect_strided_load_supported): Likewise.
6571 (vect_permute_store_chain): Return void. Update after above changes.
6572 Assert that the access is supported.
6573 (vect_permute_load_chain): Likewise.
6574 (vect_transform_strided_load): Return void.
6575 * tree-vect-stmts.c (vectorizable_store): Update calls after
6576 above interface changes.
6577 (vectorizable_load): Likewise.
6578 (vect_analyze_stmt): Don't check for strided powers of two here.
6579
6580 2011-04-14 Richard Guenther <rguenther@suse.de>
6581
6582 PR tree-optimization/48590
6583 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6584 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6585 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6586 BUILT_IN_STACK_SAVE.
6587 * tree-ssa-dce.c (propagate_necessity): Handle
6588 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6589
6590 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6591
6592 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6593 objc_declare_class.
6594
6595 2011-04-14 Richard Guenther <rguenther@suse.de>
6596
6597 * tree.h (get_object_alignment_1): Declare.
6598 * builtins.c (get_object_alignment_1): Split out worker from ...
6599 (get_object_alignment): ... here.
6600 * fold-const.c (get_pointer_modulus_and_residue): Use
6601 get_object_alignment_1.
6602
6603 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6604
6605 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6606 type parameter.
6607 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6608 parameter. Generalise code to handle arrays as well as vectors.
6609 (vect_setup_realignment): Update accordingly.
6610 * tree-vect-stmts.c (vectorizable_store): Likewise.
6611 (vectorizable_load): Likewise.
6612
6613 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6614
6615 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6616 within the per-copy loop.
6617
6618 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6619
6620 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6621 in the dump file.
6622
6623 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6624
6625 * doc/options.texi (Negative): Explicitly mention that the
6626 Negative chain must be circular.
6627
6628 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6629
6630 * function.h (block_chainon): Declare.
6631 * function.c (block_chainon): Define.
6632
6633 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6634 Eric Weddington <eric.weddington@atmel.com>
6635 Georg-Johann Lay <avr@gjlay.de>
6636
6637 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6638 New Includes
6639 (avr_init_builtins, avr_expand_builtin,
6640 avr_expand_delay_cycles, avr_expand_unop_builtin,
6641 avr_expand_binop_builtin ): New functions.
6642 (avr_builtin_id): New enum
6643 (struct avr_builtin_description): New struct
6644 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6645 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6646
6647 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6648 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6649 UNSPECV_DELAY_CYCLES): new enumeration values
6650 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6651 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6652 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6653 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6654 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6655 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6656 "fmulsu"): New insns
6657
6658 * config/avr/avr-c.c: fix line endings
6659 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6660 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6661 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6662 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6663 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6664
6665 * doc/extend.texi (AVR Built-in Functions): New node
6666 (Target Builtins): Add documentation of AVR
6667 built-in functions.
6668
6669 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6670
6671 PR target/44643
6672 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6673 alone. Error if non-const data has attribute progmem.
6674
6675 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6676
6677 * tree.h (struct tree_constructor): Include tree_typed instead of
6678 tree_common.
6679 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6680 TS_TYPED instead of TS_COMMON.
6681
6682 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6683
6684 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6685 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6686 (sse2_psadbw): Merge with *avx_psadbw.
6687 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6688 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6689 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6690 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6691 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6692 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6693 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6694 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6695 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6696 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6697 (ssse3_palignrti): Merge with *avx_palignrti.
6698
6699 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6700
6701 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6702 * tree-ssanames.c (fini_ssanames): VEC_free it.
6703 (make_ssa_name_fn): Update for VECness of free_ssanames.
6704 (release_ssa_name, release_dead_ssa_names): Likewise.
6705 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6706 tree_common.
6707 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6708 TS_TYPED instead of TS_COMMON.
6709
6710 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6711
6712 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6713 statistics_counter_event.
6714 * tree-ssa-copyrename.c (stats): Define.
6715 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6716 statistics_counter_event.
6717 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6718 (bswap_stats, widen_mul_stats): Define.
6719 (insert_reciprocals): Increment rdivs_inserted.
6720 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6721 rfuncs_inserted. Add calls to statistics_counter_event.
6722 (execute_cse_sincos_1): Increment inserted.
6723 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6724 statistics_counter_event.
6725 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6726 of bswap_stats. Add calls to statistics_counter_event.
6727 (convert_mult_to_widen): Increment widen_mults_inserted.
6728 (convert_plusminus_to_widen): Increment maccs_inserted.
6729 (convert_mult_to_fma): Increment fmas_inserted.
6730 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6731 calls to statistics_counter_event.
6732
6733 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6734
6735 PR rtl-optimization/48455
6736 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6737 `temp_costs->mem_cost'.
6738
6739 2011-04-13 Jan Hubicka <jh@suse.cz>
6740
6741 * ipa-inline.h: New file.
6742 * ipa-inline-analysis.c: New file. Broken out of ...
6743 * ipa-inline.c: ... this file; update toplevel comment;
6744 include ipa-inline.h
6745 (inline_summary): Move to ipa-inline.h
6746 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6747 ipa-inline-analysis.c.
6748 (cgraph_estimate_time_after_inlining): Rename to
6749 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6750 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6751 to estimate_edge_growth.
6752 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6753 rename to estimate_size_after_inlining.
6754 (cgraph_mark_inline_edge): Update for new naming convention.
6755 (cgraph_check_inline_limits): Likewise.
6756 (cgraph_edge_badness): Likewise.
6757 (cgraph_decide_recursive_inlining): Likewise.
6758 (cgraph_decide_inlining_of_small_functions): Likewise.
6759 (cgraph_decide_inlining_incrementally): Likewise.
6760 (cgraph_estimate_growth): Rename to estimate_growth; move to
6761 ipa-inline-analysis.c.
6762 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6763 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6764 (compute_inline_parameters): Likewise.
6765 (compute_inline_parameters_for_current): Likewise.
6766 (pass_inline_parameters): Likewise.
6767 (inline_indirect_intraprocedural_analysis): Likewise.
6768 (analyze_function): Rename to inline_analyze_function; likewise.
6769 (add_new_function): Move to ipa-inline-analysis.c.
6770 (inline_generate_summary): Likewise.
6771 (inline_read_summary): Likewise.
6772 (inline_write_summary): Likewise.
6773 * Makefile.in (ipa-inline-analysis.c): New file.
6774
6775 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6776
6777 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6778 * configure: Regenerate.
6779
6780 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6781
6782 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6783 instead of tree_common.
6784 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6785 Likewise.
6786 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6787 TS_TYPED rather than TS_COMMON.
6788 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6789
6790 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6791
6792 PR target/45263
6793 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6794 r20 around calls of __tablejump_elpm__
6795
6796 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6797
6798 PR middle-end/48591
6799 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6800 NULL.
6801 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6802
6803 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6804
6805 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6806 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6807 (cfi_vec): New typedef.
6808 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6809 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6810 (cie_cfi_vec): New static variable.
6811 (cie_cfi_head): Delete.
6812 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6813 declaration changed. Use vector rather than list operations.
6814 (new_cfi): Don't initialize the dw_cfi_next field.
6815 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6816 rather than list operations.
6817 (lookup_cfa): Use vector rather than list operations.
6818 (output_cfis): New argument upto. Accept a cfi_vec rather than
6819 a dw_cfi_ref list head as argument. All callers changed.
6820 Iterate over the vector using upto as a maximum index.
6821 (output_all_cfis): New static function.
6822 (output_fde): Use vector rather than list operations. Use the
6823 new upto argument for output_cfis rather than manipulating a
6824 list.
6825 (dwarf2out_begin_prologue): Change initializations to match
6826 new struct members.
6827 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6828 from the vector length rather than searching for the end of a list.
6829 Use output_all_cfis.
6830 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6831
6832 2011-04-13 Nick Clifton <nickc@redhat.com>
6833
6834 * config/rx/rx.md (movmemsi): Do not use this pattern when
6835 volatile pointers are involved.
6836
6837 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6838
6839 * config/i386/sse.md (pinsrbits): Remove.
6840 (sse2_packsswb): Merge with *avx_packsswb.
6841 (sse2_packssdw): Merge with *avx_packssdw.
6842 (sse2_packuswb): Merge with *avx_packuswb.
6843 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6844 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6845 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6846 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6847 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6848 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6849 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6850 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6851 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6852 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6853 (sse2_loadld): Merge with *avx_loadld.
6854 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6855 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6856 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6857 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6858 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6859
6860 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6861
6862 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6863 calling TREE_CHAIN.
6864 * print-tree.c (print_node): Likewise.
6865 * tree-inline.c (copy_tree_r): Likewise.
6866 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6867 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6868 instead of TS_COMMON.
6869 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6870 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6871 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6872 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6873 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6874 ...and these...
6875 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6876 * tree.h: ...here.
6877 (TREE_CHAIN): Check for a TS_COMMON structure.
6878 (TREE_TYPE): Check for a TS_TYPED structure.
6879
6880 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6881
6882 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6883 cgraph_get_create_node instead of cgraph_node.
6884
6885 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6886
6887 * c-parser.c (c_parser_initelt): Updated call to
6888 objc_build_message_expr.
6889 (c_parser_postfix_expression): Likewise.
6890
6891 2011-04-12 Kai Tietz <ktietz@redhat.com>
6892
6893 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6894 MASK_MS_BITFIELD_LAYOUT bit.
6895
6896 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6897
6898 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6899 assert it is always true.
6900 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6901 moves.
6902
6903 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6904
6905 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6906 compiling Objective-C to be more efficient.
6907
6908 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6909
6910 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6911 argv_copied.
6912
6913 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6914
6915 * recog.h, genoutput.c, optabs.c: Revert last patch.
6916
6917 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6918
6919 PR target/48090
6920 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6921
6922 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6923
6924 * recog.h (insn_operand_data): Add an "allows_mem" field.
6925 * genoutput.c (output_operand_data): Initialize it.
6926 * optabs.c (maybe_legitimize_operand_same_code): New function.
6927 (maybe_legitimize_operand): Use it when matching the original
6928 op->value.
6929
6930 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6931
6932 * genpreds.c (process_define_predicate): Move most processing
6933 to gensupport.c. Continue to validate the expression.
6934 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6935 (process_define_predicate): Move processing to gensupport.c.
6936 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6937 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6938 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6939 argument.
6940 (valid_predicate_name_p): New function, split out from old
6941 genpreds.c:process_define_predicate.
6942 (process_define_predicate): New function, combining code from
6943 old genpreds.c and genrecog.c functions.
6944 (process_rtx): Call it for DEFINE_PREDICATE and
6945 DEFINE_SPECIAL_PREDICATE.
6946
6947 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6948
6949 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6950 size of a '%A' memory reference.
6951 (T_DREG, T_QREG): New neon_builtin_type_bits.
6952 (arm_init_neon_builtins): Assert that the load and store operands
6953 are neon_struct_operands.
6954 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6955 (NEON_ARG_MEMORY): New builtin_arg.
6956 (neon_dereference_pointer): New function.
6957 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6958 Handle NEON_ARG_MEMORY.
6959 (arm_expand_neon_builtin): Update after above interface changes.
6960 Use NEON_ARG_MEMORY for loads and stores.
6961 * config/arm/predicates.md (neon_struct_operand): New predicate.
6962 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6963 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6964 (V_four_elem): Tweak formatting.
6965 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6966 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6967 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6968 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6969 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6970 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6971 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6972 Use %A in the output template.
6973 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6974 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6975 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6976 the width of the memory access. Remove post-increment.
6977 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6978
6979 2011-04-12 Nick Clifton <nickc@redhat.com>
6980
6981 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6982 instruction for interrupt handlers if the target is the basic V850
6983 architecture.
6984 (expand_epilogue): Likewise.
6985
6986 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6987
6988 PR rtl-optimization/48549
6989 * combine.c (propagate_for_debug): Also stop after BB_END of
6990 this_basic_block. Process LAST and just stop processing after it.
6991 (combine_instructions): If last_combined_insn has been deleted,
6992 set last_combined_insn to its PREV_INSN.
6993
6994 2011-04-12 Richard Guenther <rguenther@suse.de>
6995
6996 PR tree-optimization/46076
6997 * gimple.h (struct gimple_statement_call): Add fntype field.
6998 (gimple_call_fntype): Adjust.
6999 (gimple_call_set_fntype): New function.
7000 * gimple.c (gimple_build_call_1): Set the call function type.
7001 * gimplify.c (gimplify_call_expr): Preserve the function
7002 type the frontend used for the call.
7003 (gimplify_modify_expr): Likewise.
7004 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7005 function type.
7006 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7007 function type.
7008 * tree-ssa.c (useless_type_conversion_p): Function pointer
7009 conversions are useless.
7010
7011 2011-04-12 Martin Jambor <mjambor@suse.cz>
7012
7013 * cgraph.h (cgraph_node): Remove function declaration.
7014 (cgraph_create_node): Declare.
7015 (cgraph_get_create_node): Likewise.
7016 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7017 Updated all callers.
7018 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7019 the decl does not already exist. Call cgraph_get_create_node instead
7020 of cgraph_node.
7021 (cgraph_get_create_node): New function.
7022 (cgraph_same_body_alias): Update comment.
7023 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7024 assert it does not return NULL.
7025 (cgraph_update_edges_for_call_stmt): Likewise.
7026 (cgraph_clone_edge): Likewise.
7027 (cgraph_create_virtual_clone): Likewise.
7028 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7029 instead of cgraph_node.
7030 (cgraph_add_new_function): Call cgraph_create_node or
7031 cgraph_get_create_node instead of cgraph_node.
7032 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7033 instead of cgraph_node.
7034 (record_eh_tables): Likewise.
7035 (mark_address): Likewise.
7036 (mark_load): Likewise.
7037 (build_cgraph_edges): Call cgraph_get_create_node instead
7038 of cgraph_node.
7039 (rebuild_cgraph_edges): Likewise.
7040 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7041 instead of cgraph_node.
7042 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7043 cgraph_node.
7044 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7045 cgraph_create_node instead of cgraph_node.
7046 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7047 of cgraph_node.
7048 * lto-cgraph.c (input_node): Likewise.
7049 * lto-streamer-in.c (input_function): Likewise.
7050 * varasm.c (mark_decl_referenced): Likewise.
7051 (assemble_alias): Likewise.
7052
7053 2011-04-12 Martin Jambor <mjambor@suse.cz>
7054
7055 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7056 instead of cgraph_node and assert it does not return NULL.
7057 * lto-streamer-in.c (lto_read_body): Likewise.
7058 * omp-low.c (new_omp_context): Likewise.
7059 (create_task_copyfn): Likewise.
7060 * tree-emutls.c (lower_emutls_function_body): Likewise.
7061 * matrix-reorg.c (transform_allocation_sites): Likewise.
7062
7063 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7064
7065 PR c/48552
7066 * c-typeck.c (build_asm_expr): Error out on attempts to use
7067 void type outputs or inputs for constraints that allow reg or
7068 don't allow memory.
7069
7070 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7071 Richard Earnshaw <rearnsha@arm.com>
7072
7073 PR target/48250
7074 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7075 to use sign-magnitude offsets. Reject unsupported unaligned
7076 cases. Add detailed description in comments.
7077 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7078 condition from TARGET_32BIT to TARGET_ARM.
7079
7080 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7081
7082 * tree.h (struct typed_tree): New.
7083 (struct tree_common): Include it instead of tree_base.
7084 (TREE_TYPE): Update for new location of type field.
7085 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7086 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7087 (union tree_node): Add typed field.
7088 * treestruct.def (TS_TYPED): New.
7089 * lto-streamer.c (check_handled_ts_structures): Handle it.
7090 * tree.c (MARK_TS_TYPED): New macro.
7091 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7092
7093 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7094
7095 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7096 (force_nonfallthru): Do not alter the loop nest if no basic block
7097 was created.
7098
7099 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7100
7101 * config/i386/sse.md (VI): New mode iterator.
7102 (SSEMODEI): Remove.
7103 (AVX256MODEI): Ditto.
7104 (AVXMODEF4P): Ditto.
7105 (avxvecpsmode): Ditto.
7106 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7107 (sse2_andnot<mode>3): New expander.
7108 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7109 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7110 (<any_logic:code><mode>3): Use VI mode iterator.
7111 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7112 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7113 (*andnottf3): Handle AVX three-operand constraints.
7114 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7115
7116 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7117 Robert Millan <rmh@gnu.org>
7118
7119 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7120 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7121 GNU_USER_DYNAMIC_LINKER64): Define.
7122 (REG_NAME): Don't undefine.
7123 (MD_UNWIND_SUPPORT): Undefine.
7124 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7125 (REG_NAME): Don't undefine.
7126 (MD_UNWIND_SUPPORT): Undefine.
7127 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7128
7129 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7130
7131 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7132 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7133
7134 2011-04-11 Xinliang David Li <davidxl@google.com>
7135
7136 * value-profile.c (check_ic_target): New function.
7137 (gimple_ic_transform): Sanity check indirect call target.
7138 * gimple-low.c (gimple_check_call_args): Interface change.
7139 (gimple_check_call_matching_types): New function.
7140 * tree-inline.c (tree_can_inline_p): Call new function.
7141
7142 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7143
7144 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7145 tree-pretty-print.h & realmpfr.h.
7146
7147 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7148
7149 PR middle-end/48464
7150 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7151 (setup_allocno_and_important_classes): Ditto.
7152
7153 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7154
7155 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7156 GNU_USER_DYNAMIC_LINKER.
7157 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7158 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7159 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7160 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7161 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7162 GNU_USER_TARGET_OS_CPP_BUILTINS.
7163 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7164 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7165 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7166 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7167 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7168 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7169 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7170 GNU_USER_TARGET_OS_CPP_BUILTINS.
7171 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7172 GNU_USER_DYNAMIC_LINKER.
7173 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7174 GNU_USER_TARGET_OS_CPP_BUILTINS.
7175 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7176 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7177 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7178 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7179 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7180 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7181 GNU_USER_DYNAMIC_LINKER64): Remove.
7182 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7183 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7184 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7185 GNU_USER_DYNAMIC_LINKER.
7186 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7187 GNU_USER_TARGET_OS_CPP_BUILTINS.
7188 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7189 GNU_USER_TARGET_OS_CPP_BUILTINS.
7190 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7191 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7192 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7193 GNU_USER_TARGET_OS_CPP_BUILTINS.
7194 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7195 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7196 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7197 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7198 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7199 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7200 GNU_USER_DYNAMIC_LINKER.
7201 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7202 GNU_USER_TARGET_OS_CPP_BUILTINS.
7203 * config/m68k/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
7206 GNU_USER_DYNAMIC_LINKER.
7207 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7208 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7209 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7210 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7211 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7212 GNU_USER_DYNAMIC_LINKER.
7213 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7214 GNU_USER_DYNAMIC_LINKERN32.
7215 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7216 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7217 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7218 GNU_USER_DYNAMIC_LINKER32.
7219 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7220 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7221 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7222 GNU_USER_DYNAMIC_LINKER.
7223 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7224 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7225 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7226 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7227 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7228 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7229 GNU_USER_DYNAMIC_LINKER32.
7230 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7231 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7232 GNU_USER_DYNAMIC_LINKER.
7233 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7234 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7235 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7236 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7237 GNU_USER_DYNAMIC_LINKER64.
7238 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7239 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7240 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7241 GNU_USER_DYNAMIC_LINKER.
7242 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7243 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7244 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7245 GNU_USER_DYNAMIC_LINKER.
7246 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7247 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7248 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7249 GNU_USER_DYNAMIC_LINKER32.
7250 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7251 GNU_USER_DYNAMIC_LINKER64.
7252 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7253 GNU_USER_DYNAMIC_LINKER64.
7254 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7255 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7256 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7257 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7258 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7259
7260 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7261
7262 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7263 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7264 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7265 GNU_USER_DYNAMIC_LINKER.
7266 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7267 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7268 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7269 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7270 GNU_USER_DYNAMIC_LINKER64.
7271 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7272 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7273 GNU_USER_LINK_EMULATION.
7274 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7275 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7276 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7277 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7278 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7279 CPP_SPEC, CC1_SPEC): Remove.
7280 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7281 (GNU_USER_DYNAMIC_LINKER): Define.
7282 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7283 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7284 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7285 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7286 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7287 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7288 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7289 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7290 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7291 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7292 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7293 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7294 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7295 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7296 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7297 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7298 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7299 GNU_USER_DYNAMIC_LINKER.
7300 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7301 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7302 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7303 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7304 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7305 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7306 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7307 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7308 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7309 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7310
7311 2011-04-11 Kai Tietz <ktietz@redhat.com>
7312
7313 PR target/9601
7314 PR target/11772
7315 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7316 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7317 comment.
7318 (ix86_is_msabi_thiscall): Removed.
7319 (ix86_is_type_thiscall): Likewise.
7320 (ix86_get_callcvt): New function.
7321 (ix86_comp_type_attributes): Simplify check.
7322 (ix86_function_regparm): Use ix86_get_callcvt for calling
7323 convention attribute checks.
7324 (ix86_return_pops_args): Likewise.
7325 (ix86_static_chain): Likewise.
7326 (x86_this_parameter): Likewise.
7327 (x86_output_mi_thunk): Likewise.
7328 (ix86_function_type_abi): Optimize check for types without attributes.
7329 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7330 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7331 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7332 by flag-values.
7333 (IX86_BASE_CALLCVT): Helper macro.
7334 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7335 Use ix86_get_callcvt for calling convention attribute checks and avoid
7336 symbol-decoration for stdcall in TARGET_RTD case.
7337 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7338 Likewise.
7339 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7340 for declaration.
7341
7342 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7343
7344 * config/i386/sse.md (VI_128): New mode iterator.
7345 (VI12_128): Rename from SSEMODE12.
7346 (VI14_128): Rename from SSEMODE14.
7347 (VI124_128): New mode iterator.
7348 (VI24_128): Rename from SSEMODE248.
7349 (VI248_128): Rename from SSEMODE248.
7350 (SSEMODE124C8): Remove.
7351 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7352 (*sse2_<plusminus_insn><mode>3): Merge with
7353 *avx_<plusminus_insn><mode>3.
7354 (*mulv8hi3): Merge with *avx_mulv8hi3.
7355 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7356 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7357 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7358 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7359 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7360 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7361 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7362 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7363 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7364 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7365 (*<smaxmin:code>v8hi3): Ditto.
7366 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7367 (*<smaxmin:code>v16qi3): Ditto.
7368 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7369 (*sse2_eq<mode>3): Ditto.
7370 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7371 (*sse2_gt<mode>3): Ditto.
7372 (vcondv2di): Split out of vcond<mode>.
7373 (vconduv2di): Split out of vcondu<mode>.
7374
7375 2011-04-11 Richard Guenther <rguenther@suse.de>
7376
7377 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7378 before calling tree_low_cst.
7379
7380 2011-04-11 Richard Guenther <rguenther@suse.de>
7381
7382 * stor-layout.c (layout_type): Compute all array index size operations
7383 in the original type.
7384 (initialize_sizetypes): Add comment.
7385 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7386
7387 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7388
7389 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7390
7391 2011-04-11 Martin Jambor <mjambor@suse.cz>
7392
7393 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7394 of cgraph_node, handle NULL return value.
7395 (cgraph_global_info): Likewise.
7396 (cgraph_rtl_info): Likewise.
7397 * tree-inline.c (estimate_num_insns): Likewise.
7398 * gimplify.c (unshare_body): Likewise.
7399 (unvisit_body): Likewise.
7400 (gimplify_body): Likewise.
7401 * predict.c (optimize_function_for_size_p): Likewise.
7402 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7403 (call_may_clobber_ref_p_1): Likewise.
7404 * varasm.c (function_section_1): Likewise.
7405 (assemble_start_function): Likewise.
7406
7407 2011-04-11 Martin Jambor <mjambor@suse.cz>
7408
7409 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7410 of cgraph_node.
7411 * final.c (rest_of_clean_state): Likewise.
7412 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7413 * passes.c (pass_init_dump_file): Likewise.
7414 (execute_all_ipa_transforms): Likewise.
7415 (function_called_by_processed_nodes_p): Likewise.
7416 * predict.c (maybe_hot_frequency_p): Likewise.
7417 (probably_never_executed_bb_p): Likewise.
7418 (compute_function_frequency): Likewise.
7419 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7420 (unnest_nesting_tree_1): Likewise.
7421 (lower_nested_functions): Likewise.
7422 * tree-optimize.c (execute_fixup_cfg): Likewise.
7423 (tree_rest_of_compilation): Likewise.
7424 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7425 * tree-sra.c (ipa_early_sra): Likewise.
7426 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7427 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7428 * ipa.c (record_cdtor_fn): Likewise.
7429 * ipa-inline.c (cgraph_early_inlining): Likewise.
7430 (compute_inline_parameters_for_current): Likewise.
7431 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7432 * ipa-pure-const.c (local_pure_const): Likewise.
7433 * ipa-split.c (split_function): Likewise.
7434 (execute_split_functions): Likewise.
7435 * cgraphbuild.c (build_cgraph_edges): Likewise.
7436 (rebuild_cgraph_edges): Likewise.
7437 (cgraph_rebuild_references): Likewise.
7438 (remove_cgraph_callee_edges): Likewise.
7439 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7440 (verify_cgraph_node): Likewise.
7441 (cgraph_analyze_functions): Likewise.
7442 (cgraph_preserve_function_body_p): Likewise.
7443 (save_inline_function_body): Likewise.
7444 (save_inline_function_body): Likewise.
7445 * tree-inline.c (copy_bb): Likewise.
7446 (optimize_inline_calls): Likewise.
7447
7448 2011-04-11 Martin Jambor <mjambor@suse.cz>
7449
7450 PR tree-optimization/48195
7451 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7452 ipa_check_create_edge_args.
7453 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7454 ipa_check_create_edge_args.
7455 * ipa-inline.c (inline_generate_summary): Do not call
7456 ipa_check_create_node_params and ipa_check_create_edge_args.
7457 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7458 ipa_check_create_edge_args.
7459
7460 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7461
7462 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7463 instead of loop.
7464 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7465 * function.c (record_hard_reg_sets): Likewise.
7466 * ira.c (compute_regs_asm_clobbered): Likewise.
7467 * sched-deps.c (sched_analyze_1): Likewise.
7468 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7469
7470 2011-04-09 Xinliang David Li <davidxl@google.com>
7471
7472 PR tree-optimization/PR48484
7473 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7474 has_valid_pred lazily
7475
7476 2011-04-09 Duncan Sands <baldrick@free.fr>
7477
7478 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7479
7480 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7481
7482 * combine.c (combine_validate_cost): Adjust comments. Set registered
7483 cost of I0 to zero at the end, if any.
7484
7485 2011-04-08 Xinliang David Li <davidxl@google.com>
7486
7487 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7488 to insane profile data.
7489
7490 2011-04-08 Xinliang David Li <davidxl@google.com>
7491
7492 * ipa-cp.c (ipcp_update_profiling): Correct
7493 negative scale factor due to insane profile data.
7494
7495 2011-04-08 Xinliang David Li <davidxl@google.com>
7496
7497 * final.c (dump_basic_block_info): New function.
7498 (final): Dump basic block.
7499 (final_scan_insn): Remove old dump.
7500
7501 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7502
7503 PR target/47829
7504 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7505 crtbegin/crtend.
7506
7507 2011-04-08 Michael Matz <matz@suse.de>
7508
7509 PR middle-end/48389
7510 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7511 functions.
7512 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7513 * rtl.h (rebuild_jump_labels_chain): Declare.
7514 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7515 insns inserted on edges.
7516
7517 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7518
7519 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7520 * config/arm/arm-arches.def: New.
7521 * config/arm/arm-opts.h: New.
7522 * config/arm/genopt.sh: New.
7523 * config/arm/arm-tables.opt: New (generated).
7524 * config/arm/arm.c (arm_handle_option, arm_target_help,
7525 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7526 (all_architectures): Get most table contents from arm-arches.def.
7527 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7528 arm_selected_tune here.
7529 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7530 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7531 (march=, mcpu=, mtune=): Use Enum and Var.
7532 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7533 (arm.o): Update dependencies.
7534
7535 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7536
7537 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7538 of header_file.
7539 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7540 (write_typed_alloc_defns): Likewise.
7541 (main): Calls write_typed_alloc_defns with output_header.
7542
7543 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7544
7545 PR inline-asm/48435
7546 * ira-color.c (setup_profitable_hard_regs): Add comments.
7547 Don't take prohibited hard regs into account.
7548 (setup_conflict_profitable_regs): Rename to
7549 get_conflict_profitable_regs.
7550 (check_hard_reg_p): Check prohibited hard regs.
7551
7552 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7553
7554 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7555 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7556 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7557
7558 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7559
7560 PR target/48366
7561 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7562 move from floating point to shift amount register.
7563 (emit_move_sequence): Remove secondary reload support for floating
7564 point to shift amount amount register copies.
7565 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7566 amount register copies.
7567 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7568 register, return false if mode isn't a scalar integer mode.
7569 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7570
7571 2011-04-08 Richard Guenther <rguenther@suse.de>
7572
7573 * gimple.c (gimple_call_flags): Remove kludge.
7574
7575 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7576
7577 * sel-sched.c (sel_region_init): Move call to
7578 sel_setup_region_sched_flags after setup_current_loop_nest.
7579
7580 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7581
7582 PR rtl-optimization/48272
7583 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7584 init_insn_reg_pressure_info. Adjust a caller.
7585 * sched-int.h (init_insn_reg_pressure_info): Declare.
7586 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7587 when sched-pressure is enabled.
7588
7589 2011-04-08 Richard Guenther <rguenther@suse.de>
7590
7591 * gimple.c (gimple_set_modified): Do not queue calls to
7592 MODIFIED_NORETURN_CALLS here ...
7593 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7594
7595 2011-04-08 Richard Guenther <rguenther@suse.de>
7596
7597 PR lto/48467
7598 * toplev.c (lang_dependent_init): Do not open asm_out_file
7599 in WPA mode, nor perform debug machinery initialization.
7600 (finalize): Do not unlink asm_out_file in WPA mode.
7601
7602 2011-04-08 Richard Guenther <rguenther@suse.de>
7603
7604 * gimple.h (gimple_call_fntype): New function.
7605 (gimple_call_return_type): Use it.
7606 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7607 * gimple-low.c (gimple_check_call_args): Likewise.
7608 * gimple.c (gimple_call_flags): Likewise.
7609 (gimple_call_arg_flags): Likewise.
7610 (gimple_call_return_flags): Likewise.
7611 * tree-cfg.c (verify_gimple_call): Likewise.
7612 (do_warn_unused_result): Likewise.
7613 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7614 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7615
7616 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7617
7618 PR rtl-optimization/48235
7619 * sel-sched.c (code_motion_process_successors): Recompute the last
7620 insn in basic block if control flow changed.
7621 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7622 Update condition for ilist_remove.
7623
7624 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7625
7626 PR rtl-optimization/48302
7627 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7628 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7629 it to record added preheader blocks.
7630 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7631 on to sel_add_loop_preheaders.
7632 (sel_region_init): Move call to setup_current_loop_nest after
7633 sel_init_bbs.
7634
7635 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7636
7637 PR target/48273
7638 * cfgloop.h (loop_has_exit_edges): New helper.
7639 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7640 non-clonable.
7641 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7642 that have no exit edges.
7643
7644 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7645
7646 PR rtl-optimization/48442
7647 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7648 all callers. Adjust assert.
7649
7650 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7651
7652 PR tree-optimization/48377
7653 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7654 is_packed to true even for types with smaller TYPE_ALIGN than
7655 TYPE_SIZE.
7656
7657 2011-04-08 Richard Guenther <rguenther@suse.de>
7658
7659 PR bootstrap/48513
7660 * doc/tm.texi: Re-generate.
7661
7662 2011-04-08 Wei Guozhi <carrot@google.com>
7663
7664 PR target/47855
7665 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7666 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7667 * config/arm/arm.md (*push_multi): Change the length computation to
7668 call a C function.
7669
7670 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7671
7672 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7673 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7674 * doc/tm.texi: Regenerate.
7675 * system.h (ASM_OUTPUT_BSS): Poison.
7676 * varasm.c (asm_output_bss): Remove function.
7677 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7678
7679 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7680 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7681 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7682 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7683 Likewise.
7684 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7685 Likewise.
7686 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7687 Likewise.
7688 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7689
7690 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7691
7692 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7693 EnumValue lines.
7694
7695 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7696
7697 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7698 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7699 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7700 OPT_mcpu32.
7701 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7702 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7703 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7704 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7705 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7706 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7707 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7708 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7709 options. Don't map other m68k options manually. Don't handle
7710 old-style options as canonical.
7711 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7712 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7713
7714 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7715
7716 * basic-block.h (force_nonfallthru): Move to...
7717 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7718 (force_nonfallthru): ...here.
7719 * cfghooks.c (force_nonfallthru): New function.
7720 * cfgrtl.c (force_nonfallthru): Rename into...
7721 (rtl_force_nonfallthru): ...this.
7722 (commit_one_edge_insertion): Do not set AUX field.
7723 (commit_edge_insertions): Do not discover new basic blocks.
7724 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7725 (cfg_layout_rtl_cfg_hooks): Likewise.
7726 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7727 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7728 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7729
7730 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7731
7732 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7733 Remove macros.
7734
7735 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7736
7737 * config/i386/sse.md: Update copyright year.
7738 (avxcvtvecmode): Remove.
7739 (sse_movhlps): Merge with *avx_movhlps.
7740 (sse_movlhps): Merge with *avx_movlhps.
7741 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7742 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7743 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7744 (sse_loadhps): Merge with *avx_loadhps.
7745 (sse_storelps): Merge with *avx_storelps.
7746 (sse_loadlps): Merge with *avx_loadlps.
7747 (sse_movss): Merge with *avx_movss.
7748 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7749 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7750 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7751 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7752 (vec_set<mode>_0): Ditto.
7753 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7754 (sse4_1_insertps): Merge with *avx_insertps.
7755 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7756 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7757 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7758 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7759 (sse2_storehpd): Merge with *avx_storehpd.
7760 (sse2_loadhpd): Merge with *avx_loadhpd.
7761 (sse2_loadlpd): Merge with *avx_loadlpd.
7762 (sse2_movsd): Merge with *avx_movsd.
7763 (*vec_concatv2df): Merge with *vec_concatv2df.
7764
7765 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7766
7767 PR debug/48343
7768 * combine.c (combine_instructions): Add last_combined_insn,
7769 update it if insn is after it, pass it to all try_combine calls.
7770 (try_combine): Add last_combined_insn parameter, pass it instead of
7771 i3 to propagate_for_debug.
7772
7773 2011-04-07 Nick Clifton <nickc@redhat.com>
7774
7775 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7776 to handle MDR <-> data register transfers.
7777 (movhi_internal): Likewise.
7778
7779 2011-04-07 Alan Modra <amodra@gmail.com>
7780
7781 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7782 previous stack info.
7783
7784 2011-04-07 Tom de Vries <tom@codesourcery.com>
7785
7786 PR target/43920
7787 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7788 flow_find_cross_jump. Swap variables to implement backward replacement.
7789 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7790
7791 2011-04-07 Tom de Vries <tom@codesourcery.com>
7792
7793 PR target/43920
7794 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7795 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7796 and bb2.
7797 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7798 src1 or src2. Redirect edges to the last basic block. Update
7799 frequency and count on multiple basic blocks in case of fallthru.
7800
7801 2011-04-07 Tom de Vries <tom@codesourcery.com>
7802
7803 PR target/43920
7804 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7805 function.
7806 (old_insns_match_p): Change return type. Replace return false/true
7807 with return dir_none/dir_both. Use can_replace_by.
7808 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7809 direction from dir_p. Register replacement direction in dir, last_dir
7810 and afterlast_dir. Handle new return type of old_insns_match_p using
7811 merge_dir. Return replacement direction in dir_p.
7812 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7813 return type of old_insns_match_p.
7814 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7815 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7816 flow_find_cross_jump.
7817 * basic-block.h (enum replace_direction): New type.
7818 (flow_find_cross_jump): Add parameter to declaration.
7819
7820 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7821
7822 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7823 (AVXMODEDCVTPS2DQ): Ditto.
7824 (VEC_FLOAT_MODE): Ditto.
7825 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7826 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7827 (<any_logic:code><mode>3): Use VF mode iterator.
7828 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7829 Use VF mode iterator.
7830 (copysign<mode>3): Use VF mode iterator.
7831 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7832 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7833 (*<any_logic:code><MODEF:mode>3): Merge with
7834 *avx_<any_logic:code><MODEF:mode>3.
7835 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7836 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7837 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7838 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7839 (sse2_cvtdq2ps): Use %v modifier.
7840 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7841 (avx_cvtps2dq<avxmodesuffix>): Remove.
7842 (sse2_cvtps2dq): Use %v modifier.
7843 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7844 (avx_cvttps2dq<avxmodesuffix>): Remove.
7845 (sse2_cvttps2dq): Use %v modifier.
7846 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7847 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7848 (sse2_cvtsd2siq): Fix insn template.
7849 (sse2_cvtsd2siq_2): Ditto.
7850 (sse2_cvttsd2siq): Ditto.
7851 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7852 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7853
7854 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7855
7856 * gcov-io.c: Use GCC Runtime Library Exception.
7857
7858 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7859
7860 PR debug/48466
7861 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7862 as base_reg whatever register reg has been eliminated to, instead
7863 of hardcoding STACK_POINTER_REGNUM.
7864
7865 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7866
7867 * doc/tm.texi.in: Document C target hooks as separate from general
7868 target hooks.
7869 * doc/tm.texi: Regenerate.
7870 * genhooks.c (struct hook_desc): Add docname field.
7871 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7872 docname field.
7873 (hook_array): Include c-target.def.
7874 (emit_documentation): Use docname field in output.
7875 (emit_init_macros): Take docname argument. Only emit definitions
7876 for hooks matching docname.
7877 (main): Expect additional arguments in all cases. Pass argument
7878 to emit_init_macros.
7879 * target.def: Move initial macro definitions and comments to
7880 target-hooks-macros.h.
7881 (gcc_targetcm): Move to c-family/c-target.def.
7882 * target.h (targetcm): Move declaration to c-family/c-target.h.
7883 * targhooks.c (default_handle_c_option): Move to
7884 c-family/c-opts.c.
7885 * targhooks.h (default_handle_c_option): Move declaration to
7886 c-family/c-common.h.
7887 * target-hooks-macros.h: New file.
7888 * config.gcc (target_has_targetcm): Define and use to add to
7889 c_target_objs and cxx_target_objs.
7890 * config/default-c.c: New file.
7891 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7892 of target.h and target-def.h.
7893 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7894 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7895 darwin_check_cfstring_format_arg): Make static.
7896 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7897 TARGET_STRING_OBJECT_REF_TYPE_P,
7898 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7899 * config/darwin-protos.h (darwin_objc_construct_string,
7900 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7901 declare.
7902 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7903 TARGET_STRING_OBJECT_REF_TYPE_P,
7904 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7905 * config/t-darwin (darwin-c.o): Update dependencies.
7906 * system.h (TARGET_HAS_TARGETCM): Poison.
7907 * Makefile.in (TARGET_H): Update.
7908 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7909 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7910 (default-c.o): New target.
7911 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7912 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7913 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7914 c-target.def.
7915 (build/genhooks.o): Update dependencies.
7916
7917 2011-04-06 Richard Guenther <rguenther@suse.de>
7918
7919 * ipa-inline.c (enum inlining_mode): Remove.
7920 (cgraph_flatten): Use some other token.
7921 (cgraph_edge_early_inlinable_p): New function, split out from ...
7922 (cgraph_perform_always_inlining): New function, split out from ...
7923 (cgraph_decide_inlining_incrementally): ... here.
7924 (cgraph_mark_inline_edge): Adjust.
7925 (cgraph_early_inlining): Re-structure.
7926 (pass_early_inline): Require SSA form.
7927
7928 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7929 Julian Brown <julian@codesourcery.com>
7930 Mark Shinwell <shinwell@codesourcery.com>
7931
7932 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7933 LO_REGS only for Thumb-1.
7934 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7935 be used in short instructions when optimising for size on Thumb-2.
7936
7937 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7938
7939 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7940 associated with user returns to be preserved.
7941
7942 2011-04-06 Tristan Gingold <gingold@adacore.com>
7943
7944 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7945 symbol_queue_size, DBXOUT_DECR_NESTING,
7946 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7947 if XCOFF_DEBUGGING_INFO.
7948
7949 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7950
7951 * config/i386/i386.md (attribute isa): New.
7952 (attribute enabled): New.
7953 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7954 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7955 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7956 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7957 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7958 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7959 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7960 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7961
7962 * config/i386/sse.md (VF): New mode iterator.
7963 (VF1): Ditto.
7964 (VF2): Ditto.
7965 (VF_128): Ditto.
7966 (SSEMODEF4): Remove.
7967 (attribute sse): Handle V8SF and V4DF modes.
7968 (<absneg:code><mode>2): Use VF mode iterator.
7969 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7970 mode iterator.
7971 (<plusminus_insn><mode>3): Use VF mode iterator.
7972 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7973 Use VF mode iterator.
7974 (<sse>_vm<plusminus_insn><mode>3): Merge with
7975 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7976 (mul<mode>3): Use VF mode iterator.
7977 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7978 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7979 mode iterator.
7980 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7981 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7982 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7983 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7984 mode iterator.
7985 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7986 Use VF1 mode iterator.
7987 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7988 (sqrt<VF2:mode>2): New expander.
7989 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7990 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7991 and sqrtv2df2. Use VF mode iterator.
7992 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7993 mode iterator.
7994 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7995 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7996 Use VF1 mode iterator.
7997 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7998 (<smaxmin:code><mode>3): Use VF mode iterator.
7999 (*<smaxmin:code><mode>3_finite): Merge with
8000 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8001 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8002 (<sse>_vm<smaxmin:code><mode>2): Merge with
8003 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8004 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8005 mode iterator.
8006 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8007 mode iterator.
8008 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8009 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8010 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8011 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8012 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8013 VF mode iterator.
8014 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8015 Use VF_128 mode iterator.
8016 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8017 mode iterator.
8018 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8019 VF_128 mode iterator.
8020 (vcond<mode>): Use VF mode iterator.
8021 * config/i386/predicates.md (sse_comparison_operator): Merge with
8022 avx_comparison_float_operator. Do not declare as special_predicate.
8023 * config/i386/i386.c (struct builtin_description): Update for renamed
8024 compare patterns.
8025 (ix86_expand_args_builtin): Ditto.
8026 (ix86_expand_sse_compare_mask): Ditto.
8027
8028 2011-04-06 Richard Guenther <rguenther@suse.de>
8029
8030 * tree-inline.c (estimate_num_insns): For calls simply account
8031 for all passed arguments and a used return value.
8032
8033 2011-04-06 Richard Guenther <rguenther@suse.de>
8034
8035 PR tree-optimization/47663
8036 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8037 call_stmt_time fields.
8038 (cgraph_edge_inlinable_p): Declare.
8039 (cgraph_edge_recursive_p): New inline function.
8040 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8041 (cgraph_clone_edge): Copy it.
8042 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8043 Account for call stmt time.
8044 (cgraph_estimate_time_after_inlining): Take edge argument.
8045 (cgraph_estimate_edge_growth): Account call stmt size.
8046 (cgraph_estimate_size_after_inlining): Take edge argument.
8047 (cgraph_mark_inline_edge): Adjust.
8048 (cgraph_check_inline_limits): Likewise.
8049 (cgraph_recursive_inlining_p): Remove.
8050 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8051 (cgraph_decide_recursive_inlining): Take edge argument and
8052 adjust.
8053 (cgraph_decide_inlining_of_small_functions): Do not avoid
8054 diags for recursive inlining here.
8055 (cgraph_flatten): Adjust.
8056 (cgraph_decide_inlining_incrementally): Likewise.
8057 (estimate_function_body_sizes): Remove call cost handling.
8058 (compute_inline_parameters): Initialize caller edge call costs.
8059 (cgraph_estimate_edge_growth): New function.
8060 (cgraph_estimate_growth): Use it.
8061 (cgraph_edge_badness): Likewise.
8062 (cgraph_check_inline_limits): Take an edge argument.
8063 (cgraph_decide_inlining_of_small_functions): Adjust.
8064 (cgraph_decide_inlining): Likewise.
8065 * tree-inline.c (estimate_num_insns): Only account for call
8066 return value if it is used.
8067 (expand_call_inline): Avoid diagnostics on recursive inline
8068 functions here.
8069 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8070 (input_edge): Input edge call costs.
8071
8072 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8073
8074 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8075
8076 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8077
8078 * doc/invoke.texi (Spec Files): Fix typo.
8079
8080 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8081
8082 * profile.c (branch_prob): Move declaration of local variable. Remove
8083 obsolete ??? comment. Expand the location explicitly instead of using
8084 the LOCATION_FILE and LOCATION_LINE macros.
8085
8086 2011-04-06 Wei Guozhi <carrot@google.com>
8087
8088 PR target/47855
8089 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8090 (arm_cond_branch): Likewise.
8091 (arm_cond_branch_reversed): Likewise.
8092 (arm_jump): Likewise.
8093 (push_multi): Likewise.
8094 * config/arm/constraints.md (Py): New constraint.
8095
8096 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8097
8098 PR bootstrap/48471
8099 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8100 Move these...
8101 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8102 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8103 #ifdef DBX_DEBUGGING_INFO.
8104
8105 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8106
8107 PR bootstrap/48403
8108 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8109 if old and new states differ.
8110
8111 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8112
8113 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8114 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8115 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8116 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8117 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8118 mcfv4e): Use Alias.
8119 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8120 ColdFire options to -mcpu= options.
8121
8122 2011-04-05 Jeff Law <law@redhat.com>
8123
8124 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8125 check if BB is a successor of LOOP->header and return
8126 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8127
8128 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8129
8130 * cprop.c (struct reg_use): Remove.
8131 (reg_use_table): Make an array of RTX.
8132 (find_used_regs, constprop_register, local_cprop_pass,
8133 bypass_block): Simplify users of reg_use_table.
8134 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8135 on one of the uses found by find_used_regs.
8136
8137 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8138
8139 PR bootstrap/48469
8140 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8141 declaration.
8142
8143 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8144
8145 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8146 as an rtx.
8147 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8148
8149 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8150
8151 PR middle-end/48441
8152 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8153
8154 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8155
8156 * combine.c: Include obstack.h.
8157 (struct insn_link): Define.
8158 (uid_log_links): Adjust type.
8159 (FOR_EACH_LOG_LINK): New macro.
8160 (insn_link_obstack): Declare.
8161 (alloc_insn_link): Define.
8162 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8163 type of link variables.
8164 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8165 (try_combine, record_promoted_values, distribute_notes): Likewise.
8166 (distribute_links): Likewise. Tweak prototype.
8167 (clear_log_links): Delete.
8168 (adjust_for_new_dest): Call alloc_insn_link.
8169 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8170
8171 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8172
8173 * gcse.c (modify_mem_list): Convert to an array of VECs.
8174 (canon_modify_mem_list, compute_transp): Tweak formatting.
8175 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8176 (load_killed_in_block_p): Likewise.
8177 (record_last_mem_set_info): Likewise.
8178 (clear_modify_mem_tables): Likewise.
8179
8180 2011-04-05 Tom de Vries <tom@codesourcery.com>
8181
8182 PR middle-end/48461
8183 * function.c (emit_use_return_register_into_block): Only define if
8184 HAVE_return.
8185
8186 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8187
8188 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8189
8190 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8191
8192 * config/rx/rx-opts.h: New.
8193 * config/rx/rx.c (rx_cpu_type): Remove.
8194 (rx_handle_option): Don't assert that global structures are in
8195 use. Access variables via opts pointer. Defer most handling of
8196 OPT_mint_register_. Use error_at.
8197 (rx_option_override): Handle deferred OPT_mint_register_ here.
8198 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8199 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8200 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8201 (rx_cpu_types): New Enum and EnumValue entries.
8202 (mint-register=): Use Defer and use Var accordingly.
8203
8204 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8205
8206 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8207 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8208 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8209 Move these...
8210 (debug_free_queue, debug_nesting, symbol_queue_index):
8211 ...and these...
8212 * dbxout.c: ...to here. Make static.
8213
8214 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8215
8216 * gcse.c (modify_pair): Define. Define a VEC of it.
8217 (canon_modify_mem_list): Convert to an array of VECs.
8218 (free_insn_expr_list_list): Delete.
8219 (clear_modify_mem_tables): Call VEC_free instead.
8220 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8221 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8222 (canon_list_insert, compute_transp): Likewise.
8223
8224 2011-04-05 Tom de Vries <tom@codesourcery.com>
8225
8226 PR target/43920
8227 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8228 for size.
8229
8230 2011-04-05 Tom de Vries <tom@codesourcery.com>
8231
8232 PR target/43920
8233 * function.c (emit_use_return_register_into_block): New function.
8234 (thread_prologue_and_epilogue_insns): Use
8235 emit_use_return_register_into_block.
8236
8237 2011-04-05 Tom de Vries <tom@codesourcery.com>
8238
8239 PR target/43920
8240 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8241 insn.
8242
8243 2011-04-05 Tom de Vries <tom@codesourcery.com>
8244
8245 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8246
8247 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8248
8249 * config/arm/arm.md (define_constants for unspec): Replace with
8250 define_c_enum.
8251 (define_constants for unspecv): Replace with define_c_enum.
8252 * config/arm/neon.md (define_constants for unspec): Replace with
8253 define_c_enum.
8254
8255 2011-04-04 Richard Henderson <rth@redhat.com>
8256
8257 PR bootstrap/48400
8258 * dwarf2out.c (output_line_info): Always emit line info from
8259 at least one section.
8260 (dwarf2out_init): Create text_section_line_info here ...
8261 (set_cur_line_info_table): ... not here.
8262
8263 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8264
8265 PR target/48380
8266 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8267 not called.
8268
8269 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8270
8271 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8272
8273 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8274 (expr_equiv_p): Remove.
8275 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8276 (hash_scan_set): Update call to insert_set_in_table.
8277 (dump_hash_table): Dump <dest, src> pair.
8278 (lookup_set): Simplify. Lookup <dest, src> pair.
8279 (compute_transp): Remove, fold heavily simplified code into...
8280 (compute_local_properties): ...here. Expect COMP and TRANSP
8281 unconditionally.
8282 (find_avail_set): Take set directly from struct expr.
8283 (find_bypass-set): Likewise.
8284 (bypass_block): Likewise.
8285 (cprop_insn): Likewise. Remove redundant INSN_P test.
8286
8287 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8288 checks on form of COND from find_implicit_sets to here.
8289 (find_implicit_sets): Cleanup control flow. Split critical edges
8290 if it exposes implicit sets. Allocate/resize implicit_sets as
8291 necessary.
8292 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8293 changed something. Run df_analyze after find_implicit_sets if any
8294 edges were split. Do not allocate implicit_sets here.
8295
8296 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8297 (gcse_obstack): Renamed to cprop_obstack.
8298 (GNEW, GNEWVEC, GNEWVAR): Remove.
8299 (gmalloc): Remove.
8300 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8301 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8302 (gcse_alloc): Likewise, and rename to cprop_alloc.
8303 (alloc_gcse_men, free_gcse_mem): Remove.
8304 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8305 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8306 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8307
8308 * cprop.c (oprs_not_set_p): Remove.
8309 (mark_set, mark_clobber): Remove.
8310 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8311 (reg_not_set_p): New function.
8312 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8313 (cprop_insn): Likewise.
8314 (cprop_jump): Use FOR_EACH_EDGE.
8315
8316 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8317
8318 PR bootstrap/48403
8319 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8320 (rank_for_schedule): Use scheduled_insns vector instead of
8321 last_scheduled_insn.
8322 (ok_for_early_queue_removal): Likewise.
8323 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8324 we have a dbg_cnt.
8325 (choose_ready): Likewise.
8326 (commit_schedule): Use VEC_iterate.
8327 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8328 a dbg_cnt, use it and ensure the first insn is in the ready list.
8329 (haifa_sched_init): Allocate scheduled_insns.
8330 (sched_extend_ready_list): Don't allocate it; reserve space.
8331 (haifa_sched_finish): Free it.
8332
8333 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8334
8335 * optc-gen.awk: Always remove type from Variable entry before
8336 recording in var_seen.
8337
8338 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8339
8340 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8341 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8342 call to tidy_fallthru_edges.
8343
8344 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8345
8346 * doc/options.texi (ToLower): Document.
8347 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8348 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8349 * opts.h (cl_option): Add cl_tolower field.
8350 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8351 arguments with lowercase strings.
8352 * config/rx/rx.opt (mcpu=): Add ToLower.
8353 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8354 argument.
8355
8356 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8357
8358 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8359
8360 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8361
8362 * config/vax/vax.c: Include reload.h.
8363
8364 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8365
8366 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8367 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8368 (sparc_preferred_reload_class): New function.
8369
8370 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8371
8372 PR debug/48401
8373 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8374 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8375
8376 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8377
8378 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8379 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8380
8381 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8382
8383 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8384 (ASM_OUTPUT_ALIGNED_BSS): Define.
8385
8386 2011-04-03 Michael Matz <matz@suse.de>
8387
8388 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8389 and next_slot members.
8390 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8391 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8392 (lto_streamer_cache_append): Declare.
8393 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8394 unsigned index, remove offset parameter, ensure that we append
8395 or update existing entries.
8396 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8397 parameter, update next_slot for append.
8398 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8399 parameter.
8400 (lto_streamer_cache_insert_at): Likewise.
8401 (lto_streamer_cache_append): New function.
8402 (lto_streamer_cache_lookup): Use unsigned index.
8403 (lto_streamer_cache_get): Likewise.
8404 (lto_record_common_node): Don't test tree_node_can_be_shared.
8405 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8406 (lto_streamer_cache_delete): Don't free offsets member.
8407 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8408 (lto_output_string_with_length): Use lto_output_data_stream.
8409 (lto_output_tree_header): Remove ix parameter, don't write it.
8410 (lto_output_builtin_tree): Likewise.
8411 (lto_write_tree): Adjust callers to above, don't track and write
8412 offset, write unsigned index.
8413 (output_unreferenced_globals): Don't emit all global vars.
8414 (write_global_references): Use unsigned indices.
8415 (lto_output_decl_state_refs): Likewise.
8416 (write_symbol): Likewise.
8417 * lto-streamer-in.c (lto_input_chain): Move earlier.
8418 (input_function): Use unsigned index.
8419 (input_alias_pairs): Don't read and then ignore all global vars.
8420 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8421 don't pass it back, use lto_streamer_cache_append.
8422 (lto_register_var_decl_in_symtab): Use unsigned index.
8423 (lto_register_function_decl_in_symtab): Likewise.
8424 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8425 index.
8426 (lto_get_builtin_tree): Don't read index, use
8427 lto_streamer_cache_append.
8428 (lto_read_tree): Adjust call to lto_materialize_tree.
8429
8430 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8431 don't use function calls in arguments to MIN.
8432
8433 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8434 twice.
8435
8436 * gimple.c (gimple_type_leader_entry): Mark deletable.
8437
8438 2011-04-03 Alan Modra <amodra@gmail.com>
8439
8440 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8441
8442 2011-04-03 Michael Matz <matz@suse.de>
8443
8444 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8445 an integer.
8446 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8447
8448 2011-04-03 Michael Matz <matz@suse.de>
8449
8450 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8451 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8452 without function context.
8453 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8454 current_function_decl and cfun.
8455
8456 2011-04-03 Michael Matz <matz@suse.de>
8457
8458 * tree.c (decl_init_priority_insert): Don't create entry for
8459 default priority.
8460 (decl_fini_priority_insert): Ditto.
8461 (fields_compatible_p, find_compatible_field): Remove.
8462 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8463 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8464
8465 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8466
8467 * combine.c (try_combine): Remove useless local variable.
8468
8469 2011-04-03 Richard Guenther <rguenther@suse.de>
8470 Ira Rosen <ira.rosen@linaro.org>
8471
8472 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8473 non-variable offsets and compare the remaining bases of the two
8474 accesses instead of looking for exact same data-ref.
8475
8476 2011-04-02 Kai Tietz <ktietz@redhat.com>
8477
8478 PR target/48416
8479 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8480
8481 * i386.c (ix86_is_msabi_thiscall): New helper function.
8482 (ix86_is_type_thiscall): New helper function.
8483 (ix86_comp_type_attributes): Handle thiscall for method-functions
8484 special.
8485 (init_cumulative_args): Likewise.
8486 (find_drap_reg): Likewise.
8487 (ix86_static_chain): Likewise.
8488 (x86_this_parameter): Likewise.
8489 (x86_output_mi_thunk): Likewise.
8490
8491 2011-04-01 Olivier Hainque <hainque@adacore.com>
8492 Nicolas Setton <setton@adacore.com>
8493 Eric Botcazou <ebotcazou@adacore.com>
8494
8495 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8496 (add_gnat_descriptive_type_attribute): New function.
8497 (gen_array_type_die): Call it.
8498 (gen_enumeration_type_die): Likewise.
8499 (gen_struct_or_union_type_die): Likewise.
8500 (modified_type_die): Likewise.
8501 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8502 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8503 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8504
8505 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8506
8507 PR bootstrap/48148
8508 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8509 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8510
8511 Revert:
8512 2011-03-17 Richard Guenther <rguenther@suse.de>
8513
8514 PR bootstrap/48148
8515 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8516 origin for decls in other ltrans units.
8517 (input_varpool_node): Likewise.
8518
8519 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8520
8521 PR middle-end/48335
8522 * expr.c (expand_assignment): Handle all possibilities
8523 if TO_RTX is CONCAT.
8524 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8525 (store_split_bit_field): If SUBREG_REG (op0) or
8526 op0 itself has smaller mode than word, return it
8527 for offset 0 and const0_rtx for out-of-bounds stores.
8528 If word is const0_rtx, skip it.
8529
8530 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8531
8532 * config/h8300/h8300.c (print_operand_address): Rename to...
8533 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8534 Call h8300_print_operand and h8300_print_operand_address instead of
8535 print_operand and print_operand_address. Declare.
8536 (print_operand): Renake to...
8537 (h8300_print_operand): ...this. Make static. Adjust comments.
8538 Call h8300_print_operand instead of print_operand. Declare.
8539 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8540 (h8300_register_move_cost): Likewise.
8541 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8542 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8543 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8544 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8545 * config/h8300/h8300-protos.h (print_operand): Delete.
8546 (print_operand_address): Delete.
8547
8548 2011-04-01 Richard Henderson <rth@redhat.com>
8549
8550 PR 48400
8551 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8552 in strict mode before dwarf4. Re-order tests to early out
8553 before switching sections.
8554
8555 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8556
8557 * config/h8300/constraints.md: New file.
8558 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8559 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8560 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8561 * config/h8300/predicates.md (bit_operand): Likewise.
8562 (incdec_operand): Use satisfies_constraint_M and
8563 satisfies_constraint_O. Don't use C code block.
8564 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8565 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8566 (compute_mov_length): Use satisfies_constraint_G.
8567 (fix_bit_operand): Use satisfies_constraint_U.
8568 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8569 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8570 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8571 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8572 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8573 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8574 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8575 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8576 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8577 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8578 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8579 (EXTRA_MEMORY_CONSTRAINT): Delete.
8580
8581 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8582 Michael Meissner <meissner@linux.vnet.ibm.com>
8583
8584 PR target/48262
8585 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8586 operands, as per the specifications.
8587
8588 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8589 (vec_extract_evenv4sf): Ditto.
8590 (vec_extract_evenv8hi): Ditto.
8591 (vec_extract_evenv16qi): Ditto.
8592 (vec_extract_oddv4si): Ditto.
8593
8594 2011-03-31 Mark Wielaard <mjw@redhat.com>
8595
8596 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8597 high_pc attribute if the CU has no associated code. Only output
8598 DW_AT_entry_pc for CU if not generating strict dwarf and
8599 dwarf_version < 4.
8600
8601 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8602
8603 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8604 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8605 out of ...
8606 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8607 * final.c (final_start_function): Call the new function rather
8608 than using a NULL argument for dwarf2out_frame_debug.
8609
8610 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8611 that contains the prologue.
8612
8613 * haifa-sched.c (queue_insn): New arg REASON. All callers
8614 changed. Print it in debugging output.
8615
8616 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8617
8618 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8619 Split most of the code into...
8620 (begin_move_insn): ... here. New function.
8621 (ebb_sched_info): Add a pointer to it.
8622 * haifa-sched.c (scheduled_insns): New static variable.
8623 (sched_extend_ready_list): Allocate it.
8624 (schedule_block): Use it to record the order of scheduled insns.
8625 Perform RTL changes to move insns only after all scheduling
8626 decisions have been made.
8627 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8628 begin_move_insn field.
8629 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8630 * sched-int.h (struct haifa_sched_info): Remove second argument
8631 from begin_schedule_ready hook. Add new member begin_move_insn.
8632 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8633 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8634
8635 * haifa-sched.c (prune_ready_list): New function, broken out of
8636 schedule_block.
8637 (schedule_block): Use it.
8638
8639 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8640
8641 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8642
8643 2011-04-01 Kai Tietz <ktietz@redhat.com>
8644
8645 * config.gcc (*-*-mingw*): Allow as option the
8646 posix threading model.
8647 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8648 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8649 definition.
8650 (CPP_SPEC): Add pthread/no-pthread handling.
8651 (LIB_SPEC): Likewise.
8652 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8653 (LIB_SPEC): Likewise.
8654 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8655 flag to pass -pthread option for shared libgcc build.
8656 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8657 for shared libgcc build.
8658 * config/i386/t-mingw-pthread: New file.
8659 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8660 New define to enable use of library pthread by default.
8661 * config/i386/mingw.opt (pthread): New driver option.
8662 (no-pthread): New driver option.
8663 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8664 * config/i386/mingw-w64.opt: Likewise.
8665
8666 2011-04-01 Gary Funck <gary@intrepid.com>
8667
8668 * c-decl.c (grokdeclarator): Fix formatting.
8669
8670 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8671
8672 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8673 instead of n_operands.
8674 (set_storage_via_setmem): Likewise.
8675 * optabs.c (maybe_gen_insn): Likewise.
8676 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8677 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8678 (mips_expand_builtin_direct): Likewise.
8679 * config/spu/spu.c (expand_builtin_args): Likewise.
8680
8681 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8682
8683 * recog.h (insn_data_d): Add n_generator_args.
8684 * genoutput.c (data): Likewise.
8685 (output_insn_data): Print it.
8686 (max_opno, num_dups): Delete.
8687 (scan_operands): Just fill in "d->operand[...]".
8688 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8689
8690 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8691
8692 * gensupport.h (pattern_stats): New structure.
8693 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8694 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8695 (max_operand_1, max_operand_vec): Delete.
8696 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8697
8698 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8699
8700 * emit-rtl.c (emit_pattern_after_setloc): New function.
8701 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8702 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8703 (emit_pattern_after): New function.
8704 (emit_insn_after, emit_jump_insn_after): Call it.
8705 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8706 (emit_pattern_before_setloc): New function.
8707 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8708 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8709 Likewise.
8710 (emit_pattern_before): New function.
8711 (emit_insn_before, emit_jump_insn_before): Call it.
8712 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8713
8714 2011-03-31 Richard Henderson <rth@redhat.com>
8715
8716 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8717 (dw_separate_line_info_entry): Remove.
8718 (enum dw_line_info_opcode): New.
8719 (dw_line_info_entry): Use it.
8720 (dw_line_info_table, dw_line_info_table_p): New.
8721 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8722 (line_info_table, line_info_label_num): Remove.
8723 (line_info_table_in_use): Remove.
8724 (separate_line_info_table): Remove.
8725 (separate_line_info_table_allocated): Remove.
8726 (separate_line_info_table_in_use): Remove.
8727 (LINE_INFO_TABLE_INCREMENT): Remove.
8728 (line_info_label_num): New.
8729 (cur_line_info_table): New.
8730 (text_section_line_info, cold_text_section_line_info): New.
8731 (separate_line_info): New.
8732 (SEPARATE_LINE_CODE_LABEL): Remove.
8733 (print_dwarf_line_table): Remove.
8734 (debug_dwarf): Don't dump it.
8735 (output_one_line_info_table): New.
8736 (output_line_info): Use it.
8737 (new_line_info_table): New.
8738 (set_cur_line_info_table): New.
8739 (dwarf2out_switch_text_section): Use it.
8740 (dwarf2out_begin_function): Likewise.
8741 (push_dw_line_info_entry): New.
8742 (dwarf2out_source_line): Rewrite for new line info tables.
8743 (dwarf2out_init): Remove dead initailizations.
8744
8745 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8746
8747 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8748 various flags.
8749 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8750 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8751 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8752 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8753 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8754 * opt-functions.awk (flag_init, switch_bit_fields): New.
8755 (switch_flags): Don't handle flags moved to bit-fields. Don't
8756 generate CL_MISSING_OK or CL_SAVE.
8757 * optc-gen.awk: Update to generate bit-field output as well as
8758 flags field.
8759 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8760 bit-field instead of CL_REJECT_DRIVER flag.
8761 * opts-common.c (generate_canonical_option,
8762 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8763 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8764 instead of CL_REJECT_NEGATIVE flag.
8765 * toplev.c (print_switch_values): Use cl_report bit-field instead
8766 of CL_REPORT flag.
8767
8768 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8769
8770 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8771 a zero minimum index only if it is redundant.
8772
8773 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8774
8775 PR rtl-optimization/48381
8776 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8777 instead of ira_class_hard_reg_index for calculating conflicting
8778 hard registers.
8779
8780 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8781
8782 * cprop.c: Clean up hash table building.
8783 (reg_avail_info): Remove.
8784 (oprs_available_p): Remove.
8785 (record_last_reg_set_info): Remove.
8786 (record_last_set_info): Remove.
8787 (reg_available_p): New function.
8788 (gcse_constant_p): Do not treat unfolded conditions as constants.
8789 (make_set_regs_unavailable): New function.
8790 (hash_scan_set): Simplify with new reg_available_p.
8791 (compute_hash_table_work): Traverse insns stream only once.
8792 Do not compute reg_avail_info. Traverse insns in reverse order.
8793 Record implicit sets after recording explicit sets from the block.
8794
8795 2011-03-31 Michael Matz <matz@suse.de>
8796
8797 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8798
8799 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8800
8801 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8802 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8803 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8804 (h8300_mode_dependent_address_p): New function.
8805 (h8300_get_index): Make static.
8806
8807 2011-03-31 Jeff Law <law@redhat.com>
8808
8809 * reload1.c (elimination_effects): Fix typo in recent change.
8810
8811 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8812 typo potentially leading to null pointer dereference.
8813
8814 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8815 (setup_save_areas): Corresponding changes to avoid useless
8816 assignments.
8817
8818 * jump.c (reversed_comparison_code_parts): Avoid successive return
8819 statements when REVERSE_CONDITION is defined.
8820
8821 * expr.c (expand_assignment): Avoid useless assignments.
8822 (expand_expr_real_1): Likewise.
8823 (expand_expr_real_2): Avoid useless statements.
8824
8825 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8826
8827 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8828
8829 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8830 statements.
8831
8832 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8833
8834 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8835
8836 PR target/47109
8837 * doc/tm.texi.in (TARGET_VERSION): Remove.
8838 * doc/tm.texi: Regenerate.
8839 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8840 * collect2.c (main): Don't use TARGET_VERSION.
8841 * mips-tdump.c (main): Don't use TARGET_VERSION.
8842 * mips-tfile.c (main): Don't use TARGET_VERSION.
8843 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8844 * config/rs6000/vxworksae.h: Remove.
8845 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8846 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8847 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8848 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8849 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8850 * config/arm/arm.h (TARGET_VERSION): Remove.
8851 * config/arm/coff.h (TARGET_VERSION): Remove.
8852 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8853 * config/arm/elf.h (TARGET_VERSION): Remove.
8854 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8855 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8856 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8857 * config/arm/pe.h (TARGET_VERSION): Remove.
8858 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8859 * config/arm/semi.h (TARGET_VERSION): Remove.
8860 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8861 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8862 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8863 * config/avr/avr.h (TARGET_VERSION): Remove.
8864 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8865 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8866 * config/frv/frv.h (TARGET_VERSION): Remove.
8867 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8868 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8869 * config/i386/darwin.h (TARGET_VERSION): Remove.
8870 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8871 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8872 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8873 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8874 * config/i386/gnu.h (TARGET_VERSION): Remove.
8875 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8876 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8877 * config/i386/linux.h (TARGET_VERSION): Remove.
8878 * config/i386/linux64.h (TARGET_VERSION): Remove.
8879 * config/i386/lynx.h (TARGET_VERSION): Remove.
8880 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8881 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8882 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8883 * config/i386/netware.h (TARGET_VERSION): Remove.
8884 * config/i386/nto.h (TARGET_VERSION): Remove.
8885 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8886 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8887 * config/ia64/elf.h (TARGET_VERSION): Remove.
8888 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8889 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8890 * config/ia64/linux.h (TARGET_VERSION): Remove.
8891 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8892 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8893 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8894 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8895 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8896 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8897 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8898 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8899 * config/m68k/linux.h (TARGET_VERSION): Remove.
8900 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8901 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8902 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8903 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8904 * config/mep/mep.h (TARGET_VERSION): Remove.
8905 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8906 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8907 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8908 * config/mips/linux.h (TARGET_VERSION): Remove.
8909 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8910 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8911 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8912 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8913 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8914 * config/pa/pa.h (TARGET_VERSION): Remove.
8915 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8916 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8917 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8918 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8919 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8920 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8921 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8922 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8923 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8924 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8925 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8926 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8927 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8928 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8929 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8930 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8931 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8932 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8933 * config/s390/linux.h (TARGET_VERSION): Remove.
8934 * config/s390/s390.h (TARGET_VERSION): Remove.
8935 * config/s390/tpf.h (TARGET_VERSION): Remove.
8936 * config/score/score.h (TARGET_VERSION): Remove.
8937 * config/sh/linux.h (TARGET_VERSION): Remove.
8938 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8939 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8940 * config/sh/sh.h (TARGET_VERSION): Remove.
8941 * config/sh/sh64.h (TARGET_VERSION): Remove.
8942 * config/sh/superh.h (TARGET_VERSION): Remove.
8943 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8944 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8945 * config/sparc/linux.h (TARGET_VERSION): Remove.
8946 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8947 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8948 TARGET_NAME32, TARGET_NAME): Remove.
8949 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8950 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8951 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8952 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8953 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8954 * config/spu/spu.h (TARGET_VERSION): Remove.
8955 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8956 * config/v850/v850.h (TARGET_VERSION): Remove.
8957 * config/vax/linux.h (TARGET_VERSION): Remove.
8958 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8959 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8960 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8961
8962 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8963
8964 PR target/48142
8965 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8966 frame-related from frame-unrelated adjustments to the stack pointer.
8967
8968 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8969
8970 * common.opt (fdebug-types-section): Move earlier.
8971 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8972
8973 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8974
8975 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8976 var.
8977
8978 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8979
8980 * tree.h (CASE_CHAIN): Define.
8981 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8982 (gimple_redirect_edge_and_branch): Likewise.
8983
8984 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8985
8986 PR middle-end/48367
8987 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8988 calculation.
8989
8990 2011-03-30 Jeff Law <law@redhat.com>
8991
8992 * PR bootstrap/48371
8993 * reload1.c (reload): Fix botch in last change.
8994
8995 * reload.h (struct reload): Fix typo introduced in last change.
8996
8997 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8998
8999 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9000 Undocumented. Remove help text.
9001 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9002 -mhard-float.
9003
9004 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9005
9006 * doc/options.texi (NegativeAlias): Document.
9007 (Alias): Mention NegativeAlias.
9008 * opt-functions.awk: Handle NegativeAlias.
9009 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9010 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9011 * opts.h (CL_NEGATIVE_ALIAS): Define.
9012 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9013 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9014 OPT_mspe_.
9015 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9016 Alias entries.
9017 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9018 mno-spe and mno-isel instead of mspe=no and -misel=no.
9019
9020 2011-03-29 Mark Wielaard <mjw@redhat.com>
9021
9022 * common.opt (fdebug-types-section): New flag.
9023 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9024 * dwarf2out.c (use_debug_types): New define.
9025 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9026 (print_die): Guard output of type unit signatures using
9027 use_debug_types.
9028 (build_abbrev_table): Replace assert of dwarf_version >= 4
9029 with assert on use_debug_types.
9030 (size_of_die): Likewise.
9031 (unmark_dies): Likewise.
9032 (value_format): Decide AT_ref_external form on use_debug_types.
9033 (output_die): Replace dwarf_version version check guard with
9034 use_debug_types where appropriate.
9035 (modified_type_die): Likewise.
9036 (gen_reference_type_die): Likewise.
9037 (dwarf2out_start_source_file): Likewise.
9038 (dwarf2out_end_source_file): Likewise.
9039 (prune_unused_types_walk_attribs): Likewise.
9040 (dwarf2out_finish): Likewise.
9041
9042 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9043
9044 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9045
9046 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9047
9048 PR rtl-optimization/48332
9049 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9050 mode of input operand N and modeN to its actual mode.
9051
9052 2011-03-30 Jeff Law <law@redhat.com>
9053
9054 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9055 define accessor macro.
9056 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9057 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9058 (reg_equiv_init): Likewise.
9059 (reg_equivs_size): New variable.
9060 (reg_equiv_init_size): Remove.
9061 (allocate_initial_values): Move prototype to here from....
9062 * integrate.h (allocate_initial_values): Remove prototype.
9063 * integrate.c: Include reload.h.
9064 (allocate_initial_values): Corresponding changes.
9065 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9066 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9067 (update_equiv_regs): Corresponding changes.
9068 (ira): Corresponding changes.
9069 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9070 (push_secondary_reload): Corresponding changes.
9071 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9072 (make_memloc, find_reloads_address): Corresponding changes.
9073 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9074 (find_reloads_address_1): Corresponding changes.
9075 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9076 (refers_to_regno_for_reload_p): Corresponding changes.
9077 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9078 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9079 * reload1.c: Include ggc.h.
9080 (grow_reg_equivs): New function.
9081 (replace_pseudos_in, reload): Corresponding changes.
9082 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9083 (eliminate_regs_1, elimination_effects): Corresponding changes.
9084 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9085 (delete_output_reload): Likewise.
9086 * caller-save.c (mark_referenced_regs): Corresponding changes.
9087 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9088 * frv/predicates.md (frv_load_operand): Corresponding changes.
9089 * microblaze/microblaze.c (double_memory_operand): Corresponding
9090 changes.
9091 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9092 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9093 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9094 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9095 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9096 changes.
9097 * pa/pa.c (emit_move_sequence): Corresponding changes.
9098 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9099
9100 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9101
9102 PR target/47551
9103 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9104 structure modes. Don't check neon_vector_mem_operand for
9105 vector or structure modes.
9106
9107 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9108 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9109
9110 PR target/43590
9111 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9112 operand 1 and reshuffle the operands to match.
9113 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9114
9115 2011-03-30 Christian Schüler <cschueler@gmx.de>
9116
9117 PR driver/48208
9118 * config/c.opt (F): Added 'Driver' to -F option.
9119
9120 PR driver/48260
9121 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9122 handler function.
9123 * config/darwin.opt: Added '-arch' option.
9124
9125 2011-03-30 Nick Clifton <nickc@redhat.com>
9126
9127 * config/rx/rx.md: Add peepholes and patterns to combine
9128 extending loads and simple arithmetic instructions.
9129 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9130 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9131 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9132 modes to use pre-decrement and post-increment addressing.
9133 (rx_is_restricted_memory_address): Add range checking of REG+INT
9134 addresses.
9135 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9136 (rx_memory_move_cost): Adjust cost of stores.
9137 (rx_adjust_insn_length): New function.
9138
9139 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9140
9141 PR c/48305
9142 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9143 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9144 matching arg00/arg01 types.
9145
9146 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9147
9148 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9149 last_location to UNKNOWN_LOCATION.
9150
9151 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9152
9153 PR target/48349
9154 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9155 FLOAT_SSE_REGS.
9156
9157 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9158 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9159
9160 PR bootstrap/48337
9161 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9162 Init(PROCESSOR_V7).
9163 (sparc_cpu): Likewise.
9164 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9165 PROCESSOR_V7.
9166
9167 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9168
9169 PR target/48336
9170 PR middle-end/48342
9171 PR rtl-optimization/48345
9172 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9173 hard regs for given mode from profitable regs when doing secondary
9174 allocation.
9175
9176 2011-03-29 Jeff Law <law@redhat.com>
9177
9178 PR bootstrap/48327
9179 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9180 do_not_duplicate field.
9181 (lookup_redirection_data): Corresponding changes.
9182 (create_duplicates): Always create a template block.
9183 (redirect_edges): Remove code which reused the original block
9184 when it was going to become unreachable code.
9185 (thread_block): Don't set do_not_duplicate field.
9186
9187 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9188
9189 * lto-opts.c (register_user_option_p, lto_register_user_option):
9190 Make type argument unsigned.
9191 * lto-streamer.h (lto_register_user_option): Make type argument
9192 unsigned.
9193 * opth-gen.awk: Make CL_* macros unsigned.
9194 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9195 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9196 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9197 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9198 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9199 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9200 (find_opt): Make lang_mask argument unsigned.
9201
9202 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9203
9204 PR rtl-optimization/48331
9205 PR rtl-optimization/48334
9206 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9207 for any used algorithm.
9208
9209 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9210
9211 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9212 to parent_max.
9213
9214 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9215
9216 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9217 (alpha_option_override): Don't set alpha_sr_alias_set.
9218 (emit_frame_store_1): Use gen_frame_mem rather than calling
9219 set_mem_alias_set.
9220 (alpha_expand_epilogue): Ditto.
9221
9222 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9223
9224 PR tree-optimization/48290
9225 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9226 vectorization, check that relevant phis in the basic block after
9227 the inner loop are really inner loop's exit phis.
9228
9229 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9230
9231 PR debug/48190
9232 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9233 (cached_dw_loc_list_def): New structure.
9234 (cached_dw_loc_list): New typedef.
9235 (cached_dw_loc_list_table): New variable.
9236 (cached_dw_loc_list_table_hash): New function.
9237 (cached_dw_loc_list_table_eq): Likewise.
9238 (add_location_or_const_value_attribute): Take a bool cache_p.
9239 Cache the list when the parameter is true.
9240 (gen_formal_parameter_die): Update caller.
9241 (gen_variable_die): Likewise.
9242 (dwarf2out_finish): Likewise.
9243 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9244 while generating debug info for the decl.
9245 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9246 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9247 (resolve_addr): Cache the result of resolving a chain of
9248 location lists.
9249
9250 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9251
9252 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9253 conflict object hard regset nodes have intersecting hard reg sets.
9254
9255 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9256 after regstat_init_n_sets_and_refs.
9257
9258 * ira.c: Add more comments at the top.
9259 (setup_stack_reg_pressure_class, setup_pressure_classes):
9260 Add comments how we compute the register pressure classes.
9261 (setup_allocno_and_important_classes): Add more comments.
9262 (setup_class_translate_array, reorder_important_classes)
9263 (setup_reg_class_relations): Add comments.
9264
9265 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9266 start of the file.
9267
9268 * ira-color.c: Add 2011 to the Copyright line.
9269 (assign_hard_reg): Add more comments.
9270 (improve_allocation): Ditto.
9271
9272 * ira-costs.c: Add 2011 to the Copyright line.
9273 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9274 comments.
9275 (setup_regno_cost_classes_by_mode): Ditto.
9276
9277 Initial patches from ira-improv branch:
9278
9279 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9280
9281 * ira-build.c (ira_create_object): Remove initialization of
9282 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9283 (ira_create_allocno): Remove initialization of
9284 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9285 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9286 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9287 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9288 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9289 Initialize ALLOCNO_ADD_DATA.
9290 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9291 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9292 ALLOCNO_REG.
9293 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9294 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9295
9296 * ira.c (ira_reallocate): Remove.
9297 (setup_pressure_classes): Call
9298 ira_init_register_move_cost_if_necessary. Use
9299 ira_register_move_cost instead of ira_get_register_move_cost.
9300 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9301 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9302
9303 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9304 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9305 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9306 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9307 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9308 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9309 Fix formatting.
9310 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9311 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9312 (struct allocno_color_data): New.
9313 (allocno_color_data_t): New typedef.
9314 (allocno_color_data): New definition.
9315 (ALLOCNO_COLOR_DATA): New macro.
9316 (struct object_color_data): New.
9317 (object_color_data_t): New typedef.
9318 (object_color_data): New definition.
9319 (OBJECT_COLOR_DATA): New macro.
9320 (update_copy_costs, calculate_allocno_spill_cost): Call
9321 ira_init_register_move_cost_if_necessary. Use
9322 ira_register_move_cost instead of ira_get_register_move_cost.
9323 (move_spill_restore, update_curr_costs): Ditto.
9324 (allocno_spill_priority): Make it inline.
9325 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9326 (struct coalesce_data, coalesce_data_t): New.
9327 (allocno_coalesce_data): New definition.
9328 (ALLOCNO_COALESCE_DATA): New macro.
9329 (merge_allocnos, coalesced_allocno_conflict_p): Use
9330 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9331 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9332 (coalesce_allocnos): Ditto.
9333 (setup_coalesced_allocno_costs_and_nums): Ditto.
9334 (collect_spilled_coalesced_allocnos): Ditto.
9335 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9336 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9337 (coalesce_spill_slots): Ditto.
9338 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9339 free allocno_coalesce_data.
9340
9341 * ira-conflicts.c: Fix formatting.
9342 (process_regs_for_copy): Call
9343 ira_init_register_move_cost_if_necessary. Use
9344 ira_register_move_cost instead of ira_get_register_move_cost.
9345 (build_object_conflicts): Optimize.
9346
9347 * ira-costs.c (record_reg_classes): Optimize. Call
9348 ira_init_register_move_cost_if_necessary. Use
9349 ira_register_move_cost, ira_may_move_in_cost, and
9350 ira_may_move_out_cost instead of ira_get_register_move_cost and
9351 ira_get_may_move_cost.
9352 (record_address_regs): Ditto.
9353 (scan_one_insn): Optimize.
9354 (find_costs_and_classes): Optimize.
9355 (process_bb_node_for_hard_reg_moves): Call
9356 ira_init_register_move_cost_if_necessary. Use
9357 ira_register_move_cost instead of ira_get_register_move_cost.
9358
9359 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9360 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9361 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9362 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9363 definitions.
9364 (ira_initiate_emit_data, ira_finish_emit_data)
9365 (create_new_allocno): New functions.
9366 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9367 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9368 Use ira_register_move_cost instead of ira_get_register_move_cost.
9369
9370 * ira-int.h: Fix some comments.
9371 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9372 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9373 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9374 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9375 add_data.
9376 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9377 bitfield after mode. Make hard_regno a short int. Make
9378 hard_regno short. Remove first_coalesced_allocno and
9379 next_coalesced_allocno. Move mem_optimized_dest_p,
9380 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9381 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9382 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9383 temp, colorable_p. Add new member add_data.
9384 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9385 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9386 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9387 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9388 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9389 (ALLOCNO_ADD_DATA): New macro.
9390 (ira_emit_data_t): New typedef.
9391 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9392 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9393 from struct ira_allocno.
9394 (ALLOCNO_EMIT_DATA): New macro.
9395 (ira_allocno_emit_data, allocno_emit_reg): New.
9396 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9397 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9398 (OBJECT_ADD_DATA): New macro.
9399 (ira_reallocate): Remove.
9400 (ira_initiate_emit_data, ira_finish_emit_data): New.
9401 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9402 (ira_init_register_move_cost_if_necessary): New.
9403 (ira_object_conflict_iter_next): Merge into
9404 ira_object_conflict_iter_cond.
9405 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9406
9407 * ira-live.c (process_single_reg_class_operands): Call
9408 ira_init_register_move_cost_if_necessary. Use
9409 ira_register_move_cost instead of ira_get_register_move_cost.
9410
9411 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9412
9413 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9414
9415 * ira-costs.c: Fix formatting.
9416 (cost_classes, cost_classes_num): Remove.
9417 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9418 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9419 (cost_classes_del, cost_classes_htab): New.
9420 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9421 (initiate_regno_cost_classes, setup_cost_classes): New.
9422 (setup_regno_cost_classes_by_aclass): New.
9423 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9424 (record_reg_classes): Use regno_cost_classes instead of
9425 cost_classes. Move checking opposite operand up.
9426 (record_address_regs): Use regno_cost_classes
9427 instead of cost_classes.
9428 (scan_one_insn): Ditto. Use always general register.
9429 (print_allocno_costs): Use regno_cost_classes instead of
9430 cost_classes.
9431 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9432 (find_costs_and_classes): Set up cost classes for each registers.
9433 Use also their mode for this. Use regno_cost_classes instead of
9434 cost_classes.
9435 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9436 cost_classes.
9437 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9438 (ira_costs, ira_set_pseudo_classes): Call
9439 initiate_regno_cost_classes and finish_regno_cost_classes.
9440
9441 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9442
9443 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9444
9445 * target.def (ira_cover_classes): Remove.
9446
9447 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9448
9449 * doc/tm.texi.in: Ditto.
9450
9451 * ira-conflicts.c: Remove mentioning cover classes from the file.
9452 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9453 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9454
9455 * targhooks.c (default_ira_cover_classes): Remove.
9456
9457 * targhooks.h (default_ira_cover_classes): Ditto.
9458
9459 * haifa-sched.c: Remove mentioning cover classes from the file.
9460 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9461 ira_pressure_classes and ira_pressure_classes_num instead of
9462 ira_reg_class_cover_size and ira_reg_class_cover. Use
9463 sched_regno_pressure_class instead of sched_regno_cover_class.
9464 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9465 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9466
9467 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9468 classes from the file.
9469 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9470 (struct object_hard_regs, struct object_hard_regs_node): New.
9471 (struct ira_object): New members profitable_hard_regs,
9472 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9473 (struct ira_allocno): Rename cover_class to aclass. Rename
9474 cover_class_cost and updated_cover_class_cost to class_cost and
9475 updated_class_cost. Remove splay_removed_p and
9476 left_conflict_size. Add new members colorable_p.
9477 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9478 (ALLOCNO_COLORABLE_P): New macro.
9479 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9480 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9481 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9482 (OBJECT_...): Rename parameter C to O.
9483 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9484 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9485 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9486 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9487 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9488 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9489 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9490 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9491 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9492 x_ira_reg_class_subunion.
9493 (ira_max_memory_move_cost, ira_max_register_move_cost)
9494 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9495 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9496 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9497 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9498 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9499 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9500 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9501 (ira_tune_allocno_costs_and_cover_classes): Rename to
9502 ira_tune_allocno_costs.
9503 (ira_debug_hard_regs_forest): New.
9504 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9505 (ira_object_conflict_iter_next): Fix comments.
9506 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9507 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9508 cover_class to aclass.
9509 (ira_allocate_and_accumulate_costs): Ditto.
9510 (ira_allocate_and_set_or_copy_costs): Ditto.
9511
9512 * opts.c (decode_options): Remove ira_cover_class check.
9513
9514 * ira-color.c: Remove mentioning cover classes from the file. Use
9515 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9516 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9517 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9518 (splay-tree.h): Remove include.
9519 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9520 before copy_freq_compare_func.
9521 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9522 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9523 New definitions.
9524 (hard_regs_roots, hard_regs_node_vec): Ditto.
9525 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9526 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9527 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9528 (create_new_object_hard_regs_node): Ditto.
9529 (add_new_object_hard_regs_node_to_forest): Ditto.
9530 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9531 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9532 Ditto.
9533 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9534 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9535 (remove_unused_object_hard_regs_nodes): Ditto.
9536 (enumerate_object_hard_regs_nodes): Ditto.
9537 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9538 (object_hard_regs_subnode_t): Ditto.
9539 (struct object_hard_regs_subnode): Ditto.
9540 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9541 (setup_object_hard_regs_subnode_index): Ditto.
9542 (get_object_hard_regs_subnodes_num): Ditto.
9543 (form_object_hard_regs_nodes_forest): Ditto.
9544 (finish_object_hard_regs_nodes_tree): Ditto.
9545 (finish_object_hard_regs_nodes_forest): Ditto.
9546 (allocnos_have_intersected_live_ranges_p): Rename to
9547 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9548 (pseudos_have_intersected_live_ranges_p): Rename to
9549 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9550 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9551 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9552 (update_copy_costs): Remove assert. Skip cost update if the hard
9553 reg does not belong the class.
9554 (assign_hard_reg): Process only profitable hard regs.
9555 (uncolorable_allocnos_num): Make it scalar.
9556 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9557 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9558 and ira_reg_class_max_nregs.
9559 (bucket_allocno_compare_func): Check frequency first.
9560 (sort_bucket): Add compare function as a parameter.
9561 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9562 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9563 (push_allocno_to_stack): Rewrite for checking new allocno
9564 colorability.
9565 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9566 (push_only_colorable): Pass new parameter to sort_bucket.
9567 (push_allocno_to_spill): Remove.
9568 (allocno_spill_priority_compare): Make it inline and rewrite.
9569 (splay_tree_allocate, splay_tree_free): Remove.
9570 (allocno_spill_sort_compare): New function.
9571 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9572 build and use splay tree. Choose first allocno in uncolorable
9573 allocno bucket to spill. Remove setting spill cost.
9574 (all_conflicting_hard_regs): Remove.
9575 (setup_allocno_available_regs_num): Check only profitable hard
9576 regs. Print info about hard regs nodes.
9577 (setup_allocno_left_conflicts_size): Remove.
9578 (put_allocno_into_bucket): Don't call
9579 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9580 (improve_allocation): New.
9581 (color_allocnos): Call setup_profitable_hard_regs,
9582 form_object_hard_regs_nodes_forest, improve_allocation,
9583 finish_object_hard_regs_nodes_forest. Setup spill cost.
9584 (print_loop_title): Use pressure classes.
9585 (color_allocnso): Ditto.
9586 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9587 and allocnos_for_spilling.
9588 (ira_sort_regnos_for_alter_reg): Don't setup members
9589 {first,next}_coalesced_allocno.
9590 (color): Remove allocating and freeing removed_splay_allocno_vec.
9591 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9592 prohibited_class_mode_regs.
9593
9594 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9595 formatting.
9596 (update_allocno_pressure_excess_length): Use pressure classes.
9597 (inc_register_pressure, dec_register_pressure): Check for pressure
9598 class.
9599 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9600 pressure class. Use ira_reg_class_nregs instead of
9601 ira_reg_class_max_nregs.
9602 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9603 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9604 (single_reg_class): Use ira_reg_class_nregs instead of
9605 ira_reg_class_max_nregs.
9606 (process_bb_node_lives): Use pressure classes.
9607
9608 * ira-emit.c: Remove mentioning cover classes from the file. Use
9609 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9610 (change_loop): Use pressure classes.
9611 (modify_move_list): Call ira_set_allocno_class instead of
9612 ira_set_allocno_cover_class.
9613
9614 * ira-build.c: Remove mentioning cover classes from the file. Use
9615 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9616 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9617 ALLOCNO_UPDATED_CLASS_COST instead of
9618 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9619 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9620 (ira_create_allocno): Remove initialization of
9621 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9622 ALLOCNO_COLORABLE_P.
9623 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9624 Update conflict regs for the objects.
9625 (create_cap_allocno): Remove assert. Don't propagate
9626 ALLOCNO_AVAILABLE_REGS_NUM.
9627 (ira_free_allocno_costs): New function.
9628 (finish_allocno): Change a part of code into call of
9629 ira_free_allocno_costs.
9630 (low_pressure_loop_node_p): Use pressure classes.
9631 (object_range_compare_func): Don't compare classes.
9632 (setup_min_max_conflict_allocno_ids): Ditto.
9633
9634 * loop-invariant.c: Remove mentioning cover classes from the file.
9635 Use ira_pressure_classes and ira_pressure_classes_num instead of
9636 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9637 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9638 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9639 Use reg_allocno_class instead of reg_cover_class.
9640 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9641 STACK_REG_COVER_CLASS.
9642 (get_regno_cover_class): Rename to get_regno_pressure_class.
9643 (move_loop_invariants): Initialize and finalize regstat.
9644
9645 * ira.c: Remove mentioning cover classes from the file. Add
9646 comments about coloring without cover classes. Use ALLOCNO_CLASS
9647 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9648 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9649 setup_class_subset_and_memory_move_costs.
9650 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9651 (setup_cover_and_important_classes): Rename to
9652 setup_allocno_and_important_classes.
9653 (setup_class_translate_array): New.
9654 (setup_class_translate): Call it for allocno and pressure classes.
9655 (cover_class_order): Rename to allocno_class_order.
9656 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9657 of ira_class_translate.
9658 (reorder_important_classes): Set up ira_important_class_nums.
9659 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9660 (print_class_cover): Rename to print_classes. Add parameter.
9661 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9662 Print pressure classes too.
9663 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9664 setup_reg_subclasses.
9665 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9666 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9667 (setup_prohibited_class_mode_regs): Use
9668 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9669 (clarify_prohibited_class_mode_regs): New function.
9670 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9671 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9672 (ira_init_once): Initialize them.
9673 (free_register_move_costs): Process them.
9674 (ira_init): Move calls of find_reg_classes and
9675 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9676 Call clarify_prohibited_class_mode_regs.
9677 (ira_no_alloc_reg): Remove.
9678 (too_high_register_pressure_p): Use pressure classes.
9679
9680 * sched-deps.c: Remove mentioning cover classes from the file.
9681 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9682 ira_pressure_classes and ira_pressure_classes_num instead of
9683 ira_reg_class_cover_size and ira_reg_class_cover.
9684 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9685 sched_regno_pressure_class instead of sched_regno_cover_class.
9686 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9687 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9688
9689 * ira.h: Add 2010 to Copyright.
9690 (ira_no_alloc_reg): Remove external.
9691 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9692 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9693 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9694 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9695 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9696 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9697 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9698 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9699 x_ira_no_alloc_regs.
9700 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9701 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9702 ira_allocno_classes_num and ira_allocno_classes.
9703 (ira_class_translate): Rename to ira_allocno_class_translate.
9704 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9705 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9706 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9707 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9708 (ira_no_alloc_regs): New.
9709
9710 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9711 classes from the file. Use ALLOCNO_CLASS instead of
9712 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9713 ALLOCNO_COVER_CLASS_COST.
9714 (regno_cover_class): Rename to regno_aclass.
9715 (record_reg_classes): Use ira_reg_class_subunion instead of
9716 ira_reg_class_union.
9717 (record_address_regs): Check overflow.
9718 (scan_one_insn): Ditto.
9719 (print_allocno_costs): Print total mem cost fore regional allocation.
9720 (print_pseudo_costs): Use REG_N_REFS.
9721 (find_costs_and_classes): Use classes intersected with them on the
9722 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9723 ira_reg_class_union. Use ira_allocno_class_translate and
9724 regno_aclass instead of ira_class_translate and regno_cover_class.
9725 Modify code for finding regno_aclass. Setup preferred classes for
9726 the next pass.
9727 (setup_allocno_cover_class_and_costs): Rename to
9728 setup_allocno_class_and_costs. Use regno_aclass instead of
9729 regno_cover_class. Use ira_set_allocno_class instead of
9730 ira_set_allocno_cover_class.
9731 (init_costs, finish_costs): Use regno_aclass instead of
9732 regno_cover_class.
9733 (ira_costs): Use setup_allocno_class_and_costs instead of
9734 setup_allocno_cover_class_and_costs.
9735 (ira_tune_allocno_costs_and_cover_classes): Rename to
9736 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9737 by processing objects. Use ira_reg_class_max_nregs instead of
9738 ira_reg_class_nregs.
9739
9740 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9741
9742 * sched-int.h: Remove mentioning cover classes from the file.
9743 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9744
9745 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9746 classes from the file.
9747 (struct reg_pref): Rename coverclass into allocnoclass.
9748 (reg_cover_class): Rename to reg_allocno_class.
9749
9750 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9751
9752 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9753
9754 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9755
9756 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9757
9758 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9759
9760 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9761
9762 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9763
9764 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9765
9766 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9767
9768 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9769
9770 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9771 (i386_ira_cover_classes): Ditto.
9772
9773 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9774
9775 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9776
9777 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9778
9779 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9780
9781 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9782
9783 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9784
9785 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9786 (mips_ira_cover_classes): Ditto.
9787
9788 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9789
9790 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9791
9792 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9793
9794 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9795
9796 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9797
9798 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9799 (IRA_COVER_CLASSES_VSX): Ditto.
9800
9801 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9802 (rs6000_ira_cover_classes): Ditto.
9803
9804 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9805
9806 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9807
9808 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9809
9810 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9811
9812 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9813
9814 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9815
9816 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9817
9818 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9819
9820 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9821
9822 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9823
9824 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9825
9826 PR debug/48253
9827 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9828 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9829 dw_fde_unlikely_section_end_label, cold_in_std_section,
9830 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9831 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9832 fields.
9833 (output_fde): Use dw_fde_second_{begin,end} if second is
9834 true, otherwise dw_fde_{begin,end}.
9835 (output_call_frame_info): Test dw_fde_second_begin != NULL
9836 instead of dw_fde_switched_sections.
9837 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9838 fields, initialize new fields. Initialize in_std_section
9839 unconditionally from the first partition.
9840 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9841 dw_fde_second_begin is non-NULL.
9842 (dwarf2out_switch_text_section): Stop initializing removed
9843 dw_fde_struct fields, initialize new fields, initialize
9844 also dw_fde_end here. Set dw_fde_switch_cfi even when
9845 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9846 (struct var_loc_list_def): Add last_before_switch field.
9847 (arange_table, arange_table_allocated, arange_table_in_use,
9848 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9849 (size_of_aranges): Count !in_std_section and !second_in_std_section
9850 hunks in fdes, instead of looking at arange_table_in_use.
9851 (output_aranges): Add aranges_length argument, don't call
9852 size_of_aranges here. Instead of using aranges_table*
9853 emit ranges for fdes when !in_std_section resp.
9854 !second_in_std_section.
9855 (dw_loc_list): Break ranges crossing section switch.
9856 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9857 use dw_fde_second_end instead of dw_fde_end as end of last range.
9858 (gen_subprogram_die): Don't call add_arange. Use
9859 dw_fde_{begin,end} for first partition and if switched
9860 section dw_fde_second_{begin,end} for the second.
9861 (var_location_switch_text_section_1,
9862 var_location_switch_text_section): New functions.
9863 (dwarf2out_begin_function): Initialize cold_text_section even
9864 when function_section () isn't text_section.
9865 (prune_unused_types): Don't walk arange_table.
9866 (dwarf2out_finish): Don't needlessly test
9867 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9868 If info_section_emitted, call size_of_aranges and if it indicates
9869 non-empty .debug_aranges, call output_aranges with the computed
9870 size. Stop using removed dw_fde_struct fields, use
9871 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9872 for second.
9873
9874 PR debug/48203
9875 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9876 create ENTRY_VALUE if incoming or address of incoming's MEM
9877 is a hard REG.
9878 * dwarf2out.c (mem_loc_descriptor): Don't emit
9879 DW_OP_GNU_entry_value of DW_OP_fbreg.
9880 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9881 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9882 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9883 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9884 ENTRY_VALUE_EXPs.
9885 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9886 is a REG_P or MEM_P with REG_P address, compute hash directly
9887 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9888 (preserve_only_constants): Don't clear VALUES forwaring
9889 ENTRY_VALUE to some other VALUE.
9890
9891 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9892
9893 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9894 instead of GEN_INT.
9895
9896 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9897
9898 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9899 block before expanding the statement.
9900 (expand_gimple_stmt_1): Likewise. Set them here...
9901 (expand_gimple_stmt): ...and not here. Tidy.
9902 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9903 unknown.
9904
9905 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9906
9907 * Makefile.in: New rule for cprop.o.
9908 * gcse.c: Move constant/copy propagation to cprop.c.
9909 (compute_local_properties): Only handle expression tables.
9910 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9911 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9912 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9913 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9914 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9915 compute_cprop_data, find_used_regs, try_replace_reg,
9916 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9917 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9918 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9919 find_bypass_set, reg_killed_on_edge, bypass_block,
9920 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9921 execute_rtl_cprop, pass_rtl_cprop): Move to...
9922 * cprop.c: ...here. New file, constant/copy propagation for RTL
9923 moved from gcse.c to here with minor cleanups in duplicated code.
9924
9925 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9926
9927 * config/i386/i386.c (flag_opts): Fix a typo in
9928 -mavx256-split-unaligned-store.
9929
9930 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9931
9932 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9933 LIBCALL_VALUE): Remove macros.
9934 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9935 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9936 (h8300_function_value, h8300_libcall_value,
9937 h8300_function_value_regno_p): New functions.
9938
9939 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9940
9941 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9942
9943 2011-03-28 Jeff Law <law@redhat.com>
9944
9945 * tree-ssa-threadupdate.c (redirect_edges): Call
9946 create_edge_and_update_destination_phis as needed.
9947 (create_edge_and_update_destination_phis): Accept new BB argument.
9948 All callers updated.
9949 (thread_block): Do not update the profile when threading around
9950 intermediate blocks.
9951 (thread_single_edge): Likewise.
9952 (determine_bb_domination_status): If BB is not a successor of the
9953 loop header, return NONDOMINATING.
9954 (register_jump_thread): Note when we register a jump thread around
9955 an intermediate block.
9956 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9957 (thread_across_edge): Use it.
9958
9959 2011-03-28 Tristan Gingold <gingold@adacore.com>
9960
9961 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9962 when for_return is 2.
9963
9964 2011-03-28 Jeff Law <law@redhat.com>
9965
9966 * var-tracking.c (canonicalize_values_mark): Delete unused
9967 lhs assignment.
9968 (canonicalize_values_star, set_variable_part): Likewise.
9969 (clobber_variable_part, delete_variable_part): Likewise.
9970
9971 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9972
9973 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9974
9975 2011-03-28 Martin Jambor <mjambor@suse.cz>
9976
9977 * tree-inline.c (expand_call_inline): Do not check that destination
9978 node is analyzed.
9979 (optimize_inline_calls): Assert that destination node is analyzed.
9980 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9981 not call tree_lowering_passes.
9982 * cgraph.h (cgraph_analyze_function): Declare.
9983 * cgraphunit.c (cgraph_analyze_function): Make public.
9984
9985 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9986
9987 * config/sparc/sparc-opts.h: New.
9988 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9989 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9990 (sparc_option_override): Store processor_type enumeration rather
9991 than string in cpu_default. Remove name and enumeration from
9992 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9993 without using sparc_select. Use target_flags_explicit instead of
9994 fpu_option_set.
9995 * config/sparc/sparc.h (enum processor_type): Move to
9996 sparc-opts.h.
9997 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9998 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9999 HeaderInclude entry.
10000 (mcpu=, mtune=): Use Var and Enum.
10001 (sparc_processor_type): New Enum and EnumValue entries.
10002
10003 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10004 Iain Sandoe <iains@gcc.gnu.org>
10005
10006 PR target/48245
10007 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10008
10009 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10010
10011 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10012 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10013 Insert new statements at it in lieu of STMT.
10014 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10015 * tree-vect-stmts.c (vectorizable_store): Likewise.
10016 (vectorizable_load): Likewise.
10017
10018 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10019
10020 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10021 (divtf3): Ditto.
10022 (multf3): Ditto.
10023 (subtf3): Ditto.
10024
10025 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10026
10027 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10028 unaligned 256bit load/store.
10029 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10030 (*avx_movdqu<avxmodesuffix>): Likewise.
10031
10032 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10033
10034 PR target/48288
10035 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10036 * config/pa/pa.md (iordi3): Use new predicate in expander.
10037 (iorsi3): Likewise.
10038
10039 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10040
10041 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10042 FUNCTION_VALUE_REGNO_P): Remove macros.
10043 * config/mips/mips-protos.h (mips_function_value): Remove.
10044 * config/mips/mips.c (mips_function_value): Rename to...
10045 (mips_function_value_1): ... this. Make static. Handle receiving
10046 the function type in 'fn_decl_or_type' argument.
10047 (mips_function_value, mips_libcall_value,
10048 mips_function_value_regno_p): New function.
10049 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10050 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10051
10052 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10053
10054 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10055 and -mavx256-split-unaligned-store.
10056 (ix86_option_override_internal): Split 32-byte AVX unaligned
10057 load/store by default.
10058 (ix86_avx256_split_vector_move_misalign): New.
10059 (ix86_expand_vector_move_misalign): Use it.
10060
10061 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10062 -mavx256-split-unaligned-store.
10063
10064 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10065 256bit load/store. Generate unaligned store on misaligned memory
10066 operand.
10067 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10068 256bit load/store.
10069 (*avx_movdqu<avxmodesuffix>): Likewise.
10070
10071 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10072 -mavx256-split-unaligned-store.
10073
10074 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10075
10076 PR target/38598
10077 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10078 Update commentary.
10079
10080 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10081
10082 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10083 opno arguments with an expand_operand. Use create_input_operand.
10084 (mips_prepare_builtin_target): Delete.
10085 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10086 functions.
10087 (mips_expand_builtin_direct): Use create_output_operand and
10088 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10089 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10090 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10091
10092 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10093
10094 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10095 function.
10096 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10097
10098 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10099
10100 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10101 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10102 basic blocks and call commit_edge_insertions directly.
10103 (fixup_abnormal_edges): Move from here to...
10104 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10105 on the edges and return whether some have actually been inserted.
10106 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10107 compensation code.
10108
10109 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10110
10111 PR rtl-optimization/48144
10112 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10113 (merge_expr_data): ... here.
10114 (av_set_intersect): Rename to av_set_code_motion_filter.
10115 Update all callers. Call merge_history_vect when an expression
10116 is found in both sets.
10117 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10118
10119 2011-03-26 Alan Modra <amodra@gmail.com>
10120
10121 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10122 cmodel medium addresses.
10123 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10124 64-bit gpr loads and stores.
10125 (rs6000_secondary_reload_ppc64): New function.
10126 * config/rs6000/rs6000-protos.h: Declare it.
10127 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10128
10129 2011-03-26 Alan Modra <amodra@gmail.com>
10130
10131 PR target/47487
10132 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10133 GNU Go in traceback table.
10134
10135 2011-03-25 Richard Henderson <rth@redhat.com>
10136
10137 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10138 if there are exactly 6 operands.
10139 (set_storage_via_setmem): Similarly.
10140
10141 2011-03-25 Kai Tietz <ktietz@redhat.com>
10142
10143 * collect2.c (write_c_file_stat): Handle backslash
10144 as right-hand directory separator.
10145 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10146 checking just for slash.
10147 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10148 instead of checking for trailing slash.
10149 * gcc.c (record_temp_file): Use filename_cmp instead
10150 of strcmp.
10151 (do_spec_1): Likewise.
10152 (replace_outfile_spec_function): Likewise.
10153 (is_directory): Use filename_ncmp instead of strncmp.
10154 (print_multilib_info): Likewise.
10155 * gcov.c (find_source): Use filename_cmp instead
10156 instead of strcmp.
10157 (make_gcov_file_name): Fix order of slash/backslash
10158 checks.
10159 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10160 (add_standard_paths): Likewise.
10161 * mips-tfile.c (saber_stop): Handle backslash.
10162 * prefix.c (update_path): Use filename_ncmp instead of
10163 strncmp.
10164 * profile.c (output_location): Use filename_cmp instead
10165 of strcmp.
10166 * read-md.c (handle_toplevel_file): Handle backslash.
10167 * tlink.c (frob_extension): Likewise.
10168 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10169 strcmp.
10170 * tree-dump.c (dequeue_and_dump): Handle backslash.
10171 * tree.c (get_file_function_name): Likewise.
10172 * gengtype.c (read_input_list): Likewise.
10173 (get_file_realbasename): Likewise.
10174 (get_output_file_with_visibility): Use filename_cmp
10175 instead of strcmp.
10176
10177 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10178
10179 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10180 case to VFPv1.
10181
10182 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10183
10184 * fold-const.c (expr_location_or): New function.
10185 (fold_truth_not_expr): Call it.
10186
10187 2011-03-25 Jeff Law <law@redhat.com>
10188
10189 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10190 va_end.
10191 * c-family/c-common.c (def_fn_type): Likewise.
10192 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10193 * emit-rtl.c (gen_rtvec): Likewise.
10194 * lto/lto-lang.c (def_fn_type): Likewise.
10195
10196 2011-03-25 Richard Guenther <rguenther@suse.de>
10197
10198 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10199 also generate copies.
10200 (fini_copy_prop): Handle constant values properly.
10201
10202 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10203
10204 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10205 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10206 (hash_loc_operands, compare_loc_operands): Handle
10207 DW_OP_GNU_entry_value.
10208
10209 2011-03-25 Kai Tietz <ktietz@redhat.com>
10210
10211 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10212 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10213 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10214 comment and use macro TARGET_64BIT_MS_ABI instead.
10215 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10216 and change default behavior for 32-bit MS_ABI.
10217 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10218 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10219 32-bit, too.
10220 (ix86_cfun_abi): Likewise.
10221 (ix86_maybe_switch_abi): Adjust comment.
10222 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10223 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10224 instead of checking for SYSV_ABI.
10225 (ix86_nsaved_sseregs): Likewise.
10226 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10227 to 16 bytes.
10228 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10229 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10230 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10231 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10232 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10233
10234 2011-03-25 Richard Guenther <rguenther@suse.de>
10235
10236 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10237 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10238 (verify_gimple): Remove.
10239 * tree-cfg.c (verify_gimple_call): Merge verification
10240 from verify_stmts.
10241 (verify_gimple_phi): Merge verification from verify_stmts.
10242 (verify_gimple_label): New function.
10243 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10244 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10245 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10246 (verify_stmts): Rename to verify_gimple_in_cfg.
10247 (verify_gimple_in_cfg): New function.
10248 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10249 * tree-ssa.c (verify_ssa): Likewise.
10250 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10251
10252 2011-03-25 Richard Guenther <rguenther@suse.de>
10253
10254 * passes.c (init_optimization_passes): Add FRE pass after
10255 early SRA.
10256
10257 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10258 Andrew Stubbs <ams@codesourcery.com>
10259
10260 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10261 for Cortex-A8.
10262 (arm_movdi_vfp_cortexa8): New pattern.
10263 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10264 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10265 instructions when tuning for Cortex-A8. Set attribute "arch".
10266 * config/arm/arm.md: Move include arm-tune.md up a bit.
10267 (define_attr "arch"): Add "onlya8" and "nota8" values.
10268 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10269
10270 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10271
10272 PR bootstrap/48282
10273 Revert:
10274 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10275
10276 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10277 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10278 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10279 * passes.c (init_optimization_passes): Move
10280 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10281
10282 2011-03-25 Kai Tietz <ktietz@redhat.com>
10283
10284 * c-typeck.c (comptypes_internal): Replace target
10285 hook call of comp_type_attributes by version in tree.c file.
10286 * gimple.c (gimple_types_compatible_p_1): Likewise.
10287 * tree-ssa.c (useless_type_conversion_p): Likewise.
10288 * tree.c (build_type_attribute_qual_variant): Likewise.
10289 (attribute_value_equal): New static helper function.
10290 (comp_type_attributes): New function.
10291 (merge_attributes): Use attribute_value_equal for comparison.
10292 (attribute_list_contained): Likewise.
10293 * tree.h (comp_type_attributes): New prototype.
10294
10295 2011-03-25 Richard Guenther <rguenther@suse.de>
10296
10297 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10298 of complex types at -O0.
10299 (verify_gimple_assign_binary): Likewise.
10300 (verify_gimple_assign_ternary): Likewise.
10301
10302 2011-03-24 Mark Wielaard <mjw@redhat.com>
10303
10304 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10305 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10306
10307 2011-03-24 Mark Wielaard <mjw@redhat.com>
10308
10309 PR debug/48041
10310 * dwarf2out.c (output_abbrev_section): Only write table when
10311 abbrev_die_table_in_use > 1.
10312
10313 2011-02-24 Richard Henderson <rth@redhat.com>
10314
10315 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10316 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10317 (alpha_expand_unaligned_load_words): Use extql.
10318 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10319 (emit_insxl): Handle all modes for consistency.
10320
10321 2011-02-24 Richard Henderson <rth@redhat.com>
10322
10323 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10324 (alpha_expand_unaligned_load): Likewise.
10325 (alpha_expand_unaligned_store): Likewise.
10326 (alpha_expand_unaligned_load_words): Likewise.
10327 (alpha_expand_unaligned_store_words): Likewise.
10328 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10329 (alpha_split_lock_test_and_set_12): Likewise.
10330 (print_operand, alpha_fold_builtin_extxx): Likewise.
10331 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10332 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10333 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10334 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10335 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10336 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10337 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10338 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10339 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10340 (extwl, extll, extql): Similarly.
10341 (inswh, inslh, insqh): Similarly.
10342 (mskbl, mskwl, mskll, mskql): Similarly.
10343 (mskwh, msklh, mskqh): Similarly.
10344
10345 2011-02-24 Richard Henderson <rth@redhat.com>
10346
10347 * config/alpha/alpha.md (attribute isa): Add er, ner.
10348 (attribute enabled): Handle them.
10349 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10350
10351 2011-02-24 Richard Henderson <rth@redhat.com>
10352
10353 * config/alpha/alpha.md (attribute isa): Add vms.
10354 (attribute enabled): Handle it.
10355 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10356 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10357 (*movtf): Rename from *movtf_internal for consistency.
10358 (*movsi): Merge with *movsi_nt_vms.
10359 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10360 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10361 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10362 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10363
10364 2011-02-24 Richard Henderson <rth@redhat.com>
10365
10366 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10367 (extendqisi2, extendhisi2): Likewise.
10368 (extendqidi2): Simplify BWX/non-BWX expansions.
10369 (extendhidi2): Similarly.
10370
10371 2011-02-24 Richard Henderson <rth@redhat.com>
10372
10373 * config/alpha/alpha.md (attribute isa): New.
10374 (attribute enabled): New.
10375 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10376 (zero_extendqisi2, zero_extendqidi2): Similarly.
10377 (zero_extendhisi2, zero_extendhidi2): Similarly.
10378 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10379
10380 2011-02-24 Richard Henderson <rth@redhat.com>
10381
10382 * config/alpha/predicates.md (input_operand): Revert last change;
10383 update comment to mention 32-bit VMS rather than Windows.
10384
10385 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10386
10387 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10388 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10389 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10390 * passes.c (init_optimization_passes): Move
10391 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10392
10393 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10394
10395 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10396
10397 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10398
10399 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10400 correctly.
10401
10402 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10403
10404 PR debug/48204
10405 * simplify-rtx.c (simplify_const_unary_operation): Call
10406 real_convert when changing mode class with FLOAT_EXTEND.
10407
10408 2011-03-24 Nick Clifton <nickc@redhat.com>
10409
10410 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10411 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10412 * config/rx/rx.c (rx_option_override): Set align_jumps,
10413 align_loops and align_labels if not set by the user.
10414 (rx_align_for_label): New function.
10415 (rx_max_skip_for_label): New function.
10416 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10417 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10418 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10419 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10420 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10421
10422 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10423
10424 PR rtl-optimization/48263
10425 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10426 and original commutative_p handling. Use maybe_gen_insn.
10427
10428 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10429
10430 * reload.c (find_reloads_subreg_address): Add address_reloaded
10431 parameter and return true there if the full address has been
10432 reloaded.
10433 (find_reloads_toplev): Pass address_reloaded flag.
10434 (find_reloads_address_1): Don't use address_reloaded parameter.
10435
10436 2011-03-24 Jeff Law <law@redhat.com>
10437
10438 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10439 unused variable "ann".
10440 (remove_unused_locals): Likewise.
10441
10442 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10443 statement.
10444
10445 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10446 after it is freed.
10447
10448 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10449
10450 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10451 for invalid symbolic addresses.
10452 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10453 larl operands.
10454
10455 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10456
10457 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10458 the argument in calls to fold_truth_not_expr.
10459
10460 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10461
10462 * tree.c (record_node_allocation_statistics): New function.
10463 (make_node_stat, copy_node_stat, build_string): Call it.
10464 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10465 (build1_stat, build_omp_clause): Likewise.
10466
10467 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10468
10469 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10470 last commit.
10471
10472 2011-03-24 Richard Guenther <rguenther@suse.de>
10473
10474 PR tree-optimization/48271
10475 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10476 blocks that still exist.
10477
10478 2011-03-24 Richard Guenther <rguenther@suse.de>
10479
10480 PR tree-optimization/48270
10481 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10482 not free datarefs before ddrs.
10483
10484 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10485
10486 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10487 from the address built for a reference with variable offset.
10488
10489 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10490
10491 PR target/48237
10492 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10493 alternatives that can be handled with movq or movabsq insn.
10494 (*movdf_internal): Disable for !TARGET_64BIT.
10495 (*movdf_internal_nointeger): Ditto.
10496 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10497
10498 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10499
10500 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10501 (FUNCTION_ARG_ADVANCE): Likewise.
10502 * tm.texi.in: Change references to them to hook references.
10503 * tm.texi: Regenerate.
10504 * targhooks.c (default_function_arg): Eliminate check for target macro.
10505 (default_function_incoming_arg): Likewise.
10506 (default_function_arg_advance): Likewise.
10507 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10508 (function_arg_advance): Likewise.
10509 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10510
10511 2011-03-24 Richard Guenther <rguenther@suse.de>
10512
10513 PR middle-end/48269
10514 * tree-object-size.c (addr_object_size): Do not double-account
10515 for MEM_REF offsets.
10516
10517 2011-03-24 Diego Novillo <dnovillo@google.com>
10518
10519 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10520 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10521 (lto_input_data_block): Move from lto-opts.c. Make extern.
10522 Update all users.
10523 (lto_input_string): Rename from input_string. Make extern.
10524 Update all users.
10525 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10526 output_string_with_length.
10527 Output 0 to indicate a non-NULL string. Update all callers to
10528 not emit 0.
10529 (lto_output_string): Rename from output_string. Make extern.
10530 Update all users.
10531 (lto_output_decl_state_streams): Make extern.
10532 (lto_output_decl_state_refs): Make extern.
10533 * lto-streamer.h (lto_input_string): Declare.
10534 (lto_input_data_block): Declare.
10535 (lto_output_string): Declare.
10536 (lto_output_string_with_length): Declare.
10537 (lto_output_decl_state_streams): Declare.
10538 (lto_output_decl_state_refs): Declare.
10539
10540 2011-03-24 Richard Guenther <rguenther@suse.de>
10541
10542 PR tree-optimization/46562
10543 * tree.c (build_invariant_address): New function.
10544 * tree.h (build_invariant_address): Declare.
10545 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10546 a renamed function moved ...
10547 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10548 Take valueization callback parameter.
10549 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10550 * gimple-fold.h: New file.
10551 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10552 (ccp_fold, fold_const_aggregate_ref,
10553 fold_ctor_reference, fold_nonarray_ctor_reference,
10554 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10555 get_base_constructor): Move ...
10556 * gimple-fold.c: ... here.
10557 (gimple_fold_stmt_to_constant_1): New function
10558 split out from ccp_fold. Take a valueization callback parameter.
10559 Valueize all operands.
10560 (gimple_fold_stmt_to_constant): New wrapper function.
10561 (fold_const_aggregate_ref_1): New function split out from
10562 fold_const_aggregate_ref. Take a valueization callback parameter.
10563 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10564 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10565 invariant POINTER_PLUS_EXPRs to invariant form.
10566 (vn_valueize): New function.
10567 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10568 * tree-vrp.c (vrp_valueize): New function.
10569 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10570 to fold statements to constants.
10571 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10572 function declarations.
10573 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10574 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10575
10576 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10577
10578 * config/h8300/predicates.md (jump_address_operand): Fix register
10579 mode check.
10580
10581 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10582
10583 * doc/invoke.texi (max-stores-to-sink): Document.
10584 * params.h (MAX_STORES_TO_SINK): Define.
10585 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10586 if either vectorization or if-conversion is disabled.
10587 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10588 tree-vect-data-refs.c vect_equal_offsets.
10589 (dr_equal_offsets_p): New function.
10590 (find_data_references_in_bb): Remove static.
10591 * tree-data-ref.h (find_data_references_in_bb): Declare.
10592 (dr_equal_offsets_p): Likewise.
10593 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10594 (vect_drs_dependent_in_basic_block): Update calls to
10595 vect_equal_offsets.
10596 (vect_check_interleaving): Likewise.
10597 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10598 (cond_if_else_store_replacement): Rename to...
10599 (cond_if_else_store_replacement_1): ... this. Change arguments and
10600 documentation.
10601 (cond_if_else_store_replacement): New function.
10602 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10603 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10604
10605 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10606
10607 PR target/46934
10608 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10609 to subtract lower bound instead of GEN_INT().
10610
10611 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10612
10613 PR other/48179
10614 PR other/48221
10615 PR other/48234
10616 * doc/extend.texi (Alignment): Move section to match order in TOC.
10617 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10618 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10619
10620 2011-03-23 Jeff Law <law@redhat.com>
10621
10622 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10623 before removing the edge.
10624
10625 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10626 it may have been freed by redirect_branch_edge or
10627 redirect_edge_succ_nodup.
10628
10629 2011-03-23 Richard Guenther <rguenther@suse.de>
10630
10631 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10632 (check_va_list_escapes): Likewise.
10633 (check_all_va_list_escapes): Likewise.
10634
10635 2011-03-23 Richard Guenther <rguenther@suse.de>
10636
10637 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10638 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10639 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10640 (alias.o): Likewise.
10641 (ipa-type-escape.o): Remove.
10642 (ipa-struct-reorg.o): Likewise.
10643 (GTFILES): Remove ipa-struct-reorg.c.
10644 * alias.c: Do not include ipa-type-escape.h.
10645 * tree-ssa-alias.c: Likewise.
10646 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10647 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10648 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10649 and ipa-type-escape passes.
10650 * tree-pass.h (pass_ipa_type_escape): Remove.
10651 (pass_ipa_struct_reorg): Likewise.
10652 * ipa-struct-reorg.h: Remove.
10653 * ipa-struct-reorg.c: Likewise.
10654 * ipa-type-escape.h: Likewise.
10655 * ipa-type-escape.c: Likewise.
10656 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10657 (--param struct-reorg-cold-struct-ratio): Likewise.
10658 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10659 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10660 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10661
10662 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10663
10664 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10665 cpu attribute value.
10666 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10667 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10668 * config/s390/s390.c (processor_flags_table): New constant array.
10669 (s390_handle_arch_option): Remove.
10670 (s390_handle_option): Remove s390_handle_arch_option invocations
10671 and OPT_mwarn_framesize_ handling.
10672 (s390_option_override): Remove s390_handle_arch_option invocation.
10673 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10674 warnings.
10675 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10676 * config/s390/s390.opt (s390_tune, s390_arch)
10677 (march=): Replace s390_arch_option enum and values with
10678 processor_type. Set variable name to s390_arch. Set
10679 initialization value.
10680 (mtune=): Replace s390_arch_option with processor_type. Set
10681 variable name to s390_tune. Set initialization value.
10682
10683 2011-03-23 Julian Brown <julian@codesourcery.com>
10684
10685 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10686 accesses which are not naturally aligned.
10687
10688 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10689
10690 PR target/47553
10691 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10692
10693 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10694
10695 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10696 parameter from "int" to "enum insn_code".
10697 (expand_operand_type): New enum.
10698 (expand_operand): New structure.
10699 (create_expand_operand): New function.
10700 (create_fixed_operand, create_output_operand): Likewise
10701 (create_input_operand, create_convert_operand_to): Likewise.
10702 (create_convert_operand_from, create_address_operand): Likewise.
10703 (create_integer_operand): Likewise.
10704 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10705 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10706 (expand_insn, expand_jump_insn): Likewise.
10707 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10708 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10709 (expand_movstr, expand_builtin___clear_cache): Likewise.
10710 (expand_builtin_lock_release): Likewise.
10711 * explow.c (allocate_dynamic_stack_space): Likewise.
10712 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10713 and use the default handling in that case.
10714 * expmed.c (check_predicate_volatile_ok): Delete.
10715 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10716 (emit_cstore): Likewise.
10717 * expr.c (emit_block_move_via_movmem): Likewise.
10718 (set_storage_via_setmem, expand_assignment): Likewise.
10719 (emit_storent_insn, try_casesi): Likewise.
10720 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10721 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10722 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10723 (expand_twoval_unop, expand_twoval_binop): Likewise.
10724 (expand_unop_direct, emit_indirect_jump): Likewise.
10725 (emit_conditional_move, vector_compare_rtx): Likewise.
10726 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10727 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10728 (expand_sync_lock_test_and_set): Likewise.
10729 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10730 (emit_unop_insn): Likewise.
10731 (expand_copysign_absneg): Change icode to an insn_code.
10732 (create_convert_operand_from_type): New function.
10733 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10734 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10735 (expand_insn, expand_jump_insn): Likewise.
10736 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10737 than const_int_operand for operand 2.
10738
10739 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10740
10741 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10742 if possible.
10743
10744 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10745
10746 * emit-rtl.c (emit_pattern_before_noloc): New function.
10747 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10748 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10749 (emit_pattern_after_noloc): New function.
10750 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10751 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10752
10753 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10754
10755 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10756 (__ffsDI2): Likewise.
10757
10758 2011-03-22 Richard Henderson <rth@redhat.com>
10759
10760 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10761 of !TARGET_ABI_OPEN_VMS.
10762 (alpha_trampoline_init, alpha_start_function): Likewise.
10763 (alpha_expand_epilogue, alpha_file_start): Likewise.
10764 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10765 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10766 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10767 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10768 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10769
10770 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10771
10772 * config/s390/s390-opts.h: New.
10773 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10774 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10775 s390_stack_guard): Remove.
10776 (s390_handle_arch_option): Return void. Take enum
10777 s390_arch_option value instead of string and searching array.
10778 (s390_handle_option): Don't assert that global structures are in
10779 use. Access variables via opts pointer. Use error_at. Don't use
10780 sscanf for -mstack-guard= or -mstack-size=. Update call to
10781 s390_handle_arch_option.
10782 (s390_option_override): Update call to s390_handle_arch_option.
10783 (s390_emit_prologue): Use %d format for s390_stack_size in
10784 diagnostic. Use %wd for HOST_WIDE_INT.
10785 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10786 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10787 * config/s390/s390.opt (config/s390/s390-opts.h): New
10788 HeaderInclude entry.
10789 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10790 s390_arch_flags, s390_warn_framesize): New Variable entries.
10791 (s390_arch_option): New Enum and EnumValue entries.
10792 (march=): Use Enum instead of Var.
10793 (mstack-guard=, mstack-size=): Use UInteger and Var.
10794 (mtune=): Use Enum.
10795
10796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10797
10798 * config/score/score.c (score_handle_option): Don't assert that
10799 global structures are in use. Access target_flags via opts
10800 pointer. Use value of -march= option to determine target_flags
10801 settings.
10802 * config/score/score.opt (march=): Use Enum.
10803 (score_arch): New Enum and EnumValue entries.
10804
10805 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10806
10807 * config/mep/mep.c (option_mtiny_specified): Remove.
10808 (mep_option_override): Move register handling for -mivc2 from
10809 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10810 instead of option_mtiny_specified.
10811 (mep_handle_option): Access target_flags via opts pointer. Don't
10812 assert that global structures are in use. Defer part of -mivc2
10813 handling and move it to mep_option_override.
10814 * config/mep/mep.opt (IVC2): New Mask entry.
10815 (mivc2): Use Var and Defer instead of Mask.
10816
10817 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10818
10819 * config/v850/v850-opts.h: New.
10820 * config/v850/v850.c (small_memory): Replace with
10821 small_memory_physical_max array. Make that array static const.
10822 (v850_handle_memory_option): Take integer value of argument. Take
10823 gcc_options pointer, option text and location. Return void.
10824 Update for changes to small memory structures.
10825 (v850_handle_option): Access target_flags via opts pointer. Don't
10826 assert that global structures are in use. Update calls to
10827 v850_handle_memory_option.
10828 (v850_encode_data_area): Update references to small memory settings.
10829 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10830 (enum small_memory_type): Move to v850-opts.h.
10831 * config/v850/v850.opt (config/v850/v850-opts.h): New
10832 HeaderInclude entry.
10833 (small_memory_max): New Variable entry.
10834 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10835 (mtda, mzda): Likewise.
10836
10837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10838
10839 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10840 pointer. Don't assert that global structures are in use.
10841
10842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10843
10844 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10845 via opts pointer. Don't assert that global structures are in use.
10846
10847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10848
10849 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10850 (munix=93): Use Var.
10851 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10852 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10853 * config/pa/pa-opts.h: New.
10854 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10855 (pa_handle_option): Don't assert that global structures are in
10856 use. Access target_flags via opts pointer. Don't handle
10857 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10858 OPT_munix_98 here.
10859 (pa_option_override): Handle deferred OPT_mfixed_range_.
10860
10861 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10862
10863 * config/mn10300/mn10300-opts.h: New.
10864 * config/mn10300/mn10300.c (mn10300_processor,
10865 mn10300_tune_string): Remove.
10866 (mn10300_handle_option): Don't assert that global structures are
10867 in use. Access mn10300_processor via opts pointer. Don't handle
10868 OPT_mtune_ here.
10869 * config/mn10300/mn10300.h (enum processor_type): Move to
10870 mn10300-opts.h.
10871 (mn10300_processor): Remove.
10872 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10873 HeaderInclude entry.
10874 (mn10300_processor): New Variable entry.
10875 (mtune=): Use Var.
10876
10877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10878
10879 * config/microblaze/microblaze.c: Don't include opts.h.
10880 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10881 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10882 (mno-clearbss): Use Var and Warn.
10883
10884 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10885
10886 * config/m32r/m32r-opts.h: New.
10887 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10888 (m32r_handle_option): Don't assert that global structures are in
10889 use. Access target_flags and m32r_cache_flush_func via opts
10890 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10891 OPT_mno_flush_trap here.
10892 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10893 include of m32r-opts.h.
10894 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10895 HeaderInclude entry.
10896 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10897 (mmodel=): Use Enum and Var.
10898 (m32r_model): New Enum and EnumValue entries.
10899 (mno-flush-trap): Use Var.
10900 (msdata=): Use Enum and Var.
10901 (m32r_sdata): New Enum and EnumValue entries.
10902
10903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10904
10905 * config/m32c/m32c.c: Don't include opts.h.
10906 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10907 m32c_handle_option): Remove.
10908 (m32c_option_override): Check global_options_set.x_target_memregs
10909 instead of target_memregs_set.
10910 * config/m32c/m32c.h (target_memregs): Remove.
10911 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10912 variable.
10913
10914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10915
10916 * config/iq2000/iq2000-opts.h: New.
10917 * config/iq2000/iq2000.c: Don't include opts.h.
10918 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10919 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10920 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10921 HeaderInclude entry.
10922 (iq2000_tune): New Variable entry.
10923 (march=): Add comment. Use Enum.
10924 (iq2000_arch): New Enum and EnumValue entries.
10925 (mcpu=): Use Enum and Var.
10926 (iq2000_tune): New Enum and EnumValue entries.
10927
10928 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10929
10930 * config/ia64/ia64-opts.h: New.
10931 * config/ia64/ia64.c (ia64_tune): Remove.
10932 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10933 here. Use error_at.
10934 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10935 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10936 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10937 HeaderInclude entry.
10938 (ia64_tune): New Variable entry.
10939 (mfixed-range=): Use Defer and Var.
10940 (mtune=): Use Enum and Var.
10941 (ia64_tune): New Enum and EnumValue entries.
10942
10943 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10944
10945 * config/frv/frv-opts.h: New.
10946 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10947 frv-opts.h.
10948 (frv_cpu_type): Remove.
10949 * config/frv/frv.c: Don't include opts.h.
10950 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10951 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10952 (frv_cpu_type): New Variable entry.
10953 (frv_cpu): New Enum and EnumValue entries.
10954
10955 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10956
10957 * config/cris/cris.c (cris_handle_option): Access target_flags via
10958 opts pointer. Don't assert that global structures are in use.
10959 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10960 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10961
10962 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10963
10964 * config/bfin/bfin-opts.h: New.
10965 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10966 bfin_si_revision, bfin_workarounds): Remove.
10967 (bfin_cpus): Make static const.
10968 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10969 not bfin_lib_id_given.
10970 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10971 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10972 pointer. Use error_at. Don't assert that global structures are in use.
10973 * config/bfin/bfin.h: Include bfin-opts.h.
10974 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10975 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10976 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10977 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10978 entries.
10979
10980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10981
10982 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10983 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10984 or -msoft-float here.
10985 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10986 -msoft-float and -mhard-float.
10987 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10988 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10989 msoft-float.
10990 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10991 -msoft-float.
10992 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10993 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10994 not mhard-float.
10995 (LIBGCC_SPEC): Don't handle -msoft-float.
10996 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10997 -mhard-float.
10998 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10999 msoft-float.
11000 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11001 -mfloat-abi=*, not -msoft-float and -mhard-float.
11002 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11003 -msoft-float.
11004 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11005 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11006 mhard-float and msoft-float.
11007 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11008 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11009 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11010 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11011 mhard-float.
11012 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11013 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11014 msoft-float.
11015 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11016 not mhard-float.
11017 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11018 not msoft-float.
11019
11020 2011-03-22 Richard Henderson <rth@redhat.com>
11021
11022 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11023 TARGET_ABI_WINDOWS_NT.
11024 (alpha_output_function_end_prologue): Likewise.
11025 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11026 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11027 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11028 (trap, *movsi_nt_vms): Likewise.
11029 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11030 (*tablejump_osf_nt_internal): Remove.
11031 * config/alpha/predicates.md (input_operand): Only test Pmode.
11032
11033 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11034
11035 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11036 via opts pointer. Use error_at. Don't assert that global
11037 structures are in use.
11038
11039 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11040
11041 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11042 (ix86_handle_option): Access ix86_isa_flags and
11043 ix86_isa_flags_explicit via opts pointer. Don't assert that
11044 global structures are in use.
11045 (ix86_function_specific_save, ix86_function_specific_restore):
11046 Update ix86_isa_flags_explicit field name.
11047 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11048 (ix86_isa_flags_explicit): Rename TargetSave entry to
11049 x_ix86_isa_flags_explicit.
11050
11051 2011-03-22 Richard Henderson <rth@redhat.com>
11052
11053 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11054 (alpha_option_override, direct_return): Likewise.
11055 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11056 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11057 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11058 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11059 (alpha_expand_epilogue, alpha_end_function): Likewise.
11060 (alpha_init_libfuncs): Likewise.
11061 (struct machine_function): Remove unicosmk members.
11062 (print_operand) ['t']: Remove.
11063 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11064 unicosmk_output_module_name, unicosmk_output_common,
11065 current_section_align, unicosmk_output_text_section_asm_op,
11066 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11067 unicosmk_section_type_flags, unicosmk_unique_section,
11068 unicosmk_asm_named_section, unicosmk_insert_attributes,
11069 unicosmk_output_align, unicosmk_defer_case_vector,
11070 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11071 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11072 unicosmk_output_ssib, unicosmk_add_call_info_word,
11073 unicosmk_extern_head, unicosmk_output_default_externs,
11074 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11075 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11076 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11077 * config/alpha/alpha-protos.h: Update.
11078 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11079 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11080 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11081 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11082 (*mulsi_se, mulvsi3): Likewise.
11083 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11084 (*divmodsi_internal, call, call_value, realign): Likewise.
11085 (moddi3, umoddi3): Likewise; remove duplicate expander.
11086 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11087 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11088 (*movdi_nofix): Remove r/U alternative.
11089 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11090 * config/alpha/constraints.md ("U"): Remove.
11091 * config/alpha/predicates.md (call_operand"): Don't test
11092 TARGET_ABI_UNICOSMK.
11093
11094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11095
11096 * target.def (handle_option): Take gcc_options and
11097 cl_decoded_option pointers and location_t.
11098 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11099 * doc/tm.texi: Regenerate.
11100 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11101 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11102 * lto-opts.c (lto_reissue_options): Generate option structure for
11103 targetm.handle_option call.
11104 * opts.c (target_handle_option): Update call to
11105 targetm.handle_option. Remove assertions about values now passed
11106 down to hook.
11107 * targhooks.c (default_target_handle_option): New.
11108 * targhooks.h (default_target_handle_option): Declare.
11109 * config/alpha/alpha.c: Include opts.h.
11110 (alpha_handle_option): Update to new hook interface.
11111 * config/arm/arm.c: Include opts.h.
11112 (arm_handle_option): Update to new hook interface.
11113 * config/arm/t-arm (arm.o): Update dependencies.
11114 * config/bfin/bfin.c: Include opts.h.
11115 (bfin_handle_option): Update to new hook interface.
11116 * config/cris/cris.c: Include opts.h.
11117 (cris_handle_option): Update to new hook interface.
11118 * config/frv/frv.c: Include opts.h.
11119 (frv_handle_option): Update to new hook interface.
11120 * config/i386/i386.c: Include opts.h.
11121 (ix86_handle_option): Update to new hook interface.
11122 (ix86_valid_target_attribute_inner_p): Generate option structure
11123 for call to ix86_handle_option.
11124 * config/i386/t-i386 (i386.o): Update dependencies.
11125 * config/ia64/ia64.c: Include opts.h.
11126 (ia64_handle_option): Update to new hook interface.
11127 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11128 * config/iq2000/iq2000.c: Include opts.h.
11129 (iq2000_handle_option): Update to new hook interface.
11130 * config/m32c/m32c.c: Include opts.h.
11131 (m32c_handle_option): Update to new hook interface.
11132 * config/m32r/m32r.c: Include opts.h.
11133 (m32r_handle_option): Update to new hook interface.
11134 * config/m68k/m68k.c: Include opts.h.
11135 (m68k_handle_option): Update to new hook interface.
11136 * config/mep/mep.c: Include opts.h.
11137 (mep_handle_option): Update to new hook interface.
11138 * config/microblaze/microblaze.c: Include opts.h.
11139 (microblaze_handle_option): Update to new hook interface.
11140 * config/mips/mips.c: Include opts.h.
11141 (mips_handle_option): Update to new hook interface.
11142 * config/mn10300/mn10300.c: Include opts.h.
11143 (mn10300_handle_option): Update to new hook interface.
11144 * config/pa/pa.c: Include opts.h.
11145 (pa_handle_option): Update to new hook interface.
11146 * config/pdp11/pdp11.c: Include opts.h.
11147 (pdp11_handle_option): Update to new hook interface.
11148 * config/rs6000/rs6000.c: Include opts.h.
11149 (rs6000_handle_option): Update to new hook interface.
11150 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11151 * config/rx/rx.c: Include opts.h.
11152 (rx_handle_option): Update to new hook interface.
11153 * config/s390/s390.c: Include opts.h.
11154 (s390_handle_option): Update to new hook interface.
11155 * config/score/score.c: Include opts.h.
11156 (score_handle_option): Update to new hook interface.
11157 * config/sh/sh.c: Include opts.h.
11158 (sh_handle_option): Update to new hook interface.
11159 * config/sparc/sparc.c: Include opts.h.
11160 (sparc_handle_option): Update to new hook interface.
11161 * config/v850/v850.c: Include opts.h.
11162 (v850_handle_option): Update to new hook interface.
11163
11164 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11165
11166 * gcc.c (driver_unknown_option_callback): Only permit and save
11167 unknown -Wno- options.
11168 (driver_wrong_lang_callback): Save options directly instead of via
11169 driver_unknown_option_callback.
11170
11171 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11172
11173 * combine.c (simplify_set): Try harder to find the best CC mode when
11174 simplifying a nested COMPARE on the RHS.
11175
11176 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11177
11178 * config/alpha/gnu.h: Remove.
11179 * config/arc: Remove directory.
11180 * config/arm/netbsd.h: Remove.
11181 * config/arm/t-pe: Remove.
11182 * config/crx: Remove directory.
11183 * config/i386/netbsd.h: Remove.
11184 * config/m68hc11: Remove directory.
11185 * config/m68k/uclinux-oldabi.h: Remove.
11186 * config/mcore/mcore-pe.h: Remove.
11187 * config/mcore/t-mcore-pe: Remove.
11188 * config/netbsd-aout.h: Remove.
11189 * config/rs6000/gnu.h: Remove.
11190 * config/sh/sh-symbian.h: Remove.
11191 * config/sh/symbian-base.c: Remove.
11192 * config/sh/symbian-c.c: Remove.
11193 * config/sh/symbian-cxx.c: Remove.
11194 * config/sh/symbian-post.h: Remove.
11195 * config/sh/symbian-pre.h: Remove.
11196 * config/sh/t-symbian: Remove.
11197 * config/svr3.h: Remove.
11198 * config/vax/netbsd.h: Remove.
11199 * config.build: Don't handle i[34567]86-*-pe.
11200 * config.gcc: Remove handling of deprecations for most deprecated
11201 targets.
11202 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11203 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11204 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11205 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11206 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11207 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11208 Remove cases.
11209 * config.host: Don't handle i[34567]86-*-pe.
11210 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11211 (ASM_SPEC32): Don't handle -mcall-gnu.
11212 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11213 -mcall-gnu.
11214 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11215 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11216 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11217 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11218 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11219 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11220 conditional on SYMBIAN.
11221 * configure.ac: Don't handle powerpc*-*-gnu*.
11222 * configure: Regenerate.
11223 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11224 * doc/install-old.texi (m6811, m6812): Don't mention.
11225 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11226 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11227 (m68k-uclinuxoldabi): Don't mention.
11228 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11229 Remove.
11230 (-mcall-gnu): Remove.
11231 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11232 families): Remove constraint documentation.
11233
11234 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11235
11236 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11237 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11238 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11239
11240 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11241
11242 PR target/48226
11243 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11244 vector when peeking at the next token for vector, don't expand the
11245 keywords.
11246
11247 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11248
11249 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11250 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11251 * config/avr/avr.c (init_cumulative_args)
11252 (avr_function_arg_advance): Use it.
11253 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11254 sibcall epilogues.
11255 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11256 (avr_function_ok_for_sibcall): ...this new function.
11257 (avr_lookup_function_attribute1): New static Function.
11258 (avr_naked_function_p, interrupt_function_p)
11259 (signal_function_p, avr_OS_task_function_p)
11260 (avr_OS_main_function_p): Use it.
11261 * config/avr/avr.md ("sibcall", "sibcall_value")
11262 ("sibcall_epilogue"): New expander.
11263 ("*call_insn", "*call_value_insn"): New insn.
11264 ("call_insn", "call_value_insn"): Remove
11265 ("call", "call_value", "epilogue"): Change expander to handle
11266 sibling calls.
11267
11268 2011-03-21 Nick Clifton <nickc@redhat.com>
11269
11270 * doc/invoke.texi (Overall Options): Move closing brace to end of
11271 options list.
11272 (Optimization Options): Add missing @gol.
11273 (Directory Options): Likewise.
11274 (i386 and x86-64 Options): Likewise.
11275 (RS6000 and PowerPC Options): Likewise.
11276 (i386 and x86-64 Windows Options): Likewise.
11277 (V850 Options): Add text missing from descriptions.
11278
11279 2011-03-22 Richard Henderson <rth@redhat.com>
11280
11281 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11282 (avr_incoming_return_addr_rtx): New.
11283 (emit_push_byte): New.
11284 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11285 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11286 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11287 (emit_pop_byte): New.
11288 (expand_epilogue): Use it. Pop frame pointer by bytes.
11289 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11290 (INCOMING_RETURN_ADDR_RTX): New.
11291 (INCOMING_FRAME_SP_OFFSET): New.
11292 (ARG_POINTER_CFA_OFFSET): New.
11293 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11294 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11295 (pophi): Remove.
11296
11297 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11298
11299 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11300
11301 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11302 (FUNCTION_ARG_ADVANCE): Likewise.
11303 * tm.texi.in: Change references to them to hook references.
11304 * tm.texi: Regenerate.
11305 * targhooks.c (default_function_arg): Eliminate check for target
11306 macro.
11307 (default_function_incoming_arg): Likewise.
11308 (default_function_arg_advance): Likewise.
11309 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11310 (function_arg_advance): Likewise.
11311 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11312
11313 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11314
11315 * tree.c (build_call_1): New function.
11316 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11317
11318 2011-03-22 Richard Guenther <rguenther@suse.de>
11319
11320 PR tree-optimization/48228
11321 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11322 for single-arg PHIs.
11323
11324 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11325
11326 PR rtl-optimization/48143
11327 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11328 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11329 sse2_cvtps2pd): Likewise.
11330
11331 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11332
11333 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11334
11335 2011-03-22 Richard Guenther <rguenther@suse.de>
11336
11337 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11338 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11339 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11340 and REALIGN_LOAD_EXPR.
11341 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11342 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11343 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11344 DOT_PROD_EXPR case ...
11345 (expand_expr_real_2): ... here.
11346 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11347 and REALIGN_LOAD_EXPR.
11348 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11349 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11350 (vect_create_epilog_for_reduction): Likewise.
11351 (vectorizable_reduction): Likewise.
11352 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11353 * tree-vect-stmts.c (vectorizable_load): Likewise.
11354
11355 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11356
11357 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11358
11359 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11360
11361 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11362 handling for PLTOFF/GOTOFF.
11363
11364 2011-03-22 Nick Clifton <nickc@redhat.com>
11365
11366 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11367 trailing backslash from the end of the macro definition.
11368
11369 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11370
11371 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11372 and PLT unspecs.
11373
11374 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11375
11376 * expr.h (prepare_operand): Move to...
11377 * optabs.h (prepare_operand): ...here and change the insn code
11378 parameter from "int" to "enum insn_code".
11379 (insn_operand_matches): Declare.
11380 * expr.c (init_expr_target): Use insn_operand_matches.
11381 (compress_float_constant): Likewise.
11382 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11383 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11384 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11385 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11386 Likewise.
11387 (gen_cond_trap): Likewise.
11388 (prepare_operand): Likewise. Change icode to an insn_code.
11389 (insn_operand_matches): New function.
11390 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11391 * reload1.c (gen_reload): Likewise.
11392 * targhooks.c (default_secondary_reload): Likewise.
11393
11394 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11395
11396 * config/alpha/alpha.md (unspec): New define_c_enum.
11397 (unspecv): Ditto.
11398
11399 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11400
11401 PR debug/48214
11402 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11403 between a call and its CALL_ARG_LOCATION note.
11404
11405 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11406
11407 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11408
11409 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11410
11411 PR c/42544
11412 PR c/48197
11413 * c-common.c (shorten_compare): If primopN is first sign-extended
11414 to opN and then zero-extended to result type, set primopN to opN.
11415
11416 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11417
11418 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11419 for barrier handlers.
11420
11421 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11422
11423 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11424 UNSPEC constants to be in the unspec enumeration, and redefine
11425 all UNSPECV constants to be in the unspecv enumeration, so that
11426 dumps print which unspec/unspec_volatile this is.
11427 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11428 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11429 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11430 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11431 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11432
11433 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11434 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11435 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11436 * config/rs6000/sync.md (isync, lwsync): Ditto.
11437
11438 2011-03-21 Richard Guenther <rguenther@suse.de>
11439
11440 * params.def (lto-min-partition): Fix typo.
11441
11442 2011-03-21 Richard Guenther <rguenther@suse.de>
11443
11444 PR c/47939
11445 * c-decl.c (grokdeclarator): Drop to the main variant only
11446 for array types. Drop flag_gen_aux_info check.
11447
11448 2011-03-21 Richard Guenther <rguenther@suse.de>
11449
11450 PR translation/47911
11451 * params.def (lto-partitions): Fix typo.
11452 (lto-min-partition): Fix wording.
11453
11454 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11455
11456 * config/rs6000/t-freebsd: Remove duplication from file.
11457
11458 2011-03-21 Richard Guenther <rguenther@suse.de>
11459
11460 PR middle-end/47661
11461 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11462
11463 2011-03-21 Richard Guenther <rguenther@suse.de>
11464
11465 PR lto/48210
11466 * params.def (lto-partitions): Require at least 1 partition.
11467
11468 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11469
11470 * gthr-solaris.h: Remove.
11471 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11472 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11473 (LIB_SPEC): Likewise.
11474 * config/sol2.opt (threads): Remove.
11475 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11476 (sparc*-*-solaris2*): Likewise.
11477 * configure.ac (enable_threads): Enable solaris support.
11478 * configure: Regenerate.
11479 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11480 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11481 solaris.
11482
11483 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11484
11485 * config.gcc: Obsolete *-*-solaris2.8*.
11486 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11487
11488 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11489
11490 PR bootstrap/48135
11491 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11492 reference. Solaris 8 perl works.
11493
11494 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11495
11496 PR bootstrap/48135
11497 * doc/install.texi (Prerequisites): Move jar etc. up.
11498 Explain support library version requirements.
11499
11500 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11501
11502 PR bootstrap/48135
11503 * doc/install.texi (Prerequisites): Move Perl to build
11504 requirements. Always necessary on Solaris 2 with Sun ld.
11505
11506 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11507
11508 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11509 binutils 2.21.
11510 (Specific, i?86-*-solaris2.[89]): Likewise.
11511 (Specific, i?86-*-solaris2.10): Likewise.
11512 (Specific, mips-sgi-irix6): Likewise.
11513 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11514 Update for binutils 2.21.
11515
11516 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11517
11518 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11519 Allow -fuse-linker-plugin for non-default plugin linker.
11520 * configure: Regenerate.
11521
11522 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11523
11524 PR bootstrap/48167
11525 * gengtype.c (files_rules): Added rule for cp/parser.h.
11526
11527 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11528
11529 PR target/48213
11530 * config/s390/s390.c (s390_delegitimize_address): Don't call
11531 lowpart_subreg if orig_x has BLKmode.
11532
11533 2011-03-21 Kai Tietz <ktietz@redhat.com>
11534
11535 PR target/12171
11536 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11537 * tree.h (attribute_spec): Add new member affects_type_identity.
11538 * attribs.c (empty_attribute_table): Adjust attribute_spec
11539 initializers.
11540 * config/alpha/alpha.c: Likewise.
11541 * config/arc/arc.c: Likewise.
11542 * config/arm/arm.c: Likewise.
11543 * config/avr/avr.c: Likewise.
11544 * config/bfin/bfin.c: Likewise.
11545 * config/crx/crx.c: Likewise.
11546 * config/darwin.h: Likewise.
11547 * config/h8300/h8300.c: Likewise.
11548 * config/i386/cygming.h: Likewise.
11549 * config/i386/i386.c: Likewise.
11550 * config/ia64/ia64.c: Likewise.
11551 * config/m32c/m32c.c: Likewise.
11552 * config/m32r/m32r.c: Likewise.
11553 * config/m68hc11/m68hc11.c: Likewise.
11554 * config/m68k/m68k.c: Likewise.
11555 * config/mcore/mcore.c: Likewise.
11556 * config/mep/mep.c: Likewise.
11557 * config/microblaze/microblaze.c: Likewise.
11558 * config/mips/mips.c: Likewise.
11559 * config/rs6000/rs6000.c: Likewise.
11560 * config/rx/rx.c: Likewise.
11561 * config/sh/sh.c: Likewise.
11562 * config/sol2.h: Likewise.
11563 * config/sparc/sparc.c: Likewise.
11564 * config/spu/spu.c: Likewise.
11565 * config/stormy16/stormy16.c: Likewise.
11566 * config/v850/v850.c: Likewise.
11567
11568 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11569
11570 * simplify-rtx.c (simplify_binary_operation_1): Handle
11571 (xor (and A B) C) case when B and C are both constants.
11572
11573 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11574
11575 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11576
11577 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11578
11579 PR bootstrap/48168
11580 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11581
11582 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11583
11584 PR rtl-optimization/48156
11585 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11586 assume df and df_lr are not NULL.
11587
11588 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11589
11590 PR debug/48023
11591 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11592 between a call and its CALL_ARG_LOCATION note.
11593
11594 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11595
11596 PR debug/48178
11597 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11598 between a call and its corresponding CALL_ARG_LOCATION note.
11599
11600 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11601
11602 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11603 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11604 * haifa-sched.c (setup_ref_regs): Ditto.
11605 * caller-save.c (add_used_regs_1): Ditto.
11606 * dse.c (look_for_hardregs): Ditto.
11607 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11608 * sched-rgn.c (check_live_1): Ditto.
11609
11610 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11611
11612 * c-decl.c (diagnose_mismatched_decls): Give an error for
11613 redefining a typedef with variably modified type.
11614
11615 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11616
11617 * c-decl.c (grokfield): Don't allow typedefs for structures or
11618 unions with no tag by default.
11619 * doc/extend.texi (Unnamed Fields): Update.
11620
11621 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11622
11623 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11624 Rewrite using indirect functions.
11625 (lwp_slwpcb): Ditto.
11626 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11627 (avx_vinsertf128<mode>): Ditto.
11628
11629 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11630
11631 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11632 unspecs.
11633
11634 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11635
11636 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11637 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11638
11639 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11640
11641 PR rtl-optimization/48170
11642 * gcse.c (hoist_code): Remove bogus asserts.
11643
11644 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11645
11646 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11647 computation for prologue/epilogue.
11648
11649 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11650
11651 * Makefile.in (check-consistency): Remove.
11652
11653 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11654
11655 PR debug/48176
11656 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11657 arange_table_in_use is 0, but either text_section_used or
11658 cold_text_section_used is true. Don't call it if
11659 !info_section_emitted.
11660
11661 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11662
11663 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11664 FUNCTION_VALUE_REGNO_P): Remove.
11665 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11666 Remove.
11667 * config/avr/avr.c (avr_ret_register): Make static inline.
11668 (avr_function_value_regno_p): New function.
11669 (avr_libcall_value): Make static. Add 'func' argument.
11670 (avr_function_value): Make static. Rename 'func' argument to
11671 'fn_decl_or_type', forward it to avr_libcall_value. Call
11672 avr_ret_register function instead of RET_REGISTER macro.
11673 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11674
11675 2011-03-18 Jason Merrill <jason@redhat.com>
11676
11677 PR c++/23372
11678 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11679
11680 2011-03-18 Richard Guenther <rguenther@suse.de>
11681
11682 * doc/install.texi (--enable-gold): Remove.
11683 (--with-plugin-ld): Document.
11684 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11685
11686 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11687
11688 PR middle-end/47790
11689 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11690 again after expansion changes.
11691
11692 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11693
11694 * combine.c (try_combine): Do simplification only call of
11695 subst() on i2 even when i1 is present. Update comments.
11696
11697 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11698
11699 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11700 and UNSPEC_PCREL_SYMOFF.
11701
11702 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11703
11704 * config/s390/s390.md: Use define_c_enum for the unspec constant
11705 definitions.
11706
11707 2011-03-18 Richard Henderson <rth@redhat.com>
11708 Jakub Jelinek <jakub@redhat.com>
11709
11710 PR bootstrap/48161
11711 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11712 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11713
11714 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11715
11716 PR middle-end/47725
11717 * combine.c (cant_combine_insn_p): Don't check zero/sign
11718 extended hard registers.
11719
11720 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11721
11722 PR middle-end/47725
11723 * combine.c (cant_combine_insn_p): Check zero/sign extended
11724 hard registers.
11725
11726 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11727
11728 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11729 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11730 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11731 Change return type to bool.
11732 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11733
11734 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11735
11736 PR debug/48163
11737 * var-tracking.c (prepare_call_arguments): If CALL target
11738 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11739 pc instead of looking it up using cselib_lookup and use
11740 Pmode for it if x has VOIDmode.
11741 * dwarf2out.c (gen_subprogram_die): If also both first and
11742 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11743
11744 PR debug/48163
11745 * function.c (assign_parms): For data.passed_pointer parms
11746 use MEM of data.entry_parm instead of data.entry_parm itself
11747 as DECL_INCOMING_RTL.
11748 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11749 also when passed and declared mode is the same, DECL_RTL
11750 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11751 a MEM too.
11752
11753 2011-03-16 Jeff Law <law@redhat.com>
11754
11755 PR rtl-optimization/37273
11756 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11757 handle them like argument loads from stack slots. Do not double
11758 count memory for memory constants and argument loads from stack slots.
11759
11760 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11761
11762 PR debug/48160
11763 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11764
11765 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11766
11767 PR target/48171
11768 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11769
11770 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11771
11772 PR bootstrap/48153
11773 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11774 if dwarf_strict.
11775 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11776 Clear call_arg_locations and call_arg_loc_last always.
11777
11778 PR middle-end/48152
11779 * var-tracking.c (prepare_call_arguments): If argument needs to be
11780 passed by reference, adjust argtype and mode.
11781
11782 2011-03-17 Richard Guenther <rguenther@suse.de>
11783
11784 PR middle-end/48134
11785 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11786 a value make sure to fold the statement.
11787
11788 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11789
11790 PR target/43872
11791 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11792 return condition with !cfun->calls_alloca.
11793
11794 2011-03-17 Richard Guenther <rguenther@suse.de>
11795
11796 PR bootstrap/48148
11797 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11798 origin for decls in other ltrans units.
11799 (input_varpool_node): Likewise.
11800
11801 2011-03-17 Richard Guenther <rguenther@suse.de>
11802
11803 PR middle-end/48165
11804 * tree-object-size.c (compute_object_offset): Properly return
11805 the offset operand of MEM_REFs as sizetype.
11806
11807 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11808
11809 PR rtl-optimization/48141
11810 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11811 * dse.c: Include params.h.
11812 (active_local_stores_len): New variable.
11813 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11814 to NULL.
11815 (record_store, check_mem_read_rtx): Decrease it when removing
11816 from the chain.
11817 (scan_insn): Likewise. Increase it when adding to chain, if it
11818 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11819 set active_local_stores to NULL before the addition.
11820 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11821
11822 PR rtl-optimization/48141
11823 * dse.c (record_store): If no positions are needed in an insn
11824 that cannot be deleted, at least unchain it from active_local_stores.
11825
11826 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11827
11828 PR debug/47510
11829 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11830 (lookup_type_die_strip_naming_typedef): ... here.
11831 (get_context_die): Use it.
11832 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11833 the anonymous struct named by the naming typedef.
11834
11835 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11836
11837 PR target/48154
11838 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11839 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11840
11841 2011-03-16 Jeff Law <law@redhat.com>
11842
11843 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11844 check for operands of conditional. Allow type to be a pointer.
11845
11846 2011-03-16 Richard Guenther <rguenther@suse.de>
11847
11848 PR tree-optimization/48149
11849 * fold-const.c (fold_binary_loc): Fold
11850 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11851
11852 2011-03-16 Richard Guenther <rguenther@suse.de>
11853
11854 PR tree-optimization/26134
11855 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11856 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11857 (non_rewritable_mem_ref_base): Handle complex type component
11858 accesses, constrain offsets for vector and complex extracts
11859 more properly.
11860
11861 2011-03-16 Richard Guenther <rguenther@suse.de>
11862
11863 PR tree-optimization/48146
11864 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11865 operands avoiding the need for renaming.
11866
11867 2011-03-16 Richard Guenther <rguenther@suse.de>
11868
11869 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11870 constant folding. Move MEM_REF canonicalization first.
11871 Rely on fold_const_aggregate_ref for initializer folding.
11872 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11873
11874 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11875
11876 PR middle-end/48136
11877 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11878 arg0/arg1 or their arguments are always fold converted to matching
11879 types.
11880
11881 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11882 to nargs.
11883
11884 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11885
11886 PR lto/46944
11887 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11888 Handle in-tree gold.
11889 (ld_vers): Extract binutils version for gold.
11890 (gcc_cv_ld_hidden): Handle gold here.
11891 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11892 * configure: Regenerate.
11893 * config.in: Regenerate.
11894 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11895 -fuse-linker-plugin otherwise.
11896 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11897 (LINK_COMMAND_SPEC): Use it.
11898 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11899
11900 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11901
11902 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11903 * calls.c: Remove debug.h include.
11904 (emit_call_1): Don't call virtual_call_token debug hook.
11905 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11906 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11907 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11908 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11909 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11910 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11911 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11912 dwarf2out_virtual_call): Remove.
11913 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11914 copy_call_info and virtual_call hooks.
11915 (dwarf2out_init): Don't initialize vcall_insn_table,
11916 debug_dcall_section and debug_vcall_section.
11917 (prune_unused_types): Don't mark nodes from dcall_table.
11918 (dwarf2out_finish): Don't output dcall or vcall tables.
11919 * final.c (final_scan_insn): Don't call direct_call or
11920 virtual_call debug hooks.
11921 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11922 virtual_call_token, copy_call_info and virtual_call hooks.
11923 (debug_nothing_uid): Remove prototype.
11924 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11925 copy_call_info and virtual_call hooks.
11926 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11927 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11928 * debug.c (do_nothing_debug_hooks): Likewise.
11929 (debug_nothing_uid): Remove.
11930 * doc/invoke.texi (-fenable-icf-debug): Remove.
11931 * common.opt (-fenable-icf-debug): Likewise.
11932
11933 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11934 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11935 call's MEM. Handle functions returning aggregate through a hidden
11936 first pointer. For virtual calls add clobbered pc to call arguments
11937 chain.
11938 * dwarf2out.c (gen_subprogram_die): Emit
11939 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11940 can't be emitted.
11941
11942 PR debug/45882
11943 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11944 * rtl.h (ENTRY_VALUE_EXP): Define.
11945 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11946 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11947 * print-rtl.c (print_rtx): Likewise.
11948 * gengtype.c (adjust_field_rtx_def): Likewise.
11949 * var-tracking.c (vt_add_function_parameter): Adjust
11950 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11951 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11952 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11953 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11954 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11955
11956 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11957 Call var_location debug hook even on CALL_INSNs.
11958 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11959 * rtl.def (ENTRY_VALUE): New.
11960 * dwarf2out.c: Include cfglayout.h.
11961 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11962 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11963 (struct call_arg_loc_node): New type.
11964 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11965 tail_call_site_count): New variables.
11966 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11967 DW_TAG_GNU_call_site_parameter.
11968 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11969 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11970 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11971 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11972 and DW_AT_GNU_all_source_call_sites.
11973 (mem_loc_descriptor): Handle ENTRY_VALUE.
11974 (add_src_coords_attributes): Don't add enything if
11975 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11976 (dwarf2out_abstract_function): Save and clear call_arg_location,
11977 call_site_count and tail_call_site_count around dwarf2out_decl call.
11978 (gen_call_site_die): New function.
11979 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11980 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11981 (dwarf2out_function_decl): Clear call_arg_locations,
11982 call_arg_loc_last, set call_site_count and tail_call_site_count
11983 to -1 and free block_map.
11984 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11985 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11986 followed by any real instructions.
11987 (dwarf2out_begin_function): Set call_site_count and
11988 tail_call_site_count to 0.
11989 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11990 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11991 attempt to force a DIE for it and worst case remove the attribute.
11992 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11993 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11994 the decl itself.
11995 * var-tracking.c: Include tm_p.h.
11996 (vt_stack_adjustments): For calls call note_register_arguments.
11997 (argument_reg_set): New variable.
11998 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11999 ensure the VALUE is resolved.
12000 (call_arguments): New variable.
12001 (prepare_call_arguments): New function.
12002 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12003 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12004 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12005 always use the best expression.
12006 (vt_expand_loc): Add ignore_cur_loc argument.
12007 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12008 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12009 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12010 note for all calls.
12011 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12012 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12013 argument. Don't call cselib_preserve_only_values and
12014 cselib_reset_table.
12015 (note_register_arguments): New function.
12016 (vt_initialize): Compute argument_reg_set. Call
12017 vt_add_function_parameters before processing basic blocks instead of
12018 afterwards. For calls call prepare_call_arguments before calling
12019 cselib_process_insn.
12020 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12021 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12022 (var-tracking.o): Depend on $(TM_P_H).
12023 * cfglayout.h (insn_scope): New prototype.
12024 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12025 * cfglayout.c (insn_scope): No longer static.
12026 * insn-notes.def (CALL_ARG_LOCATION): New.
12027 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12028 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12029 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12030 nothing for DECL_EXTERNAL BLOCK_VARS.
12031
12032 2011-03-16 Alan Modra <amodra@gmail.com>
12033
12034 PR target/45844
12035 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12036 create invalid offset address for vsx splat insn.
12037 * config/rs6000/predicates.md (splat_input_operand): New.
12038 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12039
12040 2011-03-15 Xinliang David Li <davidxl@google.com>
12041
12042 PR c/47837
12043 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12044 (normalize_preds): New function.
12045 (is_use_properly_guarded): Normalize def predicates.
12046
12047 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12048
12049 PR target/46788
12050 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12051 in the output template.
12052
12053 2011-03-15 Richard Guenther <rguenther@suse.de>
12054
12055 PR middle-end/47650
12056 * tree-pretty-print.c (dump_function_declaration): Properly
12057 dump unprototyped and varargs function types.
12058
12059 2011-03-15 Richard Guenther <rguenther@suse.de>
12060
12061 PR tree-optimization/13954
12062 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12063 and friends.
12064
12065 2011-03-15 Richard Guenther <rguenther@suse.de>
12066
12067 PR tree-optimization/48037
12068 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12069 selects into BIT_FIELD_REFs.
12070 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12071 vector select.
12072
12073 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12074
12075 PR tree-optimization/48129
12076 * builtins.c (fold_builtin_snprintf): Convert to type of
12077 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12078 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12079
12080 2011-03-15 Richard Guenther <rguenther@suse.de>
12081
12082 PR tree-optimization/41490
12083 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12084 value but with VUSE.
12085 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12086 return statements.
12087 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12088 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12089 * tree-tailcall.c (find_tail_calls): Ignore returns.
12090
12091 2011-03-15 Richard Guenther <rguenther@suse.de>
12092
12093 PR middle-end/48031
12094 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12095 or variable-indexed array accesses when in gimple form.
12096
12097 2011-03-15 Richard Guenther <rguenther@suse.de>
12098
12099 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12100
12101 2011-03-15 Alan Modra <amodra@gmail.com>
12102
12103 PR target/48032
12104 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12105 presume symbol_refs without a symbol_ref_decl are suitably
12106 aligned, nor other trees we may see here. Handle anchor symbols.
12107 (legitimate_constant_pool_address_p): Comment. Add mode param.
12108 Check cmodel=medium addresses. Adjust all calls.
12109 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12110 creating cmodel=medium optimized access to locals.
12111 * config/rs6000/constraints.md (R): Pass QImode to
12112 legitimate_constant_pool_address_p.
12113 * config/rs6000/predicates.md (input_operand): Pass mode to
12114 legitimate_constant_pool_address_p.
12115 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12116 Update prototype.
12117
12118 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12119
12120 PR target/48053
12121 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12122 64-bit constants being loaded into registers other than GPRs such
12123 as loading 0 into a VSX register.
12124
12125 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12126
12127 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12128
12129 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12130
12131 PR middle-end/47917
12132 * builtins.c (fold_builtin_snprintf): New function.
12133 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12134 (fold_builtin_4): Likewise.
12135
12136 PR middle-end/38878
12137 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12138 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12139 and C - X == X also strip nops from +/-/p+ operand.
12140 When optimizing -X == C, fold C to arg0's type.
12141
12142 PR debug/47946
12143 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12144 emit it as add_AT_int instead of add_AT_unsigned.
12145
12146 2011-03-14 Tom Tromey <tromey@redhat.com>
12147
12148 * unwind-dw2.c: Include sys/sdt.h if it exists.
12149 (_Unwind_DebugHook): Use STAP_PROBE2.
12150 * config.in, configure: Rebuild.
12151 * configure.ac: Check for sys/sdt.h.
12152
12153 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12154
12155 * config/i386/i386.md (ROUND_FLOOR): New constant.
12156 (ROUND_CEIL): Ditto.
12157 (ROUND_TRUNC): Ditto.
12158 (ROUND_MXCSR): Ditto.
12159 (ROUND_NO_EXC): Ditto.
12160 (rint<mode>2): Use new defines instead of numerical constants.
12161 (floor<mode>2): Ditto.
12162 (ceil<mode>2): Ditto.
12163 (btrunc<mode>2): Ditto.
12164 * config/i386/i386-builtin-types.def: Define ROUND function type
12165 aliases.
12166 * config/i386/i386.c (enum ix86_builtins): Add
12167 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12168 (struct builtin_description): Add
12169 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12170 (ix86_expand_sse_round): New static function.
12171 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12172 function types.
12173 (ix86_builtin_vectorized_function): Handle
12174 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12175
12176 2011-03-14 Tom Tromey <tromey@redhat.com>
12177
12178 * c-parser.c (c_parser_asm_string_literal): Clear
12179 warn_overlength_strings.
12180
12181 2011-03-14 Tom Tromey <tromey@redhat.com>
12182
12183 * c-parser.c (disable_extension_diagnostics): Save
12184 warn_overlength_strings.
12185 (restore_extension_diagnostics): Restore warn_overlength_strings.
12186
12187 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12188
12189 * BASE-VER: Change to 4.7.0.
12190
12191 2011-03-14 Richard Guenther <rguenther@suse.de>
12192
12193 PR middle-end/48098
12194 * tree.c (build_vector_from_val): Adjust assert to requirements
12195 and reality.
12196
12197 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12198
12199 PR bootstrap/48102
12200 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12201
12202 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12203
12204 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12205 terms of target_flags_explicit. Adjust copyright year.
12206
12207 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12208 * config/rs6000/t-freebsd: New file. Add override for
12209 LIB2FUNCS_EXTRA.
12210
12211 2011-03-13 Chris Demetriou <cgd@google.com>
12212
12213 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12214 (-fno-diagnostics-show-option): this, to reflect current default.
12215 (-Werror=): Update text about -fno-diagnostics-show-option.
12216
12217 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12218
12219 PR target/48053
12220 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12221 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12222 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12223 mode is not V2DImode or V2DFmode.
12224 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12225 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12226 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12227 registers to 0.
12228 (movdi_internal64): Likewise.
12229
12230 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12231
12232 PR tree-optimization/47127
12233 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12234 parameter.
12235 (set_cloog_options): Same.
12236 (scop_to_clast): Same.
12237 (print_clast_stmt): Do not call cloog_state_malloc and
12238 cloog_state_free.
12239 (print_generated_program): Same.
12240 (gloog): Same.
12241 * graphite-clast-to-gimple.h (cloog_state): Declared.
12242 (scop_to_clast): Adjust declaration.
12243 * graphite.c (cloog_state): Defined here.
12244 (graphite_initialize): Call cloog_state_malloc.
12245 (graphite_finalize): Call cloog_state_free.
12246
12247 2011-03-11 Jason Merrill <jason@redhat.com>
12248
12249 * attribs.c (lookup_attribute_spec): Take const_tree.
12250 * tree.h: Adjust.
12251
12252 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12253
12254 * config/sparc/sparc.c (sparc_option_override): Use
12255 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12256
12257 2011-03-11 Richard Guenther <rguenther@suse.de>
12258
12259 PR tree-optimization/48067
12260 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12261 multiplication result will be only used once on the target
12262 stmt.
12263
12264 2011-03-11 Richard Guenther <rguenther@suse.de>
12265
12266 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12267
12268 2011-03-11 Richard Guenther <rguenther@suse.de>
12269
12270 PR lto/48073
12271 * tree.c (find_decls_types_r): Do not walk types only reachable
12272 from IDENTIFIER_NODEs.
12273
12274 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12275
12276 PR middle-end/48044
12277 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12278 all vnode->force_output nodes as needed.
12279
12280 2011-03-11 Jason Merrill <jason@redhat.com>
12281
12282 PR c++/48069
12283 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12284 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12285
12286 2011-03-11 Martin Jambor <mjambor@suse.cz>
12287
12288 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12289 cgraph_node.
12290
12291 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12292
12293 PR tree-optimization/48063
12294 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12295 inline functions called once if !tree_can_inline_p (node->callers).
12296
12297 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12298
12299 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12300 extra_objs.
12301 * config/score/score3.c: Delete.
12302 * config/score/score3.h: Delete.
12303 * config/score/mul-div.S: Delete.
12304 * config/score/sfp-machine.h: Add new file.
12305 * config/score/constraints.md: Add new file.
12306 * config/score/t-score-softfp: Add new file.
12307 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12308 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12309 (score7_extra_constraint): Delete.
12310 (score7_option_override): Remove unused code.
12311 * config/score/score.c: Remove score3 and score5 define and code.
12312 * config/score/score.h: Remove score3 and score5 define and code.
12313 * config/score/score.md: Remove score3 template and unusual insn.
12314 * config/score/score.opt: Remove score3 and score5 options.
12315
12316 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12317
12318 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12319 when _HPUX_SOURCE is defined.
12320 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12321
12322 2011-03-10 Jason Merrill <jason@redhat.com>
12323
12324 PR c++/48029
12325 * stor-layout.c (layout_type): Don't set structural equality
12326 on arrays of incomplete type.
12327 * tree.c (type_hash_eq): Handle comparing them properly.
12328
12329 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12330
12331 PR debug/48043
12332 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12333 result mode matches original rtl mode.
12334
12335 2011-03-10 Nick Clifton <nickc@redhat.com>
12336
12337 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12338 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12339
12340 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12341
12342 PR rtl-optimization/47866
12343 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12344 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12345 if target wasn't scalar.
12346 * function.c (assign_stack_temp_for_type): Assert that neither
12347 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12348 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12349 macro.
12350 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12351
12352 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12353
12354 * config/s390/s390-protos.h (s390_label_align): New prototype.
12355 * config/s390/s390.c (s390_label_align): New function.
12356 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12357
12358 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12359
12360 PR target/47755
12361 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12362 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12363 (output_vec_const_move): Ditto.
12364
12365 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12366
12367 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12368 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12369 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12370 Change 'rclass' argument and result type to reg_class_t.
12371 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12372
12373 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12374
12375 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12376 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12377 (TARGET_MEMORY_MOVE_COST): Define.
12378 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12379
12380 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12381
12382 PR debug/47881
12383 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12384 removed anything.
12385
12386 PR tree-optimization/48022
12387 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12388 for EQ/NE_EXPR.
12389
12390 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12391
12392 PR debug/47991
12393 * var-tracking.c (find_use_val): Return NULL for
12394 cui->sets && cui->store_p BLKmode MEMs.
12395
12396 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12397
12398 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12399 Remove.
12400 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12401 xstormy16_print_operand_address): Remove.
12402 * config/stormy16/stormy16.c (xstormy16_print_operand,
12403 xstormy16_print_operand_address): Make static.
12404 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12405
12406 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12407
12408 PR target/47862
12409 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12410 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12411 before definition.
12412
12413 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12414
12415 PR bootstrap/48000
12416 * cfgloopmanip.c (fix_bb_placements): Return immediately
12417 if FROM is BASE_LOOP's header.
12418
12419 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12420
12421 * gimplify.c (gimplify_function_tree): Fix building calls
12422 to __builtin_return_address.
12423
12424 2011-03-07 Alan Modra <amodra@gmail.com>
12425
12426 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12427 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12428 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12429 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12430 return_mode args.
12431 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12432 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12433 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12434 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12435 * config/rs6000/rs6000.c
12436 (rs6000_elf_end_indicate_exec_stack): Rename to..
12437 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12438 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12439 (rs6000_file_start): ..here.
12440 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12441 file scope variables.
12442 (call_ABI_of_interest): New function.
12443 (init_cumulative_args): Set above vars when function return value
12444 is a float, vector, or small struct.
12445 (rs6000_function_arg_advance_1): Likewise for function args.
12446 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12447 references float args.
12448
12449 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12450
12451 * doc/cfg.texi: Remove "See" before @ref.
12452 * doc/invoke.texi: Likewise.
12453
12454 2011-03-05 Jason Merrill <jason@redhat.com>
12455
12456 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12457
12458 2011-03-05 Anthony Green <green@moxielogic.com>
12459
12460 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12461
12462 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12463
12464 PR rtl-optimization/47899
12465 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12466 to flow_loop_nested_p when moving the loop upward.
12467
12468 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12469
12470 PR target/47719
12471 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12472
12473 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12474
12475 PR tree-optimization/47967
12476 * ipa-cp.c (build_const_val): Return NULL instead of creating
12477 VIEW_CONVERT_EXPR for mismatching sizes.
12478 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12479 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12480 give up on versioning.
12481
12482 2011-03-05 Alan Modra <amodra@gmail.com>
12483
12484 PR target/47986
12485 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12486 full cmodel medium/large lo_sum + high addresses.
12487
12488 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12489
12490 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12491 pool references in UNSPEC_LTREL_OFFSET.
12492
12493 2011-03-04 Jan Hubicka <jh@suse.cz>
12494
12495 PR lto/47497
12496 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12497 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12498 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12499 Add node pointers.
12500 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12501 cgraph_add_thunk): Add node pointers.
12502 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12503 associated to right node.
12504 (input_node): Update use of cgraph_same_body_alias
12505 and cgraph_add_thunk.
12506
12507 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12508
12509 * config/i386/i386.opt (mprefer-avx128): New flag.
12510 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12511 modes when the flag -mprefer-avx128 is on.
12512
12513 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12514
12515 * dwarf2out.c (compare_loc_operands): Fix address handling.
12516
12517 2011-03-04 Alan Modra <amodra@gmail.com>
12518
12519 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12520
12521 2011-03-04 Richard Guenther <rguenther@suse.de>
12522
12523 PR middle-end/47968
12524 * expmed.c (extract_bit_field_1): Prefer vector modes that
12525 vec_extract patterns can handle.
12526
12527 2011-03-04 Richard Guenther <rguenther@suse.de>
12528
12529 PR middle-end/47975
12530 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12531
12532 2011-03-04 Richard Henderson <rth@redhat.com>
12533
12534 * explow.c (emit_stack_save): Remove 'after' parameter.
12535 (emit_stack_restore): Likewise.
12536 * expr.h: Update to match.
12537 * builtins.c, calls.c, stmt.c: Likewise.
12538 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12539 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12540 * function.c (expand_function_end): Insert the emit_stack_save
12541 sequence before parm_birth_insn instead of after.
12542
12543 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12544
12545 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12546 (ssse3_pmaddubsw128): Ditto.
12547 (ssse3_pmaddubsw): Ditto.
12548
12549 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12550
12551 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12552
12553 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12554
12555 PR c/47963
12556 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12557 on TYPE_SIZE_UNIT if it is a DECL.
12558
12559 PR debug/47283
12560 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12561 first operand is not is_gimple_mem_ref_addr, try to fold it.
12562 If the operand still isn't is_gimple_mem_ref_addr, clear
12563 MEM_EXPR on op0.
12564
12565 2011-03-03 Richard Guenther <rguenther@suse.de>
12566
12567 PR middle-end/47283
12568 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12569 match comment.
12570 (refs_may_alias_p_1): For release branches return true if
12571 we are confused by our input.
12572
12573 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12574
12575 * config/s390/s390.c (s390_function_value): Rename to ...
12576 (s390_function_and_libcall_value): ... this.
12577 (s390_function_value): New function.
12578 (s390_libcall_value): New function.
12579 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12580 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12581 target macro definitions.
12582 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12583
12584 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12585
12586 * config/i386/freebsd64.h (CC1_SPEC): Define.
12587 * config/i386/linux64.h (CC1_SPEC): Define.
12588 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12589
12590 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12591
12592 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12593 Remove.
12594 * config/stormy16/stormy16.c: Include reload.h.
12595 (xstormy16_memory_move_cost): New function.
12596 (TARGET_MEMORY_MOVE_COST): Define.
12597
12598 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12599
12600 PR rtl-optimization/47925
12601 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12602 with side effects. Remove the more-specific check for volatile asms.
12603
12604 2011-03-02 Alan Modra <amodra@gmail.com>
12605
12606 PR target/47935
12607 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12608 toc relative addresses for valid offsets.
12609
12610 2011-03-01 Richard Guenther <rguenther@suse.de>
12611
12612 PR tree-optimization/47890
12613 * tree-vect-loop.c (get_initial_def_for_induction): Set
12614 related stmt properly.
12615
12616 2011-03-01 Richard Guenther <rguenther@suse.de>
12617
12618 PR lto/47924
12619 * lto-streamer.c (lto_record_common_node): Also register
12620 the canonical type.
12621
12622 2011-03-01 Richard Guenther <rguenther@suse.de>
12623
12624 PR lto/46911
12625 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12626 Do not stream DECL_ABSTRACT_ORIGIN.
12627 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12628 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12629 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12630 Do not stream DECL_ABSTRACT_ORIGIN.
12631 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12632 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12633
12634 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12635
12636 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12637 FUNCTION_VALUE_REGNO_P): Remove.
12638 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12639 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12640 Add 'outgoing' argument.
12641 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12642 function.
12643 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12644 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12645
12646 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12647
12648 PR debug/28047
12649 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12650 (lookup_filename): Likewise.
12651 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12652
12653 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12654 Jakub Jelinek <jakub@redhat.com>
12655
12656 PR middle-end/47893
12657 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12658 (assign_stack_local_1): Change last argument type to int.
12659 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12660 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12661 don't record padding space into frame_space_list nor use those areas.
12662 (assign_stack_local): Adjust caller.
12663 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12664 of assign_stack_local, pass 0 as last argument.
12665 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12666 callers.
12667
12668 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12669
12670 PR debug/47283
12671 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12672 Use target address_mode and pointer_mode hooks instead of hardcoded
12673 Pmode and ptr_mode. Handle some simple cases of extending if
12674 POINTERS_EXTEND_UNSIGNED < 0.
12675 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12676 Call convert_debug_memory_address.
12677 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12678 convert_debug_memory_address.
12679
12680 PR middle-end/46790
12681 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12682 * configure: Regenerated.
12683 * config.in: Regenerated.
12684 * varasm.c (default_function_section): Return NULL
12685 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12686
12687 2011-02-28 Martin Jambor <mjambor@suse.cz>
12688
12689 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12690 the description to match the printed values.
12691
12692 2011-02-28 Richard Guenther <rguenther@suse.de>
12693
12694 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12695 of the copied scope tree.
12696
12697 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12698
12699 * doc/extend.texi (Function Attributes): Avoid deeply (and
12700 wrongly) nested tables.
12701
12702 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12703
12704 PR middle-end/47903
12705 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12706 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12707 r isn't op0 nor op1.
12708
12709 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12710
12711 * config/avr/avr.md: Remove magic comment for emacs.
12712
12713 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12714
12715 PR target/45261
12716 * config/avr/avr.c (avr_option_override): Use error on bad options.
12717 (avr_help): New function.
12718 (TARGET_HELP): Define.
12719
12720 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12721
12722 PR target/42240
12723 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12724 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12725
12726 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12727
12728 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12729 (ARM Options): Ditto.
12730 (i386 and x86-64 Options): Ditto.
12731 (RX Options): Ditto.
12732 (SPARC Options): Ditto.
12733
12734 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12735
12736 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12737 FreeBSD 6 and later. Generally use cpu generic.
12738
12739 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12740
12741 * doc/cpp.texi: Update copyright years.
12742
12743 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12744
12745 PR target/46898
12746 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12747
12748 2011-02-25 Jon Beniston <jon@beniston.com>
12749
12750 PR target/46898
12751 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12752 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12753 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12754 (lm32_block_move_inline): Add type cast to remove warning.
12755 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12756 (gen_int_relational): Move declarations to start of function.
12757
12758 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12759
12760 PR tree-optimization/45470
12761 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12762 can throw internally only.
12763 * tree-vect-stmts.c (vectorizable_call): Likewise.
12764
12765 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12766
12767 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12768 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12769 * config/stormy16/stormy16-protos.h
12770 (xstormy16_preferred_reload_class): Remove.
12771 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12772 static. Change 'rclass' argument and return type to reg_class_t.
12773 (TARGET_PREFERRED_RELOAD_CLASS,
12774 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12775
12776 2011-02-24 Richard Guenther <rguenther@suse.de>
12777
12778 * lto-streamer-in.c (input_bb): Do not find referenced vars
12779 in debug statements.
12780
12781 2011-02-23 Jason Merrill <jason@redhat.com>
12782
12783 * common.opt (fabi-version): Document v5 and v6.
12784
12785 2011-02-23 Richard Guenther <rguenther@suse.de>
12786
12787 PR tree-optimization/47849
12788 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12789
12790 2011-02-23 Jie Zhang <jie@codesourcery.com>
12791
12792 * opts-common.c (decode_cmdline_option): Print empty string
12793 argument as "" in decoded->orig_option_with_args_text.
12794 * gcc.c (execute): Print empty string argument as ""
12795 in the verbose output.
12796 (do_spec_1): Keep empty string argument.
12797
12798 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12799
12800 * config.gcc: Declare score-* and crx-* obsolete.
12801
12802 2011-02-23 Jie Zhang <jie@codesourcery.com>
12803
12804 PR rtl-optimization/47763
12805 * web.c (web_main): Ignore naked clobber when replacing register.
12806
12807 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12808
12809 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12810 Remove.
12811
12812 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12813
12814 PR doc/47848
12815 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12816
12817 2011-02-22 Mike Stump <mikestump@comcast.net>
12818
12819 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12820 assembler.
12821 * configure: Regenerate.
12822
12823 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12824
12825 PR rtl-optimization/46002
12826 * ira-color.c (update_copy_costs): Change class intersection
12827 test to reg_class_contents[] test of 'hard_regno'.
12828
12829 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12830
12831 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12832 than Driver option.
12833 * config/hpux11.opt (mt): Likewise.
12834 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12835 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12836 * config/vax/elf.opt (mno-asm-pic): Likewise.
12837 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12838
12839 2011-02-21 Mike Stump <mikestump@comcast.net>
12840
12841 PR target/47822
12842 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12843 tree so we can get save the type.
12844 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12845 for CFString instead of trying to use past the end of the builtins.
12846 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12847 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12848 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12849 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12850 Rename to darwin_builtin_cfstring.
12851 (darwin_init_cfstring_builtins): Return the built type.
12852
12853 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12854
12855 PR target/47840
12856 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12857 (_mm256_insert_epi64): Use _mm_insert_epi64.
12858
12859 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12860
12861 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12862 * config/stormy16/stormy16-protos.h
12863 (xstormy16_mode_dependent_address_p): Remove.
12864 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12865 Make static. Change return type to bool. Change argument type to
12866 const_rtx. Remove dead code.
12867 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12868
12869 2011-02-21 Richard Guenther <rguenther@suse.de>
12870
12871 PR lto/47820
12872 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12873 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12874 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12875 TUs context.
12876 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12877 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12878
12879 2011-02-20 Richard Guenther <rguenther@suse.de>
12880
12881 PR lto/47822
12882 * tree.c (free_lang_data_in_decl): Clean builtins from
12883 the TU decl BLOCK_VARS.
12884
12885 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12886
12887 PR debug/47620
12888 PR debug/47630
12889 * haifa-sched.c (fix_tick_ready): Skip tick computation
12890 for debug insns.
12891
12892 2011-02-19 Richard Guenther <rguenther@suse.de>
12893
12894 PR lto/47647
12895 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12896 Remove lazy BLOCK_VARS streaming.
12897 (lto_input_ts_block_tree_pointers): Likewise.
12898 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12899
12900 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12901
12902 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12903
12904 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12905
12906 * config/i386/biarch32.h, config/i386/mach.h,
12907 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12908
12909 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12910
12911 PR target/47800
12912 * config/i386/i386.md (peephole2 for shift and plus): Use
12913 operands[1] original mode in the first insn.
12914
12915 2011-02-18 Mike Stump <mikestump@comcast.net>
12916
12917 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12918
12919 2011-02-18 Jan Hubicka <jh@suse.cz>
12920
12921 PR middle-end/47788
12922 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12923 to zero when the function is not inlinable at all.
12924
12925 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12926
12927 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12928 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12929 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12930 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12931 * config/pa/t-pa64: Likewise.
12932 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12933
12934 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12935
12936 PR driver/47787
12937 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12938
12939 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12940
12941 PR target/47792
12942 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12943
12944 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12945
12946 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12947 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12948 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12949 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12950 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12951 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12952 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12953 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12954 m32r_legitimate_address_p): New functions.
12955 * config/m32r/constraints.md (constraint "S"): Don't use
12956 STORE_PREINC_PREDEC_P.
12957 (constraint "U"): Don't use LOAD_POSTINC_P.
12958
12959 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12960
12961 PR rtl-optimization/46178
12962 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12963 compute ira_hard_regno_cover_class[].
12964
12965 2011-02-18 Richard Guenther <rguenther@suse.de>
12966
12967 PR lto/47798
12968 * lto-streamer.h (lto_global_var_decls): Declare.
12969 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12970 statics for global var processing.
12971
12972 2011-02-18 Richard Guenther <rguenther@suse.de>
12973
12974 PR tree-optimization/47737
12975 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12976 edge dominance check.
12977
12978 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12979
12980 PR debug/47780
12981 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12982 avoid invalid rtx sharing.
12983
12984 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12985
12986 * doc/cpp.texi (Obsolete Features): Add background on the
12987 origin of assertions.
12988
12989 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12990
12991 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12992 objc_abi == 2.
12993 * config/darwin.c (output_objc_section_asm_op): Added support for
12994 ABI v1 and v2.
12995 (is_objc_metadata): New.
12996 (darwin_objc2_section): New.
12997 (darwin_objc1_section): New.
12998 (machopic_select_section): Added support for ABI v1 and v2.
12999 (darwin_emit_objc_zeroed): New.
13000 (darwin_output_aligned_bss): Detect objc metadata and treat it
13001 appropriately.
13002 (darwin_asm_output_aligned_decl_common): Same.
13003 (darwin_asm_output_aligned_decl_local): Same.
13004 * config/darwin-sections.def: Updated for ABI v1 and v2.
13005 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13006 compiling Objective-C code for the NeXT runtime, default to using
13007 ABI version 0 for 32-bit, and version 2 for 64-bit.
13008
13009 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13010
13011 * common.opt (optimize_fast): New Variable.
13012 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13013 instead of local variable ofast.
13014
13015 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13016
13017 * doc/invoke.texi (fobjc-abi-version): Documented.
13018 (fobjc-nilcheck): Documented.
13019 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13020 version.
13021
13022 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13023
13024 PR driver/47390
13025 * common.opt (export-dynamic): New Driver option.
13026 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13027
13028 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13029
13030 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13031
13032 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13033 Jan Hubicka <jh@suse.cz>
13034
13035 PR debug/47106
13036 PR debug/47402
13037 * cfgexpand.c (account_used_vars_for_block): Remove.
13038 (estimated_stack_frame_size): Use referenced vars.
13039 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13040 that were referenced in the original function. Test src_fn
13041 rather than cfun. Drop redundant get_var_ann.
13042 (setup_one_parameter): Drop redundant get_var_ann.
13043 (declare_return_variable): Likewise.
13044 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13045 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13046 * ipa-inline.c (compute_inline_parameters): Do not compute
13047 disregard_inline_limits here.
13048 (compute_inlinable_for_current, pass_inlinable): New.
13049 (pass_inline_parameters): Require PROP_referenced_vars.
13050 * cgraphunit.c (cgraph_process_new_functions): Don't run
13051 compute_inline_parameters explicitly unless function is in SSA form.
13052 (cgraph_analyze_function): Set .disregard_inline_limits.
13053 * tree-sra.c (convert_callers): Compute inliner parameters
13054 only for functions already in SSA form.
13055
13056 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13057
13058 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13059 -mlittle-endian-data.
13060
13061 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13062
13063 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13064 -mno-fpu, not -fpu and -no-fpu.
13065 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13066 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13067
13068 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13069
13070 PR target/43653
13071 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13072 input reload with PLUS RTX.
13073
13074 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13075
13076 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13077 of InverseVar(MDMX).
13078
13079 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13080
13081 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13082 --m4-340.
13083
13084 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13085
13086 * config/mn10300/mn10300.opt (mno-crt0): New.
13087
13088 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13089
13090 * config/m68k/uclinux.opt (static-libc): New Driver option.
13091
13092 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13093
13094 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13095
13096 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13097
13098 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13099 %{muser-extend-enabled}.
13100
13101 2011-02-16 Richard Guenther <rguenther@suse.de>
13102
13103 PR tree-optimization/47738
13104 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13105 the TODO from tree_predictive_commoning.
13106
13107 2011-02-15 Jeff Law <law@redhat.com>
13108
13109 Revert
13110 2011-01-25 Jeff Law <law@redhat.com>
13111
13112 PR rtl-optimization/37273
13113 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13114 handle them like argument loads from stack slots. Do not double
13115 count memory for memory constants and argument loads from stack slots.
13116
13117 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13118
13119 PR middle-end/47725
13120 * combine.c (cant_combine_insn_p): Revert the last change.
13121
13122 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13123
13124 PR target/47755
13125 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13126 mode for vector constants. Remove code that checks for TImode.
13127
13128 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13129
13130 PR debug/47106
13131 PR debug/47402
13132 * cgraph.h (compute_inline_parameters): Return void.
13133 * ipa-inline.c (compute_inline_parameters): Adjust.
13134
13135 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13136
13137 PR debug/47106
13138 PR debug/47402
13139 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13140 rather than decl.
13141 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13142 * ipa-inline.c (compute_inline_parameters): Adjust.
13143
13144 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13145
13146 PR debug/47106
13147 PR debug/47402
13148 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13149 Adjust all users. Pass FN to...
13150 * tree-flow-inline.h (first_referenced_var): ... this. Add
13151 fn argument.
13152 * ipa-struct-reorg.c: Adjust.
13153 * tree-dfa.c: Adjust.
13154 * tree-into-ssa.c: Adjust.
13155 * tree-sra.c: Adjust.
13156 * tree-ssa-alias.c: Adjust.
13157 * tree-ssa-live.c: Adjust.
13158 * tree-ssa.c: Adjust.
13159 * tree-ssanames.c: Adjust.
13160 * tree-tailcall.c: Adjust.
13161
13162 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13163
13164 PR debug/47106
13165 PR debug/47402
13166 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13167 Adjust all callers.
13168 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13169 * tree-flow-inline.h: Adjust.
13170 * gimple-pretty-print.c: Adjust.
13171 * tree-into-ssa.c: Adjust.
13172 * tree-ssa.c: Adjust.
13173 * cfgexpand.c: Adjust.
13174
13175 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13176
13177 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13178 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13179 (EXTRA_CONSTRAINT): Delete.
13180 * config/iq2000/constraints.md: New file.
13181 * config/iq2000/iq2000.md: Include it.
13182 (define_insn ""): Delete.
13183 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13184 unsupported constraint letters from patterns.
13185 (call_value, call_value_internal1): Likewise.
13186 (call_value_multiple_internal1): Likewise.
13187
13188 2011-02-15 Nick Clifton <nickc@redhat.com>
13189
13190 * config/mn10300/mn10300.c: Include tm-constrs.h.
13191 (struct liw_data): New data structure describing an LIW candidate
13192 instruction.
13193 (extract_bundle): Use struct liw_data. Allow small integer
13194 operands for some instructions.
13195 (check_liw_constraints): Use struct liw_data. Remove swapped
13196 parameter. Add comments describing the checks. Fix bug when
13197 assigning the source of liw1 to the source of liw2.
13198 (liw_candidate): Delete. Code moved into extract_bundle.
13199 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13200 before swapping.
13201 * config/mn10300/predicates.md (liw_operand): New predicate.
13202 Allows registers and small integer constants.
13203 * config/mn10300/constraints.md (O): New constraint. Accetps
13204 integers in the range -8 to +7 inclusive.
13205 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13206 for moving a small integer into a register. Give this alternative
13207 LIW attributes.
13208 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13209 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13210 using the J,K,L and M constraints,
13211 (liw): Remove SI mode on second operands to allow for HI and QI
13212 mode values.
13213 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13214 instruction.
13215
13216 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13217
13218 PR middle-end/47725
13219 * combine.c (cant_combine_insn_p): Check zero/sign extended
13220 hard registers.
13221
13222 2011-02-15 Richard Guenther <rguenther@suse.de>
13223
13224 PR tree-optimization/47743
13225 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13226 for a non-type-compatible VN lookup bail out.
13227
13228 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13229
13230 * config/fr30/constraints.md: New file.
13231 * config/fr30/fr30.md: Include it.
13232 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13233 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13234 (EXTRA_CONSTRAINT): Delete.
13235
13236 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13237
13238 * config/frv/constraints.md: New file.
13239 * config/frv/predicates.md: Include it.
13240 * config/frv/frv.c (reg_class_from_letter): Delete.
13241 (frv_option_override): Don't initialize it.
13242 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13243 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13244 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13245 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13246 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13247 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13248 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13249 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13250 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13251 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13252 (REG_CLASS_FROM_CONSTRAINT): Delete.
13253
13254 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13255
13256 PR middle-end/47581
13257 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13258 if frame size is 0 in a leaf function.
13259
13260 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13261
13262 PR pch/14940
13263 * config/alpha/host-osf.c: New file.
13264 * config/alpha/x-osf: New file.
13265 * config.host (alpha*-dec-osf*): Use it.
13266
13267 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13268
13269 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13270 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13271 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13272 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13273 type to const_rtx.
13274 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13275
13276 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13277
13278 * config/stormy16/constraints.md: New file.
13279 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13280 Use satisfies_constraint_Q and satisfies_constraint_R.
13281 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13282 Delete.
13283 (xstormy16_legitiamte_address_p): Declare.
13284 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13285 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13286 (EXTRA_CONSTRAINT): Delete.
13287 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13288 Un-staticize.
13289 (xstormy16_extra_constraint_p): Delete.
13290
13291 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13292
13293 PR tree-optimization/46494
13294 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13295 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13296 (pass_rtl_loop_done): Add TODO_verify_flow.
13297 * fwprop.c (pass_rtl_fwprop): Likewise.
13298 * modulo-sched.c (pass_sms): Likewise.
13299 * tree-ssa-dom.c (pass_dominator): Likewise.
13300 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13301 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13302 (pass_tree_loop_done): Likewise.
13303 * tree-ssa-pre.c (execute_pre): Likewise.
13304 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13305 * tree-ssa-sink.c (pass_sink_code): Likewise.
13306 * tree-vrp.c (pass_vrp): Likewise.
13307
13308 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13309
13310 * config/v850/constraints.md: New file.
13311 * config/v850/v850.md: Include it.
13312 * config/v850/predicates.md (reg_or_0_operand): Use
13313 satisfies_constraint_G.
13314 (special_symbolref_operand): Use satisfies_constraint_K.
13315 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13316 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13317 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13318 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13319 (EXTRA_CONSTRAINT): Delete.
13320 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13321 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13322 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13323
13324 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13325
13326 PR target/47696
13327 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13328 description.
13329
13330 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13331
13332 * config/mcore/constraints.md: New file.
13333 * config/mcore/mcore.md: Include it.
13334 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13335 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13336 (REG_CLASS_FROM_LETTER): Delete.
13337 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13338 insn_const_int_ok_for_constraint.
13339 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13340 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13341 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13342 (EXTRA_CONSTRAINT): Delete.
13343
13344 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13345
13346 PR ada/41929
13347 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13348 (IS_SIGHANDLER): Define.
13349 (sparc64_is_sighandler): New function, split off from
13350 sparc64_fallback_frame_state.
13351 (sparc_is_sighandler): New function, split off from
13352 sparc_fallback_frame_state.
13353 (sparc64_fallback_frame_state): Merge with ...
13354 (sparc_fallback_frame_state): ... this into ...
13355 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13356 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13357 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13358 stack instead of hardcoded offsets.
13359
13360 2011-02-14 Andriy Gapon <avg@freebsd.org>
13361
13362 PR target/45808
13363 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13364
13365 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13366
13367 * configure: Regenerate.
13368
13369 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13370
13371 PR driver/45731
13372 * gcc.c (asm_options): Correct spec matching --target-help.
13373
13374 2011-02-12 Martin Jambor <mjambor@suse.cz>
13375
13376 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13377 to gimple call error.
13378
13379 2011-02-12 Mike Stump <mikestump@comcast.net>
13380
13381 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13382 comments in backslash regions.
13383
13384 2011-02-12 Mike Stump <mikestump@comcast.net>
13385 Jakub Jelinek <jakub@redhat.com>
13386 Iain Sandoe <iains@gcc.gnu.org>
13387
13388 PR target/47324
13389 * dwarf2out.c (output_cfa_loc): When required, apply the
13390 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13391 (output_loc_sequence): Likewise.
13392 (output_loc_operands_raw): Likewise.
13393 (output_loc_sequence_raw): Likewise.
13394 (output_cfa_loc): Likewise.
13395 (output_loc_list): Suppress register number adjustment when
13396 calling output_loc_sequence()
13397 (output_die): Likewise.
13398
13399 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13400
13401 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13402 Remove macros.
13403 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13404 xtensa_memory_move_cost): New functions.
13405 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13406
13407 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13408
13409 PR lto/47225
13410 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13411 in the current directory.
13412 * configure: Rebuilt.
13413
13414 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13415
13416 * config/darwin.c (darwin_override_options): Add a hunk missed
13417 from the commit of r168571. Trim comment line lengths and
13418 correct indents of the preceding block.
13419
13420 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13421
13422 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13423 the switch.
13424
13425 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13426
13427 * common.opt (nostartfiles): New Driver option.
13428
13429 2011-02-11 Xinliang David Li <davidxl@google.com>
13430
13431 PR tree-optimization/47707
13432 * tree-chrec.c (convert_affine_scev): Keep type precision.
13433
13434 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13435
13436 PR tree-optimization/47420
13437 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13438
13439 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13440
13441 PR rtl-optimization/47614
13442 * rtl.h (check_for_inc_dec): Declare.
13443 * dse.c (check_for_inc_dec): Externalize...
13444 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13445 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13446
13447 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13448
13449 PR driver/47678
13450 * gcc.c (main): Do not compile inputs if there were errors in
13451 option handling.
13452 * opts-common.c (read_cmdline_option): Check for wrong language
13453 after other error checks.
13454
13455 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13456
13457 * cgraph.c: Fix comment typos.
13458 * cgraph.h: Likewise.
13459 * cgraphunit.c: Likewise.
13460 * ipa-cp.c: Likewise.
13461 * ipa-inline.c: Likewise.
13462 * ipa-prop.c: Likewise.
13463 * ipa-pure-const.c: Likewise.
13464 * ipa-ref.c: Likewise.
13465 * ipa-reference.c: Likewise.
13466
13467 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13468
13469 PR debug/47684
13470 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13471
13472 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13473
13474 PR testsuite/47400
13475 * doc/sourcebuild.texi (Require Support): Document
13476 dg-require-ascii-locale.
13477
13478 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13479
13480 * doc/lto.texi (Write summary): Fix missing parentheses.
13481
13482 2011-02-10 DJ Delorie <dj@redhat.com>
13483
13484 * config/m32c/m32c.c (m32c_option_override): Disable
13485 -fcombine-stack-adjustments until flag value tracking and compare
13486 optimization can be rewritten.
13487
13488 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13489
13490 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13491 PROCESSOR_POWER7.
13492 (PROCESSOR_DEFAULT64): Likewise.
13493
13494 2011-02-10 Richard Henderson <rth@redhat.com>
13495
13496 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13497 change from 2011-02-03.
13498 * config/rx/rx.c (flags_from_code): Likewise.
13499 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13500 is valid, n/pz otherwise.
13501 (rx_select_cc_mode): Return CCmode if Y is not zero.
13502
13503 2011-02-10 Richard Guenther <rguenther@suse.de>
13504
13505 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13506
13507 2011-02-10 Richard Guenther <rguenther@suse.de>
13508
13509 PR tree-optimization/47677
13510 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13511
13512 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13513
13514 PR target/47665
13515 * combine.c (make_compound_operation): Only change shifts into
13516 multiplication for SCALAR_INT_MODE_P.
13517
13518 2011-02-10 Jie Zhang <jie@codesourcery.com>
13519
13520 PR testsuite/47622
13521 Revert
13522 2011-02-05 Jie Zhang <jie@codesourcery.com>
13523 PR debug/42631
13524 * web.c (entry_register): Don't clobber the number of the
13525 first uninitialized reference in used[].
13526
13527 2011-02-09 Richard Guenther <rguenther@suse.de>
13528
13529 PR tree-optimization/47664
13530 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13531 all edges again.
13532
13533 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13534
13535 PR target/46481
13536 PR target/47032
13537 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13538 PROCESSOR_POWER7.
13539 (PROCESSOR_DEFAULT64): Same.
13540 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13541
13542 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13543
13544 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13545
13546 2011-02-09 Martin Jambor <mjambor@suse.cz>
13547
13548 PR middle-end/45505
13549 * tree-sra.c (struct access): New flags grp_scalar_read and
13550 grp_scalar_write. Changed description of assignment read and write
13551 flags.
13552 (dump_access): Dump new flags, reorder all of them.
13553 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13554 to detect multiple scalar reads.
13555 (analyze_access_subtree): Use the new scalar read write flags instead
13556 of the old flags. Adjusted comments.
13557
13558 2011-02-08 DJ Delorie <dj@redhat.com>
13559
13560 PR target/47548
13561 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13562 patterns.
13563
13564 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13565
13566 * config/m68k/uclinux.opt: New.
13567 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13568
13569 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13570
13571 * config/cris/elf.opt (sim): New Driver option.
13572
13573 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13574
13575 * config/xtensa/elf.opt: New.
13576 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13577
13578 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13579
13580 * config/vax/elf.opt: New.
13581 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13582
13583 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13584
13585 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13586
13587 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13588
13589 * config/gnu-user.opt: New.
13590 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13591 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13592 *-*-uclinux*): Use gnu-user.opt.
13593
13594 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13595
13596 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13597 * config/i386/gnu.h (CPP_SPEC): Likewise.
13598
13599 2011-02-08 Ian Lance Taylor <iant@google.com>
13600
13601 * common.opt (fcx-limited-range): Add SetByCombined flag.
13602 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13603 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13604 (fassociative-math, freciprocal-math): Likewise.
13605 (funsafe-math-optimizations): Likewise.
13606 * opth-gen.awk: Handle SetByCombined.
13607 * optc-gen.awk: Likewise.
13608 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13609 (set_unsafe_math_optimizations_flags): Likewise.
13610 * doc/options.texi (Option properties): Document SetByCombined.
13611
13612 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13613
13614 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13615 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13616 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13617 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13618 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13619
13620 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13621
13622 PR tree-optimization/46834
13623 PR tree-optimization/46994
13624 PR tree-optimization/46995
13625 * graphite-sese-to-poly.c (used_outside_reduction): New.
13626 (detect_commutative_reduction): Call used_outside_reduction.
13627 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13628 translate_scalar_reduction_to_array only when at least one
13629 loop-phi/close-phi tuple has been detected.
13630
13631 2011-02-08 Richard Guenther <rguenther@suse.de>
13632
13633 PR middle-end/47639
13634 * tree-vect-generic.c (expand_vector_operations_1): Update
13635 stmts here ...
13636 (expand_vector_operations): ... not here. Cleanup EH info
13637 and the CFG if required.
13638
13639 2011-02-08 Richard Guenther <rguenther@suse.de>
13640
13641 PR tree-optimization/47641
13642 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13643 require type compatibility.
13644
13645 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13646
13647 * gimple-low.c (lower_function_body): Don't remove the location of
13648 the return statement here.
13649 (lower_gimple_return): Do it here instead but only if the return
13650 statement is actually used twice.
13651
13652 2011-02-08 Richard Guenther <rguenther@suse.de>
13653
13654 PR tree-optimization/47632
13655 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13656 unused up_to_stmt parameter, return whether cfg-cleanup is
13657 necessary, remove EH info properly.
13658 (forward_propagate_into_gimple_cond): Adjust caller.
13659 (forward_propagate_into_cond): Likewise.
13660 (forward_propagate_comparison): Likewise.
13661 (tree_ssa_forward_propagate_single_use_vars): Make
13662 forward_propagate_comparison case similar to the two others.
13663
13664 2011-02-08 Nick Clifton <nickc@redhat.com>
13665
13666 * config/mn10300/mn10300.opt (mliw): New command line option.
13667 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13668 (liw_bundling): New automaton.
13669 (liw): New attribute.
13670 (liw_op): New attribute.
13671 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13672 (movsi_internal): Add LIW attributes.
13673 (andsi3): Likewise.
13674 (iorsi3): Likewise.
13675 (xorsi3): Likewise.
13676 (addsi3): Separate register and immediate alternatives.
13677 Add LIW attributes.
13678 (subsi3): Likewise.
13679 (cmpsi): Likewise.
13680 (aslsi3): Likewise.
13681 (lshrsi3): Likewise.
13682 (ashrsi3): Likewise.
13683 (liw): New pattern.
13684 * config/mn10300/mn10300.c (liw_op_names): New
13685 (mn10300_print_operand): Handle 'W' operand descriptor.
13686 (extract_bundle): New function.
13687 (check_liw_constraints): New function.
13688 (liw_candidate): New function.
13689 (mn10300_bundle_liw): New function.
13690 (mn10300_reorg): New function.
13691 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13692 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13693 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13694 __LIW__ or __NO_LIW__.
13695 * doc/invoke.texi: Describe the -mliw command line option.
13696
13697 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13698
13699 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13700 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13701 pthread_mutex_unlock): Remove.
13702 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13703 * config/pa/t-pa64: Likewise.
13704 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13705 shared libc if not linking against libpthread.
13706 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13707
13708 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13709
13710 PR target/47558
13711 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13712 on 10.6 and later to ensure that we always use the unwinder from
13713 the system. Only add -no_compact_unwind when tarteting darwin
13714 10.6 or later.
13715
13716 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13717
13718 PR target/46997
13719 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13720 (vec_interleave_lowv2sf): Ditto.
13721 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13722 (vec_extract_oddv2sf): Ditto.
13723
13724 2011-02-07 Mike Stump <mikestump@comcast.net>
13725
13726 PR target/42333
13727 Add __ieee_divdc3 entry point.
13728 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13729 entry point.
13730 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13731 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13732 * config/darwin.c (darwin_rename_builtins): Add.
13733 * config/darwin-protos.h (darwin_rename_builtins): Add.
13734
13735 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13736
13737 PR target/47636
13738 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13739 for the condition.
13740
13741 2011-02-07 Mike Stump <mikestump@comcast.net>
13742
13743 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13744
13745 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13746
13747 PR target/47534
13748 * config/avr/libgcc.S (exit): Move .endfunc
13749
13750 2011-02-07 Richard Guenther <rguenther@suse.de>
13751
13752 PR tree-optimization/47615
13753 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13754 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13755 (run_scc_vn): Initialize it.
13756 (visit_reference_op_load): Use it.
13757 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13758
13759 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13760
13761 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13762 DImode trapping arithmetic libfuncs.
13763
13764 2011-02-07 Richard Guenther <rguenther@suse.de>
13765
13766 PR tree-optimization/47621
13767 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13768 two duplicates ...
13769 (execute_update_addresses_taken): ... here. Make it more
13770 conservative in what we accept.
13771
13772 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13773
13774 * config/sparc/freebsd.h (ASM_SPEC): Define.
13775 * config/sparc/vxworks.h (ASM_SPEC): Define.
13776
13777 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13778
13779 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13780
13781 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13782
13783 * doc/invoke.texi: Remove reference to compiler internals from
13784 user documentation.
13785
13786 * reg-notes.def: Remove REG_VALUE_PROFILE.
13787 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13788
13789 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13790
13791 PR middle-end/47610
13792 * varasm.c (default_section_type_flags): If decl is NULL,
13793 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13794
13795 2011-02-05 Jie Zhang <jie@codesourcery.com>
13796
13797 PR debug/42631
13798 * web.c (entry_register): Don't clobber the number of the
13799 first uninitialized reference in used[].
13800
13801 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13802
13803 PR tree-optimization/46194
13804 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13805 (build_classic_dist_vector_1): Do not represent classic distance
13806 vectors when the access functions are variating in different loops.
13807
13808 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13809
13810 * config/mips/iris6.opt: New.
13811 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13812
13813 2011-02-04 Richard Henderson <rth@redhat.com>
13814 Steve Ellcey <sje@cup.hp.com>
13815
13816 PR target/46997
13817 * config/ia64/predicates.md (mux1_brcst_element): New.
13818 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13819 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13820 (ia64_unpack_sign): New.
13821 (ia64_expand_unpack): Rewrite using new routines.
13822 (ia64_expand_widen_sum): Ditto.
13823 (ia64_expand_dot_prod_v8qi): Ditto.
13824 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13825 routines, add endian check.
13826 (pmpy2_even): Rename from pmpy2_r, add endian check.
13827 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13828 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13829 (vec_widen_smult_hi_v4hi): Ditto.
13830 (vec_widen_umult_lo_v4hi): Ditto.
13831 (vec_widen_umult_hi_v4hi): Ditto.
13832 (mulv2si3): Change endian checks.
13833 (sdot_prodv4hi): Rewrite with new calls.
13834 (udot_prodv4hi): New.
13835 (vec_pack_ssat_v4hi): Add endian check.
13836 (vec_pack_usat_v4hi): Ditto.
13837 (vec_pack_ssat_v2si): Ditto.
13838 (max1_even): Rename from max1_r, add endian check.
13839 (max1_odd): Rename from max1_l, add endian check.
13840 (*mux1_rev): Format change.
13841 (*mux1_mix): Ditto.
13842 (*mux1_shuf): Ditto.
13843 (*mux1_alt): Ditto.
13844 (*mux1_brcst_v8qi): Use new predicate.
13845 (vec_extract_evenv8qi): Remove endian check.
13846 (vec_extract_oddv8qi): Ditto.
13847 (vec_interleave_lowv4hi): Format change.
13848 (vec_interleave_highv4hi): Ditto.
13849 (mix2_even): Rename from mix2_r, add endian check.
13850 (mix2_odd): Rename from mux2_l, add endian check.
13851 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13852 (vec_extract_evenodd_helper): Format change.
13853 (vec_extract_evenv4hi): Remove endian check.
13854 (vec_extract_oddv4hi): Remove endian check.
13855 (vec_interleave_lowv2si): Format change.
13856 (vec_interleave_highv2si): Format change.
13857 (vec_initv2si): Remove endian check.
13858 (vecinit_v2si): Add endian check.
13859 (reduc_splus_v2sf): Add endian check.
13860 (reduc_smax_v2sf): Ditto.
13861 (reduc_smin_v2sf): Ditto.
13862 (vec_initv2sf): Remove endian check.
13863 (fpack): Add endian check.
13864 (fswap): Add endian check.
13865 (vec_interleave_highv2sf): Add endian check.
13866 (vec_interleave_lowv2sf): Add endian check.
13867 (fmix_lr): Add endian check.
13868 (vec_setv2sf): Format change.
13869 (*vec_extractv2sf_0_be): Use shift to extract operand.
13870 (*vec_extractv2sf_1_be): New.
13871 (vec_pack_trunc_v4hi): Add endian check.
13872 (vec_pack_trunc_v2si): Format change.
13873
13874 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13875
13876 PR inline-asm/23200
13877 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13878 do bb, locus and block comparison and disallow loads if it is not set.
13879 (stmt_is_replaceable_p): New function.
13880 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13881 callers.
13882 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13883 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13884 SSA_NAME_DEF_STMT.
13885 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13886
13887 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13888
13889 * config/rs6000/xilinx.opt: New.
13890 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13891
13892 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13893
13894 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13895
13896 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13897
13898 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13899 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13900 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13901 secondary_reload_info, xtensa_secondary_reload): Remove.
13902 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13903 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13904 (xtensa_preferred_reload_class): Make static. Change return and
13905 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13906 Use CONST_DOUBLE_P predicate.
13907 (xtensa_preferred_output_reload_class): New function.
13908 (xtensa_secondary_reload): Make static.
13909
13910 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13911
13912 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13913 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13914 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13915
13916 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13917
13918 PR middle-end/31490
13919 * output.h (SECTION_RELRO): Define.
13920 (SECTION_MACH_DEP): Adjust.
13921 (get_variable_section): New prototype.
13922 * varpool.c (varpool_finalize_named_section_flags): New function.
13923 (varpool_assemble_pending_decls): Call it.
13924 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13925 * cgraphunit.c (cgraph_output_in_order): Call
13926 varpool_finalize_named_section_flags.
13927 * varasm.c (get_section): Allow section flags conflicts between
13928 relro and read-only sections if the section hasn't been declared yet.
13929 Set SECTION_OVERRIDE after diagnosing section type conflict.
13930 (get_variable_section): No longer static.
13931 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13932 readonly sections that need relocations.
13933 (decl_readonly_section_1): New function.
13934 (decl_readonly_section): Use it.
13935
13936 Revert:
13937 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13938 Steve Ellcey <sje@cup.hp.com>
13939
13940 PR middle-end/31490
13941 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13942 if section attribute used.
13943
13944 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13945
13946 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13947 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13948 (darwin_init_sections): Remove assertion.
13949
13950 2011-02-03 Nick Clifton <nickc@redhat.com>
13951
13952 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13953 lt and ge.
13954 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13955 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13956 instead of "n" and "pz".
13957 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13958 CC_FLAG_S.
13959
13960 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13961
13962 PR target/47312
13963 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13964 fma, expand FMA_EXPR as fma{,f,l} call.
13965
13966 PR lto/47274
13967 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13968 copy them into a unsigned char variable and pass address of it to
13969 lto_output_data_stream.
13970
13971 PR target/47564
13972 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13973 around backend_init_target and lang_dependent_init_target calls.
13974 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13975 (verify_cgraph_node): Don't call set_cfun here. Use
13976 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13977 Set error_found for incorrectly represented calls to thunks.
13978
13979 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13980
13981 PR debug/43092
13982 PR rtl-optimization/43494
13983 * rtl.h (for_each_inc_dec_fn): New type.
13984 (for_each_inc_dec): Declare.
13985 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13986 (for_each_inc_dec_find_inc_dec): New fn.
13987 (for_each_inc_dec_find_mem): New fn.
13988 (for_each_inc_dec): New fn.
13989 * dse.c (struct insn_size): Remove.
13990 (replace_inc_dec, replace_inc_dec_mem): Remove.
13991 (emit_inc_dec_insn_before): New fn.
13992 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13993 (canon_address): Pass mem modes to cselib_lookup.
13994 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13995 (cselib_lookup_from_insn): Likewise.
13996 (cselib_subst_to_values): Likewise.
13997 * cselib.c (find_slot_memmode): New var.
13998 (cselib_find_slot): New fn. Use it instead of
13999 htab_find_slot_with_hash everywhere.
14000 (entry_and_rtx_equal_p): Use find_slot_memmode.
14001 (autoinc_split): New fn.
14002 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14003 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14004 Deal with autoinc. Special-case recursion into MEMs.
14005 (cselib_hash_rtx): Likewise.
14006 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14007 address and MEM modes.
14008 (cselib_subst_to_values): Add memmode, pass it on.
14009 Deal with autoinc.
14010 (cselib_lookup): Add memmode argument, pass it on.
14011 (cselib_lookup_from_insn): Add memmode.
14012 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14013 (struct cselib_record_autoinc_data): New.
14014 (cselib_record_autoinc_cb): New fn.
14015 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14016 mode to cselib_lookup. Reset autoinced REGs here instead of...
14017 (cselib_process_insn): ... here.
14018 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14019 to cselib_lookup.
14020 (add_uses): Likewise, also to cselib_subst_to_values.
14021 (add_stores): Likewise.
14022 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14023 cselib_subst_to_values.
14024 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14025 * gcse.c (do_local_cprop): Adjusted.
14026 * postreload.c (reload_cse_simplify_set): Adjusted.
14027 (reload_cse_simplify_operands): Adjusted.
14028 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14029
14030 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14031
14032 PR tree-optimization/45122
14033 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14034 unsafe assumptions when there's more than one loop exit.
14035
14036 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14037
14038 PR target/47272
14039 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14040 Document using vector double with the load/store builtins, and
14041 that the load/store builtins always use Altivec instructions.
14042
14043 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14044 to use altivec memory instructions, even on VSX.
14045 (vector_altivec_store_<mode>): Ditto.
14046
14047 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14048 function.
14049
14050 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14051 V2DF, V2DI support to load/store overloaded builtins.
14052
14053 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14054 altivec load/store builtins for V2DF/V2DI types.
14055
14056 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14057 set avoid indexed addresses on power6 if -maltivec.
14058 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14059 vector_altivec_load/vector_altivec_store builtins.
14060 (altivec_expand_st_builtin): Ditto.
14061 (altivec_expand_builtin): Add VSX memory builtins.
14062 (rs6000_init_builtins): Add V2DI types to internal types.
14063 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14064 load/store builtins.
14065 (rs6000_address_for_altivec): Insure memory address is appropriate
14066 for Altivec.
14067
14068 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14069 vec_vsx_ld and vec_vsx_st.
14070 (vsx_store_<mode>): Ditto.
14071
14072 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14073 variables to hold long long types for VSX vector memory builtins.
14074 (RS6000_BTI_unsigned_long_long): Ditto.
14075 (long_long_integer_type_internal_node): Ditti.
14076 (long_long_unsigned_type_internal_node): Ditti.
14077
14078 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14079 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14080 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14081
14082 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14083 short cuts.
14084 (vec_vsx_st): Ditto.
14085
14086 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14087
14088 * config/pa/pa-hpux10.opt: New.
14089 * config/hpux11.opt (pthread): New Driver option.
14090 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14091 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14092
14093 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14094
14095 * config/ia64/vms.opt: New.
14096 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14097
14098 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14099
14100 PR target/47580
14101 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14102 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14103 generator functions.
14104 (vsx_floatuns<VSi><mode>2): Ditto.
14105 (vsx_fix_trunc<mode><VSi>2): Ditto.
14106 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14107
14108 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14109
14110 * config/i386/djgpp.opt (posix): New Driver option.
14111
14112 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14113
14114 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14115 Move to the unsupported targets list.
14116
14117 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14118
14119 PR rtl-optimization/47525
14120 * df-scan.c: Update copyright years.
14121 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14122 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14123
14124 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14125
14126 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14127 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14128 (ASM_OUTPUT_ASCII): Remove.
14129 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14130
14131 2011-02-02 Jeff Law <law@redhat.com>
14132
14133 PR middle-end/47543
14134 * reload.c (find_reloads_address): Handle reg+d address where both
14135 components are invalid by reloading the entire address.
14136
14137 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14138 Richard Guenther <rguenther@suse.de>
14139
14140 PR tree-optimization/40979
14141 PR bootstrap/47044
14142 * passes.c (init_optimization_passes): After LIM call copy_prop
14143 and DCE to clean up.
14144 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14145
14146 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14147
14148 PR tree-optimization/47576
14149 PR tree-optimization/47555
14150 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14151 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14152 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14153 * tree-scalar-evolution.c (follow_ssa_edge): Use
14154 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14155
14156 2011-02-02 Richard Guenther <rguenther@suse.de>
14157
14158 PR tree-optimization/47566
14159 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14160
14161 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14162
14163 PR debug/47106
14164 PR debug/47402
14165 * tree-inline.c (declare_return_variable): Remove unused caller
14166 variable.
14167
14168 PR debug/47106
14169 PR debug/47402
14170 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14171 * cfgexpand.c (account_used_vars_for_block): Use them.
14172 * tree-nrv.c (tree_nrv): Likewise.
14173 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14174 (dump_scope_block): Likewise.
14175 (remove_unused_locals): Likewise.
14176
14177 PR debug/47106
14178 PR debug/47402
14179 * tree-inline.c (declare_return_variable): Add result decl to
14180 local decls only once.
14181 * gimple-low.c (record_vars_into): Mark newly-created variables
14182 as referenced.
14183
14184 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14185
14186 PR debug/47498
14187 PR debug/47501
14188 PR debug/45136
14189 PR debug/45130
14190 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14191 debug insns.
14192 (no_real_insns_p, schedule_block, set_priorities): Drop special
14193 treatment of boundary debug insns.
14194 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14195 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14196 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14197 (BOUNDARY_DEBUG_INSN_P): Likewise.
14198 (SCHEDULE_DEBUG_INSN_P): Likewise.
14199 * sched-rgn.c (init_ready_list): Drop special treatment of
14200 boundary debug insns.
14201 * final.c (rest_of_clean_state): Clear notes' BB.
14202
14203 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14204
14205 * config/openbsd.opt (assert=): New Driver option.
14206
14207 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14208
14209 * config/i386/nto.opt: New.
14210 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14211
14212 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14213
14214 * config/i386/netware.opt: New.
14215 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14216
14217 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14218
14219 * config/interix.opt (posix): New Driver option.
14220
14221 2011-02-01 DJ Delorie <dj@redhat.com>
14222
14223 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14224
14225 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14226 class for A0/A1.
14227
14228 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14229
14230 PR tree-optimization/47561
14231 * toplev.c (process_options): Print the Graphite flags. Add
14232 flag_loop_flatten to the list of options requiring Graphite.
14233
14234 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14235
14236 * config/i386/cygming.opt (posix): New Driver option.
14237
14238 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14239
14240 * config/arm/vxworks.opt: New.
14241 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14242
14243 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14244
14245 * config/alpha/elf.opt: New.
14246 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14247 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14248
14249 2011-02-01 Richard Guenther <rguenther@suse.de>
14250
14251 PR tree-optimization/47559
14252 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14253 store-motion on references that can throw.
14254
14255 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14256
14257 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14258 * tree-pass.h (TDF_CSELIB): New macro.
14259 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14260 cselib_lookup): Check for it rather than for TDF_DETAILS.
14261
14262 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14263
14264 PR driver/47547
14265 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14266 is HOST_BIT_BUCKET.
14267
14268 * opts.c (finish_options): Don't add x_aux_base_name if it is
14269 HOST_BIT_BUCKET.
14270
14271 2011-02-01 Richard Guenther <rguenther@suse.de>
14272
14273 PR tree-optimization/47555
14274 Revert
14275 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14276
14277 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14278
14279 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14280
14281 PR gcc/46692
14282 * config/lm32/t-lm32: Add multilib for all CPU options.
14283
14284 2011-02-01 Richard Guenther <rguenther@suse.de>
14285
14286 PR tree-optimization/47541
14287 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14288 sure to have a field at offset zero.
14289
14290 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14291
14292 * config/arc/arc.opt (EB, EL): New Driver options.
14293
14294 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14295
14296 * config/alpha/osf5.opt: New.
14297 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14298
14299 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14300
14301 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14302
14303 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14304
14305 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14306 -floop-interchange.
14307 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14308 is an alias of -floop-interchange and that it requires the
14309 Graphite infrastructure.
14310 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14311 flag_loop_interchange based on the value of flag_tree_loop_linear.
14312
14313 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14314 Richard Guenther <rguenther@suse.de>
14315
14316 PR tree-optimization/47538
14317 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14318 type instead of r1type, except for comparisons. For right
14319 shifts and comparisons punt if there are mismatches in
14320 sizetype vs. non-sizetype types.
14321
14322 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14323
14324 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14325 avx_runtime.
14326
14327 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14328
14329 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14330 version number.
14331 * configure: Regenerate.
14332
14333 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14334
14335 * configure.ac (gcc_cv_ld_static_option): Define.
14336 (gcc_cv_ld_dynamic_option): Define.
14337 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14338 instead.
14339 (HAVE_LD_STATIC_DYNAMIC): Update message.
14340 (LD_STATIC_OPTION): Define.
14341 (LD_DYNAMIC_OPTION): Define.
14342 * configure: Regenerate.
14343 * config.in: Regenerate.
14344 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14345 HAVE_LD_STATIC_DYNAMIC]: Use them.
14346
14347 2011-01-31 Nick Clifton <nickc@redhat.com>
14348
14349 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14350 registers inside interrupt handlers if the handler is not a leaf
14351 function.
14352
14353 2011-01-31 Nick Clifton <nickc@redhat.com>
14354
14355 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14356 reg_renumber returning an INVALID_REGNUM.
14357
14358 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14359
14360 PR libgcj/44341
14361 * doc/install.texi: Document host options discarded when cross
14362 configuring target libraries.
14363
14364 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14365
14366 Reverted:
14367 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14368 PR debug/45136
14369 PR debug/45130
14370 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14371 debug insns.
14372 (no_real_insns_p, schedule_block, set_priorities): Drop special
14373 treatment of boundary debug insns.
14374 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14375 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14376 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14377 (BOUNDARY_DEBUG_INSN_P): Likewise.
14378 (SCHEDULE_DEBUG_INSN_P): Likewise.
14379 * sched-rgn.c (init_ready_list): Drop special treatment of
14380 boundary debug insns.
14381 * final.c (rest_of_clean-state): Clear notes' BB.
14382
14383 2011-01-31 Alan Modra <amodra@gmail.com>
14384
14385 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14386 toc relative expressions as we do in print_operand_address.
14387
14388 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14389
14390 * doc/extend.texi: Follow spelling conventions.
14391 * doc/invoke.texi: Fix a typo.
14392
14393 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14394
14395 * config/hpux11.opt: New.
14396 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14397 ia64*-*-hpux*): Use hpux11.opt.
14398
14399 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14400
14401 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14402 to tmake_file.
14403
14404 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14405
14406 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14407 support sites.
14408
14409 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14410
14411 * doc/install.texi (Binaries): Remove outdated reference for
14412 Motorola 68HC11/68HC12 downloads.
14413
14414 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14415
14416 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14417 Drepper's paper.
14418
14419 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14420
14421 PR bootstrap/47147
14422 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14423 used by NetBSD.
14424
14425 2011-01-28 Ahmad Sharif <asharif@google.com>
14426
14427 * value-prof.c (check_counter): Corrected error message.
14428
14429 2011-01-29 Jie Zhang <jie@codesourcery.com>
14430
14431 * config/arm/arm.c (arm_legitimize_reload_address): New.
14432 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14433 arm_legitimize_reload_address.
14434 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14435
14436 2011-01-28 Ian Lance Taylor <iant@google.com>
14437
14438 * godump.c (go_define): Ignore macros whose definitions include
14439 two adjacent operands.
14440
14441 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14442
14443 PR target/42894
14444 * varasm.c (force_const_mem): Store copy of x in desc->constant
14445 instead of x itself.
14446 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14447 itself into REG_EQUAL note.
14448
14449 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14450
14451 * config/freebsd.opt (posix, rdynamic): New Driver options.
14452
14453 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14454
14455 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14456 -Bstatic/-Bdynamic.
14457 * configure: Regenerate.
14458
14459 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14460
14461 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14462 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14463
14464 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14465
14466 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14467 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14468 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14469 (s390_preferred_reload_class): Make static. Change return and
14470 'rclass' argument type to reg_class_t.
14471
14472 2011-01-27 Jan Hubicka <jh@suse.cz>
14473
14474 PR middle-end/46949
14475 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14476 (process_function_and_variable_attributes): Check defined weakrefs.
14477
14478 2011-01-27 Martin Jambor <mjambor@suse.cz>
14479
14480 PR tree-optimization/47228
14481 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14482 build_ref_for_offset.
14483
14484 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14485
14486 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14487
14488 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14489
14490 PR rtl-optimization/46856
14491 * postreload.c (reload_combine_recognize_const_pattern): Do not
14492 separate cc0 setter and user on cc0 targets.
14493
14494 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14495
14496 PR c/43082
14497 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14498 passed a VOID_TYPE expression, immediately emit an error and
14499 return error_mark_node.
14500
14501 2011-01-26 Jeff Law <law@redhat.com>
14502
14503 PR rtl-optimization/47464
14504 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14505 rather than may_trap_p as needed.
14506
14507 2011-01-26 DJ Delorie <dj@redhat.com>
14508
14509 PR rtl-optimization/46878
14510 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14511 setter/user dependency as well.
14512
14513 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14514
14515 PR rtl-optimization/44469
14516 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14517 after removing trivially dead basic blocks.
14518
14519 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14520
14521 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14522 * config/frv/frv.h (LINK_SPEC): Likewise.
14523 * config/i386/netware.h (LINK_SPEC): Likewise.
14524 * config/m68k/linux.h (ASM_SPEC): Likewise.
14525 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14526 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14527 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14528 * config/sparc/linux.h (ASM_SPEC): Likewise.
14529 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14530 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14531
14532 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14533
14534 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14535 * config/frv/frv.h (ASM_SPEC): Likewise.
14536 * config/m68k/linux.h (ASM_SPEC): Likewise.
14537 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14538 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14539 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14540 * config/sparc/linux.h (ASM_SPEC): Likewise.
14541 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14542 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14543
14544 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14545
14546 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14547 * config/frv/frv.h (LINK_SPEC): Likewise.
14548 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14549
14550 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14551
14552 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14553 * config/frv/frv.h (ASM_SPEC): Likewise.
14554 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14555 * config/m68k/linux.h (ASM_SPEC): Likewise.
14556 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14557 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14558 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14559 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14560 * config/sparc/linux.h (ASM_SPEC): Likewise.
14561 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14562 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14563 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14564
14565 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14566
14567 PR target/46997
14568 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14569 (*mux2): Ditto.
14570 (vec_extract_evenodd_help): Ditto.
14571 (vec_extract_evenv4hi): Ditto.
14572 (vec_extract_oddv4hi): Ditto.
14573 (vec_interleave_lowv2si): Ditto.
14574 (vec_interleave_highv2si): Ditto.
14575 (vec_extract_evenv2si): Ditto.
14576 (vec_extract_oddv2si: Ditto.
14577 (vec_pack_trunc_v2si): Ditto.
14578
14579 2011-01-22 Jan Hubicka <jh@suse.cz>
14580
14581 PR target/47237
14582 * cgraph.h (cgraph_local_info): New field can_change_signature.
14583 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14584 signature can change.
14585 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14586 can change.
14587 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14588 (cgraph_function_versioning): We can not change signature of functions
14589 that don't allow that.
14590 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14591 (lto_input_node): Likewise.
14592 * ipa-inline.c (compute_inline_parameters): Compute
14593 local.can_change_signature.
14594 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14595 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14596 functions that can not change signature.
14597 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14598 init_cumulative_args): Do not use local calling conventions
14599 for functions that can not change signature.
14600
14601 2011-01-22 Jan Hubicka <jh@suse.cz>
14602
14603 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14604
14605 2011-01-26 Richard Guenther <rguenther@suse.de>
14606
14607 PR tree-optimization/47190
14608 * cgraphunit.c (process_common_attributes): New function.
14609 (process_function_and_variable_attributes): Use it.
14610
14611 2011-01-26 Richard Guenther <rguenther@suse.de>
14612
14613 PR lto/47423
14614 * cgraphbuild.c (record_eh_tables): Record reference to personality
14615 function.
14616
14617 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14618
14619 PR debug/45454
14620 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14621 non-debug insns from moving up.
14622
14623 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14624
14625 PR target/40125
14626 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14627 t-dlldir{,-x} fragment for build and add it to tmake_file.
14628 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14629 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14630 * config/i386/t-dlldir: New file.
14631 (SHLIB_DLLDIR): Define.
14632 * config/i386/t-dlldir-x: New file.
14633 (SHLIB_DLLDIR): Define.
14634 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14635 (SHLIB_INSTALL): Use it.
14636
14637 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14638
14639 PR target/47246
14640 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14641 lower bound of the allowed Thumb-2 coprocessor load/store
14642 index range to -256. Add explaining comment.
14643
14644 2011-01-25 Ian Lance Taylor <iant@google.com>
14645
14646 * godump.c (go_define): Improve lexing of macro expansion to only
14647 accept expressions which match Go spec.
14648
14649 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14650
14651 PR c++/43601
14652 * tree.c (handle_dll_attribute): Handle it.
14653 * doc/extend.texi (@item dllexport): Mention it.
14654 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14655
14656 2011-01-25 Ian Lance Taylor <iant@google.com>
14657
14658 PR tree-optimization/26854
14659 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14660 (decl_jump_unsafe): Move higher in file, with no other change.
14661 (bind): Set has_jump_unsafe_decl if appropriate.
14662 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14663 (check_earlier_gotos): Likewise.
14664 (c_check_switch_jump_warnings): Likewise.
14665
14666 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14667
14668 * doc/invoke.texi (Warning Options): Add missing hyphen.
14669 (-fprofile-dir): Minor grammatical fixes.
14670 (-fbranch-probabilities): Likewise.
14671
14672 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14673
14674 PR debug/45136
14675 PR debug/45130
14676 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14677 debug insns.
14678 (no_real_insns_p, schedule_block, set_priorities): Drop special
14679 treatment of boundary debug insns.
14680 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14681 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14682 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14683 (BOUNDARY_DEBUG_INSN_P): Likewise.
14684 (SCHEDULE_DEBUG_INSN_P): Likewise.
14685 * sched-rgn.c (init_ready_list): Drop special treatment of
14686 boundary debug insns.
14687 * final.c (rest_of_clean-state): Clear notes' BB.
14688
14689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14690
14691 * Makefile.in (LAMBDA_H): Removed.
14692 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14693 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14694 lambda-trans.o, and tree-loop-linear.o.
14695 (lto-symtab.o): Remove dependence on LAMBDA_H.
14696 (tree-loop-linear.o): Remove rule.
14697 (lambda-mat.o): Same.
14698 (lambda-trans.o): Same.
14699 (lambda-code.o): Same.
14700 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14701 (tree-vect-slp.o): Same.
14702 * hwint.h (gcd): Moved here.
14703 (least_common_multiple): Same.
14704 * lambda-code.c: Removed.
14705 * lambda-mat.c: Removed.
14706 * lambda-trans.c: Removed.
14707 * lambda.h: Removed.
14708 * tree-loop-linear.c: Removed.
14709 * lto-symtab.c: Do not include lambda.h.
14710 * omega.c (gcd): Removed.
14711 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14712 * tree-data-ref.c (print_lambda_vector): Moved here.
14713 (lambda_vector_copy): Same.
14714 (lambda_matrix_copy): Same.
14715 (lambda_matrix_id): Same.
14716 (lambda_vector_first_nz): Same.
14717 (lambda_matrix_row_add): Same.
14718 (lambda_matrix_row_exchange): Same.
14719 (lambda_vector_mult_const): Same.
14720 (lambda_vector_negate): Same.
14721 (lambda_matrix_row_negate): Same.
14722 (lambda_vector_equal): Same.
14723 (lambda_matrix_right_hermite): Same.
14724 * tree-data-ref.h: Do not include lambda.h.
14725 (lambda_vector): Moved here.
14726 (lambda_matrix): Same.
14727 (dependence_level): Same.
14728 (lambda_transform_legal_p): Removed declaration.
14729 (lambda_collect_parameters): Same.
14730 (lambda_compute_access_matrices): Same.
14731 (lambda_vector_gcd): Same.
14732 (lambda_vector_new): Same.
14733 (lambda_vector_clear): Same.
14734 (lambda_vector_lexico_pos): Same.
14735 (lambda_vector_zerop): Same.
14736 (lambda_matrix_new): Same.
14737 * tree-flow.h (least_common_multiple): Removed declaration.
14738 * tree-parloops.c (lambda_trans_matrix): Moved here.
14739 (LTM_MATRIX): Same.
14740 (LTM_ROWSIZE): Same.
14741 (LTM_COLSIZE): Same.
14742 (LTM_DENOMINATOR): Same.
14743 (lambda_trans_matrix_new): Same.
14744 (lambda_matrix_vector_mult): Same.
14745 (lambda_transform_legal_p): Same.
14746 * tree-pass.h (pass_linear_transform): Removed declaration.
14747 * tree-ssa-loop.c (tree_linear_transform): Removed.
14748 (gate_tree_linear_transform): Removed.
14749 (pass_linear_transform): Removed.
14750 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14751 flag_loop_interchange.
14752
14753 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14754
14755 PR tree-optimization/47265
14756 PR tree-optimization/47443
14757 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14758 if name still has some uses.
14759
14760 2011-01-25 Martin Jambor <mjambor@suse.cz>
14761
14762 PR tree-optimization/47382
14763 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14764 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14765
14766 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14767
14768 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14769 sjlj_except_unwind_info.
14770
14771 2011-01-25 Richard Guenther <rguenther@suse.de>
14772
14773 PR tree-optimization/47426
14774 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14775 visible functions results escape.
14776
14777 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14778
14779 PR target/45701
14780 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14781 (arm_get_frame_offsets): Use it.
14782
14783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14784 Jakub Jelinek <jakub@redhat.com>
14785
14786 PR tree-optimization/47271
14787 * tree-if-conv.c (bb_postdominates_preds): New.
14788 (if_convertible_bb_p): Call bb_postdominates_preds.
14789 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14790 (predicate_scalar_phi): Call bb_postdominates_preds.
14791
14792 2011-01-25 Nick Clifton <nickc@redhat.com>
14793
14794 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14795 * config/rx/rx.c (rx_function_value): Likewise.
14796 (rx_promote_function_mode): Likewise.
14797 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14798 in order to make it legitimate.
14799 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14800 make sure that the first operand is the same as the result register.
14801 (addsi3_unspec): Delete.
14802 (subdi3): Do not accept immediate operands.
14803 (subdi3_internal): Likewise.
14804
14805 2011-01-25 Jeff Law <law@redhat.com>
14806
14807 PR rtl-optimization/37273
14808 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14809 handle them like argument loads from stack slots. Do not double
14810 count memory for memory constants and argument loads from stack slots.
14811
14812 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14813
14814 PR tree-optimization/47427
14815 PR tree-optimization/47428
14816 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14817 coalesce if the new root var would be TREE_READONLY.
14818
14819 2011-01-25 Richard Guenther <rguenther@suse.de>
14820
14821 PR middle-end/47414
14822 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14823 correct type for TBAA.
14824
14825 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14826
14827 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14828 (close_phi_written_to_memory): Call for_each_index with
14829 dr_indices_valid_in_loop.
14830
14831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14832
14833 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14834 when it is initialized.
14835
14836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14837
14838 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14839 call to graphite_find_data_references_in_stmt.
14840 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14841 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14842 call to graphite_find_data_references_in_stmt.
14843 (analyze_drs_in_stmts): Same.
14844 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14845 in which the scalar analysis of indices is performed.
14846 (create_data_ref): Same. Update call to dr_analyze_indices.
14847 (find_data_references_in_stmt): Update call to create_data_ref.
14848 (graphite_find_data_references_in_stmt): Same.
14849 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14850 declaration.
14851 (create_data_ref): Same.
14852 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14853 call to create_data_ref.
14854
14855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14856
14857 * graphite-sese-to-poly.c (build_poly_scop): Move
14858 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14859
14860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14861
14862 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14863 VAR_DECL, PARM_DECL, and RESULT_DECL.
14864
14865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14866
14867 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14868 in a reduction PBB.
14869 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14870 that have already been marked as PBB_IS_REDUCTION.
14871
14872 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14873
14874 * graphite-scop-detection.c (same_close_phi_node): New.
14875 (remove_duplicate_close_phi): New.
14876 (make_close_phi_nodes_unique): New.
14877 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14878
14879 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14880
14881 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14882 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14883 of both data references to be the same.
14884
14885 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14886
14887 * graphite-dependences.c (build_lexicographical_constraint): Remove
14888 the gdim parameter.
14889 (build_lexicographical_constraint): Adjust call to
14890 ppl_powerset_is_empty.
14891 (dependence_polyhedron): Same.
14892 (graphite_legal_transform_dr): Same.
14893 (graphite_carried_dependence_level_k): Same.
14894 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14895 parameter.
14896 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14897
14898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14899
14900 * graphite-sese-to-poly.c
14901 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14902 (close_phi_written_to_memory): New.
14903 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14904 and unshare_expr.
14905
14906 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14907
14908 * doc/install.texi: Update the expected version number of PPL to 0.11.
14909 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14910 #if PPL_VERSION_MINOR < 11.
14911
14912 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14913
14914 * graphite-dependences.c: Include graphite-cloog-util.h.
14915 (new_poly_ddr): Inlined into dependence_polyhedron.
14916 (free_poly_ddr): Moved close by new_poly_ddr.
14917 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14918 Early return NULL when ppl_powerset_is_empty returns true.
14919 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14920 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14921 (graphite_legal_transform_dr): Call new_poly_ddr.
14922 (graphite_carried_dependence_level_k): Same.
14923 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14924 (dot_transformed_deps_stmt_1): Removed.
14925 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14926 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14927 (dot_deps_1): Call dot_deps_2.
14928 * Makefile.in (graphite-dependences.o): Add missing dependence on
14929 graphite-cloog-util.h.
14930
14931 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14932
14933 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14934 (build_lexicographical_constraint): Same.
14935 (dependence_polyhedron_1): Same.
14936 (graphite_legal_transform_dr): Same.
14937 (graphite_carried_dependence_level_k): Same.
14938 * graphite-ppl.c (ppl_powerset_is_empty): New.
14939 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14940 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14941
14942 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14943
14944 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14945 the "a followed by b" relation and document it.
14946
14947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14948
14949 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14950 iteration when the bag of constraints is empty.
14951
14952 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14953
14954 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14955
14956 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14957
14958 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14959 nest and two loop depths as parameters.
14960 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14961 lst_perfect_nestify.
14962
14963 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14964
14965 * graphite-dependences.c (print_pddr): Call
14966 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14967
14968 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14969
14970 * graphite-ppl.c (debug_gmp_value): New.
14971 * graphite-ppl.h (debug_gmp_value): Declared.
14972
14973 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14974
14975 * doc/install.texi: Document availability of cloog-0.16.
14976
14977 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14978
14979 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14980 invalid postdominance info.
14981
14982 2011-01-24 Jan Hubicka <jh@suse.cz>
14983
14984 PR c/21659
14985 * doc/extend.texi (weak pragma): Drop claim that it must
14986 appear before definition.
14987 * varasm.c (merge_weak, declare_weak): Only sanity check
14988 that DECL is not output at a time it is declared weak.
14989
14990 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14991
14992 * machmode.def: Fixed comments.
14993
14994 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14995
14996 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14997
14998 2011-01-24 Paul Koning <ni1d@arrl.net>
14999
15000 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15001 WORDS_BIG_ENDIAN.
15002
15003 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15004
15005 PR target/46519
15006 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15007 (block_info): Add scanned and prev.
15008 (move_or_delete_vzeroupper_2): Return if the basic block
15009 has been scanned and the upper 128bit state is unchanged
15010 from the last scan.
15011 (move_or_delete_vzeroupper_1): Return true if the exit
15012 state is changed.
15013 (move_or_delete_vzeroupper): Visit basic blocks using the
15014 work-list based algorithm based on vt_find_locations in
15015 var-tracking.c.
15016
15017 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15018
15019 2011-01-24 Nick Clifton <nickc@redhat.com>
15020
15021 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15022 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15023 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15024 then define __v850e1__.
15025 * doc/invoke.texi: Document -mv850es.
15026
15027 2011-01-24 Richard Henderson <rth@redhat.com>
15028
15029 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15030 compound unordered comparisons.
15031 * config/rx/rx.c (rx_split_fp_compare): Remove.
15032 * config/rx/rx-protos.h: Update.
15033 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15034 (cbranchsf4): Don't call rx_split_fp_compare.
15035 (*cbranchsf4): Use rx_split_cbranch.
15036 (*cmpsf): Don't accept "i" constraint.
15037 (*conditional_branch): Only valid after reload.
15038 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15039
15040 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15041
15042 PR target/47385
15043 * config/rs6000/altivec.md (vector constant splitters): Add
15044 support for creating vector single precision constants if -mvsx is
15045 used and we would create the constant using Altivec primitives.
15046
15047 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15048 Richard Sandiford <rdsandiford@googlemail.com>
15049
15050 PR rtl-optimization/47166
15051 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15052 mechanism for PRE_MODIFY and POST_MODIFY.
15053 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15054 reloadreg.
15055
15056 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15057
15058 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15059
15060 2011-01-22 Jan Hubicka <jh@suse.cz>
15061
15062 PR lto/47333
15063 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15064
15065 2011-01-22 Jan Hubicka <jh@suse.cz>
15066
15067 PR tree-optimization/43884
15068 PR lto/44334
15069 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15070 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15071
15072 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15073
15074 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15075 * config/s390/s390.c (s390_register_move_cost,
15076 s390_memory_move_cost): New.
15077 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15078
15079 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15080
15081 PR middle-end/47401
15082 * except.c (sjlj_assign_call_site_values): Move setting the
15083 crtl->uses_eh_lsda flag to ...
15084 (sjlj_mark_call_sites): ... here.
15085 (sjlj_emit_function_enter): Support NULL dispatch label.
15086 (sjlj_build_landing_pads): In a function with no landing pads
15087 that still has must-not-throw regions, generate code to register
15088 a personality function with empty LSDA.
15089
15090 2011-01-21 Richard Henderson <rth@redhat.com>
15091
15092 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15093
15094 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15095
15096 * compare-elim.c: New file.
15097 * Makefile.in (OBJS-common): Add it.
15098 (compare-elim.o): New.
15099 * common.opt (fcompare-elim): New.
15100 * opts.c (default_options_table): Add OPT_fcompare_elim.
15101 * tree-pass.h (pass_compare_elim_after_reload): New.
15102 * passes.c (init_optimization_passes): Add it.
15103 * recog.h: Protect against re-inclusion.
15104 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15105 * doc/invoke.texi (-fcompare-elim): Document it.
15106 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15107 * doc/tm.texi: Rebuild.
15108
15109 2011-01-22 Nick Clifton <nickc@redhat.com>
15110
15111 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15112 rx_split_fp_compare.
15113
15114 2011-01-22 Nick Clifton <nickc@redhat.com>
15115
15116 * config/rx/rx.md (UNSPEC_CONST): New.
15117 (deallocate_and_return): Wrap the amount popped off the stack in
15118 an UNSPEC_CONST in order to stop it being rejected by
15119 -mmax-constant-size.
15120 (pop_and_return): Add a "(return)" rtx.
15121 (call): Drop the immediate operand.
15122 (call_internal): Likewise.
15123 (call_value): Likewise.
15124 (call_value_internal): Likewise.
15125 (sibcall_internal): Likewise.
15126 (sibcall_value_internal): Likewise.
15127 (sibcall): Likewise. Generate an explicit call using
15128 sibcall_internal.
15129 (sibcall_value): Likewise.
15130 (mov<>): FAIL if a constant operand is not legitimate.
15131 (addsi3_unpsec): New pattern.
15132
15133 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15134 (ok_for_max_constant): New function.
15135 (gen_safe_add): New function.
15136 (rx_expand_prologue): Use gen_safe_add.
15137 (rx_expand_epilogue): Likewise.
15138 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15139 UNSPEC CONSTs.
15140
15141 2011-01-21 Jeff Law <law@redhat.com>
15142
15143 PR tree-optimization/47053
15144 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15145 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15146 statements are deleted.
15147 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15148 is nonempty, then purge dead edges and cleanup the CFG.
15149
15150 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15151
15152 PR debug/47402
15153 Temporarily revert:
15154 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15155 PR debug/47106
15156 * tree-dfa.c (create_var_ann): Mark variable as used.
15157
15158 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15159
15160 PR middle-end/45566
15161 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15162 notes from other section in hot/cold partitioning even if
15163 last_action is -3. Increment call_site_base.
15164
15165 PR rtl-optimization/47366
15166 * fwprop.c (forward_propagate_into): Return bool. If
15167 any changes are made, -fnon-call-exceptions is used and
15168 REG_EH_REGION note is present, call purge_dead_edges
15169 and return true if it purged anything.
15170 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15171 any EH edges were purged.
15172
15173 2011-01-21 Jeff Law <law@redhat.com>
15174
15175 PR rtl-optimization/41619
15176 * caller-save.c (setup_save_areas): Break out code to determine
15177 which hard regs are live across calls by examining the reload chains
15178 so that it is always used.
15179 Eliminate code which checked REG_N_CALLS_CROSSED.
15180
15181 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR tree-optimization/47355
15184 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15185 NOP has non-debug uses beyond PHIs in new_bb.
15186
15187 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15188
15189 PR debug/47106
15190 * cfgexpand.c (account_used_vars_for_block): Only account vars
15191 that are annotated as used.
15192 (estimated_stack_frame_size): Don't set TREE_USED.
15193 * tree-dfa.c (create_var_ann): Mark variable as used.
15194
15195 2011-01-21 Richard Guenther <rguenther@suse.de>
15196
15197 PR middle-end/47395
15198 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15199
15200 2011-01-21 Richard Guenther <rguenther@suse.de>
15201
15202 PR tree-optimization/47365
15203 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15204 (vn_reference_lookup_pieces): Adjust.
15205 (vn_reference_lookup): Likewise.
15206 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15207 (vn_reference_lookup_3): Only look through kills if in
15208 VN_WALKREWRITE mode.
15209 (vn_reference_lookup_pieces): Adjust.
15210 (vn_reference_lookup): Likewise.
15211 (visit_reference_op_load): Likewise.
15212 (visit_reference_op_store): Likewise.
15213 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15214 (compute_avail): Likewise.
15215 (eliminate): Likewise.
15216
15217 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15218
15219 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15220 DECL_IGNORED_P non-reg vars if they are used.
15221
15222 PR tree-optimization/47391
15223 * varpool.c (const_value_known_p): Return false if
15224 decl is volatile.
15225
15226 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15227
15228 PR bootstrap/47215
15229 * config/i386/i386.c (ix86_local_alignment): Handle
15230 case for va_list_type_node is nil.
15231 (ix86_canonical_va_list_type): Likewise.
15232
15233 2011-01-21 Alan Modra <amodra@gmail.com>
15234
15235 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15236 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15237
15238 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15239
15240 * config/arm/arm.md (define_attr type): Rename f_load
15241 and f_store to f_fpa_load and f_fpa_store. Update.
15242 (write_conflict): Deal with rename fallout.
15243 (*push_fp_multi): Likewise.
15244 * config/arm/fpa.md (f_load): Use f_fpa_load.
15245 (f_store): Use f_fpa_store.
15246 (*movsf_fpa): Likewise.
15247 (*movdf_fpa): Likewise.
15248 (*movxf_fpa): Likewise.
15249 (*thumb2_movsf_fpa): Likewise.
15250 (*thumb2_movdf_fpa): Likewise.
15251 (*thumb2_movxf_fpa): Likewise.
15252 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15253 f_loadd and f_stored.
15254 (*thumb2_movdi_vfp): Likewise.
15255 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15256 (*thumb2_movsi_vfp): Likewise.
15257 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15258 Use f_loads instead of f_load.
15259 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15260
15261 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15262
15263 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15264 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15265 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15266 (xtensa_mode_dependent_address_p): New function.
15267 (constantpool_address_p): Make static. Change return type to bool.
15268 Change argument type to const_rtx. Use CONST_INT_P predicate.
15269
15270 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15271
15272 PR debug/46583
15273 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15274
15275 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15276
15277 PR debug/47283
15278 * cfgexpand.c (expand_debug_expr): Instead of generating
15279 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15280 etc. handling.
15281
15282 2011-01-20 Richard Guenther <rguenther@suse.de>
15283
15284 PR middle-end/47370
15285 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15286 the pointer operand of MEM_REFs.
15287
15288 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15289
15290 PR tree-optimization/46130
15291 * ipa-split.c (consider_split): If return_bb contains non-virtual
15292 PHIs other than for retval or if split_function would not adjust it,
15293 refuse to split.
15294
15295 2011-01-20 Richard Guenther <rguenther@suse.de>
15296
15297 PR tree-optimization/47167
15298 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15299 Revert previous change, only avoid enumeral type changes.
15300
15301 2011-01-19 Mike Stump <mikestump@comcast.net>
15302
15303 * doc/tm.texi.in (BRANCH_COST): Englishify.
15304 * doc/tm.texi (BRANCH_COST): Likewise.
15305
15306 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15307
15308 PR c++/47291
15309 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15310 (gen_scheduled_generic_parms_dies): New functions.
15311 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15312 generation for the end of CU compilation.
15313 (dwarf2out_finish): Generate template parameters DIEs here.
15314
15315 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15316
15317 PR debug/46240
15318 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15319 debug bind stmt on merge edges.
15320
15321 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15322
15323 PR debug/47079
15324 PR debug/46724
15325 * function.c (instantiate_expr): Instantiate incoming rtl of
15326 implicit arguments, and recurse on VALUE_EXPRs.
15327 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15328 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15329
15330 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15331
15332 * c-parser.c (c_parser_for_statement): Initialize
15333 collection_expression.
15334
15335 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15336
15337 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15338
15339 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15340
15341 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15342 (LINK_SHLIB_SPEC): Don't use %(link_path).
15343 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15344
15345 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15346
15347 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15348 (NO_SHARED_LIB_SUPPORT): Remove.
15349 (LINK_SHLIB_SPEC): Remove one conditional definition.
15350
15351 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15352
15353 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15354 %{call_shared}.
15355 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15356 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15357 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15358 %{call_shared} and conditionals on these options not being passed.
15359 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15360 %{call_shared}.
15361
15362 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15363
15364 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15365 simplify.
15366
15367 * ipa-split.c: Spelling fixes.
15368
15369 2011-01-19 Richard Henderson <rth@redhat.com>
15370
15371 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15372 (*mulsi3): Likewise.
15373
15374 * longlong.h [__mn10300__] (count_leading_zeros): New.
15375 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15376 [__mn10300__] (add_ssaaaa, subddmmss): New.
15377 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15378 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15379
15380 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15381
15382 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15383
15384 2011-01-19 Richard Henderson <rth@redhat.com>
15385
15386 * config/mn10300/mn10300.md (addsi3_flags): New.
15387 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15388 (subsi3_flags, subc_internal, subdi3): New.
15389 (subdi3_internal, *subdi3_degenerate): New.
15390 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15391
15392 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15393 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15394 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15395 * config/mn10300/mn10300-protos.h: Update.
15396 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15397 (return_ret): Likewise. Rename from return_internal_regs.
15398 (return_internal): Remove.
15399
15400 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15401 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15402 (mn10300_legitimate_constant_p): Likewise.
15403 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15404 (mn10300_frame_size): New.
15405 (mn10300_expand_prologue): Use it.
15406 (mn10300_expand_epilogue): Likewise.
15407 (mn10300_initial_offset): Likewise.
15408 * config/mn10300/mn10300-protos.h: Update.
15409 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15410 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15411 (prologue, epilogue, return_internal): Tidy output code.
15412 (mn10300_store_multiple_operation, return): Likewise.
15413 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15414 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15415 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15416 (load_pic, am33_load_pic): New.
15417 (mn10300_load_pic0, mn10300_load_pic1): New.
15418
15419 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15420 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15421 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15422 (cc_flags_for_mode, cc_flags_for_code): New.
15423 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15424 overflow flag is not valid. Validate that the flags we need
15425 for the comparison are valid.
15426 (mn10300_output_cmp): Remove.
15427 (mn10300_output_add): New.
15428 (mn10300_select_cc_mode): Use cc_flags_for_code.
15429 (mn10300_split_cbranch): New.
15430 (mn10300_match_ccmode): New.
15431 (mn10300_split_and_operand_count): New.
15432 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15433 to the function.
15434 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15435 (addsi3): ... here. Use mn10300_output_add.
15436 (*addsi3_flags): New.
15437 (*am33_subsi3, *mn10300_subsi3): Merge...
15438 (subsi3): ... here. Use attribute isa.
15439 (*subsi3_flags): New.
15440 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15441 when possible.
15442 (*am33_andsi3, *mn10300_andsi3): Merge...
15443 (andsi3): ... here.
15444 (*andsi3_flags): New.
15445 (andsi3 splitters): New.
15446 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15447 (iorsi3): ... here.
15448 (*iorsi3_flags): New.
15449 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15450 (xorsi3): ... here.
15451 (*xorsi3_flags): New.
15452 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15453 (one_cmplsi2): ... here.
15454 (*one_cmplsi2_flags): New.
15455 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15456 instead of "dax" in constraints. Use mn10300_split_cbranch.
15457 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15458 use matching constraints to eliminate a self-comparison.
15459 (*integer_conditional_branch): Rename from integer_conditional_branch.
15460 Use int_mode_flags to match CC_REG.
15461 (*cbranchsi4_btst, *btstsi): New.
15462 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15463 mn10300_split_cbranch.
15464 (*am33_cmpsf): Rename from am33_cmpsf.
15465 (*float_conditional_branch): Rename from float_conditional_branch.
15466 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15467 (zero_extendqisi2): ... here.
15468 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15469 (zero_extendhisi2): ... here.
15470 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15471 (extendqisi2): ... here.
15472 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15473 (extendhisi2): ... here.
15474 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15475 (ashlsi3): ... here.
15476 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15477 (lshrsi3): ... here.
15478 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15479 (ashrsi3): ... here.
15480 (consecutive add peephole): Remove.
15481 * config/mn10300/predicates.md (label_ref_operand): New.
15482 (int_mode_flags): New.
15483 (CCZN_comparison_operator): New.
15484
15485 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15486 (throughput_42_latency_43): New reservation.
15487 (mulsidi3, umulsidi3): New expanders.
15488 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15489 the MDR register to allocation; separately allocate the low and
15490 high parts of the DImode result.
15491 (umulsidi3_internal): Similarly.
15492 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15493 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15494 (udivsi3, umodsi3): Remove.
15495 (udivmodsi4, divmodsi4): New expanders.
15496 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15497 (*divmodsi4): Simiarly.
15498 (ext_internal): New.
15499
15500 * config/mn10300/constraints.md ("z"): New constraint.
15501 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15502 (FIXED_REGISTERS): Don't fix MDR.
15503 (CALL_USED_REGSITERS): Reformat nicely.
15504 (REG_ALLOC_ORDER): Add MDR.
15505 (enum regclass): Add MDR_REGS.
15506 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15507 (IRA_COVER_CLASSES): Add MDR_REGS.
15508 (REGNO_REG_CLASS): Handle MDR_REG.
15509 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15510 (mn10300_register_move_cost): Likewise.
15511 * config/mn10300/mn10300.md (MDR_REG): New.
15512 (*movsi_internal): Handle moves to/from MDR_REGS.
15513
15514 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15515 POST_MODIFY.
15516 (mn10300_secondary_reload): Tidy combination reload classes.
15517 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15518 addresses for AM33. Allow symbolic offsets for reg+imm.
15519 (mn10300_regno_in_class_p): New.
15520 (mn10300_legitimize_reload_address): New.
15521 * config/mn10300/mn10300.h (enum reg_class): Remove
15522 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15523 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15524 SP_OR_GENERAL_REGS.
15525 (REG_CLASS_NAMES): Update to match.
15526 (REG_CLASS_CONTENTS): Likewise.
15527 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15528 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15529 (REGNO_IN_RANGE_P): Remove.
15530 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15531 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15532 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15533 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15534 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15535 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15536 (REGNO_GENERAL_P): New.
15537 (HAVE_POST_MODIFY_DISP): New.
15538 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15539 (LEGITIMIZE_RELOAD_ADDRESS): New.
15540 * config/mn10300/mn10300-protos.h: Update.
15541
15542 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15543 DATA_REGS for AM33 stack-pointer destination.
15544 (mn10300_preferred_output_reload_class): Likewise.
15545 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15546 into a form appropriate for ...
15547 (TARGET_SECONDARY_RELOAD): New.
15548 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15549 * config/mn10300/mn10300-protos.h: Update.
15550 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15551 reload_insi; use the "A" constraint for the scratch; handle AM33
15552 moves of sp to non-address registers.
15553
15554 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15555 (*movqi_internal): ... here.
15556 (*am33_movhi, *mn10300_movhi): Merge into...
15557 (*movhi_internal): ... here.
15558 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15559 as the source/destination of moves from/to SP.
15560 (movsf): Only allow for AM33-2.
15561 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15562 any integer constant constraint. Only allow for AM33-2. Tidy
15563 all of the alternative outputs.
15564 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15565 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15566 for MN103.
15567 (udivsi3, umodsi3): New patterns for MN103 only.
15568
15569 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15570
15571 * doc/tm.texi.in: Spell out that a lack of register class unions
15572 can lead to ICEs.
15573 * doc/tm.texi: Regenerate.
15574
15575 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15576
15577 PR rtl-optimization/47337
15578 * dce.c (check_argument_store): New function.
15579 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15580
15581 PR tree-optimization/47290
15582 * tree-eh.c (infinite_empty_loop_p): New function.
15583 (cleanup_empty_eh): Use it.
15584
15585 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15586
15587 PR target/46997
15588 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15589 (a64_expand_widen_sum): Ditto.
15590 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15591 (vec_extract_evenodd_help): Ditto.
15592 (vec_extract_evenv4hi): Ditto.
15593 (vec_extract_oddv4hi): Ditto.
15594 (vec_extract_evenv2si): Ditto.
15595 (vec_extract_oddv2si): Ditto.
15596 (vec_extract_evenv2sf): Ditto.
15597 (vec_extract_oddv2sf): Ditto.
15598 (vec_pack_trunc_v4hi: Ditto.
15599 (vec_pack_trunc_v2si): Ditto.
15600 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15601 (vec_interleave_highv8qi): Ditto.
15602 (mix1_r): Ditto.
15603 (vec_extract_oddv8qi): Ditto.
15604 (vec_interleave_lowv4hi): Ditto.
15605 (vec_interleave_highv4hi): Ditto.
15606 (vec_interleave_lowv2si): Ditto.
15607 (vec_interleave_highv2si): Ditto.
15608
15609 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15610
15611 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15612 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15613 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15614 (pa_c_mode_for_suffix): New.
15615 (TARGET_EXPAND_BUILTIN): Define.
15616 (TARGET_C_MODE_FOR_SUFFIX): Define.
15617 (pa_builtins): Define.
15618 (pa_init_builtins): Register __float128 type and init new support
15619 builtins.
15620 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15621 * config/pa/quadlib.c (_U_Qfcopysign): New.
15622
15623 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15624
15625 PR middle-end/46894
15626 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15627 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15628 are defined.
15629
15630 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15631
15632 PR tree-optimization/47179
15633 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15634 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15635
15636 2011-01-18 Richard Guenther <rguenther@suse.de>
15637
15638 PR rtl-optimization/47216
15639 * emit-rtl.c: Include tree-flow.h.
15640 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15641 of replicating it with different semantics.
15642 * Makefile.in (emit-rtl.o): Adjust.
15643
15644 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15645
15646 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15647 (cortex_a9_dp): Handle neon types correctly.
15648
15649 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15650
15651 PR rtl-optimization/47299
15652 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15653 subtarget. Use normal multiplication if both operands are constants.
15654 * expmed.c (expand_widening_mult): Don't try to optimize constant
15655 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15656 before using it.
15657
15658 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15659
15660 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15661 spacing after 'e.g.', typos, comma, hyphenation.
15662
15663 2011-01-17 Richard Henderson <rth@redhat.com>
15664
15665 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15666 (rx_restricted_mem_operand): New.
15667 (rx_shift_operand): Use register_operand.
15668 (rx_source_operand, rx_compare_operand): Likewise.
15669 * config/rx/rx.md (addsi3_flags): New expander.
15670 (adddi3): Rewrite as expander.
15671 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15672 (subsi3_flags): New expander.
15673 (subdi3): Rewrite as expander.
15674 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15675
15676 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15677 (rx_init_builtins): Remove sat builtin.
15678 (rx_expand_builtin): Likewise.
15679 * config/rx/rx.md (ssaddsi3): New.
15680 (*sat): Rename from sat. Represent the CC_REG input.
15681
15682 * config/rx/predicates.md (rshift_operator): New.
15683 * config/rx/rx.c (rx_expand_insv): Remove.
15684 * config/rx/rx-protos.h: Update.
15685 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15686 operand to the canonical position.
15687 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15688 (*bitclr, *bitclr_in_memory): Similarly.
15689 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15690 (insv): Retain the zero_extract in the expansion.
15691
15692 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15693 (bswaphi2, bitinvert, revw): Likewise.
15694
15695 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15696 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15697 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15698 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15699 (bitset, bitset_in_memory): Likewise.
15700 (bitinvert, bitinvert_in_memory): Likewise.
15701 (bitclr, bitclr_in_memory): Likewise.
15702 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15703 (rx_strend, rx_cmpstrn): Likewise.
15704 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15705 (bitop peep2 patterns): Remove.
15706
15707 * config/rx/rx.c (rx_match_ccmode): New.
15708 * config/rx/rx-protos.h: Update.
15709 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15710 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15711 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15712 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15713 (fix_truncsfsi2, floatsisf2): Likewise.
15714 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15715 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15716 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15717 (*subsi3_flags, *xorsi3_flags): New.
15718
15719 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15720
15721 * config/rx/rx.c (rx_print_operand): Remove workaround for
15722 unsplit comparison operations.
15723
15724 * config/rx/rx.md (movsicc): Split after reload.
15725 (*movsicc): Merge *movsieq and *movsine via match_operator.
15726 (*stcc): New pattern.
15727
15728 * config/rx/rx.c (rx_float_compare_mode): Remove.
15729 * config/rx/rx.h (rx_float_compare_mode): Remove.
15730 * config/rx/rx.md (cstoresi4): Split after reload.
15731 (*sccc): New pattern.
15732
15733 * config/rx/predicates.md (label_ref_operand): New.
15734 (rx_z_comparison_operator): New.
15735 (rx_zs_comparison_operator): New.
15736 (rx_fp_comparison_operator): New.
15737 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15738 Validate that the flags are set properly for the comparison.
15739 (rx_gen_cond_branch_template): Remove.
15740 (rx_cc_modes_compatible): Remove.
15741 (mode_from_flags): New.
15742 (flags_from_code): Rename from flags_needed_for_conditional.
15743 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15744 (rx_select_cc_mode): Likewise.
15745 (rx_split_fp_compare): New.
15746 (rx_split_cbranch): New.
15747 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15748 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15749 (*cbranchsf4): Similarly.
15750 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15751 match_operator and rx_split_cbranch.
15752 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15753 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15754 (*cmpsi): Rename from cmpsi.
15755 (*tstsi): Rename from tstsi.
15756 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15757 (*conditional_branch): Rename from conditional_branch.
15758 (*reveresed_conditional_branch): Remove.
15759 (b<code>): Remove expander.
15760 * config/rx/rx-protos.h: Update.
15761
15762 * config/rx/rx.c (rx_compare_redundant): Remove.
15763 * config/rx/rx.md (cmpsi): Don't use it.
15764 * config/rx/rx-protos.h: Update.
15765
15766 * config/rx/rx-modes.def (CC_F): New mode.
15767 * config/rx/rx.c (rx_select_cc_mode): New.
15768 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15769 * config/rx/rx-protos.h: Update.
15770
15771 2011-01-17 Richard Henderson <rth@redhat.com>
15772
15773 * except.c (dump_eh_tree): Fix stray ; after for statement.
15774
15775 2011-01-17 Richard Guenther <rguenther@suse.de>
15776
15777 PR tree-optimization/47313
15778 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15779 handling before copying the body. Properly deal with
15780 by-reference result in SSA form.
15781
15782 2011-01-17 Ian Lance Taylor <iant@google.com>
15783
15784 PR target/47219
15785 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15786 (struct_value_alias_set): Don't define.
15787 (sparc_option_override): Don't set sparc_sr_alias_set and
15788 struct_value_alias_set.
15789 (save_or_restore_regs): Use gen_frame_mem rather than calling
15790 set_mem_alias_set.
15791 (sparc_struct_value_rtx): Likewise.
15792
15793 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15794
15795 PR target/47318
15796 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15797 (_mm_maskstore_pd): Likewise.
15798 (_mm_maskload_ps): Likewise.
15799 (_mm_maskstore_ps): Likewise.
15800 (_mm256_maskload_pd): Change mask to __m256i.
15801 (_mm256_maskstore_pd): Likewise.
15802 (_mm256_maskload_ps): Likewise.
15803 (_mm256_maskstore_ps): Likewise.
15804
15805 * config/i386/i386-builtin-types.def: Updated.
15806 (ix86_expand_special_args_builtin): Likewise.
15807
15808 * config/i386/i386.c (bdesc_special_args): Update
15809 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15810 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15811 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15812 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15813
15814 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15815 Use <avxpermvecmode> on mask register.
15816 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15817
15818 2011-01-17 Olivier Hainque <hainque@adacore.com>
15819 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15820 Eric Botcazou <ebotcazou@adacore.com>
15821
15822 PR target/46655
15823 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15824 if <= USHRT_MAX in 32-bit mode.
15825
15826 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15827
15828 * doc/install.texi (Configuration, Specific): Wrap long
15829 lines in examples. Allow line wrapping in long options
15830 and URLs where beneficial for PDF output.
15831
15832 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15833
15834 * config/mips/mips.c (mips_classify_symbol): Don't return
15835 SYMBOL_PC_RELATIVE for nonlocal labels.
15836
15837 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15838
15839 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15840
15841 2011-01-15 Jan Hubicka <jh@suse.cz>
15842
15843 PR tree-optimization/47276
15844 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15845 declarations as needed.
15846
15847 2011-01-15 Martin Jambor <mjambor@suse.cz>
15848
15849 * common.opt (fdevirtualize): New flag.
15850 * doc/invoke.texi (Option Summary): Document it.
15851 * opts.c (default_options_table): Add devirtualize flag.
15852 * ipa-prop.c (detect_type_change): Return immediately if
15853 devirtualize flag is not set.
15854 (detect_type_change_ssa): Likewise.
15855 (compute_known_type_jump_func): Likewise.
15856 (ipa_analyze_virtual_call_uses): Likewise.
15857
15858 2011-01-14 Martin Jambor <mjambor@suse.cz>
15859
15860 PR tree-optimization/45934
15861 PR tree-optimization/46302
15862 * ipa-prop.c (type_change_info): New type.
15863 (stmt_may_be_vtbl_ptr_store): New function.
15864 (check_stmt_for_type_change): Likewise.
15865 (detect_type_change): Likewise.
15866 (detect_type_change_ssa): Likewise.
15867 (compute_complex_assign_jump_func): Check for dynamic type change.
15868 (compute_complex_ancestor_jump_func): Likewise.
15869 (compute_known_type_jump_func): Likewise.
15870 (compute_scalar_jump_functions): Likewise.
15871 (ipa_analyze_virtual_call_uses): Likewise.
15872 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15873
15874 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15875
15876 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15877 * config/i386/i386.opt (msse5): New Alias.
15878
15879 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15880
15881 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15882 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15883 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15884 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15885
15886 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15887
15888 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15889 -mcpu options.
15890 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15891 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15892 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15893 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15894 Likewise.
15895 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15896
15897 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15898
15899 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15900
15901 2011-01-14 Mike Stump <mikestump@comcast.net>
15902
15903 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15904 * config/fr30/fr30.md: Likweise
15905 (movsi_push): Likewise.
15906 (movsi_pop): Likewise.
15907 (enter_func): Likewise.
15908 * config/moxie/moxie.md (movsi_push): Likewise.
15909 (movsi_pop): Likewise.
15910
15911 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15912
15913 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15914 %{no_archive} %{exact_version}.
15915 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15916 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15917 %{no_archive} %{exact_version}.
15918 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15919 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15920 * config/mips/vxworks.h: Likewise.
15921
15922 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15923
15924 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15925
15926 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15927
15928 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15929 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15930
15931 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15932
15933 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15934 -nodefaultlib.
15935
15936 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15937
15938 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15939 for mcpu not cpu.
15940 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15941 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15942 not cpu.
15943 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15944 Don't handle -shlib.
15945
15946 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15947
15948 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15949 (CC1_SPEC): Don't handle -profile.
15950
15951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15952
15953 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15954 * config/mips/mips.h (CC1_SPEC): Likewise.
15955
15956 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15957
15958 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15959 * config/mips/mips.h (CC1_SPEC): Likewise.
15960
15961 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15962
15963 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15964 * config/m32r/linux.h (LINK_SPEC): Likewise.
15965 * config/mips/linux.h (LINK_SPEC): Likewise.
15966 * config/mips/linux64.h (LINK_SPEC): Likewise.
15967 * config/sparc/linux.h (LINK_SPEC): Likewise.
15968 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15969 LINK_SPEC): Likewise.
15970 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15971
15972 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15973
15974 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15975 %{version:-v}.
15976 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15977
15978 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15979
15980 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15981 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15982
15983 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15984
15985 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15986
15987 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15988
15989 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15990 supports -Bstatic/-Bdynamic.
15991 * configure: Regenerate.
15992
15993 2011-01-14 Jan Hubicka <jh@suse.cz>
15994 Jack Howarth <howarth@bromo.med.uc.edu>
15995
15996 PR target/46037
15997 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15998 when checking debug_info_level. Test write_symbols instead of
15999 debug_hooks->var_location when setting flag_var_tracking_uninit.
16000
16001 2011-01-14 Richard Guenther <rguenther@suse.de>
16002
16003 PR tree-optimization/47179
16004 * target.def (ref_may_alias_errno): New target hook.
16005 * targhooks.h (default_ref_may_alias_errno): Declare.
16006 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16007 (default_ref_may_alias_errno): New function.
16008 * target.h (struct ao_ref_s): Declare.
16009 * tree-ssa-alias.c: Include target.h.
16010 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16011 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16012 (targhooks.o): Likewise.
16013 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16014 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16015
16016 2011-01-14 Richard Guenther <rguenther@suse.de>
16017
16018 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16019
16020 2011-01-14 Richard Guenther <rguenther@suse.de>
16021
16022 PR tree-optimization/47280
16023 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16024 return CFG changes.
16025 (tree_ssa_forward_propagate_single_use_vars): Deal with
16026 CFG changes from associate_plusminus.
16027
16028 2011-01-14 Richard Guenther <rguenther@suse.de>
16029
16030 PR middle-end/47281
16031 Revert
16032 2011-01-11 Richard Guenther <rguenther@suse.de>
16033
16034 PR tree-optimization/46076
16035 * tree-ssa.c (useless_type_conversion_p): Conversions from
16036 unprototyped to empty argument list function types are useless.
16037
16038 2011-01-14 Richard Guenther <rguenther@suse.de>
16039
16040 PR tree-optimization/47286
16041 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16042
16043 2011-01-14 Martin Jambor <mjambor@suse.cz>
16044
16045 PR middle-end/46823
16046 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16047
16048 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16049
16050 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16051 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16052 * config/xtensa/xtensa.c (xtensa_libcall_value,
16053 xtensa_function_value_regno_p): New functions.
16054 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16055
16056 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16057
16058 PR c++/47213
16059 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16060 PE specific hook.
16061 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16062 New function prototype.
16063 * config/i386/winnt.c (i386_pe_assemble_visibility):
16064 Warn only if attribute was specified by user.
16065
16066 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16067
16068 PR target/47251
16069 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16070 floating point.
16071 (floatunsdidf2_fcfidu): Ditto.
16072
16073 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16074
16075 * config/s390/s390.c (print_operand_address): Replace 'error' with
16076 'output_operand_lossage'.
16077 (print_operand): Likewise.
16078
16079 2011-01-13 Jeff Law <law@redhat.com>
16080
16081 PR rtl-optimization/39077
16082 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16083 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16084 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16085 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16086 * gcse.c (prune_insertions_deletions): New function.
16087 (compute_pre_data): Use it.
16088
16089 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16090
16091 PR debug/PR46973
16092 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16093 static function.
16094 (prune_unused_types_mark): Use it.
16095
16096 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16097
16098 PR rtl-optimization/45352
16099 * sel-sched.c: Update copyright years.
16100 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16101 in the advancing loop when we have issued issue_rate insns.
16102
16103 2011-01-12 Richard Henderson <rth@redhat.com>
16104
16105 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16106 (TARGET_MD_ASM_CLOBBERS): New.
16107
16108 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16109 (TARGET_DELEGITIMIZE_ADDRESS): New.
16110
16111 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16112 (clzsi2, *bsch): New patterns.
16113
16114 * config/mn10300/mn10300.md (INT): New mode iterator.
16115 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16116
16117 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16118 flag_split_wide_types.
16119
16120 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16121 (mn10300_trampoline_init): Rewrite without a template, an immediate
16122 load and a direct branch.
16123 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16124
16125 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16126
16127 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16128 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16129 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16130 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16131
16132 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16133
16134 PR debug/47209
16135 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16136 of type.
16137
16138 2011-01-12 Jan Hubicka <jh@suse.cz>
16139
16140 PR driver/47244
16141 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16142 (PLUGIN_COND_CLOSE): New macro.
16143 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16144
16145 2011-01-12 Richard Guenther <rguenther@suse.de>
16146
16147 PR lto/47259
16148 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16149 register variables in a MEM_REF.
16150
16151 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16152
16153 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16154 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16155 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16156 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16157 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16158 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16159 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16160 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16161 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16162 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16163 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16164 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16165 * config/gnu-user.h: New. Copied from linux.h.
16166 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16167 GNU_USER_TARGET_STARTFILE_SPEC.
16168 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16169 GNU_USER_TARGET_ENDFILE_SPEC.
16170 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16171 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16172 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16173 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16174 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16175 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16176 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16177 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16178 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16179 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16180 * config/arm/linux-eabi.h (CC1_SPEC): Use
16181 GNU_USER_TARGET_CC1_SPEC.
16182 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16183 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16184 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16185 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16186 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16187 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16188 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16189 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16190
16191 2011-01-12 Richard Guenther <rguenther@suse.de>
16192
16193 PR other/46946
16194 * doc/invoke.texi (ffast-math): Document it is turned on
16195 with -Ofast.
16196
16197 2011-01-12 Jan Hubicka <jh@suse.cz>
16198
16199 PR tree-optimization/47233
16200 * opts.c (common_handle_option): Disable ipa-reference with profile
16201 feedback.
16202
16203 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16204
16205 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16206 error message.
16207
16208 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16209
16210 * c-parser.c (c_lex_one_token): Updated and reindented some
16211 comments. No changes in code.
16212
16213 2011-01-11 Ian Lance Taylor <iant@google.com>
16214
16215 * godump.c (go_output_var): Don't output the variable if there is
16216 already a type with the same name.
16217
16218 2011-01-11 Ian Lance Taylor <iant@google.com>
16219
16220 * godump.c (go_format_type): Don't generate float80.
16221
16222 2011-01-11 Richard Henderson <rth@redhat.com>
16223
16224 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16225 declaration. Rewrite for both speed and size.
16226 (mn10300_address_cost_1): Remove.
16227 (mn10300_register_move_cost): New.
16228 (mn10300_memory_move_cost): New.
16229 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16230 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16231 extensions, shifts, BSWAP, CLZ.
16232 (mn10300_wide_const_load_uses_clr): Remove.
16233 (TARGET_REGISTER_MOVE_COST): New.
16234 (TARGET_MEMORY_MOVE_COST): New.
16235 * config/mn10300/mn10300-protos.h: Update.
16236 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16237
16238 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16239 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16240 * config/mn10300/mn10300-protos.h: Update.
16241 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16242 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16243 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16244 (*test_int_bitfield, *test_byte_bitfield): Remove.
16245 (*bit_test, *subreg_bit_test): Remove.
16246 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16247
16248 * config/mn10300/constraints.md ("c"): Rename from "A".
16249 ("A", "D"): New constraint letters.
16250 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16251 (fmssf4, fnmasf4, fnmssf4): Likewise.
16252
16253 * config/mn10300/mn10300.md (isa): New attribute.
16254 (enabled): New attribute.
16255
16256 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16257 (abssf2, negsf2): Define only for hardware fp.
16258 (sqrtsf2): Reformat.
16259 (addsf3, subsf3, mulsf3): Merge expander and insn.
16260
16261 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16262 (DEBUGGER_AUTO_OFFSET): Remove.
16263 (DEBUGGER_ARG_OFFSET): Remove.
16264
16265 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16266 Emit register stores with the same offsets as the hardware.
16267 (mn10300_store_multiple_operation): Don't check that the register
16268 save offsets are monotonic.
16269 * config/mn10300/mn10300-protos.h: Update.
16270
16271 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16272
16273 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16274 in terms of the value on the stack, not the MDR register.
16275
16276 2011-01-11 Jan Hubicka <jh@suse.cz>
16277
16278 PR lto/45721
16279 PR lto/45375
16280 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16281 (symbol_alias_set_destroy, symbol_alias_set_contains,
16282 propagate_aliases_backward): Declare.
16283 * lto-streamer-out.c (struct sets): New sturcture.
16284 (trivally_defined_alias): New function.
16285 (output_alias_pair_p): Rewrite.
16286 (output_unreferenced_globals): Fix output of alias pairs.
16287 (produce_symtab): Likewise.
16288 * ipa.c (function_and_variable_visibility): Set weak alias destination
16289 as needed in lto.
16290 * varasm.c (symbol_alias_set_t): Remove.
16291 (symbol_alias_set_destroy): Export.
16292 (propagate_aliases_forward, propagate_aliases_backward): New functions
16293 based on ...
16294 (compute_visible_aliases): ... this one; remove.
16295 (trivially_visible_alias): New
16296 (trivially_defined_alias): New.
16297 (remove_unreachable_alias_pairs): Rewrite.
16298 (finish_aliases_1): Reorganize code checking if alias is defined.
16299 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16300 in LTO mode.
16301
16302 2011-01-11 Richard Guenther <rguenther@suse.de>
16303
16304 PR tree-optimization/46076
16305 * tree-ssa.c (useless_type_conversion_p): Conversions from
16306 unprototyped to empty argument list function types are useless.
16307
16308 2011-01-11 Richard Guenther <rguenther@suse.de>
16309
16310 PR middle-end/45235
16311 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16312 volatile MEMs as MEM_READONLY_P.
16313
16314 2011-01-11 Richard Guenther <rguenther@suse.de>
16315
16316 PR tree-optimization/47239
16317 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16318
16319 2011-01-11 Jeff Law <law@redhat.com>
16320
16321 PR tree-optimization/47086
16322 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16323 IVs from statements that might throw.
16324
16325 2011-01-10 Jan Hubicka <jh@suse.cz>
16326
16327 PR lto/45375
16328 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16329
16330 2011-01-10 Jan Hubicka <jh@suse.cz>
16331
16332 PR lto/45375
16333 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16334 when correcting profile.
16335
16336 2011-01-10 Jan Hubicka <jh@suse.cz>
16337
16338 PR lto/46083
16339 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16340 DECL_FINI_PRIORITY.
16341 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16342 Restore DECL_FINI_PRIORITY.
16343
16344 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16345
16346 * doc/gimple.texi: Fix quoting of multi-word return values in
16347 @deftypefn statements. Ensure presence of return value. Wrap
16348 overlong @deftypefn lines.
16349 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16350 descriptions of removed functions.
16351 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16352 of multi-word return value in @deftypefn statement.
16353
16354 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16355
16356 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16357 (Conditional Expressions, Logical Operators)
16358 (Statement and operand traversals): Do not indent smallexample
16359 code. Fix duplicate function argument in example.
16360
16361 2011-01-10 Jeff Law <law@redhat.com>
16362
16363 PR tree-optimization/47141
16364 * ipa-split.c (split_function): Handle case where we are
16365 returning a value and the return block has a virtual operand phi.
16366
16367 2011-01-10 Jan Hubicka <jh@suse.cz>
16368
16369 PR tree-optimization/47234
16370 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16371 (pass_feedback_split_functions): Declare.
16372 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16373 tree-profile.
16374 * ipa-split.c (gate_split_functions): Update comments; disable
16375 split-functions for profile_arc_flag and branch_probabilities.
16376 (gate_feedback_split_functions): New function.
16377 (execute_feedback_split_functions): New function.
16378 (pass_feedback_split_functions): New global var.
16379
16380 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16381
16382 PR lto/46760
16383 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16384 calling gimple_call_set_cannot_inline.
16385
16386 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16387
16388 * config/darwin-sections.def: Remove unused section.
16389
16390 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16391
16392 PR c++/47218
16393 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16394
16395 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16396
16397 PR objc/47232
16398 * c-parser.c (c_parser_declaration_or_fndef): Improved
16399 error message.
16400
16401 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16402
16403 * config/i386/winnt.c (i386_pe_start_function): Make sure
16404 to switch back to function's section.
16405
16406 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16407
16408 PR gcc/46902
16409 PR testsuite/46912
16410 * plugin.c: Move include of dlfcn.h from here...
16411 * system.h: ... to here.
16412
16413 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16414
16415 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16416 file name.
16417 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16418 two extra empty pages in PDF output.
16419
16420 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16421
16422 PR objc/47078
16423 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16424 for error recovery purposes behave as if it was not specified so
16425 that the default type is usd.
16426
16427 2011-01-07 Jan Hubicka <jh@suse.cz>
16428
16429 PR tree-optmization/46469
16430 * ipa.c (function_and_variable_visibility): Clear needed flags on
16431 nodes with external decls; handle weakrefs merging correctly.
16432
16433 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16434
16435 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16436 not false.
16437
16438 2011-01-07 Jan Hubicka <jh@suse.cz>
16439
16440 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16441 and no longer claim that gold is required for linker plugin.
16442 * configure: Regenerate.
16443 * gcc.c (PLUGIN_COND): New macro.
16444 (LINK_COMMAND_SPEC): Use it.
16445 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16446 * config.in (HAVE_LTO_PLUGIN): New.
16447 * configure.ac (--with-lto-plugin): New parameter; autodetect
16448 HAVE_LTO_PLUGIN.
16449
16450 2011-01-07 Jan Hubicka <jh@suse.cz>
16451
16452 PR tree-optimization/46367
16453 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16454 when we can update original.
16455 (cgraph_mark_inline_edge): Sanity check.
16456 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16457
16458 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16459
16460 * config/spu/spu.h (ASM_COMMENT_START): Define.
16461
16462 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16463
16464 PR driver/42445
16465 * gcc.c (%>S): New.
16466 (SWITCH_KEEP_FOR_GCC): Likewise.
16467 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16468 (do_spec_1): Handle "%>".
16469
16470 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16471
16472 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16473
16474 PR target/47201
16475 * config/i386/i386.c (ix86_delegitimize_address): If
16476 simplify_gen_subreg fails, return orig_x.
16477
16478 PR bootstrap/47187
16479 * value-prof.c (gimple_stringop_fixed_value): Handle
16480 lhs of the call properly.
16481
16482 2011-01-07 Jan Hubicka <jh@suse.cz>
16483
16484 PR lto/45375
16485 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16486
16487 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16488
16489 * target.def (function_switched_text_sections): New hook.
16490 * doc/tm.texi: Regenerated.
16491 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16492 * final.c (default_function_switched_text_sections): New.
16493 (final_scan_insn): Call function_switched_text_sections when a
16494 mid-function section change occurs.
16495 * output.h (default_function_switched_text_sections): Declare.
16496 * config/darwin-protos.h (darwin_function_switched_text_sections):
16497 Likewise.
16498 * config/darwin.c (darwin_function_switched_text_sections): New.
16499 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16500
16501 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16502
16503 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16504 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16505 the secondary code fragment when outputting for DWARF == 2.
16506
16507 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16508
16509 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16510 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16511 Remove.
16512 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16513 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16514
16515 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16516
16517 PR debug/46704
16518 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16519 when it is not empty.
16520
16521 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16522
16523 Bobcat Enablement
16524 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16525 (case ${target}): Add btver1.
16526 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16527 -march=native recognize btver1 processors.
16528 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16529 btver1 def_and_undef
16530 * config/i386/i386.c (struct processor_costs btver1_cost): New
16531 btver1 cost table.
16532 (m_BTVER1): New definition.
16533 (m_AMD_MULTIPLE): Includes m_BTVER1.
16534 (initial_ix86_tune_features): Add btver1 tune.
16535 (processor_target_table): Add btver1 entry.
16536 (static const char *const cpu_names): Add btver1 entry.
16537 (software_prefetching_beneficial_p): Add btver1.
16538 (ix86_option_override_internal): Add btver1 instruction sets.
16539 (ix86_issue_rate): Add btver1.
16540 (ix86_adjust_cost): Add btver1.
16541 * config/i386/i386.h (TARGET_BTVER1): New definition.
16542 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16543 (enum processor_type): Add PROCESSOR_BTVER1.
16544 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16545
16546 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16547
16548 PR target/43309
16549 * config/i386/i386.c (legitimize_tls_address)
16550 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16551 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16552 (tls_initial_exec_64_sun): New pattern.
16553
16554 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16555
16556 * doc/invoke.texi (Overall Options): Improve wording and markup
16557 of the description of -wrapper.
16558
16559 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16560
16561 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16562 rdynamic, threads): New Driver options.
16563
16564 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16565
16566 PR target/38118
16567 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16568 if coming from .tdata.
16569 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16570
16571 2011-01-06 Jan Hubicka <jh@suse.cz>
16572
16573 PR lto/47188
16574 * collect2.c (main): Do not enable LTOmode when plugin is active.
16575
16576 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16577
16578 PR other/45915
16579 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16580 --version output if supported.
16581 * configure: Regenerate.
16582
16583 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16584
16585 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16586 Driver options.
16587
16588 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16589
16590 PR c/47150
16591 * c-convert.c (convert): When converting a complex expression
16592 other than COMPLEX_EXPR to a different complex type, ensure
16593 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16594 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16595 when converting COMPLEX_TYPE.
16596
16597 2011-01-06 Ira Rosen <irar@il.ibm.com>
16598
16599 PR tree-optimization/47139
16600 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16601 only the last reduction value is used outside the loop. Update
16602 documentation.
16603
16604 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16605
16606 * config/rtems.opt: New.
16607 * config.gcc (*-*-rtems*): Use rtems.opt.
16608
16609 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16610
16611 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16612 processors do not support 3DNow instructions.
16613
16614 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16615
16616 * config/spu/spu.c (spu_option_override): Set parameter
16617 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16618
16619 2011-01-05 Jan Hubicka <jh@suse.cz>
16620
16621 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16622 at the command line.
16623
16624 2011-01-05 Martin Jambor <mjambor@suse.cz>
16625
16626 PR lto/47162
16627 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16628 deltas on streamed outgoing edges.
16629 (output_node_opt_summary): Output info for outgoing edges only when
16630 the node is in new parameter set.
16631 (output_cgraph_opt_summary): New parameter set, passed to the two
16632 aforementioned functions. Update its forward declaration and its
16633 callee too.
16634
16635 2011-01-05 Tom Tromey <tromey@redhat.com>
16636
16637 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16638 operator to c_finish_omp_atomic.
16639 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16640 (build_unary_op): Update.
16641 (build_modify_expr): Update.
16642 (build_asm_expr): Update.
16643
16644 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16645
16646 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16647 newly inserted insns.
16648 (pad_bb): Likewise.
16649 (spu_emit_branch_hint): Likewise.
16650 (insert_hbrp_for_ilb_runout): Likewise.
16651 (spu_machine_dependent_reorg): Call df_finish_pass after
16652 schedule_insns returns.
16653
16654 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16655
16656 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16657
16658 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16659
16660 PR tree-optimization/47005
16661 * tree-sra.c (struct access): Add 'non_addressable' bit.
16662 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16663 (decide_one_param_reduction): Return 0 if the parameter is passed by
16664 reference and one of the accesses in the group is non_addressable.
16665
16666 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16667
16668 PR tree-optimization/47056
16669 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16670 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16671 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16672
16673 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16674
16675 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16676 initializer. Skip view conversions from aggregate types.
16677
16678 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16679
16680 PR bootstrap/47055
16681 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16682
16683 2011-01-04 Philipp Thomas <pth@suse.de>
16684
16685 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16686 obvious typo.
16687
16688 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16689
16690 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16691 on empty epilogue sequences.
16692
16693 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16694
16695 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16696 non-static): New Driver options.
16697
16698 2011-01-04 Jie Zhang <jie@codesourcery.com>
16699
16700 PR driver/47137
16701 * gcc.c (default_compilers[]): Set combinable field to 0
16702 for all assembly languages.
16703
16704 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16705
16706 * config/mips/loongson3a.md: New file.
16707 * config/mips/mips.md: Include loongson3a.md.
16708 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16709 TUNE_LOONGSON_3A.
16710
16711 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16712
16713 PR middle-end/47017
16714 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16715 instead of convert_memory_address_addr_space on the base expression.
16716
16717 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16718
16719 * config/spu/spu.c (spu_option_override): Update error text
16720 for bad -march= / -mtune= values.
16721
16722 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16723
16724 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16725 if branch-hint optimization will be performed.
16726
16727 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16728
16729 PR tree-optimization/47148
16730 * ipa-split.c (split_function): Convert arguments to
16731 DECL_ARG_TYPE if possible.
16732
16733 PR tree-optimization/47155
16734 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16735 when computing uns.
16736
16737 PR rtl-optimization/47157
16738 * combine.c (try_combine): If undobuf.other_insn becomes
16739 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16740 and set *new_direct_jump_p too.
16741
16742 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16743
16744 PR tree-optimization/47021
16745 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16746
16747 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16748
16749 * gcc.c (process_command): Update copyright notice dates.
16750 * gcov.c (print_version): Likewise.
16751 * gcov-dump.c (print_version): Likewise.
16752 * mips-tfile.c (main): Likewise.
16753 * mips-tdump.c (main): Likewise.
16754
16755 2011-01-03 Martin Jambor <mjambor@suse.cz>
16756
16757 PR tree-optimization/46801
16758 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16759 aggregate fields start at byte boundary instead of the bit-field flag.
16760
16761 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16762
16763 PR driver/47137
16764 * gcc.c (main): Revert revision 168407.
16765
16766 2011-01-03 Martin Jambor <mjambor@suse.cz>
16767
16768 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16769
16770 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16771
16772 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16773 vector optab to expand vector/scalar shift, update gimple to vector.
16774
16775 2011-01-03 Martin Jambor <mjambor@suse.cz>
16776
16777 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16778 a thunk.
16779
16780 2011-01-03 Martin Jambor <mjambor@suse.cz>
16781
16782 PR tree-optimization/46984
16783 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16784 HOST_WIDE_INT.
16785 (cgraph_create_indirect_edge): Fixed line length.
16786 (cgraph_indirect_call_info): Declare.
16787 (cgraph_make_edge_direct) Update declaration.
16788 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16789 (cgraph_create_indirect_edge): Use it.
16790 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16791 callees.
16792 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16793 the new thunk_delta representation.
16794 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16795 HOST_WIDE_INT.
16796 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16797 (ipa_read_indirect_edge_info): Likewise.
16798 * lto-cgraph.c (output_edge_opt_summary): New function.
16799 (output_node_opt_summary): Call it on all outgoing edges.
16800 (input_edge_opt_summary): New function.
16801 (input_node_opt_summary): Call it on all outgoing edges.
16802
16803 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16804
16805 PR driver/47137
16806 * gcc.c (main): Don't check have_o when settting combine_inputs.
16807
16808 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16809
16810 * regrename.c: Add general comment describing the pass.
16811 (struct du_head): Remove 'length' field.
16812 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16813 (regrename_optimize): Do not sort chains. Rework comments, add others.
16814 Force renaming to the preferred class (if any) in the first pass and do
16815 not consider registers that belong to it in the second pass.
16816 (create_new_chain): Do not set 'length' field.
16817 (scan_rtx_reg): Likewise.
16818
16819 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16820
16821 PR tree-optimization/47140
16822 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16823 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16824 to bit_value_binop.
16825
16826 PR rtl-optimization/47028
16827 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16828 parm_birth_insn instead of at the beginning of first bb.
16829
16830 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16831
16832 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16833 Remove the word "see" before "@pxref".
16834 * doc/rtl.texi: Remove the word "see" before "@pxref".
16835
16836 2011-01-01 Jan Hubicka <jh@suse.cz>
16837
16838 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16839 memory.
16840
16841 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16842
16843 PR target/38662
16844 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16845
16846 \f
16847 Copyright (C) 2011 Free Software Foundation, Inc.
16848
16849 Copying and distribution of this file, with or without modification,
16850 are permitted in any medium without royalty provided the copyright
16851 notice and this notice are preserved.