longlong.h (smul_ppmm): The resulting register pair contains the higher order word...
[gcc.git] / gcc / ChangeLog
1 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2
3 * longlong.h (smul_ppmm): The resulting register pair contains the
4 higher order word first.
5
6 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7
8 PR tree-optimization/46728
9 * builtins.c (powi_table): Remove.
10 (powi_lookup_cost): Remove.
11 (powi_cost): Remove.
12 (expand_powi_1): Remove.
13 (expand_powi): Remove.
14 (expand_builtin_pow_root): Remove.
15 (expand_builtin_pow): Remove.
16 (expand_builtin_powi): Eliminate handling of constant exponent.
17 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
18
19 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
20
21 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
22
23 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
24
25 * dce.c (reset_unmarked_insns_debug_uses): New.
26 (delete_unmarked_insns): Skip debug insns.
27 (prescan_insns_for_dce): Likewise.
28 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
29 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
30 active reg can be found.
31 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
32 (convert_regs_1): Use it.
33
34 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
35
36 * tree-pretty-print.c (dump_function_header): Add flags.
37 Don't dump decl_uid with nouid.
38 * tree-pretty-print.h (dump_function_header): Adjust.
39 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
40 * passes.c (pass_init_dump_file): Pass dump_flags on.
41 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
42
43 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
44
45 PR bootstrap/49270
46 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
47
48 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
49
50 PR tree-optimization/49243
51 * calls.c (setjmp_call_p): Also check if fndecl has the
52 returns_twice attribute.
53
54 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
55
56 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
57 -ffast-math etc.
58
59 2011-06-06 Richard Henderson <rth@redhat.com>
60 Georg-Johann Lay <avr@gjlay.de>
61
62 PR target/42210
63 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
64 New predicates.
65 * config/avr/avr.md ("insv"): New insn expander.
66 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
67 "*insv.not.io", "*insv.reg"): New insns.
68
69 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
70
71 PR target/49285
72 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
73 predicate to nonimmediate_operand from memory_operand for the
74 operand that is to be forced to memory by the expander. Lose
75 the constraints.
76
77 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
78
79 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
80 EH return when delayed branches are disabled.
81
82 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
83
84 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
85 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
86 calculation.
87 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
88 Simplify MODE_V1DF and MODE_V2SF handling.
89 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
90 Simplify MODE_SF handling.
91
92 2011-06-04 Jan Hubicka <jh@suse.cz>
93
94 PR tree-optimization/48893
95 PR tree-optimization/49091
96 PR tree-optimization/49179
97 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
98 Bounds check.
99
100 2011-06-04 Jan Hubicka <jh@suse.cz>
101
102 PR lto/48954
103 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
104
105 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
106
107 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
108
109 2011-06-04 Jakub Jelinek <jakub@redhat.com>
110
111 PR target/49281
112 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
113 to be strictly smaller than 1 << shiftcount.
114
115 2011-06-04 Jan Hubicka <jh@suse.cz>
116
117 PR tree-optimize/48929
118 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
119 of empty predicate.
120
121 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
122
123 PR debug/48333
124 * calls.c (emit_call_1): Prefer the __builtin declaration of
125 builtin functions.
126
127 2011-06-03 Diego Novillo <dnovillo@google.com>
128
129 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
130 (lto_input_tree_pointers): Likewise.
131 * lto-streamer-out.c (pack_value_fields): Likewise.
132 (lto_output_tree_pointers): Likewise.
133 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
134 and OPTIMIZATION_NODE.
135
136 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137
138 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
139 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
140 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
141 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
142 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
143 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
144 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
145 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
146 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
147 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
148 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
149 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
150 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
151 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
152 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
153 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
154 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
155 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
156 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
157 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
158 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
159 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
160 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
161 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
162 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
163 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
164 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
165 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
166 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
167 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
168 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
169 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
170 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
171 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
172 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
173 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
174 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
175 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
176 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
177 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
178 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
179 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
180 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
181 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
182 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
183 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
184 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
185 * system.h (MD_UNWIND_SUPPORT): Poison.
186 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
187 * doc/tm.texi: Regenerate.
188 * unwind-dw2.c: Include md-unwind-support.h instead of
189 MD_UNWIND_SUPPORT.
190 * config/ia64/unwind-ia64.c: Likewise.
191 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
192
193 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
194
195 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
196
197 2011-06-03 Richard Henderson <rth@redhat.com>
198 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
199
200 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
201 (sigill_hdlr): Correct insn, insn size.
202 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
203
204 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
205
206 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
207 t-slibgcc-dummy.
208 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
209 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
210 * config/mips/t-iris: Remove.
211 * config/mips/t-irix6: New file.
212 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
213
214 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215
216 * Makefile.in (LIB2ADDEHDEP): Remove.
217 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
218 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
219 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
220 * config/t-darwin (LIB2ADDEHDEP): Remove.
221 * config/t-freebsd (LIB2ADDEHDEP): Remove.
222 * config/t-linux (LIB2ADDEHDEP): Remove.
223
224 2011-06-03 Diego Novillo <dnovillo@google.com>
225
226 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
227 (lto_register_var_decl_in_symtab): Likewise.
228 (lto_register_function_decl_in_symtab): Likewise.
229 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
230 logic to uniquify_nodes.
231
232 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
233
234 * config/alpha/t-osf5: Remove.
235 * config/alpha/t-osf-pthread: Remove.
236 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
237 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
238
239 2011-06-03 Julian Brown <julian@codesourcery.com>
240
241 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
242 (strongarm1110): Use strongarm tuning.
243 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
244 * config/arm/arm.c (arm_strongarm_tune): New.
245 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
246 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
247 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
248 setting, using previous defaults or 1 for Cortex-A5.
249 (arm_option_override): Set max_insns_skipped from current tuning.
250
251 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
252
253 * doc/install.texi (Options specification): Document --with-specs.
254
255 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
256
257 * config/arm/neon.md (orndi3_neon): Actually split it.
258
259 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
260
261 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
262 * var-tracking.c (reverse_op): Limite recurse depth to 5.
263
264 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
265
266 PR debug/47590
267 * target.def (delay_sched2, delay_vartrack): New.
268 * doc/tm.texi.in: Update.
269 * doc/tm.texi: Rebuild.
270 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
271 * var-tracking.c (gate_handle_var_tracking): Likewise.
272 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
273 (bfin_flag_var_tracking): Drop.
274 (output_file_start): Don't save and override flag_var_tracking.
275 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
276 (bfin_reorg): Test original variables.
277 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
278 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
279 (ia64_flag_var_tracking): Drop.
280 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
281 (ia64_file_start): Don't save and override flag_var_tracking.
282 (ia64_override_options_after_change): Ditto
283 flag_schedule_insns_after_reload.
284 (ia64_reorg): Test original variables.
285 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
286 (picochip_flag_var_tracking): Drop.
287 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
288 (picochip_option_override): Don't save and override
289 flag_schedule_insns_after_reload.
290 (picochip_asm_file_start): Ditto flag_var_tracking.
291 (picochip_reorg): Test original variables.
292 * config/spu/spu.c (spu_flag_var_tracking): Drop.
293 (TARGET_DELAY_VARTRACK): Define.
294 (spu_var_tracking): New.
295 (spu_machine_dependent_reorg): Call it.
296 (asm_file_start): Don't save and override flag_var_tracking.
297
298 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
299
300 PR target/49163
301 * config/sh/predicates.md (general_movsrc_operand): Return 0
302 for memory and memory subreg of which address is an invalid
303 indexed address for QI and HImode.
304 (general_movdst_operand): Likewise.
305
306 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
307
308 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
309 edges only, when there is a non-local label in the function.
310 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
311
312 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
313
314 * config/i386/constraints.md (Y3): New register constraint.
315 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
316 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
317 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
318 *sse2_interleave_lowv2df.
319
320 2011-06-02 Julian Brown <julian@codesourcery.com>
321
322 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
323 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
324 (arm_cortex_a5_tune): New.
325
326 2011-06-02 Julian Brown <julian@codesourcery.com>
327
328 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
329 * config/arm/arm.c (arm_default_branch_cost): New.
330 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
331 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
332 (arm_fa726_tune): Set branch_cost field using
333 arm_default_branch_cost.
334 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
335 current_tune structure.
336 * dojump.c (tm_p.h): Include file.
337
338 2011-06-02 Julian Brown <julian@codesourcery.com>
339
340 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
341 tuning.
342 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
343 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
344 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
345 field.
346 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
347 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
348 (arm_fa726te_tune): Add prefer_constant_pool setting.
349 (arm_v6t2_tune, arm_cortex_tune): New.
350 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
351 prefer_constant_pool setting.
352
353 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
354
355 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
356 switch statement.
357 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
358 (*movdf_internal) <case 6,7,8>: Ditto.
359
360 * config/i386/constraints.md (Y4): New register constraint.
361 * config/i386/sse.md (vec_set<mode>_0): Merge with
362 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
363 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
364 *vec_extractv2di_1_sse.
365 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
366 and *vec_concatv2di_rex64_sse.
367
368 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
369
370 PR target/48807
371 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
372 of cgraph_local_info for null before attempting to use it.
373
374 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
375
376 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
377 (current_function_dynamic_alloc_count): Delete.
378 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
379 (expand_builtin_nonlocal_goto): Remove obsolete comment.
380 (expand_builtin_update_setjmp_buf): Remove dead code.
381 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
382 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
383 support.
384 * function.c (instantiate_virtual_regs): Likewise.
385 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
386 for a block with a single abnormal incoming edge.
387 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
388 (SETJMP_VIA_SAVE_AREA): Delete.
389 * config/sparc/sparc-protos.h (load_got_register): Declare.
390 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
391 (load_got_register): Make global.
392 (sparc_frame_pointer_required): Add 'static'.
393 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
394 (sparc_builtin_setjmp_frame_value): New function.
395 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
396 (save_stack_nonlocal): New expander.
397 (restore_stack_nonlocal): Likewise.
398 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
399 (nonlocal_goto_internal): New insn.
400 (goto_handler_and_restore): Delete.
401 (builtin_setjmp_setup): Likewise.
402 (do_builtin_setjmp_setup): Likewise.
403 (setjmp): Likewise.
404 (builtin_setjmp_receiver): New expander.
405
406 2011-06-01 David Li <davidxl@google.com>
407
408 PR middle-end/49261
409 * tree-pretty-print.c (dump_function_header): Format cleanup.
410
411 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
412
413 PR target/49238
414 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
415 needed when original operands are used for msw_skip comparison.
416
417 2011-06-01 Jakub Jelinek <jakub@redhat.com>
418
419 PR debug/49250
420 * var-tracking.c (add_uses, add_stores): Don't call
421 cselib_subst_to_values on ENTRY_VALUE.
422
423 2011-06-01 Diego Novillo <dnovillo@google.com>
424
425 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
426 output_record_start with LTO_null instead of output_zero.
427 (lto_output_ts_binfo_tree_pointers): Likewise.
428 (lto_output_tree): Likewise.
429 (output_eh_try_list): Likewise.
430 (output_eh_region): Likewise.
431 (output_eh_lp): Likewise.
432 (output_eh_regions): Likewise.
433 (output_bb): Likewise.
434 (output_function): Likewise.
435 (output_unreferenced_globals): Likewise.
436 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
437 instead of NUM_TREE_CODES.
438 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
439 (lto_output_int_in_range): Change << to >> when shifting VAL.
440
441 2011-06-01 Diego Novillo <dnovillo@google.com>
442
443 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
444 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
445
446 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
447
448 PR target/45074
449 * optabs.h (valid_multiword_target_p): Declare.
450 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
451 doing multi-word operations.
452 * optabs.c (expand_binop): Likewise.
453 (expand_doubleword_bswap): Likewise.
454 (expand_absneg_bit): Likewise.
455 (expand_unop): Likewise.
456 (expand_copysign_bit): Likewise.
457 (multiword_target_p): New function.
458
459 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
460
461 PR rtl-optimization/48830
462 PR rtl-optimization/48808
463 PR rtl-optimization/48792
464 * reload.c (push_reload): Check contains_reg_of_mode.
465 * reload1.c (strip_paradoxical_subreg): New function.
466 (gen_reload_chain_without_interm_reg_p): Use it to handle
467 paradoxical subregs.
468 (emit_output_reload_insns, gen_reload): Likewise.
469
470 2011-06-01 David Li <davidxl@google.com>
471
472 * predict.c : Change pass name
473 * ipa.c: Ditto.
474 * dce.c: Ditto.
475 * tree-profile.c: Ditto.
476 * except.c: Ditto.
477
478 2011-06-01 David Li <davidxl@google.com>
479
480 * tree-pretty-print.c (dump_function_header): New function.
481 * final.c (rest_of_clean_state): Use header dumper.
482 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
483 * passes.c (pass_init_dump_file): Use header dumper.
484
485 2011-06-01 Jakub Jelinek <jakub@redhat.com>
486
487 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
488 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
489 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
490 New functions.
491 (mem_loc_descriptor): Use them.
492
493 * var-tracking.c (create_entry_value): New function.
494 (vt_add_function_parameter): Use it.
495
496 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
497
498 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
499 Include <signal.h>, <ucontext.h>.
500 (sigill_caught): Define.
501 (sigill_hdlr): New function.
502 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
503 insns can be executed.
504 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
505 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
506
507 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
508
509 * config/t-slibgcc-darwin: Move to ...
510 * config/t-slibgcc-dummy: ... this. Clarify comments.
511 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
512 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
513 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
514 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
515 Remove i386/t-crtstuff from tmake_file.
516 (i[34567]86-*-solaris2*): Remove t-svr4,
517 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
518 t-slibgcc-dummy.
519 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
520 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
521 sparc/t-crtfm from tmake_file.
522 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
523 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
524 Remove extra_parts.
525 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
526 * config/i386/t-nwld (SHLIB_LINK): Remove.
527 * config/i386/t-rtems-i386: Rename to ...
528 * config/i386/t-rtems: ... this.
529 ($(T)crti.o, $(T)crtn.o): Remove.
530 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
531 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
532 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
533 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
534 EXTRA_MULTILIB_PARTS): Remove.
535 * config/sparc/t-sol2-64: Likewise.
536 * config/sparc/t-sol2: Remove.
537 * config/sparc/t-crtin: Remove.
538 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
539 * config/i386/gmon-sol2.c: Remove.
540 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
541 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
542 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
543 * config/i386/sol2-gc1.asm: Remove.
544 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
545 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
546 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
547 * config/t-slibgcc-sld: Remove.
548
549 2011-06-01 Jakub Jelinek <jakub@redhat.com>
550
551 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
552 base_type_for_mode with op_mode instead of mode.
553
554 2011-06-01 Paul Brook <paul@cpodesourcery.com>
555
556 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
557 Cortex-A15.
558 * config/arm/arm-tune.md: Regenerate.
559 * config/arm/arm-tables.opt: Regenerate.
560 * config/arm/arm.c (FL_DIV): Rename...
561 (FL_THUMB_DIV): ... to this.
562 (FL_ARM_DIV): Define.
563 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
564 (arm_arch_hwdiv): Remove.
565 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
566 (arm_issue_rate): Add cortexr5.
567 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
568 __ARM_ARCH_EXT_IDIV__.
569 (TARGET_IDIV): Define.
570 (arm_arch_hwdiv): Remove.
571 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
572 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
573 (divsi3, udivsi3): New patterns.
574 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
575 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
576
577 2011-06-01 Martin Jambor <mjambor@suse.cz>
578
579 * ipa-utils.c (ipa_dfs_info): New field scc_no.
580 * ipa-utils.c (searchc): Set scc_no.
581
582 2011-06-01 Martin Jambor <mjambor@suse.cz>
583
584 * ipa-utils.c (searchc_env): New field allow_overwritable.
585 (searchc): do not ignore edges to overwritable nodes if indicated
586 by env->allow_overwritable.
587 (ipa_reduced_postorder): Set env.allow_overwritable.
588
589 2011-06-01 Richard Guenther <rguenther@suse.de>
590
591 * tree.c (free_lang_data): Do not reset boolean_type_node nor
592 char_type_node.
593 * lto-streamer.c (lto_record_common_node): Take node pointer,
594 do not register types.
595 (lto_preload_common_nodes): Explicitly skip preloading nodes
596 that differ between frontends.
597
598 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
599
600 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
601 NON_FLOAT_REGS.
602
603 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
604
605 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
606 parameter value for dump. Dump cost on outermost call only.
607 (rs6000_memory_move_cost): Dump cost on outermost call only.
608
609 2011-05-31 Jakub Jelinek <jakub@redhat.com>
610
611 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
612 DW_OP_GNU_convert ops.
613
614 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
615 cselib_preserve_constants.
616 (cselib_lookup_1): If cselib_preserve_constants,
617 a new VALUE is being created for REG and there is a VALUE for the
618 same register in wider mode, add another loc with lowpart SUBREG of
619 the wider VALUE.
620 (cselib_subst_to_values): Handle ENTRY_VALUE.
621 * var-tracking.c (replace_expr_with_values): Return NULL for
622 ENTRY_VALUE too.
623 * dwarf2out.c (convert_descriptor_to_signed): New function.
624 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
625 instead of two shifts.
626 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
627 the right mode if needed.
628 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
629 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
630 convert_descriptor_to_signed.
631 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
632 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
633
634 PR target/48688
635 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
636
637 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
638
639 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
640 of X87MODEI12 and SWI48x instead of SSEMODEI24.
641 (SWI248x): New mode iterator, rename from X87MODEI.
642 (X87MODEI): Remove mode iterator.
643 (X87MODEI12): Ditto.
644 (SSEMODEI24): Ditto.
645
646 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
647
648 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
649 * doc/invoke.texi: Document max-vartrack-expr-depth.
650 * var-tracking.c (EXPR_DEPTH): New.
651 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
652
653 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
654
655 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
656 * config/i386/sse.md: Add n to negated FMA pattern names.
657
658 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
659
660 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
661
662 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
663
664 * gengtype-state.c (read_state_params_structs): Initialize previous.
665
666 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
667
668 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
669 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
670
671 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
672
673 * config/i386/i386.md (*movtf_internal): Avoid allocating general
674 registers. Penalize F*r->o alternative to prevent partial memory
675 stalls. Slightly penalize *roF->*r alternative. Generate SSE
676 CONST_DOUBLE immediates when optimizing function for size. Do not move
677 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
678 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
679 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
680 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
681 alternatives.
682 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
683
684 (fp_register_operand splitters): Use fp_register_operand
685 constraint. Do not use FP_REG_P in insn condition.
686 (any_fp_register_operand splitters): Use any_fp_register_operand
687 constraint. Do not use ANY_FP_REG_P in insn condition.
688
689 2011-05-31 Jan Hubicka <jh@suse.cz>
690
691 * cgraph.h (cgraph_inline_failed_t): Give enum a name
692 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
693 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
694 (lto_output_edge): Use output_enum and var_len_unsigned.
695 (lto_output_varpool_node): Likewise.
696 (input_overwrite_node): Do not take resolution parameter;
697 extract it from a bitpack.
698 (input_node): Do not read resolution; use input_enum and
699 var_len_unsigned.
700 (input_varpool_node): Likewise.
701 (input_edge): Likewise.
702 (input_cgraph_1): Likewise.
703
704 2011-05-31 Richard Guenther <rguenther@suse.de>
705
706 * gimple.c (gimple_register_canonical_type): Do not register
707 any types via gimple_register_type.
708
709 2011-05-31 Jan Hubicka <jh@suse.cz>
710
711 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
712 of thunks.
713
714 2011-05-31 Jakub Jelinek <jakub@redhat.com>
715
716 PR rtl-optimization/49235
717 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
718 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
719
720 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
721
722 PR tree-optimization/49093
723 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
724 data references.
725
726 2011-05-31 Dodji Seketeli <dodji@redhat.com>
727
728 PR debug/49047
729 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
730 for concrete functions containing the code of cloned functions.
731
732 2011-05-31 Richard Guenther <rguenther@suse.de>
733
734 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
735 to ...
736 (forward_propagate_into_comparison_1): ... this.
737 (forward_propagate_comparison): Rename to ...
738 (forward_propagate_into_comparison): ... this. Split out
739 real forward propagation code to ...
740 (forward_propagate_comparison): ... this.
741 (forward_propagate_into_gimple_cond): Remove looping.
742 (forward_propagate_into_cond): Likewise.
743 (simplify_not_neg_expr): Return whether we have done something.
744 (simplify_gimple_switch): Likewise.
745 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
746 (ssa_forward_propagate_and_combine): ... this. Re-structure
747 to do a forward forward-propagation walk on BBs and a backward
748 stmt combining walk on BBs. Consistently re-scan changed statements.
749 (pass_forwprop): Adjust.
750
751 2011-05-30 Ian Lance Taylor <iant@google.com>
752
753 * godump.c (go_format_type): Correct length of name added to
754 obstack for anonymous field.
755
756 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
757
758 PR target/49186
759 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
760 part of the second operand is 0.
761
762 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
763
764 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
765 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
766 to memory for !TARGET_MEMORY_MISMATCH_STALL.
767 (*movdf_internal_rex64): Do not penalize F->r alternative.
768 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
769 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
770 when optimizing function for size. Do not move CONST_DOUBLEs
771 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
772 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
773 SUBREGs. Do not check for MEM_P operands in the insn condition,
774 check for ANY_FP_REGNO_P instead.
775 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
776 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
777 function for speed.
778 * config/i386/i386.c (ix86_option_override_internal): Do not
779 set TARGET_INTEGER_DFMODE_MOVES here.
780
781 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
782
783 PR target/49168
784 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
785
786 2011-05-30 Jakub Jelinek <jakub@redhat.com>
787
788 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
789 DW_TAG_rvalue_reference_type even for
790 -gdwarf-4 -fno-debug-types-section.
791
792 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
793
794 PR tree-optimization/46728
795 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
796 (build_and_insert_binop): New.
797 (gimple_expand_builtin_pow): Reorder args for
798 build_and_insert_call; use build_and_insert_binop; add more
799 optimizations for fractional exponents.
800
801 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
802
803 PR bootstrap/49190
804
805 Revert:
806 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
807
808 * tree.h (struct tree_identifier): Inherit from tree_typed, not
809 tree_common.
810 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
811 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
812 TS_BASE instead of TS_COMMON.
813 * varasm.c (assemble_name): Remove assert.
814
815 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
816
817 * config.gcc: Keep obselete list sorted.
818
819 2011-05-30 Jakub Jelinek <jakub@redhat.com>
820 Eric Botcazou <ebotcazou@adacore.com>
821
822 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
823 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
824 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
825 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
826 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
827
828 2011-05-30 Richard Guenther <rguenther@suse.de>
829
830 * gimple.c (gimple_types_compatible_p_1): Compare record
831 and union type members properly.
832
833 2011-05-30 Richard Guenther <rguenther@suse.de>
834
835 PR tree-optimization/49210
836 * ipa-split.c (split_function): Care for the case where the call
837 result is not trivially convertible to the result holding variable.
838
839 2011-05-30 Richard Guenther <rguenther@suse.de>
840
841 PR tree-optimization/49218
842 * tree-vrp.c (adjust_range_with_scev): Properly check whether
843 overflow occured.
844
845 2011-05-30 Richard Guenther <rguenther@suse.de>
846
847 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
848 New function split out from ...
849 (forward_propagate_into_gimple_cond): ... here. Adjust.
850 (forward_propagate_into_cond): Likewise.
851 (forward_propagate_comparison): Also propagate into
852 comparisons on assignment RHS. Change return value to
853 behave similar to forward_propagate_into_cond.
854 (tree_ssa_forward_propagate_single_use_vars): Handle
855 strict-overflow warnings properly for forward_propagate_comparison.
856
857 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
858
859 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
860 from plugin linker.
861 * configure: Regenerate.
862
863 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
864
865 PR tree-optimization/49199
866 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
867 non-reduction operands are either defined in the loop or by induction.
868
869 2011-05-29 Xinliang David Li <davidxl@google.com>
870
871 * opts-global.c (handle_common_deferred_options): Handle new options.
872 * passes.c (register_one_dump_file): Call register_pass_name.
873 (execute_one_pass): Check explicit enable/disable flag.
874 (passr_hash): New function.
875 (passr_eq): Ditto.
876 (register_pass_name): Ditto.
877 (get_pass_by_name): Ditto.
878 (pass_hash): Ditto.
879 (pass_eq): Ditto.
880 (enable_pass): Ditto.
881 (disable_pass): Ditto.
882 (is_pass_explicitly_enabled_or_disabled): Ditto.
883
884 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
885
886 * config/i386/i386.md (*movoi_internal_avx): Use
887 standard_sse_constant_opcode for alternative 0.
888 (*movti_internal_sse): Ditto.
889 (*movti_internal_rex64): Use standard_sse_constant_opcode for
890 alternative 2.
891 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
892 sselog1 type moves.
893 (*movsi_internal): Ditto.
894 (*movdi_internal): Ditto. Add ssecvt type moves.
895
896 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
897
898 PR target/48830
899 * rtlanal.c (simplify_subreg_regno): Adjust comment.
900
901 2011-05-29 Jakub Jelinek <jakub@redhat.com>
902
903 PR rtl-optimization/49095
904 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
905 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
906
907 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
908
909 PR target/43995
910 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
911 recurse_p argument. Only follow register copies if it is set,
912 and prevent mips_find_pic_call_symbol from recursing.
913 (mips_find_pic_call_symbol): Add a recurse_p argument.
914 Pass it to mips_pic_call_symbol_from_set.
915 (mips_annotate_pic_calls): Update accordingly.
916
917 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
918
919 * emit-rtl.c (try_split): Use a loop to search for
920 NOTE_INSN_CALL_ARG_LOCATIONs.
921
922 2011-05-29 Richard Guenther <rguenther@suse.de>
923
924 PR tree-optimization/49217
925 * ipa-pure-const.c (propagate_pure_const): Fix typos.
926
927 2011-05-28 Jan Hubicka <jh@suse.cz>
928
929 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
930 length.
931 (string_slot_free): Remove
932 (create_output_block): Initialize obstack.
933 (destroy_output_block): Free obstack.
934 (lto_string_index): Add PERSISTENT parameter; do not duplicate
935 the string unless it needs to be added into the hash.
936 (lto_output_string_with_length): Add persistent attribute;
937 handle NULL strings.
938 (lto_output_string): Add PERSISTENT parameter.
939 (output_string_cst, output_identifier): Simplify.
940 (lto_output_location_bitpack): Update.
941 (lto_output_builtin_tree): Update.
942 * lto-streamer.h (struct output_block): Add obstack.
943 (lto_output_string, lto_output_string_with_length): Remove
944 declarations; functions are static now.
945
946 2011-05-28 Jan Hubicka <jh@suse.cz>
947
948 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
949 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
950 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
951 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
952 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
953 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
954 unpack_ts_decl_with_vis_value_fields,
955 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
956 lto_get_builtin_tree): Use enum and variable length i/o.
957 * basic-block.h (profile_status_d): Add PROFILE_LAST.
958 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
959 New functions.
960 (bp_pack_enum, bp_unpack_enum): New macros.
961
962 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
963
964 * genrecog.c: Remove redundant forward declarations.
965
966 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
967
968 * config.gcc: Deprecate mips*-*-openbsd*.
969
970 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
971
972 PR bootstrap/49195
973 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
974 for match_op_dup.
975
976 2011-05-27 Andrew Pinski <pinskia@gmail.com>
977
978 PR middle-end/48981
979 * gengtype.c (vec_prefix_type): New function.
980 (note_def_vec): Use vec_prefix_type and change the length
981 attribute to be based on the prefix.
982 * vec.c: Include coretypes.h before vec.h.
983 (struct vec_prefix): Remove.
984 (vec_gc_p_reserve): Change the offsetof to sizeof.
985 (vec_gc_p_reserve_exact): Likewise.
986 (vec_heap_p_reserve): Likewise.
987 (vec_heap_p_reserve_exact): Likewise.
988 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
989 (vec_stack_p_reserve): Change the offsetof to sizeof.
990 (vec_stack_p_reserve_exact): Likewise.
991 * vec.h (struct vec_prefix): New struct definition.
992 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
993 (VEC_T_GTY(T,B)): Likewise.
994 (DEF_VEC_FUNC_P(T)): Use prefix field.
995 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
996 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
997
998 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
999
1000 PR tree-optimization/46728
1001 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1002 (powi_as_mults): Add gimple_set_location.
1003 (build_and_insert_call): New.
1004 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1005 0.5, 0.25, 0.75, 1./3., or 1./6.
1006
1007 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1008
1009 * doc/contrib.texi: Update copyright years.
1010 (Contributors): Add Zdenek Sojka.
1011
1012 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1013
1014 * c-decl.c (c_push_function_context): Copy the current statement
1015 list stack.
1016 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1017 (finish_struct): Call building_stmt_list_p instead of checking
1018 cur_stmt_list.
1019 * c-parser.c (c_parser_postfix_expression): Likewise.
1020 * c-typeck.c (c_end_compound_stmt): Likewise.
1021 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1022 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1023 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1024 (free_stmt_list): Likewise.
1025 * tree.h (struct tree_statement_list): Include typed_tree instead
1026 of tree_common.
1027 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1028 as TS_TYPED instead of TS_COMMON.
1029
1030 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1031 Uros Bizjak <ubizjak@gmail.com>
1032
1033 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1034 (HAVE_AS_IX86_TLSGDPTL): Define.
1035 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1036 (HAVE_AS_IX86_TLSLDMPLT): Define.
1037 * configure: Regenerate.
1038 * config.in: Regenerate.
1039 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1040 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1041 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1042 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1043 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1044 @tlsldmplt or @plt.
1045 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1046
1047 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1048
1049 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1050 and reverse_cond.
1051 (INSN_COND, INSN_REVERSE_COND): New macros.
1052 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1053 once.
1054 (sched_get_condition_with_rev): Cache the results, and look them up
1055 if possible.
1056 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1057 are clobbered by the current insn.
1058 * target.def (exposed_pipline): New sched data hook.
1059 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1060 * doc/tm.texi: Regenerate.
1061
1062 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1063
1064 PR tree-optimization/49170
1065 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1066 sincos or cexp.
1067
1068 2011-05-27 Richard Guenther <rguenther@suse.de>
1069
1070 PR middle-end/49189
1071 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1072 of comparisons.
1073
1074 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1075
1076 * haifa-sched.c (sched_scan_info): Remove.
1077 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1078 with NULL args.
1079 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1080 Remove functions.
1081 (sched_scan): Remove.
1082 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1083 static. All callers changed.
1084 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1085 static. All callers changed.
1086 (sched_init_luids): Remove all arguments except the first. All
1087 callers changed. Don't use sched_scan.
1088 (haifa_init_h_i_d): Likewise.
1089 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1090 manually rather than using sched_init_luids. Likewise with
1091 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1092 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1093 rather than sched_init_luids with NULL args.
1094 * sel-sched-ir.c (new_insns): Remove variable.
1095 (sched_scan): New static function, previously in haifa-sched.c. Remove
1096 all arguments but the first two; all callers changed.
1097 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1098 rather than sched_init_luids.
1099 (sel_init_bbs): Remove second argument. All callers changed.
1100 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1101 with NULL arguments.
1102 (create_insn_rtx_from_pattern): Likewise.
1103 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1104 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1105 (sched_init_insn_luid, sched_extend_luids): Declare.
1106 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1107 declarations.
1108
1109 2011-05-27 Richard Guenther <rguenther@suse.de>
1110
1111 PR middle-end/49177
1112 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1113 A CMP B ? (T) true : (T) false for non-integral types T again.
1114
1115 2011-05-27 Jan Hubicka <jh@suse.cz>
1116
1117 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1118 so 0 means NULL string.
1119 (lto_output_string_with_length): ... here.
1120 (lto_output_string, output_string_cst, output_identifier): Update
1121 handling of NULL strings.
1122 (lto_output_location_bitpack): New function.
1123 (lto_output_location): Use it.
1124 (lto_output_tree_ref): Use output_record_start.
1125 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1126 len values.
1127 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1128 values by 1.
1129 (input_string_internal): ... here;
1130 (input_string_cst, input_identifier, lto_input_string): Update handling
1131 of NULL strings.
1132 (lto_input_location_bitpack): New function
1133 (lto_input_location): Use it.
1134 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1135 values.
1136 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1137 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1138 (bp_pack_value): Sanity check the value range.
1139 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1140 New functions.
1141 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1142 New functions.
1143
1144 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1145
1146 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1147 call_arg_location instructions down the floor.
1148
1149 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1150
1151 PR rtl-optimization/49154
1152 * ira.c (setup_pressure_classes): Process class without sublcasses
1153 as a candidate for pressure classes.
1154
1155 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1156
1157 PR rtl-optimization/48575
1158 * genrecog.c (position_type): New enum.
1159 (position): New structure.
1160 (decision): Use position structure instead of a string.
1161 (root_pos, peep2_insn_pos_list): New variables.
1162 (next_position, compare_positions): New functions.
1163 (new_decision): Use position structures instead of strings.
1164 (maybe_both_true): Likewise.
1165 (change_state): Likewise.
1166 (write_tree): Likewise.
1167 (make_insn_sequence): Likewise.
1168
1169 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1170
1171 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1172 TS_BASE instead of TS_COMMON.
1173 (find_decls_types_r): Check for TS_TYPED structure before looking at
1174 TREE_TYPE.
1175 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1176 Add chain field.
1177 (BLOCK_CHAIN): Use new chain field.
1178
1179 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1180
1181 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1182 moves expensive on Power7 also.
1183
1184 2011-05-26 Richard Guenther <rguenther@suse.de>
1185
1186 * fold-const.c (fold_unary_loc): Remove bogus code.
1187
1188 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1189
1190 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1191 tree_common.
1192 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1193 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1194 TS_BASE instead of TS_COMMON.
1195 * varasm.c (assemble_name): Remove assert.
1196
1197 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1198
1199 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1200 substituted first.
1201 * libgcc-std.ver: Delete file.
1202
1203 2011-05-26 Richard Guenther <rguenther@suse.de>
1204
1205 PR tree-optimization/48702
1206 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1207 only when we know the base address is within bounds.
1208 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1209 assume the base address of TARGET_MEM_REFs is in bounds.
1210
1211 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1212
1213 PR target/49099
1214 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1215 declaration in TARGET_SOLARIS.
1216
1217 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1218
1219 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1220 The instruction is then expanded explicitly.
1221 (supported_compare): Callable instruction.
1222 (compare): Likewise.
1223
1224 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1225
1226 PR c++/49165
1227 * gimplify.c (shortcut_cond_r): Don't special case
1228 COND_EXPRs if they have void type on one of their arms.
1229
1230 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1231
1232 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1233 to reduce duplication, and to achieve a slightly more logical order
1234 of operations.
1235
1236 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1237
1238 PR tree-optimization/49161
1239 * tree-vrp.c (struct case_info): New type.
1240 (compare_case_labels): Sort case_info structs instead of
1241 trees, and not primarily by CASE_LABEL uids but by
1242 label_for_block indexes.
1243 (find_switch_asserts): Put case labels into struct case_info
1244 array instead of TREE_VEC, adjust sorting, compare label_for_block
1245 values instead of CASE_LABELs.
1246
1247 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1248
1249 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1250 ("orndi3_neon"): Likewise.
1251 ("bic<mode>3_neon"): Likewise.
1252
1253 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1254
1255 PR tree-optimization/49038
1256 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1257 Ensure at least one epilogue iteration if required by data
1258 accesses with gaps.
1259 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1260 to mark loops that require peeling for gaps.
1261 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1262 (vect_get_known_peeling_cost): Take peeling for gaps into
1263 account.
1264 (vect_transform_loop): Generate epilogue if required by data
1265 access with gaps.
1266 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1267 loop as requiring an epilogue if there are gaps in the end of
1268 the strided group.
1269
1270 2011-05-25 Ian Lance Taylor <iant@google.com>
1271
1272 * godump.c (go_format_type): Output the first field with a usable
1273 Go type, if any.
1274
1275 2011-05-25 Ian Lance Taylor <iant@google.com>
1276
1277 * godump.c (go_format_type): Check for invalid type names, pointer
1278 target types, and struct field types.
1279
1280 2011-05-25 Jason Merrill <jason@redhat.com>
1281
1282 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1283
1284 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1285
1286 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1287
1288 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1289
1290 * config/i386/i386.md (*movqi_extv_1)): Put back
1291 "register_operand" check in "type" calculation.
1292 (*movqi_extzv_2): Likewise.
1293
1294 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1295
1296 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1297
1298 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1299
1300 PR bootstrap/49160
1301 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1302 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1303 __divxc3, __divtc3): Wrap definitions in #ifndef.
1304
1305 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1306
1307 PR target/49142
1308 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1309 "register_operand" check and replace q_regs_operand with
1310 QIreg_operand in "type" calculation.
1311 (*movqi_extv_1): Likewise.
1312 (*movqi_extzv_2_rex64): Likewise.
1313 (*movqi_extzv_2): Likewise.
1314
1315 * config/i386/predicates.md (QIreg_operand): New.
1316
1317 2011-05-25 Richard Guenther <rguenther@suse.de>
1318
1319 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1320 type-based offset disambiguation, streamline MEM_REF and
1321 TARGET_MEM_REF handling.
1322
1323 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1324
1325 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1326 (bdesc_special_args): Add pause intrinsic.
1327
1328 * config/i386/i386.md (UNSPEC_PAUSE): New.
1329 (pause): Likewise.
1330 (*pause): Likewise.
1331 * config/i386/ia32intrin.h (__pause): Likewise.
1332
1333 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1334 pause intrinsic.
1335
1336 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1337
1338 PR tree-optimization/46728
1339 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1340 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1341
1342 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1343
1344 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1345 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1346 instead of TS_COMMON.
1347
1348 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1349
1350 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1351 LIBGCC2_GNU_PREFIX is defined.
1352 (__N): New macro.
1353 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1354 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1355 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1356 __clz_tab): Define using __N.
1357 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1358 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1359 * target.def (libfunc_gnu_prefix): New hook.
1360 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1361 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1362 * doc/tm.texi: Regenerate.
1363 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1364 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1365 account.
1366 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1367 (init_optabs): Likewise for the bswap libfuncs.
1368 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1369 and divide.
1370 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1371 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1372 * libgcc-std.ver: Remove.
1373 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1374 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1375 libgcc-std.ver.
1376 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1377 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1378 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1379 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1380 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1381 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1382 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1383 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1384 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1385 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1386
1387 2011-05-25 Jan Hubicka <jh@suse.cz>
1388
1389 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1390 (lto_output_tree): Use output_record_start.
1391 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1392 (lto_get_pickled_tree): Use input_record_start.
1393 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1394 (lto_value_range_error): New function.
1395 * lto-streamer.h (lto_value_range_error): Declare.
1396 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1397 (lto_output_enum, lto_input_enum): New macros.
1398
1399 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1400
1401 * common.opt (flag_stack_usage_info): New variable.
1402 (-Wstack-usage): New option.
1403 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1404 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1405 <OPT_fstack_usage>: Likewise.
1406 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1407 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1408 of flag_stack_usage.
1409 (emit_library_call_value_1): Likewise.
1410 * explow.c (allocate_dynamic_stack_space): Likewise.
1411 * function.c (instantiate_virtual_regs ): Likewise.
1412 (prepare_function_start): Likewise.
1413 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1414 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1415 * config/arm/arm.c (arm_expand_prologue): Likewise.
1416 (thumb1_expand_prologue): Likewise.
1417 * config/avr/avr.c (expand_prologue): Likewise.
1418 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1419 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1420 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1421 * config/mips/mips.c (mips_expand_prologue): Likewise.
1422 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1423 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1424 * config/s390/s390.c (s390_emit_prologue): Likewise.
1425 * config/sh/sh.c (sh_expand_prologue): Likewise.
1426 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1427 * config/spu/spu.c (spu_expand_prologue): Likewise.
1428
1429 2011-05-25 Richard Guenther <rguenther@suse.de>
1430
1431 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1432 (gimple_canonical_types_compatible_p): Likewise.
1433
1434 2011-05-25 Jan Hubicka <jh@suse.cz>
1435
1436 PR middle-end/49062
1437 * ipa.c (function_and_variable_visibility): Only add to same
1438 comdat group list if DECL_ONE_ONLY.
1439
1440 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1441
1442 PR rtl-optimization/49014
1443 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1444
1445 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1446
1447 PR target/49128
1448 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1449
1450 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1451
1452 PR rtl-optimization/48757
1453 * ira-build.c (loop_with_eh_edge_p): Rename to
1454 loop_with_complex_edge_p, check edges on complexity, make function
1455 conditional.
1456 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1457 conditional.
1458
1459 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1460
1461 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1462 force flag_ira_share_save_slots to 0.
1463
1464 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1465
1466 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1467 (vt_initialize): Set PROLOGUE_BB unconditionally.
1468 Add block comment about CFA_BASE_RTX machinery.
1469 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1470 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1471
1472 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1473
1474 PR objc/48187
1475 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1476 parsing of syntax error in ObjC instance variable lists. In
1477 particular, avoid an infinite loop if there is a stray ']'.
1478 Updated error message.
1479
1480 2011-05-24 Ian Lance Taylor <iant@google.com>
1481
1482 * godump.c (go_define): Don't accept a string immediately after
1483 another operand.
1484
1485 2011-05-24 Ian Lance Taylor <iant@google.com>
1486
1487 * godump.c (struct godump_container): Add invalid_hash field.
1488 (go_format_type): Return false if type is found in invalid_hash.
1489 (go_output_typedef): Add invalid type to invalid_hash.
1490 (go_finish): Create and delete invalid_hash.
1491
1492 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1493
1494 PR tree-optimization/46728
1495 * tree-ssa-math-opts.c (powi_table): New.
1496 (powi_lookup_cost): New.
1497 (powi_cost): New.
1498 (powi_as_mults_1): New.
1499 (powi_as_mults): New.
1500 (gimple_expand_builtin_powi): New.
1501 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1502 (gate_cse_sincos): Remove sincos/cexp restriction.
1503
1504 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505
1506 PR target/3746
1507 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1508 mips-tdump native.
1509 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1510 * mips-tdump.c: Likewise.
1511
1512 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1513
1514 PR target/49128
1515 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1516 add -mno-XXX. Handle FMA.
1517
1518 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1519
1520 PR rtl-optimization/48633
1521 * ira-build.c (loop_with_eh_edge_p): New function.
1522 (mark_loops_for_removal): Use it.
1523
1524 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1525
1526 PR rtl-optimization/48971
1527 * ira.c (setup_pressure_classes): Don't check register move cost
1528 for classes with one registers. Don't add pressure class if there
1529 is a pressure class with the same available hard registers.
1530 Check contains_reg_of_mode. Fix a typo in collecting
1531 temp_hard_regset. Ignore hard registers not belonging to a class.
1532
1533 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1534
1535 PR target/49133
1536 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1537
1538 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1539 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1540
1541 PR gcov-profile/48845
1542 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1543
1544 2011-05-24 Richard Guenther <rguenther@suse.de>
1545
1546 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1547 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1548 (gimple_types_compatible_p_1): Adjust.
1549 (iterative_hash_canonical_type): Do not bother about complete vs.
1550 incomplete types.
1551 (gimple_canonical_types_compatible_p): Likewise.
1552
1553 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1554
1555 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1556
1557 2011-05-24 Richard Guenther <rguenther@suse.de>
1558
1559 PR bootstrap/49078
1560 * gimple.c (gimple_register_canonical_type): Revert
1561 previous change.
1562 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1563 does not for a tree for the case where it matters. Cache
1564 pointer-type alias-sets.
1565
1566 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1567
1568 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1569 (OBJS): Remove options.o, opts-common.o and prefix.o.
1570 (OBJS-libcommon-target): New.
1571 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1572 (BACKEND): Include libcommon-target.a.
1573 (MOSTLYCLEANFILES): Include libcommon-target.a.
1574 (libcommon-target.a): New.
1575 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1576 prefix.o.
1577
1578 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1579
1580 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1581 parts of output shared with the driver.
1582 * optc-gen.awk: Don't generate parts of output not shared with the
1583 driver.
1584 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1585 * doc/options.texi (SourcerInclude): Mention options-save.c.
1586 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1587 (OBJS): Add options-save.o.
1588 (options-save.c, options-save.o): New.
1589 (options.o): Update dependencies.
1590 (gcc-options.o): Remove.
1591 (mostlyclean): Remove options-save.c.
1592
1593 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1594
1595 PR debug/49032
1596 * dbxout.c: Include cgraph.h.
1597 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1598 and without value expr, return NULL if no varpool node exists for
1599 it or if it is not needed.
1600 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1601
1602 PR c/49120
1603 * c-decl.c (start_decl): Convert expr to void_type_node.
1604
1605 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1606
1607 PR rtl-optimization/48826
1608 * emit-rtl.c (try_split): When splitting a call that is followed
1609 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1610
1611 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1612
1613 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1614 parameters passed in memory prefer using DECL_INCOMING_RTL over
1615 the pseudos it will be copied into.
1616
1617 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1618
1619 PR target/47315
1620 * config/i386/i386.c (ix86_option_override_internal): Save the
1621 initial options after checking vzeroupper.
1622
1623 2011-05-23 David Li <davidxl@google.com>
1624
1625 PR tree-optimization/48988
1626 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1627 Initialize has_valid_pred for each pred chain.
1628
1629 2011-05-23 Richard Guenther <rguenther@suse.de>
1630
1631 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1632 (iterative_hash_gimple_type): Always hash type names.
1633
1634 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1635
1636 * c-typeck.c (build_function_call_vec): Tweak call to
1637 check_function_arguments.
1638
1639 2011-05-23 Richard Guenther <rguenther@suse.de>
1640
1641 PR tree-optimization/49115
1642 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1643 is not necessarily carried out, do not claim it kills the ref.
1644 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1645
1646 2011-05-23 Richard Guenther <rguenther@suse.de>
1647
1648 PR middle-end/15419
1649 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1650 what pointer types we accept for folding.
1651
1652 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1653
1654 * gthr-gnat.c: Remove.
1655 * gthr-gnat.h: Remove.
1656 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1657 * config/t-freebsd (LIB2ADDEH): Likewise.
1658 * config/t-linux (LIB2ADDEH): Likewise.
1659 * config/t-sol2 (LIB2ADDEH): Likewise.
1660 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1661 * configure.ac (target_thread_file): Remove gnat handling.
1662 * configure: Regenerate.
1663 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1664
1665 2011-05-23 Tristan Gingold <gingold@adacore.com>
1666 Eric Botcazou <ebotcazou@adacore.com>
1667
1668 * gcov.c (create_file_names): If no object directory is specified,
1669 keep the directory of the file.
1670
1671 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1672
1673 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1674 * configure: Regenerate.
1675
1676 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1677
1678 PR middle-end/48973
1679 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1680 failed and the comparison has a single bit signed type, use
1681 constm1_rtx instead of const1_rtx for true value.
1682 (do_store_flag): If ops->type is single bit signed type, disable
1683 signel bit test optimization and pass -1 instead of 1 as last
1684 parameter to emit_store_flag_force.
1685
1686 2011-05-23 Tom de Vries <tom@codesourcery.com>
1687
1688 PR target/45098
1689 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1690 function.
1691 (infer_loop_bounds_from_undefined): Use new function.
1692
1693 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1694
1695 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1696 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1697 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1698 and -O0 otherwise.
1699 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1700
1701 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1702
1703 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1704 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1705 returns true.
1706
1707 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1708
1709 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1710
1711 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1712
1713 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1714 UNSPEC_MOVE_PIC pattern.
1715
1716 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1717
1718 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1719 (sparc-*-rtems*): Likewise.
1720 (sparc64-*-elf*): Likewise.
1721 (sparc64-*-rtems*): Likewise.
1722 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1723 * config/sparc/t-crtin: New file.
1724 * config/sparc/t-sol2 (crti.o): Delete rule.
1725 (crtn.o): Likewise.
1726 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1727 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1728 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1729 (ENDFILE_SPEC): Add crtn.o.
1730
1731 2011-05-22 Tom de Vries <tom@codesourcery.com>
1732
1733 PR middle-end/48689
1734 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1735 CODE_CONTAINS_STRUCT (TS_COMMON).
1736
1737 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1738
1739 PR middle-end/49029
1740 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1741 only after deciding which mode to use.
1742
1743 2011-05-22 Tom de Vries <tom@codesourcery.com>
1744
1745 PR target/45098
1746 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1747 for call to get_shiftadd_cost.
1748
1749 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1750
1751 PR target/49104
1752 * config/i386/cpuid.h (bit_MMXEXT): New define.
1753
1754 2011-05-22 Nick Clifton <nickc@redhat.com>
1755
1756 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1757 initialisation of non-existant args[2] element. Use args[] array
1758 not arg[] array to pass arguments to build_function_type_list.
1759
1760 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1761
1762 PR tree-optimization/49087
1763 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1764
1765 2011-05-21 Jason Merrill <jason@redhat.com>
1766
1767 PR c++/49092
1768 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1769 static storage duration.
1770
1771 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1772
1773 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1774 frame pointer.
1775
1776 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1777
1778 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1779 false if there are call-saved registers here...
1780 (sparc_can_use_return_insn_p): ...but here instead.
1781 (save_or_restore_regs): Fix thinko.
1782 (sparc_expand_prologue): Use current_function_is_leaf.
1783 (sparc_frame_pointer_required): Likewise.
1784
1785 2011-05-21 Nick Clifton <nickc@redhat.com>
1786
1787 PR target/49098
1788 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1789
1790 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1791
1792 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1793 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1794
1795 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1796
1797 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1798 * optc-gen.awk: Move common code to opt-read.awk.
1799 * opth-gen.awk: Likewise.
1800 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1801
1802 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1803
1804 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1805
1806 2011-05-20 Tom de Vries <tom@codesourcery.com>
1807
1808 PR target/45098
1809 * tree-ssa-loop-ivopts.c: Include expmed.h.
1810 (get_shiftadd_cost): New function.
1811 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1812
1813 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1814
1815 PR bootstrap/49086
1816 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1817 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1818
1819 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1820
1821 * Makefile.in: Update comment referring to $(OBJS-common).
1822
1823 2011-05-20 Ian Lance Taylor <iant@google.com>
1824
1825 * godump.c (go_output_typedef): Put enum constants in the macro
1826 hash table to avoid duplicate Go const definitions.
1827
1828 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1829
1830 * Makefile.in (LIBDEPS): Add libcommon.a.
1831 (LIBS): Likewise.
1832 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1833 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1834 pretty-print.o and version.o.
1835 (OBJS-libcommon): New.
1836 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1837 (BACKEND): Add libcommon.a.
1838 (MOSTLYCLEANFILES): Likewise.
1839 (libcommon.a): New.
1840 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1841 (cpp$(exeext)): Likewise.
1842 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1843 pretty-print.o and input.o.
1844 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1845 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1846 (errors.o): Remove.
1847 (mips-tfile): Don't explicitly use version.o.
1848 (mips-tdump): Likewise.
1849 (gcov.o): Depend on $(DIAGNOSTIC_H).
1850 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1851 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1852 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1853 * gcov-dump.c: Include intl.h and diagnostic.h.
1854 (main): Initialize diagnostics.
1855 * gcov.c: Include diagnostic.h.
1856 (fnotice): Remove.
1857 (main): Initialize diagnostics.
1858 * lto-wrapper.c: Include diagnostic.h.
1859 (main): Initialize diagnostics.
1860
1861 2011-05-20 Michael Matz <matz@suse.de>
1862
1863 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1864
1865 2011-05-20 Michael Matz <matz@suse.de>
1866 Richard Guenther <rguenther@suse.de>
1867
1868 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1869 use lto_streamer_cache_append directly instead of returning a VEC.
1870 (preload_common_node): Remove.
1871 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1872 track seen nodes.
1873 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1874
1875 2011-05-20 Richard Guenther <rguenther@suse.de>
1876
1877 PR tree-optimization/49079
1878 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1879 MEM_REFs correctly for the trailing array access detection.
1880 Special case constants the same way as decls for overall size
1881 constraining.
1882
1883 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1884
1885 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1886 argument expansion.
1887
1888 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1889
1890 PR tree-optimization/49073
1891 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1892 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1893 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1894
1895 2011-05-20 Richard Guenther <rguenther@suse.de>
1896
1897 PR middle-end/48849
1898 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1899 of pointer types the same way the middle-end does.
1900
1901 2011-05-20 Richard Guenther <rguenther@suse.de>
1902
1903 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1904 or pointer-to chains. Delay all fixup to uniquify_nodes.
1905
1906 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1907
1908 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1909 (fma4_fmaddsub): Likewise
1910
1911 2011-05-19 Jan Hubicka <jh@suse.cz>
1912
1913 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1914 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1915 (type_pair_cache): New static var.
1916 (lookup_type_pair): Use fixed sized custom hash; make inline.
1917 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1918 calls of lookup_type_pair.
1919 (print_gimple_types_stats): Remove cache stats.
1920 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1921 and gtc_ob.
1922
1923 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1924
1925 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1926 when TARGET_RDRND is active.
1927 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1928 Generate dummy SImode target register when target is NULL.
1929
1930 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1931
1932 * config/arm/arm-fpus.def: New.
1933 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1934 arm-fpus.def.
1935 * config/arm/arm-tables.opt: Regenerate.
1936 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1937 (arm_option_override): Don't decode FPU name to string here.
1938 * config/arm/arm.opt (mfpu=): Use Enum.
1939 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1940 Update dependencies.
1941
1942 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1943
1944 * collect2.c: Include diagnostic.h.
1945 (fatal_perror, fatal, error, fancy_abort): Remove.
1946 (main): Set progname. Call xmalloc_set_program_name and
1947 diagnostic_initialize.
1948 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1949 scan_libraries, resolve_lib_name): Call fatal_error instead of
1950 fatal and fatal_perror.
1951 * collect2.h (error, fatal, fatal_perror): Don't declare.
1952 * tlink.c: Include diagnostic-core.h.
1953 (recompile_files): Call fatal_error instead of fatal_perror.
1954 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1955 pretty-print.o and input.o.
1956 (collect2.o, tlink.o): Update dependencies.
1957
1958 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1959
1960 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1961
1962 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1963
1964 PR target/40483
1965 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1966 COMDAT group syntax, both SPARC and x86 variants.
1967 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1968 * configure: Regenerate.
1969 * config/sol2.h (TARGET_SOLARIS): Define.
1970 (PUSHSECTION_FORMAT): Remove.
1971 (SECTION_NAME_FORMAT): Define.
1972 * config/sol2.c: Include hashtab.h.
1973 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1974 expansion, using SECTION_NAME_FORMAT.
1975 (solaris_comdat_htab): New variable.
1976 (struct comdat_entry): Define.
1977 (comdat_hash): New function.
1978 (comdat_eq): New function.
1979 (solaris_elf_asm_comdat_section): New function.
1980 (solaris_define_comdat_signature): New function.
1981 (solaris_code_end): New function.
1982 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1983 (solaris_code_end): Declare.
1984 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1985 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1986 solaris_code_end.
1987 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1988 Remove ATTRIBUTE_UNUSED.
1989 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1990 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1991 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1992 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1993 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1994 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1995 (PUSHSECTION_FORMAT): Remove.
1996 (SECTION_NAME_FORMAT): Redefine.
1997
1998 2011-05-19 Kai Tietz <ktietz@redhat.com>
1999
2000 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2001 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2002 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2003
2004 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2005 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2006
2007 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2008
2009 2011-05-19 Richard Guenther <rguenther@suse.de>
2010
2011 PR middle-end/48985
2012 * tree-object-size.c (addr_object_size): If the pointed-to
2013 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2014
2015 2011-05-19 Richard Guenther <rguenther@suse.de>
2016
2017 * gimple.c (gimple_types_compatible_p_1): Compare names of
2018 the types themselves.
2019 (iterative_hash_gimple_type): And hash them that way.
2020 (gimple_register_type_1): If we register a main variant properly
2021 initialize the leader to ourselves.
2022
2023 2011-05-19 Tom de Vries <tom@codesourcery.com>
2024
2025 PR target/45098
2026 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2027 get_loop_invariant_expr_id.
2028 (get_loop_invariant_expr_id): Use get_expr_id.
2029 (parm_decl_cost): New function.
2030 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2031 Improve bound cost estimation. Use different inv_expr_id for elim and
2032 express cases.
2033
2034 2011-05-19 Tom de Vries <tom@codesourcery.com>
2035
2036 PR target/45098
2037 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2038 cost_base.cost == 0.
2039
2040 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2041
2042 PR target/49002
2043 * config/i386/sse.md
2044 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2045 load cast.
2046
2047 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2048
2049 PR tree-optimization/49039
2050 * tree-vrp.c (extract_range_from_binary_expr): For
2051 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2052 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2053
2054 2011-05-18 Tom de Vries <tom@codesourcery.com>
2055
2056 PR target/45098
2057 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2058
2059 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2060
2061 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2062 (*tls_global_dynamic_64): Ditto.
2063 (*tls_local_dynamic_base_32_gnu): Ditto.
2064 (*tls_local_dynamic_base_64): Ditto.
2065 (tls_initial_exec_64_sun): Ditto.
2066
2067 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2068
2069 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2070 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2071 bf592-none.
2072 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2073 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2074 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2075 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2076 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2077 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2078 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2079
2080 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2081
2082 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2083 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2084 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2085 target_thread_pointer, arm_structure_size_boundary, struct
2086 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2087 struct abi_name, arm_all_abis): Remove.
2088 (arm_option_override) Don't process most enumerated option values here.
2089 Don't process target_fpe_name here. Work with integer not string for
2090 structure size boundary; use separate diagnostics for each case.
2091 * config/arm/arm.h (enum float_abi_type, enum
2092 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2093 to arm-opts.h.
2094 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2095 arm_structure_size_boundary): Remove.
2096 * config/arm/arm.opt (mabi=): Use Enum and Init.
2097 (arm_abi_type): New Enum and EnumValue entries.
2098 (mfloat-abi=): Use Enum and Init.
2099 (float_abi_type): New Enum and EnumValue entries.
2100 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2101 (mfp16-format=): Use Enum and Init.
2102 (arm_fp16_format_type): New Enum and EnumValue entries.
2103 (mstructure-size-boundary=): Use UInteger and Init.
2104 (mtp=): Use Enum and Init.
2105 (arm_tp_type): New Enum and EnumValue entries.
2106
2107 2011-05-18 Richard Guenther <rguenther@suse.de>
2108
2109 PR tree-optimization/49018
2110 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2111 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2112 gimple_has_side_effects.
2113
2114 2011-05-18 Richard Guenther <rguenther@suse.de>
2115
2116 * gimple.c (gimple_register_type_1): New function, split out from ...
2117 (gimple_register_type): ... here. Avoid infinite recursion.
2118
2119 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2120
2121 PR tree-optimization/41881
2122 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2123 reduction_chains along with a macro for its access.
2124 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2125 (destroy_loop_vec_info): Free reduction chains.
2126 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2127 (vect_is_slp_reduction): New function.
2128 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2129 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2130 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2131 definition types for reduction chains.
2132 (vect_supported_load_permutation_p): Don't allow permutations for
2133 reduction chains.
2134 (vect_analyze_slp_instance): Support reduction chains.
2135 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2136 (vect_get_constant_vectors): Handle reduction chains.
2137 (vect_schedule_slp_instance): Mark the first statement of the
2138 reduction chain as reduction.
2139
2140 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2141
2142 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2143 names for group elements access.
2144 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2145 reduction chains as well. Remove data reference and interleaving
2146 related words from the fields names.
2147 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2148 elements access.
2149 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2150 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2151 vect_update_interleaving_chain, vect_same_range_drs,
2152 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2153 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2154 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2155 vect_analyze_group_access, vect_analyze_data_ref_access,
2156 vect_create_data_ref_ptr, vect_transform_strided_load,
2157 vect_record_strided_load_vectors): Likewise.
2158 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2159 vect_model_load_cost, vectorizable_store, vectorizable_load,
2160 vect_remove_stores, new_stmt_vec_info): Likewise.
2161 * tree-vect-slp.c (vect_build_slp_tree,
2162 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2163
2164 2011-05-18 Richard Guenther <rguenther@suse.de>
2165
2166 PR middle-end/48989
2167 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2168 operand verification.
2169 (verify_gimple_assign_binary): Likewise.
2170 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2171 to non-1-precision BOOLEAN_TYPEs.
2172
2173 2011-05-18 Tom de Vries <tom@codesourcery.com>
2174
2175 PR target/45098
2176 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2177
2178 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2179
2180 PR tree-optimization/49000
2181 * tree-ssa.c (execute_update_addresses_taken): Call
2182 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2183 be rewritten and decl has been marked for renaming, reset
2184 the debug stmt.
2185
2186 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2187
2188 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2189 enum_opts_set when testing if attributes have set -mfpmath=.
2190
2191 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2192
2193 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2194
2195 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2196
2197 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2198 info->entry with 0
2199 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2200 id.transform_lang_insert_block with NULL.
2201
2202 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2203
2204 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2205 (output_fp_compare): Change args 3 and 4 to bool.
2206 (ix86_expand_call): Change arg 6 to bool.
2207 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2208 (ix86_attr_length_vex_default): Change arg 3 to bool.
2209 * config/i386/i386.md: Update all uses.
2210 * config/i386/i386.c: Ditto.
2211 (ix86_flags_dependent): Change return type to bool.
2212
2213 2011-05-17 Richard Guenther <rguenther@suse.de>
2214
2215 * gimple.c (type_hash_pair_compare): Fix comparison.
2216
2217 2011-05-17 Richard Guenther <rguenther@suse.de>
2218
2219 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2220 case some more, fix final hash value of the non-singleton case.
2221
2222 2011-05-17 Richard Guenther <rguenther@suse.de>
2223
2224 PR bootstrap/49013
2225 Revert
2226 2011-05-16 Richard Guenther <rguenther@suse.de>
2227
2228 * gimple.c (gimple_types_compatible_p_1): Use names of the
2229 type itself, not its main variant.
2230 (iterative_hash_gimple_type): Likewise.
2231
2232 2011-05-17 Richard Guenther <rguenther@suse.de>
2233
2234 * gimple.c (gimple_register_canonical_type): Use the main-variant
2235 leader for computing the canonical type.
2236
2237 2011-05-17 Nick Clifton <nickc@redhat.com>
2238
2239 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2240 moves.
2241
2242 * config/rx/rx.md: Add peephole to remove redundant extensions
2243 after loads.
2244 (bitset_in_memory): Use rx_restricted_mem_operand.
2245 (bitinvert_in_memory): Likewise.
2246 (bitclr_in_memory): Likewise.
2247
2248 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2249 Nick Clifton <nickc@redhat.com>
2250
2251 * config/rx/rx.md: Add peepholes to match a register move followed
2252 by a comparison of the moved register. Replace these with an
2253 addition of zero that does both actions in one instruction.
2254
2255 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2256
2257 PR target/48986
2258 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2259 predicate to allow CONST_INT.
2260 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2261
2262 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2263
2264 * opts-common.c (opt_enum_arg_to_value): New.
2265 * opts.h (opt_enum_arg_to_value): Declare.
2266 * config/i386/i386.opt (fpmath): Remove.
2267 (mfpmath=): Use Enum, Init and Save.
2268 (fpmath_unit): New Enum and EnumValue entries.
2269 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2270 name for function fpmath state.
2271 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2272 * config/i386/i386.c: Include diagnostic.h.
2273 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2274 (ix86_target_string): Take enum fpmath_unit value instead of string.
2275 (ix86_debug_options): Update call to ix86_target_string.
2276 (ix86_option_override_internal): Don't process fpmath strings here.
2277 (x86_function_specific_save, ix86_function_specific_restore):
2278 Don't handle fpmath state specially.
2279 (ix86_function_specific_print): Pass fpmath state to
2280 ix86_target_string instead of printing in this function.
2281 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2282 Handle enum attributes.
2283 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2284 (ix86_valid_target_attribute_tree): Update option_strings
2285 handling. Handle fpmath as enum option.
2286 (ix86_can_inline_p): Update field names for function fpmath state.
2287 (ix86_expand_builtin): Update call to ix86_target_string.
2288 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2289 (ix86_fpmath): Remove.
2290 * config/i386/t-i386 (i386.o): Update dependencies.
2291
2292 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2293
2294 PR preprocessor/48677
2295 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2296 from decoded_options[0], not from itself.
2297
2298 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2299
2300 * config/i386/constraints.md (z): New constraint.
2301 * config/i386/i386.c (c): New mode attribute.
2302 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2303 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2304 constraint for operand 0.
2305 (*call_vzeroupper): Ditto.
2306 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2307 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2308 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2309 Use "lzm" constraint for operand 0.
2310 (*call_pop_vzeroupper): Ditto.
2311 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2312 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2313 constraint for operand 0.
2314 (*sibcall_vzeroupper): Ditto.
2315 (*sibcall_rex64_ms_sysv): Ditto.
2316 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2317 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2318 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2319 (*sibcall_pop_vzeroupper): Ditto.
2320 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2321 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2322 mode iterator. Use "<c>zm" constraint for operand 1.
2323 (*call_value_vzeroupper): Ditto.
2324 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2325 for operand 1.
2326 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2327 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2328 *call_value_pop_1. Use "lzm" constraint for operand 1.
2329 (*call_value_pop_vzeroupper): Ditto.
2330 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2331 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2332 mode iterator. Use "Uz" constraint for operand 1.
2333 (*sibcall_value_vzeroupper): Ditto.
2334 (*sibcall_value_rex64_ms_sysv): Ditto.
2335 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2336 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2337 constraint for operand 1.
2338 (*sibcall_value_pop_vzeroupper): Ditto.
2339 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2340 and "z" constraint for operand 2.
2341 (*tls_global_dynamic_32_gnu): Ditto.
2342 (*tls_local_dynamic_base_32_gnu): Ditto.
2343 (*tls_local_dynamic_base_64): Ditto.
2344 (*tls_local_dynamic_32_once): Ditto.
2345 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2346 Update all callers.
2347 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2348
2349 2011-05-16 Richard Guenther <rguenther@suse.de>
2350
2351 * gimple.c (gimple_types_compatible_p_1): Use names of the
2352 type itself, not its main variant.
2353 (iterative_hash_gimple_type): Likewise.
2354
2355 2011-05-16 Richard Guenther <rguenther@suse.de>
2356
2357 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2358 always visit pointer target and function result and argument types.
2359
2360 2011-05-16 Jason Merrill <jason@redhat.com>
2361
2362 PR c++/48999
2363 * tree-inline.c (copy_statement_list): Put back recursion.
2364
2365 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2366
2367 PR target/27663
2368 PR target/41076
2369 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2370 * config/avr/avr.md ("*ior<mode>qi.byte0",
2371 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2372
2373 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2374
2375 PR target/45099
2376 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2377 register is needed for a function argument.
2378
2379 2011-05-16 Richard Guenther <rguenther@suse.de>
2380
2381 * gimple.c (struct type_hash_pair): New type.
2382 (type_hash_pair_compare): New function.
2383 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2384
2385 2011-05-16 Revital Eres <revital.eres@linaro.org>
2386
2387 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2388
2389 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2390
2391 * config/i386/i386.md (floating point move splitters): Fix
2392 usage of standard_80387_constant_p.
2393 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2394
2395 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2396
2397 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2398
2399 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2400
2401 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2402 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2403 (tree_ssa_lim_finalize): Likewise.
2404
2405 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2406
2407 * config/i386/constraint.md (Yd, Yx): New register constraints.
2408 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2409 Yd conditional register constraint.
2410 (*movtf_internal): Use standard_sse_constant_opcode.
2411 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2412 Yx conditional register constraint.
2413 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2414 Yd conditional register constraint. Use standard_sse_constant_p to
2415 check for valid SSE constants and call standard_sse_constant_opcode to
2416 output SSE insn.
2417 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2418 constants and call standard_sse_constant_opcode to output SSE insn.
2419 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2420 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2421 optimize_size is set.
2422 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2423
2424 2011-05-14 Tobias Burnus <burnus@net-b.de>
2425
2426 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2427
2428 2011-05-13 Martin Jambor <mjambor@suse.cz>
2429
2430 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2431 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2432 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2433 (evaluate_conditions_for_ipcp_clone): Removed.
2434 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2435 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2436 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2437
2438 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2439
2440 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2441 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2442 lieu of MAY_HAVE_DEBUG_STMTS.
2443 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2444 debug statements if !MAY_HAVE_DEBUG_STMTS.
2445
2446 2011-05-13 Martin Thuresson <martint@google.com>
2447
2448 PR gcov-profile/47793
2449 * libgcov.c (gcov_exit): Support relative profile paths.
2450 * doc/invoke.texi (-fprofile-dir): Update for above change.
2451
2452 2011-05-13 Richard Guenther <rguenther@suse.de>
2453
2454 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2455 type-pair caching, do not compare hashes.
2456
2457 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2458
2459 PR middle-end/48965
2460 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2461 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2462
2463 2011-05-13 Kai Tietz <ktietz@redhat.com>
2464
2465 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2466 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2467 compatible type for TRUTH_NOT_EXPR.
2468
2469 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2470
2471 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2472 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2473 can_create_pseudo_p ().
2474
2475 2011-05-13 Richard Guenther <rguenther@suse.de>
2476
2477 PR lto/48978
2478 * gimple.c (iterative_hash_gimple_type): Revert change in
2479 pointer target and function result and argument hashing.
2480
2481 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2482
2483 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2484 (*movxf_internal_nointeger): Ditto.
2485 (*movdf_internal_rex64): Ditto.
2486 (*movdf_internal): Ditto.
2487 (*movdf_internal_nointeger): Ditto.
2488 (*movsf_internal): Ditto.
2489 (sincos splitters): Use can_create_pseudo ().
2490
2491 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2492
2493 * config/i386/i386-opts.h: New.
2494 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2495 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2496 ix86_section_threshold): Remove.
2497 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2498 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2499 OPT_mbranch_cost_.
2500 (ix86_option_override_internal): Don't decode strings for options
2501 other than -march=, -mtune= and -mfpmath=. Don't allow for
2502 __attribute__ uses in remaining diagnostics for options with
2503 string arguments. Don't check for integer arguments being negative.
2504 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2505 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2506 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2507 ix86_branch_cost, ix86_section_threshold): Remove.
2508 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2509 HeaderInclude.
2510 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2511 but not Var.
2512 (masm=): Use Enum and Init.
2513 (asm_dialect): New Enum and EnumValue entries.
2514 (mbranch-cost=): Use UInteger.
2515 (mlarge-data-threshold=): Use UInteger and Init.
2516 (mcmodel=): Use Enum and Init.
2517 (cmodel): New Enum and EnumValue entries.
2518 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2519 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2520 mregparm=): Use UInteger.
2521 (mstringop-strategy=): Use Enum and Init.
2522 (stringop_alg): New Enum and EnumValue entries.
2523 (mtls-dialect=): Use Enum and Init.
2524 (tls_dialect): New Enum and EnumValue entries.
2525 (mabi=): Use Enum and Init.
2526 (calling_abi): New Enum and EnumValue entries.
2527 (mveclibabi=): Use Enum and Init.
2528 (ix86_veclibabi): New Enum and EnumValue entries.
2529
2530 2011-05-13 Nick Clifton <nickc@redhat.com>
2531
2532 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2533 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2534
2535 2011-05-13 Kai Tietz <ktietz@redhat.com>
2536
2537 PR middle-end/48984
2538 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2539 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2540 (gimple_boolify): Check for cast for boolean_type_node instead for
2541 BOOLEAN_TYPE.
2542
2543 2011-05-13 Richard Guenther <rguenther@suse.de>
2544
2545 PR tree-optimization/48172
2546 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2547 multiplying by number of iterations for equal step.
2548 (vect_create_cond_for_alias_checks): Likewise.
2549
2550 2011-05-13 Andreas Schwab <schwab@redhat.com>
2551
2552 * configure.ac: Use AS_HELP_STRING throughout.
2553 * configure: Regenerate.
2554
2555 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2556
2557 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2558 (ix86_emit_restore_regs_using_mov): Likewise.
2559 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2560
2561 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2562
2563 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2564 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2565 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2566 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2567 RTX_OK_FOR_OLO10_P): ...here.
2568 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2569 SYMBOLIC_CONST.
2570
2571 2011-05-12 Kai Tietz <ktietz@redhat.com>
2572
2573 * gimplify.c (gimple_boolify): Re-boolify expression
2574 arguments even if expression type is of kind BOOLEAN_TYPE.
2575 (gimplify_boolean_expr): Removed.
2576 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2577 and XOR. Additional take care that we keep expression's type.
2578 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2579 of TRUTH_AND|OR|XOR_EXPR.
2580
2581 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2582
2583 PR tree-optimization/48975
2584 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2585 on all bbs here and free and clear ifc_bbs at the end.
2586
2587 2011-05-12 Richard Guenther <rguenther@suse.de>
2588
2589 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2590 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2591 until after simple checks.
2592 (gimple_types_compatible_p): Likewise.
2593 (iterative_hash_gimple_type): Always hash pointer targets
2594 and function return and argument types.
2595 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2596 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2597 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2598 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2599 completely in the simple compare section.
2600 (gimple_register_canonical_type): Query the cache again after
2601 registering.
2602
2603 2011-05-12 Richard Guenther <rguenther@suse.de>
2604
2605 PR tree-optimization/48172
2606 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2607 the number of iterations from the segment size calculation.
2608 (vect_create_cond_for_alias_checks): Adjust.
2609
2610 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2611
2612 PR debug/48967
2613 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2614 if validate_subreg fails.
2615
2616 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2617
2618 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2619 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2620 early.
2621
2622 2011-05-12 DJ Delorie <dj@redhat.com>
2623
2624 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2625 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2626 created builtin into rx_builtins array.
2627 (rx_builtin_decl): New function.
2628 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2629
2630 2011-05-12 DJ Delorie <dj@redhat.com>
2631 Nick Clifton <nickc@redhat.com>
2632
2633 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2634 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2635 (rx_is_legitimate_address): Add pre-decrement and post-increment
2636 addressing in HImode and QImode. Fix test for out of range
2637 REG+INT addressing.
2638 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2639 (rx_align_for_label): Test label before extracting its usage count.
2640 (rx_adjust_insn_lengths): Fix selection of insn codes.
2641 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2642
2643 2011-05-11 Jason Merrill <jason@redhat.com>
2644
2645 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2646
2647 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2648
2649 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2650 reindent the subsequent block.
2651
2652 2011-05-11 Satoru Takabayashi <satorux@google.com>
2653 Paul Pluzhnikov <ppluzhnikov@google.com>
2654
2655 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2656 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2657 * config.in: Add LINKER_HASH_STYLE.
2658 * configure.ac: Add --with-linker-hash-style.
2659 * configure: Regenerate.
2660
2661 2011-05-11 Richard Guenther <rguenther@suse.de>
2662
2663 PR middle-end/48964
2664 * gimple.c (iterative_hash_canonical_type): Fix typo.
2665
2666 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2667
2668 * config/i386/i386.c (legitimize_tls_address)
2669 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2670 expanders directly for TARGET_GNU2_TLS. Determine pic and
2671 __tls_get_addr symbol reference here. Update call to
2672 gen_tls_global_dynamic_{32,64} for added arguments.
2673 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2674 expanders directly for TARGET_GNU2_TLS. Determine
2675 __tls_get_addr symbol reference here. Update call to
2676 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2677 unique UNSPEC REG_EQUIV to libcall block.
2678 (ix86_tls_get_addr): Declare static.
2679 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2680 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2681 Do not determine pic and __tls_get_addr symbol reference here. Do not
2682 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2683 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2684 (tls_global_dynamic_64): Add operand 2. Do not determine
2685 __tls_get_addr symbol reference here. Do not call
2686 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2687 (tls_local_dynamic_base64): Ditto for operand 1.
2688
2689 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2690
2691 * function.c (expand_function_start): Initialize stack_check_probe_note
2692 only if the generic stack checking mechanism is used.
2693
2694 2011-05-11 Richard Guenther <rguenther@suse.de>
2695
2696 PR tree-optimization/15256
2697 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2698 (A & B) | C, combine (A op CST1) op CST2.
2699 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2700 visit assigns that have uses.
2701
2702 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2703
2704 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2705 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2706 (unpack_ts_type_common_value_fields): ...this. Update comment.
2707 (unpack_value_fields): Adjust for renaming.
2708 (lto_input_ts_type_tree_pointers): Split into...
2709 (lto_input_ts_type_common_tree_pointer): ...this and...
2710 (lto_input_ts_type_non_common_tree_pointers): ...this.
2711 (lto_input_tree_pointers): Adjust for above split.
2712 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2713 (pack_ts_type_common_value_fields): ...this. Update comment.
2714 (lto_output_ts_type_tree_pointers): Split into...
2715 (lto_output_ts_type_common_tree_pointers): ...this and...
2716 (lto_output_ts_type_non_common_tree_pointers): ...this.
2717 (lto_output_tree_pointers): Adjust for above split.
2718 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2719 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2720 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2721 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2722 Define.
2723 (struct tree_type): Split into...
2724 (struct tree_type_common: ...this and...
2725 (struct tree_type_with_lang_specific): ...this and...
2726 (struct tree_type_non_common): ...this. Adjust accessor macros
2727 accordingly.
2728 (TYPE_VALUES_RAW): Define.
2729 (union tree_node): Update for above changes.
2730 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2731 TS_TYPE_NON_COMMON.
2732 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2733 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2734 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2735 * treestructu.def (TS_TYPE): Remove.
2736 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2737 Define.
2738
2739 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2740
2741 PR debug/48159
2742 * tree-ssa.c (reset_debug_uses): New function.
2743 * tree-flow.h (reset_debug_uses): New prototype.
2744 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2745 * tree-loop-distribution.c (generate_loops_for_partition): Call
2746 reset_debug_uses on the stmts that will be removed. Keep around
2747 all debug stmts, don't count them as bits in partition bitmap.
2748 (generate_builtin): Don't count debug stmts or labels as bits in
2749 partition bitmap.
2750
2751 2011-05-11 Richard Guenther <rguenther@suse.de>
2752
2753 * gimple.c (gimple_type_hash_1): Merge with ...
2754 (gimple_type_hash): ... this.
2755 (gtc_visit): Remove mode parameter and simplify accordingly.
2756 (gimple_types_compatible_p_1): Likewise.
2757 (gimple_types_compatible_p): Likewise.
2758 (iterative_hash_gimple_type): Likewise.
2759 (visit): Likewise.
2760 (gimple_type_eq): Adjust.
2761
2762 2011-05-11 Revital Eres <revital.eres@linaro.org>
2763
2764 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2765 enters the branch create an anti edge in the opposite direction
2766 to prevent the creation of reg-moves.
2767 * modulo-sched.c: Adjust comment to reflect the fact we are
2768 scheduling closing branch.
2769 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2770 (stage_count): New field in struct partial_schedule.
2771 (calculate_stage_count): New function.
2772 (normalize_sched_times): Rename to reset_sched_times and handle
2773 incrementing the sched time of the nodes by a constant value
2774 passed as parameter.
2775 (duplicate_insns_of_cycles): Skip closing branch.
2776 (sms_schedule_by_order): Schedule closing branch.
2777 (ps_insn_find_column): Handle closing branch.
2778 (sms_schedule): Call reset_sched_times and adjust the code to
2779 support scheduling of the closing branch.
2780 (ps_insert_empty_row): Update calls to normalize_sched_times
2781 and rotate_partial_schedule functions.
2782
2783 2011-05-11 Richard Guenther <rguenther@suse.de>
2784
2785 PR middle-end/48953
2786 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2787
2788 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2789
2790 * opts.c (finish_options): Move warning settings from process_options.
2791 * toplev.c (process_options): Move warning settings to finish_options.
2792
2793 2011-05-11 Richard Guenther <rguenther@suse.de>
2794
2795 PR tree-optimization/18041
2796 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2797 (simplify_bitwise_binary): ... this. Handle operand conversions
2798 by applying them to the result instead.
2799 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2800
2801 2011-05-11 Richard Guenther <rguenther@suse.de>
2802
2803 * gimple.c (gimple_canonical_types_compatible_p): Split out
2804 from gimple_types_compatible_p and friends. Do not recurse
2805 to pointed-to types.
2806 (gimple_canonical_type_eq): Use it.
2807 (iterative_hash_canonical_type): Split out from
2808 iterative_hash_gimple_type and friends. Do not recurse
2809 to pointed-to types.
2810 (gimple_canonical_type_hash): Use it, allocate the hash here.
2811
2812 2011-05-11 Revital Eres <revital.eres@linaro.org>
2813
2814 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2815 recognizing doloop.
2816
2817 2011-05-11 Revital Eres <revital.eres@linaro.org>
2818
2819 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2820 instead of PREV_INSN.
2821
2822 2011-05-11 Revital Eres <revital.eres@linaro.org>
2823
2824 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2825 * loop-doloop.c (doloop_condition_get): Likewise.
2826 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2827 (doloop_end): New.
2828 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2829
2830 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2831
2832 * tree.def (CASE_LABEL_EXPR): Add an operand.
2833 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2834
2835 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2836
2837 * c-decl.c (c_override_global_bindings_to_false): Remove.
2838 (global_bindings_p): Don't check
2839 c_override_global_bindings_to_false.
2840 * c-tree.h (c_override_global_bindings_to_false): Remove.
2841 * c-typeck.c (composite_type): Don't set
2842 c_override_global_bindings_to_false.
2843
2844 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2845
2846 PR target/48857, 48495
2847 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2848 (VSX_MODE): Ditto.
2849 (VSX_MOVE_MODE): Ditto.
2850 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2851 VSX vector types. Add V2DImode.
2852 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2853 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2854 (MODES_TIEABLE_P): Ditto.
2855
2856 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2857 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2858 VSX_VECTOR_MODE.
2859 (init_cumulative_args): Ditto.
2860 (rs6000_function_arg_boundary): Ditto.
2861 (rs6000_function_arg_advance_1): Ditto.
2862 (rs6000_function_arg): Ditto.
2863 (rs6000_function_ok_for_sibcall): Ditto.
2864 (emit_frame_save): Ditto.
2865 (rs6000_function_value): Ditto.
2866 (rs6000_libcall_value): Ditto.
2867
2868 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2869
2870 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2871 i386/darwin-lib.h to $libgcc_tm_file.
2872 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2873
2874 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2875
2876 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2877
2878 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2879
2880 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2881 * config/rs6000/rs6000-tables.opt: New file (generated).
2882 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2883 rs6000/rs6000-tables.opt to extra_options.
2884 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2885 * config/rs6000/rs6000.c (rs6000_select): Remove.
2886 (processor_target_table): Move contents to rs6000-cpus.def.
2887 (darwin_rs6000_override_options): Check
2888 global_options_set.x_rs6000_cpu_index instead of
2889 rs6000_select[1].string.
2890 (rs6000_option_override_internal): Likewise.
2891 (rs6000_handle_option): Don't assert that global structures are in
2892 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2893 (rs6000_default_cpu): New variable.
2894 (rs6000_file_start): Set it instead of local default_cpu. Check
2895 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2896 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2897 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2898 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2899 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2900 rs6000_select): Remove.
2901 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2902 Remove.
2903 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2904 * config/rs6000/t-rs6000
2905 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2906 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2907 global_options_set.x_rs6000_cpu_index instead of
2908 rs6000_select[1].string.
2909 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2910 global_options_set.x_rs6000_cpu_index instead of
2911 rs6000_select[1].string.
2912
2913 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2914
2915 * config.gcc (libgcc_tm_file): Define instead of including files
2916 from ../../libgcc/config/ in tm_file.
2917 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2918 * configure: Regenerate.
2919 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2920 libgcc_tm.h, cs-libgcc_tm.h): New.
2921 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2922 (clean): Remove libgcc_tm.h.
2923 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2924 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2925 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2926
2927 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2928
2929 PR target/48896
2930 * config/avr/avr.c (avr_ret_register): Return unsigned int
2931 instead of int.
2932 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2933 it to avr_libcall_value.
2934 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2935 expand_expr.
2936 (avr_expand_binop_builtin): Ditto.
2937 (avr_expand_unop_builtin): Ditto.
2938
2939 2011-05-10 DJ Delorie <dj@redhat.com>
2940
2941 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2942 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2943 * config/rx/rx.c (rx_align_for_label): Add label and
2944 uses_threshold parameters. Do not align when the label is not
2945 used enough.
2946 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2947
2948 2011-05-10 Richard Guenther <rguenther@suse.de>
2949
2950 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2951 a series of conversions and apply foldings similar to what
2952 fold-const does.
2953 (tree_ssa_forward_propagate_single_use_vars): Call it.
2954
2955 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2956
2957 PR tree-optimization/48611
2958 PR tree-optimization/48794
2959 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2960 referenced from RESX or EH_DISPATCH arguments.
2961
2962 PR debug/48928
2963 * dfp.c (decimal_to_decnumber): Handle conversion from
2964 dconst{1,2,m1,half}.
2965
2966 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2967
2968 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2969 for !flag_prefer_avx128.
2970 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2971
2972 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2973
2974 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2975 (fold_ternary_loc): Use expr_location_or.
2976
2977 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2978
2979 PR debug/48853
2980 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2981 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2982 Pmode and mem_mode is not VOIDmode.
2983
2984 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2985
2986 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2987 TYPE_QUAL_RESTRICT): Convert to enum.
2988
2989 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2990
2991 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2992 (const_pow2_1_to_8_operand): Ditto.
2993 (const_pow2_1_to_128_operand): Ditto.
2994 (const_pow2_1_to_32768_operand): Ditto.
2995 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2996 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2997 in insn constraint to check integer value of operand 3.
2998 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2999
3000 (PINSR_MODE): New mode iterator.
3001 (sse2p4_1): New mode attribute.
3002 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3003 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3004 iterator. Use const_int_operand instead of
3005 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3006 exact_log2 in insn constraint to check integer value of operand 3.
3007
3008 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3009
3010 * config/i386/sse.md (blendbits): Remove mode attribute.
3011 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3012 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3013 Check integer value of operand 3 in insn constraint.
3014
3015 2011-05-09 Richard Guenther <rguenther@suse.de>
3016
3017 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3018 for diagnostics.
3019 (lto_symtab_merge): Likewise. Do not register types here.
3020 (lto_symtab_merge_decls_2): Likewise.
3021 (lto_symtab_merge_decls_1): Likewise.
3022 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3023 * gimple.c (enum gtc_mode): Declare.
3024 (gimple_types_compatible_p): Make static.
3025
3026 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3027
3028 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3029 temporary register to match Pmode.
3030
3031 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3032
3033 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3034 and *vec_concatv4si_1_avx.
3035
3036 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3037
3038 PR rtl-optimization/48927
3039 * ira-conflicts.c (commutative_constraint_p): Use
3040 recog_data.alternative_enabled_p to disable alternatives where
3041 "enabled" attribute is false.
3042 (get_dup_num): Ditto.
3043 * ira-lives.c (single_reg_class): Ditto.
3044 (ira_implicitly_set_insn_hard_regs): Ditto.
3045
3046 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3047
3048 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3049 (dataflow_set_preserve_mem_locs): Likewise.
3050
3051 2011-05-09 Philipp Thomas <pth@suse.de>
3052
3053 * config/mep/mep.c (mep_validate_vliw): Syntax description
3054 should not be translated.
3055
3056 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3057
3058 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3059 * config/mips/mips-tables.opt: New file (generated).
3060 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3061 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3062 MIPS_ARCH_OPTION_NATIVE): Define.
3063 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3064 mips-cpus.def.
3065 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3066 mips_parse_cpu): Remove.
3067 (mips_cpu_info_from_opt, mips_default_arch): New.
3068 (mips_handle_option): Don't assert that global structures are in
3069 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3070 (mips_option_override): Use new variables and functions to set
3071 state of these options. Use strcmp to check for individual CPU names.
3072 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3073 definition.
3074 * config/mips/mips.opt (march=): Use ToLower and Enum.
3075 (mips): Use ToLower, Enum and Var.
3076 (mtune=): Use ToLower and Enum.
3077 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3078
3079 2011-05-08 Jan Hubicka <jh@suse.cz>
3080
3081 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3082 Arrange type pairs to be UID ordered.
3083 (gimple_lookup_type_leader): Make inline.
3084
3085 2011-05-09 Nick Clifton <nickc@redhat.com>
3086
3087 PR target/48899
3088 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3089 PROCESSOR_DEFAULT.
3090
3091 PR target/48897
3092 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3093 variable 's'.
3094
3095 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3096
3097 * combine.c (simplify_comparison): Abstract out parts into...
3098 (simplify_compare_const): ... new function.
3099 (try_combine): Generalize parallel arithmetic/compare combining
3100 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3101
3102 2011-05-08 Jan Hubicka <jh@suse.cz>
3103
3104 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3105 (cgraph_create_virtual_clone): Call hooks once virtual clone
3106 is finished.
3107 * cgraph.h (cgraph_clone_node): Update prototype.
3108 * ipa-cp.c (ipcp_estimate_growth): Use
3109 estimate_ipcp_clone_size_and_time.
3110 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3111 * lto-cgraph.c (input_node): Update.
3112 * ipa-inline.c (recursive_inlining): Update.
3113 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3114 (evaluate_conditions_for_known_args): Break out from ...
3115 (evaluate_conditions_for_edge): ... here.
3116 (evaluate_conditions_for_ipcp_clone): New function.
3117 (inline_node_duplication_hook): Update clone summary based
3118 on parameter map.
3119 (estimate_callee_size_and_time): Rename to ...
3120 (estimate_node_size_and_time): take NODE instead of EDGE;
3121 take POSSIBLE_TRUTHS as argument.
3122 (estimate_callee_size_and_time): Update.
3123 (estimate_ipcp_clone_size_and_time): New function.
3124 (do_estimate_edge_time): Update.
3125
3126 2011-05-08 Richard Guenther <rguenther@suse.de>
3127
3128 PR middle-end/48908
3129 PR middle-end/48905
3130 * expmed.c (expand_shift_1): Compute adjusted constant shift
3131 amount manually.
3132
3133 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3134
3135 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3136
3137 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3138
3139 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3140
3141 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3142
3143 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3144
3145 2011-05-07 Jan Hubicka <jh@suse.cz>
3146
3147 * ipa-inline-transform.c (inline_call): Account when program size
3148 decreases.
3149 * ipa-inline.c (relative_time_benefit): New function.
3150 (edge_badness): Reorganize to be power 2 based; fix thinko when
3151 computing badness for negative growth; update comments to match
3152 reality; better dumps.
3153
3154 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3155
3156 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3157 type to bool and adjust comment.
3158 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3159 (fold_mathfn_compare): Remove calls to global_bindings_p.
3160 (fold_inf_compare): Likewise.
3161 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3162 * c-tree.h (global_bindings_p): Adjust prototype.
3163 * c-decl.c (global_bindings_p): Return bool and simplify.
3164
3165 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3166
3167 PR tree-optimization/48837
3168 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3169 when accumulator transformation is performed.
3170
3171 2011-05-06 Jan Hubicka <jh@suse.cz>
3172
3173 * i386.h (ix86_tune_indices): Add
3174 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3175 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3176 * i386.c (initial_ix86_tune_features): Add
3177 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3178 (software_prefetching_beneficial_p): Remove predicate.
3179 (ix86_option_override_internal): Use new macro.
3180
3181 2011-05-06 Jan Hubicka <jh@suse.cz>
3182
3183 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3184
3185 2011-05-06 Jan Hubicka <jh@suse.cz>
3186
3187 * cgraph.c (cgraph_add_thunk): Create real function node instead
3188 of alias node; finalize it and mark needed/reachale; arrange visibility
3189 to be right and add it into the corresponding same comdat group list.
3190 (dump_cgraph_node): Dump thunks.
3191 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3192 cgraph_function_with_gimple_body_p,
3193 cgraph_first_function_with_gimple_body,
3194 cgraph_next_function_with_gimple_body): New functions.
3195 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3196 New macros.
3197 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3198 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3199 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3200 devirtualization when optimizing.
3201 (verify_cgraph_node): Verify thunks.
3202 (cgraph_analyze_function): Analyze thunks.
3203 (cgraph_mark_functions_to_output): Output thunks only in combination
3204 with function they are assigned to.
3205 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3206 alias into normal node.
3207 (assemble_thunks): New functoin.
3208 (cgraph_expand_function): Use it.
3209 * lto-cgraph.c (lto_output_node): Stream thunks.
3210 (input_overwrite_node): Stream in thunks.
3211 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3212 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3213 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3214 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3215 (inline_analyze_function): Do not care about thunk jump functions.
3216 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3217 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3218 cgraph_function_with_gimple_body_p.
3219 * passes.c (do_per_function_toporder): Use
3220 cgraph_function_with_gimple_body_p.
3221 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3222 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3223 (function_called_by_processed_nodes_p): Likewise.
3224
3225 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3226
3227 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3228 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3229 entries.
3230 (mabi=): Replace with separate entries for mabi=altivec,
3231 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3232 mabi=ieeelongdouble and mabi=ibmlongdouble.
3233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3234 check for -mabi=spe without SPE ABI support here.
3235 (rs6000_handle_option): Replace OPT_mabi_ handling with
3236 OPT_mabi_altivec and OPT_mabi_spe handling.
3237
3238 2011-05-06 Cary Coutant <ccoutant@google.com>
3239
3240 * dwarf2out.c (contains_subprogram_definition): New function.
3241 (should_move_die_to_comdat): Call it.
3242
3243 2011-05-06 Jeff Law <law@redhat.com>
3244
3245 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3246 remove_ctrl_stmt_and_useless_edges.
3247 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3248 (fixup_template_block, thread_single_edge): Likewise.
3249 (mark_threaded_blocks): Use THREAD_TARGET.
3250
3251 2011-05-06 Alan Modra <amodra@gmail.com>
3252
3253 PR target/48900
3254 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3255 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3256
3257 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3258
3259 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3260 constraint modifier to "r".
3261
3262 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3263
3264 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3265 fall through for OPT_mcmodel_.
3266
3267 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3268
3269 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3270 instruction sizes.
3271 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3272
3273 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3274
3275 PR target/47930
3276 * config/arm/arm.opt (marm): Document it.
3277 (mthumb): Reject negative variant.
3278
3279 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3280
3281 PR target/48898
3282 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3283 Fix typo in "ccvt" variable name.
3284
3285 2011-05-06 Tristan Gingold <gingold@adacore.com>
3286
3287 PR target/48895
3288 * config/vms/vms-ar.c (main): Remove cwd variable.
3289
3290 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3291
3292 PR debug/48902
3293 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3294
3295 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3296
3297 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3298 * gimplify.c (gimplify_switch_expr): Likewise.
3299 * omp-low.c (expand_omp_sections): Likewise.
3300 * tree-eh.c (lower_try_finally_switch): Likewise.
3301 (lower_eh_dispatch): Likewise.
3302 * tree.h (build_case_label): Declare.
3303 * tree.c (build_case_label): Define.
3304
3305 2011-05-05 Jason Merrill <jason@redhat.com>
3306
3307 PR c++/40975
3308 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3309 (copy_statement_list): Don't recurse.
3310 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3311 STATEMENT_LIST.
3312
3313 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3314
3315 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3316 through from -mfpu= handling.
3317 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3318
3319 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3320
3321 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3322 POST_MODIFY.
3323
3324 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3325
3326 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3327 for 11.31.
3328 (hppa[12]*-*-hpux11*): Ditto.
3329 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3330 * config/ia64/hpux-unix2003.h: New.
3331 * config/pa/pa-hpux1131.opt: New.
3332 * config/pa/pa-hpux1131.h: New.
3333 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3334 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3335 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3336
3337 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3338
3339 PR debug/48853
3340 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3341 instead of mode as 3rd argument to recursive call.
3342 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3343 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3344 VOIDmode.
3345 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3346 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3347 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3348 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3349
3350 2011-05-05 Julian Brown <julian@codesourcery.com>
3351
3352 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3353 parenthesis in D-register case.
3354
3355 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3356
3357 * opt-functions.awk (var_type_struct): Handle Enum options.
3358 * optc-gen.awk: Don't check range of variables of character type.
3359 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3360 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3361 rs6000_sdata_name, rs6000_explicit_options): Remove.
3362 (rs6000_option_override_internal): Check for -malign-power here.
3363 Use global_options_set instead of rs6000_explicit_options.
3364 (rs6000_parse_fpu_option): Remove.
3365 (rs6000_handle_option): Access variables via opts and opts_set
3366 pointers. Use error_at and warning_at. Add fall-through
3367 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3368 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3369 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3370 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3371 here. Don't use rs6000_parse_fpu_option.
3372 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3373 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3374 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3375 (mrecip=): Use Var.
3376 (mspe): Use Var and Save.
3377 (mtraceback=): Use Enum and Var.
3378 (rs6000_traceback_type): New Enum and EnumValue entries.
3379 (mfloat-gprs=): Use Enum, Var and Save.
3380 (rs6000_float_gprs): New Enum and EnumValue entries.
3381 (mlong-double-): use Var and Save.
3382 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3383 (malign-): Use Enum and Var.
3384 (rs6000_alignment_flags): New Enum and EnumValue entries.
3385 (mfpu=): Use Enum.
3386 (fpu_type_t): New Enum and EnumValue entries.
3387 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3388 global_options_set instead of rs6000_explicit_options.
3389 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3390 global_options_set instead of rs6000_explicit_options.
3391 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3392 global_options_set instead of rs6000_explicit_options.
3393 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3394 global_options_set instead of rs6000_explicit_options.
3395 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3396 global_options_set instead of rs6000_explicit_options.
3397 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3398 global_options_set instead of rs6000_explicit_options.
3399 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3400 definition.
3401 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3402 global_options_set instead of rs6000_explicit_options.
3403 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3404 (rs6000_cmodel): New Enum and EnumValue entries.
3405 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3406 global_options_set instead of rs6000_explicit_options.
3407 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3408 (mtls-size=): Use Enum and Var.
3409 (rs6000_tls_size): New Enum and EnumValue entries.
3410
3411 2011-05-05 Michael Matz <matz@suse.de>
3412
3413 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3414 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3415 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3416 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3417 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3418 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3419 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3420 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3421 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3422 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3423 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3424 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3425 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3426 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3427 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3428 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3429
3430 2011-05-05 Richard Guenther <rguenther@suse.de>
3431
3432 * expmed.c (expand_variable_shift): Rename to ...
3433 (expand_shift_1): ... this. Take an expanded shift amount.
3434 For rotates recurse directly not building trees for the shift amount.
3435 (expand_variable_shift): Wrap around expand_shift_1.
3436 (expand_shift): Adjust.
3437
3438 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3439
3440 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3441
3442 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3443
3444 * tree.h (get_pending_sizes): Remove prototype.
3445 (put_pending_size): Likewise.
3446 (put_pending_sizes): Likewise.
3447 * stor-layout.c (pending_sizes): Delete.
3448 (get_pending_sizes): Likewise.
3449 (put_pending_size): Likewise.
3450 (put_pending_sizes): Likewise.
3451 (variable_size): Do not call put_pending_size and tidy up.
3452 * function.h (struct function): Remove dont_save_pending_sizes_p.
3453 * lto-streamer-in.c (input_function): Do not stream it.
3454 * lto-streamer-out.c (output_function): Likewise.
3455 * tree-inline.c (initialize_cfun): Do not copy it.
3456 * c-decl.c (store_parm_decls): Do not set it.
3457 * omp-low.c (create_task_copyfn): Likewise.
3458 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3459
3460 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3461
3462 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3463 conditions.
3464 (*movdf_internal): Ditto.
3465 (*movdf_internal_nointeger): Ditto.
3466 (*movsf_internal): Ditto.
3467
3468 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3469
3470 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3471 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3472 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3473 (c_variable_size): Remove.
3474 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3475 call put_pending_sizes.
3476 (get_parm_info): Add parameter expr. Use it to set
3477 arg_info->pending_sizes.
3478 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3479 get_pending_sizes.
3480 * c-parser.c (c_parser_parms_declarator): Update call to
3481 c_parser_parms_list_declarator.
3482 (c_parser_parms_list_declarator): Take parameter expr. Update
3483 call to push_parm_decl. Update recursive call. Don't call
3484 get_pending_sizes. Update calls to get_parm_info.
3485 (c_parser_objc_method_definition): Update calls to
3486 c_parser_objc_method_decl and objc_start_method_definition.
3487 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3488 (c_parser_objc_method_decl): Add parameter expr. Update call to
3489 grokparm.
3490 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3491 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3492 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3493
3494 2011-05-05 Michael Hope <michael.hope@linaro.org>
3495
3496 PR pch/45979
3497 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3498 __ARM_EABI__ hosts.
3499
3500 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3501
3502 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3503 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3504 (spu_output_mi_thunk): New function.
3505
3506 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3507
3508 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3509 targetm.asm_out.print_operand.
3510 * config/sol2.c: Include target.h.
3511
3512 2011-05-04 Jan Hubicka <jh@suse.cz>
3513
3514 * ipa-inline.c (reset_edge_caches): New function.
3515 (update_caller_keys): Add check_inlinablity_for; do not
3516 reset edge caches; remove now unnecesary loop.
3517 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3518 (update_all_callee_keys): Likewise.
3519 (inline_small_functions): Sanity check cache; update code
3520 recomputing it.
3521
3522 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3523
3524 PR rtl-optimization/47612
3525 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3526 as the last insn of the sequence to be moved.
3527
3528 2011-05-04 Tobias Burnus <burnus@net-b.de>
3529
3530 PR fortran/48864
3531 * doc/invoke.texi (Ofast): Document that it
3532 enables Fortran's -fno-protect-parens.
3533
3534 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3535
3536 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3537
3538 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3539
3540 * stor-layout.c (variable_size): Do not issue errors.
3541
3542 2011-05-04 Richard Guenther <rguenther@suse.de>
3543
3544 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3545 for array-ref indices.
3546 (tree_coverage_counter_addr): Likewise.
3547 (build_fn_info_type): Use size_int for index types.
3548 (build_gcov_info): Likewise.
3549
3550 2011-05-04 Richard Guenther <rguenther@suse.de>
3551
3552 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3553 to build_int_cst.
3554 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3555 for constructor indices.
3556 (push_init_level): Likewise.
3557
3558 2011-05-04 Richard Guenther <rguenther@suse.de>
3559
3560 * explow.c (promote_mode): Move variable declarations before code.
3561
3562 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3563
3564 * tree.h (build_function_type_array): Declare.
3565 (build_varargs_function_type_array): Declare.
3566 (build_function_type_vec, build_varargs_function_type_vec): Define.
3567 * tree.c (build_function_type_array_1): New function.
3568 (build_function_type_array): New function.
3569 (build_varargs_function_type_array): New function.
3570
3571 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3572
3573 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3574 before setting STMT_VINFO_TYPE.
3575
3576 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3577
3578 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3579 instead of spu_pass_by_reference.
3580
3581 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3582
3583 * calls.c (emit_library_call_value_1): Invoke
3584 promote_function_mode hook on libcall arguments.
3585 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3586 argument being NULL.
3587 * targhooks.c (default_promote_function_mode): Lisewise.
3588 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3589 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3590
3591 * doc/tm.texi: Document that TYPE argument might be NULL.
3592
3593 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3594
3595 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3596
3597 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3598
3599 From Bernd Schmidt
3600 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3601
3602 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3603
3604 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3605 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3606 Move ...
3607 * mips-tfile.c: ... here.
3608 Don't include coretypes.h, tm.h, filenames.h.
3609 (saber_stop): Remove definition and all calls.
3610 [__SABER__]: Remove.
3611 (__LINE__): Remove default.
3612 (Size_t, Ptrdiff_t): Remove definitions.
3613 Replace by size_t, ptrdiff_t.
3614 [!MIPS_DEBUGGING_INFO]: Remove.
3615 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3616 (progname): Add const.
3617 (STATIC): Remove.
3618 Replace all uses by static.
3619 (ALIGN_SYMTABLE_OFFSET): Remove default.
3620 * mips-tdump.c: Don't include coretypes.h, tm.h.
3621 Remove !MIPS_IS_STAB guard.
3622 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3623 $(TM_H), filenames.h dependencies.
3624 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3625
3626 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3627
3628 From Jie Zhang
3629 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3630 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3631
3632 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3633
3634 From Bernd Schmidt
3635 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3636 account and save/restore RETS.
3637 (PROFILE_BEFORE_PROLOGUE): Define.
3638 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3639 the push insn to use predecrement.
3640
3641 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3642
3643 From Jie Zhang
3644 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3645
3646 2011-05-04 Nick Clifton <nickc@redhat.com>
3647
3648 * config/mn10300/mn10300.c: Include cfgloop.h.
3649 (DUMP): New macro.
3650 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3651 Lcc or a FLcc insn into the instruction stream.
3652 (mn10300_block_contains_call): New function. Returns true if the
3653 given basic block contains a CALL insn.
3654 (mn10300_loop_contains_call_insn): New function. Returns true if
3655 the given loop contains a CALL insn.
3656 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3657 to use the SETLB and Lcc or FLcc insns.
3658 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3659 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3660 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3661 disable the SETLB optimization.
3662 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3663 __SETLB__ or __NO_SETLB__.
3664 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3665 (movsf_internal): Handle MDR register.
3666 (cmpsi): Make visible.
3667 (setlb): New pattern.
3668 (Lcc): New pattern.
3669 (FLcc): New pattern.
3670
3671 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3672
3673 PR target/48860
3674 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3675 for reg<->xmm moves.
3676 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3677 (vec_concatv2di_rex64_sse): Ditto.
3678 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3679 (*vec_extractv2di_1_rex64): Ditto.
3680
3681 Revert:
3682 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3683
3684 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3685 reg<->xmm moves.
3686 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3687
3688 2011-05-04 Richard Guenther <rguenther@suse.de>
3689
3690 * tree.h (int_const_binop): Remove notrunc argument.
3691 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3692 create integer constants that are properly truncated.
3693 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3694 (const_binop): Remove zero notrunc argument to int_const_binop.
3695 (size_binop_loc): Likewise.
3696 (fold_div_compare): Likewise.
3697 (maybe_canonicalize_comparison_1): Likewise.
3698 (fold_comparison): Likewise.
3699 (fold_binary_loc): Likewise.
3700 (multiple_of_p): Likewise.
3701 * expr.c (store_constructor): Likewise.
3702 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3703 (maybe_fold_stmt_addition): Likewise.
3704 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3705 * stor-layout.c (layout_type): Likewise.
3706 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3707 * tree-sra.c (build_ref_for_offset): Likewise.
3708 (build_user_friendly_ref_for_offset): Likewise.
3709 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3710 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3711 * tree-ssa-loop-niter.c (inverse): Likewise.
3712 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3713 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3714 * tree-switch-conversion.c (check_range): Likewise.
3715 (build_constructors): Likewise.
3716 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3717 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3718 (extract_range_from_assert): Likewise.
3719 (vrp_int_const_binop): Likewise.
3720 (extract_range_from_binary_expr): Likewise.
3721 (extract_range_from_unary_expr): Likewise.
3722 (check_array_ref): Likewise.
3723 (find_case_label_range): Likewise.
3724 (simplify_div_or_mod_using_ranges): Likewise.
3725 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3726 comparing case labels for merging.
3727
3728 2011-05-03 Mark Wielaard <mjw@redhat.com>
3729
3730 * dwarf2out.c (debug_str_hash_forced): Removed.
3731 (gen_label_for_indirect_string): Removed.
3732 (get_debug_string_label): Removed.
3733 (AT_string_form): Generate label directly.
3734 (output_indirect_string): Test indirect_string_node for
3735 DW_FORM_strp instead of checking label and refcount.
3736 (prune_indirect_string): Removed.
3737 (prune_unused_types): Don't check debug_str_hash_forced or
3738 call prune_indirect_string.
3739
3740 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3741
3742 PR other/48093
3743 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3744
3745 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3746
3747 PR debug/47994
3748 PR debug/47919
3749 * combine.c (try_combine): Skip debug insns at m_split tests.
3750
3751 2011-04-26 Mark Wielaard <mjw@redhat.com>
3752
3753 PR42288
3754 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3755 when info_section_emitted.
3756
3757 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3758
3759 * config/mips/mips-opts.h: New.
3760 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3761 to mips-opts.h.
3762 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3763 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3764 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3765 via opts pointer.
3766 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3767 mips-opts.h.
3768 (mips_abi, mips_code_readable): Don't declare.
3769 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3770 (mabi=): Use Enum and Var.
3771 (mips_abi): New Enum and EnumValue entries.
3772 (mcode-readable=): Use Enum and Var.
3773 (mips_code_readable_setting): New Enum and EnumValue entries.
3774 (mr10k-cache-barrier=): Use Enum and Var.
3775 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3776
3777 2011-05-03 Jan Hubicka <jh@suse.cz>
3778
3779 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3780 replace hash by pointer map.
3781 (cgraph_node_set_element_def, cgraph_node_set_element,
3782 const_cgraph_node_set_element, varpool_node_set_element_def,
3783 varpool_node_set_element, const_varpool_node_set_element): Remove.
3784 (free_cgraph_node_set, free_varpool_node_set): New function.
3785 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3786 * tree-emutls.c: Free varpool node set.
3787 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3788 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3789 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3790 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3791 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3792 Move here from ipa.c; implement using pointer_map
3793 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3794 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3795 debug_cgraph_node_set, varpool_node_set_new,
3796 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3797 dump_varpool_node_set, debug_varpool_node_set):
3798 Move to ipa-uitls.c.
3799 * passes.c (ipa_write_summaries): Update.
3800
3801 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3802
3803 From Mike Frysinger:
3804 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3805 bf542/bf544/bf547/bf548/bf549.
3806
3807 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3808
3809 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3810
3811 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3812
3813 From Bernd Schmidt:
3814 * config/bfin/bfin.md (MOVCC): New mode_macro.
3815 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3816 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3817 comments from generated assembly.
3818
3819 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3820
3821 From Bernd Schmidt
3822 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3823 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3824 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3825 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3826 * config/bfin/lib1funcs.asm (___muldi3): New function.
3827
3828 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3829
3830 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3831 build_function_type_list instead of build_function_type.
3832 Rearrange initialization of `args' to do so.
3833
3834 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3835
3836 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3837 instead of build_function_type.
3838
3839 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3840
3841 * config/rs6000/rs6000.c (spe_init_builtins): Call
3842 build_function_type_list instead of build_function_type.
3843 (paired_init_builtins, altivec_init_builtins): Likewise.
3844 (builtin_function_type): Likewise.
3845
3846 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3847
3848 * config/sh/sh.c (sh_media_init_builtins): Call
3849 build_function_type_list instead of build_function_type.
3850
3851 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3852
3853 * config/sparc/sparc.c (sparc_file_end): Call
3854 build_function_type_list instead of build_function_type.
3855
3856 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3857
3858 * config/alpha/alpha.c (alpha_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/xtensa/xtensa.c (xtensa_init_builtins): Call
3864 build_function_type_list instead of build_function_type.
3865
3866 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3867
3868 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3869 build_function_type_list instead of build_function_type.
3870 Delete `endlink' variable.
3871
3872 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3873
3874 * config/avr/avr.c (avr_init_builtins): Call
3875 build_function_type_list instead of build_function_type.
3876
3877 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3878
3879 * config/picochip/picochip.c (picochip_init_builtins): Call
3880 build_function_type_list instead of build_function_type.
3881 Delete `endlink' variable.
3882
3883 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3884
3885 * config/bfin/bfin.c (bfin_init_builtins): Call
3886 build_function_type_list instead of build_function_type.
3887
3888 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3889
3890 From Bernd Schmidt
3891 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3892 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3893
3894 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3895
3896 From Jie Zhang:
3897 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3898 libbffastfp overrides libgcc when -mfast-fp.
3899
3900 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3901
3902 Originally from Bernd Schmidt
3903 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3904 * config/bfin/bfin.c (override_options): Test it and error if
3905 TARGET_FDPIC.
3906
3907 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3908
3909 Originally From Bernd Schmidt
3910 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3911 FD-PIC.
3912
3913 2011-05-03 Jeff Law <law@redhat.com>
3914
3915 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3916 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3917 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3918 than accessing AUX field directly. Free the AUX field before
3919 clearing it.
3920 (thread_block, thread_through_loop_header): Likewise.
3921 (thread_single_edge, mark_threaded_blocks): Likewise.
3922 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3923 (register_jump_thread): Do not attempt to thread to a NULL edge.
3924
3925 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3926
3927 * function.c (init_function_start): Call decide_function_section.
3928 * varasm.c (decide_function_section): New function.
3929 (assemble_start_function): When not using
3930 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3931 or first_function_block_is_cold.
3932 * rtl.h (decide_function_section): Declare.
3933
3934 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3935 Jakub Jelinek <jakub@redhat.com>
3936
3937 PR target/48774
3938 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3939 only succeed if req_mode is the same as set_mode.
3940
3941 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3942
3943 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3944 * genemit.c (gen_exp): Handle RETURN.
3945 * emit-rtl.c (verify_rtx_sharing): Likewise.
3946 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3947 * rtl.c (copy_rtx): RETURN is shared.
3948 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3949 (ret_rtx): New.
3950 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3951 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3952 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3953 * config/cris/cris.c (cris_expand_return): Likewise.
3954 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3955 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3956 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3957 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3958 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3959 Likewise.
3960 * config/v850/v850.c (expand_epilogue): Likewise.
3961 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3962 * config/arm/arm.md (epilogue): Likewise.
3963 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3964 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3965 variable to ret_reg.
3966
3967 2011-05-03 Richard Guenther <rguenther@suse.de>
3968
3969 PR lto/48846
3970 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3971 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3972 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3973
3974 2011-05-03 Richard Guenther <rguenther@suse.de>
3975
3976 * c-decl.c (grokdeclarator): Instead of looking at
3977 TREE_OVERFLOW check if the constant fits in the index type.
3978
3979 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3980
3981 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3982 (vec_store_lanes<mode><mode>): Likewise.
3983
3984 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3985
3986 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3987 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3988 convert_optab_index values.
3989 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3990 * genopinit.c (optabs): Initialize the new optabs.
3991 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3992 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3993 (expand_STORE_LANES): New functions.
3994 * tree.h (build_array_type_nelts): Declare.
3995 * tree.c (build_array_type_nelts): New function.
3996 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3997 (vect_model_load_cost): Likewise.
3998 (vect_store_lanes_supported, vect_load_lanes_supported)
3999 (vect_record_strided_load_vectors): Declare.
4000 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4001 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4002 (vect_transform_strided_load): Split out statement recording into...
4003 (vect_record_strided_load_vectors): ...this new function.
4004 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4005 (write_vector_array, create_array_ref): New functions.
4006 (vect_model_store_cost): Add store_lanes_p argument.
4007 (vect_model_load_cost): Add load_lanes_p argument.
4008 (vectorizable_store): Try to use store-lanes functions for
4009 interleaved stores.
4010 (vectorizable_load): Likewise load-lanes and loads.
4011 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4012 to vect_model_store_cost.
4013 (vect_build_slp_tree): Likewise vect_model_load_cost.
4014
4015 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4016
4017 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4018 * hooks.c (hook_bool_mode_uhwi_false): New function.
4019 * target.def (array_mode_supported_p): New hook.
4020 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4021 * doc/tm.texi: Regenerate.
4022 * stor-layout.c (mode_for_array): New function.
4023 (layout_type): Use it.
4024 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4025 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4026
4027 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4028
4029 PR target/48723
4030 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4031 for -fstack-check if the size to allocate is negative.
4032
4033 2011-05-02 Lawrence Crowl <crowl@google.com>
4034
4035 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4036 (timevar_cond_start): New for starting a timer only when it is not
4037 already running.
4038 (timevar_cond_stop): New for stopping a timer when it was not already
4039 running.
4040
4041 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4042 (timevar_cond_start): New as above.
4043 (timevar_cond_stop): New as above.
4044
4045 * timevar.def: Add start/stop timers for compiler phases,
4046 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4047 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4048 and TV_PHASE_FINALIZE.
4049 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4050 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4051 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4052 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4053 Make unused TV_OVERLOAD into a start/stop timer.
4054
4055 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4056 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4057 to indicate that they are start/stop timers.
4058
4059 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4060 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4061 Move initialization to do_compile.
4062 (do_compile): Add initialization from above.
4063 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4064
4065 * c-decl.c (c_write_global_declarations): Add start/stop of
4066 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4067
4068 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4069 or TV_PARSE_INLINE, as appropriate.
4070 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4071 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4072
4073 2011-05-02 Jason Merrill <jason@redhat.com>
4074
4075 PR c++/40975
4076 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4077
4078 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4079
4080 PR c/35445
4081 * c-decl.c (finish_decl): Only create a composite if the types are
4082 compatible.
4083
4084 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4085
4086 * config/fr30/fr30-protos.h (Mmode): Don't define.
4087 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4088 definition where used.
4089 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4090 define. Expand definitions where used.
4091 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4092 Expand definitions where used.
4093 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4094 rx_function_arg, rx_function_arg_advance,
4095 rx_function_arg_boundary): Expand definitions of those macros.
4096 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4097 definition where used.
4098
4099 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4100
4101 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4102 reg<->xmm moves.
4103 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4104 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4105 with *movv2sf_internal_rex64_avx.
4106 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4107 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4108 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4109 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4110 "vex" in "prefix" attribute calculation.
4111 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4112
4113 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4114
4115 PR target/47951
4116 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4117 inputs match the output.
4118
4119 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4120
4121 PR target/47955
4122 * config/m68k/m68k.c (m68k_expand_prologue): Set
4123 current_function_static_stack_size.
4124
4125 2011-05-02 Jan Hubicka <jh@suse.cz>
4126
4127 * lto-streamer.c (lto_streamer_cache_insert_1,
4128 lto_streamer_cache_lookup, lto_streamer_cache_create,
4129 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4130 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4131
4132 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4133
4134 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4135 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4136 config/m68k/t-opts: New files.
4137 * config/m68k/m68k-tables.opt: New file (generated).
4138 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4139 extra_options and m68k/t-opts to tmake_file.
4140 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4141 (all_isas): Initialize using m68k-isas.def.
4142 (all_microarchs): Initialize using m68k-microarchs.def.
4143 (m68k_find_selection): Remove.
4144 (m68k_handle_option): Don't assert that global structures are in
4145 use. Use error_at. Access variables via opts pointer. Don't
4146 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4147 directly for -m68020-40 and -m68020-60.
4148 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4149 m68k_tune_entry here.
4150 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4151 to m68k-opts.h.
4152 (m68k_library_id_string): Remove declaration.
4153 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4154 (m68k_library_id_string): New Variable.
4155 (march=, mcpu=, mtune=): Use Enum and Var.
4156
4157 2011-05-02 Richard Guenther <rguenther@suse.de>
4158
4159 * varasm.c (output_constructor_regular_field): Compute zero-based
4160 index with double-ints. Make sure to ICE instead of producing
4161 wrong code.
4162 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4163 in asserts. Properly use a signed type.
4164
4165 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4166
4167 * config/i386/sse.md (V): New mode iterator.
4168 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4169 TARGET_SSE2.
4170 (V_256): Rename from AVX256MODE.
4171 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4172 condition to all users.
4173 (VF1): Ditto.
4174 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4175 condition to all users.
4176 (VF_128): Make V4SF mode unconditional.
4177 (VF_256): Rename from AVX256MODEF2P.
4178 (VI4F_128): Rename from SSEMODE4S.
4179 (VI8F_128): Rename from SSEMODE2D.
4180 (VI4F_256): Rename from AVX256MODE8P.
4181 (VI8F_256): Rename from AVX256MODE4P.
4182 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4183 (ssescalarmodesuffix): Remove SF and DF modes.
4184 (SSEMODE124): Remove.
4185 (SSEMODE1248): Ditto.
4186 (SSEMODEF2P): Ditto.
4187 (AVXMODEF2P): Ditto.
4188 (AVXMODEFDP): Ditto.
4189 (AVXMODEFSP): Ditto.
4190 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4191 unconditional.
4192 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4193 unconditional.
4194 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4195 xop_pcmov_<mode>256. Use V mode iterator.
4196
4197 Adjust RTX patterns globally for renamed mode attributes.
4198
4199 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4200
4201 * haifa-sched.c (sched_emit_insn): Emit insn before first
4202 non-scheduled insn. Inform back-end about new insn. Add
4203 new insn to scheduled_insns list.
4204
4205 2011-05-02 Richard Guenther <rguenther@suse.de>
4206
4207 PR tree-optimization/48822
4208 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4209 (process_scc): Indicate which iteration we start.
4210
4211 2011-05-02 Jan Hubicka <jh@suse.cz>
4212
4213 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4214 (lto_section_overrun): New.
4215 * lto-section-out.c (append_block): Rename to ...
4216 (lto_append_block): ... this one; export.
4217 (lto_output_1_stream): Move lto lto-streamer.h
4218 (lto_output_data_stream): Update.
4219 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4220 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4221 functions.
4222
4223 2011-05-02 Richard Guenther <rguenther@suse.de>
4224
4225 * tree.c (tree_code_counts): New global array.
4226 (record_node_allocation_statistics): Count individual tree codes.
4227 (dump_tree_statistics): Dump individual code stats.
4228
4229 2011-05-01 Jan Hubicka <jh@suse.cz>
4230
4231 * ipa-inline.c (caller_growth_limits): Fix thinko when
4232 looking for largest stack frame.
4233 * ipa-inline.h (dump_inline_summary): Declare.
4234 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4235 on stack usage.
4236 (dump_inline_summary): Export.
4237 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4238
4239 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4240
4241 * reginfo.c (memory_move_cost): Change rclass argument type form
4242 'enum reg_class' to reg_class_t.
4243 * reload.h (memory_move_cost): Update prototype.
4244 * postreload.c reload_cse_simplify_set): Change type dclass var to
4245 reg_class_t.
4246 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4247 Update prototype.
4248 (ira_allocate_and_set_costs): Change aclass argument type form
4249 'enum reg_class' to reg_class_t.
4250 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4251 Change aclass argument type to reg_class_t.
4252 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4253 to reg_class_t.
4254 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4255 memory_move_cost call.
4256
4257 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4258 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4259 Change type tmp var to reg_class_t.
4260
4261 2011-04-30 Jan Hubicka <jh@suse.cz>
4262
4263 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4264 inlining into function with flatten attribute.
4265 (want_inline_small_function_p): Be more realistic about inlining
4266 cold calls where callee size grows.
4267
4268 2011-04-30 Jan Hubicka <jh@suse.cz>
4269
4270 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4271 flags.
4272
4273 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4274
4275 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4276 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4277 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4278 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4279 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4280 (print_operand): Rename to...
4281 (sparc_print_operand): ...this. Make static. Adjust
4282 sparc_print_operand function call.
4283 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4284 functions.
4285
4286 2011-04-30 Jan Hubicka <jh@suse.cz>
4287
4288 PR middle-end/48752
4289 * ipa-inline.c (early_inliner): Disable when doing late
4290 addition of function.
4291
4292 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4293
4294 * dwarf2out.c (get_address_mode): New inline.
4295 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4296 if not dwarf_strict emit
4297 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4298 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4299 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4300 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4301 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4302 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4303 mem_loc_descriptor callers.
4304 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4305 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4306 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4307 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4308 (base_types): New variable.
4309 (get_base_type_offset, calc_base_type_die_sizes,
4310 base_type_for_mode, mark_base_types, base_type_cmp,
4311 move_marked_base_types): New functions.
4312 (calc_die_sizes): Assert that die_offset is 0 or equal to
4313 next_die_offset.
4314 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4315 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4316 callers. If not dwarf_strict, call mem_loc_descriptor even for
4317 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4318 (gen_subprogram_die): Don't give up on call site parameters
4319 with non-integral or large integral modes. Adjust
4320 mem_loc_descriptor callers.
4321 (prune_unused_types): Call prune_unused_types_mark on base_types
4322 vector entries.
4323 (resolve_addr): Call mark_base_types.
4324 (dwarf2out_finish): Call move_marked_base_types.
4325
4326 PR tree-optimization/48809
4327 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4328 type.
4329 (gen_inbound_check): Don't compute index_expr - range_min in utype
4330 again, instead reuse SSA_NAME initialized in build_arrays.
4331 Remove two useless gsi_for_stmt calls.
4332
4333 2011-04-29 Jeff Law <law@redhat.com>
4334
4335 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4336
4337 2011-04-29 Martin Jambor <mjambor@suse.cz>
4338
4339 * cgraph.h (cgraph_postorder): Remove declaration.
4340 * ipa-utils.h (ipa_free_postorder_info): Declare.
4341 (ipa_reverse_postorder): Likewise.
4342 * cgraphunit.c: Include ipa-utils.h.
4343 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4344 * ipa-inline.c: Include ipa-utils.h.
4345 (ipa_inline): Update call to ipa_reverse_postorder.
4346 * ipa-pure-const.c (propagate_pure_const): Update call to
4347 ipa_reduced_postorder and ipa_print_order. Call
4348 ipa_free_postorder_info to clean up.
4349 (propagate_nothrow): Likewise.
4350 * ipa-reference.c (propagate): Removed a useless call to
4351 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4352 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4353 * ipa.c: Include ipa-utils.h.
4354 (ipa_profile): Update call to ipa_reverse_postorder.
4355 (cgraph_postorder): Moved to...
4356 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4357 (ipa_utils_print_order): Renamed to ipa_print_order.
4358 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4359 comments.
4360 (ipa_free_postorder_info): New function.
4361 * passes.c: Include ipa-utils.h.
4362 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4363 (ipa_write_summaries): Likewise.
4364 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4365 (cgraphunit.o): Likewise.
4366 (ipa.o): Likewise.
4367 (ipa-inline.o): Likewise.
4368
4369 2011-04-29 Jan Hubicka <jh@suse.cz>
4370
4371 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4372 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4373 * ipa-inline.h (clause_t): Turn into unsigned int.
4374 * ipa-inline-analysis.c (add_clause): Do more simplification.
4375 (and_predicates): Shortcut more cases.
4376 (predicates_equal_p): Move forward; check that clauses are properly
4377 ordered.
4378 (or_predicates): Shortcut more cases.
4379 (edge_execution_predicate): Rewrite as...
4380 (set_cond_stmt_execution_predicate): ... this function; handle
4381 __builtin_constant_p.
4382 (set_switch_stmt_execution_predicate): New .
4383 (compute_bb_predicates): New.
4384 (will_be_nonconstant_predicate): Update TODO.
4385 (estimate_function_body_sizes): Use compute_bb_predicates
4386 and free them later, always try to estimate if stmt is constant.
4387 (estimate_time_after_inlining, estimate_size_after_inlining):
4388 Gracefully handle optimized out edges.
4389 (read_predicate): Fix off by one error.
4390
4391 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4392
4393 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4394
4395 2011-04-27 Xinliang David Li <davidxl@google.com>
4396
4397 * tree-profile.c (init_ic_make_global_vars): Set
4398 tls attribute on ic vars.
4399 * coverage.c (coverage_end_function): Initialize
4400 function_list with zero.
4401
4402 2011-04-29 Richard Guenther <rguenther@suse.de>
4403
4404 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4405 for the type of the result.
4406 (fold_builtin_isascii): Likewise.
4407 (fold_builtin_toascii): Use integer_type_node where appropriate.
4408 (fold_builtin_logb): Likewise.
4409 (fold_builtin_frexp): Likewise.
4410 (fold_builtin_strstr): Likewise.
4411 (fold_builtin_strpbrk): Likewise.
4412 (fold_builtin_fputs): Likewise.
4413 (fold_builtin_sprintf): Likewise.
4414 (fold_builtin_snprintf): Likewise.
4415 (fold_builtin_printf): Likewise.
4416 (do_mpfr_remquo): Use a proper type for the assigned constant.
4417 (do_mpfr_lgamma_r): Likewise.
4418 * dwarf2out.c (resolve_one_addr): Use size_int.
4419 * except.c (init_eh): Likewise.
4420 (assign_filter_values): Use integer_type_node for filter values.
4421 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4422 indices.
4423 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4424 for EH region numbers.
4425 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4426 for the shift amount.
4427
4428 2011-04-29 Richard Guenther <rguenther@suse.de>
4429
4430 * expr.h (expand_shift): Rename to ...
4431 (expand_variable_shift): ... this.
4432 (expand_shift): Take a constant shift amount.
4433 * expmed.c (expand_shift): Rename to ...
4434 (expand_variable_shift): ... this.
4435 (expand_shift): New wrapper around expand_variable_shift.
4436 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4437 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4438 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4439 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4440 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4441 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4442 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4443 emit_store_flag_1, emit_store_flag): Likewise.
4444 * builtins.c (expand_builtin_signbit): Likewise.
4445 * calls.c (load_register_parameters): Likewise.
4446 * function.c (assign_parm_setup_block): Likewise.
4447 * lower-subreg.c (resolve_shift_zext): Likewise.
4448 * optabs.c (widen_bswap, expand_abs_nojump,
4449 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4450 * spu/spu.c (spu_expand_extv): Likewise.
4451 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4452
4453 2011-04-29 Richard Guenther <rguenther@suse.de>
4454
4455 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4456 for the remapped region number.
4457 * predict.c (build_predict_expr): Use integer_type_node for the
4458 predict kind.
4459 * fold-const.c (fold_binary_loc): Use integer_type_node for
4460 the shift amount. Use a proper type for the PLUS_EXPR operand.
4461
4462 2011-04-29 Michael Matz <matz@suse.de>
4463
4464 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4465 other trees that just builtins.
4466 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4467
4468 2011-04-29 Richard Guenther <rguenther@suse.de>
4469
4470 * tree-nested.c (get_trampoline_type): Use size_int.
4471 (get_nl_goto_field): Likewise.
4472 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4473 for all indexes.
4474 (lower_eh_constructs_2): Likewise.
4475 (lower_resx): Likewise.
4476 (lower_eh_dispatch): Likewise.
4477 * tree-mudflap.c (mf_build_string): Use size_int.
4478 (mudflap_register_call): Use integer_type_node for the flag.
4479 (mudflap_enqueue_constant): Use size_int.
4480 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4481 instead of rebuilding it.
4482
4483 2011-04-29 Richard Guenther <rguenther@suse.de>
4484
4485 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4486 Handle OBJ_TYPE_REF.
4487 (find_func_aliases_for_call): Use it more consistently.
4488
4489 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4490
4491 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4492 (rank_for_schedule): Use it.
4493 (schedule_block): Set it.
4494
4495 2011-04-28 David Li <davidxl@google.com>
4496
4497 * tree.c (crc32_string): Use crc32_byte.
4498 (crc32_byte): New function.
4499 * tree.h (crc32_byte): New function.
4500 * gcov.c (read_graph_file): Handle new cfg_cksum.
4501 (read_count_file): Ditto.
4502 * profile.c (instrument_values): Ditto.
4503 (get_exec_counts): Ditto.
4504 (read_profile_edge_counts): Ditto.
4505 (compute_branch_probabilities): Ditto.
4506 (compute_value_histograms): Ditto.
4507 (branch_prob): Ditto.
4508 (end_branch_prob): Ditto.
4509 * coverage.c (read_counts_file): Ditto.
4510 (get_coverage_counts): Ditto.
4511 (tree_coverage_counter_addr): Ditto.
4512 (coverage_checksum_string): Ditto.
4513 (coverage_begin_output): Ditto.
4514 (coverage_end_function): Ditto.
4515 (build_fn_info_type): Ditto.
4516 (build_fn_info_value): Ditto.
4517 * libgcov.c (gcov_exit): Ditto.
4518 * gcov-dump.c (tag_function): Ditto.
4519 (compute_checksum): Remove.
4520
4521 2011-04-29 Alan Modra <amodra@gmail.com>
4522
4523 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4524 unspec plus offset. Tidy macho code.
4525
4526 2011-04-29 Martin Jambor <mjambor@suse.cz>
4527
4528 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4529 node instead of a decl. Update all callers.
4530 * cgraph.h: Update declaration.
4531
4532 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4533
4534 PR tree-optimization/48765
4535 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4536 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4537 to indicate if loop aware SLP is being used. Scan the statements
4538 and update the vectorization factor according to the type of
4539 vectorization before statement analysis.
4540 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4541 pass it to vect_analyze_loop_operations.
4542 (vectorizable_reduction): Set number of copies to 1 in case of pure
4543 SLP statement.
4544 * tree-vect-stmts.c (vectorizable_conversion,
4545 vectorizable_assignment, vectorizable_shift,
4546 vectorizable_operation, vectorizable_type_demotion,
4547 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4548 Likewise.
4549 (vectorizable_condition): Move the check that it is not SLP
4550 vectorization before the number of copies check.
4551 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4552 to vectorize the loop using SLP.
4553
4554 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4555
4556 PR middle-end/48597
4557 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4558 inline asm.
4559
4560 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4561
4562 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4563 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4564 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4565 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4566 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4567 linux*.h headers.
4568 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4569 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4570 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4571 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4572 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4573 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4574 REG_NAME.
4575 * config/i386/linux.h (REG_NAME): Don't define.
4576 * config/i386/linux64.h (REG_NAME): Don't define.
4577 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4578 Undefine before defining.
4579
4580 2011-04-28 Jan Hubicka <jh@suse.cz>
4581
4582 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4583 nonconstant_names array.
4584 (estimate_function_body_sizes): Build nonconstant_names array; handle
4585 BUILT_IN_CONSTANT_P.
4586
4587 2011-04-28 Richard Guenther <rguenther@suse.de>
4588
4589 PR bootstrap/48804
4590 Revert
4591 2011-04-28 Richard Guenther <rguenther@suse.de>
4592
4593 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4594 as late as possible.
4595
4596 2011-04-28 Richard Guenther <rguenther@suse.de>
4597
4598 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4599 (debug_constraint): Do it here.
4600 (dump_constraints): And here.
4601 (rewrite_constraints): And here.
4602 (dump_constraint_edge): Remove.
4603 (dump_constraint_graph): Rewrite to produce DOT output.
4604 (solve_constraints): Build succ graph as late as possible.
4605 Dump constraint graphs before and after solving.
4606
4607 2011-04-28 Richard Guenther <rguenther@suse.de>
4608
4609 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4610 New function split out from ...
4611 (find_func_aliases): ... here. Call it.
4612 (find_func_aliases_for_call): Likewise.
4613
4614 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4615
4616 * internal-fn.h (internal_fn_name_array): Declare.
4617 (internal_fn_flags_array): Likewise.
4618
4619 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4620
4621 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4622 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4623 Move from sse.md.
4624 (ssemodefsuffix): Remove.
4625 (ssevecmodesuffix): New mode attribute.
4626 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4627 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4628 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4629 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4630 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4631 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4632 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4633 ssemodesuffix mode attribute.
4634 (float splitters): Use ssevecmodesuffix mode attribute.
4635 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4636 (sseinsmode): Rename from avxvecmode.
4637 (avxsizesuffix): Rename from avxmodesuffix.
4638 (sseintvecmode): Rename from avxpermvecmode.
4639 (ssedoublevecmode): Rename from ssedoublesizemode.
4640 (ssehalfvecmode): Rename from avxhalfvecmode.
4641 (ssescalarmode): Rename from avxscalarmode.
4642 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4643 templates for ssemodesuffix mode attribute.
4644 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4645 mode attribute.
4646
4647 Adjust RTX patterns globally for renamed mode attributes.
4648
4649 2011-04-27 Jan Hubcika <jh@suse.cz>
4650
4651 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4652 * ipa-inline-analysis.c: Include alloc-pool.h.
4653 (edge_predicate_pool): New.
4654 (trye_predicate_p): New function
4655 (false_predicate_p): New function.
4656 (add_clause): Sanity check that false clauses are "optimized";
4657 never add clauses to predicate that is already known to be false.
4658 (and_predicate): Use flase_predicate_p.
4659 (evaulate_predicate): Rename to ...
4660 (evaluate_predicate): ... this one; update all callers; assert
4661 that false is not listed among possible truths.
4662 (dump_predicate): Use true_predicate_p.
4663 (account_size_time): Use false_predicate_p.
4664 (evaulate_conditions_for_edge): Rename to ...
4665 (evaluate_conditions_for_edge) ... this one.
4666 (edge_set_predicate): New function.
4667 (inline_edge_duplication_hook): Duplicate edge predicates.
4668 (inline_edge_removal_hook): Free edge predicates.
4669 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4670 (dump_inline_summary): Update.
4671 (estimate_function_body_sizes): Set edge predicates.
4672 (estimate_calls_size_and_time): Handle predicates.
4673 (estimate_callee_size_and_time): Update.
4674 (remap_predicate): Add toplev_predicate; update comment.
4675 (remap_edge_predicates): New function.
4676 (inline_merge_summary): Compute toplev predicate; update.
4677 (read_predicate): New function.
4678 (read_inline_edge_summary): Use it.
4679 (inline_read_section): Likewise.
4680 (write_predicate): New function.
4681 (write_inline_edge_summary): Use it.
4682 (inline_write_summary): Likewise.
4683 (inline_free_summary): Free alloc pool and edge summary vec.
4684
4685 2011-04-27 Richard Guenther <rguenther@suse.de>
4686
4687 * tree-ssa-structalias.c (changed_count): Remove.
4688 (changed): Use a bitmap.
4689 (unify_nodes): Adjust.
4690 (do_sd_constraint): Likewise.
4691 (do_ds_constraint): Likewise.
4692 (do_complex_constraint): Likewise.
4693 (solve_graph): Likewise.
4694
4695 2011-04-27 Jan Hubicka <jh@suse.cz>
4696
4697 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4698
4699 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4700
4701 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4702 (avx_vperm2f128_*_operand): Ditto.
4703 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4704 Use avx_vpermilp_parallel in insn condition.
4705 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4706 Use avx_vperm2f128_parallel in insn condition.
4707
4708 2011-04-27 Richard Guenther <rguenther@suse.de>
4709
4710 * Makefile.in (tree-ssa-structalias.o): Remove
4711 gt-tree-ssa-structalias.h dependency.
4712 (GTFILES): Remove tree-ssa-structalias.c.
4713 * tree.c (allocate_decl_uid): New function.
4714 (make_node_stat): Use it.
4715 (copy_node_stat): Likewise.
4716 * tree.h (allocate_decl_uid): Declare.
4717 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4718 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4719 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4720 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4721 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4722 (struct heapvar_map): Likewise.
4723 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4724 heapvar_insert): Likewise.
4725 (make_heapvar_for): Rename to ...
4726 (make_heapvar): ... this. Simplify.
4727 (fake_var_decl_obstack): New global var.
4728 (build_fake_var_decl): New function.
4729 (make_constraint_from_heapvar): Adjust.
4730 (handle_lhs_call): Likewise.
4731 (create_function_info_for): Likewise.
4732 (intra_create_variable_infos): Likewise.
4733 (init_alias_vars): Allocate fake_var_decl_obstack.
4734 (init_alias_heapvars, delete_alias_heapvars): Remove.
4735 (compute_points_to_sets): Do not call init_alias_heapvars.
4736 (ipa_pta_execute): Likewise.
4737 (delete_points_to_sets): Free fake_var_decl_obstack.
4738
4739 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4740
4741 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4742 (si_from_UTItype, si_to_UTItype): New functions.
4743 (__udivmodti4): Use them to implement type-punning.
4744 * config/spu/multi3.c (union qword_TItype): New data type.
4745 (si_from_TItype, si_to_TItype): New functions.
4746 (__multi3): Use them to implement type-punning.
4747
4748 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4749
4750 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4751
4752 2011-04-27 Jan Hubicka <jh@suse.cz>
4753
4754 * ipa-prop.c (function_insertion_hook_holder): New holder.
4755 (ipa_add_new_function): New function.
4756 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4757 Register/deregister holder.
4758
4759 2011-04-27 Richard Guenther <rguenther@suse.de>
4760
4761 PR tree-optimization/48772
4762 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4763
4764 2011-04-27 Richard Guenther <rguenther@suse.de>
4765
4766 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4767 TARGET_MEM_REF handling.
4768
4769 2011-04-27 Nick Clifton <nickc@redhat.com>
4770
4771 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4772 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4773 (REG_CLASS_NAMES): Likewise.
4774 (REG_CLASS_CONTENTS): Likewise.
4775 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4776 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4777 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4778 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4779 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4780 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4781 duplicate register classes.
4782 (frv_class_likely_spilled_p): Likewise.
4783 (frv_register_move_cost): Likewise.
4784
4785 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4786 end of the regno_reg_class array.
4787
4788 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4789
4790 PR c/48742
4791 * c-typeck.c (build_binary_op): Don't wrap arguments if
4792 int_operands is true.
4793
4794 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4795
4796 PR target/48767
4797 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4798 targetm.calls.must_pass_in_stack for void type.
4799
4800 2011-04-26 Jan Hubicka <jh@suse.cz>
4801
4802 * cgraphbuild.c (build_cgraph_edges): Update call
4803 of cgraph_create_edge and cgraph_create_indirect_edge.
4804 * cgraph.c (cgraph_create_edge_including_clones,
4805 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4806 cgraph_update_edges_for_call_stmt_node): Do not take nest
4807 argument; do not initialize call_stmt_size/time.
4808 (dump_cgraph_node): Do not dump nest.
4809 (cgraph_clone_edge): Do not take loop_nest argument;
4810 do not propagate it; do not clone call_stmt_size/time.
4811 (cgraph_clone_node): Likewise.
4812 (cgraph_create_virtual_clone): Update.
4813 * cgraph.h (struct cgraph_edge): Remove
4814 call_stmt_size/call_stmt_time/loop_nest.
4815 (cgraph_create_edge, cgraph_create_indirect_edge,
4816 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4817 prototype.
4818 * tree-emutls.c (gen_emutls_addr): Update.
4819 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4820 loop_nest; handle indirect calls, too.
4821 (clone_inlined_nodes): Do not care about updating inline summaries.
4822 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4823 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4824 stream call_stmt_size/call_stmt_time/loop_nest.
4825 * ipa-inline.c (edge_badness): Update.
4826 (ipa_inline): dump summaries after inlining.
4827 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4828 New.
4829 (inline_edge_summary): New function.
4830 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4831 (inline_edge_removal_hook): Handle edge summaries.
4832 (inline_edge_duplication_hook): New hook.
4833 (inline_summary_alloc): Alloc hooks.
4834 (initialize_growth_caches): Do not register removal hooks.
4835 (free_growth_caches); Do not free removal hook.
4836 (dump_inline_edge_summary): New function.
4837 (dump_inline_summary): Use it.
4838 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4839 (inline_update_callee_summaries): New function.
4840 (inline_merge_summary): Use it.
4841 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4842 (read_inline_edge_summary): New function.
4843 (inline_read_section): Use it.
4844 (write_inline_edge_summary): New function.
4845 (inline_write_summary): Use it.
4846 (inline_free_summary): Free edge new holders.
4847 * tree-inline.c (copy_bb): Update.
4848
4849 2011-04-26 Jason Merrill <jason@redhat.com>
4850
4851 * tree-eh.c (lower_try_finally_switch): Create the label along with
4852 the CASE_LABEL_EXPR.
4853
4854 2011-04-26 David S. Miller <davem@davemloft.net>
4855 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4856
4857 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4858 * configure: Regenerate.
4859
4860 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4861
4862 PR target/48258
4863 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4864 reduction.
4865 (VEC_reduc): New code iterator and splitters for vector reduction.
4866 (VEC_reduc_name): Ditto.
4867 (VEC_reduc_rtx): Ditto.
4868 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4869 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4870
4871 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4872 support for extracting SF on VSX.
4873
4874 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4875 generating xscvspdp.
4876 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4877 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4878 double add, minimum, maximum vector reduction.
4879 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4880 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4881 optimize double vector reduction.
4882 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4883
4884 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4885
4886 * config/fr30/fr30.h (inhibit_libc): Don't define.
4887 * config/m32r/m32r-protos.h: Correct comment.
4888 * config/v850/v850.h (GHS_default_section_names,
4889 GHS_current_section_names): Use tree, not union tree_node *.
4890
4891 2011-04-26 Xinliang David Li <davidxl@google.com>
4892
4893 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4894 * c-family/c-opts.c (c_common_handle_option): Set
4895 warn_maybe_uninitialized.
4896 * opts.c (common_handle_option): Ditto.
4897 * common.opt: New option.
4898 * tree-ssa.c (warn_uninit): Add one more parameter.
4899 (warn_uninitialized_var): Pass warning code.
4900 * tree-flow.h: Interface change.
4901
4902 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4903
4904 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4905 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4906 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4907
4908 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4909
4910 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4911 * config/mips/mips.opt (mmips-tfile): Remove.
4912
4913 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4914 mips-tdump reference to ...
4915 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4916 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4917 reference by Tru64 UNIX.
4918
4919 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4920
4921 PR debug/48768
4922 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4923 is error_mark_node, set value to NULL.
4924
4925 PR tree-optimization/48734
4926 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4927 if return value from maybe_fold_*_comparsions isn't something
4928 the code is prepared to handle.
4929
4930 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4931
4932 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4933 mode check.
4934 (ext_QIreg_nomode_operands): Remove.
4935 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4936 (*andsi_1): Ditto.
4937 (*andhi_1): Ditto.
4938
4939 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4940
4941 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4942
4943 2011-04-26 Richard Guenther <rguenther@suse.de>
4944
4945 * c-typeck.c (build_unary_op): Do not expand array-refs via
4946 pointer arithmetic. Only adjust qualifiers for function types.
4947
4948 2011-04-26 Richard Guenther <rguenther@suse.de>
4949
4950 PR middle-end/48694
4951 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4952 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4953 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4954 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4955
4956 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4957
4958 * doc/extend.texi: Document __underlying_type.
4959
4960 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4961
4962 * config/rs6000/titan.md (automata_option "progress"): Remove.
4963
4964 2011-04-25 Jeff Law <law@redhat.com>
4965
4966 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4967
4968 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4969
4970 * system.h (ENUM_BITFIELD): Remove.
4971
4972 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4973 Eric Botcazou <ebotcazou@adacore.com>
4974
4975 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4976 for STORE_FLAG_VALUE==-1 case.
4977
4978 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4979
4980 PR target/43804
4981 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4982 LEGITIMATE_PIC_OPERAND_P.
4983
4984 2011-04-24 Jan Hubicka <jh@suse.cz>
4985
4986 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4987 WPA hack.
4988 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4989 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4990 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4991 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4992 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4993 Sanity check predicate length.
4994 (remap_predicate): Likewise; sanity check jump functions.
4995 (inline_read_section, inline_write_summary): Sanity check
4996 predicate length.
4997
4998 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4999
5000 PR other/48748
5001 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5002 __is_literal_type, and __is_trivial; update throughout about
5003 possibly cv-qualified void types.
5004
5005 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5006
5007 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5008 testsuite and make it version agnostic.
5009
5010 2011-04-22 Jan Hubicka <jh@suse.cz>
5011
5012 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5013
5014 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5015
5016 PR c/48685
5017 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5018 to VOID_TYPE even around MODIFY_EXPR.
5019
5020 2011-04-22 Mike Stump <mikestump@comcast.net>
5021
5022 * gensupport.c (read_md_rtx): Fix typo in comment.
5023 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5024 comment.
5025
5026 2011-04-22 Jan Hubicka <jh@suse.cz>
5027
5028 * gengtype.c (open_base_files): Add ipa-inline.h include.
5029 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5030 ipa-prop.c; update all uses.
5031 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5032 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5033 merge summary of inlined function into former caller.
5034 * ipa-inline.c (max_benefit): Remove.
5035 (edge_badness): Compensate for removal of benefits.
5036 (update_caller_keys): Use
5037 reset_node_growth_cache/reset_edge_growth_cache.
5038 (update_callee_keys): Likewise.
5039 (update_all_callee_keys): Likewise.
5040 (inline_small_functions): Do not collect max_benefit; do not reset
5041 estimated_growth; call free_growth_caches and initialize_growth_caches.
5042 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5043 struct size_time_entry): New structures.
5044 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5045 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5046 and estimated_growth.
5047 (edge_growth_cache_entry): New structure.
5048 (node_growth_cache, edge_growth_cache): New global vars.
5049 (estimate_growth): Turn into inline.
5050 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5051 initialize_growth_caches, free_growth_caches): Declare.
5052 (estimate_edge_growth): Rewrite.
5053 (estimate_edge_time): Implement as inline cache lookup.
5054 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5055 functions.
5056 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5057 (NUM_CONDITIONS): New constant.
5058 (predicate_conditions): New enum.
5059 (IS_NOT_CONSTANT): New constant.
5060 (edge_removal_hook_holder): New var.
5061 (node_growth_cache, edge_growth_cache): New global vars.
5062 (true_predicate, single_cond_predicate, false_predicate,
5063 not_inlined_predicate, add_condition, add_clause, and_predicates,
5064 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5065 dump_clause, dump_predicate, account_size_time,
5066 evaulate_conditions_for_edge): New functions.
5067 (inline_summary_alloc): Move to heap.
5068 (inline_node_removal_hook): Clear condition and entry vectors.
5069 (inline_edge_removal_hook): New function.
5070 (initialize_growth_caches, free_growth_caches): New function.
5071 (dump_inline_summary): Update.
5072 (edge_execution_predicate): New function.
5073 (will_be_nonconstant_predicate): New function.
5074 (estimate_function_body_sizes): Compute BB and constantness predicates.
5075 (compute_inline_parameters): Do not clear estimated_growth.
5076 (estimate_edge_size_and_time): New function.
5077 (estimate_calls_size_and_time): New function.
5078 (estimate_callee_size_and_time): New function.
5079 (remap_predicate): New function.
5080 (inline_merge_summary): New function.
5081 (do_estimate_edge_time): New function based on...
5082 (estimate_edge_time): ... this one.
5083 (do_estimate_edge_growth): New function.
5084 (do_estimate_growth): New function based on....
5085 (estimate_growth): ... this one.
5086 (inline_analyze_function): Analyze after deciding on jump functions.
5087 (inline_read_section): New function.
5088 (inline_read_summary): Use it.
5089 (inline_write_summary): Write all the new data.
5090 * ipa-prop.c (ipa_get_param_decl_index): Export.
5091 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5092 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5093 Declare.
5094 (ipa_get_lattice): Move here from ipa-cp.c
5095 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5096 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5097 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5098 cgraph_edge_inlinable_p): Remove.
5099 * cgraphunit.c: Include ipainline.h
5100 (cgraph_process_new_functions): Update call of
5101 compute_inline_parameters.
5102
5103 2011-04-22 Richard Guenther <rguenther@suse.de>
5104
5105 * tree.c (build_int_cst): Properly create canonicalized integer
5106 constants.
5107 (build_int_cst_type): Remove scary comments.
5108
5109 2011-04-22 Xinliang David Li <davidxl@google.com>
5110
5111 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5112 by default when -Wno-error is not specified.
5113 * opts-global.c (decode_options): Remove call to
5114 control_warning_options.
5115
5116 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5117
5118 PR tree-optimization/48717
5119 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5120 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5121
5122 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5123
5124 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5125 definition where used.
5126
5127 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5128
5129 PR c/48716
5130 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5131 TREE_STATIC variables declared inside of some OpenMP construct.
5132
5133 2011-04-22 Martin Jambor <mjambor@suse.cz>
5134
5135 PR middle-end/48585
5136 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5137
5138 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5139
5140 PR c/36750
5141 * c-typeck.c (pop_init_level): Do not warn about initializing
5142 with ` = {0}'.
5143
5144 2011-04-22 Alan Modra <amodra@gmail.com>
5145
5146 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5147 when returning call_cookie.
5148 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5149 pointers, to functions with no more vector args than the current
5150 function, and some non-local calls for ABI_V4.
5151 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5152 sibcall_nonlocal_aix64): Combine to ..
5153 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5154 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5155 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5156 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5157 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5158 operand.
5159 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5160 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5161 sibcall_value_symbolic_64): Delete.
5162
5163 2011-04-21 Xinliang David Li <davidxl@google.com>
5164
5165 * cgraph.h: Remove pid.
5166 * cgraph.c: Remove pid.
5167 * value-prof.c (init_node_map): New function.
5168 (del_node_map): New function.
5169 (find_func_by_funcdef_no): New function.
5170 (gimple_ic_transform): Call new function.
5171 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5172 * function.c (get_last_funcdef_no): New function.
5173 * function.h (get_last_funcdef_no): New function.
5174 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5175 to libgcov function.
5176 (tree-profiling): Call node map init and delete function.
5177
5178 2011-04-21 Ian Lance Taylor <iant@google.com>
5179
5180 * godump.c (go_format_type): Use exported Go name for anonymous
5181 field name.
5182
5183 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5184
5185 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5186 Call builtin_function_type_list instead of builtin_function_type.
5187 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5188
5189 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5190
5191 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5192 build_function_type_list instead of build_function_type.
5193 Delete variable `endlink'.
5194
5195 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5196
5197 * config/s390/s390.c (s390_init_builtins): Call
5198 build_function_type_list instead of build_function_type.
5199
5200 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5201
5202 * config/ia64/ia64.c (ia64_init_builtins): Call
5203 build_function_type_list instead of builtin_function_type.
5204
5205 2011-04-21 Easwaran Raman <eraman@google.com>
5206
5207 * cfgexpand.c (stack_var): Remove OFFSET...
5208 (add_stack_var): ...and its reference here...
5209 (expand_stack_vars): ...and here.
5210 (stack_var_cmp): Sort by descending order of size.
5211 (partition_stack_vars): Change heuristic.
5212 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5213 (dump_stack_var_partition): Add newline after each partition.
5214
5215 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5216 Jeff Law <law@redhat.com>
5217
5218 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5219 * gengtype.c (matching_file_name_substitute): Likewise.
5220
5221 2011-04-21 Richard Guenther <rguenther@suse.de>
5222
5223 PR lto/48703
5224 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5225
5226 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5227
5228 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5229
5230 2011-04-21 Richard Guenther <rguenther@suse.de>
5231
5232 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5233 file name.
5234
5235 2011-04-21 Richard Guenther <rguenther@suse.de>
5236
5237 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5238 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5239 Use DECL_P, not SSA_VAR_P.
5240 (ptr_derefs_may_alias_p): Likewise.
5241 (ptr_deref_may_alias_ref_p_1): Likewise.
5242 (decl_refs_may_alias_p): Likewise.
5243 (refs_may_alias_p_1): Likewise.
5244 (ref_maybe_used_by_call_p_1): Likewise.
5245 (call_may_clobber_ref_p_1): Likewise.
5246 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5247 are either MEM_REF or TARGET_MEM_REF.
5248 (indirect_refs_may_alias_p): Likewise.
5249 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5250 for MEM_EXPR of indirect calls.
5251
5252 2011-04-21 Tristan Gingold <gingold@adacore.com>
5253
5254 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5255 (dst_file_info_struct): Remove flen field.
5256 (lookup_filename): Remove code that set flen field.
5257
5258 2011-04-21 Tristan Gingold <gingold@adacore.com>
5259
5260 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5261
5262 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5263
5264 PR target/48708
5265 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5266 vec_extract and vec_concat for non-SSE4_1 targets.
5267
5268 2011-04-21 Richard Guenther <rguenther@suse.de>
5269
5270 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5271 return statements.
5272
5273 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5274
5275 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5276 undefine.
5277 (FILE): Don't undefine.
5278
5279 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5280
5281 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5282 struct rtx_def *.
5283 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5284 struct rtx_def *.
5285 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5286 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5287 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5288 rtx_def *.
5289 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5290 definitions where used.
5291 * config/microblaze/microblaze.h (struct microblaze_args): Use
5292 rtx, not struct rtx_def *.
5293 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5294 rtx_def *.
5295 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5296 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5297 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5298 not struct rtx_def *.
5299 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5300 struct rtx_def *.
5301 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5302 rtx_def *.
5303 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5304
5305 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5306
5307 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5308 operand_equal_p to compare DR_BASE_ADDRESSes.
5309 (vect_check_interleaving): Likewise.
5310
5311 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5312
5313 PR target/46329
5314 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5315 for all Neon struct constants.
5316
5317 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5318
5319 * target.def (legitimate_constant_p): New hook.
5320 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5321 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5322 * doc/tm.texi: Regenerate.
5323 * hooks.h (hook_bool_mode_rtx_true): Declare.
5324 * hooks.c (hook_bool_mode_rtx_true): Define.
5325 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5326 * calls.c (precompute_register_parameters): Replace uses of
5327 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5328 (emit_library_call_value_1): Likewise.
5329 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5330 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5331 * ira-costs.c (scan_one_insn): Likewise.
5332 * recog.c (general_operand, immediate_operand): Likewise.
5333 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5334 * reload1.c (init_eliminable_invariants): Likewise.
5335
5336 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5337 mode argument.
5338 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5339 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5340 argument.
5341 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5342 * config/alpha/predicates.md (input_operand): Update call to
5343 alpha_legitimate_constant_p.
5344
5345 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5346 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5347 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5348 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5349 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5350 (arm_legitimate_constant_p): New functions.
5351 (arm_cannot_force_const_mem): Make static.
5352
5353 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5354
5355 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5356 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5357 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5358 instead of bfin_legitimate_constant_p.
5359 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5360 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5361
5362 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5363
5364 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5365
5366 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5367 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5368 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5369 (frv_legitimate_constant_p): Make static. Add a mode argument.
5370
5371 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5372 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5373 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5374
5375 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5376 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5377 * config/i386/i386.c (legitimate_constant_p): Rename to...
5378 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5379 argument.
5380 (ix86_cannot_force_const_mem): Update accordingly.
5381 (ix86_legitimate_address_p): Likewise.
5382 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5383 * config/i386/i386.md: Update commentary.
5384
5385 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5386 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5387 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5388 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5389
5390 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5391
5392 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5393 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5394 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5395 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5396
5397 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5398 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5399 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5400
5401 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5402 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5403 (m32r_legitimate_constant_p): New function.
5404
5405 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5406 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5407 LEGITIMATE_CONSTANT_P.
5408 (LEGITIMATE_CONSTANT_P): Delete.
5409 * config/m68k/m68k.c (m68k_expand_prologue): Call
5410 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5411 (m68k_legitimate_constant_p): New function.
5412 * config/m68k/m68k.md: Update comments.
5413
5414 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5415 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5416 (mcore_legitimate_constant_p): New function.
5417
5418 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5419 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5420 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5421 Add a mode argument.
5422 (mep_legitimate_address): Update accordingly.
5423 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5424
5425 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5426 Delete.
5427 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5428 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5429 static. Check OP's mode for VOIDmode.
5430 (microblaze_legitimate_constant_p): New function.
5431 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5432
5433 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5434 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5435 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5436 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5437 * config/mips/predicates.md: Update comments.
5438
5439 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5440 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5441 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5442 (mmix_legitimate_constant_p): Make static, return a bool, and take
5443 a mode argument.
5444 (mmix_print_operand_address): Update accordingly.
5445
5446 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5447 Delete.
5448 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5449 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5450 static. Add a mode argument.
5451 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5452
5453 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5454
5455 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5456 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5457 (pa_legitimate_constant_p): New function.
5458
5459 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5460
5461 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5462 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5463 (pdp11_legitimate_constant_p): New function.
5464
5465 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5466 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5467 (rs6000_legitimate_constant_p): New function.
5468
5469 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5470 (rx_legitimate_constant_p): ...this.
5471 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5472 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5473 (rx_legitimate_constant_p): ...this.
5474 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5475 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5476
5477 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5478 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5479 * config/s390/s390.c (legitimate_constant_p): Rename to...
5480 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5481 and add a mode argument.
5482 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5483
5484 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5485
5486 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5487 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5488 (sh_legitimate_constant_p): New function.
5489
5490 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5491 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5492 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5493 (legitimate_constant_p): Rename to...
5494 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5495 argument.
5496 (constant_address_p): Update accordingly.
5497
5498 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5499 argument and return a bool.
5500 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5501 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5502 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5503 (spu_rtx_costs): Update accordingly.
5504 * config/spu/predicates.md (vec_imm_operand): Likewise.
5505
5506 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5507
5508 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5509 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5510 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5511
5512 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5513 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5514 * config/vax/vax.c (legitimate_constant_p): Likewise.
5515
5516 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5517 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5518 (xtensa_legitimate_constant_p): New function.
5519
5520 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5521
5522 * target.def (cannot_force_const_mem): Add a mode argument.
5523 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5524 * doc/tm.texi: Regenerate.
5525 * hooks.h (hook_bool_mode_rtx_false): Declare.
5526 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5527 (hook_bool_mode_const_rtx_true): Likewise.
5528 (hook_bool_mode_rtx_false): New function.
5529 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5530 to be non-VOID. Update call to cannot_force_const_mem.
5531 (find_reloads): Update accordingly.
5532 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5533 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5534 argument.
5535 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5536 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5537 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5538 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5539 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5540 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5541 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5542 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5543 (m68k_cannot_force_const_mem): ...this new function.
5544 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5545 argument.
5546 (mips_const_insns, mips_legitimize_const_move): Update calls.
5547 (mips_secondary_reload_class): Likewise.
5548 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5549 (pa_cannot_force_const_mem): ...this new function.
5550 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5551 (rs6000_cannot_force_const_mem): ...this new function.
5552 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5553 argument.
5554 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5555 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5556 to...
5557 (xtensa_cannot_force_const_mem): ...this new function.
5558
5559 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5560
5561 * config/mips/mips.c (mips16_build_function_stub): Call
5562 build_function_type_list instead of build_function_type.
5563 (mips16_build_call_stub): Likewise.
5564
5565 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5566
5567 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5568 instead of build_function_type.
5569
5570 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5571
5572 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5573 instead of build_function_type.
5574
5575 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5576
5577 PR target/48678
5578 * config/i386/i386.md (insv): Change operand 0 constraint to
5579 "register_operand". Change operand 1 and 2 constraint to
5580 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5581 * config/i386/sse.md (sse4_1_pinsrb): Export.
5582 (sse2_pinsrw): Ditto.
5583 (sse4_1_pinsrd): Ditto.
5584 (sse4_1_pinsrq): Ditto.
5585 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5586 * config/i386/i386.c (ix86_expand_pinsr): New.
5587
5588 2011-04-20 Easwaran Raman <eraman@google.com>
5589
5590 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5591 containing union type only with -fstrict-aliasing.
5592
5593 2011-04-20 Jim Meyering <meyering@redhat.com>
5594
5595 Remove useless if-before-free tests.
5596 * calls.c (expand_call, save_area): Likewise.
5597 * cfgcleanup.c (try_forward_edges): Likewise.
5598 * collect2.c (collect_execute): Likewise.
5599 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5600 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5601 * coverage.c (coverage_checksum_string): Likewise.
5602 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5603 * cselib.c (cselib_init): Likewise.
5604 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5605 (df_set_clean_cfg): Likewise.
5606 * function.c (free_after_compilation): Likewise.
5607 * gcc.c (do_spec_1, main): Likewise.
5608 * gcov.c (create_file_names): Likewise.
5609 * gensupport.c (identify_predicable_attribute): Likewise.
5610 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5611 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5612 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5613 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5614 * ipa-pure-const.c (local_pure_const): Likewise.
5615 * ipa-reference.c (propagate): Likewise.
5616 * ira-costs.c (free_ira_costs): Likewise.
5617 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5618 * matrix-reorg.c (mat_free): Likewise.
5619 * prefix.c (get_key_value): Likewise.
5620 * profile.c (compute_value_histograms): Likewise.
5621 * reload1.c (free_reg_equiv): Likewise.
5622 * sched-deps.c (free_deps): Likewise.
5623 * sel-sched-ir.c (fence_clear): Likewise.
5624 * sese.c (set_rename, if_region_set_false_region): Likewise.
5625 * tree-data-ref.c (free_rdg): Likewise.
5626 * tree-eh.c (lower_try_finally): Likewise.
5627 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5628 * tree-ssa-live.c (delete_var_map): Likewise.
5629 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5630 * tree-ssa-pre.c (phi_trans_add): Likewise.
5631
5632 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5633
5634 PR tree-optimization/48611
5635 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5636 beyond ERT_MUST_NOT_THROW region.
5637
5638 2011-04-20 Catherine Moore <clm@codesourcery.com>
5639
5640 * config/mips/mips.opt (mfix-24k): New.
5641 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5642 * config/mips/mips.md (length): Increase by 4 for stores if
5643 fixing 24K errata.
5644 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5645 all noreorder if fixing 24K errata.
5646 * doc/invoke.texi: Document mfix-24k.
5647
5648 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5649
5650 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5651 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5652
5653 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5654
5655 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5656 (const_ok_for_op): ... to here.
5657
5658 2011-04-20 Kai Tietz <ktietz@redhat.com>
5659
5660 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5661 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5662
5663 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5664
5665 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5666
5667 2011-04-20 Richard Guenther <rguenther@suse.de>
5668
5669 PR tree-optimization/47892
5670 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5671 are if-convertible.
5672
5673 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5674
5675 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5676
5677 2011-04-20 Tristan Gingold <gingold@adacore.com>
5678
5679 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5680
5681 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5682
5683 PR target/18145
5684
5685 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5686 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5687 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5688 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5689 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5690
5691 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5692 New prototype.
5693
5694 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5695 (avr_asm_named_section, avr_asm_output_aligned_common,
5696 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5697 New functions to update...
5698 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5699 (avr_asm_init_sections): Overwrite section callbacks for
5700 data_section, bss_section.
5701 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5702 from here to...
5703 (avr_file_end): ...here.
5704
5705 2011-04-20 Richard Guenther <rguenther@suse.de>
5706
5707 PR middle-end/48695
5708 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5709 objects and types here. Adjust for their offset before comparing.
5710
5711 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5712
5713 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5714 statement per copy.
5715
5716 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5717
5718 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5719 (GIMPLE_H): Include $(INTERNAL_FN_H).
5720 (OBJS-common): Add internal-fn.o.
5721 (internal-fn.o): New rule.
5722 * internal-fn.def: New file.
5723 * internal-fn.h: Likewise.
5724 * internal-fn.c: Likewise.
5725 * gimple.h: Include internal-fn.h.
5726 (GF_CALL_INTERNAL): New gf_mask.
5727 (gimple_statement_call): Put fntype into a union with a new
5728 internal_fn field.
5729 (gimple_build_call_internal): Declare.
5730 (gimple_build_call_internal_vec): Likewise.
5731 (gimple_call_same_target_p): Likewise.
5732 (gimple_call_internal_p): New function.
5733 (gimple_call_internal_fn): Likewise.
5734 (gimple_call_fntype): Return null for internal calls.
5735 (gimple_call_set_fntype): Assert that the function is not internal.
5736 (gimple_call_set_fn): Likewise.
5737 (gimple_call_set_fndecl): Likewise.
5738 (gimple_call_set_internal_fn): New function.
5739 (gimple_call_addr_fndecl): Handle null functions.
5740 (gimple_call_return_type): Likewise null types.
5741 * gimple.c (gimple_build_call_internal_1): New function.
5742 (gimple_build_call_internal): Likewise.
5743 (gimple_build_call_internal_vec): Likewise.
5744 (gimple_call_same_target_p): Likewise.
5745 (gimple_call_flags): Handle calls to internal functions.
5746 (gimple_call_fnspec): New function.
5747 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5748 (gimple_has_side_effects): Handle null functions.
5749 (gimple_rhs_has_side_effects): Likewise.
5750 (gimple_call_copy_skip_args): Handle calls to internal functions.
5751 * cfgexpand.c (expand_call_stmt): Likewise.
5752 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5753 * gimple-fold.c (gimple_fold_call): Handle null functions.
5754 (gimple_fold_stmt_to_constant_1): Don't fold
5755 calls to internal functions.
5756 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5757 functions.
5758 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5759 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5760 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5761 (do_warn_unused_result): Likewise.
5762 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5763 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5764 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5765 the target of a call.
5766 (initialize_hash_element): Update accordingly.
5767 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5768 (iterative_hash_hashable_expr): Handle calls to internal functions.
5769 (print_expr_hash_elt): Likewise.
5770 * tree-ssa-pre.c (can_value_number_call): Likewise.
5771 (eliminate): Handle null functions.
5772 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5773 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5774 (find_func_aliases): Likewise.
5775 * value-prof.c (gimple_ic_transform): Likewise.
5776 (gimple_indirect_call_to_profile): Likewise.
5777 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5778 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5779
5780 2011-04-19 Jan Hubicka <jh@suse.cz>
5781
5782 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5783 * ipa-inline.c (inline_small_functions): Compute summaries first,
5784 populate heap later.
5785
5786 2011-04-19 Jan Hubicka <jh@suse.cz>
5787
5788 * cgraph.h (save_inline_function_body): Remove.
5789 * ipa-inline-transform.c: New file, broke out of...
5790 * ipa-inline.c: ... this one; Update toplevel comment.
5791 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5792 make global.
5793 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5794 (cgraph_mark_inline_edge): Rename to inline_call; move to
5795 ipa-inline-transform.c.
5796 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5797 move to ipa-inline-transform.c
5798 (recursive_inlining, inline_small_functions, flatten_function,
5799 ipa_inline, inline_always_inline_functions,
5800 early_inline_small_functions): Update.
5801 (inline_transform): Move to ipa-inline-transform.c.
5802 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5803 Declare.
5804 * Makefile.in (ipa-inline-transform.o): New file.
5805 * cgraphunit.c (save_inline_function_body): Move to
5806 ipa-inline-transform.c
5807
5808 2011-04-19 DJ Delorie <dj@redhat.com>
5809
5810 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5811 registers if we already know there aren't any.
5812 (m32c_emit_epilogue): Don't emit a barrier here.
5813 (m32c_emit_eh_epilogue): Likewise.
5814 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5815 operands at expand time.
5816 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5817 int" wchar type.
5818 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5819 duplicates. Provide aliases instead.
5820 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5821 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5822 the compiler.
5823
5824 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5825
5826 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5827 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5828 (general_or_i64_p, sparc_register_move_cost): New function.
5829
5830 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5831
5832 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5833 Add lynx, mipssde. Sort table.
5834
5835 2011-04-19 Xinliang David Li <davidxl@google.com>
5836
5837 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5838 not negative.
5839
5840 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5841
5842 PR target/48678
5843 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5844 is a SUBREG with non-MODE_INT mode inside of it.
5845
5846 2011-04-19 Martin Jambor <mjambor@suse.cz>
5847
5848 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5849 also according to actual contants.
5850 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5851 (gimple_fold_call): Use it.
5852 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5853
5854 2011-04-19 Martin Jambor <mjambor@suse.cz>
5855
5856 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5857 non-pointer assignments.
5858
5859 2011-04-19 Martin Jambor <mjambor@suse.cz>
5860
5861 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5862 account anc_offset and otr_type from the indirect edge info.
5863 * ipa-prop.c (get_ancestor_addr_info): New function.
5864 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5865 get_ancestor_addr_info, call it.
5866 (ipa_note_param_call): Do not initialize information about polymorphic
5867 calls, return the indirect call graph edge. Remove the last
5868 parameter, adjust all callers.
5869 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5870 parameters. Initialize polymorphic information in the indirect edge.
5871
5872 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5873
5874 PR lto/48148
5875 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5876 the types if they have different enumeration identifiers.
5877
5878 2011-04-19 Jan Hubicka <jh@suse.cz>
5879
5880 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5881 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5882 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5883 (optimize_function_for_size_p) ... here.
5884
5885 2011-04-19 Richard Guenther <rguenther@suse.de>
5886
5887 PR lto/48207
5888 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5889 langhook.
5890
5891 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5892
5893 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5894 if DECL_NO_INLINE_WARNING_P is set on the function.
5895
5896 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5897
5898 PR fortran/47976
5899 * reload1.c (inc_for_reload): Return void. All callers changed.
5900 (emit_input_reload_insns): Don't try to delete previous output
5901 reloads to a register, or record spill_reg_store for autoincs.
5902
5903 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5904
5905 * gengtype.h: Updated copyright year.
5906 (struct input_file_st): Add inpisplugin field.
5907 (type_fileloc): New function.
5908 * gengtype.c
5909 (write_typed_struct_alloc_def): Add gcc_assert.
5910 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5911 (write_typed_alloc_defns): Don't output for plugin files.
5912 (input_file_by_name): Clear inpisplugin field.
5913 (main): Set inpisplugin field for plugin files.
5914
5915 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5916
5917 * gengtype-state.c (string_eq): New.
5918 (read_state): Use string_eq instead of strcmp when creating the
5919 state_ident_tab.
5920
5921 2011-04-19 Wei Guozhi <carrot@google.com>
5922
5923 PR target/47855
5924 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5925 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5926 linkage.
5927 * config/arm/constraints.md (Uu): New constraint.
5928 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5929
5930 2011-04-19 Tristan Gingold <gingold@adacore.com>
5931
5932 * config.gcc (-*-*-*vms): Added.
5933 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5934 definitions moved.
5935 * config/vms/vms-ld.c: New file.
5936 * config/vms/vms-ar.c: New file.
5937 * config/vms/t-vmsnative: New file.
5938
5939 2011-04-18 Xinliang David Li <davidxl@google.com>
5940
5941 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5942
5943 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5944
5945 PR middle-end/48661
5946 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5947 if TREE_TYPE (v) is non-NULL.
5948
5949 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5950 gimple_get_virt_mehtod_for_binfo.
5951 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5952 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5953 callers.
5954 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5955
5956 2011-04-18 Michael Matz <matz@suse.de>
5957 Steve Ellcey <sje@cup.hp.com>
5958
5959 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5960 use its mode as source mode if it isn't VOIDmode.
5961
5962 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5963
5964 * doc/passes.texi: Fill crossref nodes.
5965
5966 2011-04-18 Jim Meyering <meyering@redhat.com>
5967
5968 Fix doubled-word typos in comments and strings
5969 * config/alpha/vms-unwind.h: s/for for/for/
5970 * config/arm/unwind-arm.h: Likewise.
5971 * config/microblaze/microblaze.c: Likewise.
5972 * config/sh/constraints.md: s/in in/in/
5973 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5974
5975 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5976
5977 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5978 (AVX_FLOAT_MODE_P): Ditto.
5979 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5980 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5981 (AVX_VEC_FLOAT_MODE_P): Ditto.
5982 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5983 (UNSPEC_MASKSTORE): Ditto.
5984 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5985 Merge from <sse>_movmsk<ssemodesuffix> and
5986 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5987 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5988 iterator.
5989 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5990 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5991 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5992
5993 2011-04-18 Jan Hubicka <jh@suse.cz>
5994
5995 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5996
5997 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5998 (want_inline_function_called_once_p): Break out the logic from
5999 ipa_inline.
6000 (edge_badness): Ensure that profile is not misupdated.
6001 (lookup_recursive_calls): Prioritize by call frequencies.
6002 (inline_small_functions): Move program size estimates here;
6003 actually process whole queue even when unit growth has been
6004 met. (to properly compute inline_failed reasons and for the
6005 case unit size decrease.) Revisit comments on recursive inlining.
6006 (ipa_inline): Remove unit summary code; first inline hot calls
6007 of functions called once, cold calls next.
6008 (order, nnodes): Remove unused variables.
6009 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6010 (GTFILES): Remove ipa-inline.c
6011 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6012
6013 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6014
6015 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6016
6017 2011-04-18 Jie Zhang <jie@codesourcery.com>
6018 Richard Earnshaw <rearnsha@arm.com>
6019
6020 * arm.c (neon_builtin_type_bits): Remove.
6021 (typedef enum neon_builtin_mode): New.
6022 (T_MAX): Don't define.
6023 (typedef enum neon_builtin_datum): Remove bits, codes[],
6024 num_vars and base_fcode. Add mode, code and fcode.
6025 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6026 VAR10): Change accordingly.
6027 (neon_builtin_data[]): Change accordingly
6028 (arm_init_neon_builtins): Change accordingly.
6029 (neon_builtin_compare): Remove.
6030 (locate_neon_builtin_icode): Remove.
6031 (arm_expand_neon_builtin): Change accordingly.
6032
6033 * arm.h (enum arm_builtins): Move to ...
6034 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6035
6036 * arm.c (arm_builtin_decl): Declare.
6037 (TARGET_BUILTIN_DECL): Define.
6038 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6039 (arm_builtin_decls[]): New.
6040 (arm_init_neon_builtins): Store builtin declarations in
6041 arm_builtin_decls[].
6042 (arm_init_tls_builtins): Likewise.
6043 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6044 (arm_builtin_decl): New.
6045
6046 2011-04-18 Richard Guenther <rguenther@suse.de>
6047
6048 * tree.c (upper_bound_in_type): Build properly canonicalized
6049 INTEGER_CSTs.
6050 (lower_bound_in_type): Likewise.
6051
6052 2011-04-18 Richard Guenther <rguenther@suse.de>
6053
6054 * gimple.h (gimple_call_addr_fndecl): New function.
6055 (gimple_call_fndecl): Use it.
6056 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6057 for direct calls.
6058 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6059 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6060
6061 2011-04-18 Richard Guenther <rguenther@suse.de>
6062
6063 PR middle-end/48650
6064 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6065
6066 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6067
6068 PR lto/48492
6069 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6070 DECL_IN_CONSTANT_POOL without RTL.
6071
6072 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6073 Ira Rosen <ira.rosen@linaro.org>
6074
6075 PR target/48252
6076 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6077 to match neon_vzip/vuzp/vtrn_internal.
6078 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6079 outputs explicitly dependent on both inputs.
6080 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6081
6082 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6083
6084 PR tree-optimization/48616
6085 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6086 whether the shift is by scalar or vector based on whether all SLP
6087 scalar stmts have the same rhs.
6088
6089 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6090
6091 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6092 memory operands.
6093
6094 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6095
6096 PR target/43700
6097 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6098 registers.
6099
6100 2011-04-17 Jan Hubicka <jh@suse.cz>
6101
6102 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6103 * cgrpahunit.c (cgraph_finalize_function): Do not set
6104 finalized_by_frontend.
6105 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6106 finalized_by_frontend.
6107
6108 2011-04-17 Jan Hubicka <jh@suse.cz>
6109
6110 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6111 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6112 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6113 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6114 method.
6115 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6116 gimple-fold.c
6117 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6118
6119 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6120
6121 PR lto/48538
6122 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6123 is non-null before accessing it.
6124 (input_cgraph): Remove trailing spaces.
6125
6126 2011-04-17 Revital Eres <revital.eres@linaro.org>
6127
6128 * params.def (sms-min-sc): New param flag.
6129 * modulo-sched.c (sms_schedule): Use it.
6130 * doc/invoke.texi (sms-min-sc): Document it.
6131
6132 2011-04-17 Jan Hubicka <jh@suse.cz>
6133
6134 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6135 present, also set gimple_call_set_cannot_inline.
6136 * ipa-inline.c: Update toplevel comment.
6137 (MAX_TIME): Remove.
6138 (cgraph_clone_inlined_nodes): Fix linebreaks.
6139 (cgraph_check_inline_limits): Restructure to ...
6140 (caller_growth_limits): ... this one; be more tolerant
6141 on growth in nested inline chains; add explanatory comment;
6142 fix stack accounting thinko introduced by previous patch.
6143 (cgraph_default_inline_p): Remove.
6144 (report_inline_failed_reason): New function.
6145 (can_inline_edge_p): New function.
6146 (can_early_inline_edge_p): New function.
6147 (leaf_node_p): Move upwards in file.
6148 (want_early_inline_function_p): New function.
6149 (want_inline_small_function_p): New function.
6150 (want_inline_self_recursive_call_p): New function.
6151 (cgraph_edge_badness): Rename to ...
6152 (edge_badness) ... this one; fix linebreaks.
6153 (update_edge_key): Update call of edge_baddness; add
6154 detailed dump about queue updates.
6155 (update_caller_keys): Use can_inline_edge_p and
6156 want_inline_small_function_p.
6157 (cgraph_decide_recursive_inlining): Rename to...
6158 (recursive_inlining): Use can_inline_edge_p and
6159 want_inline_self_recursive_call_p; simplify and remove no longer
6160 valid FIXME.
6161 (cgraph_set_inline_failed): Remove.
6162 (add_new_edges_to_heap): Use can_inline_edge_p and
6163 want_inline_small_function_p.
6164 (cgraph_decide_inlining_of_small_functions): Rename to ...
6165 (inline_small_functions): ... this one; cleanup; use
6166 can/want predicates; cleanup debug ouput; work edges till fibheap
6167 is exhausted and do not stop once unit growth is reached; remove
6168 later loop processing remaining edges.
6169 (cgraph_flatten): Rename to ...
6170 (flatten_function): ... this one; use can_inline_edge_p
6171 and can_early_inline_edge_p predicates.
6172 (cgraph_decide_inlining): Rename to ...
6173 (ipa_inline): ... this one; remove unreachable nodes before
6174 inlining functions called once; simplify the pass.
6175 (cgraph_perform_always_inlining): Rename to ...
6176 (inline_always_inline_functions): ... this one; use
6177 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6178 (cgraph_decide_inlining_incrementally): Rename to ...
6179 (early_inline_small_functions): ... this one; simplify
6180 using new predicates; cleanup; make dumps prettier.
6181 (cgraph_early_inlining): Rename to ...
6182 (early_inliner): newer inline regular functions into always-inlines;
6183 fix updating of call stmt summaries.
6184 (pass_early_inline): Update for new names.
6185 (inline_transform): Fix formating.
6186 (gate_cgraph_decide_inlining): Rename to ...
6187 (pass_ipa_inline): ... this one.
6188 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6189 * ipa-inline-analysis.c (dump_inline_summary): Update.
6190 (compute_inline_parameters): Do not compute disregard_inline_limits;
6191 look for mismatching arguments.
6192 (estimate_growth): Fix handlig of non-trivial self recursion.
6193 (inline_read_summary): Do not read info->disregard_inline_limits.
6194 (inline_write_summary): Do not write info->disregard_inline_limits.
6195 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6196 and move all checks into can_inline_edge_p predicate; re-enable code
6197 comparing optimization levels.
6198 (expand_call_inline): Do not test inline_forbidden_into_p.
6199 * Makefile.in (ipa-inline.o): Update arguments.
6200
6201 2011-04-17 Revital Eres <revital.eres@linaro.org>
6202
6203 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6204
6205 2011-04-17 Revital Eres <revital.eres@linaro.org>
6206
6207 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6208
6209 2011-04-17 Michael Matz <matz@suse.de>
6210
6211 PR tree-optimization/48622
6212 PR lto/48645
6213 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6214 in same order as they're written.
6215
6216 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6217
6218 * config/pa/predicates.md: Reorganize and simplify predicates.
6219 Eliminate duplicate code checks.
6220 (arith_operand): Rename to arith14_operand
6221 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6222 * config/pa/pa.md: Use renamed operands.
6223 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6224 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6225 arith11_operand, adddi3_operand, indexed_memory_operand,
6226 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6227 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6228 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6229 move_dest_operand, move_src_operand, prefetch_cc_operand,
6230 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6231 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6232 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6233 div_operand, int5_operand, movb_comparison_operator,
6234 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6235 arith_double_operand, ireg_operand, lhs_lshift_operand,
6236 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6237 integer_store_memory_operand): Likewise.
6238 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6239 (integer_store_memory_operand, read_only_operand,
6240 function_label_operand, borx_reg_operand,
6241 non_hard_reg_operand): Likewise.
6242 (eq_neq_comparison_operator): Delete unused operator.
6243 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6244 function_label_operand.
6245 (emit_move_sequence): Likewise.
6246
6247 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6248
6249 * config/i386/sse.md (sseunpackmode): New mode attribute.
6250 (ssepackmode): Ditto.
6251 (vec_pack_trunc_<mode>): Macroize expander from
6252 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6253 (vec_unpacks_lo_<mode>): Macroize expander from
6254 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6255 (vec_unpacks_hi_<mode>): Macroize expander from
6256 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6257 (vec_unpacku_lo_<mode>): Macroize expander from
6258 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6259 (vec_unpacku_hi_<mode>): Macroize expander from
6260 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6261 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6262 ix86_expand_sse4_unpack.
6263 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6264
6265 2011-04-16 Jan Hubicka <jh@suse.cz>
6266
6267 * cgraphbuild.c: Include ipa-inline.h.
6268 (reset_inline_failed): Use initialize_inline_failed.
6269 * cgraph.c: Include ipa-inline.h.
6270 (cgraph_create_node_1): Do not initialize estimated_growth.
6271 (initialize_inline_failed): More to ipa-inline-analysis.c
6272 (dump_cgraph_node): Do not dump inline flags.
6273 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6274 and disregard_inline_limits flags.
6275 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6276 time, size, estimated_growth.
6277 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6278 Update.
6279 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6280 DECL_DISREGARD_INLINE_LIMITS.
6281 (cgraph_analyze_function): Do not initialize
6282 node->local.disregard_inline_limits.
6283 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6284 inlinable, versionable and disregard_inline_limits.
6285 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6286 cgraph_check_inline_limits, cgraph_default_inline_p,
6287 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6288 add_new_edges_to_heap): Update.
6289 (cgraph_decide_inlining_of_small_function): Update; set
6290 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6291 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6292 cgraph_decide_inlining_incrementally): Update.
6293 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6294 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6295 time, size and estimated_growth parameters.
6296 (estimate_edge_growth): Update.
6297 (initialize_inline_failed): Declare.
6298 * ipa-split.c: Include ipa-inline.h
6299 (execute_split_functions): Update.
6300 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6301 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6302 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6303 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6304 estimated_growth to INT_MIN.
6305 (inline_node_duplication_hook): Likewise.
6306 (dump_inline_summary): Dump new fields.
6307 (compute_inline_parameters): Update.
6308 (estimate_edge_time, estimate_time_after_inlining,
6309 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6310 inline_write_summary):
6311 (initialize_inline_failed): Move here from cgraph.c.
6312 * tree-sra.c: Include ipa-inline.h.
6313 (ipa_sra_preliminary_function_checks): Update.
6314 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6315 ipa-inline.h.
6316
6317 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6318
6319 * config/i386/sse.md (V16): New mode iterator.
6320 (VI1, VI8): Ditto.
6321 (AVXMODEQI, AVXMODEDI): Remove.
6322 (sse2, sse3): New mode attribute.
6323 (mov<mode>): Use V16 mode iterator.
6324 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6325 (push<mode>1): Use V16 mode iterator.
6326 (movmisalign<mode>): Ditto.
6327 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6328 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6329 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6330 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6331 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6332 avx_movdqu<avxmodesuffix>.
6333 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6334 *avx_movdqu<avxmodesuffix>.
6335 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6336 avx_lddqu<avxmodesuffix>.
6337 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6338 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6339 avx_movnt<AVXMODEDI:mode>.
6340 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6341 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6342
6343 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6344
6345 PR target/48629
6346 * haifa-sched.c (prune_ready_list, schedule_block): Use
6347 sched_pressure_p rather than flag_sched_pressure.
6348
6349 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6350
6351 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6352 cgraph_get_node instead of cgraph_get_create_node.
6353
6354 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6355
6356 * cfgexpand.c (expand_debug_expr): Use
6357 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6358
6359 2011-04-15 Michael Matz <matz@suse.de>
6360
6361 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6362 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6363 * function.c (gimplify_parameters): Ditto.
6364 * gimplify.c (gimplify_vla_decl): Ditto.
6365
6366 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6367 (gimple_call_set_alloca_for_var): New inline function.
6368 (gimple_call_alloca_for_var_p): Ditto.
6369 * gimple.c (gimple_build_call_from_tree): Remember
6370 CALL_ALLOCA_FOR_VAR_P state.
6371 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6372
6373 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6374 calls if they were for VLA objects.
6375
6376 2011-04-15 Martin Jambor <mjambor@suse.cz>
6377
6378 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6379 of ADR_EXPRs.
6380
6381 2011-04-15 Martin Jambor <mjambor@suse.cz>
6382
6383 PR middle-end/48601
6384 * tree-emutls.c (lower_emutls_function_body): Call
6385 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6386 result is non-NULL.
6387
6388 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6389
6390 * c-decl.c (detect_field_duplicates): Call
6391 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6392
6393 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6394
6395 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6396 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6397 * ipa-pure-const.c (check_stmt): Call it.
6398 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6399
6400 2011-04-15 Richard Guenther <rguenther@suse.de>
6401
6402 PR tree-optimization/48290
6403 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6404 Properly decide inhibiting propagation based on the valueized
6405 operand. Do loop-closed SSA form preserving here ...
6406 (init_copy_prop): ... not here.
6407
6408 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6409
6410 PR target/48612
6411 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6412 (*ieee_smax<mode>3): Likewise.
6413
6414 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6415
6416 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6417 Replace match_operand with match_dup for the third operand in
6418 these expanders.
6419
6420 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6421
6422 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6423 to track processing of conditionals. Update all callers.
6424 (try_combine, simplify_if_then_else): Update.
6425
6426 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6427
6428 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6429 -fsched-pressure.
6430
6431 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6432
6433 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6434 instead of match_operand for operand 3.
6435
6436 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6437
6438 * recog.h (insn_operand_data): Add an "allows_mem" field.
6439 * genoutput.c (output_operand_data): Initialize it.
6440 * optabs.c (maybe_legitimize_operand_same_code): New function.
6441 (maybe_legitimize_operand): Use it when matching the original
6442 op->value.
6443
6444 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6445
6446 * gimplify.c: Fix issues in comments throughout.
6447 (voidify_wrapper_expr): Fix long line.
6448 (build_stack_save_restore): Likewise.
6449 (gimplify_loop_expr): Likewise.
6450 (gimplify_compound_lval): Likewise.
6451 (gimplify_init_ctor_eval): Likewise.
6452 (gimplify_modify_expr_rhs): Likewise.
6453 (omp_notice_threadprivate_variable): Likewise.
6454
6455 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6456
6457 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6458 original one if this is not a builtin function.
6459
6460 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6461
6462 PR target/48605
6463 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6464 offset it as needed based on top 2 bits in operands[3], change
6465 MEM mode to SFmode and mask those 2 bits away from operands[3].
6466
6467 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6468
6469 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6470 change from objc_declare_protocols() to objc_declare_protocol().
6471
6472 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6473
6474 * config/i386/sse.md (sse4_1): New mode attribute.
6475 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6476 avx_blend<ssemodesuffix><avxmodesuffix> and
6477 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6478 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6479 avx_blendv<ssemodesuffix><avxmodesuffix> and
6480 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6481 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6482 avx_dp<ssemodesuffix><avxmodesuffix> and
6483 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6484 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6485 (sse4_1_packusdw): Merge with *avx_packusdw.
6486 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6487 (sse4_1_pblendw): Merge with *avx_pblendw.
6488 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6489 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6490 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6491 VF mode iterator.
6492 (sse4_1_round<ssescalarmodesuffix>): Merge with
6493 *avx_round<ssescalarmodesuffix>.
6494 (aesenc): Merge with *avx_aesenc.
6495 (aesenclast): Merge with *avx_aesenclast.
6496 (aesdec): Merge with *avx_aesdec.
6497 (aesdeclast): Merge with *avx_aesdeclast.
6498 (pclmulqdq): Merge with *pclmulqdq.
6499 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6500 New predicate.
6501 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6502
6503 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6504
6505 PR middle-end/48608
6506 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6507 (align_local_variable): This. Update DECL_ALIGN.
6508 (add_stack_var): Updated.
6509 (expand_one_stack_var): Likewise.
6510
6511 2011-04-14 Richard Guenther <rguenther@suse.de>
6512
6513 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6514 Remove.
6515 (dse_initialize_block_local_data, dse_leave_block,
6516 record_voperand_set, get_stmt_uid): Likewise.
6517 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6518 (dse_optimize_stmt): Remove voperand set handling code.
6519 Simplify and improve to handle any kind of killing stmt.
6520 (dse_record_phi): Remove.
6521 (dse_enter_block): Simplify.
6522 (tree_ssa_dse): Likewise.
6523 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6524
6525 2011-04-14 Jan Hubicka <jh@suse.cz>
6526
6527 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6528 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6529 (cgraph_local_info): Remove inline_summary.
6530 * ipa-cp.c: Include ipa-inline.h.
6531 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6532 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6533 accesor.
6534 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6535 (input_overwrite_node): Do not set inline summary.
6536 (input_node): Do not stream inline summary.
6537 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6538 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6539 growth; we do not have inline parameters computed for that anyway.
6540 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6541 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6542 (inline_summary_t): New type and VECtor.
6543 (debug_inline_summary, dump_inline_summaries): Declare.
6544 (inline_summary): Use VOCtor.
6545 (estimate_edge_growth): Kill hack computing call stmt size directly.
6546 * lto-section-in.c (lto_section_name): Add inline section.
6547 * ipa-inline-analysis.c: Include lto-streamer.h
6548 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6549 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6550 (inline_summary_vec): Define.
6551 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6552 dump_inline_summaries): New functions.
6553 (estimate_function_body_sizes): Properly compute size/time of outgoing
6554 calls.
6555 (compute_inline_parameters): Alloc inline_summary; do not compute
6556 size/time of incomming calls.
6557 (estimate_edge_time): Avoid missing time summary hack.
6558 (inline_read_summary): Read inline summary info.
6559 (inline_write_summary): Write inline summary info.
6560 (inline_free_summary): Free all hooks and inline summary vector.
6561 * lto-streamer.h: Add LTO_section_inline_summary section.
6562 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6563 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6564
6565 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6566
6567 * tree-vectorizer.h (vect_strided_store_supported): Add a
6568 HOST_WIDE_INT argument.
6569 (vect_strided_load_supported): Likewise.
6570 (vect_permute_store_chain): Return void.
6571 (vect_transform_strided_load): Likewise.
6572 (vect_permute_load_chain): Delete.
6573 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6574 count argument. Check that the count is a power of two.
6575 (vect_strided_load_supported): Likewise.
6576 (vect_permute_store_chain): Return void. Update after above changes.
6577 Assert that the access is supported.
6578 (vect_permute_load_chain): Likewise.
6579 (vect_transform_strided_load): Return void.
6580 * tree-vect-stmts.c (vectorizable_store): Update calls after
6581 above interface changes.
6582 (vectorizable_load): Likewise.
6583 (vect_analyze_stmt): Don't check for strided powers of two here.
6584
6585 2011-04-14 Richard Guenther <rguenther@suse.de>
6586
6587 PR tree-optimization/48590
6588 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6589 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6590 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6591 BUILT_IN_STACK_SAVE.
6592 * tree-ssa-dce.c (propagate_necessity): Handle
6593 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6594
6595 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6596
6597 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6598 objc_declare_class.
6599
6600 2011-04-14 Richard Guenther <rguenther@suse.de>
6601
6602 * tree.h (get_object_alignment_1): Declare.
6603 * builtins.c (get_object_alignment_1): Split out worker from ...
6604 (get_object_alignment): ... here.
6605 * fold-const.c (get_pointer_modulus_and_residue): Use
6606 get_object_alignment_1.
6607
6608 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6609
6610 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6611 type parameter.
6612 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6613 parameter. Generalise code to handle arrays as well as vectors.
6614 (vect_setup_realignment): Update accordingly.
6615 * tree-vect-stmts.c (vectorizable_store): Likewise.
6616 (vectorizable_load): Likewise.
6617
6618 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6619
6620 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6621 within the per-copy loop.
6622
6623 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6624
6625 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6626 in the dump file.
6627
6628 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6629
6630 * doc/options.texi (Negative): Explicitly mention that the
6631 Negative chain must be circular.
6632
6633 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6634
6635 * function.h (block_chainon): Declare.
6636 * function.c (block_chainon): Define.
6637
6638 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6639 Eric Weddington <eric.weddington@atmel.com>
6640 Georg-Johann Lay <avr@gjlay.de>
6641
6642 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6643 New Includes
6644 (avr_init_builtins, avr_expand_builtin,
6645 avr_expand_delay_cycles, avr_expand_unop_builtin,
6646 avr_expand_binop_builtin ): New functions.
6647 (avr_builtin_id): New enum
6648 (struct avr_builtin_description): New struct
6649 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6650 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6651
6652 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6653 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6654 UNSPECV_DELAY_CYCLES): new enumeration values
6655 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6656 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6657 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6658 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6659 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6660 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6661 "fmulsu"): New insns
6662
6663 * config/avr/avr-c.c: fix line endings
6664 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6665 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6666 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6667 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6668 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6669
6670 * doc/extend.texi (AVR Built-in Functions): New node
6671 (Target Builtins): Add documentation of AVR
6672 built-in functions.
6673
6674 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6675
6676 PR target/44643
6677 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6678 alone. Error if non-const data has attribute progmem.
6679
6680 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6681
6682 * tree.h (struct tree_constructor): Include tree_typed instead of
6683 tree_common.
6684 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6685 TS_TYPED instead of TS_COMMON.
6686
6687 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6688
6689 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6690 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6691 (sse2_psadbw): Merge with *avx_psadbw.
6692 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6693 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6694 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6695 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6696 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6697 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6698 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6699 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6700 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6701 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6702 (ssse3_palignrti): Merge with *avx_palignrti.
6703
6704 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6705
6706 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6707 * tree-ssanames.c (fini_ssanames): VEC_free it.
6708 (make_ssa_name_fn): Update for VECness of free_ssanames.
6709 (release_ssa_name, release_dead_ssa_names): Likewise.
6710 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6711 tree_common.
6712 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6713 TS_TYPED instead of TS_COMMON.
6714
6715 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6716
6717 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6718 statistics_counter_event.
6719 * tree-ssa-copyrename.c (stats): Define.
6720 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6721 statistics_counter_event.
6722 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6723 (bswap_stats, widen_mul_stats): Define.
6724 (insert_reciprocals): Increment rdivs_inserted.
6725 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6726 rfuncs_inserted. Add calls to statistics_counter_event.
6727 (execute_cse_sincos_1): Increment inserted.
6728 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6729 statistics_counter_event.
6730 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6731 of bswap_stats. Add calls to statistics_counter_event.
6732 (convert_mult_to_widen): Increment widen_mults_inserted.
6733 (convert_plusminus_to_widen): Increment maccs_inserted.
6734 (convert_mult_to_fma): Increment fmas_inserted.
6735 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6736 calls to statistics_counter_event.
6737
6738 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6739
6740 PR rtl-optimization/48455
6741 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6742 `temp_costs->mem_cost'.
6743
6744 2011-04-13 Jan Hubicka <jh@suse.cz>
6745
6746 * ipa-inline.h: New file.
6747 * ipa-inline-analysis.c: New file. Broken out of ...
6748 * ipa-inline.c: ... this file; update toplevel comment;
6749 include ipa-inline.h
6750 (inline_summary): Move to ipa-inline.h
6751 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6752 ipa-inline-analysis.c.
6753 (cgraph_estimate_time_after_inlining): Rename to
6754 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6755 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6756 to estimate_edge_growth.
6757 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6758 rename to estimate_size_after_inlining.
6759 (cgraph_mark_inline_edge): Update for new naming convention.
6760 (cgraph_check_inline_limits): Likewise.
6761 (cgraph_edge_badness): Likewise.
6762 (cgraph_decide_recursive_inlining): Likewise.
6763 (cgraph_decide_inlining_of_small_functions): Likewise.
6764 (cgraph_decide_inlining_incrementally): Likewise.
6765 (cgraph_estimate_growth): Rename to estimate_growth; move to
6766 ipa-inline-analysis.c.
6767 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6768 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6769 (compute_inline_parameters): Likewise.
6770 (compute_inline_parameters_for_current): Likewise.
6771 (pass_inline_parameters): Likewise.
6772 (inline_indirect_intraprocedural_analysis): Likewise.
6773 (analyze_function): Rename to inline_analyze_function; likewise.
6774 (add_new_function): Move to ipa-inline-analysis.c.
6775 (inline_generate_summary): Likewise.
6776 (inline_read_summary): Likewise.
6777 (inline_write_summary): Likewise.
6778 * Makefile.in (ipa-inline-analysis.c): New file.
6779
6780 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6781
6782 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6783 * configure: Regenerate.
6784
6785 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6786
6787 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6788 instead of tree_common.
6789 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6790 Likewise.
6791 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6792 TS_TYPED rather than TS_COMMON.
6793 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6794
6795 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6796
6797 PR target/45263
6798 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6799 r20 around calls of __tablejump_elpm__
6800
6801 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6802
6803 PR middle-end/48591
6804 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6805 NULL.
6806 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6807
6808 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6809
6810 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6811 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6812 (cfi_vec): New typedef.
6813 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6814 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6815 (cie_cfi_vec): New static variable.
6816 (cie_cfi_head): Delete.
6817 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6818 declaration changed. Use vector rather than list operations.
6819 (new_cfi): Don't initialize the dw_cfi_next field.
6820 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6821 rather than list operations.
6822 (lookup_cfa): Use vector rather than list operations.
6823 (output_cfis): New argument upto. Accept a cfi_vec rather than
6824 a dw_cfi_ref list head as argument. All callers changed.
6825 Iterate over the vector using upto as a maximum index.
6826 (output_all_cfis): New static function.
6827 (output_fde): Use vector rather than list operations. Use the
6828 new upto argument for output_cfis rather than manipulating a
6829 list.
6830 (dwarf2out_begin_prologue): Change initializations to match
6831 new struct members.
6832 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6833 from the vector length rather than searching for the end of a list.
6834 Use output_all_cfis.
6835 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6836
6837 2011-04-13 Nick Clifton <nickc@redhat.com>
6838
6839 * config/rx/rx.md (movmemsi): Do not use this pattern when
6840 volatile pointers are involved.
6841
6842 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6843
6844 * config/i386/sse.md (pinsrbits): Remove.
6845 (sse2_packsswb): Merge with *avx_packsswb.
6846 (sse2_packssdw): Merge with *avx_packssdw.
6847 (sse2_packuswb): Merge with *avx_packuswb.
6848 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6849 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6850 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6851 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6852 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6853 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6854 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6855 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6856 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6857 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6858 (sse2_loadld): Merge with *avx_loadld.
6859 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6860 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6861 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6862 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6863 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6864
6865 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6866
6867 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6868 calling TREE_CHAIN.
6869 * print-tree.c (print_node): Likewise.
6870 * tree-inline.c (copy_tree_r): Likewise.
6871 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6872 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6873 instead of TS_COMMON.
6874 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6875 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6876 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6877 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6878 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6879 ...and these...
6880 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6881 * tree.h: ...here.
6882 (TREE_CHAIN): Check for a TS_COMMON structure.
6883 (TREE_TYPE): Check for a TS_TYPED structure.
6884
6885 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6886
6887 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6888 cgraph_get_create_node instead of cgraph_node.
6889
6890 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6891
6892 * c-parser.c (c_parser_initelt): Updated call to
6893 objc_build_message_expr.
6894 (c_parser_postfix_expression): Likewise.
6895
6896 2011-04-12 Kai Tietz <ktietz@redhat.com>
6897
6898 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6899 MASK_MS_BITFIELD_LAYOUT bit.
6900
6901 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6902
6903 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6904 assert it is always true.
6905 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6906 moves.
6907
6908 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6909
6910 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6911 compiling Objective-C to be more efficient.
6912
6913 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6914
6915 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6916 argv_copied.
6917
6918 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6919
6920 * recog.h, genoutput.c, optabs.c: Revert last patch.
6921
6922 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6923
6924 PR target/48090
6925 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6926
6927 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6928
6929 * recog.h (insn_operand_data): Add an "allows_mem" field.
6930 * genoutput.c (output_operand_data): Initialize it.
6931 * optabs.c (maybe_legitimize_operand_same_code): New function.
6932 (maybe_legitimize_operand): Use it when matching the original
6933 op->value.
6934
6935 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6936
6937 * genpreds.c (process_define_predicate): Move most processing
6938 to gensupport.c. Continue to validate the expression.
6939 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6940 (process_define_predicate): Move processing to gensupport.c.
6941 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6942 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6943 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6944 argument.
6945 (valid_predicate_name_p): New function, split out from old
6946 genpreds.c:process_define_predicate.
6947 (process_define_predicate): New function, combining code from
6948 old genpreds.c and genrecog.c functions.
6949 (process_rtx): Call it for DEFINE_PREDICATE and
6950 DEFINE_SPECIAL_PREDICATE.
6951
6952 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6953
6954 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6955 size of a '%A' memory reference.
6956 (T_DREG, T_QREG): New neon_builtin_type_bits.
6957 (arm_init_neon_builtins): Assert that the load and store operands
6958 are neon_struct_operands.
6959 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6960 (NEON_ARG_MEMORY): New builtin_arg.
6961 (neon_dereference_pointer): New function.
6962 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6963 Handle NEON_ARG_MEMORY.
6964 (arm_expand_neon_builtin): Update after above interface changes.
6965 Use NEON_ARG_MEMORY for loads and stores.
6966 * config/arm/predicates.md (neon_struct_operand): New predicate.
6967 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6968 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6969 (V_four_elem): Tweak formatting.
6970 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6971 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6972 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6973 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6974 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6975 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6976 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6977 Use %A in the output template.
6978 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6979 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6980 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6981 the width of the memory access. Remove post-increment.
6982 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6983
6984 2011-04-12 Nick Clifton <nickc@redhat.com>
6985
6986 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6987 instruction for interrupt handlers if the target is the basic V850
6988 architecture.
6989 (expand_epilogue): Likewise.
6990
6991 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6992
6993 PR rtl-optimization/48549
6994 * combine.c (propagate_for_debug): Also stop after BB_END of
6995 this_basic_block. Process LAST and just stop processing after it.
6996 (combine_instructions): If last_combined_insn has been deleted,
6997 set last_combined_insn to its PREV_INSN.
6998
6999 2011-04-12 Richard Guenther <rguenther@suse.de>
7000
7001 PR tree-optimization/46076
7002 * gimple.h (struct gimple_statement_call): Add fntype field.
7003 (gimple_call_fntype): Adjust.
7004 (gimple_call_set_fntype): New function.
7005 * gimple.c (gimple_build_call_1): Set the call function type.
7006 * gimplify.c (gimplify_call_expr): Preserve the function
7007 type the frontend used for the call.
7008 (gimplify_modify_expr): Likewise.
7009 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7010 function type.
7011 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7012 function type.
7013 * tree-ssa.c (useless_type_conversion_p): Function pointer
7014 conversions are useless.
7015
7016 2011-04-12 Martin Jambor <mjambor@suse.cz>
7017
7018 * cgraph.h (cgraph_node): Remove function declaration.
7019 (cgraph_create_node): Declare.
7020 (cgraph_get_create_node): Likewise.
7021 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7022 Updated all callers.
7023 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7024 the decl does not already exist. Call cgraph_get_create_node instead
7025 of cgraph_node.
7026 (cgraph_get_create_node): New function.
7027 (cgraph_same_body_alias): Update comment.
7028 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7029 assert it does not return NULL.
7030 (cgraph_update_edges_for_call_stmt): Likewise.
7031 (cgraph_clone_edge): Likewise.
7032 (cgraph_create_virtual_clone): Likewise.
7033 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7034 instead of cgraph_node.
7035 (cgraph_add_new_function): Call cgraph_create_node or
7036 cgraph_get_create_node instead of cgraph_node.
7037 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7038 instead of cgraph_node.
7039 (record_eh_tables): Likewise.
7040 (mark_address): Likewise.
7041 (mark_load): Likewise.
7042 (build_cgraph_edges): Call cgraph_get_create_node instead
7043 of cgraph_node.
7044 (rebuild_cgraph_edges): Likewise.
7045 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7046 instead of cgraph_node.
7047 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7048 cgraph_node.
7049 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7050 cgraph_create_node instead of cgraph_node.
7051 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7052 of cgraph_node.
7053 * lto-cgraph.c (input_node): Likewise.
7054 * lto-streamer-in.c (input_function): Likewise.
7055 * varasm.c (mark_decl_referenced): Likewise.
7056 (assemble_alias): Likewise.
7057
7058 2011-04-12 Martin Jambor <mjambor@suse.cz>
7059
7060 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7061 instead of cgraph_node and assert it does not return NULL.
7062 * lto-streamer-in.c (lto_read_body): Likewise.
7063 * omp-low.c (new_omp_context): Likewise.
7064 (create_task_copyfn): Likewise.
7065 * tree-emutls.c (lower_emutls_function_body): Likewise.
7066 * matrix-reorg.c (transform_allocation_sites): Likewise.
7067
7068 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7069
7070 PR c/48552
7071 * c-typeck.c (build_asm_expr): Error out on attempts to use
7072 void type outputs or inputs for constraints that allow reg or
7073 don't allow memory.
7074
7075 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7076 Richard Earnshaw <rearnsha@arm.com>
7077
7078 PR target/48250
7079 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7080 to use sign-magnitude offsets. Reject unsupported unaligned
7081 cases. Add detailed description in comments.
7082 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7083 condition from TARGET_32BIT to TARGET_ARM.
7084
7085 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7086
7087 * tree.h (struct typed_tree): New.
7088 (struct tree_common): Include it instead of tree_base.
7089 (TREE_TYPE): Update for new location of type field.
7090 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7091 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7092 (union tree_node): Add typed field.
7093 * treestruct.def (TS_TYPED): New.
7094 * lto-streamer.c (check_handled_ts_structures): Handle it.
7095 * tree.c (MARK_TS_TYPED): New macro.
7096 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7097
7098 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7099
7100 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7101 (force_nonfallthru): Do not alter the loop nest if no basic block
7102 was created.
7103
7104 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7105
7106 * config/i386/sse.md (VI): New mode iterator.
7107 (SSEMODEI): Remove.
7108 (AVX256MODEI): Ditto.
7109 (AVXMODEF4P): Ditto.
7110 (avxvecpsmode): Ditto.
7111 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7112 (sse2_andnot<mode>3): New expander.
7113 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7114 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7115 (<any_logic:code><mode>3): Use VI mode iterator.
7116 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7117 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7118 (*andnottf3): Handle AVX three-operand constraints.
7119 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7120
7121 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7122 Robert Millan <rmh@gnu.org>
7123
7124 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7125 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7126 GNU_USER_DYNAMIC_LINKER64): Define.
7127 (REG_NAME): Don't undefine.
7128 (MD_UNWIND_SUPPORT): Undefine.
7129 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7130 (REG_NAME): Don't undefine.
7131 (MD_UNWIND_SUPPORT): Undefine.
7132 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7133
7134 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7135
7136 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7137 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7138
7139 2011-04-11 Xinliang David Li <davidxl@google.com>
7140
7141 * value-profile.c (check_ic_target): New function.
7142 (gimple_ic_transform): Sanity check indirect call target.
7143 * gimple-low.c (gimple_check_call_args): Interface change.
7144 (gimple_check_call_matching_types): New function.
7145 * tree-inline.c (tree_can_inline_p): Call new function.
7146
7147 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7148
7149 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7150 tree-pretty-print.h & realmpfr.h.
7151
7152 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7153
7154 PR middle-end/48464
7155 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7156 (setup_allocno_and_important_classes): Ditto.
7157
7158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7159
7160 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7161 GNU_USER_DYNAMIC_LINKER.
7162 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7163 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7164 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7165 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7166 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7167 GNU_USER_TARGET_OS_CPP_BUILTINS.
7168 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7170 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7172 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7173 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7174 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7175 GNU_USER_TARGET_OS_CPP_BUILTINS.
7176 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7177 GNU_USER_DYNAMIC_LINKER.
7178 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7179 GNU_USER_TARGET_OS_CPP_BUILTINS.
7180 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7181 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7182 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7183 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7184 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7185 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7186 GNU_USER_DYNAMIC_LINKER64): Remove.
7187 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7188 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7189 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7190 GNU_USER_DYNAMIC_LINKER.
7191 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7192 GNU_USER_TARGET_OS_CPP_BUILTINS.
7193 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7194 GNU_USER_TARGET_OS_CPP_BUILTINS.
7195 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7196 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7197 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7198 GNU_USER_TARGET_OS_CPP_BUILTINS.
7199 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7200 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7201 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7202 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7203 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7204 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7205 GNU_USER_DYNAMIC_LINKER.
7206 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7207 GNU_USER_TARGET_OS_CPP_BUILTINS.
7208 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7209 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7210 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7211 GNU_USER_DYNAMIC_LINKER.
7212 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7214 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7215 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7216 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7217 GNU_USER_DYNAMIC_LINKER.
7218 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7219 GNU_USER_DYNAMIC_LINKERN32.
7220 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7221 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7222 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7223 GNU_USER_DYNAMIC_LINKER32.
7224 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7225 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7226 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7227 GNU_USER_DYNAMIC_LINKER.
7228 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7229 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7230 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7231 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7232 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7233 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7234 GNU_USER_DYNAMIC_LINKER32.
7235 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7236 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7237 GNU_USER_DYNAMIC_LINKER.
7238 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7239 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7240 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7241 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7242 GNU_USER_DYNAMIC_LINKER64.
7243 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7244 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7245 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7246 GNU_USER_DYNAMIC_LINKER.
7247 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7248 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7249 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7250 GNU_USER_DYNAMIC_LINKER.
7251 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7253 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7254 GNU_USER_DYNAMIC_LINKER32.
7255 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7256 GNU_USER_DYNAMIC_LINKER64.
7257 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7258 GNU_USER_DYNAMIC_LINKER64.
7259 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7260 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7261 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7264
7265 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7266
7267 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7268 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7269 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7270 GNU_USER_DYNAMIC_LINKER.
7271 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7272 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7273 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7274 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7275 GNU_USER_DYNAMIC_LINKER64.
7276 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7277 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7278 GNU_USER_LINK_EMULATION.
7279 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7280 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7281 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7282 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7283 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7284 CPP_SPEC, CC1_SPEC): Remove.
7285 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7286 (GNU_USER_DYNAMIC_LINKER): Define.
7287 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7288 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7289 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7290 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7291 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7292 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7293 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7294 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7295 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7296 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7297 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7298 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7299 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7300 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7301 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7302 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7303 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7304 GNU_USER_DYNAMIC_LINKER.
7305 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7306 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7307 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7308 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7309 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7310 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7311 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7312 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7313 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7314 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7315
7316 2011-04-11 Kai Tietz <ktietz@redhat.com>
7317
7318 PR target/9601
7319 PR target/11772
7320 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7321 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7322 comment.
7323 (ix86_is_msabi_thiscall): Removed.
7324 (ix86_is_type_thiscall): Likewise.
7325 (ix86_get_callcvt): New function.
7326 (ix86_comp_type_attributes): Simplify check.
7327 (ix86_function_regparm): Use ix86_get_callcvt for calling
7328 convention attribute checks.
7329 (ix86_return_pops_args): Likewise.
7330 (ix86_static_chain): Likewise.
7331 (x86_this_parameter): Likewise.
7332 (x86_output_mi_thunk): Likewise.
7333 (ix86_function_type_abi): Optimize check for types without attributes.
7334 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7335 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7336 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7337 by flag-values.
7338 (IX86_BASE_CALLCVT): Helper macro.
7339 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7340 Use ix86_get_callcvt for calling convention attribute checks and avoid
7341 symbol-decoration for stdcall in TARGET_RTD case.
7342 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7343 Likewise.
7344 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7345 for declaration.
7346
7347 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7348
7349 * config/i386/sse.md (VI_128): New mode iterator.
7350 (VI12_128): Rename from SSEMODE12.
7351 (VI14_128): Rename from SSEMODE14.
7352 (VI124_128): New mode iterator.
7353 (VI24_128): Rename from SSEMODE248.
7354 (VI248_128): Rename from SSEMODE248.
7355 (SSEMODE124C8): Remove.
7356 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7357 (*sse2_<plusminus_insn><mode>3): Merge with
7358 *avx_<plusminus_insn><mode>3.
7359 (*mulv8hi3): Merge with *avx_mulv8hi3.
7360 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7361 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7362 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7363 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7364 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7365 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7366 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7367 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7368 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7369 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7370 (*<smaxmin:code>v8hi3): Ditto.
7371 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7372 (*<smaxmin:code>v16qi3): Ditto.
7373 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7374 (*sse2_eq<mode>3): Ditto.
7375 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7376 (*sse2_gt<mode>3): Ditto.
7377 (vcondv2di): Split out of vcond<mode>.
7378 (vconduv2di): Split out of vcondu<mode>.
7379
7380 2011-04-11 Richard Guenther <rguenther@suse.de>
7381
7382 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7383 before calling tree_low_cst.
7384
7385 2011-04-11 Richard Guenther <rguenther@suse.de>
7386
7387 * stor-layout.c (layout_type): Compute all array index size operations
7388 in the original type.
7389 (initialize_sizetypes): Add comment.
7390 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7391
7392 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7393
7394 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7395
7396 2011-04-11 Martin Jambor <mjambor@suse.cz>
7397
7398 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7399 of cgraph_node, handle NULL return value.
7400 (cgraph_global_info): Likewise.
7401 (cgraph_rtl_info): Likewise.
7402 * tree-inline.c (estimate_num_insns): Likewise.
7403 * gimplify.c (unshare_body): Likewise.
7404 (unvisit_body): Likewise.
7405 (gimplify_body): Likewise.
7406 * predict.c (optimize_function_for_size_p): Likewise.
7407 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7408 (call_may_clobber_ref_p_1): Likewise.
7409 * varasm.c (function_section_1): Likewise.
7410 (assemble_start_function): Likewise.
7411
7412 2011-04-11 Martin Jambor <mjambor@suse.cz>
7413
7414 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7415 of cgraph_node.
7416 * final.c (rest_of_clean_state): Likewise.
7417 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7418 * passes.c (pass_init_dump_file): Likewise.
7419 (execute_all_ipa_transforms): Likewise.
7420 (function_called_by_processed_nodes_p): Likewise.
7421 * predict.c (maybe_hot_frequency_p): Likewise.
7422 (probably_never_executed_bb_p): Likewise.
7423 (compute_function_frequency): Likewise.
7424 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7425 (unnest_nesting_tree_1): Likewise.
7426 (lower_nested_functions): Likewise.
7427 * tree-optimize.c (execute_fixup_cfg): Likewise.
7428 (tree_rest_of_compilation): Likewise.
7429 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7430 * tree-sra.c (ipa_early_sra): Likewise.
7431 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7432 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7433 * ipa.c (record_cdtor_fn): Likewise.
7434 * ipa-inline.c (cgraph_early_inlining): Likewise.
7435 (compute_inline_parameters_for_current): Likewise.
7436 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7437 * ipa-pure-const.c (local_pure_const): Likewise.
7438 * ipa-split.c (split_function): Likewise.
7439 (execute_split_functions): Likewise.
7440 * cgraphbuild.c (build_cgraph_edges): Likewise.
7441 (rebuild_cgraph_edges): Likewise.
7442 (cgraph_rebuild_references): Likewise.
7443 (remove_cgraph_callee_edges): Likewise.
7444 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7445 (verify_cgraph_node): Likewise.
7446 (cgraph_analyze_functions): Likewise.
7447 (cgraph_preserve_function_body_p): Likewise.
7448 (save_inline_function_body): Likewise.
7449 (save_inline_function_body): Likewise.
7450 * tree-inline.c (copy_bb): Likewise.
7451 (optimize_inline_calls): Likewise.
7452
7453 2011-04-11 Martin Jambor <mjambor@suse.cz>
7454
7455 PR tree-optimization/48195
7456 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7457 ipa_check_create_edge_args.
7458 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7459 ipa_check_create_edge_args.
7460 * ipa-inline.c (inline_generate_summary): Do not call
7461 ipa_check_create_node_params and ipa_check_create_edge_args.
7462 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7463 ipa_check_create_edge_args.
7464
7465 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7466
7467 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7468 instead of loop.
7469 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7470 * function.c (record_hard_reg_sets): Likewise.
7471 * ira.c (compute_regs_asm_clobbered): Likewise.
7472 * sched-deps.c (sched_analyze_1): Likewise.
7473 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7474
7475 2011-04-09 Xinliang David Li <davidxl@google.com>
7476
7477 PR tree-optimization/PR48484
7478 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7479 has_valid_pred lazily
7480
7481 2011-04-09 Duncan Sands <baldrick@free.fr>
7482
7483 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7484
7485 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7486
7487 * combine.c (combine_validate_cost): Adjust comments. Set registered
7488 cost of I0 to zero at the end, if any.
7489
7490 2011-04-08 Xinliang David Li <davidxl@google.com>
7491
7492 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7493 to insane profile data.
7494
7495 2011-04-08 Xinliang David Li <davidxl@google.com>
7496
7497 * ipa-cp.c (ipcp_update_profiling): Correct
7498 negative scale factor due to insane profile data.
7499
7500 2011-04-08 Xinliang David Li <davidxl@google.com>
7501
7502 * final.c (dump_basic_block_info): New function.
7503 (final): Dump basic block.
7504 (final_scan_insn): Remove old dump.
7505
7506 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7507
7508 PR target/47829
7509 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7510 crtbegin/crtend.
7511
7512 2011-04-08 Michael Matz <matz@suse.de>
7513
7514 PR middle-end/48389
7515 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7516 functions.
7517 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7518 * rtl.h (rebuild_jump_labels_chain): Declare.
7519 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7520 insns inserted on edges.
7521
7522 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7523
7524 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7525 * config/arm/arm-arches.def: New.
7526 * config/arm/arm-opts.h: New.
7527 * config/arm/genopt.sh: New.
7528 * config/arm/arm-tables.opt: New (generated).
7529 * config/arm/arm.c (arm_handle_option, arm_target_help,
7530 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7531 (all_architectures): Get most table contents from arm-arches.def.
7532 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7533 arm_selected_tune here.
7534 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7535 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7536 (march=, mcpu=, mtune=): Use Enum and Var.
7537 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7538 (arm.o): Update dependencies.
7539
7540 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7541
7542 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7543 of header_file.
7544 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7545 (write_typed_alloc_defns): Likewise.
7546 (main): Calls write_typed_alloc_defns with output_header.
7547
7548 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7549
7550 PR inline-asm/48435
7551 * ira-color.c (setup_profitable_hard_regs): Add comments.
7552 Don't take prohibited hard regs into account.
7553 (setup_conflict_profitable_regs): Rename to
7554 get_conflict_profitable_regs.
7555 (check_hard_reg_p): Check prohibited hard regs.
7556
7557 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7558
7559 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7560 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7561 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7562
7563 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7564
7565 PR target/48366
7566 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7567 move from floating point to shift amount register.
7568 (emit_move_sequence): Remove secondary reload support for floating
7569 point to shift amount amount register copies.
7570 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7571 amount register copies.
7572 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7573 register, return false if mode isn't a scalar integer mode.
7574 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7575
7576 2011-04-08 Richard Guenther <rguenther@suse.de>
7577
7578 * gimple.c (gimple_call_flags): Remove kludge.
7579
7580 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7581
7582 * sel-sched.c (sel_region_init): Move call to
7583 sel_setup_region_sched_flags after setup_current_loop_nest.
7584
7585 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7586
7587 PR rtl-optimization/48272
7588 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7589 init_insn_reg_pressure_info. Adjust a caller.
7590 * sched-int.h (init_insn_reg_pressure_info): Declare.
7591 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7592 when sched-pressure is enabled.
7593
7594 2011-04-08 Richard Guenther <rguenther@suse.de>
7595
7596 * gimple.c (gimple_set_modified): Do not queue calls to
7597 MODIFIED_NORETURN_CALLS here ...
7598 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7599
7600 2011-04-08 Richard Guenther <rguenther@suse.de>
7601
7602 PR lto/48467
7603 * toplev.c (lang_dependent_init): Do not open asm_out_file
7604 in WPA mode, nor perform debug machinery initialization.
7605 (finalize): Do not unlink asm_out_file in WPA mode.
7606
7607 2011-04-08 Richard Guenther <rguenther@suse.de>
7608
7609 * gimple.h (gimple_call_fntype): New function.
7610 (gimple_call_return_type): Use it.
7611 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7612 * gimple-low.c (gimple_check_call_args): Likewise.
7613 * gimple.c (gimple_call_flags): Likewise.
7614 (gimple_call_arg_flags): Likewise.
7615 (gimple_call_return_flags): Likewise.
7616 * tree-cfg.c (verify_gimple_call): Likewise.
7617 (do_warn_unused_result): Likewise.
7618 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7619 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7620
7621 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7622
7623 PR rtl-optimization/48235
7624 * sel-sched.c (code_motion_process_successors): Recompute the last
7625 insn in basic block if control flow changed.
7626 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7627 Update condition for ilist_remove.
7628
7629 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7630
7631 PR rtl-optimization/48302
7632 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7633 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7634 it to record added preheader blocks.
7635 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7636 on to sel_add_loop_preheaders.
7637 (sel_region_init): Move call to setup_current_loop_nest after
7638 sel_init_bbs.
7639
7640 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7641
7642 PR target/48273
7643 * cfgloop.h (loop_has_exit_edges): New helper.
7644 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7645 non-clonable.
7646 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7647 that have no exit edges.
7648
7649 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7650
7651 PR rtl-optimization/48442
7652 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7653 all callers. Adjust assert.
7654
7655 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7656
7657 PR tree-optimization/48377
7658 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7659 is_packed to true even for types with smaller TYPE_ALIGN than
7660 TYPE_SIZE.
7661
7662 2011-04-08 Richard Guenther <rguenther@suse.de>
7663
7664 PR bootstrap/48513
7665 * doc/tm.texi: Re-generate.
7666
7667 2011-04-08 Wei Guozhi <carrot@google.com>
7668
7669 PR target/47855
7670 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7671 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7672 * config/arm/arm.md (*push_multi): Change the length computation to
7673 call a C function.
7674
7675 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7676
7677 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7678 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7679 * doc/tm.texi: Regenerate.
7680 * system.h (ASM_OUTPUT_BSS): Poison.
7681 * varasm.c (asm_output_bss): Remove function.
7682 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7683
7684 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7685 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7686 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7687 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7688 Likewise.
7689 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7690 Likewise.
7691 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7692 Likewise.
7693 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7694
7695 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7696
7697 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7698 EnumValue lines.
7699
7700 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7701
7702 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7703 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7704 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7705 OPT_mcpu32.
7706 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7707 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7708 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7709 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7710 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7711 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7712 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7713 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7714 options. Don't map other m68k options manually. Don't handle
7715 old-style options as canonical.
7716 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7717 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7718
7719 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7720
7721 * basic-block.h (force_nonfallthru): Move to...
7722 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7723 (force_nonfallthru): ...here.
7724 * cfghooks.c (force_nonfallthru): New function.
7725 * cfgrtl.c (force_nonfallthru): Rename into...
7726 (rtl_force_nonfallthru): ...this.
7727 (commit_one_edge_insertion): Do not set AUX field.
7728 (commit_edge_insertions): Do not discover new basic blocks.
7729 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7730 (cfg_layout_rtl_cfg_hooks): Likewise.
7731 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7732 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7733 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7734
7735 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7736
7737 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7738 Remove macros.
7739
7740 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7741
7742 * config/i386/sse.md: Update copyright year.
7743 (avxcvtvecmode): Remove.
7744 (sse_movhlps): Merge with *avx_movhlps.
7745 (sse_movlhps): Merge with *avx_movlhps.
7746 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7747 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7748 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7749 (sse_loadhps): Merge with *avx_loadhps.
7750 (sse_storelps): Merge with *avx_storelps.
7751 (sse_loadlps): Merge with *avx_loadlps.
7752 (sse_movss): Merge with *avx_movss.
7753 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7754 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7755 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7756 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7757 (vec_set<mode>_0): Ditto.
7758 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7759 (sse4_1_insertps): Merge with *avx_insertps.
7760 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7761 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7762 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7763 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7764 (sse2_storehpd): Merge with *avx_storehpd.
7765 (sse2_loadhpd): Merge with *avx_loadhpd.
7766 (sse2_loadlpd): Merge with *avx_loadlpd.
7767 (sse2_movsd): Merge with *avx_movsd.
7768 (*vec_concatv2df): Merge with *vec_concatv2df.
7769
7770 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7771
7772 PR debug/48343
7773 * combine.c (combine_instructions): Add last_combined_insn,
7774 update it if insn is after it, pass it to all try_combine calls.
7775 (try_combine): Add last_combined_insn parameter, pass it instead of
7776 i3 to propagate_for_debug.
7777
7778 2011-04-07 Nick Clifton <nickc@redhat.com>
7779
7780 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7781 to handle MDR <-> data register transfers.
7782 (movhi_internal): Likewise.
7783
7784 2011-04-07 Alan Modra <amodra@gmail.com>
7785
7786 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7787 previous stack info.
7788
7789 2011-04-07 Tom de Vries <tom@codesourcery.com>
7790
7791 PR target/43920
7792 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7793 flow_find_cross_jump. Swap variables to implement backward replacement.
7794 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7795
7796 2011-04-07 Tom de Vries <tom@codesourcery.com>
7797
7798 PR target/43920
7799 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7800 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7801 and bb2.
7802 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7803 src1 or src2. Redirect edges to the last basic block. Update
7804 frequency and count on multiple basic blocks in case of fallthru.
7805
7806 2011-04-07 Tom de Vries <tom@codesourcery.com>
7807
7808 PR target/43920
7809 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7810 function.
7811 (old_insns_match_p): Change return type. Replace return false/true
7812 with return dir_none/dir_both. Use can_replace_by.
7813 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7814 direction from dir_p. Register replacement direction in dir, last_dir
7815 and afterlast_dir. Handle new return type of old_insns_match_p using
7816 merge_dir. Return replacement direction in dir_p.
7817 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7818 return type of old_insns_match_p.
7819 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7820 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7821 flow_find_cross_jump.
7822 * basic-block.h (enum replace_direction): New type.
7823 (flow_find_cross_jump): Add parameter to declaration.
7824
7825 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7826
7827 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7828 (AVXMODEDCVTPS2DQ): Ditto.
7829 (VEC_FLOAT_MODE): Ditto.
7830 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7831 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7832 (<any_logic:code><mode>3): Use VF mode iterator.
7833 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7834 Use VF mode iterator.
7835 (copysign<mode>3): Use VF mode iterator.
7836 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7837 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7838 (*<any_logic:code><MODEF:mode>3): Merge with
7839 *avx_<any_logic:code><MODEF:mode>3.
7840 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7841 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7842 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7843 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7844 (sse2_cvtdq2ps): Use %v modifier.
7845 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7846 (avx_cvtps2dq<avxmodesuffix>): Remove.
7847 (sse2_cvtps2dq): Use %v modifier.
7848 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7849 (avx_cvttps2dq<avxmodesuffix>): Remove.
7850 (sse2_cvttps2dq): Use %v modifier.
7851 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7852 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7853 (sse2_cvtsd2siq): Fix insn template.
7854 (sse2_cvtsd2siq_2): Ditto.
7855 (sse2_cvttsd2siq): Ditto.
7856 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7857 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7858
7859 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7860
7861 * gcov-io.c: Use GCC Runtime Library Exception.
7862
7863 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7864
7865 PR debug/48466
7866 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7867 as base_reg whatever register reg has been eliminated to, instead
7868 of hardcoding STACK_POINTER_REGNUM.
7869
7870 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7871
7872 * doc/tm.texi.in: Document C target hooks as separate from general
7873 target hooks.
7874 * doc/tm.texi: Regenerate.
7875 * genhooks.c (struct hook_desc): Add docname field.
7876 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7877 docname field.
7878 (hook_array): Include c-target.def.
7879 (emit_documentation): Use docname field in output.
7880 (emit_init_macros): Take docname argument. Only emit definitions
7881 for hooks matching docname.
7882 (main): Expect additional arguments in all cases. Pass argument
7883 to emit_init_macros.
7884 * target.def: Move initial macro definitions and comments to
7885 target-hooks-macros.h.
7886 (gcc_targetcm): Move to c-family/c-target.def.
7887 * target.h (targetcm): Move declaration to c-family/c-target.h.
7888 * targhooks.c (default_handle_c_option): Move to
7889 c-family/c-opts.c.
7890 * targhooks.h (default_handle_c_option): Move declaration to
7891 c-family/c-common.h.
7892 * target-hooks-macros.h: New file.
7893 * config.gcc (target_has_targetcm): Define and use to add to
7894 c_target_objs and cxx_target_objs.
7895 * config/default-c.c: New file.
7896 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7897 of target.h and target-def.h.
7898 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7899 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7900 darwin_check_cfstring_format_arg): Make static.
7901 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7902 TARGET_STRING_OBJECT_REF_TYPE_P,
7903 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7904 * config/darwin-protos.h (darwin_objc_construct_string,
7905 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7906 declare.
7907 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7908 TARGET_STRING_OBJECT_REF_TYPE_P,
7909 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7910 * config/t-darwin (darwin-c.o): Update dependencies.
7911 * system.h (TARGET_HAS_TARGETCM): Poison.
7912 * Makefile.in (TARGET_H): Update.
7913 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7914 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7915 (default-c.o): New target.
7916 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7917 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7918 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7919 c-target.def.
7920 (build/genhooks.o): Update dependencies.
7921
7922 2011-04-06 Richard Guenther <rguenther@suse.de>
7923
7924 * ipa-inline.c (enum inlining_mode): Remove.
7925 (cgraph_flatten): Use some other token.
7926 (cgraph_edge_early_inlinable_p): New function, split out from ...
7927 (cgraph_perform_always_inlining): New function, split out from ...
7928 (cgraph_decide_inlining_incrementally): ... here.
7929 (cgraph_mark_inline_edge): Adjust.
7930 (cgraph_early_inlining): Re-structure.
7931 (pass_early_inline): Require SSA form.
7932
7933 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7934 Julian Brown <julian@codesourcery.com>
7935 Mark Shinwell <shinwell@codesourcery.com>
7936
7937 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7938 LO_REGS only for Thumb-1.
7939 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7940 be used in short instructions when optimising for size on Thumb-2.
7941
7942 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7943
7944 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7945 associated with user returns to be preserved.
7946
7947 2011-04-06 Tristan Gingold <gingold@adacore.com>
7948
7949 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7950 symbol_queue_size, DBXOUT_DECR_NESTING,
7951 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7952 if XCOFF_DEBUGGING_INFO.
7953
7954 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7955
7956 * config/i386/i386.md (attribute isa): New.
7957 (attribute enabled): New.
7958 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7959 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7960 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7961 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7962 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7963 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7964 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7965 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7966
7967 * config/i386/sse.md (VF): New mode iterator.
7968 (VF1): Ditto.
7969 (VF2): Ditto.
7970 (VF_128): Ditto.
7971 (SSEMODEF4): Remove.
7972 (attribute sse): Handle V8SF and V4DF modes.
7973 (<absneg:code><mode>2): Use VF mode iterator.
7974 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7975 mode iterator.
7976 (<plusminus_insn><mode>3): Use VF mode iterator.
7977 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7978 Use VF mode iterator.
7979 (<sse>_vm<plusminus_insn><mode>3): Merge with
7980 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7981 (mul<mode>3): Use VF mode iterator.
7982 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7983 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7984 mode iterator.
7985 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7986 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7987 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7988 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7989 mode iterator.
7990 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7991 Use VF1 mode iterator.
7992 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7993 (sqrt<VF2:mode>2): New expander.
7994 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7995 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7996 and sqrtv2df2. Use VF mode iterator.
7997 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7998 mode iterator.
7999 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8000 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8001 Use VF1 mode iterator.
8002 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8003 (<smaxmin:code><mode>3): Use VF mode iterator.
8004 (*<smaxmin:code><mode>3_finite): Merge with
8005 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8006 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8007 (<sse>_vm<smaxmin:code><mode>2): Merge with
8008 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8009 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8010 mode iterator.
8011 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8012 mode iterator.
8013 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8014 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8015 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8016 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8017 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8018 VF mode iterator.
8019 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8020 Use VF_128 mode iterator.
8021 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8022 mode iterator.
8023 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8024 VF_128 mode iterator.
8025 (vcond<mode>): Use VF mode iterator.
8026 * config/i386/predicates.md (sse_comparison_operator): Merge with
8027 avx_comparison_float_operator. Do not declare as special_predicate.
8028 * config/i386/i386.c (struct builtin_description): Update for renamed
8029 compare patterns.
8030 (ix86_expand_args_builtin): Ditto.
8031 (ix86_expand_sse_compare_mask): Ditto.
8032
8033 2011-04-06 Richard Guenther <rguenther@suse.de>
8034
8035 * tree-inline.c (estimate_num_insns): For calls simply account
8036 for all passed arguments and a used return value.
8037
8038 2011-04-06 Richard Guenther <rguenther@suse.de>
8039
8040 PR tree-optimization/47663
8041 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8042 call_stmt_time fields.
8043 (cgraph_edge_inlinable_p): Declare.
8044 (cgraph_edge_recursive_p): New inline function.
8045 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8046 (cgraph_clone_edge): Copy it.
8047 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8048 Account for call stmt time.
8049 (cgraph_estimate_time_after_inlining): Take edge argument.
8050 (cgraph_estimate_edge_growth): Account call stmt size.
8051 (cgraph_estimate_size_after_inlining): Take edge argument.
8052 (cgraph_mark_inline_edge): Adjust.
8053 (cgraph_check_inline_limits): Likewise.
8054 (cgraph_recursive_inlining_p): Remove.
8055 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8056 (cgraph_decide_recursive_inlining): Take edge argument and
8057 adjust.
8058 (cgraph_decide_inlining_of_small_functions): Do not avoid
8059 diags for recursive inlining here.
8060 (cgraph_flatten): Adjust.
8061 (cgraph_decide_inlining_incrementally): Likewise.
8062 (estimate_function_body_sizes): Remove call cost handling.
8063 (compute_inline_parameters): Initialize caller edge call costs.
8064 (cgraph_estimate_edge_growth): New function.
8065 (cgraph_estimate_growth): Use it.
8066 (cgraph_edge_badness): Likewise.
8067 (cgraph_check_inline_limits): Take an edge argument.
8068 (cgraph_decide_inlining_of_small_functions): Adjust.
8069 (cgraph_decide_inlining): Likewise.
8070 * tree-inline.c (estimate_num_insns): Only account for call
8071 return value if it is used.
8072 (expand_call_inline): Avoid diagnostics on recursive inline
8073 functions here.
8074 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8075 (input_edge): Input edge call costs.
8076
8077 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8078
8079 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8080
8081 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8082
8083 * doc/invoke.texi (Spec Files): Fix typo.
8084
8085 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8086
8087 * profile.c (branch_prob): Move declaration of local variable. Remove
8088 obsolete ??? comment. Expand the location explicitly instead of using
8089 the LOCATION_FILE and LOCATION_LINE macros.
8090
8091 2011-04-06 Wei Guozhi <carrot@google.com>
8092
8093 PR target/47855
8094 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8095 (arm_cond_branch): Likewise.
8096 (arm_cond_branch_reversed): Likewise.
8097 (arm_jump): Likewise.
8098 (push_multi): Likewise.
8099 * config/arm/constraints.md (Py): New constraint.
8100
8101 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8102
8103 PR bootstrap/48471
8104 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8105 Move these...
8106 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8107 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8108 #ifdef DBX_DEBUGGING_INFO.
8109
8110 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8111
8112 PR bootstrap/48403
8113 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8114 if old and new states differ.
8115
8116 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8117
8118 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8119 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8120 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8121 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8122 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8123 mcfv4e): Use Alias.
8124 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8125 ColdFire options to -mcpu= options.
8126
8127 2011-04-05 Jeff Law <law@redhat.com>
8128
8129 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8130 check if BB is a successor of LOOP->header and return
8131 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8132
8133 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8134
8135 * cprop.c (struct reg_use): Remove.
8136 (reg_use_table): Make an array of RTX.
8137 (find_used_regs, constprop_register, local_cprop_pass,
8138 bypass_block): Simplify users of reg_use_table.
8139 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8140 on one of the uses found by find_used_regs.
8141
8142 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8143
8144 PR bootstrap/48469
8145 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8146 declaration.
8147
8148 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8149
8150 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8151 as an rtx.
8152 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8153
8154 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8155
8156 PR middle-end/48441
8157 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8158
8159 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8160
8161 * combine.c: Include obstack.h.
8162 (struct insn_link): Define.
8163 (uid_log_links): Adjust type.
8164 (FOR_EACH_LOG_LINK): New macro.
8165 (insn_link_obstack): Declare.
8166 (alloc_insn_link): Define.
8167 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8168 type of link variables.
8169 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8170 (try_combine, record_promoted_values, distribute_notes): Likewise.
8171 (distribute_links): Likewise. Tweak prototype.
8172 (clear_log_links): Delete.
8173 (adjust_for_new_dest): Call alloc_insn_link.
8174 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8175
8176 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8177
8178 * gcse.c (modify_mem_list): Convert to an array of VECs.
8179 (canon_modify_mem_list, compute_transp): Tweak formatting.
8180 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8181 (load_killed_in_block_p): Likewise.
8182 (record_last_mem_set_info): Likewise.
8183 (clear_modify_mem_tables): Likewise.
8184
8185 2011-04-05 Tom de Vries <tom@codesourcery.com>
8186
8187 PR middle-end/48461
8188 * function.c (emit_use_return_register_into_block): Only define if
8189 HAVE_return.
8190
8191 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8192
8193 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8194
8195 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8196
8197 * config/rx/rx-opts.h: New.
8198 * config/rx/rx.c (rx_cpu_type): Remove.
8199 (rx_handle_option): Don't assert that global structures are in
8200 use. Access variables via opts pointer. Defer most handling of
8201 OPT_mint_register_. Use error_at.
8202 (rx_option_override): Handle deferred OPT_mint_register_ here.
8203 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8204 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8205 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8206 (rx_cpu_types): New Enum and EnumValue entries.
8207 (mint-register=): Use Defer and use Var accordingly.
8208
8209 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8210
8211 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8212 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8213 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8214 Move these...
8215 (debug_free_queue, debug_nesting, symbol_queue_index):
8216 ...and these...
8217 * dbxout.c: ...to here. Make static.
8218
8219 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8220
8221 * gcse.c (modify_pair): Define. Define a VEC of it.
8222 (canon_modify_mem_list): Convert to an array of VECs.
8223 (free_insn_expr_list_list): Delete.
8224 (clear_modify_mem_tables): Call VEC_free instead.
8225 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8226 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8227 (canon_list_insert, compute_transp): Likewise.
8228
8229 2011-04-05 Tom de Vries <tom@codesourcery.com>
8230
8231 PR target/43920
8232 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8233 for size.
8234
8235 2011-04-05 Tom de Vries <tom@codesourcery.com>
8236
8237 PR target/43920
8238 * function.c (emit_use_return_register_into_block): New function.
8239 (thread_prologue_and_epilogue_insns): Use
8240 emit_use_return_register_into_block.
8241
8242 2011-04-05 Tom de Vries <tom@codesourcery.com>
8243
8244 PR target/43920
8245 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8246 insn.
8247
8248 2011-04-05 Tom de Vries <tom@codesourcery.com>
8249
8250 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8251
8252 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8253
8254 * config/arm/arm.md (define_constants for unspec): Replace with
8255 define_c_enum.
8256 (define_constants for unspecv): Replace with define_c_enum.
8257 * config/arm/neon.md (define_constants for unspec): Replace with
8258 define_c_enum.
8259
8260 2011-04-04 Richard Henderson <rth@redhat.com>
8261
8262 PR bootstrap/48400
8263 * dwarf2out.c (output_line_info): Always emit line info from
8264 at least one section.
8265 (dwarf2out_init): Create text_section_line_info here ...
8266 (set_cur_line_info_table): ... not here.
8267
8268 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8269
8270 PR target/48380
8271 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8272 not called.
8273
8274 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8275
8276 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8277
8278 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8279 (expr_equiv_p): Remove.
8280 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8281 (hash_scan_set): Update call to insert_set_in_table.
8282 (dump_hash_table): Dump <dest, src> pair.
8283 (lookup_set): Simplify. Lookup <dest, src> pair.
8284 (compute_transp): Remove, fold heavily simplified code into...
8285 (compute_local_properties): ...here. Expect COMP and TRANSP
8286 unconditionally.
8287 (find_avail_set): Take set directly from struct expr.
8288 (find_bypass-set): Likewise.
8289 (bypass_block): Likewise.
8290 (cprop_insn): Likewise. Remove redundant INSN_P test.
8291
8292 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8293 checks on form of COND from find_implicit_sets to here.
8294 (find_implicit_sets): Cleanup control flow. Split critical edges
8295 if it exposes implicit sets. Allocate/resize implicit_sets as
8296 necessary.
8297 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8298 changed something. Run df_analyze after find_implicit_sets if any
8299 edges were split. Do not allocate implicit_sets here.
8300
8301 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8302 (gcse_obstack): Renamed to cprop_obstack.
8303 (GNEW, GNEWVEC, GNEWVAR): Remove.
8304 (gmalloc): Remove.
8305 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8306 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8307 (gcse_alloc): Likewise, and rename to cprop_alloc.
8308 (alloc_gcse_men, free_gcse_mem): Remove.
8309 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8310 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8311 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8312
8313 * cprop.c (oprs_not_set_p): Remove.
8314 (mark_set, mark_clobber): Remove.
8315 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8316 (reg_not_set_p): New function.
8317 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8318 (cprop_insn): Likewise.
8319 (cprop_jump): Use FOR_EACH_EDGE.
8320
8321 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8322
8323 PR bootstrap/48403
8324 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8325 (rank_for_schedule): Use scheduled_insns vector instead of
8326 last_scheduled_insn.
8327 (ok_for_early_queue_removal): Likewise.
8328 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8329 we have a dbg_cnt.
8330 (choose_ready): Likewise.
8331 (commit_schedule): Use VEC_iterate.
8332 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8333 a dbg_cnt, use it and ensure the first insn is in the ready list.
8334 (haifa_sched_init): Allocate scheduled_insns.
8335 (sched_extend_ready_list): Don't allocate it; reserve space.
8336 (haifa_sched_finish): Free it.
8337
8338 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8339
8340 * optc-gen.awk: Always remove type from Variable entry before
8341 recording in var_seen.
8342
8343 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8344
8345 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8346 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8347 call to tidy_fallthru_edges.
8348
8349 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8350
8351 * doc/options.texi (ToLower): Document.
8352 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8353 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8354 * opts.h (cl_option): Add cl_tolower field.
8355 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8356 arguments with lowercase strings.
8357 * config/rx/rx.opt (mcpu=): Add ToLower.
8358 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8359 argument.
8360
8361 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8362
8363 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8364
8365 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8366
8367 * config/vax/vax.c: Include reload.h.
8368
8369 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8370
8371 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8372 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8373 (sparc_preferred_reload_class): New function.
8374
8375 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8376
8377 PR debug/48401
8378 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8379 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8380
8381 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8382
8383 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8384 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8385
8386 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8387
8388 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8389 (ASM_OUTPUT_ALIGNED_BSS): Define.
8390
8391 2011-04-03 Michael Matz <matz@suse.de>
8392
8393 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8394 and next_slot members.
8395 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8396 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8397 (lto_streamer_cache_append): Declare.
8398 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8399 unsigned index, remove offset parameter, ensure that we append
8400 or update existing entries.
8401 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8402 parameter, update next_slot for append.
8403 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8404 parameter.
8405 (lto_streamer_cache_insert_at): Likewise.
8406 (lto_streamer_cache_append): New function.
8407 (lto_streamer_cache_lookup): Use unsigned index.
8408 (lto_streamer_cache_get): Likewise.
8409 (lto_record_common_node): Don't test tree_node_can_be_shared.
8410 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8411 (lto_streamer_cache_delete): Don't free offsets member.
8412 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8413 (lto_output_string_with_length): Use lto_output_data_stream.
8414 (lto_output_tree_header): Remove ix parameter, don't write it.
8415 (lto_output_builtin_tree): Likewise.
8416 (lto_write_tree): Adjust callers to above, don't track and write
8417 offset, write unsigned index.
8418 (output_unreferenced_globals): Don't emit all global vars.
8419 (write_global_references): Use unsigned indices.
8420 (lto_output_decl_state_refs): Likewise.
8421 (write_symbol): Likewise.
8422 * lto-streamer-in.c (lto_input_chain): Move earlier.
8423 (input_function): Use unsigned index.
8424 (input_alias_pairs): Don't read and then ignore all global vars.
8425 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8426 don't pass it back, use lto_streamer_cache_append.
8427 (lto_register_var_decl_in_symtab): Use unsigned index.
8428 (lto_register_function_decl_in_symtab): Likewise.
8429 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8430 index.
8431 (lto_get_builtin_tree): Don't read index, use
8432 lto_streamer_cache_append.
8433 (lto_read_tree): Adjust call to lto_materialize_tree.
8434
8435 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8436 don't use function calls in arguments to MIN.
8437
8438 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8439 twice.
8440
8441 * gimple.c (gimple_type_leader_entry): Mark deletable.
8442
8443 2011-04-03 Alan Modra <amodra@gmail.com>
8444
8445 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8446
8447 2011-04-03 Michael Matz <matz@suse.de>
8448
8449 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8450 an integer.
8451 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8452
8453 2011-04-03 Michael Matz <matz@suse.de>
8454
8455 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8456 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8457 without function context.
8458 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8459 current_function_decl and cfun.
8460
8461 2011-04-03 Michael Matz <matz@suse.de>
8462
8463 * tree.c (decl_init_priority_insert): Don't create entry for
8464 default priority.
8465 (decl_fini_priority_insert): Ditto.
8466 (fields_compatible_p, find_compatible_field): Remove.
8467 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8468 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8469
8470 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8471
8472 * combine.c (try_combine): Remove useless local variable.
8473
8474 2011-04-03 Richard Guenther <rguenther@suse.de>
8475 Ira Rosen <ira.rosen@linaro.org>
8476
8477 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8478 non-variable offsets and compare the remaining bases of the two
8479 accesses instead of looking for exact same data-ref.
8480
8481 2011-04-02 Kai Tietz <ktietz@redhat.com>
8482
8483 PR target/48416
8484 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8485
8486 * i386.c (ix86_is_msabi_thiscall): New helper function.
8487 (ix86_is_type_thiscall): New helper function.
8488 (ix86_comp_type_attributes): Handle thiscall for method-functions
8489 special.
8490 (init_cumulative_args): Likewise.
8491 (find_drap_reg): Likewise.
8492 (ix86_static_chain): Likewise.
8493 (x86_this_parameter): Likewise.
8494 (x86_output_mi_thunk): Likewise.
8495
8496 2011-04-01 Olivier Hainque <hainque@adacore.com>
8497 Nicolas Setton <setton@adacore.com>
8498 Eric Botcazou <ebotcazou@adacore.com>
8499
8500 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8501 (add_gnat_descriptive_type_attribute): New function.
8502 (gen_array_type_die): Call it.
8503 (gen_enumeration_type_die): Likewise.
8504 (gen_struct_or_union_type_die): Likewise.
8505 (modified_type_die): Likewise.
8506 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8507 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8508 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8509
8510 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR bootstrap/48148
8513 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8514 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8515
8516 Revert:
8517 2011-03-17 Richard Guenther <rguenther@suse.de>
8518
8519 PR bootstrap/48148
8520 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8521 origin for decls in other ltrans units.
8522 (input_varpool_node): Likewise.
8523
8524 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8525
8526 PR middle-end/48335
8527 * expr.c (expand_assignment): Handle all possibilities
8528 if TO_RTX is CONCAT.
8529 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8530 (store_split_bit_field): If SUBREG_REG (op0) or
8531 op0 itself has smaller mode than word, return it
8532 for offset 0 and const0_rtx for out-of-bounds stores.
8533 If word is const0_rtx, skip it.
8534
8535 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8536
8537 * config/h8300/h8300.c (print_operand_address): Rename to...
8538 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8539 Call h8300_print_operand and h8300_print_operand_address instead of
8540 print_operand and print_operand_address. Declare.
8541 (print_operand): Renake to...
8542 (h8300_print_operand): ...this. Make static. Adjust comments.
8543 Call h8300_print_operand instead of print_operand. Declare.
8544 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8545 (h8300_register_move_cost): Likewise.
8546 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8547 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8548 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8549 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8550 * config/h8300/h8300-protos.h (print_operand): Delete.
8551 (print_operand_address): Delete.
8552
8553 2011-04-01 Richard Henderson <rth@redhat.com>
8554
8555 PR 48400
8556 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8557 in strict mode before dwarf4. Re-order tests to early out
8558 before switching sections.
8559
8560 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8561
8562 * config/h8300/constraints.md: New file.
8563 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8564 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8565 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8566 * config/h8300/predicates.md (bit_operand): Likewise.
8567 (incdec_operand): Use satisfies_constraint_M and
8568 satisfies_constraint_O. Don't use C code block.
8569 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8570 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8571 (compute_mov_length): Use satisfies_constraint_G.
8572 (fix_bit_operand): Use satisfies_constraint_U.
8573 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8574 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8575 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8576 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8577 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8578 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8579 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8580 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8581 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8582 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8583 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8584 (EXTRA_MEMORY_CONSTRAINT): Delete.
8585
8586 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8587 Michael Meissner <meissner@linux.vnet.ibm.com>
8588
8589 PR target/48262
8590 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8591 operands, as per the specifications.
8592
8593 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8594 (vec_extract_evenv4sf): Ditto.
8595 (vec_extract_evenv8hi): Ditto.
8596 (vec_extract_evenv16qi): Ditto.
8597 (vec_extract_oddv4si): Ditto.
8598
8599 2011-03-31 Mark Wielaard <mjw@redhat.com>
8600
8601 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8602 high_pc attribute if the CU has no associated code. Only output
8603 DW_AT_entry_pc for CU if not generating strict dwarf and
8604 dwarf_version < 4.
8605
8606 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8607
8608 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8609 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8610 out of ...
8611 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8612 * final.c (final_start_function): Call the new function rather
8613 than using a NULL argument for dwarf2out_frame_debug.
8614
8615 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8616 that contains the prologue.
8617
8618 * haifa-sched.c (queue_insn): New arg REASON. All callers
8619 changed. Print it in debugging output.
8620
8621 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8622
8623 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8624 Split most of the code into...
8625 (begin_move_insn): ... here. New function.
8626 (ebb_sched_info): Add a pointer to it.
8627 * haifa-sched.c (scheduled_insns): New static variable.
8628 (sched_extend_ready_list): Allocate it.
8629 (schedule_block): Use it to record the order of scheduled insns.
8630 Perform RTL changes to move insns only after all scheduling
8631 decisions have been made.
8632 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8633 begin_move_insn field.
8634 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8635 * sched-int.h (struct haifa_sched_info): Remove second argument
8636 from begin_schedule_ready hook. Add new member begin_move_insn.
8637 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8638 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8639
8640 * haifa-sched.c (prune_ready_list): New function, broken out of
8641 schedule_block.
8642 (schedule_block): Use it.
8643
8644 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8645
8646 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8647
8648 2011-04-01 Kai Tietz <ktietz@redhat.com>
8649
8650 * config.gcc (*-*-mingw*): Allow as option the
8651 posix threading model.
8652 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8653 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8654 definition.
8655 (CPP_SPEC): Add pthread/no-pthread handling.
8656 (LIB_SPEC): Likewise.
8657 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8658 (LIB_SPEC): Likewise.
8659 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8660 flag to pass -pthread option for shared libgcc build.
8661 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8662 for shared libgcc build.
8663 * config/i386/t-mingw-pthread: New file.
8664 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8665 New define to enable use of library pthread by default.
8666 * config/i386/mingw.opt (pthread): New driver option.
8667 (no-pthread): New driver option.
8668 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8669 * config/i386/mingw-w64.opt: Likewise.
8670
8671 2011-04-01 Gary Funck <gary@intrepid.com>
8672
8673 * c-decl.c (grokdeclarator): Fix formatting.
8674
8675 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8676
8677 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8678 instead of n_operands.
8679 (set_storage_via_setmem): Likewise.
8680 * optabs.c (maybe_gen_insn): Likewise.
8681 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8682 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8683 (mips_expand_builtin_direct): Likewise.
8684 * config/spu/spu.c (expand_builtin_args): Likewise.
8685
8686 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8687
8688 * recog.h (insn_data_d): Add n_generator_args.
8689 * genoutput.c (data): Likewise.
8690 (output_insn_data): Print it.
8691 (max_opno, num_dups): Delete.
8692 (scan_operands): Just fill in "d->operand[...]".
8693 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8694
8695 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8696
8697 * gensupport.h (pattern_stats): New structure.
8698 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8699 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8700 (max_operand_1, max_operand_vec): Delete.
8701 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8702
8703 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8704
8705 * emit-rtl.c (emit_pattern_after_setloc): New function.
8706 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8707 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8708 (emit_pattern_after): New function.
8709 (emit_insn_after, emit_jump_insn_after): Call it.
8710 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8711 (emit_pattern_before_setloc): New function.
8712 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8713 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8714 Likewise.
8715 (emit_pattern_before): New function.
8716 (emit_insn_before, emit_jump_insn_before): Call it.
8717 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8718
8719 2011-03-31 Richard Henderson <rth@redhat.com>
8720
8721 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8722 (dw_separate_line_info_entry): Remove.
8723 (enum dw_line_info_opcode): New.
8724 (dw_line_info_entry): Use it.
8725 (dw_line_info_table, dw_line_info_table_p): New.
8726 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8727 (line_info_table, line_info_label_num): Remove.
8728 (line_info_table_in_use): Remove.
8729 (separate_line_info_table): Remove.
8730 (separate_line_info_table_allocated): Remove.
8731 (separate_line_info_table_in_use): Remove.
8732 (LINE_INFO_TABLE_INCREMENT): Remove.
8733 (line_info_label_num): New.
8734 (cur_line_info_table): New.
8735 (text_section_line_info, cold_text_section_line_info): New.
8736 (separate_line_info): New.
8737 (SEPARATE_LINE_CODE_LABEL): Remove.
8738 (print_dwarf_line_table): Remove.
8739 (debug_dwarf): Don't dump it.
8740 (output_one_line_info_table): New.
8741 (output_line_info): Use it.
8742 (new_line_info_table): New.
8743 (set_cur_line_info_table): New.
8744 (dwarf2out_switch_text_section): Use it.
8745 (dwarf2out_begin_function): Likewise.
8746 (push_dw_line_info_entry): New.
8747 (dwarf2out_source_line): Rewrite for new line info tables.
8748 (dwarf2out_init): Remove dead initailizations.
8749
8750 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8751
8752 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8753 various flags.
8754 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8755 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8756 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8757 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8758 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8759 * opt-functions.awk (flag_init, switch_bit_fields): New.
8760 (switch_flags): Don't handle flags moved to bit-fields. Don't
8761 generate CL_MISSING_OK or CL_SAVE.
8762 * optc-gen.awk: Update to generate bit-field output as well as
8763 flags field.
8764 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8765 bit-field instead of CL_REJECT_DRIVER flag.
8766 * opts-common.c (generate_canonical_option,
8767 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8768 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8769 instead of CL_REJECT_NEGATIVE flag.
8770 * toplev.c (print_switch_values): Use cl_report bit-field instead
8771 of CL_REPORT flag.
8772
8773 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8774
8775 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8776 a zero minimum index only if it is redundant.
8777
8778 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8779
8780 PR rtl-optimization/48381
8781 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8782 instead of ira_class_hard_reg_index for calculating conflicting
8783 hard registers.
8784
8785 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8786
8787 * cprop.c: Clean up hash table building.
8788 (reg_avail_info): Remove.
8789 (oprs_available_p): Remove.
8790 (record_last_reg_set_info): Remove.
8791 (record_last_set_info): Remove.
8792 (reg_available_p): New function.
8793 (gcse_constant_p): Do not treat unfolded conditions as constants.
8794 (make_set_regs_unavailable): New function.
8795 (hash_scan_set): Simplify with new reg_available_p.
8796 (compute_hash_table_work): Traverse insns stream only once.
8797 Do not compute reg_avail_info. Traverse insns in reverse order.
8798 Record implicit sets after recording explicit sets from the block.
8799
8800 2011-03-31 Michael Matz <matz@suse.de>
8801
8802 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8803
8804 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8805
8806 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8807 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8808 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8809 (h8300_mode_dependent_address_p): New function.
8810 (h8300_get_index): Make static.
8811
8812 2011-03-31 Jeff Law <law@redhat.com>
8813
8814 * reload1.c (elimination_effects): Fix typo in recent change.
8815
8816 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8817 typo potentially leading to null pointer dereference.
8818
8819 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8820 (setup_save_areas): Corresponding changes to avoid useless
8821 assignments.
8822
8823 * jump.c (reversed_comparison_code_parts): Avoid successive return
8824 statements when REVERSE_CONDITION is defined.
8825
8826 * expr.c (expand_assignment): Avoid useless assignments.
8827 (expand_expr_real_1): Likewise.
8828 (expand_expr_real_2): Avoid useless statements.
8829
8830 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8831
8832 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8833
8834 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8835 statements.
8836
8837 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8838
8839 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8840
8841 PR target/47109
8842 * doc/tm.texi.in (TARGET_VERSION): Remove.
8843 * doc/tm.texi: Regenerate.
8844 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8845 * collect2.c (main): Don't use TARGET_VERSION.
8846 * mips-tdump.c (main): Don't use TARGET_VERSION.
8847 * mips-tfile.c (main): Don't use TARGET_VERSION.
8848 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8849 * config/rs6000/vxworksae.h: Remove.
8850 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8851 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8852 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8853 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8854 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8855 * config/arm/arm.h (TARGET_VERSION): Remove.
8856 * config/arm/coff.h (TARGET_VERSION): Remove.
8857 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8858 * config/arm/elf.h (TARGET_VERSION): Remove.
8859 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8860 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8861 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8862 * config/arm/pe.h (TARGET_VERSION): Remove.
8863 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8864 * config/arm/semi.h (TARGET_VERSION): Remove.
8865 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8866 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8867 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8868 * config/avr/avr.h (TARGET_VERSION): Remove.
8869 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8870 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8871 * config/frv/frv.h (TARGET_VERSION): Remove.
8872 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8873 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8874 * config/i386/darwin.h (TARGET_VERSION): Remove.
8875 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8876 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8877 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8878 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8879 * config/i386/gnu.h (TARGET_VERSION): Remove.
8880 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8881 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8882 * config/i386/linux.h (TARGET_VERSION): Remove.
8883 * config/i386/linux64.h (TARGET_VERSION): Remove.
8884 * config/i386/lynx.h (TARGET_VERSION): Remove.
8885 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8886 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8887 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8888 * config/i386/netware.h (TARGET_VERSION): Remove.
8889 * config/i386/nto.h (TARGET_VERSION): Remove.
8890 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8891 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8892 * config/ia64/elf.h (TARGET_VERSION): Remove.
8893 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8894 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8895 * config/ia64/linux.h (TARGET_VERSION): Remove.
8896 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8897 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8898 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8899 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8900 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8901 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8902 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8903 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8904 * config/m68k/linux.h (TARGET_VERSION): Remove.
8905 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8906 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8907 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8908 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8909 * config/mep/mep.h (TARGET_VERSION): Remove.
8910 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8911 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8912 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8913 * config/mips/linux.h (TARGET_VERSION): Remove.
8914 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8915 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8916 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8917 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8918 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8919 * config/pa/pa.h (TARGET_VERSION): Remove.
8920 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8921 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8922 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8923 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8924 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8925 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8926 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8927 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8928 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8929 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8930 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8931 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8932 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8933 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8934 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8935 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8936 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8937 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8938 * config/s390/linux.h (TARGET_VERSION): Remove.
8939 * config/s390/s390.h (TARGET_VERSION): Remove.
8940 * config/s390/tpf.h (TARGET_VERSION): Remove.
8941 * config/score/score.h (TARGET_VERSION): Remove.
8942 * config/sh/linux.h (TARGET_VERSION): Remove.
8943 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8944 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8945 * config/sh/sh.h (TARGET_VERSION): Remove.
8946 * config/sh/sh64.h (TARGET_VERSION): Remove.
8947 * config/sh/superh.h (TARGET_VERSION): Remove.
8948 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8949 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8950 * config/sparc/linux.h (TARGET_VERSION): Remove.
8951 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8952 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8953 TARGET_NAME32, TARGET_NAME): Remove.
8954 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8955 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8956 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8957 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8958 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8959 * config/spu/spu.h (TARGET_VERSION): Remove.
8960 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8961 * config/v850/v850.h (TARGET_VERSION): Remove.
8962 * config/vax/linux.h (TARGET_VERSION): Remove.
8963 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8964 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8965 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8966
8967 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8968
8969 PR target/48142
8970 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8971 frame-related from frame-unrelated adjustments to the stack pointer.
8972
8973 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8974
8975 * common.opt (fdebug-types-section): Move earlier.
8976 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8977
8978 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8979
8980 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8981 var.
8982
8983 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8984
8985 * tree.h (CASE_CHAIN): Define.
8986 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8987 (gimple_redirect_edge_and_branch): Likewise.
8988
8989 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8990
8991 PR middle-end/48367
8992 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8993 calculation.
8994
8995 2011-03-30 Jeff Law <law@redhat.com>
8996
8997 * PR bootstrap/48371
8998 * reload1.c (reload): Fix botch in last change.
8999
9000 * reload.h (struct reload): Fix typo introduced in last change.
9001
9002 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9003
9004 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9005 Undocumented. Remove help text.
9006 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9007 -mhard-float.
9008
9009 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9010
9011 * doc/options.texi (NegativeAlias): Document.
9012 (Alias): Mention NegativeAlias.
9013 * opt-functions.awk: Handle NegativeAlias.
9014 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9015 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9016 * opts.h (CL_NEGATIVE_ALIAS): Define.
9017 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9018 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9019 OPT_mspe_.
9020 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9021 Alias entries.
9022 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9023 mno-spe and mno-isel instead of mspe=no and -misel=no.
9024
9025 2011-03-29 Mark Wielaard <mjw@redhat.com>
9026
9027 * common.opt (fdebug-types-section): New flag.
9028 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9029 * dwarf2out.c (use_debug_types): New define.
9030 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9031 (print_die): Guard output of type unit signatures using
9032 use_debug_types.
9033 (build_abbrev_table): Replace assert of dwarf_version >= 4
9034 with assert on use_debug_types.
9035 (size_of_die): Likewise.
9036 (unmark_dies): Likewise.
9037 (value_format): Decide AT_ref_external form on use_debug_types.
9038 (output_die): Replace dwarf_version version check guard with
9039 use_debug_types where appropriate.
9040 (modified_type_die): Likewise.
9041 (gen_reference_type_die): Likewise.
9042 (dwarf2out_start_source_file): Likewise.
9043 (dwarf2out_end_source_file): Likewise.
9044 (prune_unused_types_walk_attribs): Likewise.
9045 (dwarf2out_finish): Likewise.
9046
9047 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9048
9049 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9050
9051 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9052
9053 PR rtl-optimization/48332
9054 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9055 mode of input operand N and modeN to its actual mode.
9056
9057 2011-03-30 Jeff Law <law@redhat.com>
9058
9059 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9060 define accessor macro.
9061 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9062 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9063 (reg_equiv_init): Likewise.
9064 (reg_equivs_size): New variable.
9065 (reg_equiv_init_size): Remove.
9066 (allocate_initial_values): Move prototype to here from....
9067 * integrate.h (allocate_initial_values): Remove prototype.
9068 * integrate.c: Include reload.h.
9069 (allocate_initial_values): Corresponding changes.
9070 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9071 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9072 (update_equiv_regs): Corresponding changes.
9073 (ira): Corresponding changes.
9074 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9075 (push_secondary_reload): Corresponding changes.
9076 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9077 (make_memloc, find_reloads_address): Corresponding changes.
9078 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9079 (find_reloads_address_1): Corresponding changes.
9080 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9081 (refers_to_regno_for_reload_p): Corresponding changes.
9082 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9083 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9084 * reload1.c: Include ggc.h.
9085 (grow_reg_equivs): New function.
9086 (replace_pseudos_in, reload): Corresponding changes.
9087 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9088 (eliminate_regs_1, elimination_effects): Corresponding changes.
9089 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9090 (delete_output_reload): Likewise.
9091 * caller-save.c (mark_referenced_regs): Corresponding changes.
9092 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9093 * frv/predicates.md (frv_load_operand): Corresponding changes.
9094 * microblaze/microblaze.c (double_memory_operand): Corresponding
9095 changes.
9096 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9097 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9098 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9099 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9100 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9101 changes.
9102 * pa/pa.c (emit_move_sequence): Corresponding changes.
9103 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9104
9105 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9106
9107 PR target/47551
9108 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9109 structure modes. Don't check neon_vector_mem_operand for
9110 vector or structure modes.
9111
9112 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9113 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9114
9115 PR target/43590
9116 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9117 operand 1 and reshuffle the operands to match.
9118 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9119
9120 2011-03-30 Christian Schüler <cschueler@gmx.de>
9121
9122 PR driver/48208
9123 * config/c.opt (F): Added 'Driver' to -F option.
9124
9125 PR driver/48260
9126 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9127 handler function.
9128 * config/darwin.opt: Added '-arch' option.
9129
9130 2011-03-30 Nick Clifton <nickc@redhat.com>
9131
9132 * config/rx/rx.md: Add peepholes and patterns to combine
9133 extending loads and simple arithmetic instructions.
9134 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9135 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9136 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9137 modes to use pre-decrement and post-increment addressing.
9138 (rx_is_restricted_memory_address): Add range checking of REG+INT
9139 addresses.
9140 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9141 (rx_memory_move_cost): Adjust cost of stores.
9142 (rx_adjust_insn_length): New function.
9143
9144 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9145
9146 PR c/48305
9147 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9148 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9149 matching arg00/arg01 types.
9150
9151 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9152
9153 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9154 last_location to UNKNOWN_LOCATION.
9155
9156 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9157
9158 PR target/48349
9159 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9160 FLOAT_SSE_REGS.
9161
9162 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9163 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9164
9165 PR bootstrap/48337
9166 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9167 Init(PROCESSOR_V7).
9168 (sparc_cpu): Likewise.
9169 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9170 PROCESSOR_V7.
9171
9172 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9173
9174 PR target/48336
9175 PR middle-end/48342
9176 PR rtl-optimization/48345
9177 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9178 hard regs for given mode from profitable regs when doing secondary
9179 allocation.
9180
9181 2011-03-29 Jeff Law <law@redhat.com>
9182
9183 PR bootstrap/48327
9184 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9185 do_not_duplicate field.
9186 (lookup_redirection_data): Corresponding changes.
9187 (create_duplicates): Always create a template block.
9188 (redirect_edges): Remove code which reused the original block
9189 when it was going to become unreachable code.
9190 (thread_block): Don't set do_not_duplicate field.
9191
9192 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9193
9194 * lto-opts.c (register_user_option_p, lto_register_user_option):
9195 Make type argument unsigned.
9196 * lto-streamer.h (lto_register_user_option): Make type argument
9197 unsigned.
9198 * opth-gen.awk: Make CL_* macros unsigned.
9199 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9200 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9201 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9202 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9203 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9204 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9205 (find_opt): Make lang_mask argument unsigned.
9206
9207 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9208
9209 PR rtl-optimization/48331
9210 PR rtl-optimization/48334
9211 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9212 for any used algorithm.
9213
9214 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9215
9216 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9217 to parent_max.
9218
9219 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9220
9221 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9222 (alpha_option_override): Don't set alpha_sr_alias_set.
9223 (emit_frame_store_1): Use gen_frame_mem rather than calling
9224 set_mem_alias_set.
9225 (alpha_expand_epilogue): Ditto.
9226
9227 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9228
9229 PR tree-optimization/48290
9230 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9231 vectorization, check that relevant phis in the basic block after
9232 the inner loop are really inner loop's exit phis.
9233
9234 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9235
9236 PR debug/48190
9237 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9238 (cached_dw_loc_list_def): New structure.
9239 (cached_dw_loc_list): New typedef.
9240 (cached_dw_loc_list_table): New variable.
9241 (cached_dw_loc_list_table_hash): New function.
9242 (cached_dw_loc_list_table_eq): Likewise.
9243 (add_location_or_const_value_attribute): Take a bool cache_p.
9244 Cache the list when the parameter is true.
9245 (gen_formal_parameter_die): Update caller.
9246 (gen_variable_die): Likewise.
9247 (dwarf2out_finish): Likewise.
9248 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9249 while generating debug info for the decl.
9250 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9251 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9252 (resolve_addr): Cache the result of resolving a chain of
9253 location lists.
9254
9255 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9256
9257 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9258 conflict object hard regset nodes have intersecting hard reg sets.
9259
9260 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9261 after regstat_init_n_sets_and_refs.
9262
9263 * ira.c: Add more comments at the top.
9264 (setup_stack_reg_pressure_class, setup_pressure_classes):
9265 Add comments how we compute the register pressure classes.
9266 (setup_allocno_and_important_classes): Add more comments.
9267 (setup_class_translate_array, reorder_important_classes)
9268 (setup_reg_class_relations): Add comments.
9269
9270 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9271 start of the file.
9272
9273 * ira-color.c: Add 2011 to the Copyright line.
9274 (assign_hard_reg): Add more comments.
9275 (improve_allocation): Ditto.
9276
9277 * ira-costs.c: Add 2011 to the Copyright line.
9278 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9279 comments.
9280 (setup_regno_cost_classes_by_mode): Ditto.
9281
9282 Initial patches from ira-improv branch:
9283
9284 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9285
9286 * ira-build.c (ira_create_object): Remove initialization of
9287 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9288 (ira_create_allocno): Remove initialization of
9289 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9290 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9291 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9292 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9293 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9294 Initialize ALLOCNO_ADD_DATA.
9295 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9296 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9297 ALLOCNO_REG.
9298 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9299 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9300
9301 * ira.c (ira_reallocate): Remove.
9302 (setup_pressure_classes): Call
9303 ira_init_register_move_cost_if_necessary. Use
9304 ira_register_move_cost instead of ira_get_register_move_cost.
9305 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9306 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9307
9308 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9309 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9310 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9311 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9312 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9313 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9314 Fix formatting.
9315 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9316 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9317 (struct allocno_color_data): New.
9318 (allocno_color_data_t): New typedef.
9319 (allocno_color_data): New definition.
9320 (ALLOCNO_COLOR_DATA): New macro.
9321 (struct object_color_data): New.
9322 (object_color_data_t): New typedef.
9323 (object_color_data): New definition.
9324 (OBJECT_COLOR_DATA): New macro.
9325 (update_copy_costs, calculate_allocno_spill_cost): Call
9326 ira_init_register_move_cost_if_necessary. Use
9327 ira_register_move_cost instead of ira_get_register_move_cost.
9328 (move_spill_restore, update_curr_costs): Ditto.
9329 (allocno_spill_priority): Make it inline.
9330 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9331 (struct coalesce_data, coalesce_data_t): New.
9332 (allocno_coalesce_data): New definition.
9333 (ALLOCNO_COALESCE_DATA): New macro.
9334 (merge_allocnos, coalesced_allocno_conflict_p): Use
9335 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9336 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9337 (coalesce_allocnos): Ditto.
9338 (setup_coalesced_allocno_costs_and_nums): Ditto.
9339 (collect_spilled_coalesced_allocnos): Ditto.
9340 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9341 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9342 (coalesce_spill_slots): Ditto.
9343 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9344 free allocno_coalesce_data.
9345
9346 * ira-conflicts.c: Fix formatting.
9347 (process_regs_for_copy): Call
9348 ira_init_register_move_cost_if_necessary. Use
9349 ira_register_move_cost instead of ira_get_register_move_cost.
9350 (build_object_conflicts): Optimize.
9351
9352 * ira-costs.c (record_reg_classes): Optimize. Call
9353 ira_init_register_move_cost_if_necessary. Use
9354 ira_register_move_cost, ira_may_move_in_cost, and
9355 ira_may_move_out_cost instead of ira_get_register_move_cost and
9356 ira_get_may_move_cost.
9357 (record_address_regs): Ditto.
9358 (scan_one_insn): Optimize.
9359 (find_costs_and_classes): Optimize.
9360 (process_bb_node_for_hard_reg_moves): Call
9361 ira_init_register_move_cost_if_necessary. Use
9362 ira_register_move_cost instead of ira_get_register_move_cost.
9363
9364 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9365 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9366 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9367 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9368 definitions.
9369 (ira_initiate_emit_data, ira_finish_emit_data)
9370 (create_new_allocno): New functions.
9371 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9372 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9373 Use ira_register_move_cost instead of ira_get_register_move_cost.
9374
9375 * ira-int.h: Fix some comments.
9376 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9377 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9378 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9379 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9380 add_data.
9381 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9382 bitfield after mode. Make hard_regno a short int. Make
9383 hard_regno short. Remove first_coalesced_allocno and
9384 next_coalesced_allocno. Move mem_optimized_dest_p,
9385 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9386 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9387 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9388 temp, colorable_p. Add new member add_data.
9389 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9390 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9391 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9392 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9393 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9394 (ALLOCNO_ADD_DATA): New macro.
9395 (ira_emit_data_t): New typedef.
9396 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9397 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9398 from struct ira_allocno.
9399 (ALLOCNO_EMIT_DATA): New macro.
9400 (ira_allocno_emit_data, allocno_emit_reg): New.
9401 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9402 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9403 (OBJECT_ADD_DATA): New macro.
9404 (ira_reallocate): Remove.
9405 (ira_initiate_emit_data, ira_finish_emit_data): New.
9406 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9407 (ira_init_register_move_cost_if_necessary): New.
9408 (ira_object_conflict_iter_next): Merge into
9409 ira_object_conflict_iter_cond.
9410 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9411
9412 * ira-live.c (process_single_reg_class_operands): Call
9413 ira_init_register_move_cost_if_necessary. Use
9414 ira_register_move_cost instead of ira_get_register_move_cost.
9415
9416 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9417
9418 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9419
9420 * ira-costs.c: Fix formatting.
9421 (cost_classes, cost_classes_num): Remove.
9422 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9423 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9424 (cost_classes_del, cost_classes_htab): New.
9425 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9426 (initiate_regno_cost_classes, setup_cost_classes): New.
9427 (setup_regno_cost_classes_by_aclass): New.
9428 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9429 (record_reg_classes): Use regno_cost_classes instead of
9430 cost_classes. Move checking opposite operand up.
9431 (record_address_regs): Use regno_cost_classes
9432 instead of cost_classes.
9433 (scan_one_insn): Ditto. Use always general register.
9434 (print_allocno_costs): Use regno_cost_classes instead of
9435 cost_classes.
9436 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9437 (find_costs_and_classes): Set up cost classes for each registers.
9438 Use also their mode for this. Use regno_cost_classes instead of
9439 cost_classes.
9440 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9441 cost_classes.
9442 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9443 (ira_costs, ira_set_pseudo_classes): Call
9444 initiate_regno_cost_classes and finish_regno_cost_classes.
9445
9446 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9447
9448 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9449
9450 * target.def (ira_cover_classes): Remove.
9451
9452 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9453
9454 * doc/tm.texi.in: Ditto.
9455
9456 * ira-conflicts.c: Remove mentioning cover classes from the file.
9457 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9458 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9459
9460 * targhooks.c (default_ira_cover_classes): Remove.
9461
9462 * targhooks.h (default_ira_cover_classes): Ditto.
9463
9464 * haifa-sched.c: Remove mentioning cover classes from the file.
9465 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9466 ira_pressure_classes and ira_pressure_classes_num instead of
9467 ira_reg_class_cover_size and ira_reg_class_cover. Use
9468 sched_regno_pressure_class instead of sched_regno_cover_class.
9469 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9470 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9471
9472 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9473 classes from the file.
9474 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9475 (struct object_hard_regs, struct object_hard_regs_node): New.
9476 (struct ira_object): New members profitable_hard_regs,
9477 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9478 (struct ira_allocno): Rename cover_class to aclass. Rename
9479 cover_class_cost and updated_cover_class_cost to class_cost and
9480 updated_class_cost. Remove splay_removed_p and
9481 left_conflict_size. Add new members colorable_p.
9482 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9483 (ALLOCNO_COLORABLE_P): New macro.
9484 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9485 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9486 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9487 (OBJECT_...): Rename parameter C to O.
9488 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9489 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9490 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9491 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9492 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9493 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9494 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9495 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9496 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9497 x_ira_reg_class_subunion.
9498 (ira_max_memory_move_cost, ira_max_register_move_cost)
9499 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9500 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9501 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9502 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9503 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9504 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9505 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9506 (ira_tune_allocno_costs_and_cover_classes): Rename to
9507 ira_tune_allocno_costs.
9508 (ira_debug_hard_regs_forest): New.
9509 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9510 (ira_object_conflict_iter_next): Fix comments.
9511 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9512 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9513 cover_class to aclass.
9514 (ira_allocate_and_accumulate_costs): Ditto.
9515 (ira_allocate_and_set_or_copy_costs): Ditto.
9516
9517 * opts.c (decode_options): Remove ira_cover_class check.
9518
9519 * ira-color.c: Remove mentioning cover classes from the file. Use
9520 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9521 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9522 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9523 (splay-tree.h): Remove include.
9524 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9525 before copy_freq_compare_func.
9526 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9527 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9528 New definitions.
9529 (hard_regs_roots, hard_regs_node_vec): Ditto.
9530 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9531 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9532 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9533 (create_new_object_hard_regs_node): Ditto.
9534 (add_new_object_hard_regs_node_to_forest): Ditto.
9535 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9536 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9537 Ditto.
9538 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9539 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9540 (remove_unused_object_hard_regs_nodes): Ditto.
9541 (enumerate_object_hard_regs_nodes): Ditto.
9542 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9543 (object_hard_regs_subnode_t): Ditto.
9544 (struct object_hard_regs_subnode): Ditto.
9545 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9546 (setup_object_hard_regs_subnode_index): Ditto.
9547 (get_object_hard_regs_subnodes_num): Ditto.
9548 (form_object_hard_regs_nodes_forest): Ditto.
9549 (finish_object_hard_regs_nodes_tree): Ditto.
9550 (finish_object_hard_regs_nodes_forest): Ditto.
9551 (allocnos_have_intersected_live_ranges_p): Rename to
9552 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9553 (pseudos_have_intersected_live_ranges_p): Rename to
9554 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9555 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9556 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9557 (update_copy_costs): Remove assert. Skip cost update if the hard
9558 reg does not belong the class.
9559 (assign_hard_reg): Process only profitable hard regs.
9560 (uncolorable_allocnos_num): Make it scalar.
9561 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9562 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9563 and ira_reg_class_max_nregs.
9564 (bucket_allocno_compare_func): Check frequency first.
9565 (sort_bucket): Add compare function as a parameter.
9566 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9567 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9568 (push_allocno_to_stack): Rewrite for checking new allocno
9569 colorability.
9570 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9571 (push_only_colorable): Pass new parameter to sort_bucket.
9572 (push_allocno_to_spill): Remove.
9573 (allocno_spill_priority_compare): Make it inline and rewrite.
9574 (splay_tree_allocate, splay_tree_free): Remove.
9575 (allocno_spill_sort_compare): New function.
9576 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9577 build and use splay tree. Choose first allocno in uncolorable
9578 allocno bucket to spill. Remove setting spill cost.
9579 (all_conflicting_hard_regs): Remove.
9580 (setup_allocno_available_regs_num): Check only profitable hard
9581 regs. Print info about hard regs nodes.
9582 (setup_allocno_left_conflicts_size): Remove.
9583 (put_allocno_into_bucket): Don't call
9584 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9585 (improve_allocation): New.
9586 (color_allocnos): Call setup_profitable_hard_regs,
9587 form_object_hard_regs_nodes_forest, improve_allocation,
9588 finish_object_hard_regs_nodes_forest. Setup spill cost.
9589 (print_loop_title): Use pressure classes.
9590 (color_allocnso): Ditto.
9591 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9592 and allocnos_for_spilling.
9593 (ira_sort_regnos_for_alter_reg): Don't setup members
9594 {first,next}_coalesced_allocno.
9595 (color): Remove allocating and freeing removed_splay_allocno_vec.
9596 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9597 prohibited_class_mode_regs.
9598
9599 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9600 formatting.
9601 (update_allocno_pressure_excess_length): Use pressure classes.
9602 (inc_register_pressure, dec_register_pressure): Check for pressure
9603 class.
9604 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9605 pressure class. Use ira_reg_class_nregs instead of
9606 ira_reg_class_max_nregs.
9607 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9608 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9609 (single_reg_class): Use ira_reg_class_nregs instead of
9610 ira_reg_class_max_nregs.
9611 (process_bb_node_lives): Use pressure classes.
9612
9613 * ira-emit.c: Remove mentioning cover classes from the file. Use
9614 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9615 (change_loop): Use pressure classes.
9616 (modify_move_list): Call ira_set_allocno_class instead of
9617 ira_set_allocno_cover_class.
9618
9619 * ira-build.c: Remove mentioning cover classes from the file. Use
9620 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9621 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9622 ALLOCNO_UPDATED_CLASS_COST instead of
9623 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9624 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9625 (ira_create_allocno): Remove initialization of
9626 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9627 ALLOCNO_COLORABLE_P.
9628 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9629 Update conflict regs for the objects.
9630 (create_cap_allocno): Remove assert. Don't propagate
9631 ALLOCNO_AVAILABLE_REGS_NUM.
9632 (ira_free_allocno_costs): New function.
9633 (finish_allocno): Change a part of code into call of
9634 ira_free_allocno_costs.
9635 (low_pressure_loop_node_p): Use pressure classes.
9636 (object_range_compare_func): Don't compare classes.
9637 (setup_min_max_conflict_allocno_ids): Ditto.
9638
9639 * loop-invariant.c: Remove mentioning cover classes from the file.
9640 Use ira_pressure_classes and ira_pressure_classes_num instead of
9641 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9642 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9643 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9644 Use reg_allocno_class instead of reg_cover_class.
9645 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9646 STACK_REG_COVER_CLASS.
9647 (get_regno_cover_class): Rename to get_regno_pressure_class.
9648 (move_loop_invariants): Initialize and finalize regstat.
9649
9650 * ira.c: Remove mentioning cover classes from the file. Add
9651 comments about coloring without cover classes. Use ALLOCNO_CLASS
9652 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9653 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9654 setup_class_subset_and_memory_move_costs.
9655 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9656 (setup_cover_and_important_classes): Rename to
9657 setup_allocno_and_important_classes.
9658 (setup_class_translate_array): New.
9659 (setup_class_translate): Call it for allocno and pressure classes.
9660 (cover_class_order): Rename to allocno_class_order.
9661 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9662 of ira_class_translate.
9663 (reorder_important_classes): Set up ira_important_class_nums.
9664 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9665 (print_class_cover): Rename to print_classes. Add parameter.
9666 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9667 Print pressure classes too.
9668 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9669 setup_reg_subclasses.
9670 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9671 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9672 (setup_prohibited_class_mode_regs): Use
9673 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9674 (clarify_prohibited_class_mode_regs): New function.
9675 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9676 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9677 (ira_init_once): Initialize them.
9678 (free_register_move_costs): Process them.
9679 (ira_init): Move calls of find_reg_classes and
9680 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9681 Call clarify_prohibited_class_mode_regs.
9682 (ira_no_alloc_reg): Remove.
9683 (too_high_register_pressure_p): Use pressure classes.
9684
9685 * sched-deps.c: Remove mentioning cover classes from the file.
9686 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9687 ira_pressure_classes and ira_pressure_classes_num instead of
9688 ira_reg_class_cover_size and ira_reg_class_cover.
9689 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9690 sched_regno_pressure_class instead of sched_regno_cover_class.
9691 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9692 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9693
9694 * ira.h: Add 2010 to Copyright.
9695 (ira_no_alloc_reg): Remove external.
9696 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9697 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9698 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9699 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9700 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9701 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9702 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9703 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9704 x_ira_no_alloc_regs.
9705 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9706 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9707 ira_allocno_classes_num and ira_allocno_classes.
9708 (ira_class_translate): Rename to ira_allocno_class_translate.
9709 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9710 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9711 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9712 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9713 (ira_no_alloc_regs): New.
9714
9715 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9716 classes from the file. Use ALLOCNO_CLASS instead of
9717 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9718 ALLOCNO_COVER_CLASS_COST.
9719 (regno_cover_class): Rename to regno_aclass.
9720 (record_reg_classes): Use ira_reg_class_subunion instead of
9721 ira_reg_class_union.
9722 (record_address_regs): Check overflow.
9723 (scan_one_insn): Ditto.
9724 (print_allocno_costs): Print total mem cost fore regional allocation.
9725 (print_pseudo_costs): Use REG_N_REFS.
9726 (find_costs_and_classes): Use classes intersected with them on the
9727 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9728 ira_reg_class_union. Use ira_allocno_class_translate and
9729 regno_aclass instead of ira_class_translate and regno_cover_class.
9730 Modify code for finding regno_aclass. Setup preferred classes for
9731 the next pass.
9732 (setup_allocno_cover_class_and_costs): Rename to
9733 setup_allocno_class_and_costs. Use regno_aclass instead of
9734 regno_cover_class. Use ira_set_allocno_class instead of
9735 ira_set_allocno_cover_class.
9736 (init_costs, finish_costs): Use regno_aclass instead of
9737 regno_cover_class.
9738 (ira_costs): Use setup_allocno_class_and_costs instead of
9739 setup_allocno_cover_class_and_costs.
9740 (ira_tune_allocno_costs_and_cover_classes): Rename to
9741 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9742 by processing objects. Use ira_reg_class_max_nregs instead of
9743 ira_reg_class_nregs.
9744
9745 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9746
9747 * sched-int.h: Remove mentioning cover classes from the file.
9748 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9749
9750 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9751 classes from the file.
9752 (struct reg_pref): Rename coverclass into allocnoclass.
9753 (reg_cover_class): Rename to reg_allocno_class.
9754
9755 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9756
9757 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9758
9759 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9760
9761 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9762
9763 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9764
9765 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9766
9767 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9768
9769 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9770
9771 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9772
9773 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9774
9775 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9776 (i386_ira_cover_classes): Ditto.
9777
9778 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9779
9780 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9781
9782 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9783
9784 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9785
9786 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9787
9788 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9789
9790 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9791 (mips_ira_cover_classes): Ditto.
9792
9793 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9794
9795 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9796
9797 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9798
9799 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9800
9801 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9802
9803 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9804 (IRA_COVER_CLASSES_VSX): Ditto.
9805
9806 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9807 (rs6000_ira_cover_classes): Ditto.
9808
9809 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9810
9811 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9812
9813 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9814
9815 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9816
9817 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9818
9819 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9820
9821 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9822
9823 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9824
9825 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9826
9827 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9828
9829 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9830
9831 PR debug/48253
9832 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9833 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9834 dw_fde_unlikely_section_end_label, cold_in_std_section,
9835 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9836 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9837 fields.
9838 (output_fde): Use dw_fde_second_{begin,end} if second is
9839 true, otherwise dw_fde_{begin,end}.
9840 (output_call_frame_info): Test dw_fde_second_begin != NULL
9841 instead of dw_fde_switched_sections.
9842 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9843 fields, initialize new fields. Initialize in_std_section
9844 unconditionally from the first partition.
9845 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9846 dw_fde_second_begin is non-NULL.
9847 (dwarf2out_switch_text_section): Stop initializing removed
9848 dw_fde_struct fields, initialize new fields, initialize
9849 also dw_fde_end here. Set dw_fde_switch_cfi even when
9850 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9851 (struct var_loc_list_def): Add last_before_switch field.
9852 (arange_table, arange_table_allocated, arange_table_in_use,
9853 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9854 (size_of_aranges): Count !in_std_section and !second_in_std_section
9855 hunks in fdes, instead of looking at arange_table_in_use.
9856 (output_aranges): Add aranges_length argument, don't call
9857 size_of_aranges here. Instead of using aranges_table*
9858 emit ranges for fdes when !in_std_section resp.
9859 !second_in_std_section.
9860 (dw_loc_list): Break ranges crossing section switch.
9861 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9862 use dw_fde_second_end instead of dw_fde_end as end of last range.
9863 (gen_subprogram_die): Don't call add_arange. Use
9864 dw_fde_{begin,end} for first partition and if switched
9865 section dw_fde_second_{begin,end} for the second.
9866 (var_location_switch_text_section_1,
9867 var_location_switch_text_section): New functions.
9868 (dwarf2out_begin_function): Initialize cold_text_section even
9869 when function_section () isn't text_section.
9870 (prune_unused_types): Don't walk arange_table.
9871 (dwarf2out_finish): Don't needlessly test
9872 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9873 If info_section_emitted, call size_of_aranges and if it indicates
9874 non-empty .debug_aranges, call output_aranges with the computed
9875 size. Stop using removed dw_fde_struct fields, use
9876 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9877 for second.
9878
9879 PR debug/48203
9880 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9881 create ENTRY_VALUE if incoming or address of incoming's MEM
9882 is a hard REG.
9883 * dwarf2out.c (mem_loc_descriptor): Don't emit
9884 DW_OP_GNU_entry_value of DW_OP_fbreg.
9885 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9886 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9887 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9888 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9889 ENTRY_VALUE_EXPs.
9890 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9891 is a REG_P or MEM_P with REG_P address, compute hash directly
9892 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9893 (preserve_only_constants): Don't clear VALUES forwaring
9894 ENTRY_VALUE to some other VALUE.
9895
9896 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9897
9898 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9899 instead of GEN_INT.
9900
9901 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9902
9903 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9904 block before expanding the statement.
9905 (expand_gimple_stmt_1): Likewise. Set them here...
9906 (expand_gimple_stmt): ...and not here. Tidy.
9907 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9908 unknown.
9909
9910 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9911
9912 * Makefile.in: New rule for cprop.o.
9913 * gcse.c: Move constant/copy propagation to cprop.c.
9914 (compute_local_properties): Only handle expression tables.
9915 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9916 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9917 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9918 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9919 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9920 compute_cprop_data, find_used_regs, try_replace_reg,
9921 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9922 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9923 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9924 find_bypass_set, reg_killed_on_edge, bypass_block,
9925 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9926 execute_rtl_cprop, pass_rtl_cprop): Move to...
9927 * cprop.c: ...here. New file, constant/copy propagation for RTL
9928 moved from gcse.c to here with minor cleanups in duplicated code.
9929
9930 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9931
9932 * config/i386/i386.c (flag_opts): Fix a typo in
9933 -mavx256-split-unaligned-store.
9934
9935 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9936
9937 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9938 LIBCALL_VALUE): Remove macros.
9939 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9940 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9941 (h8300_function_value, h8300_libcall_value,
9942 h8300_function_value_regno_p): New functions.
9943
9944 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9945
9946 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9947
9948 2011-03-28 Jeff Law <law@redhat.com>
9949
9950 * tree-ssa-threadupdate.c (redirect_edges): Call
9951 create_edge_and_update_destination_phis as needed.
9952 (create_edge_and_update_destination_phis): Accept new BB argument.
9953 All callers updated.
9954 (thread_block): Do not update the profile when threading around
9955 intermediate blocks.
9956 (thread_single_edge): Likewise.
9957 (determine_bb_domination_status): If BB is not a successor of the
9958 loop header, return NONDOMINATING.
9959 (register_jump_thread): Note when we register a jump thread around
9960 an intermediate block.
9961 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9962 (thread_across_edge): Use it.
9963
9964 2011-03-28 Tristan Gingold <gingold@adacore.com>
9965
9966 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9967 when for_return is 2.
9968
9969 2011-03-28 Jeff Law <law@redhat.com>
9970
9971 * var-tracking.c (canonicalize_values_mark): Delete unused
9972 lhs assignment.
9973 (canonicalize_values_star, set_variable_part): Likewise.
9974 (clobber_variable_part, delete_variable_part): Likewise.
9975
9976 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9977
9978 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9979
9980 2011-03-28 Martin Jambor <mjambor@suse.cz>
9981
9982 * tree-inline.c (expand_call_inline): Do not check that destination
9983 node is analyzed.
9984 (optimize_inline_calls): Assert that destination node is analyzed.
9985 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9986 not call tree_lowering_passes.
9987 * cgraph.h (cgraph_analyze_function): Declare.
9988 * cgraphunit.c (cgraph_analyze_function): Make public.
9989
9990 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9991
9992 * config/sparc/sparc-opts.h: New.
9993 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9994 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9995 (sparc_option_override): Store processor_type enumeration rather
9996 than string in cpu_default. Remove name and enumeration from
9997 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9998 without using sparc_select. Use target_flags_explicit instead of
9999 fpu_option_set.
10000 * config/sparc/sparc.h (enum processor_type): Move to
10001 sparc-opts.h.
10002 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10003 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10004 HeaderInclude entry.
10005 (mcpu=, mtune=): Use Var and Enum.
10006 (sparc_processor_type): New Enum and EnumValue entries.
10007
10008 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10009 Iain Sandoe <iains@gcc.gnu.org>
10010
10011 PR target/48245
10012 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10013
10014 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10015
10016 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10017 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10018 Insert new statements at it in lieu of STMT.
10019 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10020 * tree-vect-stmts.c (vectorizable_store): Likewise.
10021 (vectorizable_load): Likewise.
10022
10023 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10024
10025 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10026 (divtf3): Ditto.
10027 (multf3): Ditto.
10028 (subtf3): Ditto.
10029
10030 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10031
10032 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10033 unaligned 256bit load/store.
10034 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10035 (*avx_movdqu<avxmodesuffix>): Likewise.
10036
10037 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10038
10039 PR target/48288
10040 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10041 * config/pa/pa.md (iordi3): Use new predicate in expander.
10042 (iorsi3): Likewise.
10043
10044 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10045
10046 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10047 FUNCTION_VALUE_REGNO_P): Remove macros.
10048 * config/mips/mips-protos.h (mips_function_value): Remove.
10049 * config/mips/mips.c (mips_function_value): Rename to...
10050 (mips_function_value_1): ... this. Make static. Handle receiving
10051 the function type in 'fn_decl_or_type' argument.
10052 (mips_function_value, mips_libcall_value,
10053 mips_function_value_regno_p): New function.
10054 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10055 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10056
10057 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10058
10059 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10060 and -mavx256-split-unaligned-store.
10061 (ix86_option_override_internal): Split 32-byte AVX unaligned
10062 load/store by default.
10063 (ix86_avx256_split_vector_move_misalign): New.
10064 (ix86_expand_vector_move_misalign): Use it.
10065
10066 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10067 -mavx256-split-unaligned-store.
10068
10069 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10070 256bit load/store. Generate unaligned store on misaligned memory
10071 operand.
10072 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10073 256bit load/store.
10074 (*avx_movdqu<avxmodesuffix>): Likewise.
10075
10076 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10077 -mavx256-split-unaligned-store.
10078
10079 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10080
10081 PR target/38598
10082 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10083 Update commentary.
10084
10085 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10086
10087 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10088 opno arguments with an expand_operand. Use create_input_operand.
10089 (mips_prepare_builtin_target): Delete.
10090 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10091 functions.
10092 (mips_expand_builtin_direct): Use create_output_operand and
10093 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10094 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10095 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10096
10097 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10098
10099 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10100 function.
10101 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10102
10103 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10104
10105 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10106 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10107 basic blocks and call commit_edge_insertions directly.
10108 (fixup_abnormal_edges): Move from here to...
10109 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10110 on the edges and return whether some have actually been inserted.
10111 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10112 compensation code.
10113
10114 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10115
10116 PR rtl-optimization/48144
10117 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10118 (merge_expr_data): ... here.
10119 (av_set_intersect): Rename to av_set_code_motion_filter.
10120 Update all callers. Call merge_history_vect when an expression
10121 is found in both sets.
10122 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10123
10124 2011-03-26 Alan Modra <amodra@gmail.com>
10125
10126 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10127 cmodel medium addresses.
10128 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10129 64-bit gpr loads and stores.
10130 (rs6000_secondary_reload_ppc64): New function.
10131 * config/rs6000/rs6000-protos.h: Declare it.
10132 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10133
10134 2011-03-26 Alan Modra <amodra@gmail.com>
10135
10136 PR target/47487
10137 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10138 GNU Go in traceback table.
10139
10140 2011-03-25 Richard Henderson <rth@redhat.com>
10141
10142 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10143 if there are exactly 6 operands.
10144 (set_storage_via_setmem): Similarly.
10145
10146 2011-03-25 Kai Tietz <ktietz@redhat.com>
10147
10148 * collect2.c (write_c_file_stat): Handle backslash
10149 as right-hand directory separator.
10150 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10151 checking just for slash.
10152 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10153 instead of checking for trailing slash.
10154 * gcc.c (record_temp_file): Use filename_cmp instead
10155 of strcmp.
10156 (do_spec_1): Likewise.
10157 (replace_outfile_spec_function): Likewise.
10158 (is_directory): Use filename_ncmp instead of strncmp.
10159 (print_multilib_info): Likewise.
10160 * gcov.c (find_source): Use filename_cmp instead
10161 instead of strcmp.
10162 (make_gcov_file_name): Fix order of slash/backslash
10163 checks.
10164 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10165 (add_standard_paths): Likewise.
10166 * mips-tfile.c (saber_stop): Handle backslash.
10167 * prefix.c (update_path): Use filename_ncmp instead of
10168 strncmp.
10169 * profile.c (output_location): Use filename_cmp instead
10170 of strcmp.
10171 * read-md.c (handle_toplevel_file): Handle backslash.
10172 * tlink.c (frob_extension): Likewise.
10173 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10174 strcmp.
10175 * tree-dump.c (dequeue_and_dump): Handle backslash.
10176 * tree.c (get_file_function_name): Likewise.
10177 * gengtype.c (read_input_list): Likewise.
10178 (get_file_realbasename): Likewise.
10179 (get_output_file_with_visibility): Use filename_cmp
10180 instead of strcmp.
10181
10182 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10183
10184 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10185 case to VFPv1.
10186
10187 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10188
10189 * fold-const.c (expr_location_or): New function.
10190 (fold_truth_not_expr): Call it.
10191
10192 2011-03-25 Jeff Law <law@redhat.com>
10193
10194 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10195 va_end.
10196 * c-family/c-common.c (def_fn_type): Likewise.
10197 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10198 * emit-rtl.c (gen_rtvec): Likewise.
10199 * lto/lto-lang.c (def_fn_type): Likewise.
10200
10201 2011-03-25 Richard Guenther <rguenther@suse.de>
10202
10203 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10204 also generate copies.
10205 (fini_copy_prop): Handle constant values properly.
10206
10207 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10208
10209 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10210 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10211 (hash_loc_operands, compare_loc_operands): Handle
10212 DW_OP_GNU_entry_value.
10213
10214 2011-03-25 Kai Tietz <ktietz@redhat.com>
10215
10216 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10217 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10218 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10219 comment and use macro TARGET_64BIT_MS_ABI instead.
10220 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10221 and change default behavior for 32-bit MS_ABI.
10222 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10223 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10224 32-bit, too.
10225 (ix86_cfun_abi): Likewise.
10226 (ix86_maybe_switch_abi): Adjust comment.
10227 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10228 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10229 instead of checking for SYSV_ABI.
10230 (ix86_nsaved_sseregs): Likewise.
10231 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10232 to 16 bytes.
10233 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10234 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10235 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10236 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10237 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10238
10239 2011-03-25 Richard Guenther <rguenther@suse.de>
10240
10241 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10242 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10243 (verify_gimple): Remove.
10244 * tree-cfg.c (verify_gimple_call): Merge verification
10245 from verify_stmts.
10246 (verify_gimple_phi): Merge verification from verify_stmts.
10247 (verify_gimple_label): New function.
10248 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10249 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10250 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10251 (verify_stmts): Rename to verify_gimple_in_cfg.
10252 (verify_gimple_in_cfg): New function.
10253 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10254 * tree-ssa.c (verify_ssa): Likewise.
10255 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10256
10257 2011-03-25 Richard Guenther <rguenther@suse.de>
10258
10259 * passes.c (init_optimization_passes): Add FRE pass after
10260 early SRA.
10261
10262 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10263 Andrew Stubbs <ams@codesourcery.com>
10264
10265 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10266 for Cortex-A8.
10267 (arm_movdi_vfp_cortexa8): New pattern.
10268 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10269 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10270 instructions when tuning for Cortex-A8. Set attribute "arch".
10271 * config/arm/arm.md: Move include arm-tune.md up a bit.
10272 (define_attr "arch"): Add "onlya8" and "nota8" values.
10273 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10274
10275 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10276
10277 PR bootstrap/48282
10278 Revert:
10279 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10280
10281 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10282 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10283 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10284 * passes.c (init_optimization_passes): Move
10285 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10286
10287 2011-03-25 Kai Tietz <ktietz@redhat.com>
10288
10289 * c-typeck.c (comptypes_internal): Replace target
10290 hook call of comp_type_attributes by version in tree.c file.
10291 * gimple.c (gimple_types_compatible_p_1): Likewise.
10292 * tree-ssa.c (useless_type_conversion_p): Likewise.
10293 * tree.c (build_type_attribute_qual_variant): Likewise.
10294 (attribute_value_equal): New static helper function.
10295 (comp_type_attributes): New function.
10296 (merge_attributes): Use attribute_value_equal for comparison.
10297 (attribute_list_contained): Likewise.
10298 * tree.h (comp_type_attributes): New prototype.
10299
10300 2011-03-25 Richard Guenther <rguenther@suse.de>
10301
10302 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10303 of complex types at -O0.
10304 (verify_gimple_assign_binary): Likewise.
10305 (verify_gimple_assign_ternary): Likewise.
10306
10307 2011-03-24 Mark Wielaard <mjw@redhat.com>
10308
10309 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10310 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10311
10312 2011-03-24 Mark Wielaard <mjw@redhat.com>
10313
10314 PR debug/48041
10315 * dwarf2out.c (output_abbrev_section): Only write table when
10316 abbrev_die_table_in_use > 1.
10317
10318 2011-02-24 Richard Henderson <rth@redhat.com>
10319
10320 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10321 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10322 (alpha_expand_unaligned_load_words): Use extql.
10323 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10324 (emit_insxl): Handle all modes for consistency.
10325
10326 2011-02-24 Richard Henderson <rth@redhat.com>
10327
10328 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10329 (alpha_expand_unaligned_load): Likewise.
10330 (alpha_expand_unaligned_store): Likewise.
10331 (alpha_expand_unaligned_load_words): Likewise.
10332 (alpha_expand_unaligned_store_words): Likewise.
10333 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10334 (alpha_split_lock_test_and_set_12): Likewise.
10335 (print_operand, alpha_fold_builtin_extxx): Likewise.
10336 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10337 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10338 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10339 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10340 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10341 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10342 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10343 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10344 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10345 (extwl, extll, extql): Similarly.
10346 (inswh, inslh, insqh): Similarly.
10347 (mskbl, mskwl, mskll, mskql): Similarly.
10348 (mskwh, msklh, mskqh): Similarly.
10349
10350 2011-02-24 Richard Henderson <rth@redhat.com>
10351
10352 * config/alpha/alpha.md (attribute isa): Add er, ner.
10353 (attribute enabled): Handle them.
10354 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10355
10356 2011-02-24 Richard Henderson <rth@redhat.com>
10357
10358 * config/alpha/alpha.md (attribute isa): Add vms.
10359 (attribute enabled): Handle it.
10360 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10361 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10362 (*movtf): Rename from *movtf_internal for consistency.
10363 (*movsi): Merge with *movsi_nt_vms.
10364 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10365 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10366 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10367 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10368
10369 2011-02-24 Richard Henderson <rth@redhat.com>
10370
10371 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10372 (extendqisi2, extendhisi2): Likewise.
10373 (extendqidi2): Simplify BWX/non-BWX expansions.
10374 (extendhidi2): Similarly.
10375
10376 2011-02-24 Richard Henderson <rth@redhat.com>
10377
10378 * config/alpha/alpha.md (attribute isa): New.
10379 (attribute enabled): New.
10380 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10381 (zero_extendqisi2, zero_extendqidi2): Similarly.
10382 (zero_extendhisi2, zero_extendhidi2): Similarly.
10383 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10384
10385 2011-02-24 Richard Henderson <rth@redhat.com>
10386
10387 * config/alpha/predicates.md (input_operand): Revert last change;
10388 update comment to mention 32-bit VMS rather than Windows.
10389
10390 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10391
10392 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10393 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10394 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10395 * passes.c (init_optimization_passes): Move
10396 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10397
10398 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10399
10400 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10401
10402 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10403
10404 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10405 correctly.
10406
10407 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10408
10409 PR debug/48204
10410 * simplify-rtx.c (simplify_const_unary_operation): Call
10411 real_convert when changing mode class with FLOAT_EXTEND.
10412
10413 2011-03-24 Nick Clifton <nickc@redhat.com>
10414
10415 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10416 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10417 * config/rx/rx.c (rx_option_override): Set align_jumps,
10418 align_loops and align_labels if not set by the user.
10419 (rx_align_for_label): New function.
10420 (rx_max_skip_for_label): New function.
10421 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10422 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10423 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10424 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10425 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10426
10427 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10428
10429 PR rtl-optimization/48263
10430 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10431 and original commutative_p handling. Use maybe_gen_insn.
10432
10433 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10434
10435 * reload.c (find_reloads_subreg_address): Add address_reloaded
10436 parameter and return true there if the full address has been
10437 reloaded.
10438 (find_reloads_toplev): Pass address_reloaded flag.
10439 (find_reloads_address_1): Don't use address_reloaded parameter.
10440
10441 2011-03-24 Jeff Law <law@redhat.com>
10442
10443 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10444 unused variable "ann".
10445 (remove_unused_locals): Likewise.
10446
10447 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10448 statement.
10449
10450 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10451 after it is freed.
10452
10453 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10454
10455 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10456 for invalid symbolic addresses.
10457 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10458 larl operands.
10459
10460 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10461
10462 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10463 the argument in calls to fold_truth_not_expr.
10464
10465 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10466
10467 * tree.c (record_node_allocation_statistics): New function.
10468 (make_node_stat, copy_node_stat, build_string): Call it.
10469 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10470 (build1_stat, build_omp_clause): Likewise.
10471
10472 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10473
10474 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10475 last commit.
10476
10477 2011-03-24 Richard Guenther <rguenther@suse.de>
10478
10479 PR tree-optimization/48271
10480 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10481 blocks that still exist.
10482
10483 2011-03-24 Richard Guenther <rguenther@suse.de>
10484
10485 PR tree-optimization/48270
10486 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10487 not free datarefs before ddrs.
10488
10489 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10490
10491 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10492 from the address built for a reference with variable offset.
10493
10494 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10495
10496 PR target/48237
10497 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10498 alternatives that can be handled with movq or movabsq insn.
10499 (*movdf_internal): Disable for !TARGET_64BIT.
10500 (*movdf_internal_nointeger): Ditto.
10501 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10502
10503 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10504
10505 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10506 (FUNCTION_ARG_ADVANCE): Likewise.
10507 * tm.texi.in: Change references to them to hook references.
10508 * tm.texi: Regenerate.
10509 * targhooks.c (default_function_arg): Eliminate check for target macro.
10510 (default_function_incoming_arg): Likewise.
10511 (default_function_arg_advance): Likewise.
10512 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10513 (function_arg_advance): Likewise.
10514 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10515
10516 2011-03-24 Richard Guenther <rguenther@suse.de>
10517
10518 PR middle-end/48269
10519 * tree-object-size.c (addr_object_size): Do not double-account
10520 for MEM_REF offsets.
10521
10522 2011-03-24 Diego Novillo <dnovillo@google.com>
10523
10524 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10525 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10526 (lto_input_data_block): Move from lto-opts.c. Make extern.
10527 Update all users.
10528 (lto_input_string): Rename from input_string. Make extern.
10529 Update all users.
10530 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10531 output_string_with_length.
10532 Output 0 to indicate a non-NULL string. Update all callers to
10533 not emit 0.
10534 (lto_output_string): Rename from output_string. Make extern.
10535 Update all users.
10536 (lto_output_decl_state_streams): Make extern.
10537 (lto_output_decl_state_refs): Make extern.
10538 * lto-streamer.h (lto_input_string): Declare.
10539 (lto_input_data_block): Declare.
10540 (lto_output_string): Declare.
10541 (lto_output_string_with_length): Declare.
10542 (lto_output_decl_state_streams): Declare.
10543 (lto_output_decl_state_refs): Declare.
10544
10545 2011-03-24 Richard Guenther <rguenther@suse.de>
10546
10547 PR tree-optimization/46562
10548 * tree.c (build_invariant_address): New function.
10549 * tree.h (build_invariant_address): Declare.
10550 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10551 a renamed function moved ...
10552 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10553 Take valueization callback parameter.
10554 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10555 * gimple-fold.h: New file.
10556 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10557 (ccp_fold, fold_const_aggregate_ref,
10558 fold_ctor_reference, fold_nonarray_ctor_reference,
10559 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10560 get_base_constructor): Move ...
10561 * gimple-fold.c: ... here.
10562 (gimple_fold_stmt_to_constant_1): New function
10563 split out from ccp_fold. Take a valueization callback parameter.
10564 Valueize all operands.
10565 (gimple_fold_stmt_to_constant): New wrapper function.
10566 (fold_const_aggregate_ref_1): New function split out from
10567 fold_const_aggregate_ref. Take a valueization callback parameter.
10568 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10569 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10570 invariant POINTER_PLUS_EXPRs to invariant form.
10571 (vn_valueize): New function.
10572 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10573 * tree-vrp.c (vrp_valueize): New function.
10574 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10575 to fold statements to constants.
10576 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10577 function declarations.
10578 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10579 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10580
10581 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10582
10583 * config/h8300/predicates.md (jump_address_operand): Fix register
10584 mode check.
10585
10586 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10587
10588 * doc/invoke.texi (max-stores-to-sink): Document.
10589 * params.h (MAX_STORES_TO_SINK): Define.
10590 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10591 if either vectorization or if-conversion is disabled.
10592 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10593 tree-vect-data-refs.c vect_equal_offsets.
10594 (dr_equal_offsets_p): New function.
10595 (find_data_references_in_bb): Remove static.
10596 * tree-data-ref.h (find_data_references_in_bb): Declare.
10597 (dr_equal_offsets_p): Likewise.
10598 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10599 (vect_drs_dependent_in_basic_block): Update calls to
10600 vect_equal_offsets.
10601 (vect_check_interleaving): Likewise.
10602 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10603 (cond_if_else_store_replacement): Rename to...
10604 (cond_if_else_store_replacement_1): ... this. Change arguments and
10605 documentation.
10606 (cond_if_else_store_replacement): New function.
10607 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10608 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10609
10610 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10611
10612 PR target/46934
10613 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10614 to subtract lower bound instead of GEN_INT().
10615
10616 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10617
10618 PR other/48179
10619 PR other/48221
10620 PR other/48234
10621 * doc/extend.texi (Alignment): Move section to match order in TOC.
10622 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10623 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10624
10625 2011-03-23 Jeff Law <law@redhat.com>
10626
10627 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10628 before removing the edge.
10629
10630 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10631 it may have been freed by redirect_branch_edge or
10632 redirect_edge_succ_nodup.
10633
10634 2011-03-23 Richard Guenther <rguenther@suse.de>
10635
10636 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10637 (check_va_list_escapes): Likewise.
10638 (check_all_va_list_escapes): Likewise.
10639
10640 2011-03-23 Richard Guenther <rguenther@suse.de>
10641
10642 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10643 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10644 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10645 (alias.o): Likewise.
10646 (ipa-type-escape.o): Remove.
10647 (ipa-struct-reorg.o): Likewise.
10648 (GTFILES): Remove ipa-struct-reorg.c.
10649 * alias.c: Do not include ipa-type-escape.h.
10650 * tree-ssa-alias.c: Likewise.
10651 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10652 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10653 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10654 and ipa-type-escape passes.
10655 * tree-pass.h (pass_ipa_type_escape): Remove.
10656 (pass_ipa_struct_reorg): Likewise.
10657 * ipa-struct-reorg.h: Remove.
10658 * ipa-struct-reorg.c: Likewise.
10659 * ipa-type-escape.h: Likewise.
10660 * ipa-type-escape.c: Likewise.
10661 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10662 (--param struct-reorg-cold-struct-ratio): Likewise.
10663 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10664 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10665 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10666
10667 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10668
10669 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10670 cpu attribute value.
10671 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10672 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10673 * config/s390/s390.c (processor_flags_table): New constant array.
10674 (s390_handle_arch_option): Remove.
10675 (s390_handle_option): Remove s390_handle_arch_option invocations
10676 and OPT_mwarn_framesize_ handling.
10677 (s390_option_override): Remove s390_handle_arch_option invocation.
10678 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10679 warnings.
10680 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10681 * config/s390/s390.opt (s390_tune, s390_arch)
10682 (march=): Replace s390_arch_option enum and values with
10683 processor_type. Set variable name to s390_arch. Set
10684 initialization value.
10685 (mtune=): Replace s390_arch_option with processor_type. Set
10686 variable name to s390_tune. Set initialization value.
10687
10688 2011-03-23 Julian Brown <julian@codesourcery.com>
10689
10690 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10691 accesses which are not naturally aligned.
10692
10693 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10694
10695 PR target/47553
10696 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10697
10698 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10699
10700 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10701 parameter from "int" to "enum insn_code".
10702 (expand_operand_type): New enum.
10703 (expand_operand): New structure.
10704 (create_expand_operand): New function.
10705 (create_fixed_operand, create_output_operand): Likewise
10706 (create_input_operand, create_convert_operand_to): Likewise.
10707 (create_convert_operand_from, create_address_operand): Likewise.
10708 (create_integer_operand): Likewise.
10709 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10710 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10711 (expand_insn, expand_jump_insn): Likewise.
10712 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10713 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10714 (expand_movstr, expand_builtin___clear_cache): Likewise.
10715 (expand_builtin_lock_release): Likewise.
10716 * explow.c (allocate_dynamic_stack_space): Likewise.
10717 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10718 and use the default handling in that case.
10719 * expmed.c (check_predicate_volatile_ok): Delete.
10720 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10721 (emit_cstore): Likewise.
10722 * expr.c (emit_block_move_via_movmem): Likewise.
10723 (set_storage_via_setmem, expand_assignment): Likewise.
10724 (emit_storent_insn, try_casesi): Likewise.
10725 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10726 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10727 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10728 (expand_twoval_unop, expand_twoval_binop): Likewise.
10729 (expand_unop_direct, emit_indirect_jump): Likewise.
10730 (emit_conditional_move, vector_compare_rtx): Likewise.
10731 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10732 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10733 (expand_sync_lock_test_and_set): Likewise.
10734 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10735 (emit_unop_insn): Likewise.
10736 (expand_copysign_absneg): Change icode to an insn_code.
10737 (create_convert_operand_from_type): New function.
10738 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10739 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10740 (expand_insn, expand_jump_insn): Likewise.
10741 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10742 than const_int_operand for operand 2.
10743
10744 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10745
10746 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10747 if possible.
10748
10749 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10750
10751 * emit-rtl.c (emit_pattern_before_noloc): New function.
10752 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10753 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10754 (emit_pattern_after_noloc): New function.
10755 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10756 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10757
10758 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10759
10760 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10761 (__ffsDI2): Likewise.
10762
10763 2011-03-22 Richard Henderson <rth@redhat.com>
10764
10765 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10766 of !TARGET_ABI_OPEN_VMS.
10767 (alpha_trampoline_init, alpha_start_function): Likewise.
10768 (alpha_expand_epilogue, alpha_file_start): Likewise.
10769 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10770 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10771 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10772 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10773 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10774
10775 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10776
10777 * config/s390/s390-opts.h: New.
10778 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10779 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10780 s390_stack_guard): Remove.
10781 (s390_handle_arch_option): Return void. Take enum
10782 s390_arch_option value instead of string and searching array.
10783 (s390_handle_option): Don't assert that global structures are in
10784 use. Access variables via opts pointer. Use error_at. Don't use
10785 sscanf for -mstack-guard= or -mstack-size=. Update call to
10786 s390_handle_arch_option.
10787 (s390_option_override): Update call to s390_handle_arch_option.
10788 (s390_emit_prologue): Use %d format for s390_stack_size in
10789 diagnostic. Use %wd for HOST_WIDE_INT.
10790 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10791 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10792 * config/s390/s390.opt (config/s390/s390-opts.h): New
10793 HeaderInclude entry.
10794 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10795 s390_arch_flags, s390_warn_framesize): New Variable entries.
10796 (s390_arch_option): New Enum and EnumValue entries.
10797 (march=): Use Enum instead of Var.
10798 (mstack-guard=, mstack-size=): Use UInteger and Var.
10799 (mtune=): Use Enum.
10800
10801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10802
10803 * config/score/score.c (score_handle_option): Don't assert that
10804 global structures are in use. Access target_flags via opts
10805 pointer. Use value of -march= option to determine target_flags
10806 settings.
10807 * config/score/score.opt (march=): Use Enum.
10808 (score_arch): New Enum and EnumValue entries.
10809
10810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10811
10812 * config/mep/mep.c (option_mtiny_specified): Remove.
10813 (mep_option_override): Move register handling for -mivc2 from
10814 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10815 instead of option_mtiny_specified.
10816 (mep_handle_option): Access target_flags via opts pointer. Don't
10817 assert that global structures are in use. Defer part of -mivc2
10818 handling and move it to mep_option_override.
10819 * config/mep/mep.opt (IVC2): New Mask entry.
10820 (mivc2): Use Var and Defer instead of Mask.
10821
10822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10823
10824 * config/v850/v850-opts.h: New.
10825 * config/v850/v850.c (small_memory): Replace with
10826 small_memory_physical_max array. Make that array static const.
10827 (v850_handle_memory_option): Take integer value of argument. Take
10828 gcc_options pointer, option text and location. Return void.
10829 Update for changes to small memory structures.
10830 (v850_handle_option): Access target_flags via opts pointer. Don't
10831 assert that global structures are in use. Update calls to
10832 v850_handle_memory_option.
10833 (v850_encode_data_area): Update references to small memory settings.
10834 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10835 (enum small_memory_type): Move to v850-opts.h.
10836 * config/v850/v850.opt (config/v850/v850-opts.h): New
10837 HeaderInclude entry.
10838 (small_memory_max): New Variable entry.
10839 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10840 (mtda, mzda): Likewise.
10841
10842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10843
10844 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10845 pointer. Don't assert that global structures are in use.
10846
10847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10848
10849 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10850 via opts pointer. Don't assert that global structures are in use.
10851
10852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10853
10854 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10855 (munix=93): Use Var.
10856 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10857 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10858 * config/pa/pa-opts.h: New.
10859 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10860 (pa_handle_option): Don't assert that global structures are in
10861 use. Access target_flags via opts pointer. Don't handle
10862 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10863 OPT_munix_98 here.
10864 (pa_option_override): Handle deferred OPT_mfixed_range_.
10865
10866 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10867
10868 * config/mn10300/mn10300-opts.h: New.
10869 * config/mn10300/mn10300.c (mn10300_processor,
10870 mn10300_tune_string): Remove.
10871 (mn10300_handle_option): Don't assert that global structures are
10872 in use. Access mn10300_processor via opts pointer. Don't handle
10873 OPT_mtune_ here.
10874 * config/mn10300/mn10300.h (enum processor_type): Move to
10875 mn10300-opts.h.
10876 (mn10300_processor): Remove.
10877 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10878 HeaderInclude entry.
10879 (mn10300_processor): New Variable entry.
10880 (mtune=): Use Var.
10881
10882 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10883
10884 * config/microblaze/microblaze.c: Don't include opts.h.
10885 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10886 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10887 (mno-clearbss): Use Var and Warn.
10888
10889 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10890
10891 * config/m32r/m32r-opts.h: New.
10892 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10893 (m32r_handle_option): Don't assert that global structures are in
10894 use. Access target_flags and m32r_cache_flush_func via opts
10895 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10896 OPT_mno_flush_trap here.
10897 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10898 include of m32r-opts.h.
10899 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10900 HeaderInclude entry.
10901 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10902 (mmodel=): Use Enum and Var.
10903 (m32r_model): New Enum and EnumValue entries.
10904 (mno-flush-trap): Use Var.
10905 (msdata=): Use Enum and Var.
10906 (m32r_sdata): New Enum and EnumValue entries.
10907
10908 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10909
10910 * config/m32c/m32c.c: Don't include opts.h.
10911 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10912 m32c_handle_option): Remove.
10913 (m32c_option_override): Check global_options_set.x_target_memregs
10914 instead of target_memregs_set.
10915 * config/m32c/m32c.h (target_memregs): Remove.
10916 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10917 variable.
10918
10919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10920
10921 * config/iq2000/iq2000-opts.h: New.
10922 * config/iq2000/iq2000.c: Don't include opts.h.
10923 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10924 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10925 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10926 HeaderInclude entry.
10927 (iq2000_tune): New Variable entry.
10928 (march=): Add comment. Use Enum.
10929 (iq2000_arch): New Enum and EnumValue entries.
10930 (mcpu=): Use Enum and Var.
10931 (iq2000_tune): New Enum and EnumValue entries.
10932
10933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10934
10935 * config/ia64/ia64-opts.h: New.
10936 * config/ia64/ia64.c (ia64_tune): Remove.
10937 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10938 here. Use error_at.
10939 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10940 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10941 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10942 HeaderInclude entry.
10943 (ia64_tune): New Variable entry.
10944 (mfixed-range=): Use Defer and Var.
10945 (mtune=): Use Enum and Var.
10946 (ia64_tune): New Enum and EnumValue entries.
10947
10948 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10949
10950 * config/frv/frv-opts.h: New.
10951 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10952 frv-opts.h.
10953 (frv_cpu_type): Remove.
10954 * config/frv/frv.c: Don't include opts.h.
10955 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10956 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10957 (frv_cpu_type): New Variable entry.
10958 (frv_cpu): New Enum and EnumValue entries.
10959
10960 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10961
10962 * config/cris/cris.c (cris_handle_option): Access target_flags via
10963 opts pointer. Don't assert that global structures are in use.
10964 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10965 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10966
10967 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10968
10969 * config/bfin/bfin-opts.h: New.
10970 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10971 bfin_si_revision, bfin_workarounds): Remove.
10972 (bfin_cpus): Make static const.
10973 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10974 not bfin_lib_id_given.
10975 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10976 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10977 pointer. Use error_at. Don't assert that global structures are in use.
10978 * config/bfin/bfin.h: Include bfin-opts.h.
10979 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10980 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10981 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10982 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10983 entries.
10984
10985 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10986
10987 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10988 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10989 or -msoft-float here.
10990 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10991 -msoft-float and -mhard-float.
10992 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10993 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10994 msoft-float.
10995 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10996 -msoft-float.
10997 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10998 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10999 not mhard-float.
11000 (LIBGCC_SPEC): Don't handle -msoft-float.
11001 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11002 -mhard-float.
11003 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11004 msoft-float.
11005 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11006 -mfloat-abi=*, not -msoft-float and -mhard-float.
11007 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11008 -msoft-float.
11009 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11010 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11011 mhard-float and msoft-float.
11012 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11013 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11014 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11015 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11016 mhard-float.
11017 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11018 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11019 msoft-float.
11020 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11021 not mhard-float.
11022 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11023 not msoft-float.
11024
11025 2011-03-22 Richard Henderson <rth@redhat.com>
11026
11027 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11028 TARGET_ABI_WINDOWS_NT.
11029 (alpha_output_function_end_prologue): Likewise.
11030 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11031 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11032 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11033 (trap, *movsi_nt_vms): Likewise.
11034 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11035 (*tablejump_osf_nt_internal): Remove.
11036 * config/alpha/predicates.md (input_operand): Only test Pmode.
11037
11038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11039
11040 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11041 via opts pointer. Use error_at. Don't assert that global
11042 structures are in use.
11043
11044 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11045
11046 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11047 (ix86_handle_option): Access ix86_isa_flags and
11048 ix86_isa_flags_explicit via opts pointer. Don't assert that
11049 global structures are in use.
11050 (ix86_function_specific_save, ix86_function_specific_restore):
11051 Update ix86_isa_flags_explicit field name.
11052 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11053 (ix86_isa_flags_explicit): Rename TargetSave entry to
11054 x_ix86_isa_flags_explicit.
11055
11056 2011-03-22 Richard Henderson <rth@redhat.com>
11057
11058 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11059 (alpha_option_override, direct_return): Likewise.
11060 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11061 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11062 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11063 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11064 (alpha_expand_epilogue, alpha_end_function): Likewise.
11065 (alpha_init_libfuncs): Likewise.
11066 (struct machine_function): Remove unicosmk members.
11067 (print_operand) ['t']: Remove.
11068 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11069 unicosmk_output_module_name, unicosmk_output_common,
11070 current_section_align, unicosmk_output_text_section_asm_op,
11071 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11072 unicosmk_section_type_flags, unicosmk_unique_section,
11073 unicosmk_asm_named_section, unicosmk_insert_attributes,
11074 unicosmk_output_align, unicosmk_defer_case_vector,
11075 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11076 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11077 unicosmk_output_ssib, unicosmk_add_call_info_word,
11078 unicosmk_extern_head, unicosmk_output_default_externs,
11079 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11080 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11081 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11082 * config/alpha/alpha-protos.h: Update.
11083 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11084 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11085 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11086 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11087 (*mulsi_se, mulvsi3): Likewise.
11088 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11089 (*divmodsi_internal, call, call_value, realign): Likewise.
11090 (moddi3, umoddi3): Likewise; remove duplicate expander.
11091 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11092 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11093 (*movdi_nofix): Remove r/U alternative.
11094 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11095 * config/alpha/constraints.md ("U"): Remove.
11096 * config/alpha/predicates.md (call_operand"): Don't test
11097 TARGET_ABI_UNICOSMK.
11098
11099 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11100
11101 * target.def (handle_option): Take gcc_options and
11102 cl_decoded_option pointers and location_t.
11103 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11104 * doc/tm.texi: Regenerate.
11105 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11106 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11107 * lto-opts.c (lto_reissue_options): Generate option structure for
11108 targetm.handle_option call.
11109 * opts.c (target_handle_option): Update call to
11110 targetm.handle_option. Remove assertions about values now passed
11111 down to hook.
11112 * targhooks.c (default_target_handle_option): New.
11113 * targhooks.h (default_target_handle_option): Declare.
11114 * config/alpha/alpha.c: Include opts.h.
11115 (alpha_handle_option): Update to new hook interface.
11116 * config/arm/arm.c: Include opts.h.
11117 (arm_handle_option): Update to new hook interface.
11118 * config/arm/t-arm (arm.o): Update dependencies.
11119 * config/bfin/bfin.c: Include opts.h.
11120 (bfin_handle_option): Update to new hook interface.
11121 * config/cris/cris.c: Include opts.h.
11122 (cris_handle_option): Update to new hook interface.
11123 * config/frv/frv.c: Include opts.h.
11124 (frv_handle_option): Update to new hook interface.
11125 * config/i386/i386.c: Include opts.h.
11126 (ix86_handle_option): Update to new hook interface.
11127 (ix86_valid_target_attribute_inner_p): Generate option structure
11128 for call to ix86_handle_option.
11129 * config/i386/t-i386 (i386.o): Update dependencies.
11130 * config/ia64/ia64.c: Include opts.h.
11131 (ia64_handle_option): Update to new hook interface.
11132 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11133 * config/iq2000/iq2000.c: Include opts.h.
11134 (iq2000_handle_option): Update to new hook interface.
11135 * config/m32c/m32c.c: Include opts.h.
11136 (m32c_handle_option): Update to new hook interface.
11137 * config/m32r/m32r.c: Include opts.h.
11138 (m32r_handle_option): Update to new hook interface.
11139 * config/m68k/m68k.c: Include opts.h.
11140 (m68k_handle_option): Update to new hook interface.
11141 * config/mep/mep.c: Include opts.h.
11142 (mep_handle_option): Update to new hook interface.
11143 * config/microblaze/microblaze.c: Include opts.h.
11144 (microblaze_handle_option): Update to new hook interface.
11145 * config/mips/mips.c: Include opts.h.
11146 (mips_handle_option): Update to new hook interface.
11147 * config/mn10300/mn10300.c: Include opts.h.
11148 (mn10300_handle_option): Update to new hook interface.
11149 * config/pa/pa.c: Include opts.h.
11150 (pa_handle_option): Update to new hook interface.
11151 * config/pdp11/pdp11.c: Include opts.h.
11152 (pdp11_handle_option): Update to new hook interface.
11153 * config/rs6000/rs6000.c: Include opts.h.
11154 (rs6000_handle_option): Update to new hook interface.
11155 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11156 * config/rx/rx.c: Include opts.h.
11157 (rx_handle_option): Update to new hook interface.
11158 * config/s390/s390.c: Include opts.h.
11159 (s390_handle_option): Update to new hook interface.
11160 * config/score/score.c: Include opts.h.
11161 (score_handle_option): Update to new hook interface.
11162 * config/sh/sh.c: Include opts.h.
11163 (sh_handle_option): Update to new hook interface.
11164 * config/sparc/sparc.c: Include opts.h.
11165 (sparc_handle_option): Update to new hook interface.
11166 * config/v850/v850.c: Include opts.h.
11167 (v850_handle_option): Update to new hook interface.
11168
11169 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11170
11171 * gcc.c (driver_unknown_option_callback): Only permit and save
11172 unknown -Wno- options.
11173 (driver_wrong_lang_callback): Save options directly instead of via
11174 driver_unknown_option_callback.
11175
11176 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11177
11178 * combine.c (simplify_set): Try harder to find the best CC mode when
11179 simplifying a nested COMPARE on the RHS.
11180
11181 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11182
11183 * config/alpha/gnu.h: Remove.
11184 * config/arc: Remove directory.
11185 * config/arm/netbsd.h: Remove.
11186 * config/arm/t-pe: Remove.
11187 * config/crx: Remove directory.
11188 * config/i386/netbsd.h: Remove.
11189 * config/m68hc11: Remove directory.
11190 * config/m68k/uclinux-oldabi.h: Remove.
11191 * config/mcore/mcore-pe.h: Remove.
11192 * config/mcore/t-mcore-pe: Remove.
11193 * config/netbsd-aout.h: Remove.
11194 * config/rs6000/gnu.h: Remove.
11195 * config/sh/sh-symbian.h: Remove.
11196 * config/sh/symbian-base.c: Remove.
11197 * config/sh/symbian-c.c: Remove.
11198 * config/sh/symbian-cxx.c: Remove.
11199 * config/sh/symbian-post.h: Remove.
11200 * config/sh/symbian-pre.h: Remove.
11201 * config/sh/t-symbian: Remove.
11202 * config/svr3.h: Remove.
11203 * config/vax/netbsd.h: Remove.
11204 * config.build: Don't handle i[34567]86-*-pe.
11205 * config.gcc: Remove handling of deprecations for most deprecated
11206 targets.
11207 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11208 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11209 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11210 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11211 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11212 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11213 Remove cases.
11214 * config.host: Don't handle i[34567]86-*-pe.
11215 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11216 (ASM_SPEC32): Don't handle -mcall-gnu.
11217 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11218 -mcall-gnu.
11219 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11220 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11221 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11222 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11223 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11224 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11225 conditional on SYMBIAN.
11226 * configure.ac: Don't handle powerpc*-*-gnu*.
11227 * configure: Regenerate.
11228 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11229 * doc/install-old.texi (m6811, m6812): Don't mention.
11230 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11231 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11232 (m68k-uclinuxoldabi): Don't mention.
11233 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11234 Remove.
11235 (-mcall-gnu): Remove.
11236 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11237 families): Remove constraint documentation.
11238
11239 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11240
11241 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11242 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11243 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11244
11245 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11246
11247 PR target/48226
11248 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11249 vector when peeking at the next token for vector, don't expand the
11250 keywords.
11251
11252 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11253
11254 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11255 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11256 * config/avr/avr.c (init_cumulative_args)
11257 (avr_function_arg_advance): Use it.
11258 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11259 sibcall epilogues.
11260 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11261 (avr_function_ok_for_sibcall): ...this new function.
11262 (avr_lookup_function_attribute1): New static Function.
11263 (avr_naked_function_p, interrupt_function_p)
11264 (signal_function_p, avr_OS_task_function_p)
11265 (avr_OS_main_function_p): Use it.
11266 * config/avr/avr.md ("sibcall", "sibcall_value")
11267 ("sibcall_epilogue"): New expander.
11268 ("*call_insn", "*call_value_insn"): New insn.
11269 ("call_insn", "call_value_insn"): Remove
11270 ("call", "call_value", "epilogue"): Change expander to handle
11271 sibling calls.
11272
11273 2011-03-21 Nick Clifton <nickc@redhat.com>
11274
11275 * doc/invoke.texi (Overall Options): Move closing brace to end of
11276 options list.
11277 (Optimization Options): Add missing @gol.
11278 (Directory Options): Likewise.
11279 (i386 and x86-64 Options): Likewise.
11280 (RS6000 and PowerPC Options): Likewise.
11281 (i386 and x86-64 Windows Options): Likewise.
11282 (V850 Options): Add text missing from descriptions.
11283
11284 2011-03-22 Richard Henderson <rth@redhat.com>
11285
11286 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11287 (avr_incoming_return_addr_rtx): New.
11288 (emit_push_byte): New.
11289 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11290 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11291 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11292 (emit_pop_byte): New.
11293 (expand_epilogue): Use it. Pop frame pointer by bytes.
11294 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11295 (INCOMING_RETURN_ADDR_RTX): New.
11296 (INCOMING_FRAME_SP_OFFSET): New.
11297 (ARG_POINTER_CFA_OFFSET): New.
11298 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11299 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11300 (pophi): Remove.
11301
11302 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11303
11304 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11305
11306 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11307 (FUNCTION_ARG_ADVANCE): Likewise.
11308 * tm.texi.in: Change references to them to hook references.
11309 * tm.texi: Regenerate.
11310 * targhooks.c (default_function_arg): Eliminate check for target
11311 macro.
11312 (default_function_incoming_arg): Likewise.
11313 (default_function_arg_advance): Likewise.
11314 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11315 (function_arg_advance): Likewise.
11316 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11317
11318 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11319
11320 * tree.c (build_call_1): New function.
11321 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11322
11323 2011-03-22 Richard Guenther <rguenther@suse.de>
11324
11325 PR tree-optimization/48228
11326 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11327 for single-arg PHIs.
11328
11329 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11330
11331 PR rtl-optimization/48143
11332 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11333 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11334 sse2_cvtps2pd): Likewise.
11335
11336 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11337
11338 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11339
11340 2011-03-22 Richard Guenther <rguenther@suse.de>
11341
11342 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11343 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11344 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11345 and REALIGN_LOAD_EXPR.
11346 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11347 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11348 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11349 DOT_PROD_EXPR case ...
11350 (expand_expr_real_2): ... here.
11351 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11352 and REALIGN_LOAD_EXPR.
11353 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11354 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11355 (vect_create_epilog_for_reduction): Likewise.
11356 (vectorizable_reduction): Likewise.
11357 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11358 * tree-vect-stmts.c (vectorizable_load): Likewise.
11359
11360 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11361
11362 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11363
11364 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11365
11366 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11367 handling for PLTOFF/GOTOFF.
11368
11369 2011-03-22 Nick Clifton <nickc@redhat.com>
11370
11371 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11372 trailing backslash from the end of the macro definition.
11373
11374 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11375
11376 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11377 and PLT unspecs.
11378
11379 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11380
11381 * expr.h (prepare_operand): Move to...
11382 * optabs.h (prepare_operand): ...here and change the insn code
11383 parameter from "int" to "enum insn_code".
11384 (insn_operand_matches): Declare.
11385 * expr.c (init_expr_target): Use insn_operand_matches.
11386 (compress_float_constant): Likewise.
11387 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11388 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11389 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11390 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11391 Likewise.
11392 (gen_cond_trap): Likewise.
11393 (prepare_operand): Likewise. Change icode to an insn_code.
11394 (insn_operand_matches): New function.
11395 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11396 * reload1.c (gen_reload): Likewise.
11397 * targhooks.c (default_secondary_reload): Likewise.
11398
11399 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11400
11401 * config/alpha/alpha.md (unspec): New define_c_enum.
11402 (unspecv): Ditto.
11403
11404 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11405
11406 PR debug/48214
11407 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11408 between a call and its CALL_ARG_LOCATION note.
11409
11410 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11411
11412 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11413
11414 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11415
11416 PR c/42544
11417 PR c/48197
11418 * c-common.c (shorten_compare): If primopN is first sign-extended
11419 to opN and then zero-extended to result type, set primopN to opN.
11420
11421 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11422
11423 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11424 for barrier handlers.
11425
11426 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11427
11428 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11429 UNSPEC constants to be in the unspec enumeration, and redefine
11430 all UNSPECV constants to be in the unspecv enumeration, so that
11431 dumps print which unspec/unspec_volatile this is.
11432 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11433 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11434 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11435 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11436 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11437
11438 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11439 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11440 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11441 * config/rs6000/sync.md (isync, lwsync): Ditto.
11442
11443 2011-03-21 Richard Guenther <rguenther@suse.de>
11444
11445 * params.def (lto-min-partition): Fix typo.
11446
11447 2011-03-21 Richard Guenther <rguenther@suse.de>
11448
11449 PR c/47939
11450 * c-decl.c (grokdeclarator): Drop to the main variant only
11451 for array types. Drop flag_gen_aux_info check.
11452
11453 2011-03-21 Richard Guenther <rguenther@suse.de>
11454
11455 PR translation/47911
11456 * params.def (lto-partitions): Fix typo.
11457 (lto-min-partition): Fix wording.
11458
11459 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11460
11461 * config/rs6000/t-freebsd: Remove duplication from file.
11462
11463 2011-03-21 Richard Guenther <rguenther@suse.de>
11464
11465 PR middle-end/47661
11466 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11467
11468 2011-03-21 Richard Guenther <rguenther@suse.de>
11469
11470 PR lto/48210
11471 * params.def (lto-partitions): Require at least 1 partition.
11472
11473 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11474
11475 * gthr-solaris.h: Remove.
11476 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11477 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11478 (LIB_SPEC): Likewise.
11479 * config/sol2.opt (threads): Remove.
11480 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11481 (sparc*-*-solaris2*): Likewise.
11482 * configure.ac (enable_threads): Enable solaris support.
11483 * configure: Regenerate.
11484 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11485 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11486 solaris.
11487
11488 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11489
11490 * config.gcc: Obsolete *-*-solaris2.8*.
11491 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11492
11493 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11494
11495 PR bootstrap/48135
11496 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11497 reference. Solaris 8 perl works.
11498
11499 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11500
11501 PR bootstrap/48135
11502 * doc/install.texi (Prerequisites): Move jar etc. up.
11503 Explain support library version requirements.
11504
11505 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11506
11507 PR bootstrap/48135
11508 * doc/install.texi (Prerequisites): Move Perl to build
11509 requirements. Always necessary on Solaris 2 with Sun ld.
11510
11511 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11512
11513 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11514 binutils 2.21.
11515 (Specific, i?86-*-solaris2.[89]): Likewise.
11516 (Specific, i?86-*-solaris2.10): Likewise.
11517 (Specific, mips-sgi-irix6): Likewise.
11518 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11519 Update for binutils 2.21.
11520
11521 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11522
11523 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11524 Allow -fuse-linker-plugin for non-default plugin linker.
11525 * configure: Regenerate.
11526
11527 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11528
11529 PR bootstrap/48167
11530 * gengtype.c (files_rules): Added rule for cp/parser.h.
11531
11532 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11533
11534 PR target/48213
11535 * config/s390/s390.c (s390_delegitimize_address): Don't call
11536 lowpart_subreg if orig_x has BLKmode.
11537
11538 2011-03-21 Kai Tietz <ktietz@redhat.com>
11539
11540 PR target/12171
11541 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11542 * tree.h (attribute_spec): Add new member affects_type_identity.
11543 * attribs.c (empty_attribute_table): Adjust attribute_spec
11544 initializers.
11545 * config/alpha/alpha.c: Likewise.
11546 * config/arc/arc.c: Likewise.
11547 * config/arm/arm.c: Likewise.
11548 * config/avr/avr.c: Likewise.
11549 * config/bfin/bfin.c: Likewise.
11550 * config/crx/crx.c: Likewise.
11551 * config/darwin.h: Likewise.
11552 * config/h8300/h8300.c: Likewise.
11553 * config/i386/cygming.h: Likewise.
11554 * config/i386/i386.c: Likewise.
11555 * config/ia64/ia64.c: Likewise.
11556 * config/m32c/m32c.c: Likewise.
11557 * config/m32r/m32r.c: Likewise.
11558 * config/m68hc11/m68hc11.c: Likewise.
11559 * config/m68k/m68k.c: Likewise.
11560 * config/mcore/mcore.c: Likewise.
11561 * config/mep/mep.c: Likewise.
11562 * config/microblaze/microblaze.c: Likewise.
11563 * config/mips/mips.c: Likewise.
11564 * config/rs6000/rs6000.c: Likewise.
11565 * config/rx/rx.c: Likewise.
11566 * config/sh/sh.c: Likewise.
11567 * config/sol2.h: Likewise.
11568 * config/sparc/sparc.c: Likewise.
11569 * config/spu/spu.c: Likewise.
11570 * config/stormy16/stormy16.c: Likewise.
11571 * config/v850/v850.c: Likewise.
11572
11573 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11574
11575 * simplify-rtx.c (simplify_binary_operation_1): Handle
11576 (xor (and A B) C) case when B and C are both constants.
11577
11578 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11579
11580 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11581
11582 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11583
11584 PR bootstrap/48168
11585 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11586
11587 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11588
11589 PR rtl-optimization/48156
11590 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11591 assume df and df_lr are not NULL.
11592
11593 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11594
11595 PR debug/48023
11596 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11597 between a call and its CALL_ARG_LOCATION note.
11598
11599 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11600
11601 PR debug/48178
11602 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11603 between a call and its corresponding CALL_ARG_LOCATION note.
11604
11605 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11606
11607 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11608 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11609 * haifa-sched.c (setup_ref_regs): Ditto.
11610 * caller-save.c (add_used_regs_1): Ditto.
11611 * dse.c (look_for_hardregs): Ditto.
11612 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11613 * sched-rgn.c (check_live_1): Ditto.
11614
11615 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11616
11617 * c-decl.c (diagnose_mismatched_decls): Give an error for
11618 redefining a typedef with variably modified type.
11619
11620 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11621
11622 * c-decl.c (grokfield): Don't allow typedefs for structures or
11623 unions with no tag by default.
11624 * doc/extend.texi (Unnamed Fields): Update.
11625
11626 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11627
11628 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11629 Rewrite using indirect functions.
11630 (lwp_slwpcb): Ditto.
11631 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11632 (avx_vinsertf128<mode>): Ditto.
11633
11634 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11635
11636 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11637 unspecs.
11638
11639 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11640
11641 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11642 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11643
11644 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11645
11646 PR rtl-optimization/48170
11647 * gcse.c (hoist_code): Remove bogus asserts.
11648
11649 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11650
11651 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11652 computation for prologue/epilogue.
11653
11654 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11655
11656 * Makefile.in (check-consistency): Remove.
11657
11658 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11659
11660 PR debug/48176
11661 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11662 arange_table_in_use is 0, but either text_section_used or
11663 cold_text_section_used is true. Don't call it if
11664 !info_section_emitted.
11665
11666 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11667
11668 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11669 FUNCTION_VALUE_REGNO_P): Remove.
11670 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11671 Remove.
11672 * config/avr/avr.c (avr_ret_register): Make static inline.
11673 (avr_function_value_regno_p): New function.
11674 (avr_libcall_value): Make static. Add 'func' argument.
11675 (avr_function_value): Make static. Rename 'func' argument to
11676 'fn_decl_or_type', forward it to avr_libcall_value. Call
11677 avr_ret_register function instead of RET_REGISTER macro.
11678 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11679
11680 2011-03-18 Jason Merrill <jason@redhat.com>
11681
11682 PR c++/23372
11683 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11684
11685 2011-03-18 Richard Guenther <rguenther@suse.de>
11686
11687 * doc/install.texi (--enable-gold): Remove.
11688 (--with-plugin-ld): Document.
11689 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11690
11691 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11692
11693 PR middle-end/47790
11694 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11695 again after expansion changes.
11696
11697 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11698
11699 * combine.c (try_combine): Do simplification only call of
11700 subst() on i2 even when i1 is present. Update comments.
11701
11702 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11703
11704 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11705 and UNSPEC_PCREL_SYMOFF.
11706
11707 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11708
11709 * config/s390/s390.md: Use define_c_enum for the unspec constant
11710 definitions.
11711
11712 2011-03-18 Richard Henderson <rth@redhat.com>
11713 Jakub Jelinek <jakub@redhat.com>
11714
11715 PR bootstrap/48161
11716 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11717 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11718
11719 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11720
11721 PR middle-end/47725
11722 * combine.c (cant_combine_insn_p): Don't check zero/sign
11723 extended hard registers.
11724
11725 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11726
11727 PR middle-end/47725
11728 * combine.c (cant_combine_insn_p): Check zero/sign extended
11729 hard registers.
11730
11731 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11732
11733 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11734 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11735 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11736 Change return type to bool.
11737 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11738
11739 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11740
11741 PR debug/48163
11742 * var-tracking.c (prepare_call_arguments): If CALL target
11743 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11744 pc instead of looking it up using cselib_lookup and use
11745 Pmode for it if x has VOIDmode.
11746 * dwarf2out.c (gen_subprogram_die): If also both first and
11747 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11748
11749 PR debug/48163
11750 * function.c (assign_parms): For data.passed_pointer parms
11751 use MEM of data.entry_parm instead of data.entry_parm itself
11752 as DECL_INCOMING_RTL.
11753 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11754 also when passed and declared mode is the same, DECL_RTL
11755 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11756 a MEM too.
11757
11758 2011-03-16 Jeff Law <law@redhat.com>
11759
11760 PR rtl-optimization/37273
11761 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11762 handle them like argument loads from stack slots. Do not double
11763 count memory for memory constants and argument loads from stack slots.
11764
11765 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11766
11767 PR debug/48160
11768 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11769
11770 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11771
11772 PR target/48171
11773 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11774
11775 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11776
11777 PR bootstrap/48153
11778 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11779 if dwarf_strict.
11780 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11781 Clear call_arg_locations and call_arg_loc_last always.
11782
11783 PR middle-end/48152
11784 * var-tracking.c (prepare_call_arguments): If argument needs to be
11785 passed by reference, adjust argtype and mode.
11786
11787 2011-03-17 Richard Guenther <rguenther@suse.de>
11788
11789 PR middle-end/48134
11790 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11791 a value make sure to fold the statement.
11792
11793 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11794
11795 PR target/43872
11796 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11797 return condition with !cfun->calls_alloca.
11798
11799 2011-03-17 Richard Guenther <rguenther@suse.de>
11800
11801 PR bootstrap/48148
11802 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11803 origin for decls in other ltrans units.
11804 (input_varpool_node): Likewise.
11805
11806 2011-03-17 Richard Guenther <rguenther@suse.de>
11807
11808 PR middle-end/48165
11809 * tree-object-size.c (compute_object_offset): Properly return
11810 the offset operand of MEM_REFs as sizetype.
11811
11812 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11813
11814 PR rtl-optimization/48141
11815 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11816 * dse.c: Include params.h.
11817 (active_local_stores_len): New variable.
11818 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11819 to NULL.
11820 (record_store, check_mem_read_rtx): Decrease it when removing
11821 from the chain.
11822 (scan_insn): Likewise. Increase it when adding to chain, if it
11823 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11824 set active_local_stores to NULL before the addition.
11825 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11826
11827 PR rtl-optimization/48141
11828 * dse.c (record_store): If no positions are needed in an insn
11829 that cannot be deleted, at least unchain it from active_local_stores.
11830
11831 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11832
11833 PR debug/47510
11834 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11835 (lookup_type_die_strip_naming_typedef): ... here.
11836 (get_context_die): Use it.
11837 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11838 the anonymous struct named by the naming typedef.
11839
11840 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11841
11842 PR target/48154
11843 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11844 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11845
11846 2011-03-16 Jeff Law <law@redhat.com>
11847
11848 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11849 check for operands of conditional. Allow type to be a pointer.
11850
11851 2011-03-16 Richard Guenther <rguenther@suse.de>
11852
11853 PR tree-optimization/48149
11854 * fold-const.c (fold_binary_loc): Fold
11855 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11856
11857 2011-03-16 Richard Guenther <rguenther@suse.de>
11858
11859 PR tree-optimization/26134
11860 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11861 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11862 (non_rewritable_mem_ref_base): Handle complex type component
11863 accesses, constrain offsets for vector and complex extracts
11864 more properly.
11865
11866 2011-03-16 Richard Guenther <rguenther@suse.de>
11867
11868 PR tree-optimization/48146
11869 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11870 operands avoiding the need for renaming.
11871
11872 2011-03-16 Richard Guenther <rguenther@suse.de>
11873
11874 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11875 constant folding. Move MEM_REF canonicalization first.
11876 Rely on fold_const_aggregate_ref for initializer folding.
11877 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11878
11879 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11880
11881 PR middle-end/48136
11882 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11883 arg0/arg1 or their arguments are always fold converted to matching
11884 types.
11885
11886 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11887 to nargs.
11888
11889 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11890
11891 PR lto/46944
11892 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11893 Handle in-tree gold.
11894 (ld_vers): Extract binutils version for gold.
11895 (gcc_cv_ld_hidden): Handle gold here.
11896 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11897 * configure: Regenerate.
11898 * config.in: Regenerate.
11899 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11900 -fuse-linker-plugin otherwise.
11901 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11902 (LINK_COMMAND_SPEC): Use it.
11903 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11904
11905 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11906
11907 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11908 * calls.c: Remove debug.h include.
11909 (emit_call_1): Don't call virtual_call_token debug hook.
11910 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11911 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11912 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11913 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11914 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11915 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11916 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11917 dwarf2out_virtual_call): Remove.
11918 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11919 copy_call_info and virtual_call hooks.
11920 (dwarf2out_init): Don't initialize vcall_insn_table,
11921 debug_dcall_section and debug_vcall_section.
11922 (prune_unused_types): Don't mark nodes from dcall_table.
11923 (dwarf2out_finish): Don't output dcall or vcall tables.
11924 * final.c (final_scan_insn): Don't call direct_call or
11925 virtual_call debug hooks.
11926 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11927 virtual_call_token, copy_call_info and virtual_call hooks.
11928 (debug_nothing_uid): Remove prototype.
11929 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11930 copy_call_info and virtual_call hooks.
11931 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11932 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11933 * debug.c (do_nothing_debug_hooks): Likewise.
11934 (debug_nothing_uid): Remove.
11935 * doc/invoke.texi (-fenable-icf-debug): Remove.
11936 * common.opt (-fenable-icf-debug): Likewise.
11937
11938 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11939 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11940 call's MEM. Handle functions returning aggregate through a hidden
11941 first pointer. For virtual calls add clobbered pc to call arguments
11942 chain.
11943 * dwarf2out.c (gen_subprogram_die): Emit
11944 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11945 can't be emitted.
11946
11947 PR debug/45882
11948 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11949 * rtl.h (ENTRY_VALUE_EXP): Define.
11950 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11951 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11952 * print-rtl.c (print_rtx): Likewise.
11953 * gengtype.c (adjust_field_rtx_def): Likewise.
11954 * var-tracking.c (vt_add_function_parameter): Adjust
11955 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11956 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11957 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11958 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11959 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11960
11961 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11962 Call var_location debug hook even on CALL_INSNs.
11963 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11964 * rtl.def (ENTRY_VALUE): New.
11965 * dwarf2out.c: Include cfglayout.h.
11966 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11967 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11968 (struct call_arg_loc_node): New type.
11969 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11970 tail_call_site_count): New variables.
11971 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11972 DW_TAG_GNU_call_site_parameter.
11973 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11974 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11975 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11976 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11977 and DW_AT_GNU_all_source_call_sites.
11978 (mem_loc_descriptor): Handle ENTRY_VALUE.
11979 (add_src_coords_attributes): Don't add enything if
11980 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11981 (dwarf2out_abstract_function): Save and clear call_arg_location,
11982 call_site_count and tail_call_site_count around dwarf2out_decl call.
11983 (gen_call_site_die): New function.
11984 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11985 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11986 (dwarf2out_function_decl): Clear call_arg_locations,
11987 call_arg_loc_last, set call_site_count and tail_call_site_count
11988 to -1 and free block_map.
11989 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11990 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11991 followed by any real instructions.
11992 (dwarf2out_begin_function): Set call_site_count and
11993 tail_call_site_count to 0.
11994 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11995 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11996 attempt to force a DIE for it and worst case remove the attribute.
11997 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11998 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11999 the decl itself.
12000 * var-tracking.c: Include tm_p.h.
12001 (vt_stack_adjustments): For calls call note_register_arguments.
12002 (argument_reg_set): New variable.
12003 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12004 ensure the VALUE is resolved.
12005 (call_arguments): New variable.
12006 (prepare_call_arguments): New function.
12007 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12008 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12009 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12010 always use the best expression.
12011 (vt_expand_loc): Add ignore_cur_loc argument.
12012 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12013 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12014 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12015 note for all calls.
12016 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12017 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12018 argument. Don't call cselib_preserve_only_values and
12019 cselib_reset_table.
12020 (note_register_arguments): New function.
12021 (vt_initialize): Compute argument_reg_set. Call
12022 vt_add_function_parameters before processing basic blocks instead of
12023 afterwards. For calls call prepare_call_arguments before calling
12024 cselib_process_insn.
12025 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12026 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12027 (var-tracking.o): Depend on $(TM_P_H).
12028 * cfglayout.h (insn_scope): New prototype.
12029 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12030 * cfglayout.c (insn_scope): No longer static.
12031 * insn-notes.def (CALL_ARG_LOCATION): New.
12032 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12033 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12034 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12035 nothing for DECL_EXTERNAL BLOCK_VARS.
12036
12037 2011-03-16 Alan Modra <amodra@gmail.com>
12038
12039 PR target/45844
12040 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12041 create invalid offset address for vsx splat insn.
12042 * config/rs6000/predicates.md (splat_input_operand): New.
12043 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12044
12045 2011-03-15 Xinliang David Li <davidxl@google.com>
12046
12047 PR c/47837
12048 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12049 (normalize_preds): New function.
12050 (is_use_properly_guarded): Normalize def predicates.
12051
12052 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12053
12054 PR target/46788
12055 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12056 in the output template.
12057
12058 2011-03-15 Richard Guenther <rguenther@suse.de>
12059
12060 PR middle-end/47650
12061 * tree-pretty-print.c (dump_function_declaration): Properly
12062 dump unprototyped and varargs function types.
12063
12064 2011-03-15 Richard Guenther <rguenther@suse.de>
12065
12066 PR tree-optimization/13954
12067 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12068 and friends.
12069
12070 2011-03-15 Richard Guenther <rguenther@suse.de>
12071
12072 PR tree-optimization/48037
12073 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12074 selects into BIT_FIELD_REFs.
12075 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12076 vector select.
12077
12078 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12079
12080 PR tree-optimization/48129
12081 * builtins.c (fold_builtin_snprintf): Convert to type of
12082 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12083 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12084
12085 2011-03-15 Richard Guenther <rguenther@suse.de>
12086
12087 PR tree-optimization/41490
12088 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12089 value but with VUSE.
12090 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12091 return statements.
12092 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12093 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12094 * tree-tailcall.c (find_tail_calls): Ignore returns.
12095
12096 2011-03-15 Richard Guenther <rguenther@suse.de>
12097
12098 PR middle-end/48031
12099 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12100 or variable-indexed array accesses when in gimple form.
12101
12102 2011-03-15 Richard Guenther <rguenther@suse.de>
12103
12104 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12105
12106 2011-03-15 Alan Modra <amodra@gmail.com>
12107
12108 PR target/48032
12109 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12110 presume symbol_refs without a symbol_ref_decl are suitably
12111 aligned, nor other trees we may see here. Handle anchor symbols.
12112 (legitimate_constant_pool_address_p): Comment. Add mode param.
12113 Check cmodel=medium addresses. Adjust all calls.
12114 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12115 creating cmodel=medium optimized access to locals.
12116 * config/rs6000/constraints.md (R): Pass QImode to
12117 legitimate_constant_pool_address_p.
12118 * config/rs6000/predicates.md (input_operand): Pass mode to
12119 legitimate_constant_pool_address_p.
12120 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12121 Update prototype.
12122
12123 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12124
12125 PR target/48053
12126 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12127 64-bit constants being loaded into registers other than GPRs such
12128 as loading 0 into a VSX register.
12129
12130 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12131
12132 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12133
12134 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12135
12136 PR middle-end/47917
12137 * builtins.c (fold_builtin_snprintf): New function.
12138 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12139 (fold_builtin_4): Likewise.
12140
12141 PR middle-end/38878
12142 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12143 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12144 and C - X == X also strip nops from +/-/p+ operand.
12145 When optimizing -X == C, fold C to arg0's type.
12146
12147 PR debug/47946
12148 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12149 emit it as add_AT_int instead of add_AT_unsigned.
12150
12151 2011-03-14 Tom Tromey <tromey@redhat.com>
12152
12153 * unwind-dw2.c: Include sys/sdt.h if it exists.
12154 (_Unwind_DebugHook): Use STAP_PROBE2.
12155 * config.in, configure: Rebuild.
12156 * configure.ac: Check for sys/sdt.h.
12157
12158 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12159
12160 * config/i386/i386.md (ROUND_FLOOR): New constant.
12161 (ROUND_CEIL): Ditto.
12162 (ROUND_TRUNC): Ditto.
12163 (ROUND_MXCSR): Ditto.
12164 (ROUND_NO_EXC): Ditto.
12165 (rint<mode>2): Use new defines instead of numerical constants.
12166 (floor<mode>2): Ditto.
12167 (ceil<mode>2): Ditto.
12168 (btrunc<mode>2): Ditto.
12169 * config/i386/i386-builtin-types.def: Define ROUND function type
12170 aliases.
12171 * config/i386/i386.c (enum ix86_builtins): Add
12172 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12173 (struct builtin_description): Add
12174 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12175 (ix86_expand_sse_round): New static function.
12176 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12177 function types.
12178 (ix86_builtin_vectorized_function): Handle
12179 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12180
12181 2011-03-14 Tom Tromey <tromey@redhat.com>
12182
12183 * c-parser.c (c_parser_asm_string_literal): Clear
12184 warn_overlength_strings.
12185
12186 2011-03-14 Tom Tromey <tromey@redhat.com>
12187
12188 * c-parser.c (disable_extension_diagnostics): Save
12189 warn_overlength_strings.
12190 (restore_extension_diagnostics): Restore warn_overlength_strings.
12191
12192 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12193
12194 * BASE-VER: Change to 4.7.0.
12195
12196 2011-03-14 Richard Guenther <rguenther@suse.de>
12197
12198 PR middle-end/48098
12199 * tree.c (build_vector_from_val): Adjust assert to requirements
12200 and reality.
12201
12202 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12203
12204 PR bootstrap/48102
12205 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12206
12207 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12208
12209 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12210 terms of target_flags_explicit. Adjust copyright year.
12211
12212 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12213 * config/rs6000/t-freebsd: New file. Add override for
12214 LIB2FUNCS_EXTRA.
12215
12216 2011-03-13 Chris Demetriou <cgd@google.com>
12217
12218 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12219 (-fno-diagnostics-show-option): this, to reflect current default.
12220 (-Werror=): Update text about -fno-diagnostics-show-option.
12221
12222 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12223
12224 PR target/48053
12225 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12226 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12227 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12228 mode is not V2DImode or V2DFmode.
12229 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12230 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12231 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12232 registers to 0.
12233 (movdi_internal64): Likewise.
12234
12235 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12236
12237 PR tree-optimization/47127
12238 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12239 parameter.
12240 (set_cloog_options): Same.
12241 (scop_to_clast): Same.
12242 (print_clast_stmt): Do not call cloog_state_malloc and
12243 cloog_state_free.
12244 (print_generated_program): Same.
12245 (gloog): Same.
12246 * graphite-clast-to-gimple.h (cloog_state): Declared.
12247 (scop_to_clast): Adjust declaration.
12248 * graphite.c (cloog_state): Defined here.
12249 (graphite_initialize): Call cloog_state_malloc.
12250 (graphite_finalize): Call cloog_state_free.
12251
12252 2011-03-11 Jason Merrill <jason@redhat.com>
12253
12254 * attribs.c (lookup_attribute_spec): Take const_tree.
12255 * tree.h: Adjust.
12256
12257 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12258
12259 * config/sparc/sparc.c (sparc_option_override): Use
12260 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12261
12262 2011-03-11 Richard Guenther <rguenther@suse.de>
12263
12264 PR tree-optimization/48067
12265 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12266 multiplication result will be only used once on the target
12267 stmt.
12268
12269 2011-03-11 Richard Guenther <rguenther@suse.de>
12270
12271 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12272
12273 2011-03-11 Richard Guenther <rguenther@suse.de>
12274
12275 PR lto/48073
12276 * tree.c (find_decls_types_r): Do not walk types only reachable
12277 from IDENTIFIER_NODEs.
12278
12279 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12280
12281 PR middle-end/48044
12282 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12283 all vnode->force_output nodes as needed.
12284
12285 2011-03-11 Jason Merrill <jason@redhat.com>
12286
12287 PR c++/48069
12288 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12289 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12290
12291 2011-03-11 Martin Jambor <mjambor@suse.cz>
12292
12293 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12294 cgraph_node.
12295
12296 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12297
12298 PR tree-optimization/48063
12299 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12300 inline functions called once if !tree_can_inline_p (node->callers).
12301
12302 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12303
12304 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12305 extra_objs.
12306 * config/score/score3.c: Delete.
12307 * config/score/score3.h: Delete.
12308 * config/score/mul-div.S: Delete.
12309 * config/score/sfp-machine.h: Add new file.
12310 * config/score/constraints.md: Add new file.
12311 * config/score/t-score-softfp: Add new file.
12312 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12313 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12314 (score7_extra_constraint): Delete.
12315 (score7_option_override): Remove unused code.
12316 * config/score/score.c: Remove score3 and score5 define and code.
12317 * config/score/score.h: Remove score3 and score5 define and code.
12318 * config/score/score.md: Remove score3 template and unusual insn.
12319 * config/score/score.opt: Remove score3 and score5 options.
12320
12321 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12322
12323 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12324 when _HPUX_SOURCE is defined.
12325 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12326
12327 2011-03-10 Jason Merrill <jason@redhat.com>
12328
12329 PR c++/48029
12330 * stor-layout.c (layout_type): Don't set structural equality
12331 on arrays of incomplete type.
12332 * tree.c (type_hash_eq): Handle comparing them properly.
12333
12334 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12335
12336 PR debug/48043
12337 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12338 result mode matches original rtl mode.
12339
12340 2011-03-10 Nick Clifton <nickc@redhat.com>
12341
12342 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12343 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12344
12345 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12346
12347 PR rtl-optimization/47866
12348 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12349 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12350 if target wasn't scalar.
12351 * function.c (assign_stack_temp_for_type): Assert that neither
12352 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12353 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12354 macro.
12355 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12356
12357 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12358
12359 * config/s390/s390-protos.h (s390_label_align): New prototype.
12360 * config/s390/s390.c (s390_label_align): New function.
12361 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12362
12363 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12364
12365 PR target/47755
12366 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12367 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12368 (output_vec_const_move): Ditto.
12369
12370 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12371
12372 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12373 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12374 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12375 Change 'rclass' argument and result type to reg_class_t.
12376 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12377
12378 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12379
12380 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12381 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12382 (TARGET_MEMORY_MOVE_COST): Define.
12383 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12384
12385 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12386
12387 PR debug/47881
12388 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12389 removed anything.
12390
12391 PR tree-optimization/48022
12392 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12393 for EQ/NE_EXPR.
12394
12395 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12396
12397 PR debug/47991
12398 * var-tracking.c (find_use_val): Return NULL for
12399 cui->sets && cui->store_p BLKmode MEMs.
12400
12401 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12402
12403 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12404 Remove.
12405 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12406 xstormy16_print_operand_address): Remove.
12407 * config/stormy16/stormy16.c (xstormy16_print_operand,
12408 xstormy16_print_operand_address): Make static.
12409 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12410
12411 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12412
12413 PR target/47862
12414 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12415 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12416 before definition.
12417
12418 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12419
12420 PR bootstrap/48000
12421 * cfgloopmanip.c (fix_bb_placements): Return immediately
12422 if FROM is BASE_LOOP's header.
12423
12424 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12425
12426 * gimplify.c (gimplify_function_tree): Fix building calls
12427 to __builtin_return_address.
12428
12429 2011-03-07 Alan Modra <amodra@gmail.com>
12430
12431 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12432 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12433 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12434 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12435 return_mode args.
12436 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12437 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12438 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12439 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12440 * config/rs6000/rs6000.c
12441 (rs6000_elf_end_indicate_exec_stack): Rename to..
12442 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12443 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12444 (rs6000_file_start): ..here.
12445 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12446 file scope variables.
12447 (call_ABI_of_interest): New function.
12448 (init_cumulative_args): Set above vars when function return value
12449 is a float, vector, or small struct.
12450 (rs6000_function_arg_advance_1): Likewise for function args.
12451 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12452 references float args.
12453
12454 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12455
12456 * doc/cfg.texi: Remove "See" before @ref.
12457 * doc/invoke.texi: Likewise.
12458
12459 2011-03-05 Jason Merrill <jason@redhat.com>
12460
12461 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12462
12463 2011-03-05 Anthony Green <green@moxielogic.com>
12464
12465 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12466
12467 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12468
12469 PR rtl-optimization/47899
12470 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12471 to flow_loop_nested_p when moving the loop upward.
12472
12473 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12474
12475 PR target/47719
12476 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12477
12478 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12479
12480 PR tree-optimization/47967
12481 * ipa-cp.c (build_const_val): Return NULL instead of creating
12482 VIEW_CONVERT_EXPR for mismatching sizes.
12483 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12484 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12485 give up on versioning.
12486
12487 2011-03-05 Alan Modra <amodra@gmail.com>
12488
12489 PR target/47986
12490 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12491 full cmodel medium/large lo_sum + high addresses.
12492
12493 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12494
12495 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12496 pool references in UNSPEC_LTREL_OFFSET.
12497
12498 2011-03-04 Jan Hubicka <jh@suse.cz>
12499
12500 PR lto/47497
12501 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12502 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12503 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12504 Add node pointers.
12505 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12506 cgraph_add_thunk): Add node pointers.
12507 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12508 associated to right node.
12509 (input_node): Update use of cgraph_same_body_alias
12510 and cgraph_add_thunk.
12511
12512 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12513
12514 * config/i386/i386.opt (mprefer-avx128): New flag.
12515 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12516 modes when the flag -mprefer-avx128 is on.
12517
12518 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12519
12520 * dwarf2out.c (compare_loc_operands): Fix address handling.
12521
12522 2011-03-04 Alan Modra <amodra@gmail.com>
12523
12524 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12525
12526 2011-03-04 Richard Guenther <rguenther@suse.de>
12527
12528 PR middle-end/47968
12529 * expmed.c (extract_bit_field_1): Prefer vector modes that
12530 vec_extract patterns can handle.
12531
12532 2011-03-04 Richard Guenther <rguenther@suse.de>
12533
12534 PR middle-end/47975
12535 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12536
12537 2011-03-04 Richard Henderson <rth@redhat.com>
12538
12539 * explow.c (emit_stack_save): Remove 'after' parameter.
12540 (emit_stack_restore): Likewise.
12541 * expr.h: Update to match.
12542 * builtins.c, calls.c, stmt.c: Likewise.
12543 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12544 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12545 * function.c (expand_function_end): Insert the emit_stack_save
12546 sequence before parm_birth_insn instead of after.
12547
12548 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12549
12550 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12551 (ssse3_pmaddubsw128): Ditto.
12552 (ssse3_pmaddubsw): Ditto.
12553
12554 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12555
12556 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12557
12558 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12559
12560 PR c/47963
12561 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12562 on TYPE_SIZE_UNIT if it is a DECL.
12563
12564 PR debug/47283
12565 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12566 first operand is not is_gimple_mem_ref_addr, try to fold it.
12567 If the operand still isn't is_gimple_mem_ref_addr, clear
12568 MEM_EXPR on op0.
12569
12570 2011-03-03 Richard Guenther <rguenther@suse.de>
12571
12572 PR middle-end/47283
12573 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12574 match comment.
12575 (refs_may_alias_p_1): For release branches return true if
12576 we are confused by our input.
12577
12578 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12579
12580 * config/s390/s390.c (s390_function_value): Rename to ...
12581 (s390_function_and_libcall_value): ... this.
12582 (s390_function_value): New function.
12583 (s390_libcall_value): New function.
12584 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12585 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12586 target macro definitions.
12587 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12588
12589 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12590
12591 * config/i386/freebsd64.h (CC1_SPEC): Define.
12592 * config/i386/linux64.h (CC1_SPEC): Define.
12593 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12594
12595 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12596
12597 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12598 Remove.
12599 * config/stormy16/stormy16.c: Include reload.h.
12600 (xstormy16_memory_move_cost): New function.
12601 (TARGET_MEMORY_MOVE_COST): Define.
12602
12603 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12604
12605 PR rtl-optimization/47925
12606 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12607 with side effects. Remove the more-specific check for volatile asms.
12608
12609 2011-03-02 Alan Modra <amodra@gmail.com>
12610
12611 PR target/47935
12612 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12613 toc relative addresses for valid offsets.
12614
12615 2011-03-01 Richard Guenther <rguenther@suse.de>
12616
12617 PR tree-optimization/47890
12618 * tree-vect-loop.c (get_initial_def_for_induction): Set
12619 related stmt properly.
12620
12621 2011-03-01 Richard Guenther <rguenther@suse.de>
12622
12623 PR lto/47924
12624 * lto-streamer.c (lto_record_common_node): Also register
12625 the canonical type.
12626
12627 2011-03-01 Richard Guenther <rguenther@suse.de>
12628
12629 PR lto/46911
12630 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12631 Do not stream DECL_ABSTRACT_ORIGIN.
12632 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12633 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12634 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12635 Do not stream DECL_ABSTRACT_ORIGIN.
12636 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12637 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12638
12639 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12640
12641 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12642 FUNCTION_VALUE_REGNO_P): Remove.
12643 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12644 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12645 Add 'outgoing' argument.
12646 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12647 function.
12648 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12649 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12650
12651 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12652
12653 PR debug/28047
12654 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12655 (lookup_filename): Likewise.
12656 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12657
12658 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12659 Jakub Jelinek <jakub@redhat.com>
12660
12661 PR middle-end/47893
12662 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12663 (assign_stack_local_1): Change last argument type to int.
12664 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12665 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12666 don't record padding space into frame_space_list nor use those areas.
12667 (assign_stack_local): Adjust caller.
12668 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12669 of assign_stack_local, pass 0 as last argument.
12670 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12671 callers.
12672
12673 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12674
12675 PR debug/47283
12676 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12677 Use target address_mode and pointer_mode hooks instead of hardcoded
12678 Pmode and ptr_mode. Handle some simple cases of extending if
12679 POINTERS_EXTEND_UNSIGNED < 0.
12680 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12681 Call convert_debug_memory_address.
12682 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12683 convert_debug_memory_address.
12684
12685 PR middle-end/46790
12686 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12687 * configure: Regenerated.
12688 * config.in: Regenerated.
12689 * varasm.c (default_function_section): Return NULL
12690 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12691
12692 2011-02-28 Martin Jambor <mjambor@suse.cz>
12693
12694 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12695 the description to match the printed values.
12696
12697 2011-02-28 Richard Guenther <rguenther@suse.de>
12698
12699 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12700 of the copied scope tree.
12701
12702 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12703
12704 * doc/extend.texi (Function Attributes): Avoid deeply (and
12705 wrongly) nested tables.
12706
12707 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12708
12709 PR middle-end/47903
12710 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12711 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12712 r isn't op0 nor op1.
12713
12714 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12715
12716 * config/avr/avr.md: Remove magic comment for emacs.
12717
12718 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12719
12720 PR target/45261
12721 * config/avr/avr.c (avr_option_override): Use error on bad options.
12722 (avr_help): New function.
12723 (TARGET_HELP): Define.
12724
12725 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12726
12727 PR target/42240
12728 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12729 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12730
12731 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12732
12733 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12734 (ARM Options): Ditto.
12735 (i386 and x86-64 Options): Ditto.
12736 (RX Options): Ditto.
12737 (SPARC Options): Ditto.
12738
12739 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12740
12741 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12742 FreeBSD 6 and later. Generally use cpu generic.
12743
12744 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12745
12746 * doc/cpp.texi: Update copyright years.
12747
12748 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12749
12750 PR target/46898
12751 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12752
12753 2011-02-25 Jon Beniston <jon@beniston.com>
12754
12755 PR target/46898
12756 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12757 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12758 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12759 (lm32_block_move_inline): Add type cast to remove warning.
12760 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12761 (gen_int_relational): Move declarations to start of function.
12762
12763 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12764
12765 PR tree-optimization/45470
12766 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12767 can throw internally only.
12768 * tree-vect-stmts.c (vectorizable_call): Likewise.
12769
12770 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12771
12772 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12773 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12774 * config/stormy16/stormy16-protos.h
12775 (xstormy16_preferred_reload_class): Remove.
12776 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12777 static. Change 'rclass' argument and return type to reg_class_t.
12778 (TARGET_PREFERRED_RELOAD_CLASS,
12779 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12780
12781 2011-02-24 Richard Guenther <rguenther@suse.de>
12782
12783 * lto-streamer-in.c (input_bb): Do not find referenced vars
12784 in debug statements.
12785
12786 2011-02-23 Jason Merrill <jason@redhat.com>
12787
12788 * common.opt (fabi-version): Document v5 and v6.
12789
12790 2011-02-23 Richard Guenther <rguenther@suse.de>
12791
12792 PR tree-optimization/47849
12793 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12794
12795 2011-02-23 Jie Zhang <jie@codesourcery.com>
12796
12797 * opts-common.c (decode_cmdline_option): Print empty string
12798 argument as "" in decoded->orig_option_with_args_text.
12799 * gcc.c (execute): Print empty string argument as ""
12800 in the verbose output.
12801 (do_spec_1): Keep empty string argument.
12802
12803 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12804
12805 * config.gcc: Declare score-* and crx-* obsolete.
12806
12807 2011-02-23 Jie Zhang <jie@codesourcery.com>
12808
12809 PR rtl-optimization/47763
12810 * web.c (web_main): Ignore naked clobber when replacing register.
12811
12812 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12813
12814 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12815 Remove.
12816
12817 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12818
12819 PR doc/47848
12820 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12821
12822 2011-02-22 Mike Stump <mikestump@comcast.net>
12823
12824 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12825 assembler.
12826 * configure: Regenerate.
12827
12828 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12829
12830 PR rtl-optimization/46002
12831 * ira-color.c (update_copy_costs): Change class intersection
12832 test to reg_class_contents[] test of 'hard_regno'.
12833
12834 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12835
12836 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12837 than Driver option.
12838 * config/hpux11.opt (mt): Likewise.
12839 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12840 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12841 * config/vax/elf.opt (mno-asm-pic): Likewise.
12842 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12843
12844 2011-02-21 Mike Stump <mikestump@comcast.net>
12845
12846 PR target/47822
12847 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12848 tree so we can get save the type.
12849 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12850 for CFString instead of trying to use past the end of the builtins.
12851 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12852 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12853 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12854 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12855 Rename to darwin_builtin_cfstring.
12856 (darwin_init_cfstring_builtins): Return the built type.
12857
12858 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12859
12860 PR target/47840
12861 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12862 (_mm256_insert_epi64): Use _mm_insert_epi64.
12863
12864 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12865
12866 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12867 * config/stormy16/stormy16-protos.h
12868 (xstormy16_mode_dependent_address_p): Remove.
12869 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12870 Make static. Change return type to bool. Change argument type to
12871 const_rtx. Remove dead code.
12872 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12873
12874 2011-02-21 Richard Guenther <rguenther@suse.de>
12875
12876 PR lto/47820
12877 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12878 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12879 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12880 TUs context.
12881 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12882 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12883
12884 2011-02-20 Richard Guenther <rguenther@suse.de>
12885
12886 PR lto/47822
12887 * tree.c (free_lang_data_in_decl): Clean builtins from
12888 the TU decl BLOCK_VARS.
12889
12890 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12891
12892 PR debug/47620
12893 PR debug/47630
12894 * haifa-sched.c (fix_tick_ready): Skip tick computation
12895 for debug insns.
12896
12897 2011-02-19 Richard Guenther <rguenther@suse.de>
12898
12899 PR lto/47647
12900 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12901 Remove lazy BLOCK_VARS streaming.
12902 (lto_input_ts_block_tree_pointers): Likewise.
12903 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12904
12905 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12906
12907 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12908
12909 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12910
12911 * config/i386/biarch32.h, config/i386/mach.h,
12912 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12913
12914 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12915
12916 PR target/47800
12917 * config/i386/i386.md (peephole2 for shift and plus): Use
12918 operands[1] original mode in the first insn.
12919
12920 2011-02-18 Mike Stump <mikestump@comcast.net>
12921
12922 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12923
12924 2011-02-18 Jan Hubicka <jh@suse.cz>
12925
12926 PR middle-end/47788
12927 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12928 to zero when the function is not inlinable at all.
12929
12930 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12931
12932 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12933 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12934 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12935 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12936 * config/pa/t-pa64: Likewise.
12937 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12938
12939 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12940
12941 PR driver/47787
12942 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12943
12944 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12945
12946 PR target/47792
12947 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12948
12949 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12950
12951 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12952 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12953 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12954 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12955 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12956 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12957 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12958 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12959 m32r_legitimate_address_p): New functions.
12960 * config/m32r/constraints.md (constraint "S"): Don't use
12961 STORE_PREINC_PREDEC_P.
12962 (constraint "U"): Don't use LOAD_POSTINC_P.
12963
12964 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12965
12966 PR rtl-optimization/46178
12967 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12968 compute ira_hard_regno_cover_class[].
12969
12970 2011-02-18 Richard Guenther <rguenther@suse.de>
12971
12972 PR lto/47798
12973 * lto-streamer.h (lto_global_var_decls): Declare.
12974 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12975 statics for global var processing.
12976
12977 2011-02-18 Richard Guenther <rguenther@suse.de>
12978
12979 PR tree-optimization/47737
12980 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12981 edge dominance check.
12982
12983 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12984
12985 PR debug/47780
12986 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12987 avoid invalid rtx sharing.
12988
12989 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12990
12991 * doc/cpp.texi (Obsolete Features): Add background on the
12992 origin of assertions.
12993
12994 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12995
12996 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12997 objc_abi == 2.
12998 * config/darwin.c (output_objc_section_asm_op): Added support for
12999 ABI v1 and v2.
13000 (is_objc_metadata): New.
13001 (darwin_objc2_section): New.
13002 (darwin_objc1_section): New.
13003 (machopic_select_section): Added support for ABI v1 and v2.
13004 (darwin_emit_objc_zeroed): New.
13005 (darwin_output_aligned_bss): Detect objc metadata and treat it
13006 appropriately.
13007 (darwin_asm_output_aligned_decl_common): Same.
13008 (darwin_asm_output_aligned_decl_local): Same.
13009 * config/darwin-sections.def: Updated for ABI v1 and v2.
13010 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13011 compiling Objective-C code for the NeXT runtime, default to using
13012 ABI version 0 for 32-bit, and version 2 for 64-bit.
13013
13014 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13015
13016 * common.opt (optimize_fast): New Variable.
13017 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13018 instead of local variable ofast.
13019
13020 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13021
13022 * doc/invoke.texi (fobjc-abi-version): Documented.
13023 (fobjc-nilcheck): Documented.
13024 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13025 version.
13026
13027 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13028
13029 PR driver/47390
13030 * common.opt (export-dynamic): New Driver option.
13031 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13032
13033 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13034
13035 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13036
13037 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13038 Jan Hubicka <jh@suse.cz>
13039
13040 PR debug/47106
13041 PR debug/47402
13042 * cfgexpand.c (account_used_vars_for_block): Remove.
13043 (estimated_stack_frame_size): Use referenced vars.
13044 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13045 that were referenced in the original function. Test src_fn
13046 rather than cfun. Drop redundant get_var_ann.
13047 (setup_one_parameter): Drop redundant get_var_ann.
13048 (declare_return_variable): Likewise.
13049 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13050 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13051 * ipa-inline.c (compute_inline_parameters): Do not compute
13052 disregard_inline_limits here.
13053 (compute_inlinable_for_current, pass_inlinable): New.
13054 (pass_inline_parameters): Require PROP_referenced_vars.
13055 * cgraphunit.c (cgraph_process_new_functions): Don't run
13056 compute_inline_parameters explicitly unless function is in SSA form.
13057 (cgraph_analyze_function): Set .disregard_inline_limits.
13058 * tree-sra.c (convert_callers): Compute inliner parameters
13059 only for functions already in SSA form.
13060
13061 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13062
13063 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13064 -mlittle-endian-data.
13065
13066 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13067
13068 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13069 -mno-fpu, not -fpu and -no-fpu.
13070 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13071 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13072
13073 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13074
13075 PR target/43653
13076 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13077 input reload with PLUS RTX.
13078
13079 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13080
13081 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13082 of InverseVar(MDMX).
13083
13084 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13085
13086 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13087 --m4-340.
13088
13089 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13090
13091 * config/mn10300/mn10300.opt (mno-crt0): New.
13092
13093 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13094
13095 * config/m68k/uclinux.opt (static-libc): New Driver option.
13096
13097 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13098
13099 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13100
13101 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13102
13103 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13104 %{muser-extend-enabled}.
13105
13106 2011-02-16 Richard Guenther <rguenther@suse.de>
13107
13108 PR tree-optimization/47738
13109 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13110 the TODO from tree_predictive_commoning.
13111
13112 2011-02-15 Jeff Law <law@redhat.com>
13113
13114 Revert
13115 2011-01-25 Jeff Law <law@redhat.com>
13116
13117 PR rtl-optimization/37273
13118 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13119 handle them like argument loads from stack slots. Do not double
13120 count memory for memory constants and argument loads from stack slots.
13121
13122 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13123
13124 PR middle-end/47725
13125 * combine.c (cant_combine_insn_p): Revert the last change.
13126
13127 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13128
13129 PR target/47755
13130 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13131 mode for vector constants. Remove code that checks for TImode.
13132
13133 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13134
13135 PR debug/47106
13136 PR debug/47402
13137 * cgraph.h (compute_inline_parameters): Return void.
13138 * ipa-inline.c (compute_inline_parameters): Adjust.
13139
13140 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13141
13142 PR debug/47106
13143 PR debug/47402
13144 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13145 rather than decl.
13146 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13147 * ipa-inline.c (compute_inline_parameters): Adjust.
13148
13149 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13150
13151 PR debug/47106
13152 PR debug/47402
13153 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13154 Adjust all users. Pass FN to...
13155 * tree-flow-inline.h (first_referenced_var): ... this. Add
13156 fn argument.
13157 * ipa-struct-reorg.c: Adjust.
13158 * tree-dfa.c: Adjust.
13159 * tree-into-ssa.c: Adjust.
13160 * tree-sra.c: Adjust.
13161 * tree-ssa-alias.c: Adjust.
13162 * tree-ssa-live.c: Adjust.
13163 * tree-ssa.c: Adjust.
13164 * tree-ssanames.c: Adjust.
13165 * tree-tailcall.c: Adjust.
13166
13167 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13168
13169 PR debug/47106
13170 PR debug/47402
13171 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13172 Adjust all callers.
13173 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13174 * tree-flow-inline.h: Adjust.
13175 * gimple-pretty-print.c: Adjust.
13176 * tree-into-ssa.c: Adjust.
13177 * tree-ssa.c: Adjust.
13178 * cfgexpand.c: Adjust.
13179
13180 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13181
13182 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13183 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13184 (EXTRA_CONSTRAINT): Delete.
13185 * config/iq2000/constraints.md: New file.
13186 * config/iq2000/iq2000.md: Include it.
13187 (define_insn ""): Delete.
13188 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13189 unsupported constraint letters from patterns.
13190 (call_value, call_value_internal1): Likewise.
13191 (call_value_multiple_internal1): Likewise.
13192
13193 2011-02-15 Nick Clifton <nickc@redhat.com>
13194
13195 * config/mn10300/mn10300.c: Include tm-constrs.h.
13196 (struct liw_data): New data structure describing an LIW candidate
13197 instruction.
13198 (extract_bundle): Use struct liw_data. Allow small integer
13199 operands for some instructions.
13200 (check_liw_constraints): Use struct liw_data. Remove swapped
13201 parameter. Add comments describing the checks. Fix bug when
13202 assigning the source of liw1 to the source of liw2.
13203 (liw_candidate): Delete. Code moved into extract_bundle.
13204 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13205 before swapping.
13206 * config/mn10300/predicates.md (liw_operand): New predicate.
13207 Allows registers and small integer constants.
13208 * config/mn10300/constraints.md (O): New constraint. Accetps
13209 integers in the range -8 to +7 inclusive.
13210 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13211 for moving a small integer into a register. Give this alternative
13212 LIW attributes.
13213 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13214 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13215 using the J,K,L and M constraints,
13216 (liw): Remove SI mode on second operands to allow for HI and QI
13217 mode values.
13218 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13219 instruction.
13220
13221 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13222
13223 PR middle-end/47725
13224 * combine.c (cant_combine_insn_p): Check zero/sign extended
13225 hard registers.
13226
13227 2011-02-15 Richard Guenther <rguenther@suse.de>
13228
13229 PR tree-optimization/47743
13230 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13231 for a non-type-compatible VN lookup bail out.
13232
13233 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13234
13235 * config/fr30/constraints.md: New file.
13236 * config/fr30/fr30.md: Include it.
13237 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13238 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13239 (EXTRA_CONSTRAINT): Delete.
13240
13241 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13242
13243 * config/frv/constraints.md: New file.
13244 * config/frv/predicates.md: Include it.
13245 * config/frv/frv.c (reg_class_from_letter): Delete.
13246 (frv_option_override): Don't initialize it.
13247 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13248 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13249 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13250 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13251 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13252 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13253 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13254 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13255 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13256 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13257 (REG_CLASS_FROM_CONSTRAINT): Delete.
13258
13259 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13260
13261 PR middle-end/47581
13262 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13263 if frame size is 0 in a leaf function.
13264
13265 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13266
13267 PR pch/14940
13268 * config/alpha/host-osf.c: New file.
13269 * config/alpha/x-osf: New file.
13270 * config.host (alpha*-dec-osf*): Use it.
13271
13272 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13273
13274 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13275 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13276 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13277 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13278 type to const_rtx.
13279 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13280
13281 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13282
13283 * config/stormy16/constraints.md: New file.
13284 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13285 Use satisfies_constraint_Q and satisfies_constraint_R.
13286 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13287 Delete.
13288 (xstormy16_legitiamte_address_p): Declare.
13289 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13290 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13291 (EXTRA_CONSTRAINT): Delete.
13292 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13293 Un-staticize.
13294 (xstormy16_extra_constraint_p): Delete.
13295
13296 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13297
13298 PR tree-optimization/46494
13299 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13300 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13301 (pass_rtl_loop_done): Add TODO_verify_flow.
13302 * fwprop.c (pass_rtl_fwprop): Likewise.
13303 * modulo-sched.c (pass_sms): Likewise.
13304 * tree-ssa-dom.c (pass_dominator): Likewise.
13305 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13306 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13307 (pass_tree_loop_done): Likewise.
13308 * tree-ssa-pre.c (execute_pre): Likewise.
13309 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13310 * tree-ssa-sink.c (pass_sink_code): Likewise.
13311 * tree-vrp.c (pass_vrp): Likewise.
13312
13313 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13314
13315 * config/v850/constraints.md: New file.
13316 * config/v850/v850.md: Include it.
13317 * config/v850/predicates.md (reg_or_0_operand): Use
13318 satisfies_constraint_G.
13319 (special_symbolref_operand): Use satisfies_constraint_K.
13320 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13321 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13322 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13323 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13324 (EXTRA_CONSTRAINT): Delete.
13325 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13326 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13327 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13328
13329 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13330
13331 PR target/47696
13332 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13333 description.
13334
13335 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13336
13337 * config/mcore/constraints.md: New file.
13338 * config/mcore/mcore.md: Include it.
13339 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13340 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13341 (REG_CLASS_FROM_LETTER): Delete.
13342 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13343 insn_const_int_ok_for_constraint.
13344 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13345 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13346 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13347 (EXTRA_CONSTRAINT): Delete.
13348
13349 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13350
13351 PR ada/41929
13352 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13353 (IS_SIGHANDLER): Define.
13354 (sparc64_is_sighandler): New function, split off from
13355 sparc64_fallback_frame_state.
13356 (sparc_is_sighandler): New function, split off from
13357 sparc_fallback_frame_state.
13358 (sparc64_fallback_frame_state): Merge with ...
13359 (sparc_fallback_frame_state): ... this into ...
13360 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13361 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13362 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13363 stack instead of hardcoded offsets.
13364
13365 2011-02-14 Andriy Gapon <avg@freebsd.org>
13366
13367 PR target/45808
13368 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13369
13370 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13371
13372 * configure: Regenerate.
13373
13374 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13375
13376 PR driver/45731
13377 * gcc.c (asm_options): Correct spec matching --target-help.
13378
13379 2011-02-12 Martin Jambor <mjambor@suse.cz>
13380
13381 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13382 to gimple call error.
13383
13384 2011-02-12 Mike Stump <mikestump@comcast.net>
13385
13386 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13387 comments in backslash regions.
13388
13389 2011-02-12 Mike Stump <mikestump@comcast.net>
13390 Jakub Jelinek <jakub@redhat.com>
13391 Iain Sandoe <iains@gcc.gnu.org>
13392
13393 PR target/47324
13394 * dwarf2out.c (output_cfa_loc): When required, apply the
13395 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13396 (output_loc_sequence): Likewise.
13397 (output_loc_operands_raw): Likewise.
13398 (output_loc_sequence_raw): Likewise.
13399 (output_cfa_loc): Likewise.
13400 (output_loc_list): Suppress register number adjustment when
13401 calling output_loc_sequence()
13402 (output_die): Likewise.
13403
13404 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13405
13406 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13407 Remove macros.
13408 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13409 xtensa_memory_move_cost): New functions.
13410 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13411
13412 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13413
13414 PR lto/47225
13415 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13416 in the current directory.
13417 * configure: Rebuilt.
13418
13419 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13420
13421 * config/darwin.c (darwin_override_options): Add a hunk missed
13422 from the commit of r168571. Trim comment line lengths and
13423 correct indents of the preceding block.
13424
13425 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13426
13427 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13428 the switch.
13429
13430 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13431
13432 * common.opt (nostartfiles): New Driver option.
13433
13434 2011-02-11 Xinliang David Li <davidxl@google.com>
13435
13436 PR tree-optimization/47707
13437 * tree-chrec.c (convert_affine_scev): Keep type precision.
13438
13439 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13440
13441 PR tree-optimization/47420
13442 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13443
13444 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13445
13446 PR rtl-optimization/47614
13447 * rtl.h (check_for_inc_dec): Declare.
13448 * dse.c (check_for_inc_dec): Externalize...
13449 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13450 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13451
13452 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13453
13454 PR driver/47678
13455 * gcc.c (main): Do not compile inputs if there were errors in
13456 option handling.
13457 * opts-common.c (read_cmdline_option): Check for wrong language
13458 after other error checks.
13459
13460 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13461
13462 * cgraph.c: Fix comment typos.
13463 * cgraph.h: Likewise.
13464 * cgraphunit.c: Likewise.
13465 * ipa-cp.c: Likewise.
13466 * ipa-inline.c: Likewise.
13467 * ipa-prop.c: Likewise.
13468 * ipa-pure-const.c: Likewise.
13469 * ipa-ref.c: Likewise.
13470 * ipa-reference.c: Likewise.
13471
13472 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13473
13474 PR debug/47684
13475 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13476
13477 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13478
13479 PR testsuite/47400
13480 * doc/sourcebuild.texi (Require Support): Document
13481 dg-require-ascii-locale.
13482
13483 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13484
13485 * doc/lto.texi (Write summary): Fix missing parentheses.
13486
13487 2011-02-10 DJ Delorie <dj@redhat.com>
13488
13489 * config/m32c/m32c.c (m32c_option_override): Disable
13490 -fcombine-stack-adjustments until flag value tracking and compare
13491 optimization can be rewritten.
13492
13493 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13494
13495 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13496 PROCESSOR_POWER7.
13497 (PROCESSOR_DEFAULT64): Likewise.
13498
13499 2011-02-10 Richard Henderson <rth@redhat.com>
13500
13501 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13502 change from 2011-02-03.
13503 * config/rx/rx.c (flags_from_code): Likewise.
13504 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13505 is valid, n/pz otherwise.
13506 (rx_select_cc_mode): Return CCmode if Y is not zero.
13507
13508 2011-02-10 Richard Guenther <rguenther@suse.de>
13509
13510 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13511
13512 2011-02-10 Richard Guenther <rguenther@suse.de>
13513
13514 PR tree-optimization/47677
13515 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13516
13517 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13518
13519 PR target/47665
13520 * combine.c (make_compound_operation): Only change shifts into
13521 multiplication for SCALAR_INT_MODE_P.
13522
13523 2011-02-10 Jie Zhang <jie@codesourcery.com>
13524
13525 PR testsuite/47622
13526 Revert
13527 2011-02-05 Jie Zhang <jie@codesourcery.com>
13528 PR debug/42631
13529 * web.c (entry_register): Don't clobber the number of the
13530 first uninitialized reference in used[].
13531
13532 2011-02-09 Richard Guenther <rguenther@suse.de>
13533
13534 PR tree-optimization/47664
13535 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13536 all edges again.
13537
13538 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13539
13540 PR target/46481
13541 PR target/47032
13542 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13543 PROCESSOR_POWER7.
13544 (PROCESSOR_DEFAULT64): Same.
13545 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13546
13547 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13548
13549 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13550
13551 2011-02-09 Martin Jambor <mjambor@suse.cz>
13552
13553 PR middle-end/45505
13554 * tree-sra.c (struct access): New flags grp_scalar_read and
13555 grp_scalar_write. Changed description of assignment read and write
13556 flags.
13557 (dump_access): Dump new flags, reorder all of them.
13558 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13559 to detect multiple scalar reads.
13560 (analyze_access_subtree): Use the new scalar read write flags instead
13561 of the old flags. Adjusted comments.
13562
13563 2011-02-08 DJ Delorie <dj@redhat.com>
13564
13565 PR target/47548
13566 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13567 patterns.
13568
13569 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13570
13571 * config/m68k/uclinux.opt: New.
13572 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13573
13574 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13575
13576 * config/cris/elf.opt (sim): New Driver option.
13577
13578 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13579
13580 * config/xtensa/elf.opt: New.
13581 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13582
13583 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13584
13585 * config/vax/elf.opt: New.
13586 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13587
13588 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13589
13590 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13591
13592 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13593
13594 * config/gnu-user.opt: New.
13595 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13596 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13597 *-*-uclinux*): Use gnu-user.opt.
13598
13599 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13600
13601 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13602 * config/i386/gnu.h (CPP_SPEC): Likewise.
13603
13604 2011-02-08 Ian Lance Taylor <iant@google.com>
13605
13606 * common.opt (fcx-limited-range): Add SetByCombined flag.
13607 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13608 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13609 (fassociative-math, freciprocal-math): Likewise.
13610 (funsafe-math-optimizations): Likewise.
13611 * opth-gen.awk: Handle SetByCombined.
13612 * optc-gen.awk: Likewise.
13613 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13614 (set_unsafe_math_optimizations_flags): Likewise.
13615 * doc/options.texi (Option properties): Document SetByCombined.
13616
13617 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13618
13619 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13620 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13621 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13622 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13623 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13624
13625 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13626
13627 PR tree-optimization/46834
13628 PR tree-optimization/46994
13629 PR tree-optimization/46995
13630 * graphite-sese-to-poly.c (used_outside_reduction): New.
13631 (detect_commutative_reduction): Call used_outside_reduction.
13632 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13633 translate_scalar_reduction_to_array only when at least one
13634 loop-phi/close-phi tuple has been detected.
13635
13636 2011-02-08 Richard Guenther <rguenther@suse.de>
13637
13638 PR middle-end/47639
13639 * tree-vect-generic.c (expand_vector_operations_1): Update
13640 stmts here ...
13641 (expand_vector_operations): ... not here. Cleanup EH info
13642 and the CFG if required.
13643
13644 2011-02-08 Richard Guenther <rguenther@suse.de>
13645
13646 PR tree-optimization/47641
13647 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13648 require type compatibility.
13649
13650 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13651
13652 * gimple-low.c (lower_function_body): Don't remove the location of
13653 the return statement here.
13654 (lower_gimple_return): Do it here instead but only if the return
13655 statement is actually used twice.
13656
13657 2011-02-08 Richard Guenther <rguenther@suse.de>
13658
13659 PR tree-optimization/47632
13660 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13661 unused up_to_stmt parameter, return whether cfg-cleanup is
13662 necessary, remove EH info properly.
13663 (forward_propagate_into_gimple_cond): Adjust caller.
13664 (forward_propagate_into_cond): Likewise.
13665 (forward_propagate_comparison): Likewise.
13666 (tree_ssa_forward_propagate_single_use_vars): Make
13667 forward_propagate_comparison case similar to the two others.
13668
13669 2011-02-08 Nick Clifton <nickc@redhat.com>
13670
13671 * config/mn10300/mn10300.opt (mliw): New command line option.
13672 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13673 (liw_bundling): New automaton.
13674 (liw): New attribute.
13675 (liw_op): New attribute.
13676 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13677 (movsi_internal): Add LIW attributes.
13678 (andsi3): Likewise.
13679 (iorsi3): Likewise.
13680 (xorsi3): Likewise.
13681 (addsi3): Separate register and immediate alternatives.
13682 Add LIW attributes.
13683 (subsi3): Likewise.
13684 (cmpsi): Likewise.
13685 (aslsi3): Likewise.
13686 (lshrsi3): Likewise.
13687 (ashrsi3): Likewise.
13688 (liw): New pattern.
13689 * config/mn10300/mn10300.c (liw_op_names): New
13690 (mn10300_print_operand): Handle 'W' operand descriptor.
13691 (extract_bundle): New function.
13692 (check_liw_constraints): New function.
13693 (liw_candidate): New function.
13694 (mn10300_bundle_liw): New function.
13695 (mn10300_reorg): New function.
13696 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13697 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13698 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13699 __LIW__ or __NO_LIW__.
13700 * doc/invoke.texi: Describe the -mliw command line option.
13701
13702 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13703
13704 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13705 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13706 pthread_mutex_unlock): Remove.
13707 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13708 * config/pa/t-pa64: Likewise.
13709 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13710 shared libc if not linking against libpthread.
13711 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13712
13713 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13714
13715 PR target/47558
13716 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13717 on 10.6 and later to ensure that we always use the unwinder from
13718 the system. Only add -no_compact_unwind when tarteting darwin
13719 10.6 or later.
13720
13721 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13722
13723 PR target/46997
13724 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13725 (vec_interleave_lowv2sf): Ditto.
13726 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13727 (vec_extract_oddv2sf): Ditto.
13728
13729 2011-02-07 Mike Stump <mikestump@comcast.net>
13730
13731 PR target/42333
13732 Add __ieee_divdc3 entry point.
13733 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13734 entry point.
13735 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13736 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13737 * config/darwin.c (darwin_rename_builtins): Add.
13738 * config/darwin-protos.h (darwin_rename_builtins): Add.
13739
13740 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13741
13742 PR target/47636
13743 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13744 for the condition.
13745
13746 2011-02-07 Mike Stump <mikestump@comcast.net>
13747
13748 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13749
13750 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13751
13752 PR target/47534
13753 * config/avr/libgcc.S (exit): Move .endfunc
13754
13755 2011-02-07 Richard Guenther <rguenther@suse.de>
13756
13757 PR tree-optimization/47615
13758 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13759 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13760 (run_scc_vn): Initialize it.
13761 (visit_reference_op_load): Use it.
13762 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13763
13764 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13765
13766 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13767 DImode trapping arithmetic libfuncs.
13768
13769 2011-02-07 Richard Guenther <rguenther@suse.de>
13770
13771 PR tree-optimization/47621
13772 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13773 two duplicates ...
13774 (execute_update_addresses_taken): ... here. Make it more
13775 conservative in what we accept.
13776
13777 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13778
13779 * config/sparc/freebsd.h (ASM_SPEC): Define.
13780 * config/sparc/vxworks.h (ASM_SPEC): Define.
13781
13782 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13783
13784 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13785
13786 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13787
13788 * doc/invoke.texi: Remove reference to compiler internals from
13789 user documentation.
13790
13791 * reg-notes.def: Remove REG_VALUE_PROFILE.
13792 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13793
13794 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13795
13796 PR middle-end/47610
13797 * varasm.c (default_section_type_flags): If decl is NULL,
13798 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13799
13800 2011-02-05 Jie Zhang <jie@codesourcery.com>
13801
13802 PR debug/42631
13803 * web.c (entry_register): Don't clobber the number of the
13804 first uninitialized reference in used[].
13805
13806 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13807
13808 PR tree-optimization/46194
13809 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13810 (build_classic_dist_vector_1): Do not represent classic distance
13811 vectors when the access functions are variating in different loops.
13812
13813 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13814
13815 * config/mips/iris6.opt: New.
13816 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13817
13818 2011-02-04 Richard Henderson <rth@redhat.com>
13819 Steve Ellcey <sje@cup.hp.com>
13820
13821 PR target/46997
13822 * config/ia64/predicates.md (mux1_brcst_element): New.
13823 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13824 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13825 (ia64_unpack_sign): New.
13826 (ia64_expand_unpack): Rewrite using new routines.
13827 (ia64_expand_widen_sum): Ditto.
13828 (ia64_expand_dot_prod_v8qi): Ditto.
13829 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13830 routines, add endian check.
13831 (pmpy2_even): Rename from pmpy2_r, add endian check.
13832 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13833 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13834 (vec_widen_smult_hi_v4hi): Ditto.
13835 (vec_widen_umult_lo_v4hi): Ditto.
13836 (vec_widen_umult_hi_v4hi): Ditto.
13837 (mulv2si3): Change endian checks.
13838 (sdot_prodv4hi): Rewrite with new calls.
13839 (udot_prodv4hi): New.
13840 (vec_pack_ssat_v4hi): Add endian check.
13841 (vec_pack_usat_v4hi): Ditto.
13842 (vec_pack_ssat_v2si): Ditto.
13843 (max1_even): Rename from max1_r, add endian check.
13844 (max1_odd): Rename from max1_l, add endian check.
13845 (*mux1_rev): Format change.
13846 (*mux1_mix): Ditto.
13847 (*mux1_shuf): Ditto.
13848 (*mux1_alt): Ditto.
13849 (*mux1_brcst_v8qi): Use new predicate.
13850 (vec_extract_evenv8qi): Remove endian check.
13851 (vec_extract_oddv8qi): Ditto.
13852 (vec_interleave_lowv4hi): Format change.
13853 (vec_interleave_highv4hi): Ditto.
13854 (mix2_even): Rename from mix2_r, add endian check.
13855 (mix2_odd): Rename from mux2_l, add endian check.
13856 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13857 (vec_extract_evenodd_helper): Format change.
13858 (vec_extract_evenv4hi): Remove endian check.
13859 (vec_extract_oddv4hi): Remove endian check.
13860 (vec_interleave_lowv2si): Format change.
13861 (vec_interleave_highv2si): Format change.
13862 (vec_initv2si): Remove endian check.
13863 (vecinit_v2si): Add endian check.
13864 (reduc_splus_v2sf): Add endian check.
13865 (reduc_smax_v2sf): Ditto.
13866 (reduc_smin_v2sf): Ditto.
13867 (vec_initv2sf): Remove endian check.
13868 (fpack): Add endian check.
13869 (fswap): Add endian check.
13870 (vec_interleave_highv2sf): Add endian check.
13871 (vec_interleave_lowv2sf): Add endian check.
13872 (fmix_lr): Add endian check.
13873 (vec_setv2sf): Format change.
13874 (*vec_extractv2sf_0_be): Use shift to extract operand.
13875 (*vec_extractv2sf_1_be): New.
13876 (vec_pack_trunc_v4hi): Add endian check.
13877 (vec_pack_trunc_v2si): Format change.
13878
13879 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13880
13881 PR inline-asm/23200
13882 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13883 do bb, locus and block comparison and disallow loads if it is not set.
13884 (stmt_is_replaceable_p): New function.
13885 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13886 callers.
13887 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13888 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13889 SSA_NAME_DEF_STMT.
13890 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13891
13892 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13893
13894 * config/rs6000/xilinx.opt: New.
13895 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13896
13897 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13898
13899 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13900
13901 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13902
13903 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13904 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13905 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13906 secondary_reload_info, xtensa_secondary_reload): Remove.
13907 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13908 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13909 (xtensa_preferred_reload_class): Make static. Change return and
13910 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13911 Use CONST_DOUBLE_P predicate.
13912 (xtensa_preferred_output_reload_class): New function.
13913 (xtensa_secondary_reload): Make static.
13914
13915 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13916
13917 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13918 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13919 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13920
13921 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13922
13923 PR middle-end/31490
13924 * output.h (SECTION_RELRO): Define.
13925 (SECTION_MACH_DEP): Adjust.
13926 (get_variable_section): New prototype.
13927 * varpool.c (varpool_finalize_named_section_flags): New function.
13928 (varpool_assemble_pending_decls): Call it.
13929 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13930 * cgraphunit.c (cgraph_output_in_order): Call
13931 varpool_finalize_named_section_flags.
13932 * varasm.c (get_section): Allow section flags conflicts between
13933 relro and read-only sections if the section hasn't been declared yet.
13934 Set SECTION_OVERRIDE after diagnosing section type conflict.
13935 (get_variable_section): No longer static.
13936 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13937 readonly sections that need relocations.
13938 (decl_readonly_section_1): New function.
13939 (decl_readonly_section): Use it.
13940
13941 Revert:
13942 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13943 Steve Ellcey <sje@cup.hp.com>
13944
13945 PR middle-end/31490
13946 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13947 if section attribute used.
13948
13949 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13950
13951 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13952 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13953 (darwin_init_sections): Remove assertion.
13954
13955 2011-02-03 Nick Clifton <nickc@redhat.com>
13956
13957 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13958 lt and ge.
13959 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13960 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13961 instead of "n" and "pz".
13962 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13963 CC_FLAG_S.
13964
13965 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13966
13967 PR target/47312
13968 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13969 fma, expand FMA_EXPR as fma{,f,l} call.
13970
13971 PR lto/47274
13972 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13973 copy them into a unsigned char variable and pass address of it to
13974 lto_output_data_stream.
13975
13976 PR target/47564
13977 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13978 around backend_init_target and lang_dependent_init_target calls.
13979 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13980 (verify_cgraph_node): Don't call set_cfun here. Use
13981 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13982 Set error_found for incorrectly represented calls to thunks.
13983
13984 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13985
13986 PR debug/43092
13987 PR rtl-optimization/43494
13988 * rtl.h (for_each_inc_dec_fn): New type.
13989 (for_each_inc_dec): Declare.
13990 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13991 (for_each_inc_dec_find_inc_dec): New fn.
13992 (for_each_inc_dec_find_mem): New fn.
13993 (for_each_inc_dec): New fn.
13994 * dse.c (struct insn_size): Remove.
13995 (replace_inc_dec, replace_inc_dec_mem): Remove.
13996 (emit_inc_dec_insn_before): New fn.
13997 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13998 (canon_address): Pass mem modes to cselib_lookup.
13999 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14000 (cselib_lookup_from_insn): Likewise.
14001 (cselib_subst_to_values): Likewise.
14002 * cselib.c (find_slot_memmode): New var.
14003 (cselib_find_slot): New fn. Use it instead of
14004 htab_find_slot_with_hash everywhere.
14005 (entry_and_rtx_equal_p): Use find_slot_memmode.
14006 (autoinc_split): New fn.
14007 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14008 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14009 Deal with autoinc. Special-case recursion into MEMs.
14010 (cselib_hash_rtx): Likewise.
14011 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14012 address and MEM modes.
14013 (cselib_subst_to_values): Add memmode, pass it on.
14014 Deal with autoinc.
14015 (cselib_lookup): Add memmode argument, pass it on.
14016 (cselib_lookup_from_insn): Add memmode.
14017 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14018 (struct cselib_record_autoinc_data): New.
14019 (cselib_record_autoinc_cb): New fn.
14020 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14021 mode to cselib_lookup. Reset autoinced REGs here instead of...
14022 (cselib_process_insn): ... here.
14023 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14024 to cselib_lookup.
14025 (add_uses): Likewise, also to cselib_subst_to_values.
14026 (add_stores): Likewise.
14027 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14028 cselib_subst_to_values.
14029 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14030 * gcse.c (do_local_cprop): Adjusted.
14031 * postreload.c (reload_cse_simplify_set): Adjusted.
14032 (reload_cse_simplify_operands): Adjusted.
14033 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14034
14035 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14036
14037 PR tree-optimization/45122
14038 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14039 unsafe assumptions when there's more than one loop exit.
14040
14041 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14042
14043 PR target/47272
14044 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14045 Document using vector double with the load/store builtins, and
14046 that the load/store builtins always use Altivec instructions.
14047
14048 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14049 to use altivec memory instructions, even on VSX.
14050 (vector_altivec_store_<mode>): Ditto.
14051
14052 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14053 function.
14054
14055 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14056 V2DF, V2DI support to load/store overloaded builtins.
14057
14058 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14059 altivec load/store builtins for V2DF/V2DI types.
14060
14061 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14062 set avoid indexed addresses on power6 if -maltivec.
14063 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14064 vector_altivec_load/vector_altivec_store builtins.
14065 (altivec_expand_st_builtin): Ditto.
14066 (altivec_expand_builtin): Add VSX memory builtins.
14067 (rs6000_init_builtins): Add V2DI types to internal types.
14068 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14069 load/store builtins.
14070 (rs6000_address_for_altivec): Insure memory address is appropriate
14071 for Altivec.
14072
14073 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14074 vec_vsx_ld and vec_vsx_st.
14075 (vsx_store_<mode>): Ditto.
14076
14077 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14078 variables to hold long long types for VSX vector memory builtins.
14079 (RS6000_BTI_unsigned_long_long): Ditto.
14080 (long_long_integer_type_internal_node): Ditti.
14081 (long_long_unsigned_type_internal_node): Ditti.
14082
14083 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14084 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14085 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14086
14087 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14088 short cuts.
14089 (vec_vsx_st): Ditto.
14090
14091 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14092
14093 * config/pa/pa-hpux10.opt: New.
14094 * config/hpux11.opt (pthread): New Driver option.
14095 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14096 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14097
14098 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14099
14100 * config/ia64/vms.opt: New.
14101 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14102
14103 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14104
14105 PR target/47580
14106 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14107 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14108 generator functions.
14109 (vsx_floatuns<VSi><mode>2): Ditto.
14110 (vsx_fix_trunc<mode><VSi>2): Ditto.
14111 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14112
14113 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14114
14115 * config/i386/djgpp.opt (posix): New Driver option.
14116
14117 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14118
14119 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14120 Move to the unsupported targets list.
14121
14122 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14123
14124 PR rtl-optimization/47525
14125 * df-scan.c: Update copyright years.
14126 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14127 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14128
14129 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14130
14131 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14132 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14133 (ASM_OUTPUT_ASCII): Remove.
14134 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14135
14136 2011-02-02 Jeff Law <law@redhat.com>
14137
14138 PR middle-end/47543
14139 * reload.c (find_reloads_address): Handle reg+d address where both
14140 components are invalid by reloading the entire address.
14141
14142 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14143 Richard Guenther <rguenther@suse.de>
14144
14145 PR tree-optimization/40979
14146 PR bootstrap/47044
14147 * passes.c (init_optimization_passes): After LIM call copy_prop
14148 and DCE to clean up.
14149 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14150
14151 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14152
14153 PR tree-optimization/47576
14154 PR tree-optimization/47555
14155 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14156 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14157 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14158 * tree-scalar-evolution.c (follow_ssa_edge): Use
14159 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14160
14161 2011-02-02 Richard Guenther <rguenther@suse.de>
14162
14163 PR tree-optimization/47566
14164 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14165
14166 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14167
14168 PR debug/47106
14169 PR debug/47402
14170 * tree-inline.c (declare_return_variable): Remove unused caller
14171 variable.
14172
14173 PR debug/47106
14174 PR debug/47402
14175 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14176 * cfgexpand.c (account_used_vars_for_block): Use them.
14177 * tree-nrv.c (tree_nrv): Likewise.
14178 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14179 (dump_scope_block): Likewise.
14180 (remove_unused_locals): Likewise.
14181
14182 PR debug/47106
14183 PR debug/47402
14184 * tree-inline.c (declare_return_variable): Add result decl to
14185 local decls only once.
14186 * gimple-low.c (record_vars_into): Mark newly-created variables
14187 as referenced.
14188
14189 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14190
14191 PR debug/47498
14192 PR debug/47501
14193 PR debug/45136
14194 PR debug/45130
14195 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14196 debug insns.
14197 (no_real_insns_p, schedule_block, set_priorities): Drop special
14198 treatment of boundary debug insns.
14199 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14200 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14201 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14202 (BOUNDARY_DEBUG_INSN_P): Likewise.
14203 (SCHEDULE_DEBUG_INSN_P): Likewise.
14204 * sched-rgn.c (init_ready_list): Drop special treatment of
14205 boundary debug insns.
14206 * final.c (rest_of_clean_state): Clear notes' BB.
14207
14208 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14209
14210 * config/openbsd.opt (assert=): New Driver option.
14211
14212 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14213
14214 * config/i386/nto.opt: New.
14215 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14216
14217 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14218
14219 * config/i386/netware.opt: New.
14220 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14221
14222 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14223
14224 * config/interix.opt (posix): New Driver option.
14225
14226 2011-02-01 DJ Delorie <dj@redhat.com>
14227
14228 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14229
14230 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14231 class for A0/A1.
14232
14233 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14234
14235 PR tree-optimization/47561
14236 * toplev.c (process_options): Print the Graphite flags. Add
14237 flag_loop_flatten to the list of options requiring Graphite.
14238
14239 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14240
14241 * config/i386/cygming.opt (posix): New Driver option.
14242
14243 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14244
14245 * config/arm/vxworks.opt: New.
14246 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14247
14248 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14249
14250 * config/alpha/elf.opt: New.
14251 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14252 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14253
14254 2011-02-01 Richard Guenther <rguenther@suse.de>
14255
14256 PR tree-optimization/47559
14257 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14258 store-motion on references that can throw.
14259
14260 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14261
14262 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14263 * tree-pass.h (TDF_CSELIB): New macro.
14264 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14265 cselib_lookup): Check for it rather than for TDF_DETAILS.
14266
14267 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14268
14269 PR driver/47547
14270 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14271 is HOST_BIT_BUCKET.
14272
14273 * opts.c (finish_options): Don't add x_aux_base_name if it is
14274 HOST_BIT_BUCKET.
14275
14276 2011-02-01 Richard Guenther <rguenther@suse.de>
14277
14278 PR tree-optimization/47555
14279 Revert
14280 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14281
14282 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14283
14284 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14285
14286 PR gcc/46692
14287 * config/lm32/t-lm32: Add multilib for all CPU options.
14288
14289 2011-02-01 Richard Guenther <rguenther@suse.de>
14290
14291 PR tree-optimization/47541
14292 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14293 sure to have a field at offset zero.
14294
14295 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14296
14297 * config/arc/arc.opt (EB, EL): New Driver options.
14298
14299 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14300
14301 * config/alpha/osf5.opt: New.
14302 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14303
14304 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14305
14306 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14307
14308 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14309
14310 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14311 -floop-interchange.
14312 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14313 is an alias of -floop-interchange and that it requires the
14314 Graphite infrastructure.
14315 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14316 flag_loop_interchange based on the value of flag_tree_loop_linear.
14317
14318 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14319 Richard Guenther <rguenther@suse.de>
14320
14321 PR tree-optimization/47538
14322 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14323 type instead of r1type, except for comparisons. For right
14324 shifts and comparisons punt if there are mismatches in
14325 sizetype vs. non-sizetype types.
14326
14327 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14328
14329 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14330 avx_runtime.
14331
14332 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14333
14334 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14335 version number.
14336 * configure: Regenerate.
14337
14338 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14339
14340 * configure.ac (gcc_cv_ld_static_option): Define.
14341 (gcc_cv_ld_dynamic_option): Define.
14342 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14343 instead.
14344 (HAVE_LD_STATIC_DYNAMIC): Update message.
14345 (LD_STATIC_OPTION): Define.
14346 (LD_DYNAMIC_OPTION): Define.
14347 * configure: Regenerate.
14348 * config.in: Regenerate.
14349 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14350 HAVE_LD_STATIC_DYNAMIC]: Use them.
14351
14352 2011-01-31 Nick Clifton <nickc@redhat.com>
14353
14354 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14355 registers inside interrupt handlers if the handler is not a leaf
14356 function.
14357
14358 2011-01-31 Nick Clifton <nickc@redhat.com>
14359
14360 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14361 reg_renumber returning an INVALID_REGNUM.
14362
14363 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14364
14365 PR libgcj/44341
14366 * doc/install.texi: Document host options discarded when cross
14367 configuring target libraries.
14368
14369 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14370
14371 Reverted:
14372 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14373 PR debug/45136
14374 PR debug/45130
14375 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14376 debug insns.
14377 (no_real_insns_p, schedule_block, set_priorities): Drop special
14378 treatment of boundary debug insns.
14379 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14380 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14381 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14382 (BOUNDARY_DEBUG_INSN_P): Likewise.
14383 (SCHEDULE_DEBUG_INSN_P): Likewise.
14384 * sched-rgn.c (init_ready_list): Drop special treatment of
14385 boundary debug insns.
14386 * final.c (rest_of_clean-state): Clear notes' BB.
14387
14388 2011-01-31 Alan Modra <amodra@gmail.com>
14389
14390 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14391 toc relative expressions as we do in print_operand_address.
14392
14393 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14394
14395 * doc/extend.texi: Follow spelling conventions.
14396 * doc/invoke.texi: Fix a typo.
14397
14398 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14399
14400 * config/hpux11.opt: New.
14401 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14402 ia64*-*-hpux*): Use hpux11.opt.
14403
14404 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14405
14406 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14407 to tmake_file.
14408
14409 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14410
14411 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14412 support sites.
14413
14414 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14415
14416 * doc/install.texi (Binaries): Remove outdated reference for
14417 Motorola 68HC11/68HC12 downloads.
14418
14419 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14420
14421 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14422 Drepper's paper.
14423
14424 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14425
14426 PR bootstrap/47147
14427 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14428 used by NetBSD.
14429
14430 2011-01-28 Ahmad Sharif <asharif@google.com>
14431
14432 * value-prof.c (check_counter): Corrected error message.
14433
14434 2011-01-29 Jie Zhang <jie@codesourcery.com>
14435
14436 * config/arm/arm.c (arm_legitimize_reload_address): New.
14437 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14438 arm_legitimize_reload_address.
14439 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14440
14441 2011-01-28 Ian Lance Taylor <iant@google.com>
14442
14443 * godump.c (go_define): Ignore macros whose definitions include
14444 two adjacent operands.
14445
14446 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14447
14448 PR target/42894
14449 * varasm.c (force_const_mem): Store copy of x in desc->constant
14450 instead of x itself.
14451 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14452 itself into REG_EQUAL note.
14453
14454 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14455
14456 * config/freebsd.opt (posix, rdynamic): New Driver options.
14457
14458 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14459
14460 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14461 -Bstatic/-Bdynamic.
14462 * configure: Regenerate.
14463
14464 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14465
14466 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14467 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14468
14469 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14470
14471 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14472 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14473 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14474 (s390_preferred_reload_class): Make static. Change return and
14475 'rclass' argument type to reg_class_t.
14476
14477 2011-01-27 Jan Hubicka <jh@suse.cz>
14478
14479 PR middle-end/46949
14480 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14481 (process_function_and_variable_attributes): Check defined weakrefs.
14482
14483 2011-01-27 Martin Jambor <mjambor@suse.cz>
14484
14485 PR tree-optimization/47228
14486 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14487 build_ref_for_offset.
14488
14489 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14490
14491 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14492
14493 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14494
14495 PR rtl-optimization/46856
14496 * postreload.c (reload_combine_recognize_const_pattern): Do not
14497 separate cc0 setter and user on cc0 targets.
14498
14499 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14500
14501 PR c/43082
14502 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14503 passed a VOID_TYPE expression, immediately emit an error and
14504 return error_mark_node.
14505
14506 2011-01-26 Jeff Law <law@redhat.com>
14507
14508 PR rtl-optimization/47464
14509 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14510 rather than may_trap_p as needed.
14511
14512 2011-01-26 DJ Delorie <dj@redhat.com>
14513
14514 PR rtl-optimization/46878
14515 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14516 setter/user dependency as well.
14517
14518 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14519
14520 PR rtl-optimization/44469
14521 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14522 after removing trivially dead basic blocks.
14523
14524 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14525
14526 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14527 * config/frv/frv.h (LINK_SPEC): Likewise.
14528 * config/i386/netware.h (LINK_SPEC): Likewise.
14529 * config/m68k/linux.h (ASM_SPEC): Likewise.
14530 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14531 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14532 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14533 * config/sparc/linux.h (ASM_SPEC): Likewise.
14534 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14535 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14536
14537 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14538
14539 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14540 * config/frv/frv.h (ASM_SPEC): Likewise.
14541 * config/m68k/linux.h (ASM_SPEC): Likewise.
14542 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14543 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14544 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14545 * config/sparc/linux.h (ASM_SPEC): Likewise.
14546 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14547 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14548
14549 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14550
14551 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14552 * config/frv/frv.h (LINK_SPEC): Likewise.
14553 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14554
14555 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14556
14557 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14558 * config/frv/frv.h (ASM_SPEC): Likewise.
14559 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14560 * config/m68k/linux.h (ASM_SPEC): Likewise.
14561 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14562 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14563 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14564 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14565 * config/sparc/linux.h (ASM_SPEC): Likewise.
14566 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14567 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14568 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14569
14570 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14571
14572 PR target/46997
14573 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14574 (*mux2): Ditto.
14575 (vec_extract_evenodd_help): Ditto.
14576 (vec_extract_evenv4hi): Ditto.
14577 (vec_extract_oddv4hi): Ditto.
14578 (vec_interleave_lowv2si): Ditto.
14579 (vec_interleave_highv2si): Ditto.
14580 (vec_extract_evenv2si): Ditto.
14581 (vec_extract_oddv2si: Ditto.
14582 (vec_pack_trunc_v2si): Ditto.
14583
14584 2011-01-22 Jan Hubicka <jh@suse.cz>
14585
14586 PR target/47237
14587 * cgraph.h (cgraph_local_info): New field can_change_signature.
14588 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14589 signature can change.
14590 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14591 can change.
14592 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14593 (cgraph_function_versioning): We can not change signature of functions
14594 that don't allow that.
14595 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14596 (lto_input_node): Likewise.
14597 * ipa-inline.c (compute_inline_parameters): Compute
14598 local.can_change_signature.
14599 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14600 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14601 functions that can not change signature.
14602 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14603 init_cumulative_args): Do not use local calling conventions
14604 for functions that can not change signature.
14605
14606 2011-01-22 Jan Hubicka <jh@suse.cz>
14607
14608 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14609
14610 2011-01-26 Richard Guenther <rguenther@suse.de>
14611
14612 PR tree-optimization/47190
14613 * cgraphunit.c (process_common_attributes): New function.
14614 (process_function_and_variable_attributes): Use it.
14615
14616 2011-01-26 Richard Guenther <rguenther@suse.de>
14617
14618 PR lto/47423
14619 * cgraphbuild.c (record_eh_tables): Record reference to personality
14620 function.
14621
14622 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14623
14624 PR debug/45454
14625 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14626 non-debug insns from moving up.
14627
14628 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14629
14630 PR target/40125
14631 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14632 t-dlldir{,-x} fragment for build and add it to tmake_file.
14633 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14634 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14635 * config/i386/t-dlldir: New file.
14636 (SHLIB_DLLDIR): Define.
14637 * config/i386/t-dlldir-x: New file.
14638 (SHLIB_DLLDIR): Define.
14639 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14640 (SHLIB_INSTALL): Use it.
14641
14642 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14643
14644 PR target/47246
14645 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14646 lower bound of the allowed Thumb-2 coprocessor load/store
14647 index range to -256. Add explaining comment.
14648
14649 2011-01-25 Ian Lance Taylor <iant@google.com>
14650
14651 * godump.c (go_define): Improve lexing of macro expansion to only
14652 accept expressions which match Go spec.
14653
14654 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14655
14656 PR c++/43601
14657 * tree.c (handle_dll_attribute): Handle it.
14658 * doc/extend.texi (@item dllexport): Mention it.
14659 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14660
14661 2011-01-25 Ian Lance Taylor <iant@google.com>
14662
14663 PR tree-optimization/26854
14664 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14665 (decl_jump_unsafe): Move higher in file, with no other change.
14666 (bind): Set has_jump_unsafe_decl if appropriate.
14667 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14668 (check_earlier_gotos): Likewise.
14669 (c_check_switch_jump_warnings): Likewise.
14670
14671 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14672
14673 * doc/invoke.texi (Warning Options): Add missing hyphen.
14674 (-fprofile-dir): Minor grammatical fixes.
14675 (-fbranch-probabilities): Likewise.
14676
14677 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14678
14679 PR debug/45136
14680 PR debug/45130
14681 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14682 debug insns.
14683 (no_real_insns_p, schedule_block, set_priorities): Drop special
14684 treatment of boundary debug insns.
14685 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14686 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14687 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14688 (BOUNDARY_DEBUG_INSN_P): Likewise.
14689 (SCHEDULE_DEBUG_INSN_P): Likewise.
14690 * sched-rgn.c (init_ready_list): Drop special treatment of
14691 boundary debug insns.
14692 * final.c (rest_of_clean-state): Clear notes' BB.
14693
14694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14695
14696 * Makefile.in (LAMBDA_H): Removed.
14697 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14698 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14699 lambda-trans.o, and tree-loop-linear.o.
14700 (lto-symtab.o): Remove dependence on LAMBDA_H.
14701 (tree-loop-linear.o): Remove rule.
14702 (lambda-mat.o): Same.
14703 (lambda-trans.o): Same.
14704 (lambda-code.o): Same.
14705 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14706 (tree-vect-slp.o): Same.
14707 * hwint.h (gcd): Moved here.
14708 (least_common_multiple): Same.
14709 * lambda-code.c: Removed.
14710 * lambda-mat.c: Removed.
14711 * lambda-trans.c: Removed.
14712 * lambda.h: Removed.
14713 * tree-loop-linear.c: Removed.
14714 * lto-symtab.c: Do not include lambda.h.
14715 * omega.c (gcd): Removed.
14716 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14717 * tree-data-ref.c (print_lambda_vector): Moved here.
14718 (lambda_vector_copy): Same.
14719 (lambda_matrix_copy): Same.
14720 (lambda_matrix_id): Same.
14721 (lambda_vector_first_nz): Same.
14722 (lambda_matrix_row_add): Same.
14723 (lambda_matrix_row_exchange): Same.
14724 (lambda_vector_mult_const): Same.
14725 (lambda_vector_negate): Same.
14726 (lambda_matrix_row_negate): Same.
14727 (lambda_vector_equal): Same.
14728 (lambda_matrix_right_hermite): Same.
14729 * tree-data-ref.h: Do not include lambda.h.
14730 (lambda_vector): Moved here.
14731 (lambda_matrix): Same.
14732 (dependence_level): Same.
14733 (lambda_transform_legal_p): Removed declaration.
14734 (lambda_collect_parameters): Same.
14735 (lambda_compute_access_matrices): Same.
14736 (lambda_vector_gcd): Same.
14737 (lambda_vector_new): Same.
14738 (lambda_vector_clear): Same.
14739 (lambda_vector_lexico_pos): Same.
14740 (lambda_vector_zerop): Same.
14741 (lambda_matrix_new): Same.
14742 * tree-flow.h (least_common_multiple): Removed declaration.
14743 * tree-parloops.c (lambda_trans_matrix): Moved here.
14744 (LTM_MATRIX): Same.
14745 (LTM_ROWSIZE): Same.
14746 (LTM_COLSIZE): Same.
14747 (LTM_DENOMINATOR): Same.
14748 (lambda_trans_matrix_new): Same.
14749 (lambda_matrix_vector_mult): Same.
14750 (lambda_transform_legal_p): Same.
14751 * tree-pass.h (pass_linear_transform): Removed declaration.
14752 * tree-ssa-loop.c (tree_linear_transform): Removed.
14753 (gate_tree_linear_transform): Removed.
14754 (pass_linear_transform): Removed.
14755 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14756 flag_loop_interchange.
14757
14758 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14759
14760 PR tree-optimization/47265
14761 PR tree-optimization/47443
14762 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14763 if name still has some uses.
14764
14765 2011-01-25 Martin Jambor <mjambor@suse.cz>
14766
14767 PR tree-optimization/47382
14768 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14769 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14770
14771 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14772
14773 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14774 sjlj_except_unwind_info.
14775
14776 2011-01-25 Richard Guenther <rguenther@suse.de>
14777
14778 PR tree-optimization/47426
14779 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14780 visible functions results escape.
14781
14782 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14783
14784 PR target/45701
14785 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14786 (arm_get_frame_offsets): Use it.
14787
14788 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14789 Jakub Jelinek <jakub@redhat.com>
14790
14791 PR tree-optimization/47271
14792 * tree-if-conv.c (bb_postdominates_preds): New.
14793 (if_convertible_bb_p): Call bb_postdominates_preds.
14794 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14795 (predicate_scalar_phi): Call bb_postdominates_preds.
14796
14797 2011-01-25 Nick Clifton <nickc@redhat.com>
14798
14799 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14800 * config/rx/rx.c (rx_function_value): Likewise.
14801 (rx_promote_function_mode): Likewise.
14802 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14803 in order to make it legitimate.
14804 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14805 make sure that the first operand is the same as the result register.
14806 (addsi3_unspec): Delete.
14807 (subdi3): Do not accept immediate operands.
14808 (subdi3_internal): Likewise.
14809
14810 2011-01-25 Jeff Law <law@redhat.com>
14811
14812 PR rtl-optimization/37273
14813 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14814 handle them like argument loads from stack slots. Do not double
14815 count memory for memory constants and argument loads from stack slots.
14816
14817 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14818
14819 PR tree-optimization/47427
14820 PR tree-optimization/47428
14821 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14822 coalesce if the new root var would be TREE_READONLY.
14823
14824 2011-01-25 Richard Guenther <rguenther@suse.de>
14825
14826 PR middle-end/47414
14827 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14828 correct type for TBAA.
14829
14830 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14831
14832 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14833 (close_phi_written_to_memory): Call for_each_index with
14834 dr_indices_valid_in_loop.
14835
14836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14837
14838 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14839 when it is initialized.
14840
14841 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14842
14843 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14844 call to graphite_find_data_references_in_stmt.
14845 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14846 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14847 call to graphite_find_data_references_in_stmt.
14848 (analyze_drs_in_stmts): Same.
14849 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14850 in which the scalar analysis of indices is performed.
14851 (create_data_ref): Same. Update call to dr_analyze_indices.
14852 (find_data_references_in_stmt): Update call to create_data_ref.
14853 (graphite_find_data_references_in_stmt): Same.
14854 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14855 declaration.
14856 (create_data_ref): Same.
14857 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14858 call to create_data_ref.
14859
14860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14861
14862 * graphite-sese-to-poly.c (build_poly_scop): Move
14863 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14864
14865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14866
14867 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14868 VAR_DECL, PARM_DECL, and RESULT_DECL.
14869
14870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14871
14872 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14873 in a reduction PBB.
14874 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14875 that have already been marked as PBB_IS_REDUCTION.
14876
14877 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14878
14879 * graphite-scop-detection.c (same_close_phi_node): New.
14880 (remove_duplicate_close_phi): New.
14881 (make_close_phi_nodes_unique): New.
14882 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14883
14884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14885
14886 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14887 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14888 of both data references to be the same.
14889
14890 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14891
14892 * graphite-dependences.c (build_lexicographical_constraint): Remove
14893 the gdim parameter.
14894 (build_lexicographical_constraint): Adjust call to
14895 ppl_powerset_is_empty.
14896 (dependence_polyhedron): Same.
14897 (graphite_legal_transform_dr): Same.
14898 (graphite_carried_dependence_level_k): Same.
14899 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14900 parameter.
14901 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14902
14903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14904
14905 * graphite-sese-to-poly.c
14906 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14907 (close_phi_written_to_memory): New.
14908 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14909 and unshare_expr.
14910
14911 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14912
14913 * doc/install.texi: Update the expected version number of PPL to 0.11.
14914 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14915 #if PPL_VERSION_MINOR < 11.
14916
14917 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14918
14919 * graphite-dependences.c: Include graphite-cloog-util.h.
14920 (new_poly_ddr): Inlined into dependence_polyhedron.
14921 (free_poly_ddr): Moved close by new_poly_ddr.
14922 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14923 Early return NULL when ppl_powerset_is_empty returns true.
14924 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14925 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14926 (graphite_legal_transform_dr): Call new_poly_ddr.
14927 (graphite_carried_dependence_level_k): Same.
14928 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14929 (dot_transformed_deps_stmt_1): Removed.
14930 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14931 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14932 (dot_deps_1): Call dot_deps_2.
14933 * Makefile.in (graphite-dependences.o): Add missing dependence on
14934 graphite-cloog-util.h.
14935
14936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14937
14938 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14939 (build_lexicographical_constraint): Same.
14940 (dependence_polyhedron_1): Same.
14941 (graphite_legal_transform_dr): Same.
14942 (graphite_carried_dependence_level_k): Same.
14943 * graphite-ppl.c (ppl_powerset_is_empty): New.
14944 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14945 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14946
14947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14948
14949 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14950 the "a followed by b" relation and document it.
14951
14952 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14953
14954 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14955 iteration when the bag of constraints is empty.
14956
14957 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14958
14959 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14960
14961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14962
14963 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14964 nest and two loop depths as parameters.
14965 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14966 lst_perfect_nestify.
14967
14968 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14969
14970 * graphite-dependences.c (print_pddr): Call
14971 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14972
14973 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14974
14975 * graphite-ppl.c (debug_gmp_value): New.
14976 * graphite-ppl.h (debug_gmp_value): Declared.
14977
14978 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14979
14980 * doc/install.texi: Document availability of cloog-0.16.
14981
14982 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14983
14984 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14985 invalid postdominance info.
14986
14987 2011-01-24 Jan Hubicka <jh@suse.cz>
14988
14989 PR c/21659
14990 * doc/extend.texi (weak pragma): Drop claim that it must
14991 appear before definition.
14992 * varasm.c (merge_weak, declare_weak): Only sanity check
14993 that DECL is not output at a time it is declared weak.
14994
14995 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14996
14997 * machmode.def: Fixed comments.
14998
14999 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15000
15001 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15002
15003 2011-01-24 Paul Koning <ni1d@arrl.net>
15004
15005 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15006 WORDS_BIG_ENDIAN.
15007
15008 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15009
15010 PR target/46519
15011 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15012 (block_info): Add scanned and prev.
15013 (move_or_delete_vzeroupper_2): Return if the basic block
15014 has been scanned and the upper 128bit state is unchanged
15015 from the last scan.
15016 (move_or_delete_vzeroupper_1): Return true if the exit
15017 state is changed.
15018 (move_or_delete_vzeroupper): Visit basic blocks using the
15019 work-list based algorithm based on vt_find_locations in
15020 var-tracking.c.
15021
15022 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15023
15024 2011-01-24 Nick Clifton <nickc@redhat.com>
15025
15026 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15027 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15028 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15029 then define __v850e1__.
15030 * doc/invoke.texi: Document -mv850es.
15031
15032 2011-01-24 Richard Henderson <rth@redhat.com>
15033
15034 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15035 compound unordered comparisons.
15036 * config/rx/rx.c (rx_split_fp_compare): Remove.
15037 * config/rx/rx-protos.h: Update.
15038 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15039 (cbranchsf4): Don't call rx_split_fp_compare.
15040 (*cbranchsf4): Use rx_split_cbranch.
15041 (*cmpsf): Don't accept "i" constraint.
15042 (*conditional_branch): Only valid after reload.
15043 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15044
15045 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15046
15047 PR target/47385
15048 * config/rs6000/altivec.md (vector constant splitters): Add
15049 support for creating vector single precision constants if -mvsx is
15050 used and we would create the constant using Altivec primitives.
15051
15052 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15053 Richard Sandiford <rdsandiford@googlemail.com>
15054
15055 PR rtl-optimization/47166
15056 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15057 mechanism for PRE_MODIFY and POST_MODIFY.
15058 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15059 reloadreg.
15060
15061 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15062
15063 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15064
15065 2011-01-22 Jan Hubicka <jh@suse.cz>
15066
15067 PR lto/47333
15068 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15069
15070 2011-01-22 Jan Hubicka <jh@suse.cz>
15071
15072 PR tree-optimization/43884
15073 PR lto/44334
15074 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15075 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15076
15077 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15078
15079 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15080 * config/s390/s390.c (s390_register_move_cost,
15081 s390_memory_move_cost): New.
15082 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15083
15084 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15085
15086 PR middle-end/47401
15087 * except.c (sjlj_assign_call_site_values): Move setting the
15088 crtl->uses_eh_lsda flag to ...
15089 (sjlj_mark_call_sites): ... here.
15090 (sjlj_emit_function_enter): Support NULL dispatch label.
15091 (sjlj_build_landing_pads): In a function with no landing pads
15092 that still has must-not-throw regions, generate code to register
15093 a personality function with empty LSDA.
15094
15095 2011-01-21 Richard Henderson <rth@redhat.com>
15096
15097 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15098
15099 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15100
15101 * compare-elim.c: New file.
15102 * Makefile.in (OBJS-common): Add it.
15103 (compare-elim.o): New.
15104 * common.opt (fcompare-elim): New.
15105 * opts.c (default_options_table): Add OPT_fcompare_elim.
15106 * tree-pass.h (pass_compare_elim_after_reload): New.
15107 * passes.c (init_optimization_passes): Add it.
15108 * recog.h: Protect against re-inclusion.
15109 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15110 * doc/invoke.texi (-fcompare-elim): Document it.
15111 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15112 * doc/tm.texi: Rebuild.
15113
15114 2011-01-22 Nick Clifton <nickc@redhat.com>
15115
15116 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15117 rx_split_fp_compare.
15118
15119 2011-01-22 Nick Clifton <nickc@redhat.com>
15120
15121 * config/rx/rx.md (UNSPEC_CONST): New.
15122 (deallocate_and_return): Wrap the amount popped off the stack in
15123 an UNSPEC_CONST in order to stop it being rejected by
15124 -mmax-constant-size.
15125 (pop_and_return): Add a "(return)" rtx.
15126 (call): Drop the immediate operand.
15127 (call_internal): Likewise.
15128 (call_value): Likewise.
15129 (call_value_internal): Likewise.
15130 (sibcall_internal): Likewise.
15131 (sibcall_value_internal): Likewise.
15132 (sibcall): Likewise. Generate an explicit call using
15133 sibcall_internal.
15134 (sibcall_value): Likewise.
15135 (mov<>): FAIL if a constant operand is not legitimate.
15136 (addsi3_unpsec): New pattern.
15137
15138 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15139 (ok_for_max_constant): New function.
15140 (gen_safe_add): New function.
15141 (rx_expand_prologue): Use gen_safe_add.
15142 (rx_expand_epilogue): Likewise.
15143 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15144 UNSPEC CONSTs.
15145
15146 2011-01-21 Jeff Law <law@redhat.com>
15147
15148 PR tree-optimization/47053
15149 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15150 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15151 statements are deleted.
15152 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15153 is nonempty, then purge dead edges and cleanup the CFG.
15154
15155 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15156
15157 PR debug/47402
15158 Temporarily revert:
15159 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15160 PR debug/47106
15161 * tree-dfa.c (create_var_ann): Mark variable as used.
15162
15163 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15164
15165 PR middle-end/45566
15166 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15167 notes from other section in hot/cold partitioning even if
15168 last_action is -3. Increment call_site_base.
15169
15170 PR rtl-optimization/47366
15171 * fwprop.c (forward_propagate_into): Return bool. If
15172 any changes are made, -fnon-call-exceptions is used and
15173 REG_EH_REGION note is present, call purge_dead_edges
15174 and return true if it purged anything.
15175 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15176 any EH edges were purged.
15177
15178 2011-01-21 Jeff Law <law@redhat.com>
15179
15180 PR rtl-optimization/41619
15181 * caller-save.c (setup_save_areas): Break out code to determine
15182 which hard regs are live across calls by examining the reload chains
15183 so that it is always used.
15184 Eliminate code which checked REG_N_CALLS_CROSSED.
15185
15186 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15187
15188 PR tree-optimization/47355
15189 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15190 NOP has non-debug uses beyond PHIs in new_bb.
15191
15192 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15193
15194 PR debug/47106
15195 * cfgexpand.c (account_used_vars_for_block): Only account vars
15196 that are annotated as used.
15197 (estimated_stack_frame_size): Don't set TREE_USED.
15198 * tree-dfa.c (create_var_ann): Mark variable as used.
15199
15200 2011-01-21 Richard Guenther <rguenther@suse.de>
15201
15202 PR middle-end/47395
15203 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15204
15205 2011-01-21 Richard Guenther <rguenther@suse.de>
15206
15207 PR tree-optimization/47365
15208 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15209 (vn_reference_lookup_pieces): Adjust.
15210 (vn_reference_lookup): Likewise.
15211 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15212 (vn_reference_lookup_3): Only look through kills if in
15213 VN_WALKREWRITE mode.
15214 (vn_reference_lookup_pieces): Adjust.
15215 (vn_reference_lookup): Likewise.
15216 (visit_reference_op_load): Likewise.
15217 (visit_reference_op_store): Likewise.
15218 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15219 (compute_avail): Likewise.
15220 (eliminate): Likewise.
15221
15222 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15223
15224 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15225 DECL_IGNORED_P non-reg vars if they are used.
15226
15227 PR tree-optimization/47391
15228 * varpool.c (const_value_known_p): Return false if
15229 decl is volatile.
15230
15231 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15232
15233 PR bootstrap/47215
15234 * config/i386/i386.c (ix86_local_alignment): Handle
15235 case for va_list_type_node is nil.
15236 (ix86_canonical_va_list_type): Likewise.
15237
15238 2011-01-21 Alan Modra <amodra@gmail.com>
15239
15240 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15241 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15242
15243 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15244
15245 * config/arm/arm.md (define_attr type): Rename f_load
15246 and f_store to f_fpa_load and f_fpa_store. Update.
15247 (write_conflict): Deal with rename fallout.
15248 (*push_fp_multi): Likewise.
15249 * config/arm/fpa.md (f_load): Use f_fpa_load.
15250 (f_store): Use f_fpa_store.
15251 (*movsf_fpa): Likewise.
15252 (*movdf_fpa): Likewise.
15253 (*movxf_fpa): Likewise.
15254 (*thumb2_movsf_fpa): Likewise.
15255 (*thumb2_movdf_fpa): Likewise.
15256 (*thumb2_movxf_fpa): Likewise.
15257 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15258 f_loadd and f_stored.
15259 (*thumb2_movdi_vfp): Likewise.
15260 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15261 (*thumb2_movsi_vfp): Likewise.
15262 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15263 Use f_loads instead of f_load.
15264 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15265
15266 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15267
15268 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15269 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15270 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15271 (xtensa_mode_dependent_address_p): New function.
15272 (constantpool_address_p): Make static. Change return type to bool.
15273 Change argument type to const_rtx. Use CONST_INT_P predicate.
15274
15275 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15276
15277 PR debug/46583
15278 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15279
15280 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15281
15282 PR debug/47283
15283 * cfgexpand.c (expand_debug_expr): Instead of generating
15284 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15285 etc. handling.
15286
15287 2011-01-20 Richard Guenther <rguenther@suse.de>
15288
15289 PR middle-end/47370
15290 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15291 the pointer operand of MEM_REFs.
15292
15293 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15294
15295 PR tree-optimization/46130
15296 * ipa-split.c (consider_split): If return_bb contains non-virtual
15297 PHIs other than for retval or if split_function would not adjust it,
15298 refuse to split.
15299
15300 2011-01-20 Richard Guenther <rguenther@suse.de>
15301
15302 PR tree-optimization/47167
15303 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15304 Revert previous change, only avoid enumeral type changes.
15305
15306 2011-01-19 Mike Stump <mikestump@comcast.net>
15307
15308 * doc/tm.texi.in (BRANCH_COST): Englishify.
15309 * doc/tm.texi (BRANCH_COST): Likewise.
15310
15311 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15312
15313 PR c++/47291
15314 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15315 (gen_scheduled_generic_parms_dies): New functions.
15316 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15317 generation for the end of CU compilation.
15318 (dwarf2out_finish): Generate template parameters DIEs here.
15319
15320 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15321
15322 PR debug/46240
15323 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15324 debug bind stmt on merge edges.
15325
15326 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15327
15328 PR debug/47079
15329 PR debug/46724
15330 * function.c (instantiate_expr): Instantiate incoming rtl of
15331 implicit arguments, and recurse on VALUE_EXPRs.
15332 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15333 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15334
15335 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15336
15337 * c-parser.c (c_parser_for_statement): Initialize
15338 collection_expression.
15339
15340 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15341
15342 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15343
15344 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15345
15346 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15347 (LINK_SHLIB_SPEC): Don't use %(link_path).
15348 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15349
15350 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15351
15352 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15353 (NO_SHARED_LIB_SUPPORT): Remove.
15354 (LINK_SHLIB_SPEC): Remove one conditional definition.
15355
15356 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15357
15358 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15359 %{call_shared}.
15360 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15361 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15362 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15363 %{call_shared} and conditionals on these options not being passed.
15364 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15365 %{call_shared}.
15366
15367 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15368
15369 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15370 simplify.
15371
15372 * ipa-split.c: Spelling fixes.
15373
15374 2011-01-19 Richard Henderson <rth@redhat.com>
15375
15376 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15377 (*mulsi3): Likewise.
15378
15379 * longlong.h [__mn10300__] (count_leading_zeros): New.
15380 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15381 [__mn10300__] (add_ssaaaa, subddmmss): New.
15382 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15383 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15384
15385 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15386
15387 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15388
15389 2011-01-19 Richard Henderson <rth@redhat.com>
15390
15391 * config/mn10300/mn10300.md (addsi3_flags): New.
15392 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15393 (subsi3_flags, subc_internal, subdi3): New.
15394 (subdi3_internal, *subdi3_degenerate): New.
15395 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15396
15397 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15398 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15399 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15400 * config/mn10300/mn10300-protos.h: Update.
15401 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15402 (return_ret): Likewise. Rename from return_internal_regs.
15403 (return_internal): Remove.
15404
15405 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15406 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15407 (mn10300_legitimate_constant_p): Likewise.
15408 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15409 (mn10300_frame_size): New.
15410 (mn10300_expand_prologue): Use it.
15411 (mn10300_expand_epilogue): Likewise.
15412 (mn10300_initial_offset): Likewise.
15413 * config/mn10300/mn10300-protos.h: Update.
15414 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15415 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15416 (prologue, epilogue, return_internal): Tidy output code.
15417 (mn10300_store_multiple_operation, return): Likewise.
15418 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15419 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15420 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15421 (load_pic, am33_load_pic): New.
15422 (mn10300_load_pic0, mn10300_load_pic1): New.
15423
15424 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15425 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15426 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15427 (cc_flags_for_mode, cc_flags_for_code): New.
15428 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15429 overflow flag is not valid. Validate that the flags we need
15430 for the comparison are valid.
15431 (mn10300_output_cmp): Remove.
15432 (mn10300_output_add): New.
15433 (mn10300_select_cc_mode): Use cc_flags_for_code.
15434 (mn10300_split_cbranch): New.
15435 (mn10300_match_ccmode): New.
15436 (mn10300_split_and_operand_count): New.
15437 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15438 to the function.
15439 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15440 (addsi3): ... here. Use mn10300_output_add.
15441 (*addsi3_flags): New.
15442 (*am33_subsi3, *mn10300_subsi3): Merge...
15443 (subsi3): ... here. Use attribute isa.
15444 (*subsi3_flags): New.
15445 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15446 when possible.
15447 (*am33_andsi3, *mn10300_andsi3): Merge...
15448 (andsi3): ... here.
15449 (*andsi3_flags): New.
15450 (andsi3 splitters): New.
15451 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15452 (iorsi3): ... here.
15453 (*iorsi3_flags): New.
15454 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15455 (xorsi3): ... here.
15456 (*xorsi3_flags): New.
15457 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15458 (one_cmplsi2): ... here.
15459 (*one_cmplsi2_flags): New.
15460 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15461 instead of "dax" in constraints. Use mn10300_split_cbranch.
15462 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15463 use matching constraints to eliminate a self-comparison.
15464 (*integer_conditional_branch): Rename from integer_conditional_branch.
15465 Use int_mode_flags to match CC_REG.
15466 (*cbranchsi4_btst, *btstsi): New.
15467 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15468 mn10300_split_cbranch.
15469 (*am33_cmpsf): Rename from am33_cmpsf.
15470 (*float_conditional_branch): Rename from float_conditional_branch.
15471 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15472 (zero_extendqisi2): ... here.
15473 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15474 (zero_extendhisi2): ... here.
15475 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15476 (extendqisi2): ... here.
15477 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15478 (extendhisi2): ... here.
15479 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15480 (ashlsi3): ... here.
15481 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15482 (lshrsi3): ... here.
15483 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15484 (ashrsi3): ... here.
15485 (consecutive add peephole): Remove.
15486 * config/mn10300/predicates.md (label_ref_operand): New.
15487 (int_mode_flags): New.
15488 (CCZN_comparison_operator): New.
15489
15490 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15491 (throughput_42_latency_43): New reservation.
15492 (mulsidi3, umulsidi3): New expanders.
15493 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15494 the MDR register to allocation; separately allocate the low and
15495 high parts of the DImode result.
15496 (umulsidi3_internal): Similarly.
15497 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15498 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15499 (udivsi3, umodsi3): Remove.
15500 (udivmodsi4, divmodsi4): New expanders.
15501 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15502 (*divmodsi4): Simiarly.
15503 (ext_internal): New.
15504
15505 * config/mn10300/constraints.md ("z"): New constraint.
15506 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15507 (FIXED_REGISTERS): Don't fix MDR.
15508 (CALL_USED_REGSITERS): Reformat nicely.
15509 (REG_ALLOC_ORDER): Add MDR.
15510 (enum regclass): Add MDR_REGS.
15511 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15512 (IRA_COVER_CLASSES): Add MDR_REGS.
15513 (REGNO_REG_CLASS): Handle MDR_REG.
15514 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15515 (mn10300_register_move_cost): Likewise.
15516 * config/mn10300/mn10300.md (MDR_REG): New.
15517 (*movsi_internal): Handle moves to/from MDR_REGS.
15518
15519 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15520 POST_MODIFY.
15521 (mn10300_secondary_reload): Tidy combination reload classes.
15522 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15523 addresses for AM33. Allow symbolic offsets for reg+imm.
15524 (mn10300_regno_in_class_p): New.
15525 (mn10300_legitimize_reload_address): New.
15526 * config/mn10300/mn10300.h (enum reg_class): Remove
15527 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15528 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15529 SP_OR_GENERAL_REGS.
15530 (REG_CLASS_NAMES): Update to match.
15531 (REG_CLASS_CONTENTS): Likewise.
15532 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15533 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15534 (REGNO_IN_RANGE_P): Remove.
15535 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15536 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15537 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15538 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15539 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15540 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15541 (REGNO_GENERAL_P): New.
15542 (HAVE_POST_MODIFY_DISP): New.
15543 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15544 (LEGITIMIZE_RELOAD_ADDRESS): New.
15545 * config/mn10300/mn10300-protos.h: Update.
15546
15547 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15548 DATA_REGS for AM33 stack-pointer destination.
15549 (mn10300_preferred_output_reload_class): Likewise.
15550 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15551 into a form appropriate for ...
15552 (TARGET_SECONDARY_RELOAD): New.
15553 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15554 * config/mn10300/mn10300-protos.h: Update.
15555 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15556 reload_insi; use the "A" constraint for the scratch; handle AM33
15557 moves of sp to non-address registers.
15558
15559 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15560 (*movqi_internal): ... here.
15561 (*am33_movhi, *mn10300_movhi): Merge into...
15562 (*movhi_internal): ... here.
15563 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15564 as the source/destination of moves from/to SP.
15565 (movsf): Only allow for AM33-2.
15566 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15567 any integer constant constraint. Only allow for AM33-2. Tidy
15568 all of the alternative outputs.
15569 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15570 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15571 for MN103.
15572 (udivsi3, umodsi3): New patterns for MN103 only.
15573
15574 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15575
15576 * doc/tm.texi.in: Spell out that a lack of register class unions
15577 can lead to ICEs.
15578 * doc/tm.texi: Regenerate.
15579
15580 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15581
15582 PR rtl-optimization/47337
15583 * dce.c (check_argument_store): New function.
15584 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15585
15586 PR tree-optimization/47290
15587 * tree-eh.c (infinite_empty_loop_p): New function.
15588 (cleanup_empty_eh): Use it.
15589
15590 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15591
15592 PR target/46997
15593 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15594 (a64_expand_widen_sum): Ditto.
15595 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15596 (vec_extract_evenodd_help): Ditto.
15597 (vec_extract_evenv4hi): Ditto.
15598 (vec_extract_oddv4hi): Ditto.
15599 (vec_extract_evenv2si): Ditto.
15600 (vec_extract_oddv2si): Ditto.
15601 (vec_extract_evenv2sf): Ditto.
15602 (vec_extract_oddv2sf): Ditto.
15603 (vec_pack_trunc_v4hi: Ditto.
15604 (vec_pack_trunc_v2si): Ditto.
15605 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15606 (vec_interleave_highv8qi): Ditto.
15607 (mix1_r): Ditto.
15608 (vec_extract_oddv8qi): Ditto.
15609 (vec_interleave_lowv4hi): Ditto.
15610 (vec_interleave_highv4hi): Ditto.
15611 (vec_interleave_lowv2si): Ditto.
15612 (vec_interleave_highv2si): Ditto.
15613
15614 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15615
15616 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15617 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15618 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15619 (pa_c_mode_for_suffix): New.
15620 (TARGET_EXPAND_BUILTIN): Define.
15621 (TARGET_C_MODE_FOR_SUFFIX): Define.
15622 (pa_builtins): Define.
15623 (pa_init_builtins): Register __float128 type and init new support
15624 builtins.
15625 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15626 * config/pa/quadlib.c (_U_Qfcopysign): New.
15627
15628 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15629
15630 PR middle-end/46894
15631 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15632 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15633 are defined.
15634
15635 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15636
15637 PR tree-optimization/47179
15638 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15639 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15640
15641 2011-01-18 Richard Guenther <rguenther@suse.de>
15642
15643 PR rtl-optimization/47216
15644 * emit-rtl.c: Include tree-flow.h.
15645 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15646 of replicating it with different semantics.
15647 * Makefile.in (emit-rtl.o): Adjust.
15648
15649 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15650
15651 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15652 (cortex_a9_dp): Handle neon types correctly.
15653
15654 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15655
15656 PR rtl-optimization/47299
15657 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15658 subtarget. Use normal multiplication if both operands are constants.
15659 * expmed.c (expand_widening_mult): Don't try to optimize constant
15660 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15661 before using it.
15662
15663 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15664
15665 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15666 spacing after 'e.g.', typos, comma, hyphenation.
15667
15668 2011-01-17 Richard Henderson <rth@redhat.com>
15669
15670 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15671 (rx_restricted_mem_operand): New.
15672 (rx_shift_operand): Use register_operand.
15673 (rx_source_operand, rx_compare_operand): Likewise.
15674 * config/rx/rx.md (addsi3_flags): New expander.
15675 (adddi3): Rewrite as expander.
15676 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15677 (subsi3_flags): New expander.
15678 (subdi3): Rewrite as expander.
15679 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15680
15681 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15682 (rx_init_builtins): Remove sat builtin.
15683 (rx_expand_builtin): Likewise.
15684 * config/rx/rx.md (ssaddsi3): New.
15685 (*sat): Rename from sat. Represent the CC_REG input.
15686
15687 * config/rx/predicates.md (rshift_operator): New.
15688 * config/rx/rx.c (rx_expand_insv): Remove.
15689 * config/rx/rx-protos.h: Update.
15690 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15691 operand to the canonical position.
15692 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15693 (*bitclr, *bitclr_in_memory): Similarly.
15694 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15695 (insv): Retain the zero_extract in the expansion.
15696
15697 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15698 (bswaphi2, bitinvert, revw): Likewise.
15699
15700 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15701 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15702 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15703 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15704 (bitset, bitset_in_memory): Likewise.
15705 (bitinvert, bitinvert_in_memory): Likewise.
15706 (bitclr, bitclr_in_memory): Likewise.
15707 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15708 (rx_strend, rx_cmpstrn): Likewise.
15709 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15710 (bitop peep2 patterns): Remove.
15711
15712 * config/rx/rx.c (rx_match_ccmode): New.
15713 * config/rx/rx-protos.h: Update.
15714 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15715 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15716 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15717 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15718 (fix_truncsfsi2, floatsisf2): Likewise.
15719 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15720 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15721 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15722 (*subsi3_flags, *xorsi3_flags): New.
15723
15724 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15725
15726 * config/rx/rx.c (rx_print_operand): Remove workaround for
15727 unsplit comparison operations.
15728
15729 * config/rx/rx.md (movsicc): Split after reload.
15730 (*movsicc): Merge *movsieq and *movsine via match_operator.
15731 (*stcc): New pattern.
15732
15733 * config/rx/rx.c (rx_float_compare_mode): Remove.
15734 * config/rx/rx.h (rx_float_compare_mode): Remove.
15735 * config/rx/rx.md (cstoresi4): Split after reload.
15736 (*sccc): New pattern.
15737
15738 * config/rx/predicates.md (label_ref_operand): New.
15739 (rx_z_comparison_operator): New.
15740 (rx_zs_comparison_operator): New.
15741 (rx_fp_comparison_operator): New.
15742 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15743 Validate that the flags are set properly for the comparison.
15744 (rx_gen_cond_branch_template): Remove.
15745 (rx_cc_modes_compatible): Remove.
15746 (mode_from_flags): New.
15747 (flags_from_code): Rename from flags_needed_for_conditional.
15748 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15749 (rx_select_cc_mode): Likewise.
15750 (rx_split_fp_compare): New.
15751 (rx_split_cbranch): New.
15752 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15753 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15754 (*cbranchsf4): Similarly.
15755 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15756 match_operator and rx_split_cbranch.
15757 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15758 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15759 (*cmpsi): Rename from cmpsi.
15760 (*tstsi): Rename from tstsi.
15761 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15762 (*conditional_branch): Rename from conditional_branch.
15763 (*reveresed_conditional_branch): Remove.
15764 (b<code>): Remove expander.
15765 * config/rx/rx-protos.h: Update.
15766
15767 * config/rx/rx.c (rx_compare_redundant): Remove.
15768 * config/rx/rx.md (cmpsi): Don't use it.
15769 * config/rx/rx-protos.h: Update.
15770
15771 * config/rx/rx-modes.def (CC_F): New mode.
15772 * config/rx/rx.c (rx_select_cc_mode): New.
15773 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15774 * config/rx/rx-protos.h: Update.
15775
15776 2011-01-17 Richard Henderson <rth@redhat.com>
15777
15778 * except.c (dump_eh_tree): Fix stray ; after for statement.
15779
15780 2011-01-17 Richard Guenther <rguenther@suse.de>
15781
15782 PR tree-optimization/47313
15783 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15784 handling before copying the body. Properly deal with
15785 by-reference result in SSA form.
15786
15787 2011-01-17 Ian Lance Taylor <iant@google.com>
15788
15789 PR target/47219
15790 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15791 (struct_value_alias_set): Don't define.
15792 (sparc_option_override): Don't set sparc_sr_alias_set and
15793 struct_value_alias_set.
15794 (save_or_restore_regs): Use gen_frame_mem rather than calling
15795 set_mem_alias_set.
15796 (sparc_struct_value_rtx): Likewise.
15797
15798 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15799
15800 PR target/47318
15801 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15802 (_mm_maskstore_pd): Likewise.
15803 (_mm_maskload_ps): Likewise.
15804 (_mm_maskstore_ps): Likewise.
15805 (_mm256_maskload_pd): Change mask to __m256i.
15806 (_mm256_maskstore_pd): Likewise.
15807 (_mm256_maskload_ps): Likewise.
15808 (_mm256_maskstore_ps): Likewise.
15809
15810 * config/i386/i386-builtin-types.def: Updated.
15811 (ix86_expand_special_args_builtin): Likewise.
15812
15813 * config/i386/i386.c (bdesc_special_args): Update
15814 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15815 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15816 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15817 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15818
15819 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15820 Use <avxpermvecmode> on mask register.
15821 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15822
15823 2011-01-17 Olivier Hainque <hainque@adacore.com>
15824 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15825 Eric Botcazou <ebotcazou@adacore.com>
15826
15827 PR target/46655
15828 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15829 if <= USHRT_MAX in 32-bit mode.
15830
15831 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15832
15833 * doc/install.texi (Configuration, Specific): Wrap long
15834 lines in examples. Allow line wrapping in long options
15835 and URLs where beneficial for PDF output.
15836
15837 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15838
15839 * config/mips/mips.c (mips_classify_symbol): Don't return
15840 SYMBOL_PC_RELATIVE for nonlocal labels.
15841
15842 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15843
15844 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15845
15846 2011-01-15 Jan Hubicka <jh@suse.cz>
15847
15848 PR tree-optimization/47276
15849 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15850 declarations as needed.
15851
15852 2011-01-15 Martin Jambor <mjambor@suse.cz>
15853
15854 * common.opt (fdevirtualize): New flag.
15855 * doc/invoke.texi (Option Summary): Document it.
15856 * opts.c (default_options_table): Add devirtualize flag.
15857 * ipa-prop.c (detect_type_change): Return immediately if
15858 devirtualize flag is not set.
15859 (detect_type_change_ssa): Likewise.
15860 (compute_known_type_jump_func): Likewise.
15861 (ipa_analyze_virtual_call_uses): Likewise.
15862
15863 2011-01-14 Martin Jambor <mjambor@suse.cz>
15864
15865 PR tree-optimization/45934
15866 PR tree-optimization/46302
15867 * ipa-prop.c (type_change_info): New type.
15868 (stmt_may_be_vtbl_ptr_store): New function.
15869 (check_stmt_for_type_change): Likewise.
15870 (detect_type_change): Likewise.
15871 (detect_type_change_ssa): Likewise.
15872 (compute_complex_assign_jump_func): Check for dynamic type change.
15873 (compute_complex_ancestor_jump_func): Likewise.
15874 (compute_known_type_jump_func): Likewise.
15875 (compute_scalar_jump_functions): Likewise.
15876 (ipa_analyze_virtual_call_uses): Likewise.
15877 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15878
15879 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15880
15881 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15882 * config/i386/i386.opt (msse5): New Alias.
15883
15884 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15885
15886 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15887 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15888 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15889 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15890
15891 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15892
15893 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15894 -mcpu options.
15895 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15896 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15897 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15898 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15899 Likewise.
15900 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15901
15902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15903
15904 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15905
15906 2011-01-14 Mike Stump <mikestump@comcast.net>
15907
15908 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15909 * config/fr30/fr30.md: Likweise
15910 (movsi_push): Likewise.
15911 (movsi_pop): Likewise.
15912 (enter_func): Likewise.
15913 * config/moxie/moxie.md (movsi_push): Likewise.
15914 (movsi_pop): Likewise.
15915
15916 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15917
15918 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15919 %{no_archive} %{exact_version}.
15920 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15921 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15922 %{no_archive} %{exact_version}.
15923 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15924 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15925 * config/mips/vxworks.h: Likewise.
15926
15927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15928
15929 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15930
15931 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15932
15933 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15934 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15935
15936 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15937
15938 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15939 -nodefaultlib.
15940
15941 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15942
15943 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15944 for mcpu not cpu.
15945 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15946 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15947 not cpu.
15948 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15949 Don't handle -shlib.
15950
15951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15952
15953 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15954 (CC1_SPEC): Don't handle -profile.
15955
15956 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15957
15958 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15959 * config/mips/mips.h (CC1_SPEC): Likewise.
15960
15961 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15962
15963 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15964 * config/mips/mips.h (CC1_SPEC): Likewise.
15965
15966 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15967
15968 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15969 * config/m32r/linux.h (LINK_SPEC): Likewise.
15970 * config/mips/linux.h (LINK_SPEC): Likewise.
15971 * config/mips/linux64.h (LINK_SPEC): Likewise.
15972 * config/sparc/linux.h (LINK_SPEC): Likewise.
15973 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15974 LINK_SPEC): Likewise.
15975 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15976
15977 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15978
15979 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15980 %{version:-v}.
15981 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15982
15983 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15984
15985 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15986 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15987
15988 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15989
15990 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15991
15992 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15993
15994 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15995 supports -Bstatic/-Bdynamic.
15996 * configure: Regenerate.
15997
15998 2011-01-14 Jan Hubicka <jh@suse.cz>
15999 Jack Howarth <howarth@bromo.med.uc.edu>
16000
16001 PR target/46037
16002 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16003 when checking debug_info_level. Test write_symbols instead of
16004 debug_hooks->var_location when setting flag_var_tracking_uninit.
16005
16006 2011-01-14 Richard Guenther <rguenther@suse.de>
16007
16008 PR tree-optimization/47179
16009 * target.def (ref_may_alias_errno): New target hook.
16010 * targhooks.h (default_ref_may_alias_errno): Declare.
16011 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16012 (default_ref_may_alias_errno): New function.
16013 * target.h (struct ao_ref_s): Declare.
16014 * tree-ssa-alias.c: Include target.h.
16015 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16016 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16017 (targhooks.o): Likewise.
16018 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16019 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16020
16021 2011-01-14 Richard Guenther <rguenther@suse.de>
16022
16023 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16024
16025 2011-01-14 Richard Guenther <rguenther@suse.de>
16026
16027 PR tree-optimization/47280
16028 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16029 return CFG changes.
16030 (tree_ssa_forward_propagate_single_use_vars): Deal with
16031 CFG changes from associate_plusminus.
16032
16033 2011-01-14 Richard Guenther <rguenther@suse.de>
16034
16035 PR middle-end/47281
16036 Revert
16037 2011-01-11 Richard Guenther <rguenther@suse.de>
16038
16039 PR tree-optimization/46076
16040 * tree-ssa.c (useless_type_conversion_p): Conversions from
16041 unprototyped to empty argument list function types are useless.
16042
16043 2011-01-14 Richard Guenther <rguenther@suse.de>
16044
16045 PR tree-optimization/47286
16046 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16047
16048 2011-01-14 Martin Jambor <mjambor@suse.cz>
16049
16050 PR middle-end/46823
16051 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16052
16053 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16054
16055 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16056 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16057 * config/xtensa/xtensa.c (xtensa_libcall_value,
16058 xtensa_function_value_regno_p): New functions.
16059 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16060
16061 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16062
16063 PR c++/47213
16064 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16065 PE specific hook.
16066 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16067 New function prototype.
16068 * config/i386/winnt.c (i386_pe_assemble_visibility):
16069 Warn only if attribute was specified by user.
16070
16071 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16072
16073 PR target/47251
16074 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16075 floating point.
16076 (floatunsdidf2_fcfidu): Ditto.
16077
16078 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16079
16080 * config/s390/s390.c (print_operand_address): Replace 'error' with
16081 'output_operand_lossage'.
16082 (print_operand): Likewise.
16083
16084 2011-01-13 Jeff Law <law@redhat.com>
16085
16086 PR rtl-optimization/39077
16087 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16088 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16089 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16090 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16091 * gcse.c (prune_insertions_deletions): New function.
16092 (compute_pre_data): Use it.
16093
16094 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16095
16096 PR debug/PR46973
16097 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16098 static function.
16099 (prune_unused_types_mark): Use it.
16100
16101 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16102
16103 PR rtl-optimization/45352
16104 * sel-sched.c: Update copyright years.
16105 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16106 in the advancing loop when we have issued issue_rate insns.
16107
16108 2011-01-12 Richard Henderson <rth@redhat.com>
16109
16110 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16111 (TARGET_MD_ASM_CLOBBERS): New.
16112
16113 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16114 (TARGET_DELEGITIMIZE_ADDRESS): New.
16115
16116 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16117 (clzsi2, *bsch): New patterns.
16118
16119 * config/mn10300/mn10300.md (INT): New mode iterator.
16120 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16121
16122 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16123 flag_split_wide_types.
16124
16125 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16126 (mn10300_trampoline_init): Rewrite without a template, an immediate
16127 load and a direct branch.
16128 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16129
16130 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16131
16132 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16133 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16134 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16135 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16136
16137 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16138
16139 PR debug/47209
16140 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16141 of type.
16142
16143 2011-01-12 Jan Hubicka <jh@suse.cz>
16144
16145 PR driver/47244
16146 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16147 (PLUGIN_COND_CLOSE): New macro.
16148 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16149
16150 2011-01-12 Richard Guenther <rguenther@suse.de>
16151
16152 PR lto/47259
16153 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16154 register variables in a MEM_REF.
16155
16156 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16157
16158 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16159 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16160 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16161 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16162 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16163 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16164 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16165 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16166 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16167 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16168 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16169 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16170 * config/gnu-user.h: New. Copied from linux.h.
16171 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16172 GNU_USER_TARGET_STARTFILE_SPEC.
16173 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16174 GNU_USER_TARGET_ENDFILE_SPEC.
16175 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16176 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16177 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16178 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16179 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16180 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16181 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16182 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16183 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16184 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16185 * config/arm/linux-eabi.h (CC1_SPEC): Use
16186 GNU_USER_TARGET_CC1_SPEC.
16187 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16188 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16189 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16190 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16191 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16192 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16193 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16194 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16195
16196 2011-01-12 Richard Guenther <rguenther@suse.de>
16197
16198 PR other/46946
16199 * doc/invoke.texi (ffast-math): Document it is turned on
16200 with -Ofast.
16201
16202 2011-01-12 Jan Hubicka <jh@suse.cz>
16203
16204 PR tree-optimization/47233
16205 * opts.c (common_handle_option): Disable ipa-reference with profile
16206 feedback.
16207
16208 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16209
16210 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16211 error message.
16212
16213 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16214
16215 * c-parser.c (c_lex_one_token): Updated and reindented some
16216 comments. No changes in code.
16217
16218 2011-01-11 Ian Lance Taylor <iant@google.com>
16219
16220 * godump.c (go_output_var): Don't output the variable if there is
16221 already a type with the same name.
16222
16223 2011-01-11 Ian Lance Taylor <iant@google.com>
16224
16225 * godump.c (go_format_type): Don't generate float80.
16226
16227 2011-01-11 Richard Henderson <rth@redhat.com>
16228
16229 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16230 declaration. Rewrite for both speed and size.
16231 (mn10300_address_cost_1): Remove.
16232 (mn10300_register_move_cost): New.
16233 (mn10300_memory_move_cost): New.
16234 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16235 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16236 extensions, shifts, BSWAP, CLZ.
16237 (mn10300_wide_const_load_uses_clr): Remove.
16238 (TARGET_REGISTER_MOVE_COST): New.
16239 (TARGET_MEMORY_MOVE_COST): New.
16240 * config/mn10300/mn10300-protos.h: Update.
16241 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16242
16243 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16244 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16245 * config/mn10300/mn10300-protos.h: Update.
16246 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16247 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16248 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16249 (*test_int_bitfield, *test_byte_bitfield): Remove.
16250 (*bit_test, *subreg_bit_test): Remove.
16251 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16252
16253 * config/mn10300/constraints.md ("c"): Rename from "A".
16254 ("A", "D"): New constraint letters.
16255 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16256 (fmssf4, fnmasf4, fnmssf4): Likewise.
16257
16258 * config/mn10300/mn10300.md (isa): New attribute.
16259 (enabled): New attribute.
16260
16261 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16262 (abssf2, negsf2): Define only for hardware fp.
16263 (sqrtsf2): Reformat.
16264 (addsf3, subsf3, mulsf3): Merge expander and insn.
16265
16266 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16267 (DEBUGGER_AUTO_OFFSET): Remove.
16268 (DEBUGGER_ARG_OFFSET): Remove.
16269
16270 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16271 Emit register stores with the same offsets as the hardware.
16272 (mn10300_store_multiple_operation): Don't check that the register
16273 save offsets are monotonic.
16274 * config/mn10300/mn10300-protos.h: Update.
16275
16276 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16277
16278 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16279 in terms of the value on the stack, not the MDR register.
16280
16281 2011-01-11 Jan Hubicka <jh@suse.cz>
16282
16283 PR lto/45721
16284 PR lto/45375
16285 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16286 (symbol_alias_set_destroy, symbol_alias_set_contains,
16287 propagate_aliases_backward): Declare.
16288 * lto-streamer-out.c (struct sets): New sturcture.
16289 (trivally_defined_alias): New function.
16290 (output_alias_pair_p): Rewrite.
16291 (output_unreferenced_globals): Fix output of alias pairs.
16292 (produce_symtab): Likewise.
16293 * ipa.c (function_and_variable_visibility): Set weak alias destination
16294 as needed in lto.
16295 * varasm.c (symbol_alias_set_t): Remove.
16296 (symbol_alias_set_destroy): Export.
16297 (propagate_aliases_forward, propagate_aliases_backward): New functions
16298 based on ...
16299 (compute_visible_aliases): ... this one; remove.
16300 (trivially_visible_alias): New
16301 (trivially_defined_alias): New.
16302 (remove_unreachable_alias_pairs): Rewrite.
16303 (finish_aliases_1): Reorganize code checking if alias is defined.
16304 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16305 in LTO mode.
16306
16307 2011-01-11 Richard Guenther <rguenther@suse.de>
16308
16309 PR tree-optimization/46076
16310 * tree-ssa.c (useless_type_conversion_p): Conversions from
16311 unprototyped to empty argument list function types are useless.
16312
16313 2011-01-11 Richard Guenther <rguenther@suse.de>
16314
16315 PR middle-end/45235
16316 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16317 volatile MEMs as MEM_READONLY_P.
16318
16319 2011-01-11 Richard Guenther <rguenther@suse.de>
16320
16321 PR tree-optimization/47239
16322 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16323
16324 2011-01-11 Jeff Law <law@redhat.com>
16325
16326 PR tree-optimization/47086
16327 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16328 IVs from statements that might throw.
16329
16330 2011-01-10 Jan Hubicka <jh@suse.cz>
16331
16332 PR lto/45375
16333 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16334
16335 2011-01-10 Jan Hubicka <jh@suse.cz>
16336
16337 PR lto/45375
16338 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16339 when correcting profile.
16340
16341 2011-01-10 Jan Hubicka <jh@suse.cz>
16342
16343 PR lto/46083
16344 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16345 DECL_FINI_PRIORITY.
16346 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16347 Restore DECL_FINI_PRIORITY.
16348
16349 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16350
16351 * doc/gimple.texi: Fix quoting of multi-word return values in
16352 @deftypefn statements. Ensure presence of return value. Wrap
16353 overlong @deftypefn lines.
16354 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16355 descriptions of removed functions.
16356 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16357 of multi-word return value in @deftypefn statement.
16358
16359 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16360
16361 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16362 (Conditional Expressions, Logical Operators)
16363 (Statement and operand traversals): Do not indent smallexample
16364 code. Fix duplicate function argument in example.
16365
16366 2011-01-10 Jeff Law <law@redhat.com>
16367
16368 PR tree-optimization/47141
16369 * ipa-split.c (split_function): Handle case where we are
16370 returning a value and the return block has a virtual operand phi.
16371
16372 2011-01-10 Jan Hubicka <jh@suse.cz>
16373
16374 PR tree-optimization/47234
16375 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16376 (pass_feedback_split_functions): Declare.
16377 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16378 tree-profile.
16379 * ipa-split.c (gate_split_functions): Update comments; disable
16380 split-functions for profile_arc_flag and branch_probabilities.
16381 (gate_feedback_split_functions): New function.
16382 (execute_feedback_split_functions): New function.
16383 (pass_feedback_split_functions): New global var.
16384
16385 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16386
16387 PR lto/46760
16388 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16389 calling gimple_call_set_cannot_inline.
16390
16391 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16392
16393 * config/darwin-sections.def: Remove unused section.
16394
16395 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16396
16397 PR c++/47218
16398 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16399
16400 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16401
16402 PR objc/47232
16403 * c-parser.c (c_parser_declaration_or_fndef): Improved
16404 error message.
16405
16406 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16407
16408 * config/i386/winnt.c (i386_pe_start_function): Make sure
16409 to switch back to function's section.
16410
16411 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16412
16413 PR gcc/46902
16414 PR testsuite/46912
16415 * plugin.c: Move include of dlfcn.h from here...
16416 * system.h: ... to here.
16417
16418 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16419
16420 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16421 file name.
16422 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16423 two extra empty pages in PDF output.
16424
16425 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16426
16427 PR objc/47078
16428 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16429 for error recovery purposes behave as if it was not specified so
16430 that the default type is usd.
16431
16432 2011-01-07 Jan Hubicka <jh@suse.cz>
16433
16434 PR tree-optmization/46469
16435 * ipa.c (function_and_variable_visibility): Clear needed flags on
16436 nodes with external decls; handle weakrefs merging correctly.
16437
16438 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16439
16440 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16441 not false.
16442
16443 2011-01-07 Jan Hubicka <jh@suse.cz>
16444
16445 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16446 and no longer claim that gold is required for linker plugin.
16447 * configure: Regenerate.
16448 * gcc.c (PLUGIN_COND): New macro.
16449 (LINK_COMMAND_SPEC): Use it.
16450 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16451 * config.in (HAVE_LTO_PLUGIN): New.
16452 * configure.ac (--with-lto-plugin): New parameter; autodetect
16453 HAVE_LTO_PLUGIN.
16454
16455 2011-01-07 Jan Hubicka <jh@suse.cz>
16456
16457 PR tree-optimization/46367
16458 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16459 when we can update original.
16460 (cgraph_mark_inline_edge): Sanity check.
16461 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16462
16463 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16464
16465 * config/spu/spu.h (ASM_COMMENT_START): Define.
16466
16467 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16468
16469 PR driver/42445
16470 * gcc.c (%>S): New.
16471 (SWITCH_KEEP_FOR_GCC): Likewise.
16472 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16473 (do_spec_1): Handle "%>".
16474
16475 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16476
16477 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16478
16479 PR target/47201
16480 * config/i386/i386.c (ix86_delegitimize_address): If
16481 simplify_gen_subreg fails, return orig_x.
16482
16483 PR bootstrap/47187
16484 * value-prof.c (gimple_stringop_fixed_value): Handle
16485 lhs of the call properly.
16486
16487 2011-01-07 Jan Hubicka <jh@suse.cz>
16488
16489 PR lto/45375
16490 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16491
16492 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16493
16494 * target.def (function_switched_text_sections): New hook.
16495 * doc/tm.texi: Regenerated.
16496 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16497 * final.c (default_function_switched_text_sections): New.
16498 (final_scan_insn): Call function_switched_text_sections when a
16499 mid-function section change occurs.
16500 * output.h (default_function_switched_text_sections): Declare.
16501 * config/darwin-protos.h (darwin_function_switched_text_sections):
16502 Likewise.
16503 * config/darwin.c (darwin_function_switched_text_sections): New.
16504 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16505
16506 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16507
16508 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16509 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16510 the secondary code fragment when outputting for DWARF == 2.
16511
16512 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16513
16514 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16515 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16516 Remove.
16517 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16518 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16519
16520 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16521
16522 PR debug/46704
16523 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16524 when it is not empty.
16525
16526 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16527
16528 Bobcat Enablement
16529 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16530 (case ${target}): Add btver1.
16531 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16532 -march=native recognize btver1 processors.
16533 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16534 btver1 def_and_undef
16535 * config/i386/i386.c (struct processor_costs btver1_cost): New
16536 btver1 cost table.
16537 (m_BTVER1): New definition.
16538 (m_AMD_MULTIPLE): Includes m_BTVER1.
16539 (initial_ix86_tune_features): Add btver1 tune.
16540 (processor_target_table): Add btver1 entry.
16541 (static const char *const cpu_names): Add btver1 entry.
16542 (software_prefetching_beneficial_p): Add btver1.
16543 (ix86_option_override_internal): Add btver1 instruction sets.
16544 (ix86_issue_rate): Add btver1.
16545 (ix86_adjust_cost): Add btver1.
16546 * config/i386/i386.h (TARGET_BTVER1): New definition.
16547 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16548 (enum processor_type): Add PROCESSOR_BTVER1.
16549 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16550
16551 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16552
16553 PR target/43309
16554 * config/i386/i386.c (legitimize_tls_address)
16555 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16556 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16557 (tls_initial_exec_64_sun): New pattern.
16558
16559 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16560
16561 * doc/invoke.texi (Overall Options): Improve wording and markup
16562 of the description of -wrapper.
16563
16564 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16565
16566 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16567 rdynamic, threads): New Driver options.
16568
16569 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16570
16571 PR target/38118
16572 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16573 if coming from .tdata.
16574 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16575
16576 2011-01-06 Jan Hubicka <jh@suse.cz>
16577
16578 PR lto/47188
16579 * collect2.c (main): Do not enable LTOmode when plugin is active.
16580
16581 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16582
16583 PR other/45915
16584 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16585 --version output if supported.
16586 * configure: Regenerate.
16587
16588 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16589
16590 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16591 Driver options.
16592
16593 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16594
16595 PR c/47150
16596 * c-convert.c (convert): When converting a complex expression
16597 other than COMPLEX_EXPR to a different complex type, ensure
16598 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16599 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16600 when converting COMPLEX_TYPE.
16601
16602 2011-01-06 Ira Rosen <irar@il.ibm.com>
16603
16604 PR tree-optimization/47139
16605 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16606 only the last reduction value is used outside the loop. Update
16607 documentation.
16608
16609 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16610
16611 * config/rtems.opt: New.
16612 * config.gcc (*-*-rtems*): Use rtems.opt.
16613
16614 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16615
16616 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16617 processors do not support 3DNow instructions.
16618
16619 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16620
16621 * config/spu/spu.c (spu_option_override): Set parameter
16622 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16623
16624 2011-01-05 Jan Hubicka <jh@suse.cz>
16625
16626 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16627 at the command line.
16628
16629 2011-01-05 Martin Jambor <mjambor@suse.cz>
16630
16631 PR lto/47162
16632 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16633 deltas on streamed outgoing edges.
16634 (output_node_opt_summary): Output info for outgoing edges only when
16635 the node is in new parameter set.
16636 (output_cgraph_opt_summary): New parameter set, passed to the two
16637 aforementioned functions. Update its forward declaration and its
16638 callee too.
16639
16640 2011-01-05 Tom Tromey <tromey@redhat.com>
16641
16642 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16643 operator to c_finish_omp_atomic.
16644 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16645 (build_unary_op): Update.
16646 (build_modify_expr): Update.
16647 (build_asm_expr): Update.
16648
16649 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16650
16651 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16652 newly inserted insns.
16653 (pad_bb): Likewise.
16654 (spu_emit_branch_hint): Likewise.
16655 (insert_hbrp_for_ilb_runout): Likewise.
16656 (spu_machine_dependent_reorg): Call df_finish_pass after
16657 schedule_insns returns.
16658
16659 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16660
16661 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16662
16663 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16664
16665 PR tree-optimization/47005
16666 * tree-sra.c (struct access): Add 'non_addressable' bit.
16667 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16668 (decide_one_param_reduction): Return 0 if the parameter is passed by
16669 reference and one of the accesses in the group is non_addressable.
16670
16671 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16672
16673 PR tree-optimization/47056
16674 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16675 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16676 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16677
16678 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16679
16680 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16681 initializer. Skip view conversions from aggregate types.
16682
16683 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16684
16685 PR bootstrap/47055
16686 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16687
16688 2011-01-04 Philipp Thomas <pth@suse.de>
16689
16690 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16691 obvious typo.
16692
16693 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16694
16695 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16696 on empty epilogue sequences.
16697
16698 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16699
16700 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16701 non-static): New Driver options.
16702
16703 2011-01-04 Jie Zhang <jie@codesourcery.com>
16704
16705 PR driver/47137
16706 * gcc.c (default_compilers[]): Set combinable field to 0
16707 for all assembly languages.
16708
16709 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16710
16711 * config/mips/loongson3a.md: New file.
16712 * config/mips/mips.md: Include loongson3a.md.
16713 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16714 TUNE_LOONGSON_3A.
16715
16716 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16717
16718 PR middle-end/47017
16719 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16720 instead of convert_memory_address_addr_space on the base expression.
16721
16722 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16723
16724 * config/spu/spu.c (spu_option_override): Update error text
16725 for bad -march= / -mtune= values.
16726
16727 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16728
16729 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16730 if branch-hint optimization will be performed.
16731
16732 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16733
16734 PR tree-optimization/47148
16735 * ipa-split.c (split_function): Convert arguments to
16736 DECL_ARG_TYPE if possible.
16737
16738 PR tree-optimization/47155
16739 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16740 when computing uns.
16741
16742 PR rtl-optimization/47157
16743 * combine.c (try_combine): If undobuf.other_insn becomes
16744 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16745 and set *new_direct_jump_p too.
16746
16747 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16748
16749 PR tree-optimization/47021
16750 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16751
16752 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16753
16754 * gcc.c (process_command): Update copyright notice dates.
16755 * gcov.c (print_version): Likewise.
16756 * gcov-dump.c (print_version): Likewise.
16757 * mips-tfile.c (main): Likewise.
16758 * mips-tdump.c (main): Likewise.
16759
16760 2011-01-03 Martin Jambor <mjambor@suse.cz>
16761
16762 PR tree-optimization/46801
16763 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16764 aggregate fields start at byte boundary instead of the bit-field flag.
16765
16766 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16767
16768 PR driver/47137
16769 * gcc.c (main): Revert revision 168407.
16770
16771 2011-01-03 Martin Jambor <mjambor@suse.cz>
16772
16773 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16774
16775 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16776
16777 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16778 vector optab to expand vector/scalar shift, update gimple to vector.
16779
16780 2011-01-03 Martin Jambor <mjambor@suse.cz>
16781
16782 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16783 a thunk.
16784
16785 2011-01-03 Martin Jambor <mjambor@suse.cz>
16786
16787 PR tree-optimization/46984
16788 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16789 HOST_WIDE_INT.
16790 (cgraph_create_indirect_edge): Fixed line length.
16791 (cgraph_indirect_call_info): Declare.
16792 (cgraph_make_edge_direct) Update declaration.
16793 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16794 (cgraph_create_indirect_edge): Use it.
16795 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16796 callees.
16797 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16798 the new thunk_delta representation.
16799 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16800 HOST_WIDE_INT.
16801 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16802 (ipa_read_indirect_edge_info): Likewise.
16803 * lto-cgraph.c (output_edge_opt_summary): New function.
16804 (output_node_opt_summary): Call it on all outgoing edges.
16805 (input_edge_opt_summary): New function.
16806 (input_node_opt_summary): Call it on all outgoing edges.
16807
16808 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16809
16810 PR driver/47137
16811 * gcc.c (main): Don't check have_o when settting combine_inputs.
16812
16813 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16814
16815 * regrename.c: Add general comment describing the pass.
16816 (struct du_head): Remove 'length' field.
16817 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16818 (regrename_optimize): Do not sort chains. Rework comments, add others.
16819 Force renaming to the preferred class (if any) in the first pass and do
16820 not consider registers that belong to it in the second pass.
16821 (create_new_chain): Do not set 'length' field.
16822 (scan_rtx_reg): Likewise.
16823
16824 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16825
16826 PR tree-optimization/47140
16827 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16828 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16829 to bit_value_binop.
16830
16831 PR rtl-optimization/47028
16832 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16833 parm_birth_insn instead of at the beginning of first bb.
16834
16835 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16836
16837 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16838 Remove the word "see" before "@pxref".
16839 * doc/rtl.texi: Remove the word "see" before "@pxref".
16840
16841 2011-01-01 Jan Hubicka <jh@suse.cz>
16842
16843 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16844 memory.
16845
16846 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16847
16848 PR target/38662
16849 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16850
16851 \f
16852 Copyright (C) 2011 Free Software Foundation, Inc.
16853
16854 Copying and distribution of this file, with or without modification,
16855 are permitted in any medium without royalty provided the copyright
16856 notice and this notice are preserved.