tree.c (build_common_tree_nodes): Also initialize size_type_node.
[gcc.git] / gcc / ChangeLog
1 2011-06-07 Richard Guenther <rguenther@suse.de>
2
3 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
4 Call set_sizetype from here.
5
6 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
7
8 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9 (*maddhisi4tb, *maddhisi4tt): New define_insns.
10
11 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
12 Andrew Stubbs <ams@codesourcery.com>
13
14 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15 multiplies.
16 * doc/md.texi (Canonicalization of Instructions): Document widening
17 multiply canonicalization.
18
19 2011-06-07 Jakub Jelinek <jakub@redhat.com>
20
21 PR gcov-profile/49299
22 * value-prof.c (gimple_ic): Don't assume icall has
23 a fallthru edge.
24
25 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
26
27 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
28 a pointer.
29 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
30 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
31 vect_recog_pow_pattern): Likewise.
32 (vect_pattern_recog_1): Remove declaration.
33 (widened_name_p): Remove declaration. Add new argument to specify
34 whether to check that both types are either signed or unsigned.
35 (vect_recog_widen_mult_pattern): Update documentation. Handle
36 unsigned patterns and multiplication by constants.
37 (vect_pattern_recog_1): Update vect_recog_func references. Use
38 statement information from the statement returned from pattern
39 detection functions.
40 (vect_pattern_recog): Update vect_recog_func reference.
41 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
42 multiplication by a constant use the type of the other operand.
43
44 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
45
46 PR rtl-optimization/49145
47 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
48
49 2011-06-06 Jakub Jelinek <jakub@redhat.com>
50
51 PR debug/49262
52 * dwarf2out.c (native_encode_initializer): Decrement count in each
53 iteration.
54
55 PR debug/49294
56 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
57 non-MODE_INT modes.
58
59 PR c++/49264
60 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
61 if stmt folded into nothing.
62 * tree-inline.c (fold_marked_statements): If a builtin at the
63 end of a bb folded into nothing, just update cgraph edges
64 and move to next bb.
65 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
66 to be NULL. Don't compute count and frequency if new_call is NULL.
67
68 2011-06-04 Diego Novillo <dnovillo@google.com>
69
70 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
71 (cgraph.o): Likewise.
72 (cgraphunit.o): Likewise.
73 * cgraphunit.c: Include lto-streamer.h
74 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
75 if LTO is enabled.
76 * lto-streamer-in.c (unpack_value_fields): Call
77 streamer_hooks.unpack_value_fields if set.
78 (lto_materialize_tree): For unhandled nodes, first try to
79 call lto_streamer_hooks.alloc_tree, if it exists.
80 (lto_input_ts_decl_common_tree_pointers): Move reading of
81 DECL_INITIAL to lto_streamer_read_tree.
82 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
83 (lto_streamer_read_tree): New.
84 (lto_reader_init): Rename from lto_init_reader.
85 Move initialization code to lto/lto.c.
86 * lto-streamer-out.c (pack_value_fields): Call
87 streamer_hooks.pack_value_fields if set.
88 (lto_output_tree_ref): For tree nodes that are not
89 normally indexable, call streamer_hooks.indexable_with_decls_p
90 before giving up.
91 (lto_output_ts_decl_common_tree_pointers): Move handling
92 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
93 lto_streamer_write_tree.
94 (lto_output_tree_header): Call streamer_hooks.is_streamable
95 instead of lto_is_streamable.
96 Call lto_streamer_hooks.output_tree_header if set.
97 (lto_write_tree): Call lto_streamer_hooks.write_tree if
98 set.
99 (lto_streamer_write_tree): New.
100 (lto_output): Call lto_streamer_init directly.
101 (lto_writer_init): Remove.
102 * lto-streamer.c (streamer_hooks): New.
103 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
104 instead of lto_preload_common_nodes.
105 (lto_is_streamable): Move from lto-streamer.h
106 (lto_streamer_hooks_init): New.
107 (streamer_hooks): New.
108 (streamer_hooks_init): New.
109 * lto-streamer.h (struct output_block): Forward declare.
110 (struct lto_input_block): Likewise.
111 (struct data_in): Likewise.
112 (struct bitpack_d): Likewise.
113 (struct streamer_hooks): Declare.
114 (streamer_hooks): Declare.
115 (lto_streamer_hooks_init): Declare.
116 (lto_streamer_write_tree): Declare.
117 (lto_streamer_read_tree): Declare.
118 (streamer_hooks_init): Declare.
119 (lto_is_streamable): Move to lto-streamer.c
120
121 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
122
123 * longlong.h (smul_ppmm): The resulting register pair contains the
124 higher order word first.
125
126 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
127
128 PR tree-optimization/46728
129 * builtins.c (powi_table): Remove.
130 (powi_lookup_cost): Remove.
131 (powi_cost): Remove.
132 (expand_powi_1): Remove.
133 (expand_powi): Remove.
134 (expand_builtin_pow_root): Remove.
135 (expand_builtin_pow): Remove.
136 (expand_builtin_powi): Eliminate handling of constant exponent.
137 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
138
139 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
140
141 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
142
143 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
144
145 * dce.c (reset_unmarked_insns_debug_uses): New.
146 (delete_unmarked_insns): Skip debug insns.
147 (prescan_insns_for_dce): Likewise.
148 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
149 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
150 active reg can be found.
151 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
152 (convert_regs_1): Use it.
153
154 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
155
156 * tree-pretty-print.c (dump_function_header): Add flags.
157 Don't dump decl_uid with nouid.
158 * tree-pretty-print.h (dump_function_header): Adjust.
159 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
160 * passes.c (pass_init_dump_file): Pass dump_flags on.
161 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
162
163 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
164
165 PR bootstrap/49270
166 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
167
168 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
169
170 PR tree-optimization/49243
171 * calls.c (setjmp_call_p): Also check if fndecl has the
172 returns_twice attribute.
173
174 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175
176 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
177 -ffast-math etc.
178
179 2011-06-06 Richard Henderson <rth@redhat.com>
180 Georg-Johann Lay <avr@gjlay.de>
181
182 PR target/42210
183 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
184 New predicates.
185 * config/avr/avr.md ("insv"): New insn expander.
186 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
187 "*insv.not.io", "*insv.reg"): New insns.
188
189 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
190
191 PR target/49285
192 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
193 predicate to nonimmediate_operand from memory_operand for the
194 operand that is to be forced to memory by the expander. Lose
195 the constraints.
196
197 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
198
199 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
200 EH return when delayed branches are disabled.
201
202 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
203
204 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
205 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
206 calculation.
207 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
208 Simplify MODE_V1DF and MODE_V2SF handling.
209 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
210 Simplify MODE_SF handling.
211
212 2011-06-04 Jan Hubicka <jh@suse.cz>
213
214 PR tree-optimization/48893
215 PR tree-optimization/49091
216 PR tree-optimization/49179
217 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
218 Bounds check.
219
220 2011-06-04 Jan Hubicka <jh@suse.cz>
221
222 PR lto/48954
223 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
224
225 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
226
227 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
228
229 2011-06-04 Jakub Jelinek <jakub@redhat.com>
230
231 PR target/49281
232 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
233 to be strictly smaller than 1 << shiftcount.
234
235 2011-06-04 Jan Hubicka <jh@suse.cz>
236
237 PR tree-optimize/48929
238 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
239 of empty predicate.
240
241 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
242
243 PR debug/48333
244 * calls.c (emit_call_1): Prefer the __builtin declaration of
245 builtin functions.
246
247 2011-06-03 Diego Novillo <dnovillo@google.com>
248
249 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
250 (lto_input_tree_pointers): Likewise.
251 * lto-streamer-out.c (pack_value_fields): Likewise.
252 (lto_output_tree_pointers): Likewise.
253 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
254 and OPTIMIZATION_NODE.
255
256 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
257
258 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
259 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
260 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
261 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
262 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
263 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
264 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
265 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
266 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
267 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
268 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
269 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
270 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
271 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
272 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
273 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
274 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
275 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
276 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
277 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
278 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
279 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
280 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
281 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
282 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
283 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
284 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
285 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
286 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
287 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
288 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
289 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
290 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
291 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
292 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
293 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
294 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
295 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
296 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
297 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
298 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
299 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
300 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
301 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
302 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
303 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
304 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
305 * system.h (MD_UNWIND_SUPPORT): Poison.
306 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
307 * doc/tm.texi: Regenerate.
308 * unwind-dw2.c: Include md-unwind-support.h instead of
309 MD_UNWIND_SUPPORT.
310 * config/ia64/unwind-ia64.c: Likewise.
311 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
312
313 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
314
315 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
316
317 2011-06-03 Richard Henderson <rth@redhat.com>
318 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319
320 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
321 (sigill_hdlr): Correct insn, insn size.
322 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
323
324 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
325
326 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
327 t-slibgcc-dummy.
328 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
329 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
330 * config/mips/t-iris: Remove.
331 * config/mips/t-irix6: New file.
332 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
333
334 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335
336 * Makefile.in (LIB2ADDEHDEP): Remove.
337 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
338 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
339 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
340 * config/t-darwin (LIB2ADDEHDEP): Remove.
341 * config/t-freebsd (LIB2ADDEHDEP): Remove.
342 * config/t-linux (LIB2ADDEHDEP): Remove.
343
344 2011-06-03 Diego Novillo <dnovillo@google.com>
345
346 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
347 (lto_register_var_decl_in_symtab): Likewise.
348 (lto_register_function_decl_in_symtab): Likewise.
349 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
350 logic to uniquify_nodes.
351
352 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353
354 * config/alpha/t-osf5: Remove.
355 * config/alpha/t-osf-pthread: Remove.
356 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
357 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
358
359 2011-06-03 Julian Brown <julian@codesourcery.com>
360
361 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
362 (strongarm1110): Use strongarm tuning.
363 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
364 * config/arm/arm.c (arm_strongarm_tune): New.
365 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
366 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
367 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
368 setting, using previous defaults or 1 for Cortex-A5.
369 (arm_option_override): Set max_insns_skipped from current tuning.
370
371 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
372
373 * doc/install.texi (Options specification): Document --with-specs.
374
375 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
376
377 * config/arm/neon.md (orndi3_neon): Actually split it.
378
379 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
380
381 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
382 * var-tracking.c (reverse_op): Limite recurse depth to 5.
383
384 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
385
386 PR debug/47590
387 * target.def (delay_sched2, delay_vartrack): New.
388 * doc/tm.texi.in: Update.
389 * doc/tm.texi: Rebuild.
390 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
391 * var-tracking.c (gate_handle_var_tracking): Likewise.
392 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
393 (bfin_flag_var_tracking): Drop.
394 (output_file_start): Don't save and override flag_var_tracking.
395 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
396 (bfin_reorg): Test original variables.
397 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
398 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
399 (ia64_flag_var_tracking): Drop.
400 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
401 (ia64_file_start): Don't save and override flag_var_tracking.
402 (ia64_override_options_after_change): Ditto
403 flag_schedule_insns_after_reload.
404 (ia64_reorg): Test original variables.
405 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
406 (picochip_flag_var_tracking): Drop.
407 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
408 (picochip_option_override): Don't save and override
409 flag_schedule_insns_after_reload.
410 (picochip_asm_file_start): Ditto flag_var_tracking.
411 (picochip_reorg): Test original variables.
412 * config/spu/spu.c (spu_flag_var_tracking): Drop.
413 (TARGET_DELAY_VARTRACK): Define.
414 (spu_var_tracking): New.
415 (spu_machine_dependent_reorg): Call it.
416 (asm_file_start): Don't save and override flag_var_tracking.
417
418 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
419
420 PR target/49163
421 * config/sh/predicates.md (general_movsrc_operand): Return 0
422 for memory and memory subreg of which address is an invalid
423 indexed address for QI and HImode.
424 (general_movdst_operand): Likewise.
425
426 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
427
428 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
429 edges only, when there is a non-local label in the function.
430 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
431
432 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
433
434 * config/i386/constraints.md (Y3): New register constraint.
435 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
436 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
437 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
438 *sse2_interleave_lowv2df.
439
440 2011-06-02 Julian Brown <julian@codesourcery.com>
441
442 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
443 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
444 (arm_cortex_a5_tune): New.
445
446 2011-06-02 Julian Brown <julian@codesourcery.com>
447
448 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
449 * config/arm/arm.c (arm_default_branch_cost): New.
450 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
451 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
452 (arm_fa726_tune): Set branch_cost field using
453 arm_default_branch_cost.
454 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
455 current_tune structure.
456 * dojump.c (tm_p.h): Include file.
457
458 2011-06-02 Julian Brown <julian@codesourcery.com>
459
460 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
461 tuning.
462 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
463 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
464 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
465 field.
466 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
467 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
468 (arm_fa726te_tune): Add prefer_constant_pool setting.
469 (arm_v6t2_tune, arm_cortex_tune): New.
470 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
471 prefer_constant_pool setting.
472
473 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
474
475 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
476 switch statement.
477 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
478 (*movdf_internal) <case 6,7,8>: Ditto.
479
480 * config/i386/constraints.md (Y4): New register constraint.
481 * config/i386/sse.md (vec_set<mode>_0): Merge with
482 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
483 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
484 *vec_extractv2di_1_sse.
485 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
486 and *vec_concatv2di_rex64_sse.
487
488 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
489
490 PR target/48807
491 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
492 of cgraph_local_info for null before attempting to use it.
493
494 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
495
496 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
497 (current_function_dynamic_alloc_count): Delete.
498 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
499 (expand_builtin_nonlocal_goto): Remove obsolete comment.
500 (expand_builtin_update_setjmp_buf): Remove dead code.
501 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
502 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
503 support.
504 * function.c (instantiate_virtual_regs): Likewise.
505 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
506 for a block with a single abnormal incoming edge.
507 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
508 (SETJMP_VIA_SAVE_AREA): Delete.
509 * config/sparc/sparc-protos.h (load_got_register): Declare.
510 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
511 (load_got_register): Make global.
512 (sparc_frame_pointer_required): Add 'static'.
513 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
514 (sparc_builtin_setjmp_frame_value): New function.
515 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
516 (save_stack_nonlocal): New expander.
517 (restore_stack_nonlocal): Likewise.
518 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
519 (nonlocal_goto_internal): New insn.
520 (goto_handler_and_restore): Delete.
521 (builtin_setjmp_setup): Likewise.
522 (do_builtin_setjmp_setup): Likewise.
523 (setjmp): Likewise.
524 (builtin_setjmp_receiver): New expander.
525
526 2011-06-01 David Li <davidxl@google.com>
527
528 PR middle-end/49261
529 * tree-pretty-print.c (dump_function_header): Format cleanup.
530
531 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
532
533 PR target/49238
534 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
535 needed when original operands are used for msw_skip comparison.
536
537 2011-06-01 Jakub Jelinek <jakub@redhat.com>
538
539 PR debug/49250
540 * var-tracking.c (add_uses, add_stores): Don't call
541 cselib_subst_to_values on ENTRY_VALUE.
542
543 2011-06-01 Diego Novillo <dnovillo@google.com>
544
545 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
546 output_record_start with LTO_null instead of output_zero.
547 (lto_output_ts_binfo_tree_pointers): Likewise.
548 (lto_output_tree): Likewise.
549 (output_eh_try_list): Likewise.
550 (output_eh_region): Likewise.
551 (output_eh_lp): Likewise.
552 (output_eh_regions): Likewise.
553 (output_bb): Likewise.
554 (output_function): Likewise.
555 (output_unreferenced_globals): Likewise.
556 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
557 instead of NUM_TREE_CODES.
558 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
559 (lto_output_int_in_range): Change << to >> when shifting VAL.
560
561 2011-06-01 Diego Novillo <dnovillo@google.com>
562
563 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
564 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
565
566 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
567
568 PR target/45074
569 * optabs.h (valid_multiword_target_p): Declare.
570 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
571 doing multi-word operations.
572 * optabs.c (expand_binop): Likewise.
573 (expand_doubleword_bswap): Likewise.
574 (expand_absneg_bit): Likewise.
575 (expand_unop): Likewise.
576 (expand_copysign_bit): Likewise.
577 (multiword_target_p): New function.
578
579 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
580
581 PR rtl-optimization/48830
582 PR rtl-optimization/48808
583 PR rtl-optimization/48792
584 * reload.c (push_reload): Check contains_reg_of_mode.
585 * reload1.c (strip_paradoxical_subreg): New function.
586 (gen_reload_chain_without_interm_reg_p): Use it to handle
587 paradoxical subregs.
588 (emit_output_reload_insns, gen_reload): Likewise.
589
590 2011-06-01 David Li <davidxl@google.com>
591
592 * predict.c : Change pass name
593 * ipa.c: Ditto.
594 * dce.c: Ditto.
595 * tree-profile.c: Ditto.
596 * except.c: Ditto.
597
598 2011-06-01 David Li <davidxl@google.com>
599
600 * tree-pretty-print.c (dump_function_header): New function.
601 * final.c (rest_of_clean_state): Use header dumper.
602 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
603 * passes.c (pass_init_dump_file): Use header dumper.
604
605 2011-06-01 Jakub Jelinek <jakub@redhat.com>
606
607 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
608 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
609 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
610 New functions.
611 (mem_loc_descriptor): Use them.
612
613 * var-tracking.c (create_entry_value): New function.
614 (vt_add_function_parameter): Use it.
615
616 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
617
618 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
619 Include <signal.h>, <ucontext.h>.
620 (sigill_caught): Define.
621 (sigill_hdlr): New function.
622 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
623 insns can be executed.
624 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
625 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
626
627 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
628
629 * config/t-slibgcc-darwin: Move to ...
630 * config/t-slibgcc-dummy: ... this. Clarify comments.
631 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
632 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
633 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
634 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
635 Remove i386/t-crtstuff from tmake_file.
636 (i[34567]86-*-solaris2*): Remove t-svr4,
637 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
638 t-slibgcc-dummy.
639 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
640 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
641 sparc/t-crtfm from tmake_file.
642 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
643 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
644 Remove extra_parts.
645 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
646 * config/i386/t-nwld (SHLIB_LINK): Remove.
647 * config/i386/t-rtems-i386: Rename to ...
648 * config/i386/t-rtems: ... this.
649 ($(T)crti.o, $(T)crtn.o): Remove.
650 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
651 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
652 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
653 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
654 EXTRA_MULTILIB_PARTS): Remove.
655 * config/sparc/t-sol2-64: Likewise.
656 * config/sparc/t-sol2: Remove.
657 * config/sparc/t-crtin: Remove.
658 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
659 * config/i386/gmon-sol2.c: Remove.
660 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
661 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
662 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
663 * config/i386/sol2-gc1.asm: Remove.
664 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
665 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
666 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
667 * config/t-slibgcc-sld: Remove.
668
669 2011-06-01 Jakub Jelinek <jakub@redhat.com>
670
671 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
672 base_type_for_mode with op_mode instead of mode.
673
674 2011-06-01 Paul Brook <paul@cpodesourcery.com>
675
676 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
677 Cortex-A15.
678 * config/arm/arm-tune.md: Regenerate.
679 * config/arm/arm-tables.opt: Regenerate.
680 * config/arm/arm.c (FL_DIV): Rename...
681 (FL_THUMB_DIV): ... to this.
682 (FL_ARM_DIV): Define.
683 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
684 (arm_arch_hwdiv): Remove.
685 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
686 (arm_issue_rate): Add cortexr5.
687 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
688 __ARM_ARCH_EXT_IDIV__.
689 (TARGET_IDIV): Define.
690 (arm_arch_hwdiv): Remove.
691 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
692 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
693 (divsi3, udivsi3): New patterns.
694 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
695 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
696
697 2011-06-01 Martin Jambor <mjambor@suse.cz>
698
699 * ipa-utils.c (ipa_dfs_info): New field scc_no.
700 * ipa-utils.c (searchc): Set scc_no.
701
702 2011-06-01 Martin Jambor <mjambor@suse.cz>
703
704 * ipa-utils.c (searchc_env): New field allow_overwritable.
705 (searchc): do not ignore edges to overwritable nodes if indicated
706 by env->allow_overwritable.
707 (ipa_reduced_postorder): Set env.allow_overwritable.
708
709 2011-06-01 Richard Guenther <rguenther@suse.de>
710
711 * tree.c (free_lang_data): Do not reset boolean_type_node nor
712 char_type_node.
713 * lto-streamer.c (lto_record_common_node): Take node pointer,
714 do not register types.
715 (lto_preload_common_nodes): Explicitly skip preloading nodes
716 that differ between frontends.
717
718 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
719
720 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
721 NON_FLOAT_REGS.
722
723 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
724
725 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
726 parameter value for dump. Dump cost on outermost call only.
727 (rs6000_memory_move_cost): Dump cost on outermost call only.
728
729 2011-05-31 Jakub Jelinek <jakub@redhat.com>
730
731 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
732 DW_OP_GNU_convert ops.
733
734 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
735 cselib_preserve_constants.
736 (cselib_lookup_1): If cselib_preserve_constants,
737 a new VALUE is being created for REG and there is a VALUE for the
738 same register in wider mode, add another loc with lowpart SUBREG of
739 the wider VALUE.
740 (cselib_subst_to_values): Handle ENTRY_VALUE.
741 * var-tracking.c (replace_expr_with_values): Return NULL for
742 ENTRY_VALUE too.
743 * dwarf2out.c (convert_descriptor_to_signed): New function.
744 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
745 instead of two shifts.
746 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
747 the right mode if needed.
748 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
749 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
750 convert_descriptor_to_signed.
751 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
752 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
753
754 PR target/48688
755 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
756
757 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
758
759 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
760 of X87MODEI12 and SWI48x instead of SSEMODEI24.
761 (SWI248x): New mode iterator, rename from X87MODEI.
762 (X87MODEI): Remove mode iterator.
763 (X87MODEI12): Ditto.
764 (SSEMODEI24): Ditto.
765
766 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
767
768 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
769 * doc/invoke.texi: Document max-vartrack-expr-depth.
770 * var-tracking.c (EXPR_DEPTH): New.
771 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
772
773 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
774
775 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
776 * config/i386/sse.md: Add n to negated FMA pattern names.
777
778 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
779
780 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
781
782 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
783
784 * gengtype-state.c (read_state_params_structs): Initialize previous.
785
786 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
787
788 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
789 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
790
791 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
792
793 * config/i386/i386.md (*movtf_internal): Avoid allocating general
794 registers. Penalize F*r->o alternative to prevent partial memory
795 stalls. Slightly penalize *roF->*r alternative. Generate SSE
796 CONST_DOUBLE immediates when optimizing function for size. Do not move
797 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
798 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
799 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
800 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
801 alternatives.
802 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
803
804 (fp_register_operand splitters): Use fp_register_operand
805 constraint. Do not use FP_REG_P in insn condition.
806 (any_fp_register_operand splitters): Use any_fp_register_operand
807 constraint. Do not use ANY_FP_REG_P in insn condition.
808
809 2011-05-31 Jan Hubicka <jh@suse.cz>
810
811 * cgraph.h (cgraph_inline_failed_t): Give enum a name
812 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
813 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
814 (lto_output_edge): Use output_enum and var_len_unsigned.
815 (lto_output_varpool_node): Likewise.
816 (input_overwrite_node): Do not take resolution parameter;
817 extract it from a bitpack.
818 (input_node): Do not read resolution; use input_enum and
819 var_len_unsigned.
820 (input_varpool_node): Likewise.
821 (input_edge): Likewise.
822 (input_cgraph_1): Likewise.
823
824 2011-05-31 Richard Guenther <rguenther@suse.de>
825
826 * gimple.c (gimple_register_canonical_type): Do not register
827 any types via gimple_register_type.
828
829 2011-05-31 Jan Hubicka <jh@suse.cz>
830
831 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
832 of thunks.
833
834 2011-05-31 Jakub Jelinek <jakub@redhat.com>
835
836 PR rtl-optimization/49235
837 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
838 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
839
840 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
841
842 PR tree-optimization/49093
843 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
844 data references.
845
846 2011-05-31 Dodji Seketeli <dodji@redhat.com>
847
848 PR debug/49047
849 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
850 for concrete functions containing the code of cloned functions.
851
852 2011-05-31 Richard Guenther <rguenther@suse.de>
853
854 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
855 to ...
856 (forward_propagate_into_comparison_1): ... this.
857 (forward_propagate_comparison): Rename to ...
858 (forward_propagate_into_comparison): ... this. Split out
859 real forward propagation code to ...
860 (forward_propagate_comparison): ... this.
861 (forward_propagate_into_gimple_cond): Remove looping.
862 (forward_propagate_into_cond): Likewise.
863 (simplify_not_neg_expr): Return whether we have done something.
864 (simplify_gimple_switch): Likewise.
865 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
866 (ssa_forward_propagate_and_combine): ... this. Re-structure
867 to do a forward forward-propagation walk on BBs and a backward
868 stmt combining walk on BBs. Consistently re-scan changed statements.
869 (pass_forwprop): Adjust.
870
871 2011-05-30 Ian Lance Taylor <iant@google.com>
872
873 * godump.c (go_format_type): Correct length of name added to
874 obstack for anonymous field.
875
876 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
877
878 PR target/49186
879 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
880 part of the second operand is 0.
881
882 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
883
884 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
885 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
886 to memory for !TARGET_MEMORY_MISMATCH_STALL.
887 (*movdf_internal_rex64): Do not penalize F->r alternative.
888 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
889 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
890 when optimizing function for size. Do not move CONST_DOUBLEs
891 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
892 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
893 SUBREGs. Do not check for MEM_P operands in the insn condition,
894 check for ANY_FP_REGNO_P instead.
895 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
896 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
897 function for speed.
898 * config/i386/i386.c (ix86_option_override_internal): Do not
899 set TARGET_INTEGER_DFMODE_MOVES here.
900
901 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
902
903 PR target/49168
904 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
905
906 2011-05-30 Jakub Jelinek <jakub@redhat.com>
907
908 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
909 DW_TAG_rvalue_reference_type even for
910 -gdwarf-4 -fno-debug-types-section.
911
912 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
913
914 PR tree-optimization/46728
915 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
916 (build_and_insert_binop): New.
917 (gimple_expand_builtin_pow): Reorder args for
918 build_and_insert_call; use build_and_insert_binop; add more
919 optimizations for fractional exponents.
920
921 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
922
923 PR bootstrap/49190
924
925 Revert:
926 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
927
928 * tree.h (struct tree_identifier): Inherit from tree_typed, not
929 tree_common.
930 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
931 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
932 TS_BASE instead of TS_COMMON.
933 * varasm.c (assemble_name): Remove assert.
934
935 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
936
937 * config.gcc: Keep obselete list sorted.
938
939 2011-05-30 Jakub Jelinek <jakub@redhat.com>
940 Eric Botcazou <ebotcazou@adacore.com>
941
942 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
943 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
944 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
945 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
946 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
947
948 2011-05-30 Richard Guenther <rguenther@suse.de>
949
950 * gimple.c (gimple_types_compatible_p_1): Compare record
951 and union type members properly.
952
953 2011-05-30 Richard Guenther <rguenther@suse.de>
954
955 PR tree-optimization/49210
956 * ipa-split.c (split_function): Care for the case where the call
957 result is not trivially convertible to the result holding variable.
958
959 2011-05-30 Richard Guenther <rguenther@suse.de>
960
961 PR tree-optimization/49218
962 * tree-vrp.c (adjust_range_with_scev): Properly check whether
963 overflow occured.
964
965 2011-05-30 Richard Guenther <rguenther@suse.de>
966
967 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
968 New function split out from ...
969 (forward_propagate_into_gimple_cond): ... here. Adjust.
970 (forward_propagate_into_cond): Likewise.
971 (forward_propagate_comparison): Also propagate into
972 comparisons on assignment RHS. Change return value to
973 behave similar to forward_propagate_into_cond.
974 (tree_ssa_forward_propagate_single_use_vars): Handle
975 strict-overflow warnings properly for forward_propagate_comparison.
976
977 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
978
979 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
980 from plugin linker.
981 * configure: Regenerate.
982
983 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
984
985 PR tree-optimization/49199
986 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
987 non-reduction operands are either defined in the loop or by induction.
988
989 2011-05-29 Xinliang David Li <davidxl@google.com>
990
991 * opts-global.c (handle_common_deferred_options): Handle new options.
992 * passes.c (register_one_dump_file): Call register_pass_name.
993 (execute_one_pass): Check explicit enable/disable flag.
994 (passr_hash): New function.
995 (passr_eq): Ditto.
996 (register_pass_name): Ditto.
997 (get_pass_by_name): Ditto.
998 (pass_hash): Ditto.
999 (pass_eq): Ditto.
1000 (enable_pass): Ditto.
1001 (disable_pass): Ditto.
1002 (is_pass_explicitly_enabled_or_disabled): Ditto.
1003
1004 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1005
1006 * config/i386/i386.md (*movoi_internal_avx): Use
1007 standard_sse_constant_opcode for alternative 0.
1008 (*movti_internal_sse): Ditto.
1009 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1010 alternative 2.
1011 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1012 sselog1 type moves.
1013 (*movsi_internal): Ditto.
1014 (*movdi_internal): Ditto. Add ssecvt type moves.
1015
1016 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1017
1018 PR target/48830
1019 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1020
1021 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1022
1023 PR rtl-optimization/49095
1024 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1025 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1026
1027 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1028
1029 PR target/43995
1030 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1031 recurse_p argument. Only follow register copies if it is set,
1032 and prevent mips_find_pic_call_symbol from recursing.
1033 (mips_find_pic_call_symbol): Add a recurse_p argument.
1034 Pass it to mips_pic_call_symbol_from_set.
1035 (mips_annotate_pic_calls): Update accordingly.
1036
1037 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1038
1039 * emit-rtl.c (try_split): Use a loop to search for
1040 NOTE_INSN_CALL_ARG_LOCATIONs.
1041
1042 2011-05-29 Richard Guenther <rguenther@suse.de>
1043
1044 PR tree-optimization/49217
1045 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1046
1047 2011-05-28 Jan Hubicka <jh@suse.cz>
1048
1049 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1050 length.
1051 (string_slot_free): Remove
1052 (create_output_block): Initialize obstack.
1053 (destroy_output_block): Free obstack.
1054 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1055 the string unless it needs to be added into the hash.
1056 (lto_output_string_with_length): Add persistent attribute;
1057 handle NULL strings.
1058 (lto_output_string): Add PERSISTENT parameter.
1059 (output_string_cst, output_identifier): Simplify.
1060 (lto_output_location_bitpack): Update.
1061 (lto_output_builtin_tree): Update.
1062 * lto-streamer.h (struct output_block): Add obstack.
1063 (lto_output_string, lto_output_string_with_length): Remove
1064 declarations; functions are static now.
1065
1066 2011-05-28 Jan Hubicka <jh@suse.cz>
1067
1068 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1069 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1070 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1071 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1072 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1073 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1074 unpack_ts_decl_with_vis_value_fields,
1075 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1076 lto_get_builtin_tree): Use enum and variable length i/o.
1077 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1078 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1079 New functions.
1080 (bp_pack_enum, bp_unpack_enum): New macros.
1081
1082 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1083
1084 * genrecog.c: Remove redundant forward declarations.
1085
1086 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1087
1088 * config.gcc: Deprecate mips*-*-openbsd*.
1089
1090 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1091
1092 PR bootstrap/49195
1093 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1094 for match_op_dup.
1095
1096 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1097
1098 PR middle-end/48981
1099 * gengtype.c (vec_prefix_type): New function.
1100 (note_def_vec): Use vec_prefix_type and change the length
1101 attribute to be based on the prefix.
1102 * vec.c: Include coretypes.h before vec.h.
1103 (struct vec_prefix): Remove.
1104 (vec_gc_p_reserve): Change the offsetof to sizeof.
1105 (vec_gc_p_reserve_exact): Likewise.
1106 (vec_heap_p_reserve): Likewise.
1107 (vec_heap_p_reserve_exact): Likewise.
1108 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1109 (vec_stack_p_reserve): Change the offsetof to sizeof.
1110 (vec_stack_p_reserve_exact): Likewise.
1111 * vec.h (struct vec_prefix): New struct definition.
1112 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1113 (VEC_T_GTY(T,B)): Likewise.
1114 (DEF_VEC_FUNC_P(T)): Use prefix field.
1115 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1116 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1117
1118 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1119
1120 PR tree-optimization/46728
1121 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1122 (powi_as_mults): Add gimple_set_location.
1123 (build_and_insert_call): New.
1124 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1125 0.5, 0.25, 0.75, 1./3., or 1./6.
1126
1127 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1128
1129 * doc/contrib.texi: Update copyright years.
1130 (Contributors): Add Zdenek Sojka.
1131
1132 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1133
1134 * c-decl.c (c_push_function_context): Copy the current statement
1135 list stack.
1136 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1137 (finish_struct): Call building_stmt_list_p instead of checking
1138 cur_stmt_list.
1139 * c-parser.c (c_parser_postfix_expression): Likewise.
1140 * c-typeck.c (c_end_compound_stmt): Likewise.
1141 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1142 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1143 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1144 (free_stmt_list): Likewise.
1145 * tree.h (struct tree_statement_list): Include typed_tree instead
1146 of tree_common.
1147 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1148 as TS_TYPED instead of TS_COMMON.
1149
1150 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1151 Uros Bizjak <ubizjak@gmail.com>
1152
1153 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1154 (HAVE_AS_IX86_TLSGDPTL): Define.
1155 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1156 (HAVE_AS_IX86_TLSLDMPLT): Define.
1157 * configure: Regenerate.
1158 * config.in: Regenerate.
1159 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1160 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1161 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1162 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1163 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1164 @tlsldmplt or @plt.
1165 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1166
1167 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1168
1169 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1170 and reverse_cond.
1171 (INSN_COND, INSN_REVERSE_COND): New macros.
1172 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1173 once.
1174 (sched_get_condition_with_rev): Cache the results, and look them up
1175 if possible.
1176 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1177 are clobbered by the current insn.
1178 * target.def (exposed_pipline): New sched data hook.
1179 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1180 * doc/tm.texi: Regenerate.
1181
1182 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1183
1184 PR tree-optimization/49170
1185 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1186 sincos or cexp.
1187
1188 2011-05-27 Richard Guenther <rguenther@suse.de>
1189
1190 PR middle-end/49189
1191 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1192 of comparisons.
1193
1194 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1195
1196 * haifa-sched.c (sched_scan_info): Remove.
1197 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1198 with NULL args.
1199 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1200 Remove functions.
1201 (sched_scan): Remove.
1202 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1203 static. All callers changed.
1204 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1205 static. All callers changed.
1206 (sched_init_luids): Remove all arguments except the first. All
1207 callers changed. Don't use sched_scan.
1208 (haifa_init_h_i_d): Likewise.
1209 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1210 manually rather than using sched_init_luids. Likewise with
1211 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1212 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1213 rather than sched_init_luids with NULL args.
1214 * sel-sched-ir.c (new_insns): Remove variable.
1215 (sched_scan): New static function, previously in haifa-sched.c. Remove
1216 all arguments but the first two; all callers changed.
1217 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1218 rather than sched_init_luids.
1219 (sel_init_bbs): Remove second argument. All callers changed.
1220 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1221 with NULL arguments.
1222 (create_insn_rtx_from_pattern): Likewise.
1223 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1224 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1225 (sched_init_insn_luid, sched_extend_luids): Declare.
1226 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1227 declarations.
1228
1229 2011-05-27 Richard Guenther <rguenther@suse.de>
1230
1231 PR middle-end/49177
1232 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1233 A CMP B ? (T) true : (T) false for non-integral types T again.
1234
1235 2011-05-27 Jan Hubicka <jh@suse.cz>
1236
1237 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1238 so 0 means NULL string.
1239 (lto_output_string_with_length): ... here.
1240 (lto_output_string, output_string_cst, output_identifier): Update
1241 handling of NULL strings.
1242 (lto_output_location_bitpack): New function.
1243 (lto_output_location): Use it.
1244 (lto_output_tree_ref): Use output_record_start.
1245 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1246 len values.
1247 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1248 values by 1.
1249 (input_string_internal): ... here;
1250 (input_string_cst, input_identifier, lto_input_string): Update handling
1251 of NULL strings.
1252 (lto_input_location_bitpack): New function
1253 (lto_input_location): Use it.
1254 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1255 values.
1256 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1257 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1258 (bp_pack_value): Sanity check the value range.
1259 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1260 New functions.
1261 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1262 New functions.
1263
1264 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1265
1266 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1267 call_arg_location instructions down the floor.
1268
1269 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1270
1271 PR rtl-optimization/49154
1272 * ira.c (setup_pressure_classes): Process class without sublcasses
1273 as a candidate for pressure classes.
1274
1275 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1276
1277 PR rtl-optimization/48575
1278 * genrecog.c (position_type): New enum.
1279 (position): New structure.
1280 (decision): Use position structure instead of a string.
1281 (root_pos, peep2_insn_pos_list): New variables.
1282 (next_position, compare_positions): New functions.
1283 (new_decision): Use position structures instead of strings.
1284 (maybe_both_true): Likewise.
1285 (change_state): Likewise.
1286 (write_tree): Likewise.
1287 (make_insn_sequence): Likewise.
1288
1289 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1290
1291 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1292 TS_BASE instead of TS_COMMON.
1293 (find_decls_types_r): Check for TS_TYPED structure before looking at
1294 TREE_TYPE.
1295 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1296 Add chain field.
1297 (BLOCK_CHAIN): Use new chain field.
1298
1299 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1300
1301 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1302 moves expensive on Power7 also.
1303
1304 2011-05-26 Richard Guenther <rguenther@suse.de>
1305
1306 * fold-const.c (fold_unary_loc): Remove bogus code.
1307
1308 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1309
1310 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1311 tree_common.
1312 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1313 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1314 TS_BASE instead of TS_COMMON.
1315 * varasm.c (assemble_name): Remove assert.
1316
1317 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1318
1319 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1320 substituted first.
1321 * libgcc-std.ver: Delete file.
1322
1323 2011-05-26 Richard Guenther <rguenther@suse.de>
1324
1325 PR tree-optimization/48702
1326 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1327 only when we know the base address is within bounds.
1328 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1329 assume the base address of TARGET_MEM_REFs is in bounds.
1330
1331 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1332
1333 PR target/49099
1334 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1335 declaration in TARGET_SOLARIS.
1336
1337 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1338
1339 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1340 The instruction is then expanded explicitly.
1341 (supported_compare): Callable instruction.
1342 (compare): Likewise.
1343
1344 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1345
1346 PR c++/49165
1347 * gimplify.c (shortcut_cond_r): Don't special case
1348 COND_EXPRs if they have void type on one of their arms.
1349
1350 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1351
1352 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1353 to reduce duplication, and to achieve a slightly more logical order
1354 of operations.
1355
1356 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1357
1358 PR tree-optimization/49161
1359 * tree-vrp.c (struct case_info): New type.
1360 (compare_case_labels): Sort case_info structs instead of
1361 trees, and not primarily by CASE_LABEL uids but by
1362 label_for_block indexes.
1363 (find_switch_asserts): Put case labels into struct case_info
1364 array instead of TREE_VEC, adjust sorting, compare label_for_block
1365 values instead of CASE_LABELs.
1366
1367 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1368
1369 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1370 ("orndi3_neon"): Likewise.
1371 ("bic<mode>3_neon"): Likewise.
1372
1373 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1374
1375 PR tree-optimization/49038
1376 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1377 Ensure at least one epilogue iteration if required by data
1378 accesses with gaps.
1379 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1380 to mark loops that require peeling for gaps.
1381 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1382 (vect_get_known_peeling_cost): Take peeling for gaps into
1383 account.
1384 (vect_transform_loop): Generate epilogue if required by data
1385 access with gaps.
1386 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1387 loop as requiring an epilogue if there are gaps in the end of
1388 the strided group.
1389
1390 2011-05-25 Ian Lance Taylor <iant@google.com>
1391
1392 * godump.c (go_format_type): Output the first field with a usable
1393 Go type, if any.
1394
1395 2011-05-25 Ian Lance Taylor <iant@google.com>
1396
1397 * godump.c (go_format_type): Check for invalid type names, pointer
1398 target types, and struct field types.
1399
1400 2011-05-25 Jason Merrill <jason@redhat.com>
1401
1402 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1403
1404 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1405
1406 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1407
1408 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1409
1410 * config/i386/i386.md (*movqi_extv_1)): Put back
1411 "register_operand" check in "type" calculation.
1412 (*movqi_extzv_2): Likewise.
1413
1414 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1417
1418 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1419
1420 PR bootstrap/49160
1421 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1422 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1423 __divxc3, __divtc3): Wrap definitions in #ifndef.
1424
1425 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1426
1427 PR target/49142
1428 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1429 "register_operand" check and replace q_regs_operand with
1430 QIreg_operand in "type" calculation.
1431 (*movqi_extv_1): Likewise.
1432 (*movqi_extzv_2_rex64): Likewise.
1433 (*movqi_extzv_2): Likewise.
1434
1435 * config/i386/predicates.md (QIreg_operand): New.
1436
1437 2011-05-25 Richard Guenther <rguenther@suse.de>
1438
1439 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1440 type-based offset disambiguation, streamline MEM_REF and
1441 TARGET_MEM_REF handling.
1442
1443 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1446 (bdesc_special_args): Add pause intrinsic.
1447
1448 * config/i386/i386.md (UNSPEC_PAUSE): New.
1449 (pause): Likewise.
1450 (*pause): Likewise.
1451 * config/i386/ia32intrin.h (__pause): Likewise.
1452
1453 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1454 pause intrinsic.
1455
1456 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1457
1458 PR tree-optimization/46728
1459 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1460 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1461
1462 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1463
1464 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1465 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1466 instead of TS_COMMON.
1467
1468 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1469
1470 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1471 LIBGCC2_GNU_PREFIX is defined.
1472 (__N): New macro.
1473 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1474 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1475 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1476 __clz_tab): Define using __N.
1477 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1478 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1479 * target.def (libfunc_gnu_prefix): New hook.
1480 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1481 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1482 * doc/tm.texi: Regenerate.
1483 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1484 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1485 account.
1486 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1487 (init_optabs): Likewise for the bswap libfuncs.
1488 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1489 and divide.
1490 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1491 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1492 * libgcc-std.ver: Remove.
1493 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1494 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1495 libgcc-std.ver.
1496 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1497 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1498 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1499 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1500 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1501 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1502 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1503 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1504 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1505 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1506
1507 2011-05-25 Jan Hubicka <jh@suse.cz>
1508
1509 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1510 (lto_output_tree): Use output_record_start.
1511 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1512 (lto_get_pickled_tree): Use input_record_start.
1513 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1514 (lto_value_range_error): New function.
1515 * lto-streamer.h (lto_value_range_error): Declare.
1516 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1517 (lto_output_enum, lto_input_enum): New macros.
1518
1519 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1520
1521 * common.opt (flag_stack_usage_info): New variable.
1522 (-Wstack-usage): New option.
1523 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1524 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1525 <OPT_fstack_usage>: Likewise.
1526 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1527 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1528 of flag_stack_usage.
1529 (emit_library_call_value_1): Likewise.
1530 * explow.c (allocate_dynamic_stack_space): Likewise.
1531 * function.c (instantiate_virtual_regs ): Likewise.
1532 (prepare_function_start): Likewise.
1533 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1534 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1535 * config/arm/arm.c (arm_expand_prologue): Likewise.
1536 (thumb1_expand_prologue): Likewise.
1537 * config/avr/avr.c (expand_prologue): Likewise.
1538 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1539 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1540 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1541 * config/mips/mips.c (mips_expand_prologue): Likewise.
1542 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1543 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1544 * config/s390/s390.c (s390_emit_prologue): Likewise.
1545 * config/sh/sh.c (sh_expand_prologue): Likewise.
1546 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1547 * config/spu/spu.c (spu_expand_prologue): Likewise.
1548
1549 2011-05-25 Richard Guenther <rguenther@suse.de>
1550
1551 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1552 (gimple_canonical_types_compatible_p): Likewise.
1553
1554 2011-05-25 Jan Hubicka <jh@suse.cz>
1555
1556 PR middle-end/49062
1557 * ipa.c (function_and_variable_visibility): Only add to same
1558 comdat group list if DECL_ONE_ONLY.
1559
1560 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1561
1562 PR rtl-optimization/49014
1563 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1564
1565 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1566
1567 PR target/49128
1568 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1569
1570 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1571
1572 PR rtl-optimization/48757
1573 * ira-build.c (loop_with_eh_edge_p): Rename to
1574 loop_with_complex_edge_p, check edges on complexity, make function
1575 conditional.
1576 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1577 conditional.
1578
1579 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1580
1581 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1582 force flag_ira_share_save_slots to 0.
1583
1584 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1585
1586 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1587 (vt_initialize): Set PROLOGUE_BB unconditionally.
1588 Add block comment about CFA_BASE_RTX machinery.
1589 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1590 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1591
1592 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1593
1594 PR objc/48187
1595 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1596 parsing of syntax error in ObjC instance variable lists. In
1597 particular, avoid an infinite loop if there is a stray ']'.
1598 Updated error message.
1599
1600 2011-05-24 Ian Lance Taylor <iant@google.com>
1601
1602 * godump.c (go_define): Don't accept a string immediately after
1603 another operand.
1604
1605 2011-05-24 Ian Lance Taylor <iant@google.com>
1606
1607 * godump.c (struct godump_container): Add invalid_hash field.
1608 (go_format_type): Return false if type is found in invalid_hash.
1609 (go_output_typedef): Add invalid type to invalid_hash.
1610 (go_finish): Create and delete invalid_hash.
1611
1612 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1613
1614 PR tree-optimization/46728
1615 * tree-ssa-math-opts.c (powi_table): New.
1616 (powi_lookup_cost): New.
1617 (powi_cost): New.
1618 (powi_as_mults_1): New.
1619 (powi_as_mults): New.
1620 (gimple_expand_builtin_powi): New.
1621 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1622 (gate_cse_sincos): Remove sincos/cexp restriction.
1623
1624 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1625
1626 PR target/3746
1627 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1628 mips-tdump native.
1629 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1630 * mips-tdump.c: Likewise.
1631
1632 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 PR target/49128
1635 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1636 add -mno-XXX. Handle FMA.
1637
1638 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1639
1640 PR rtl-optimization/48633
1641 * ira-build.c (loop_with_eh_edge_p): New function.
1642 (mark_loops_for_removal): Use it.
1643
1644 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1645
1646 PR rtl-optimization/48971
1647 * ira.c (setup_pressure_classes): Don't check register move cost
1648 for classes with one registers. Don't add pressure class if there
1649 is a pressure class with the same available hard registers.
1650 Check contains_reg_of_mode. Fix a typo in collecting
1651 temp_hard_regset. Ignore hard registers not belonging to a class.
1652
1653 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1654
1655 PR target/49133
1656 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1657
1658 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1659 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1660
1661 PR gcov-profile/48845
1662 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1663
1664 2011-05-24 Richard Guenther <rguenther@suse.de>
1665
1666 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1667 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1668 (gimple_types_compatible_p_1): Adjust.
1669 (iterative_hash_canonical_type): Do not bother about complete vs.
1670 incomplete types.
1671 (gimple_canonical_types_compatible_p): Likewise.
1672
1673 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1674
1675 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1676
1677 2011-05-24 Richard Guenther <rguenther@suse.de>
1678
1679 PR bootstrap/49078
1680 * gimple.c (gimple_register_canonical_type): Revert
1681 previous change.
1682 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1683 does not for a tree for the case where it matters. Cache
1684 pointer-type alias-sets.
1685
1686 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1687
1688 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1689 (OBJS): Remove options.o, opts-common.o and prefix.o.
1690 (OBJS-libcommon-target): New.
1691 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1692 (BACKEND): Include libcommon-target.a.
1693 (MOSTLYCLEANFILES): Include libcommon-target.a.
1694 (libcommon-target.a): New.
1695 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1696 prefix.o.
1697
1698 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1699
1700 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1701 parts of output shared with the driver.
1702 * optc-gen.awk: Don't generate parts of output not shared with the
1703 driver.
1704 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1705 * doc/options.texi (SourcerInclude): Mention options-save.c.
1706 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1707 (OBJS): Add options-save.o.
1708 (options-save.c, options-save.o): New.
1709 (options.o): Update dependencies.
1710 (gcc-options.o): Remove.
1711 (mostlyclean): Remove options-save.c.
1712
1713 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1714
1715 PR debug/49032
1716 * dbxout.c: Include cgraph.h.
1717 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1718 and without value expr, return NULL if no varpool node exists for
1719 it or if it is not needed.
1720 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1721
1722 PR c/49120
1723 * c-decl.c (start_decl): Convert expr to void_type_node.
1724
1725 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1726
1727 PR rtl-optimization/48826
1728 * emit-rtl.c (try_split): When splitting a call that is followed
1729 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1730
1731 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1732
1733 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1734 parameters passed in memory prefer using DECL_INCOMING_RTL over
1735 the pseudos it will be copied into.
1736
1737 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1738
1739 PR target/47315
1740 * config/i386/i386.c (ix86_option_override_internal): Save the
1741 initial options after checking vzeroupper.
1742
1743 2011-05-23 David Li <davidxl@google.com>
1744
1745 PR tree-optimization/48988
1746 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1747 Initialize has_valid_pred for each pred chain.
1748
1749 2011-05-23 Richard Guenther <rguenther@suse.de>
1750
1751 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1752 (iterative_hash_gimple_type): Always hash type names.
1753
1754 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1755
1756 * c-typeck.c (build_function_call_vec): Tweak call to
1757 check_function_arguments.
1758
1759 2011-05-23 Richard Guenther <rguenther@suse.de>
1760
1761 PR tree-optimization/49115
1762 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1763 is not necessarily carried out, do not claim it kills the ref.
1764 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1765
1766 2011-05-23 Richard Guenther <rguenther@suse.de>
1767
1768 PR middle-end/15419
1769 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1770 what pointer types we accept for folding.
1771
1772 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1773
1774 * gthr-gnat.c: Remove.
1775 * gthr-gnat.h: Remove.
1776 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1777 * config/t-freebsd (LIB2ADDEH): Likewise.
1778 * config/t-linux (LIB2ADDEH): Likewise.
1779 * config/t-sol2 (LIB2ADDEH): Likewise.
1780 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1781 * configure.ac (target_thread_file): Remove gnat handling.
1782 * configure: Regenerate.
1783 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1784
1785 2011-05-23 Tristan Gingold <gingold@adacore.com>
1786 Eric Botcazou <ebotcazou@adacore.com>
1787
1788 * gcov.c (create_file_names): If no object directory is specified,
1789 keep the directory of the file.
1790
1791 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1792
1793 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1794 * configure: Regenerate.
1795
1796 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1797
1798 PR middle-end/48973
1799 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1800 failed and the comparison has a single bit signed type, use
1801 constm1_rtx instead of const1_rtx for true value.
1802 (do_store_flag): If ops->type is single bit signed type, disable
1803 signel bit test optimization and pass -1 instead of 1 as last
1804 parameter to emit_store_flag_force.
1805
1806 2011-05-23 Tom de Vries <tom@codesourcery.com>
1807
1808 PR target/45098
1809 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1810 function.
1811 (infer_loop_bounds_from_undefined): Use new function.
1812
1813 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1814
1815 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1816 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1817 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1818 and -O0 otherwise.
1819 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1820
1821 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1822
1823 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1824 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1825 returns true.
1826
1827 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1828
1829 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1830
1831 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1834 UNSPEC_MOVE_PIC pattern.
1835
1836 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1837
1838 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1839 (sparc-*-rtems*): Likewise.
1840 (sparc64-*-elf*): Likewise.
1841 (sparc64-*-rtems*): Likewise.
1842 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1843 * config/sparc/t-crtin: New file.
1844 * config/sparc/t-sol2 (crti.o): Delete rule.
1845 (crtn.o): Likewise.
1846 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1847 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1848 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1849 (ENDFILE_SPEC): Add crtn.o.
1850
1851 2011-05-22 Tom de Vries <tom@codesourcery.com>
1852
1853 PR middle-end/48689
1854 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1855 CODE_CONTAINS_STRUCT (TS_COMMON).
1856
1857 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1858
1859 PR middle-end/49029
1860 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1861 only after deciding which mode to use.
1862
1863 2011-05-22 Tom de Vries <tom@codesourcery.com>
1864
1865 PR target/45098
1866 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1867 for call to get_shiftadd_cost.
1868
1869 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1870
1871 PR target/49104
1872 * config/i386/cpuid.h (bit_MMXEXT): New define.
1873
1874 2011-05-22 Nick Clifton <nickc@redhat.com>
1875
1876 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1877 initialisation of non-existant args[2] element. Use args[] array
1878 not arg[] array to pass arguments to build_function_type_list.
1879
1880 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1881
1882 PR tree-optimization/49087
1883 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1884
1885 2011-05-21 Jason Merrill <jason@redhat.com>
1886
1887 PR c++/49092
1888 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1889 static storage duration.
1890
1891 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1892
1893 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1894 frame pointer.
1895
1896 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1897
1898 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1899 false if there are call-saved registers here...
1900 (sparc_can_use_return_insn_p): ...but here instead.
1901 (save_or_restore_regs): Fix thinko.
1902 (sparc_expand_prologue): Use current_function_is_leaf.
1903 (sparc_frame_pointer_required): Likewise.
1904
1905 2011-05-21 Nick Clifton <nickc@redhat.com>
1906
1907 PR target/49098
1908 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1909
1910 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1911
1912 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1913 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1914
1915 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1916
1917 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1918 * optc-gen.awk: Move common code to opt-read.awk.
1919 * opth-gen.awk: Likewise.
1920 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1921
1922 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1923
1924 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1925
1926 2011-05-20 Tom de Vries <tom@codesourcery.com>
1927
1928 PR target/45098
1929 * tree-ssa-loop-ivopts.c: Include expmed.h.
1930 (get_shiftadd_cost): New function.
1931 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1932
1933 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1934
1935 PR bootstrap/49086
1936 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1937 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1938
1939 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1940
1941 * Makefile.in: Update comment referring to $(OBJS-common).
1942
1943 2011-05-20 Ian Lance Taylor <iant@google.com>
1944
1945 * godump.c (go_output_typedef): Put enum constants in the macro
1946 hash table to avoid duplicate Go const definitions.
1947
1948 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1949
1950 * Makefile.in (LIBDEPS): Add libcommon.a.
1951 (LIBS): Likewise.
1952 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1953 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1954 pretty-print.o and version.o.
1955 (OBJS-libcommon): New.
1956 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1957 (BACKEND): Add libcommon.a.
1958 (MOSTLYCLEANFILES): Likewise.
1959 (libcommon.a): New.
1960 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1961 (cpp$(exeext)): Likewise.
1962 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1963 pretty-print.o and input.o.
1964 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1965 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1966 (errors.o): Remove.
1967 (mips-tfile): Don't explicitly use version.o.
1968 (mips-tdump): Likewise.
1969 (gcov.o): Depend on $(DIAGNOSTIC_H).
1970 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1971 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1972 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1973 * gcov-dump.c: Include intl.h and diagnostic.h.
1974 (main): Initialize diagnostics.
1975 * gcov.c: Include diagnostic.h.
1976 (fnotice): Remove.
1977 (main): Initialize diagnostics.
1978 * lto-wrapper.c: Include diagnostic.h.
1979 (main): Initialize diagnostics.
1980
1981 2011-05-20 Michael Matz <matz@suse.de>
1982
1983 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1984
1985 2011-05-20 Michael Matz <matz@suse.de>
1986 Richard Guenther <rguenther@suse.de>
1987
1988 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1989 use lto_streamer_cache_append directly instead of returning a VEC.
1990 (preload_common_node): Remove.
1991 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1992 track seen nodes.
1993 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1994
1995 2011-05-20 Richard Guenther <rguenther@suse.de>
1996
1997 PR tree-optimization/49079
1998 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1999 MEM_REFs correctly for the trailing array access detection.
2000 Special case constants the same way as decls for overall size
2001 constraining.
2002
2003 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2004
2005 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2006 argument expansion.
2007
2008 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2009
2010 PR tree-optimization/49073
2011 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2012 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2013 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2014
2015 2011-05-20 Richard Guenther <rguenther@suse.de>
2016
2017 PR middle-end/48849
2018 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2019 of pointer types the same way the middle-end does.
2020
2021 2011-05-20 Richard Guenther <rguenther@suse.de>
2022
2023 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2024 or pointer-to chains. Delay all fixup to uniquify_nodes.
2025
2026 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2027
2028 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2029 (fma4_fmaddsub): Likewise
2030
2031 2011-05-19 Jan Hubicka <jh@suse.cz>
2032
2033 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2034 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2035 (type_pair_cache): New static var.
2036 (lookup_type_pair): Use fixed sized custom hash; make inline.
2037 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2038 calls of lookup_type_pair.
2039 (print_gimple_types_stats): Remove cache stats.
2040 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2041 and gtc_ob.
2042
2043 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2044
2045 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2046 when TARGET_RDRND is active.
2047 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2048 Generate dummy SImode target register when target is NULL.
2049
2050 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2051
2052 * config/arm/arm-fpus.def: New.
2053 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2054 arm-fpus.def.
2055 * config/arm/arm-tables.opt: Regenerate.
2056 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2057 (arm_option_override): Don't decode FPU name to string here.
2058 * config/arm/arm.opt (mfpu=): Use Enum.
2059 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2060 Update dependencies.
2061
2062 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2063
2064 * collect2.c: Include diagnostic.h.
2065 (fatal_perror, fatal, error, fancy_abort): Remove.
2066 (main): Set progname. Call xmalloc_set_program_name and
2067 diagnostic_initialize.
2068 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2069 scan_libraries, resolve_lib_name): Call fatal_error instead of
2070 fatal and fatal_perror.
2071 * collect2.h (error, fatal, fatal_perror): Don't declare.
2072 * tlink.c: Include diagnostic-core.h.
2073 (recompile_files): Call fatal_error instead of fatal_perror.
2074 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2075 pretty-print.o and input.o.
2076 (collect2.o, tlink.o): Update dependencies.
2077
2078 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2079
2080 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2081
2082 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2083
2084 PR target/40483
2085 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2086 COMDAT group syntax, both SPARC and x86 variants.
2087 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2088 * configure: Regenerate.
2089 * config/sol2.h (TARGET_SOLARIS): Define.
2090 (PUSHSECTION_FORMAT): Remove.
2091 (SECTION_NAME_FORMAT): Define.
2092 * config/sol2.c: Include hashtab.h.
2093 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2094 expansion, using SECTION_NAME_FORMAT.
2095 (solaris_comdat_htab): New variable.
2096 (struct comdat_entry): Define.
2097 (comdat_hash): New function.
2098 (comdat_eq): New function.
2099 (solaris_elf_asm_comdat_section): New function.
2100 (solaris_define_comdat_signature): New function.
2101 (solaris_code_end): New function.
2102 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2103 (solaris_code_end): Declare.
2104 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2105 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2106 solaris_code_end.
2107 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2108 Remove ATTRIBUTE_UNUSED.
2109 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2110 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2111 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2112 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2113 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2114 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2115 (PUSHSECTION_FORMAT): Remove.
2116 (SECTION_NAME_FORMAT): Redefine.
2117
2118 2011-05-19 Kai Tietz <ktietz@redhat.com>
2119
2120 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2121 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2122 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2123
2124 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2125 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2126
2127 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2128
2129 2011-05-19 Richard Guenther <rguenther@suse.de>
2130
2131 PR middle-end/48985
2132 * tree-object-size.c (addr_object_size): If the pointed-to
2133 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2134
2135 2011-05-19 Richard Guenther <rguenther@suse.de>
2136
2137 * gimple.c (gimple_types_compatible_p_1): Compare names of
2138 the types themselves.
2139 (iterative_hash_gimple_type): And hash them that way.
2140 (gimple_register_type_1): If we register a main variant properly
2141 initialize the leader to ourselves.
2142
2143 2011-05-19 Tom de Vries <tom@codesourcery.com>
2144
2145 PR target/45098
2146 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2147 get_loop_invariant_expr_id.
2148 (get_loop_invariant_expr_id): Use get_expr_id.
2149 (parm_decl_cost): New function.
2150 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2151 Improve bound cost estimation. Use different inv_expr_id for elim and
2152 express cases.
2153
2154 2011-05-19 Tom de Vries <tom@codesourcery.com>
2155
2156 PR target/45098
2157 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2158 cost_base.cost == 0.
2159
2160 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2161
2162 PR target/49002
2163 * config/i386/sse.md
2164 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2165 load cast.
2166
2167 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR tree-optimization/49039
2170 * tree-vrp.c (extract_range_from_binary_expr): For
2171 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2172 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2173
2174 2011-05-18 Tom de Vries <tom@codesourcery.com>
2175
2176 PR target/45098
2177 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2178
2179 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2180
2181 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2182 (*tls_global_dynamic_64): Ditto.
2183 (*tls_local_dynamic_base_32_gnu): Ditto.
2184 (*tls_local_dynamic_base_64): Ditto.
2185 (tls_initial_exec_64_sun): Ditto.
2186
2187 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2188
2189 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2190 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2191 bf592-none.
2192 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2193 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2194 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2195 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2196 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2197 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2198 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2199
2200 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2201
2202 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2203 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2204 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2205 target_thread_pointer, arm_structure_size_boundary, struct
2206 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2207 struct abi_name, arm_all_abis): Remove.
2208 (arm_option_override) Don't process most enumerated option values here.
2209 Don't process target_fpe_name here. Work with integer not string for
2210 structure size boundary; use separate diagnostics for each case.
2211 * config/arm/arm.h (enum float_abi_type, enum
2212 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2213 to arm-opts.h.
2214 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2215 arm_structure_size_boundary): Remove.
2216 * config/arm/arm.opt (mabi=): Use Enum and Init.
2217 (arm_abi_type): New Enum and EnumValue entries.
2218 (mfloat-abi=): Use Enum and Init.
2219 (float_abi_type): New Enum and EnumValue entries.
2220 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2221 (mfp16-format=): Use Enum and Init.
2222 (arm_fp16_format_type): New Enum and EnumValue entries.
2223 (mstructure-size-boundary=): Use UInteger and Init.
2224 (mtp=): Use Enum and Init.
2225 (arm_tp_type): New Enum and EnumValue entries.
2226
2227 2011-05-18 Richard Guenther <rguenther@suse.de>
2228
2229 PR tree-optimization/49018
2230 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2231 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2232 gimple_has_side_effects.
2233
2234 2011-05-18 Richard Guenther <rguenther@suse.de>
2235
2236 * gimple.c (gimple_register_type_1): New function, split out from ...
2237 (gimple_register_type): ... here. Avoid infinite recursion.
2238
2239 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2240
2241 PR tree-optimization/41881
2242 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2243 reduction_chains along with a macro for its access.
2244 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2245 (destroy_loop_vec_info): Free reduction chains.
2246 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2247 (vect_is_slp_reduction): New function.
2248 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2249 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2250 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2251 definition types for reduction chains.
2252 (vect_supported_load_permutation_p): Don't allow permutations for
2253 reduction chains.
2254 (vect_analyze_slp_instance): Support reduction chains.
2255 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2256 (vect_get_constant_vectors): Handle reduction chains.
2257 (vect_schedule_slp_instance): Mark the first statement of the
2258 reduction chain as reduction.
2259
2260 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2261
2262 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2263 names for group elements access.
2264 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2265 reduction chains as well. Remove data reference and interleaving
2266 related words from the fields names.
2267 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2268 elements access.
2269 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2270 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2271 vect_update_interleaving_chain, vect_same_range_drs,
2272 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2273 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2274 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2275 vect_analyze_group_access, vect_analyze_data_ref_access,
2276 vect_create_data_ref_ptr, vect_transform_strided_load,
2277 vect_record_strided_load_vectors): Likewise.
2278 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2279 vect_model_load_cost, vectorizable_store, vectorizable_load,
2280 vect_remove_stores, new_stmt_vec_info): Likewise.
2281 * tree-vect-slp.c (vect_build_slp_tree,
2282 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2283
2284 2011-05-18 Richard Guenther <rguenther@suse.de>
2285
2286 PR middle-end/48989
2287 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2288 operand verification.
2289 (verify_gimple_assign_binary): Likewise.
2290 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2291 to non-1-precision BOOLEAN_TYPEs.
2292
2293 2011-05-18 Tom de Vries <tom@codesourcery.com>
2294
2295 PR target/45098
2296 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2297
2298 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2299
2300 PR tree-optimization/49000
2301 * tree-ssa.c (execute_update_addresses_taken): Call
2302 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2303 be rewritten and decl has been marked for renaming, reset
2304 the debug stmt.
2305
2306 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2307
2308 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2309 enum_opts_set when testing if attributes have set -mfpmath=.
2310
2311 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2312
2313 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2314
2315 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2316
2317 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2318 info->entry with 0
2319 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2320 id.transform_lang_insert_block with NULL.
2321
2322 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2323
2324 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2325 (output_fp_compare): Change args 3 and 4 to bool.
2326 (ix86_expand_call): Change arg 6 to bool.
2327 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2328 (ix86_attr_length_vex_default): Change arg 3 to bool.
2329 * config/i386/i386.md: Update all uses.
2330 * config/i386/i386.c: Ditto.
2331 (ix86_flags_dependent): Change return type to bool.
2332
2333 2011-05-17 Richard Guenther <rguenther@suse.de>
2334
2335 * gimple.c (type_hash_pair_compare): Fix comparison.
2336
2337 2011-05-17 Richard Guenther <rguenther@suse.de>
2338
2339 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2340 case some more, fix final hash value of the non-singleton case.
2341
2342 2011-05-17 Richard Guenther <rguenther@suse.de>
2343
2344 PR bootstrap/49013
2345 Revert
2346 2011-05-16 Richard Guenther <rguenther@suse.de>
2347
2348 * gimple.c (gimple_types_compatible_p_1): Use names of the
2349 type itself, not its main variant.
2350 (iterative_hash_gimple_type): Likewise.
2351
2352 2011-05-17 Richard Guenther <rguenther@suse.de>
2353
2354 * gimple.c (gimple_register_canonical_type): Use the main-variant
2355 leader for computing the canonical type.
2356
2357 2011-05-17 Nick Clifton <nickc@redhat.com>
2358
2359 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2360 moves.
2361
2362 * config/rx/rx.md: Add peephole to remove redundant extensions
2363 after loads.
2364 (bitset_in_memory): Use rx_restricted_mem_operand.
2365 (bitinvert_in_memory): Likewise.
2366 (bitclr_in_memory): Likewise.
2367
2368 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2369 Nick Clifton <nickc@redhat.com>
2370
2371 * config/rx/rx.md: Add peepholes to match a register move followed
2372 by a comparison of the moved register. Replace these with an
2373 addition of zero that does both actions in one instruction.
2374
2375 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2376
2377 PR target/48986
2378 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2379 predicate to allow CONST_INT.
2380 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2381
2382 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2383
2384 * opts-common.c (opt_enum_arg_to_value): New.
2385 * opts.h (opt_enum_arg_to_value): Declare.
2386 * config/i386/i386.opt (fpmath): Remove.
2387 (mfpmath=): Use Enum, Init and Save.
2388 (fpmath_unit): New Enum and EnumValue entries.
2389 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2390 name for function fpmath state.
2391 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2392 * config/i386/i386.c: Include diagnostic.h.
2393 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2394 (ix86_target_string): Take enum fpmath_unit value instead of string.
2395 (ix86_debug_options): Update call to ix86_target_string.
2396 (ix86_option_override_internal): Don't process fpmath strings here.
2397 (x86_function_specific_save, ix86_function_specific_restore):
2398 Don't handle fpmath state specially.
2399 (ix86_function_specific_print): Pass fpmath state to
2400 ix86_target_string instead of printing in this function.
2401 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2402 Handle enum attributes.
2403 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2404 (ix86_valid_target_attribute_tree): Update option_strings
2405 handling. Handle fpmath as enum option.
2406 (ix86_can_inline_p): Update field names for function fpmath state.
2407 (ix86_expand_builtin): Update call to ix86_target_string.
2408 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2409 (ix86_fpmath): Remove.
2410 * config/i386/t-i386 (i386.o): Update dependencies.
2411
2412 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2413
2414 PR preprocessor/48677
2415 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2416 from decoded_options[0], not from itself.
2417
2418 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2419
2420 * config/i386/constraints.md (z): New constraint.
2421 * config/i386/i386.c (c): New mode attribute.
2422 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2423 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2424 constraint for operand 0.
2425 (*call_vzeroupper): Ditto.
2426 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2427 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2428 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2429 Use "lzm" constraint for operand 0.
2430 (*call_pop_vzeroupper): Ditto.
2431 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2432 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2433 constraint for operand 0.
2434 (*sibcall_vzeroupper): Ditto.
2435 (*sibcall_rex64_ms_sysv): Ditto.
2436 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2437 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2438 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2439 (*sibcall_pop_vzeroupper): Ditto.
2440 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2441 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2442 mode iterator. Use "<c>zm" constraint for operand 1.
2443 (*call_value_vzeroupper): Ditto.
2444 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2445 for operand 1.
2446 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2447 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2448 *call_value_pop_1. Use "lzm" constraint for operand 1.
2449 (*call_value_pop_vzeroupper): Ditto.
2450 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2451 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2452 mode iterator. Use "Uz" constraint for operand 1.
2453 (*sibcall_value_vzeroupper): Ditto.
2454 (*sibcall_value_rex64_ms_sysv): Ditto.
2455 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2456 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2457 constraint for operand 1.
2458 (*sibcall_value_pop_vzeroupper): Ditto.
2459 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2460 and "z" constraint for operand 2.
2461 (*tls_global_dynamic_32_gnu): Ditto.
2462 (*tls_local_dynamic_base_32_gnu): Ditto.
2463 (*tls_local_dynamic_base_64): Ditto.
2464 (*tls_local_dynamic_32_once): Ditto.
2465 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2466 Update all callers.
2467 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2468
2469 2011-05-16 Richard Guenther <rguenther@suse.de>
2470
2471 * gimple.c (gimple_types_compatible_p_1): Use names of the
2472 type itself, not its main variant.
2473 (iterative_hash_gimple_type): Likewise.
2474
2475 2011-05-16 Richard Guenther <rguenther@suse.de>
2476
2477 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2478 always visit pointer target and function result and argument types.
2479
2480 2011-05-16 Jason Merrill <jason@redhat.com>
2481
2482 PR c++/48999
2483 * tree-inline.c (copy_statement_list): Put back recursion.
2484
2485 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2486
2487 PR target/27663
2488 PR target/41076
2489 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2490 * config/avr/avr.md ("*ior<mode>qi.byte0",
2491 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2492
2493 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2494
2495 PR target/45099
2496 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2497 register is needed for a function argument.
2498
2499 2011-05-16 Richard Guenther <rguenther@suse.de>
2500
2501 * gimple.c (struct type_hash_pair): New type.
2502 (type_hash_pair_compare): New function.
2503 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2504
2505 2011-05-16 Revital Eres <revital.eres@linaro.org>
2506
2507 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2508
2509 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2510
2511 * config/i386/i386.md (floating point move splitters): Fix
2512 usage of standard_80387_constant_p.
2513 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2514
2515 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2516
2517 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2518
2519 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2520
2521 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2522 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2523 (tree_ssa_lim_finalize): Likewise.
2524
2525 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2526
2527 * config/i386/constraint.md (Yd, Yx): New register constraints.
2528 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2529 Yd conditional register constraint.
2530 (*movtf_internal): Use standard_sse_constant_opcode.
2531 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2532 Yx conditional register constraint.
2533 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2534 Yd conditional register constraint. Use standard_sse_constant_p to
2535 check for valid SSE constants and call standard_sse_constant_opcode to
2536 output SSE insn.
2537 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2538 constants and call standard_sse_constant_opcode to output SSE insn.
2539 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2540 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2541 optimize_size is set.
2542 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2543
2544 2011-05-14 Tobias Burnus <burnus@net-b.de>
2545
2546 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2547
2548 2011-05-13 Martin Jambor <mjambor@suse.cz>
2549
2550 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2551 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2552 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2553 (evaluate_conditions_for_ipcp_clone): Removed.
2554 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2555 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2556 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2557
2558 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2559
2560 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2561 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2562 lieu of MAY_HAVE_DEBUG_STMTS.
2563 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2564 debug statements if !MAY_HAVE_DEBUG_STMTS.
2565
2566 2011-05-13 Martin Thuresson <martint@google.com>
2567
2568 PR gcov-profile/47793
2569 * libgcov.c (gcov_exit): Support relative profile paths.
2570 * doc/invoke.texi (-fprofile-dir): Update for above change.
2571
2572 2011-05-13 Richard Guenther <rguenther@suse.de>
2573
2574 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2575 type-pair caching, do not compare hashes.
2576
2577 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2578
2579 PR middle-end/48965
2580 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2581 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2582
2583 2011-05-13 Kai Tietz <ktietz@redhat.com>
2584
2585 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2586 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2587 compatible type for TRUTH_NOT_EXPR.
2588
2589 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2590
2591 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2592 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2593 can_create_pseudo_p ().
2594
2595 2011-05-13 Richard Guenther <rguenther@suse.de>
2596
2597 PR lto/48978
2598 * gimple.c (iterative_hash_gimple_type): Revert change in
2599 pointer target and function result and argument hashing.
2600
2601 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2602
2603 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2604 (*movxf_internal_nointeger): Ditto.
2605 (*movdf_internal_rex64): Ditto.
2606 (*movdf_internal): Ditto.
2607 (*movdf_internal_nointeger): Ditto.
2608 (*movsf_internal): Ditto.
2609 (sincos splitters): Use can_create_pseudo ().
2610
2611 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2612
2613 * config/i386/i386-opts.h: New.
2614 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2615 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2616 ix86_section_threshold): Remove.
2617 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2618 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2619 OPT_mbranch_cost_.
2620 (ix86_option_override_internal): Don't decode strings for options
2621 other than -march=, -mtune= and -mfpmath=. Don't allow for
2622 __attribute__ uses in remaining diagnostics for options with
2623 string arguments. Don't check for integer arguments being negative.
2624 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2625 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2626 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2627 ix86_branch_cost, ix86_section_threshold): Remove.
2628 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2629 HeaderInclude.
2630 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2631 but not Var.
2632 (masm=): Use Enum and Init.
2633 (asm_dialect): New Enum and EnumValue entries.
2634 (mbranch-cost=): Use UInteger.
2635 (mlarge-data-threshold=): Use UInteger and Init.
2636 (mcmodel=): Use Enum and Init.
2637 (cmodel): New Enum and EnumValue entries.
2638 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2639 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2640 mregparm=): Use UInteger.
2641 (mstringop-strategy=): Use Enum and Init.
2642 (stringop_alg): New Enum and EnumValue entries.
2643 (mtls-dialect=): Use Enum and Init.
2644 (tls_dialect): New Enum and EnumValue entries.
2645 (mabi=): Use Enum and Init.
2646 (calling_abi): New Enum and EnumValue entries.
2647 (mveclibabi=): Use Enum and Init.
2648 (ix86_veclibabi): New Enum and EnumValue entries.
2649
2650 2011-05-13 Nick Clifton <nickc@redhat.com>
2651
2652 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2653 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2654
2655 2011-05-13 Kai Tietz <ktietz@redhat.com>
2656
2657 PR middle-end/48984
2658 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2659 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2660 (gimple_boolify): Check for cast for boolean_type_node instead for
2661 BOOLEAN_TYPE.
2662
2663 2011-05-13 Richard Guenther <rguenther@suse.de>
2664
2665 PR tree-optimization/48172
2666 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2667 multiplying by number of iterations for equal step.
2668 (vect_create_cond_for_alias_checks): Likewise.
2669
2670 2011-05-13 Andreas Schwab <schwab@redhat.com>
2671
2672 * configure.ac: Use AS_HELP_STRING throughout.
2673 * configure: Regenerate.
2674
2675 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2676
2677 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2678 (ix86_emit_restore_regs_using_mov): Likewise.
2679 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2680
2681 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2682
2683 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2684 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2685 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2686 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2687 RTX_OK_FOR_OLO10_P): ...here.
2688 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2689 SYMBOLIC_CONST.
2690
2691 2011-05-12 Kai Tietz <ktietz@redhat.com>
2692
2693 * gimplify.c (gimple_boolify): Re-boolify expression
2694 arguments even if expression type is of kind BOOLEAN_TYPE.
2695 (gimplify_boolean_expr): Removed.
2696 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2697 and XOR. Additional take care that we keep expression's type.
2698 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2699 of TRUTH_AND|OR|XOR_EXPR.
2700
2701 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2702
2703 PR tree-optimization/48975
2704 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2705 on all bbs here and free and clear ifc_bbs at the end.
2706
2707 2011-05-12 Richard Guenther <rguenther@suse.de>
2708
2709 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2710 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2711 until after simple checks.
2712 (gimple_types_compatible_p): Likewise.
2713 (iterative_hash_gimple_type): Always hash pointer targets
2714 and function return and argument types.
2715 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2716 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2717 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2718 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2719 completely in the simple compare section.
2720 (gimple_register_canonical_type): Query the cache again after
2721 registering.
2722
2723 2011-05-12 Richard Guenther <rguenther@suse.de>
2724
2725 PR tree-optimization/48172
2726 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2727 the number of iterations from the segment size calculation.
2728 (vect_create_cond_for_alias_checks): Adjust.
2729
2730 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2731
2732 PR debug/48967
2733 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2734 if validate_subreg fails.
2735
2736 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2737
2738 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2739 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2740 early.
2741
2742 2011-05-12 DJ Delorie <dj@redhat.com>
2743
2744 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2745 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2746 created builtin into rx_builtins array.
2747 (rx_builtin_decl): New function.
2748 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2749
2750 2011-05-12 DJ Delorie <dj@redhat.com>
2751 Nick Clifton <nickc@redhat.com>
2752
2753 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2754 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2755 (rx_is_legitimate_address): Add pre-decrement and post-increment
2756 addressing in HImode and QImode. Fix test for out of range
2757 REG+INT addressing.
2758 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2759 (rx_align_for_label): Test label before extracting its usage count.
2760 (rx_adjust_insn_lengths): Fix selection of insn codes.
2761 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2762
2763 2011-05-11 Jason Merrill <jason@redhat.com>
2764
2765 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2766
2767 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2768
2769 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2770 reindent the subsequent block.
2771
2772 2011-05-11 Satoru Takabayashi <satorux@google.com>
2773 Paul Pluzhnikov <ppluzhnikov@google.com>
2774
2775 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2776 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2777 * config.in: Add LINKER_HASH_STYLE.
2778 * configure.ac: Add --with-linker-hash-style.
2779 * configure: Regenerate.
2780
2781 2011-05-11 Richard Guenther <rguenther@suse.de>
2782
2783 PR middle-end/48964
2784 * gimple.c (iterative_hash_canonical_type): Fix typo.
2785
2786 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2787
2788 * config/i386/i386.c (legitimize_tls_address)
2789 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2790 expanders directly for TARGET_GNU2_TLS. Determine pic and
2791 __tls_get_addr symbol reference here. Update call to
2792 gen_tls_global_dynamic_{32,64} for added arguments.
2793 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2794 expanders directly for TARGET_GNU2_TLS. Determine
2795 __tls_get_addr symbol reference here. Update call to
2796 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2797 unique UNSPEC REG_EQUIV to libcall block.
2798 (ix86_tls_get_addr): Declare static.
2799 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2800 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2801 Do not determine pic and __tls_get_addr symbol reference here. Do not
2802 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2803 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2804 (tls_global_dynamic_64): Add operand 2. Do not determine
2805 __tls_get_addr symbol reference here. Do not call
2806 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2807 (tls_local_dynamic_base64): Ditto for operand 1.
2808
2809 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2810
2811 * function.c (expand_function_start): Initialize stack_check_probe_note
2812 only if the generic stack checking mechanism is used.
2813
2814 2011-05-11 Richard Guenther <rguenther@suse.de>
2815
2816 PR tree-optimization/15256
2817 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2818 (A & B) | C, combine (A op CST1) op CST2.
2819 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2820 visit assigns that have uses.
2821
2822 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2823
2824 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2825 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2826 (unpack_ts_type_common_value_fields): ...this. Update comment.
2827 (unpack_value_fields): Adjust for renaming.
2828 (lto_input_ts_type_tree_pointers): Split into...
2829 (lto_input_ts_type_common_tree_pointer): ...this and...
2830 (lto_input_ts_type_non_common_tree_pointers): ...this.
2831 (lto_input_tree_pointers): Adjust for above split.
2832 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2833 (pack_ts_type_common_value_fields): ...this. Update comment.
2834 (lto_output_ts_type_tree_pointers): Split into...
2835 (lto_output_ts_type_common_tree_pointers): ...this and...
2836 (lto_output_ts_type_non_common_tree_pointers): ...this.
2837 (lto_output_tree_pointers): Adjust for above split.
2838 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2839 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2840 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2841 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2842 Define.
2843 (struct tree_type): Split into...
2844 (struct tree_type_common: ...this and...
2845 (struct tree_type_with_lang_specific): ...this and...
2846 (struct tree_type_non_common): ...this. Adjust accessor macros
2847 accordingly.
2848 (TYPE_VALUES_RAW): Define.
2849 (union tree_node): Update for above changes.
2850 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2851 TS_TYPE_NON_COMMON.
2852 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2853 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2854 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2855 * treestructu.def (TS_TYPE): Remove.
2856 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2857 Define.
2858
2859 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2860
2861 PR debug/48159
2862 * tree-ssa.c (reset_debug_uses): New function.
2863 * tree-flow.h (reset_debug_uses): New prototype.
2864 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2865 * tree-loop-distribution.c (generate_loops_for_partition): Call
2866 reset_debug_uses on the stmts that will be removed. Keep around
2867 all debug stmts, don't count them as bits in partition bitmap.
2868 (generate_builtin): Don't count debug stmts or labels as bits in
2869 partition bitmap.
2870
2871 2011-05-11 Richard Guenther <rguenther@suse.de>
2872
2873 * gimple.c (gimple_type_hash_1): Merge with ...
2874 (gimple_type_hash): ... this.
2875 (gtc_visit): Remove mode parameter and simplify accordingly.
2876 (gimple_types_compatible_p_1): Likewise.
2877 (gimple_types_compatible_p): Likewise.
2878 (iterative_hash_gimple_type): Likewise.
2879 (visit): Likewise.
2880 (gimple_type_eq): Adjust.
2881
2882 2011-05-11 Revital Eres <revital.eres@linaro.org>
2883
2884 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2885 enters the branch create an anti edge in the opposite direction
2886 to prevent the creation of reg-moves.
2887 * modulo-sched.c: Adjust comment to reflect the fact we are
2888 scheduling closing branch.
2889 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2890 (stage_count): New field in struct partial_schedule.
2891 (calculate_stage_count): New function.
2892 (normalize_sched_times): Rename to reset_sched_times and handle
2893 incrementing the sched time of the nodes by a constant value
2894 passed as parameter.
2895 (duplicate_insns_of_cycles): Skip closing branch.
2896 (sms_schedule_by_order): Schedule closing branch.
2897 (ps_insn_find_column): Handle closing branch.
2898 (sms_schedule): Call reset_sched_times and adjust the code to
2899 support scheduling of the closing branch.
2900 (ps_insert_empty_row): Update calls to normalize_sched_times
2901 and rotate_partial_schedule functions.
2902
2903 2011-05-11 Richard Guenther <rguenther@suse.de>
2904
2905 PR middle-end/48953
2906 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2907
2908 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2909
2910 * opts.c (finish_options): Move warning settings from process_options.
2911 * toplev.c (process_options): Move warning settings to finish_options.
2912
2913 2011-05-11 Richard Guenther <rguenther@suse.de>
2914
2915 PR tree-optimization/18041
2916 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2917 (simplify_bitwise_binary): ... this. Handle operand conversions
2918 by applying them to the result instead.
2919 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2920
2921 2011-05-11 Richard Guenther <rguenther@suse.de>
2922
2923 * gimple.c (gimple_canonical_types_compatible_p): Split out
2924 from gimple_types_compatible_p and friends. Do not recurse
2925 to pointed-to types.
2926 (gimple_canonical_type_eq): Use it.
2927 (iterative_hash_canonical_type): Split out from
2928 iterative_hash_gimple_type and friends. Do not recurse
2929 to pointed-to types.
2930 (gimple_canonical_type_hash): Use it, allocate the hash here.
2931
2932 2011-05-11 Revital Eres <revital.eres@linaro.org>
2933
2934 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2935 recognizing doloop.
2936
2937 2011-05-11 Revital Eres <revital.eres@linaro.org>
2938
2939 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2940 instead of PREV_INSN.
2941
2942 2011-05-11 Revital Eres <revital.eres@linaro.org>
2943
2944 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2945 * loop-doloop.c (doloop_condition_get): Likewise.
2946 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2947 (doloop_end): New.
2948 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2949
2950 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2951
2952 * tree.def (CASE_LABEL_EXPR): Add an operand.
2953 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2954
2955 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2956
2957 * c-decl.c (c_override_global_bindings_to_false): Remove.
2958 (global_bindings_p): Don't check
2959 c_override_global_bindings_to_false.
2960 * c-tree.h (c_override_global_bindings_to_false): Remove.
2961 * c-typeck.c (composite_type): Don't set
2962 c_override_global_bindings_to_false.
2963
2964 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2965
2966 PR target/48857, 48495
2967 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2968 (VSX_MODE): Ditto.
2969 (VSX_MOVE_MODE): Ditto.
2970 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2971 VSX vector types. Add V2DImode.
2972 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2973 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2974 (MODES_TIEABLE_P): Ditto.
2975
2976 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2977 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2978 VSX_VECTOR_MODE.
2979 (init_cumulative_args): Ditto.
2980 (rs6000_function_arg_boundary): Ditto.
2981 (rs6000_function_arg_advance_1): Ditto.
2982 (rs6000_function_arg): Ditto.
2983 (rs6000_function_ok_for_sibcall): Ditto.
2984 (emit_frame_save): Ditto.
2985 (rs6000_function_value): Ditto.
2986 (rs6000_libcall_value): Ditto.
2987
2988 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2989
2990 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2991 i386/darwin-lib.h to $libgcc_tm_file.
2992 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2993
2994 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2995
2996 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2997
2998 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2999
3000 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3001 * config/rs6000/rs6000-tables.opt: New file (generated).
3002 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3003 rs6000/rs6000-tables.opt to extra_options.
3004 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3005 * config/rs6000/rs6000.c (rs6000_select): Remove.
3006 (processor_target_table): Move contents to rs6000-cpus.def.
3007 (darwin_rs6000_override_options): Check
3008 global_options_set.x_rs6000_cpu_index instead of
3009 rs6000_select[1].string.
3010 (rs6000_option_override_internal): Likewise.
3011 (rs6000_handle_option): Don't assert that global structures are in
3012 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3013 (rs6000_default_cpu): New variable.
3014 (rs6000_file_start): Set it instead of local default_cpu. Check
3015 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3016 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3017 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3018 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3019 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3020 rs6000_select): Remove.
3021 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3022 Remove.
3023 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3024 * config/rs6000/t-rs6000
3025 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3026 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3027 global_options_set.x_rs6000_cpu_index instead of
3028 rs6000_select[1].string.
3029 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3030 global_options_set.x_rs6000_cpu_index instead of
3031 rs6000_select[1].string.
3032
3033 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3034
3035 * config.gcc (libgcc_tm_file): Define instead of including files
3036 from ../../libgcc/config/ in tm_file.
3037 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3038 * configure: Regenerate.
3039 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3040 libgcc_tm.h, cs-libgcc_tm.h): New.
3041 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3042 (clean): Remove libgcc_tm.h.
3043 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3044 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3045 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3046
3047 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3048
3049 PR target/48896
3050 * config/avr/avr.c (avr_ret_register): Return unsigned int
3051 instead of int.
3052 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3053 it to avr_libcall_value.
3054 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3055 expand_expr.
3056 (avr_expand_binop_builtin): Ditto.
3057 (avr_expand_unop_builtin): Ditto.
3058
3059 2011-05-10 DJ Delorie <dj@redhat.com>
3060
3061 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3062 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3063 * config/rx/rx.c (rx_align_for_label): Add label and
3064 uses_threshold parameters. Do not align when the label is not
3065 used enough.
3066 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3067
3068 2011-05-10 Richard Guenther <rguenther@suse.de>
3069
3070 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3071 a series of conversions and apply foldings similar to what
3072 fold-const does.
3073 (tree_ssa_forward_propagate_single_use_vars): Call it.
3074
3075 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3076
3077 PR tree-optimization/48611
3078 PR tree-optimization/48794
3079 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3080 referenced from RESX or EH_DISPATCH arguments.
3081
3082 PR debug/48928
3083 * dfp.c (decimal_to_decnumber): Handle conversion from
3084 dconst{1,2,m1,half}.
3085
3086 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3087
3088 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3089 for !flag_prefer_avx128.
3090 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3091
3092 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3093
3094 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3095 (fold_ternary_loc): Use expr_location_or.
3096
3097 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3098
3099 PR debug/48853
3100 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3101 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3102 Pmode and mem_mode is not VOIDmode.
3103
3104 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3105
3106 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3107 TYPE_QUAL_RESTRICT): Convert to enum.
3108
3109 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3110
3111 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3112 (const_pow2_1_to_8_operand): Ditto.
3113 (const_pow2_1_to_128_operand): Ditto.
3114 (const_pow2_1_to_32768_operand): Ditto.
3115 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3116 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3117 in insn constraint to check integer value of operand 3.
3118 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3119
3120 (PINSR_MODE): New mode iterator.
3121 (sse2p4_1): New mode attribute.
3122 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3123 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3124 iterator. Use const_int_operand instead of
3125 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3126 exact_log2 in insn constraint to check integer value of operand 3.
3127
3128 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3129
3130 * config/i386/sse.md (blendbits): Remove mode attribute.
3131 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3132 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3133 Check integer value of operand 3 in insn constraint.
3134
3135 2011-05-09 Richard Guenther <rguenther@suse.de>
3136
3137 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3138 for diagnostics.
3139 (lto_symtab_merge): Likewise. Do not register types here.
3140 (lto_symtab_merge_decls_2): Likewise.
3141 (lto_symtab_merge_decls_1): Likewise.
3142 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3143 * gimple.c (enum gtc_mode): Declare.
3144 (gimple_types_compatible_p): Make static.
3145
3146 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3147
3148 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3149 temporary register to match Pmode.
3150
3151 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3152
3153 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3154 and *vec_concatv4si_1_avx.
3155
3156 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3157
3158 PR rtl-optimization/48927
3159 * ira-conflicts.c (commutative_constraint_p): Use
3160 recog_data.alternative_enabled_p to disable alternatives where
3161 "enabled" attribute is false.
3162 (get_dup_num): Ditto.
3163 * ira-lives.c (single_reg_class): Ditto.
3164 (ira_implicitly_set_insn_hard_regs): Ditto.
3165
3166 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3167
3168 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3169 (dataflow_set_preserve_mem_locs): Likewise.
3170
3171 2011-05-09 Philipp Thomas <pth@suse.de>
3172
3173 * config/mep/mep.c (mep_validate_vliw): Syntax description
3174 should not be translated.
3175
3176 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3177
3178 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3179 * config/mips/mips-tables.opt: New file (generated).
3180 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3181 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3182 MIPS_ARCH_OPTION_NATIVE): Define.
3183 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3184 mips-cpus.def.
3185 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3186 mips_parse_cpu): Remove.
3187 (mips_cpu_info_from_opt, mips_default_arch): New.
3188 (mips_handle_option): Don't assert that global structures are in
3189 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3190 (mips_option_override): Use new variables and functions to set
3191 state of these options. Use strcmp to check for individual CPU names.
3192 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3193 definition.
3194 * config/mips/mips.opt (march=): Use ToLower and Enum.
3195 (mips): Use ToLower, Enum and Var.
3196 (mtune=): Use ToLower and Enum.
3197 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3198
3199 2011-05-08 Jan Hubicka <jh@suse.cz>
3200
3201 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3202 Arrange type pairs to be UID ordered.
3203 (gimple_lookup_type_leader): Make inline.
3204
3205 2011-05-09 Nick Clifton <nickc@redhat.com>
3206
3207 PR target/48899
3208 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3209 PROCESSOR_DEFAULT.
3210
3211 PR target/48897
3212 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3213 variable 's'.
3214
3215 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3216
3217 * combine.c (simplify_comparison): Abstract out parts into...
3218 (simplify_compare_const): ... new function.
3219 (try_combine): Generalize parallel arithmetic/compare combining
3220 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3221
3222 2011-05-08 Jan Hubicka <jh@suse.cz>
3223
3224 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3225 (cgraph_create_virtual_clone): Call hooks once virtual clone
3226 is finished.
3227 * cgraph.h (cgraph_clone_node): Update prototype.
3228 * ipa-cp.c (ipcp_estimate_growth): Use
3229 estimate_ipcp_clone_size_and_time.
3230 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3231 * lto-cgraph.c (input_node): Update.
3232 * ipa-inline.c (recursive_inlining): Update.
3233 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3234 (evaluate_conditions_for_known_args): Break out from ...
3235 (evaluate_conditions_for_edge): ... here.
3236 (evaluate_conditions_for_ipcp_clone): New function.
3237 (inline_node_duplication_hook): Update clone summary based
3238 on parameter map.
3239 (estimate_callee_size_and_time): Rename to ...
3240 (estimate_node_size_and_time): take NODE instead of EDGE;
3241 take POSSIBLE_TRUTHS as argument.
3242 (estimate_callee_size_and_time): Update.
3243 (estimate_ipcp_clone_size_and_time): New function.
3244 (do_estimate_edge_time): Update.
3245
3246 2011-05-08 Richard Guenther <rguenther@suse.de>
3247
3248 PR middle-end/48908
3249 PR middle-end/48905
3250 * expmed.c (expand_shift_1): Compute adjusted constant shift
3251 amount manually.
3252
3253 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3254
3255 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3256
3257 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3258
3259 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3260
3261 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3262
3263 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3264
3265 2011-05-07 Jan Hubicka <jh@suse.cz>
3266
3267 * ipa-inline-transform.c (inline_call): Account when program size
3268 decreases.
3269 * ipa-inline.c (relative_time_benefit): New function.
3270 (edge_badness): Reorganize to be power 2 based; fix thinko when
3271 computing badness for negative growth; update comments to match
3272 reality; better dumps.
3273
3274 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3275
3276 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3277 type to bool and adjust comment.
3278 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3279 (fold_mathfn_compare): Remove calls to global_bindings_p.
3280 (fold_inf_compare): Likewise.
3281 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3282 * c-tree.h (global_bindings_p): Adjust prototype.
3283 * c-decl.c (global_bindings_p): Return bool and simplify.
3284
3285 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3286
3287 PR tree-optimization/48837
3288 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3289 when accumulator transformation is performed.
3290
3291 2011-05-06 Jan Hubicka <jh@suse.cz>
3292
3293 * i386.h (ix86_tune_indices): Add
3294 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3295 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3296 * i386.c (initial_ix86_tune_features): Add
3297 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3298 (software_prefetching_beneficial_p): Remove predicate.
3299 (ix86_option_override_internal): Use new macro.
3300
3301 2011-05-06 Jan Hubicka <jh@suse.cz>
3302
3303 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3304
3305 2011-05-06 Jan Hubicka <jh@suse.cz>
3306
3307 * cgraph.c (cgraph_add_thunk): Create real function node instead
3308 of alias node; finalize it and mark needed/reachale; arrange visibility
3309 to be right and add it into the corresponding same comdat group list.
3310 (dump_cgraph_node): Dump thunks.
3311 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3312 cgraph_function_with_gimple_body_p,
3313 cgraph_first_function_with_gimple_body,
3314 cgraph_next_function_with_gimple_body): New functions.
3315 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3316 New macros.
3317 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3318 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3319 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3320 devirtualization when optimizing.
3321 (verify_cgraph_node): Verify thunks.
3322 (cgraph_analyze_function): Analyze thunks.
3323 (cgraph_mark_functions_to_output): Output thunks only in combination
3324 with function they are assigned to.
3325 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3326 alias into normal node.
3327 (assemble_thunks): New functoin.
3328 (cgraph_expand_function): Use it.
3329 * lto-cgraph.c (lto_output_node): Stream thunks.
3330 (input_overwrite_node): Stream in thunks.
3331 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3332 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3333 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3334 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3335 (inline_analyze_function): Do not care about thunk jump functions.
3336 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3337 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3338 cgraph_function_with_gimple_body_p.
3339 * passes.c (do_per_function_toporder): Use
3340 cgraph_function_with_gimple_body_p.
3341 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3342 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3343 (function_called_by_processed_nodes_p): Likewise.
3344
3345 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3346
3347 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3348 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3349 entries.
3350 (mabi=): Replace with separate entries for mabi=altivec,
3351 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3352 mabi=ieeelongdouble and mabi=ibmlongdouble.
3353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3354 check for -mabi=spe without SPE ABI support here.
3355 (rs6000_handle_option): Replace OPT_mabi_ handling with
3356 OPT_mabi_altivec and OPT_mabi_spe handling.
3357
3358 2011-05-06 Cary Coutant <ccoutant@google.com>
3359
3360 * dwarf2out.c (contains_subprogram_definition): New function.
3361 (should_move_die_to_comdat): Call it.
3362
3363 2011-05-06 Jeff Law <law@redhat.com>
3364
3365 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3366 remove_ctrl_stmt_and_useless_edges.
3367 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3368 (fixup_template_block, thread_single_edge): Likewise.
3369 (mark_threaded_blocks): Use THREAD_TARGET.
3370
3371 2011-05-06 Alan Modra <amodra@gmail.com>
3372
3373 PR target/48900
3374 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3375 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3376
3377 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3378
3379 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3380 constraint modifier to "r".
3381
3382 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3383
3384 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3385 fall through for OPT_mcmodel_.
3386
3387 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3388
3389 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3390 instruction sizes.
3391 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3392
3393 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3394
3395 PR target/47930
3396 * config/arm/arm.opt (marm): Document it.
3397 (mthumb): Reject negative variant.
3398
3399 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3400
3401 PR target/48898
3402 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3403 Fix typo in "ccvt" variable name.
3404
3405 2011-05-06 Tristan Gingold <gingold@adacore.com>
3406
3407 PR target/48895
3408 * config/vms/vms-ar.c (main): Remove cwd variable.
3409
3410 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3411
3412 PR debug/48902
3413 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3414
3415 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3416
3417 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3418 * gimplify.c (gimplify_switch_expr): Likewise.
3419 * omp-low.c (expand_omp_sections): Likewise.
3420 * tree-eh.c (lower_try_finally_switch): Likewise.
3421 (lower_eh_dispatch): Likewise.
3422 * tree.h (build_case_label): Declare.
3423 * tree.c (build_case_label): Define.
3424
3425 2011-05-05 Jason Merrill <jason@redhat.com>
3426
3427 PR c++/40975
3428 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3429 (copy_statement_list): Don't recurse.
3430 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3431 STATEMENT_LIST.
3432
3433 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3434
3435 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3436 through from -mfpu= handling.
3437 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3438
3439 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3440
3441 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3442 POST_MODIFY.
3443
3444 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3445
3446 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3447 for 11.31.
3448 (hppa[12]*-*-hpux11*): Ditto.
3449 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3450 * config/ia64/hpux-unix2003.h: New.
3451 * config/pa/pa-hpux1131.opt: New.
3452 * config/pa/pa-hpux1131.h: New.
3453 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3454 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3455 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3456
3457 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3458
3459 PR debug/48853
3460 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3461 instead of mode as 3rd argument to recursive call.
3462 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3463 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3464 VOIDmode.
3465 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3466 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3467 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3468 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3469
3470 2011-05-05 Julian Brown <julian@codesourcery.com>
3471
3472 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3473 parenthesis in D-register case.
3474
3475 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3476
3477 * opt-functions.awk (var_type_struct): Handle Enum options.
3478 * optc-gen.awk: Don't check range of variables of character type.
3479 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3480 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3481 rs6000_sdata_name, rs6000_explicit_options): Remove.
3482 (rs6000_option_override_internal): Check for -malign-power here.
3483 Use global_options_set instead of rs6000_explicit_options.
3484 (rs6000_parse_fpu_option): Remove.
3485 (rs6000_handle_option): Access variables via opts and opts_set
3486 pointers. Use error_at and warning_at. Add fall-through
3487 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3488 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3489 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3490 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3491 here. Don't use rs6000_parse_fpu_option.
3492 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3493 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3494 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3495 (mrecip=): Use Var.
3496 (mspe): Use Var and Save.
3497 (mtraceback=): Use Enum and Var.
3498 (rs6000_traceback_type): New Enum and EnumValue entries.
3499 (mfloat-gprs=): Use Enum, Var and Save.
3500 (rs6000_float_gprs): New Enum and EnumValue entries.
3501 (mlong-double-): use Var and Save.
3502 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3503 (malign-): Use Enum and Var.
3504 (rs6000_alignment_flags): New Enum and EnumValue entries.
3505 (mfpu=): Use Enum.
3506 (fpu_type_t): New Enum and EnumValue entries.
3507 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3508 global_options_set instead of rs6000_explicit_options.
3509 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3510 global_options_set instead of rs6000_explicit_options.
3511 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3512 global_options_set instead of rs6000_explicit_options.
3513 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3514 global_options_set instead of rs6000_explicit_options.
3515 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3516 global_options_set instead of rs6000_explicit_options.
3517 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3518 global_options_set instead of rs6000_explicit_options.
3519 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3520 definition.
3521 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3522 global_options_set instead of rs6000_explicit_options.
3523 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3524 (rs6000_cmodel): New Enum and EnumValue entries.
3525 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3526 global_options_set instead of rs6000_explicit_options.
3527 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3528 (mtls-size=): Use Enum and Var.
3529 (rs6000_tls_size): New Enum and EnumValue entries.
3530
3531 2011-05-05 Michael Matz <matz@suse.de>
3532
3533 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3534 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3535 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3536 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3537 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3538 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3539 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3540 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3541 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3542 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3543 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3544 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3545 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3546 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3547 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3548 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3549
3550 2011-05-05 Richard Guenther <rguenther@suse.de>
3551
3552 * expmed.c (expand_variable_shift): Rename to ...
3553 (expand_shift_1): ... this. Take an expanded shift amount.
3554 For rotates recurse directly not building trees for the shift amount.
3555 (expand_variable_shift): Wrap around expand_shift_1.
3556 (expand_shift): Adjust.
3557
3558 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3559
3560 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3561
3562 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3563
3564 * tree.h (get_pending_sizes): Remove prototype.
3565 (put_pending_size): Likewise.
3566 (put_pending_sizes): Likewise.
3567 * stor-layout.c (pending_sizes): Delete.
3568 (get_pending_sizes): Likewise.
3569 (put_pending_size): Likewise.
3570 (put_pending_sizes): Likewise.
3571 (variable_size): Do not call put_pending_size and tidy up.
3572 * function.h (struct function): Remove dont_save_pending_sizes_p.
3573 * lto-streamer-in.c (input_function): Do not stream it.
3574 * lto-streamer-out.c (output_function): Likewise.
3575 * tree-inline.c (initialize_cfun): Do not copy it.
3576 * c-decl.c (store_parm_decls): Do not set it.
3577 * omp-low.c (create_task_copyfn): Likewise.
3578 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3579
3580 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3581
3582 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3583 conditions.
3584 (*movdf_internal): Ditto.
3585 (*movdf_internal_nointeger): Ditto.
3586 (*movsf_internal): Ditto.
3587
3588 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3589
3590 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3591 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3592 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3593 (c_variable_size): Remove.
3594 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3595 call put_pending_sizes.
3596 (get_parm_info): Add parameter expr. Use it to set
3597 arg_info->pending_sizes.
3598 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3599 get_pending_sizes.
3600 * c-parser.c (c_parser_parms_declarator): Update call to
3601 c_parser_parms_list_declarator.
3602 (c_parser_parms_list_declarator): Take parameter expr. Update
3603 call to push_parm_decl. Update recursive call. Don't call
3604 get_pending_sizes. Update calls to get_parm_info.
3605 (c_parser_objc_method_definition): Update calls to
3606 c_parser_objc_method_decl and objc_start_method_definition.
3607 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3608 (c_parser_objc_method_decl): Add parameter expr. Update call to
3609 grokparm.
3610 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3611 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3612 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3613
3614 2011-05-05 Michael Hope <michael.hope@linaro.org>
3615
3616 PR pch/45979
3617 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3618 __ARM_EABI__ hosts.
3619
3620 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3621
3622 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3623 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3624 (spu_output_mi_thunk): New function.
3625
3626 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3627
3628 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3629 targetm.asm_out.print_operand.
3630 * config/sol2.c: Include target.h.
3631
3632 2011-05-04 Jan Hubicka <jh@suse.cz>
3633
3634 * ipa-inline.c (reset_edge_caches): New function.
3635 (update_caller_keys): Add check_inlinablity_for; do not
3636 reset edge caches; remove now unnecesary loop.
3637 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3638 (update_all_callee_keys): Likewise.
3639 (inline_small_functions): Sanity check cache; update code
3640 recomputing it.
3641
3642 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3643
3644 PR rtl-optimization/47612
3645 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3646 as the last insn of the sequence to be moved.
3647
3648 2011-05-04 Tobias Burnus <burnus@net-b.de>
3649
3650 PR fortran/48864
3651 * doc/invoke.texi (Ofast): Document that it
3652 enables Fortran's -fno-protect-parens.
3653
3654 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3655
3656 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3657
3658 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3659
3660 * stor-layout.c (variable_size): Do not issue errors.
3661
3662 2011-05-04 Richard Guenther <rguenther@suse.de>
3663
3664 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3665 for array-ref indices.
3666 (tree_coverage_counter_addr): Likewise.
3667 (build_fn_info_type): Use size_int for index types.
3668 (build_gcov_info): Likewise.
3669
3670 2011-05-04 Richard Guenther <rguenther@suse.de>
3671
3672 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3673 to build_int_cst.
3674 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3675 for constructor indices.
3676 (push_init_level): Likewise.
3677
3678 2011-05-04 Richard Guenther <rguenther@suse.de>
3679
3680 * explow.c (promote_mode): Move variable declarations before code.
3681
3682 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3683
3684 * tree.h (build_function_type_array): Declare.
3685 (build_varargs_function_type_array): Declare.
3686 (build_function_type_vec, build_varargs_function_type_vec): Define.
3687 * tree.c (build_function_type_array_1): New function.
3688 (build_function_type_array): New function.
3689 (build_varargs_function_type_array): New function.
3690
3691 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3692
3693 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3694 before setting STMT_VINFO_TYPE.
3695
3696 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3697
3698 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3699 instead of spu_pass_by_reference.
3700
3701 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3702
3703 * calls.c (emit_library_call_value_1): Invoke
3704 promote_function_mode hook on libcall arguments.
3705 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3706 argument being NULL.
3707 * targhooks.c (default_promote_function_mode): Lisewise.
3708 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3709 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3710
3711 * doc/tm.texi: Document that TYPE argument might be NULL.
3712
3713 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3714
3715 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3716
3717 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3718
3719 From Bernd Schmidt
3720 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3721
3722 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3723
3724 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3725 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3726 Move ...
3727 * mips-tfile.c: ... here.
3728 Don't include coretypes.h, tm.h, filenames.h.
3729 (saber_stop): Remove definition and all calls.
3730 [__SABER__]: Remove.
3731 (__LINE__): Remove default.
3732 (Size_t, Ptrdiff_t): Remove definitions.
3733 Replace by size_t, ptrdiff_t.
3734 [!MIPS_DEBUGGING_INFO]: Remove.
3735 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3736 (progname): Add const.
3737 (STATIC): Remove.
3738 Replace all uses by static.
3739 (ALIGN_SYMTABLE_OFFSET): Remove default.
3740 * mips-tdump.c: Don't include coretypes.h, tm.h.
3741 Remove !MIPS_IS_STAB guard.
3742 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3743 $(TM_H), filenames.h dependencies.
3744 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3745
3746 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3747
3748 From Jie Zhang
3749 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3750 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3751
3752 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3753
3754 From Bernd Schmidt
3755 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3756 account and save/restore RETS.
3757 (PROFILE_BEFORE_PROLOGUE): Define.
3758 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3759 the push insn to use predecrement.
3760
3761 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3762
3763 From Jie Zhang
3764 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3765
3766 2011-05-04 Nick Clifton <nickc@redhat.com>
3767
3768 * config/mn10300/mn10300.c: Include cfgloop.h.
3769 (DUMP): New macro.
3770 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3771 Lcc or a FLcc insn into the instruction stream.
3772 (mn10300_block_contains_call): New function. Returns true if the
3773 given basic block contains a CALL insn.
3774 (mn10300_loop_contains_call_insn): New function. Returns true if
3775 the given loop contains a CALL insn.
3776 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3777 to use the SETLB and Lcc or FLcc insns.
3778 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3779 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3780 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3781 disable the SETLB optimization.
3782 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3783 __SETLB__ or __NO_SETLB__.
3784 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3785 (movsf_internal): Handle MDR register.
3786 (cmpsi): Make visible.
3787 (setlb): New pattern.
3788 (Lcc): New pattern.
3789 (FLcc): New pattern.
3790
3791 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3792
3793 PR target/48860
3794 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3795 for reg<->xmm moves.
3796 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3797 (vec_concatv2di_rex64_sse): Ditto.
3798 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3799 (*vec_extractv2di_1_rex64): Ditto.
3800
3801 Revert:
3802 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3803
3804 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3805 reg<->xmm moves.
3806 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3807
3808 2011-05-04 Richard Guenther <rguenther@suse.de>
3809
3810 * tree.h (int_const_binop): Remove notrunc argument.
3811 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3812 create integer constants that are properly truncated.
3813 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3814 (const_binop): Remove zero notrunc argument to int_const_binop.
3815 (size_binop_loc): Likewise.
3816 (fold_div_compare): Likewise.
3817 (maybe_canonicalize_comparison_1): Likewise.
3818 (fold_comparison): Likewise.
3819 (fold_binary_loc): Likewise.
3820 (multiple_of_p): Likewise.
3821 * expr.c (store_constructor): Likewise.
3822 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3823 (maybe_fold_stmt_addition): Likewise.
3824 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3825 * stor-layout.c (layout_type): Likewise.
3826 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3827 * tree-sra.c (build_ref_for_offset): Likewise.
3828 (build_user_friendly_ref_for_offset): Likewise.
3829 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3830 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3831 * tree-ssa-loop-niter.c (inverse): Likewise.
3832 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3833 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3834 * tree-switch-conversion.c (check_range): Likewise.
3835 (build_constructors): Likewise.
3836 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3837 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3838 (extract_range_from_assert): Likewise.
3839 (vrp_int_const_binop): Likewise.
3840 (extract_range_from_binary_expr): Likewise.
3841 (extract_range_from_unary_expr): Likewise.
3842 (check_array_ref): Likewise.
3843 (find_case_label_range): Likewise.
3844 (simplify_div_or_mod_using_ranges): Likewise.
3845 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3846 comparing case labels for merging.
3847
3848 2011-05-03 Mark Wielaard <mjw@redhat.com>
3849
3850 * dwarf2out.c (debug_str_hash_forced): Removed.
3851 (gen_label_for_indirect_string): Removed.
3852 (get_debug_string_label): Removed.
3853 (AT_string_form): Generate label directly.
3854 (output_indirect_string): Test indirect_string_node for
3855 DW_FORM_strp instead of checking label and refcount.
3856 (prune_indirect_string): Removed.
3857 (prune_unused_types): Don't check debug_str_hash_forced or
3858 call prune_indirect_string.
3859
3860 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3861
3862 PR other/48093
3863 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3864
3865 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3866
3867 PR debug/47994
3868 PR debug/47919
3869 * combine.c (try_combine): Skip debug insns at m_split tests.
3870
3871 2011-04-26 Mark Wielaard <mjw@redhat.com>
3872
3873 PR42288
3874 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3875 when info_section_emitted.
3876
3877 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3878
3879 * config/mips/mips-opts.h: New.
3880 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3881 to mips-opts.h.
3882 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3883 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3884 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3885 via opts pointer.
3886 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3887 mips-opts.h.
3888 (mips_abi, mips_code_readable): Don't declare.
3889 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3890 (mabi=): Use Enum and Var.
3891 (mips_abi): New Enum and EnumValue entries.
3892 (mcode-readable=): Use Enum and Var.
3893 (mips_code_readable_setting): New Enum and EnumValue entries.
3894 (mr10k-cache-barrier=): Use Enum and Var.
3895 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3896
3897 2011-05-03 Jan Hubicka <jh@suse.cz>
3898
3899 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3900 replace hash by pointer map.
3901 (cgraph_node_set_element_def, cgraph_node_set_element,
3902 const_cgraph_node_set_element, varpool_node_set_element_def,
3903 varpool_node_set_element, const_varpool_node_set_element): Remove.
3904 (free_cgraph_node_set, free_varpool_node_set): New function.
3905 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3906 * tree-emutls.c: Free varpool node set.
3907 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3908 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3909 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3910 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3911 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3912 Move here from ipa.c; implement using pointer_map
3913 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3914 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3915 debug_cgraph_node_set, varpool_node_set_new,
3916 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3917 dump_varpool_node_set, debug_varpool_node_set):
3918 Move to ipa-uitls.c.
3919 * passes.c (ipa_write_summaries): Update.
3920
3921 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3922
3923 From Mike Frysinger:
3924 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3925 bf542/bf544/bf547/bf548/bf549.
3926
3927 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3928
3929 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3930
3931 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3932
3933 From Bernd Schmidt:
3934 * config/bfin/bfin.md (MOVCC): New mode_macro.
3935 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3936 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3937 comments from generated assembly.
3938
3939 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3940
3941 From Bernd Schmidt
3942 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3943 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3944 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3945 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3946 * config/bfin/lib1funcs.asm (___muldi3): New function.
3947
3948 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3949
3950 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3951 build_function_type_list instead of build_function_type.
3952 Rearrange initialization of `args' to do so.
3953
3954 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3955
3956 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3957 instead of build_function_type.
3958
3959 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3960
3961 * config/rs6000/rs6000.c (spe_init_builtins): Call
3962 build_function_type_list instead of build_function_type.
3963 (paired_init_builtins, altivec_init_builtins): Likewise.
3964 (builtin_function_type): Likewise.
3965
3966 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3967
3968 * config/sh/sh.c (sh_media_init_builtins): Call
3969 build_function_type_list instead of build_function_type.
3970
3971 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3972
3973 * config/sparc/sparc.c (sparc_file_end): Call
3974 build_function_type_list instead of build_function_type.
3975
3976 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3977
3978 * config/alpha/alpha.c (alpha_init_builtins): Call
3979 build_function_type_list instead of build_function_type.
3980
3981 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3982
3983 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3984 build_function_type_list instead of build_function_type.
3985
3986 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3987
3988 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3989 build_function_type_list instead of build_function_type.
3990 Delete `endlink' variable.
3991
3992 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3993
3994 * config/avr/avr.c (avr_init_builtins): Call
3995 build_function_type_list instead of build_function_type.
3996
3997 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3998
3999 * config/picochip/picochip.c (picochip_init_builtins): Call
4000 build_function_type_list instead of build_function_type.
4001 Delete `endlink' variable.
4002
4003 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4004
4005 * config/bfin/bfin.c (bfin_init_builtins): Call
4006 build_function_type_list instead of build_function_type.
4007
4008 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4009
4010 From Bernd Schmidt
4011 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4012 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4013
4014 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4015
4016 From Jie Zhang:
4017 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4018 libbffastfp overrides libgcc when -mfast-fp.
4019
4020 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4021
4022 Originally from Bernd Schmidt
4023 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4024 * config/bfin/bfin.c (override_options): Test it and error if
4025 TARGET_FDPIC.
4026
4027 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4028
4029 Originally From Bernd Schmidt
4030 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4031 FD-PIC.
4032
4033 2011-05-03 Jeff Law <law@redhat.com>
4034
4035 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4036 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4037 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4038 than accessing AUX field directly. Free the AUX field before
4039 clearing it.
4040 (thread_block, thread_through_loop_header): Likewise.
4041 (thread_single_edge, mark_threaded_blocks): Likewise.
4042 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4043 (register_jump_thread): Do not attempt to thread to a NULL edge.
4044
4045 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4046
4047 * function.c (init_function_start): Call decide_function_section.
4048 * varasm.c (decide_function_section): New function.
4049 (assemble_start_function): When not using
4050 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4051 or first_function_block_is_cold.
4052 * rtl.h (decide_function_section): Declare.
4053
4054 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4055 Jakub Jelinek <jakub@redhat.com>
4056
4057 PR target/48774
4058 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4059 only succeed if req_mode is the same as set_mode.
4060
4061 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4062
4063 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4064 * genemit.c (gen_exp): Handle RETURN.
4065 * emit-rtl.c (verify_rtx_sharing): Likewise.
4066 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4067 * rtl.c (copy_rtx): RETURN is shared.
4068 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4069 (ret_rtx): New.
4070 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4071 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4072 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4073 * config/cris/cris.c (cris_expand_return): Likewise.
4074 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4075 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4076 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4077 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4078 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4079 Likewise.
4080 * config/v850/v850.c (expand_epilogue): Likewise.
4081 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4082 * config/arm/arm.md (epilogue): Likewise.
4083 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4084 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4085 variable to ret_reg.
4086
4087 2011-05-03 Richard Guenther <rguenther@suse.de>
4088
4089 PR lto/48846
4090 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4091 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4092 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4093
4094 2011-05-03 Richard Guenther <rguenther@suse.de>
4095
4096 * c-decl.c (grokdeclarator): Instead of looking at
4097 TREE_OVERFLOW check if the constant fits in the index type.
4098
4099 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4100
4101 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4102 (vec_store_lanes<mode><mode>): Likewise.
4103
4104 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4105
4106 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4107 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4108 convert_optab_index values.
4109 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4110 * genopinit.c (optabs): Initialize the new optabs.
4111 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4112 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4113 (expand_STORE_LANES): New functions.
4114 * tree.h (build_array_type_nelts): Declare.
4115 * tree.c (build_array_type_nelts): New function.
4116 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4117 (vect_model_load_cost): Likewise.
4118 (vect_store_lanes_supported, vect_load_lanes_supported)
4119 (vect_record_strided_load_vectors): Declare.
4120 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4121 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4122 (vect_transform_strided_load): Split out statement recording into...
4123 (vect_record_strided_load_vectors): ...this new function.
4124 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4125 (write_vector_array, create_array_ref): New functions.
4126 (vect_model_store_cost): Add store_lanes_p argument.
4127 (vect_model_load_cost): Add load_lanes_p argument.
4128 (vectorizable_store): Try to use store-lanes functions for
4129 interleaved stores.
4130 (vectorizable_load): Likewise load-lanes and loads.
4131 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4132 to vect_model_store_cost.
4133 (vect_build_slp_tree): Likewise vect_model_load_cost.
4134
4135 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4136
4137 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4138 * hooks.c (hook_bool_mode_uhwi_false): New function.
4139 * target.def (array_mode_supported_p): New hook.
4140 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4141 * doc/tm.texi: Regenerate.
4142 * stor-layout.c (mode_for_array): New function.
4143 (layout_type): Use it.
4144 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4145 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4146
4147 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4148
4149 PR target/48723
4150 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4151 for -fstack-check if the size to allocate is negative.
4152
4153 2011-05-02 Lawrence Crowl <crowl@google.com>
4154
4155 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4156 (timevar_cond_start): New for starting a timer only when it is not
4157 already running.
4158 (timevar_cond_stop): New for stopping a timer when it was not already
4159 running.
4160
4161 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4162 (timevar_cond_start): New as above.
4163 (timevar_cond_stop): New as above.
4164
4165 * timevar.def: Add start/stop timers for compiler phases,
4166 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4167 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4168 and TV_PHASE_FINALIZE.
4169 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4170 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4171 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4172 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4173 Make unused TV_OVERLOAD into a start/stop timer.
4174
4175 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4176 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4177 to indicate that they are start/stop timers.
4178
4179 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4180 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4181 Move initialization to do_compile.
4182 (do_compile): Add initialization from above.
4183 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4184
4185 * c-decl.c (c_write_global_declarations): Add start/stop of
4186 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4187
4188 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4189 or TV_PARSE_INLINE, as appropriate.
4190 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4191 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4192
4193 2011-05-02 Jason Merrill <jason@redhat.com>
4194
4195 PR c++/40975
4196 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4197
4198 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4199
4200 PR c/35445
4201 * c-decl.c (finish_decl): Only create a composite if the types are
4202 compatible.
4203
4204 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4205
4206 * config/fr30/fr30-protos.h (Mmode): Don't define.
4207 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4208 definition where used.
4209 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4210 define. Expand definitions where used.
4211 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4212 Expand definitions where used.
4213 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4214 rx_function_arg, rx_function_arg_advance,
4215 rx_function_arg_boundary): Expand definitions of those macros.
4216 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4217 definition where used.
4218
4219 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4220
4221 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4222 reg<->xmm moves.
4223 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4224 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4225 with *movv2sf_internal_rex64_avx.
4226 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4227 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4228 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4229 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4230 "vex" in "prefix" attribute calculation.
4231 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4232
4233 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4234
4235 PR target/47951
4236 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4237 inputs match the output.
4238
4239 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4240
4241 PR target/47955
4242 * config/m68k/m68k.c (m68k_expand_prologue): Set
4243 current_function_static_stack_size.
4244
4245 2011-05-02 Jan Hubicka <jh@suse.cz>
4246
4247 * lto-streamer.c (lto_streamer_cache_insert_1,
4248 lto_streamer_cache_lookup, lto_streamer_cache_create,
4249 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4250 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4251
4252 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4253
4254 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4255 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4256 config/m68k/t-opts: New files.
4257 * config/m68k/m68k-tables.opt: New file (generated).
4258 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4259 extra_options and m68k/t-opts to tmake_file.
4260 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4261 (all_isas): Initialize using m68k-isas.def.
4262 (all_microarchs): Initialize using m68k-microarchs.def.
4263 (m68k_find_selection): Remove.
4264 (m68k_handle_option): Don't assert that global structures are in
4265 use. Use error_at. Access variables via opts pointer. Don't
4266 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4267 directly for -m68020-40 and -m68020-60.
4268 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4269 m68k_tune_entry here.
4270 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4271 to m68k-opts.h.
4272 (m68k_library_id_string): Remove declaration.
4273 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4274 (m68k_library_id_string): New Variable.
4275 (march=, mcpu=, mtune=): Use Enum and Var.
4276
4277 2011-05-02 Richard Guenther <rguenther@suse.de>
4278
4279 * varasm.c (output_constructor_regular_field): Compute zero-based
4280 index with double-ints. Make sure to ICE instead of producing
4281 wrong code.
4282 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4283 in asserts. Properly use a signed type.
4284
4285 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4286
4287 * config/i386/sse.md (V): New mode iterator.
4288 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4289 TARGET_SSE2.
4290 (V_256): Rename from AVX256MODE.
4291 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4292 condition to all users.
4293 (VF1): Ditto.
4294 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4295 condition to all users.
4296 (VF_128): Make V4SF mode unconditional.
4297 (VF_256): Rename from AVX256MODEF2P.
4298 (VI4F_128): Rename from SSEMODE4S.
4299 (VI8F_128): Rename from SSEMODE2D.
4300 (VI4F_256): Rename from AVX256MODE8P.
4301 (VI8F_256): Rename from AVX256MODE4P.
4302 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4303 (ssescalarmodesuffix): Remove SF and DF modes.
4304 (SSEMODE124): Remove.
4305 (SSEMODE1248): Ditto.
4306 (SSEMODEF2P): Ditto.
4307 (AVXMODEF2P): Ditto.
4308 (AVXMODEFDP): Ditto.
4309 (AVXMODEFSP): Ditto.
4310 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4311 unconditional.
4312 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4313 unconditional.
4314 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4315 xop_pcmov_<mode>256. Use V mode iterator.
4316
4317 Adjust RTX patterns globally for renamed mode attributes.
4318
4319 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4320
4321 * haifa-sched.c (sched_emit_insn): Emit insn before first
4322 non-scheduled insn. Inform back-end about new insn. Add
4323 new insn to scheduled_insns list.
4324
4325 2011-05-02 Richard Guenther <rguenther@suse.de>
4326
4327 PR tree-optimization/48822
4328 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4329 (process_scc): Indicate which iteration we start.
4330
4331 2011-05-02 Jan Hubicka <jh@suse.cz>
4332
4333 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4334 (lto_section_overrun): New.
4335 * lto-section-out.c (append_block): Rename to ...
4336 (lto_append_block): ... this one; export.
4337 (lto_output_1_stream): Move lto lto-streamer.h
4338 (lto_output_data_stream): Update.
4339 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4340 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4341 functions.
4342
4343 2011-05-02 Richard Guenther <rguenther@suse.de>
4344
4345 * tree.c (tree_code_counts): New global array.
4346 (record_node_allocation_statistics): Count individual tree codes.
4347 (dump_tree_statistics): Dump individual code stats.
4348
4349 2011-05-01 Jan Hubicka <jh@suse.cz>
4350
4351 * ipa-inline.c (caller_growth_limits): Fix thinko when
4352 looking for largest stack frame.
4353 * ipa-inline.h (dump_inline_summary): Declare.
4354 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4355 on stack usage.
4356 (dump_inline_summary): Export.
4357 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4358
4359 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4360
4361 * reginfo.c (memory_move_cost): Change rclass argument type form
4362 'enum reg_class' to reg_class_t.
4363 * reload.h (memory_move_cost): Update prototype.
4364 * postreload.c reload_cse_simplify_set): Change type dclass var to
4365 reg_class_t.
4366 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4367 Update prototype.
4368 (ira_allocate_and_set_costs): Change aclass argument type form
4369 'enum reg_class' to reg_class_t.
4370 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4371 Change aclass argument type to reg_class_t.
4372 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4373 to reg_class_t.
4374 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4375 memory_move_cost call.
4376
4377 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4378 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4379 Change type tmp var to reg_class_t.
4380
4381 2011-04-30 Jan Hubicka <jh@suse.cz>
4382
4383 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4384 inlining into function with flatten attribute.
4385 (want_inline_small_function_p): Be more realistic about inlining
4386 cold calls where callee size grows.
4387
4388 2011-04-30 Jan Hubicka <jh@suse.cz>
4389
4390 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4391 flags.
4392
4393 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4394
4395 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4396 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4397 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4398 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4399 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4400 (print_operand): Rename to...
4401 (sparc_print_operand): ...this. Make static. Adjust
4402 sparc_print_operand function call.
4403 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4404 functions.
4405
4406 2011-04-30 Jan Hubicka <jh@suse.cz>
4407
4408 PR middle-end/48752
4409 * ipa-inline.c (early_inliner): Disable when doing late
4410 addition of function.
4411
4412 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4413
4414 * dwarf2out.c (get_address_mode): New inline.
4415 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4416 if not dwarf_strict emit
4417 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4418 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4419 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4420 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4421 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4422 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4423 mem_loc_descriptor callers.
4424 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4425 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4426 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4427 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4428 (base_types): New variable.
4429 (get_base_type_offset, calc_base_type_die_sizes,
4430 base_type_for_mode, mark_base_types, base_type_cmp,
4431 move_marked_base_types): New functions.
4432 (calc_die_sizes): Assert that die_offset is 0 or equal to
4433 next_die_offset.
4434 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4435 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4436 callers. If not dwarf_strict, call mem_loc_descriptor even for
4437 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4438 (gen_subprogram_die): Don't give up on call site parameters
4439 with non-integral or large integral modes. Adjust
4440 mem_loc_descriptor callers.
4441 (prune_unused_types): Call prune_unused_types_mark on base_types
4442 vector entries.
4443 (resolve_addr): Call mark_base_types.
4444 (dwarf2out_finish): Call move_marked_base_types.
4445
4446 PR tree-optimization/48809
4447 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4448 type.
4449 (gen_inbound_check): Don't compute index_expr - range_min in utype
4450 again, instead reuse SSA_NAME initialized in build_arrays.
4451 Remove two useless gsi_for_stmt calls.
4452
4453 2011-04-29 Jeff Law <law@redhat.com>
4454
4455 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4456
4457 2011-04-29 Martin Jambor <mjambor@suse.cz>
4458
4459 * cgraph.h (cgraph_postorder): Remove declaration.
4460 * ipa-utils.h (ipa_free_postorder_info): Declare.
4461 (ipa_reverse_postorder): Likewise.
4462 * cgraphunit.c: Include ipa-utils.h.
4463 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4464 * ipa-inline.c: Include ipa-utils.h.
4465 (ipa_inline): Update call to ipa_reverse_postorder.
4466 * ipa-pure-const.c (propagate_pure_const): Update call to
4467 ipa_reduced_postorder and ipa_print_order. Call
4468 ipa_free_postorder_info to clean up.
4469 (propagate_nothrow): Likewise.
4470 * ipa-reference.c (propagate): Removed a useless call to
4471 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4472 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4473 * ipa.c: Include ipa-utils.h.
4474 (ipa_profile): Update call to ipa_reverse_postorder.
4475 (cgraph_postorder): Moved to...
4476 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4477 (ipa_utils_print_order): Renamed to ipa_print_order.
4478 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4479 comments.
4480 (ipa_free_postorder_info): New function.
4481 * passes.c: Include ipa-utils.h.
4482 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4483 (ipa_write_summaries): Likewise.
4484 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4485 (cgraphunit.o): Likewise.
4486 (ipa.o): Likewise.
4487 (ipa-inline.o): Likewise.
4488
4489 2011-04-29 Jan Hubicka <jh@suse.cz>
4490
4491 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4492 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4493 * ipa-inline.h (clause_t): Turn into unsigned int.
4494 * ipa-inline-analysis.c (add_clause): Do more simplification.
4495 (and_predicates): Shortcut more cases.
4496 (predicates_equal_p): Move forward; check that clauses are properly
4497 ordered.
4498 (or_predicates): Shortcut more cases.
4499 (edge_execution_predicate): Rewrite as...
4500 (set_cond_stmt_execution_predicate): ... this function; handle
4501 __builtin_constant_p.
4502 (set_switch_stmt_execution_predicate): New .
4503 (compute_bb_predicates): New.
4504 (will_be_nonconstant_predicate): Update TODO.
4505 (estimate_function_body_sizes): Use compute_bb_predicates
4506 and free them later, always try to estimate if stmt is constant.
4507 (estimate_time_after_inlining, estimate_size_after_inlining):
4508 Gracefully handle optimized out edges.
4509 (read_predicate): Fix off by one error.
4510
4511 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4512
4513 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4514
4515 2011-04-27 Xinliang David Li <davidxl@google.com>
4516
4517 * tree-profile.c (init_ic_make_global_vars): Set
4518 tls attribute on ic vars.
4519 * coverage.c (coverage_end_function): Initialize
4520 function_list with zero.
4521
4522 2011-04-29 Richard Guenther <rguenther@suse.de>
4523
4524 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4525 for the type of the result.
4526 (fold_builtin_isascii): Likewise.
4527 (fold_builtin_toascii): Use integer_type_node where appropriate.
4528 (fold_builtin_logb): Likewise.
4529 (fold_builtin_frexp): Likewise.
4530 (fold_builtin_strstr): Likewise.
4531 (fold_builtin_strpbrk): Likewise.
4532 (fold_builtin_fputs): Likewise.
4533 (fold_builtin_sprintf): Likewise.
4534 (fold_builtin_snprintf): Likewise.
4535 (fold_builtin_printf): Likewise.
4536 (do_mpfr_remquo): Use a proper type for the assigned constant.
4537 (do_mpfr_lgamma_r): Likewise.
4538 * dwarf2out.c (resolve_one_addr): Use size_int.
4539 * except.c (init_eh): Likewise.
4540 (assign_filter_values): Use integer_type_node for filter values.
4541 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4542 indices.
4543 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4544 for EH region numbers.
4545 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4546 for the shift amount.
4547
4548 2011-04-29 Richard Guenther <rguenther@suse.de>
4549
4550 * expr.h (expand_shift): Rename to ...
4551 (expand_variable_shift): ... this.
4552 (expand_shift): Take a constant shift amount.
4553 * expmed.c (expand_shift): Rename to ...
4554 (expand_variable_shift): ... this.
4555 (expand_shift): New wrapper around expand_variable_shift.
4556 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4557 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4558 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4559 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4560 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4561 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4562 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4563 emit_store_flag_1, emit_store_flag): Likewise.
4564 * builtins.c (expand_builtin_signbit): Likewise.
4565 * calls.c (load_register_parameters): Likewise.
4566 * function.c (assign_parm_setup_block): Likewise.
4567 * lower-subreg.c (resolve_shift_zext): Likewise.
4568 * optabs.c (widen_bswap, expand_abs_nojump,
4569 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4570 * spu/spu.c (spu_expand_extv): Likewise.
4571 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4572
4573 2011-04-29 Richard Guenther <rguenther@suse.de>
4574
4575 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4576 for the remapped region number.
4577 * predict.c (build_predict_expr): Use integer_type_node for the
4578 predict kind.
4579 * fold-const.c (fold_binary_loc): Use integer_type_node for
4580 the shift amount. Use a proper type for the PLUS_EXPR operand.
4581
4582 2011-04-29 Michael Matz <matz@suse.de>
4583
4584 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4585 other trees that just builtins.
4586 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4587
4588 2011-04-29 Richard Guenther <rguenther@suse.de>
4589
4590 * tree-nested.c (get_trampoline_type): Use size_int.
4591 (get_nl_goto_field): Likewise.
4592 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4593 for all indexes.
4594 (lower_eh_constructs_2): Likewise.
4595 (lower_resx): Likewise.
4596 (lower_eh_dispatch): Likewise.
4597 * tree-mudflap.c (mf_build_string): Use size_int.
4598 (mudflap_register_call): Use integer_type_node for the flag.
4599 (mudflap_enqueue_constant): Use size_int.
4600 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4601 instead of rebuilding it.
4602
4603 2011-04-29 Richard Guenther <rguenther@suse.de>
4604
4605 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4606 Handle OBJ_TYPE_REF.
4607 (find_func_aliases_for_call): Use it more consistently.
4608
4609 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4610
4611 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4612 (rank_for_schedule): Use it.
4613 (schedule_block): Set it.
4614
4615 2011-04-28 David Li <davidxl@google.com>
4616
4617 * tree.c (crc32_string): Use crc32_byte.
4618 (crc32_byte): New function.
4619 * tree.h (crc32_byte): New function.
4620 * gcov.c (read_graph_file): Handle new cfg_cksum.
4621 (read_count_file): Ditto.
4622 * profile.c (instrument_values): Ditto.
4623 (get_exec_counts): Ditto.
4624 (read_profile_edge_counts): Ditto.
4625 (compute_branch_probabilities): Ditto.
4626 (compute_value_histograms): Ditto.
4627 (branch_prob): Ditto.
4628 (end_branch_prob): Ditto.
4629 * coverage.c (read_counts_file): Ditto.
4630 (get_coverage_counts): Ditto.
4631 (tree_coverage_counter_addr): Ditto.
4632 (coverage_checksum_string): Ditto.
4633 (coverage_begin_output): Ditto.
4634 (coverage_end_function): Ditto.
4635 (build_fn_info_type): Ditto.
4636 (build_fn_info_value): Ditto.
4637 * libgcov.c (gcov_exit): Ditto.
4638 * gcov-dump.c (tag_function): Ditto.
4639 (compute_checksum): Remove.
4640
4641 2011-04-29 Alan Modra <amodra@gmail.com>
4642
4643 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4644 unspec plus offset. Tidy macho code.
4645
4646 2011-04-29 Martin Jambor <mjambor@suse.cz>
4647
4648 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4649 node instead of a decl. Update all callers.
4650 * cgraph.h: Update declaration.
4651
4652 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4653
4654 PR tree-optimization/48765
4655 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4656 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4657 to indicate if loop aware SLP is being used. Scan the statements
4658 and update the vectorization factor according to the type of
4659 vectorization before statement analysis.
4660 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4661 pass it to vect_analyze_loop_operations.
4662 (vectorizable_reduction): Set number of copies to 1 in case of pure
4663 SLP statement.
4664 * tree-vect-stmts.c (vectorizable_conversion,
4665 vectorizable_assignment, vectorizable_shift,
4666 vectorizable_operation, vectorizable_type_demotion,
4667 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4668 Likewise.
4669 (vectorizable_condition): Move the check that it is not SLP
4670 vectorization before the number of copies check.
4671 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4672 to vectorize the loop using SLP.
4673
4674 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4675
4676 PR middle-end/48597
4677 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4678 inline asm.
4679
4680 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4681
4682 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4683 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4684 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4685 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4686 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4687 linux*.h headers.
4688 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4689 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4690 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4691 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4692 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4693 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4694 REG_NAME.
4695 * config/i386/linux.h (REG_NAME): Don't define.
4696 * config/i386/linux64.h (REG_NAME): Don't define.
4697 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4698 Undefine before defining.
4699
4700 2011-04-28 Jan Hubicka <jh@suse.cz>
4701
4702 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4703 nonconstant_names array.
4704 (estimate_function_body_sizes): Build nonconstant_names array; handle
4705 BUILT_IN_CONSTANT_P.
4706
4707 2011-04-28 Richard Guenther <rguenther@suse.de>
4708
4709 PR bootstrap/48804
4710 Revert
4711 2011-04-28 Richard Guenther <rguenther@suse.de>
4712
4713 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4714 as late as possible.
4715
4716 2011-04-28 Richard Guenther <rguenther@suse.de>
4717
4718 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4719 (debug_constraint): Do it here.
4720 (dump_constraints): And here.
4721 (rewrite_constraints): And here.
4722 (dump_constraint_edge): Remove.
4723 (dump_constraint_graph): Rewrite to produce DOT output.
4724 (solve_constraints): Build succ graph as late as possible.
4725 Dump constraint graphs before and after solving.
4726
4727 2011-04-28 Richard Guenther <rguenther@suse.de>
4728
4729 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4730 New function split out from ...
4731 (find_func_aliases): ... here. Call it.
4732 (find_func_aliases_for_call): Likewise.
4733
4734 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4735
4736 * internal-fn.h (internal_fn_name_array): Declare.
4737 (internal_fn_flags_array): Likewise.
4738
4739 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4740
4741 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4742 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4743 Move from sse.md.
4744 (ssemodefsuffix): Remove.
4745 (ssevecmodesuffix): New mode attribute.
4746 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4747 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4748 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4749 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4750 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4751 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4752 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4753 ssemodesuffix mode attribute.
4754 (float splitters): Use ssevecmodesuffix mode attribute.
4755 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4756 (sseinsmode): Rename from avxvecmode.
4757 (avxsizesuffix): Rename from avxmodesuffix.
4758 (sseintvecmode): Rename from avxpermvecmode.
4759 (ssedoublevecmode): Rename from ssedoublesizemode.
4760 (ssehalfvecmode): Rename from avxhalfvecmode.
4761 (ssescalarmode): Rename from avxscalarmode.
4762 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4763 templates for ssemodesuffix mode attribute.
4764 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4765 mode attribute.
4766
4767 Adjust RTX patterns globally for renamed mode attributes.
4768
4769 2011-04-27 Jan Hubcika <jh@suse.cz>
4770
4771 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4772 * ipa-inline-analysis.c: Include alloc-pool.h.
4773 (edge_predicate_pool): New.
4774 (trye_predicate_p): New function
4775 (false_predicate_p): New function.
4776 (add_clause): Sanity check that false clauses are "optimized";
4777 never add clauses to predicate that is already known to be false.
4778 (and_predicate): Use flase_predicate_p.
4779 (evaulate_predicate): Rename to ...
4780 (evaluate_predicate): ... this one; update all callers; assert
4781 that false is not listed among possible truths.
4782 (dump_predicate): Use true_predicate_p.
4783 (account_size_time): Use false_predicate_p.
4784 (evaulate_conditions_for_edge): Rename to ...
4785 (evaluate_conditions_for_edge) ... this one.
4786 (edge_set_predicate): New function.
4787 (inline_edge_duplication_hook): Duplicate edge predicates.
4788 (inline_edge_removal_hook): Free edge predicates.
4789 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4790 (dump_inline_summary): Update.
4791 (estimate_function_body_sizes): Set edge predicates.
4792 (estimate_calls_size_and_time): Handle predicates.
4793 (estimate_callee_size_and_time): Update.
4794 (remap_predicate): Add toplev_predicate; update comment.
4795 (remap_edge_predicates): New function.
4796 (inline_merge_summary): Compute toplev predicate; update.
4797 (read_predicate): New function.
4798 (read_inline_edge_summary): Use it.
4799 (inline_read_section): Likewise.
4800 (write_predicate): New function.
4801 (write_inline_edge_summary): Use it.
4802 (inline_write_summary): Likewise.
4803 (inline_free_summary): Free alloc pool and edge summary vec.
4804
4805 2011-04-27 Richard Guenther <rguenther@suse.de>
4806
4807 * tree-ssa-structalias.c (changed_count): Remove.
4808 (changed): Use a bitmap.
4809 (unify_nodes): Adjust.
4810 (do_sd_constraint): Likewise.
4811 (do_ds_constraint): Likewise.
4812 (do_complex_constraint): Likewise.
4813 (solve_graph): Likewise.
4814
4815 2011-04-27 Jan Hubicka <jh@suse.cz>
4816
4817 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4818
4819 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4820
4821 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4822 (avx_vperm2f128_*_operand): Ditto.
4823 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4824 Use avx_vpermilp_parallel in insn condition.
4825 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4826 Use avx_vperm2f128_parallel in insn condition.
4827
4828 2011-04-27 Richard Guenther <rguenther@suse.de>
4829
4830 * Makefile.in (tree-ssa-structalias.o): Remove
4831 gt-tree-ssa-structalias.h dependency.
4832 (GTFILES): Remove tree-ssa-structalias.c.
4833 * tree.c (allocate_decl_uid): New function.
4834 (make_node_stat): Use it.
4835 (copy_node_stat): Likewise.
4836 * tree.h (allocate_decl_uid): Declare.
4837 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4838 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4839 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4840 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4841 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4842 (struct heapvar_map): Likewise.
4843 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4844 heapvar_insert): Likewise.
4845 (make_heapvar_for): Rename to ...
4846 (make_heapvar): ... this. Simplify.
4847 (fake_var_decl_obstack): New global var.
4848 (build_fake_var_decl): New function.
4849 (make_constraint_from_heapvar): Adjust.
4850 (handle_lhs_call): Likewise.
4851 (create_function_info_for): Likewise.
4852 (intra_create_variable_infos): Likewise.
4853 (init_alias_vars): Allocate fake_var_decl_obstack.
4854 (init_alias_heapvars, delete_alias_heapvars): Remove.
4855 (compute_points_to_sets): Do not call init_alias_heapvars.
4856 (ipa_pta_execute): Likewise.
4857 (delete_points_to_sets): Free fake_var_decl_obstack.
4858
4859 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4860
4861 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4862 (si_from_UTItype, si_to_UTItype): New functions.
4863 (__udivmodti4): Use them to implement type-punning.
4864 * config/spu/multi3.c (union qword_TItype): New data type.
4865 (si_from_TItype, si_to_TItype): New functions.
4866 (__multi3): Use them to implement type-punning.
4867
4868 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4869
4870 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4871
4872 2011-04-27 Jan Hubicka <jh@suse.cz>
4873
4874 * ipa-prop.c (function_insertion_hook_holder): New holder.
4875 (ipa_add_new_function): New function.
4876 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4877 Register/deregister holder.
4878
4879 2011-04-27 Richard Guenther <rguenther@suse.de>
4880
4881 PR tree-optimization/48772
4882 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4883
4884 2011-04-27 Richard Guenther <rguenther@suse.de>
4885
4886 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4887 TARGET_MEM_REF handling.
4888
4889 2011-04-27 Nick Clifton <nickc@redhat.com>
4890
4891 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4892 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4893 (REG_CLASS_NAMES): Likewise.
4894 (REG_CLASS_CONTENTS): Likewise.
4895 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4896 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4897 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4898 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4899 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4900 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4901 duplicate register classes.
4902 (frv_class_likely_spilled_p): Likewise.
4903 (frv_register_move_cost): Likewise.
4904
4905 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4906 end of the regno_reg_class array.
4907
4908 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4909
4910 PR c/48742
4911 * c-typeck.c (build_binary_op): Don't wrap arguments if
4912 int_operands is true.
4913
4914 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4915
4916 PR target/48767
4917 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4918 targetm.calls.must_pass_in_stack for void type.
4919
4920 2011-04-26 Jan Hubicka <jh@suse.cz>
4921
4922 * cgraphbuild.c (build_cgraph_edges): Update call
4923 of cgraph_create_edge and cgraph_create_indirect_edge.
4924 * cgraph.c (cgraph_create_edge_including_clones,
4925 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4926 cgraph_update_edges_for_call_stmt_node): Do not take nest
4927 argument; do not initialize call_stmt_size/time.
4928 (dump_cgraph_node): Do not dump nest.
4929 (cgraph_clone_edge): Do not take loop_nest argument;
4930 do not propagate it; do not clone call_stmt_size/time.
4931 (cgraph_clone_node): Likewise.
4932 (cgraph_create_virtual_clone): Update.
4933 * cgraph.h (struct cgraph_edge): Remove
4934 call_stmt_size/call_stmt_time/loop_nest.
4935 (cgraph_create_edge, cgraph_create_indirect_edge,
4936 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4937 prototype.
4938 * tree-emutls.c (gen_emutls_addr): Update.
4939 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4940 loop_nest; handle indirect calls, too.
4941 (clone_inlined_nodes): Do not care about updating inline summaries.
4942 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4943 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4944 stream call_stmt_size/call_stmt_time/loop_nest.
4945 * ipa-inline.c (edge_badness): Update.
4946 (ipa_inline): dump summaries after inlining.
4947 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4948 New.
4949 (inline_edge_summary): New function.
4950 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4951 (inline_edge_removal_hook): Handle edge summaries.
4952 (inline_edge_duplication_hook): New hook.
4953 (inline_summary_alloc): Alloc hooks.
4954 (initialize_growth_caches): Do not register removal hooks.
4955 (free_growth_caches); Do not free removal hook.
4956 (dump_inline_edge_summary): New function.
4957 (dump_inline_summary): Use it.
4958 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4959 (inline_update_callee_summaries): New function.
4960 (inline_merge_summary): Use it.
4961 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4962 (read_inline_edge_summary): New function.
4963 (inline_read_section): Use it.
4964 (write_inline_edge_summary): New function.
4965 (inline_write_summary): Use it.
4966 (inline_free_summary): Free edge new holders.
4967 * tree-inline.c (copy_bb): Update.
4968
4969 2011-04-26 Jason Merrill <jason@redhat.com>
4970
4971 * tree-eh.c (lower_try_finally_switch): Create the label along with
4972 the CASE_LABEL_EXPR.
4973
4974 2011-04-26 David S. Miller <davem@davemloft.net>
4975 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4976
4977 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4978 * configure: Regenerate.
4979
4980 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4981
4982 PR target/48258
4983 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4984 reduction.
4985 (VEC_reduc): New code iterator and splitters for vector reduction.
4986 (VEC_reduc_name): Ditto.
4987 (VEC_reduc_rtx): Ditto.
4988 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4989 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4990
4991 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4992 support for extracting SF on VSX.
4993
4994 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4995 generating xscvspdp.
4996 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4997 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4998 double add, minimum, maximum vector reduction.
4999 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5000 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5001 optimize double vector reduction.
5002 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5003
5004 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5005
5006 * config/fr30/fr30.h (inhibit_libc): Don't define.
5007 * config/m32r/m32r-protos.h: Correct comment.
5008 * config/v850/v850.h (GHS_default_section_names,
5009 GHS_current_section_names): Use tree, not union tree_node *.
5010
5011 2011-04-26 Xinliang David Li <davidxl@google.com>
5012
5013 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5014 * c-family/c-opts.c (c_common_handle_option): Set
5015 warn_maybe_uninitialized.
5016 * opts.c (common_handle_option): Ditto.
5017 * common.opt: New option.
5018 * tree-ssa.c (warn_uninit): Add one more parameter.
5019 (warn_uninitialized_var): Pass warning code.
5020 * tree-flow.h: Interface change.
5021
5022 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5023
5024 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5025 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5026 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5027
5028 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5029
5030 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5031 * config/mips/mips.opt (mmips-tfile): Remove.
5032
5033 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5034 mips-tdump reference to ...
5035 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5036 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5037 reference by Tru64 UNIX.
5038
5039 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5040
5041 PR debug/48768
5042 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5043 is error_mark_node, set value to NULL.
5044
5045 PR tree-optimization/48734
5046 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5047 if return value from maybe_fold_*_comparsions isn't something
5048 the code is prepared to handle.
5049
5050 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5051
5052 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5053 mode check.
5054 (ext_QIreg_nomode_operands): Remove.
5055 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5056 (*andsi_1): Ditto.
5057 (*andhi_1): Ditto.
5058
5059 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5060
5061 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5062
5063 2011-04-26 Richard Guenther <rguenther@suse.de>
5064
5065 * c-typeck.c (build_unary_op): Do not expand array-refs via
5066 pointer arithmetic. Only adjust qualifiers for function types.
5067
5068 2011-04-26 Richard Guenther <rguenther@suse.de>
5069
5070 PR middle-end/48694
5071 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5072 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5073 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5074 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5075
5076 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5077
5078 * doc/extend.texi: Document __underlying_type.
5079
5080 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5081
5082 * config/rs6000/titan.md (automata_option "progress"): Remove.
5083
5084 2011-04-25 Jeff Law <law@redhat.com>
5085
5086 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5087
5088 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5089
5090 * system.h (ENUM_BITFIELD): Remove.
5091
5092 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5093 Eric Botcazou <ebotcazou@adacore.com>
5094
5095 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5096 for STORE_FLAG_VALUE==-1 case.
5097
5098 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5099
5100 PR target/43804
5101 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5102 LEGITIMATE_PIC_OPERAND_P.
5103
5104 2011-04-24 Jan Hubicka <jh@suse.cz>
5105
5106 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5107 WPA hack.
5108 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5109 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5110 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5111 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5112 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5113 Sanity check predicate length.
5114 (remap_predicate): Likewise; sanity check jump functions.
5115 (inline_read_section, inline_write_summary): Sanity check
5116 predicate length.
5117
5118 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5119
5120 PR other/48748
5121 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5122 __is_literal_type, and __is_trivial; update throughout about
5123 possibly cv-qualified void types.
5124
5125 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5126
5127 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5128 testsuite and make it version agnostic.
5129
5130 2011-04-22 Jan Hubicka <jh@suse.cz>
5131
5132 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5133
5134 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5135
5136 PR c/48685
5137 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5138 to VOID_TYPE even around MODIFY_EXPR.
5139
5140 2011-04-22 Mike Stump <mikestump@comcast.net>
5141
5142 * gensupport.c (read_md_rtx): Fix typo in comment.
5143 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5144 comment.
5145
5146 2011-04-22 Jan Hubicka <jh@suse.cz>
5147
5148 * gengtype.c (open_base_files): Add ipa-inline.h include.
5149 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5150 ipa-prop.c; update all uses.
5151 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5152 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5153 merge summary of inlined function into former caller.
5154 * ipa-inline.c (max_benefit): Remove.
5155 (edge_badness): Compensate for removal of benefits.
5156 (update_caller_keys): Use
5157 reset_node_growth_cache/reset_edge_growth_cache.
5158 (update_callee_keys): Likewise.
5159 (update_all_callee_keys): Likewise.
5160 (inline_small_functions): Do not collect max_benefit; do not reset
5161 estimated_growth; call free_growth_caches and initialize_growth_caches.
5162 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5163 struct size_time_entry): New structures.
5164 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5165 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5166 and estimated_growth.
5167 (edge_growth_cache_entry): New structure.
5168 (node_growth_cache, edge_growth_cache): New global vars.
5169 (estimate_growth): Turn into inline.
5170 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5171 initialize_growth_caches, free_growth_caches): Declare.
5172 (estimate_edge_growth): Rewrite.
5173 (estimate_edge_time): Implement as inline cache lookup.
5174 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5175 functions.
5176 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5177 (NUM_CONDITIONS): New constant.
5178 (predicate_conditions): New enum.
5179 (IS_NOT_CONSTANT): New constant.
5180 (edge_removal_hook_holder): New var.
5181 (node_growth_cache, edge_growth_cache): New global vars.
5182 (true_predicate, single_cond_predicate, false_predicate,
5183 not_inlined_predicate, add_condition, add_clause, and_predicates,
5184 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5185 dump_clause, dump_predicate, account_size_time,
5186 evaulate_conditions_for_edge): New functions.
5187 (inline_summary_alloc): Move to heap.
5188 (inline_node_removal_hook): Clear condition and entry vectors.
5189 (inline_edge_removal_hook): New function.
5190 (initialize_growth_caches, free_growth_caches): New function.
5191 (dump_inline_summary): Update.
5192 (edge_execution_predicate): New function.
5193 (will_be_nonconstant_predicate): New function.
5194 (estimate_function_body_sizes): Compute BB and constantness predicates.
5195 (compute_inline_parameters): Do not clear estimated_growth.
5196 (estimate_edge_size_and_time): New function.
5197 (estimate_calls_size_and_time): New function.
5198 (estimate_callee_size_and_time): New function.
5199 (remap_predicate): New function.
5200 (inline_merge_summary): New function.
5201 (do_estimate_edge_time): New function based on...
5202 (estimate_edge_time): ... this one.
5203 (do_estimate_edge_growth): New function.
5204 (do_estimate_growth): New function based on....
5205 (estimate_growth): ... this one.
5206 (inline_analyze_function): Analyze after deciding on jump functions.
5207 (inline_read_section): New function.
5208 (inline_read_summary): Use it.
5209 (inline_write_summary): Write all the new data.
5210 * ipa-prop.c (ipa_get_param_decl_index): Export.
5211 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5212 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5213 Declare.
5214 (ipa_get_lattice): Move here from ipa-cp.c
5215 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5216 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5217 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5218 cgraph_edge_inlinable_p): Remove.
5219 * cgraphunit.c: Include ipainline.h
5220 (cgraph_process_new_functions): Update call of
5221 compute_inline_parameters.
5222
5223 2011-04-22 Richard Guenther <rguenther@suse.de>
5224
5225 * tree.c (build_int_cst): Properly create canonicalized integer
5226 constants.
5227 (build_int_cst_type): Remove scary comments.
5228
5229 2011-04-22 Xinliang David Li <davidxl@google.com>
5230
5231 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5232 by default when -Wno-error is not specified.
5233 * opts-global.c (decode_options): Remove call to
5234 control_warning_options.
5235
5236 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5237
5238 PR tree-optimization/48717
5239 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5240 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5241
5242 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5243
5244 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5245 definition where used.
5246
5247 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5248
5249 PR c/48716
5250 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5251 TREE_STATIC variables declared inside of some OpenMP construct.
5252
5253 2011-04-22 Martin Jambor <mjambor@suse.cz>
5254
5255 PR middle-end/48585
5256 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5257
5258 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5259
5260 PR c/36750
5261 * c-typeck.c (pop_init_level): Do not warn about initializing
5262 with ` = {0}'.
5263
5264 2011-04-22 Alan Modra <amodra@gmail.com>
5265
5266 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5267 when returning call_cookie.
5268 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5269 pointers, to functions with no more vector args than the current
5270 function, and some non-local calls for ABI_V4.
5271 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5272 sibcall_nonlocal_aix64): Combine to ..
5273 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5274 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5275 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5276 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5277 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5278 operand.
5279 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5280 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5281 sibcall_value_symbolic_64): Delete.
5282
5283 2011-04-21 Xinliang David Li <davidxl@google.com>
5284
5285 * cgraph.h: Remove pid.
5286 * cgraph.c: Remove pid.
5287 * value-prof.c (init_node_map): New function.
5288 (del_node_map): New function.
5289 (find_func_by_funcdef_no): New function.
5290 (gimple_ic_transform): Call new function.
5291 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5292 * function.c (get_last_funcdef_no): New function.
5293 * function.h (get_last_funcdef_no): New function.
5294 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5295 to libgcov function.
5296 (tree-profiling): Call node map init and delete function.
5297
5298 2011-04-21 Ian Lance Taylor <iant@google.com>
5299
5300 * godump.c (go_format_type): Use exported Go name for anonymous
5301 field name.
5302
5303 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5304
5305 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5306 Call builtin_function_type_list instead of builtin_function_type.
5307 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5308
5309 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5310
5311 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5312 build_function_type_list instead of build_function_type.
5313 Delete variable `endlink'.
5314
5315 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5316
5317 * config/s390/s390.c (s390_init_builtins): Call
5318 build_function_type_list instead of build_function_type.
5319
5320 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5321
5322 * config/ia64/ia64.c (ia64_init_builtins): Call
5323 build_function_type_list instead of builtin_function_type.
5324
5325 2011-04-21 Easwaran Raman <eraman@google.com>
5326
5327 * cfgexpand.c (stack_var): Remove OFFSET...
5328 (add_stack_var): ...and its reference here...
5329 (expand_stack_vars): ...and here.
5330 (stack_var_cmp): Sort by descending order of size.
5331 (partition_stack_vars): Change heuristic.
5332 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5333 (dump_stack_var_partition): Add newline after each partition.
5334
5335 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5336 Jeff Law <law@redhat.com>
5337
5338 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5339 * gengtype.c (matching_file_name_substitute): Likewise.
5340
5341 2011-04-21 Richard Guenther <rguenther@suse.de>
5342
5343 PR lto/48703
5344 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5345
5346 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5347
5348 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5349
5350 2011-04-21 Richard Guenther <rguenther@suse.de>
5351
5352 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5353 file name.
5354
5355 2011-04-21 Richard Guenther <rguenther@suse.de>
5356
5357 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5358 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5359 Use DECL_P, not SSA_VAR_P.
5360 (ptr_derefs_may_alias_p): Likewise.
5361 (ptr_deref_may_alias_ref_p_1): Likewise.
5362 (decl_refs_may_alias_p): Likewise.
5363 (refs_may_alias_p_1): Likewise.
5364 (ref_maybe_used_by_call_p_1): Likewise.
5365 (call_may_clobber_ref_p_1): Likewise.
5366 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5367 are either MEM_REF or TARGET_MEM_REF.
5368 (indirect_refs_may_alias_p): Likewise.
5369 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5370 for MEM_EXPR of indirect calls.
5371
5372 2011-04-21 Tristan Gingold <gingold@adacore.com>
5373
5374 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5375 (dst_file_info_struct): Remove flen field.
5376 (lookup_filename): Remove code that set flen field.
5377
5378 2011-04-21 Tristan Gingold <gingold@adacore.com>
5379
5380 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5381
5382 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5383
5384 PR target/48708
5385 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5386 vec_extract and vec_concat for non-SSE4_1 targets.
5387
5388 2011-04-21 Richard Guenther <rguenther@suse.de>
5389
5390 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5391 return statements.
5392
5393 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5394
5395 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5396 undefine.
5397 (FILE): Don't undefine.
5398
5399 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5400
5401 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5402 struct rtx_def *.
5403 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5404 struct rtx_def *.
5405 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5406 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5407 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5408 rtx_def *.
5409 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5410 definitions where used.
5411 * config/microblaze/microblaze.h (struct microblaze_args): Use
5412 rtx, not struct rtx_def *.
5413 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5414 rtx_def *.
5415 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5416 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5417 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5418 not struct rtx_def *.
5419 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5420 struct rtx_def *.
5421 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5422 rtx_def *.
5423 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5424
5425 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5426
5427 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5428 operand_equal_p to compare DR_BASE_ADDRESSes.
5429 (vect_check_interleaving): Likewise.
5430
5431 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5432
5433 PR target/46329
5434 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5435 for all Neon struct constants.
5436
5437 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5438
5439 * target.def (legitimate_constant_p): New hook.
5440 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5441 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5442 * doc/tm.texi: Regenerate.
5443 * hooks.h (hook_bool_mode_rtx_true): Declare.
5444 * hooks.c (hook_bool_mode_rtx_true): Define.
5445 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5446 * calls.c (precompute_register_parameters): Replace uses of
5447 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5448 (emit_library_call_value_1): Likewise.
5449 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5450 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5451 * ira-costs.c (scan_one_insn): Likewise.
5452 * recog.c (general_operand, immediate_operand): Likewise.
5453 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5454 * reload1.c (init_eliminable_invariants): Likewise.
5455
5456 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5457 mode argument.
5458 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5459 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5460 argument.
5461 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5462 * config/alpha/predicates.md (input_operand): Update call to
5463 alpha_legitimate_constant_p.
5464
5465 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5466 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5467 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5468 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5469 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5470 (arm_legitimate_constant_p): New functions.
5471 (arm_cannot_force_const_mem): Make static.
5472
5473 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5474
5475 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5476 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5477 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5478 instead of bfin_legitimate_constant_p.
5479 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5480 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5481
5482 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5483
5484 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5485
5486 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5487 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5488 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5489 (frv_legitimate_constant_p): Make static. Add a mode argument.
5490
5491 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5492 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5493 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5494
5495 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5496 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5497 * config/i386/i386.c (legitimate_constant_p): Rename to...
5498 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5499 argument.
5500 (ix86_cannot_force_const_mem): Update accordingly.
5501 (ix86_legitimate_address_p): Likewise.
5502 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5503 * config/i386/i386.md: Update commentary.
5504
5505 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5506 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5507 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5508 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5509
5510 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5511
5512 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5513 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5514 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5515 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5516
5517 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5518 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5519 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5520
5521 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5522 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5523 (m32r_legitimate_constant_p): New function.
5524
5525 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5526 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5527 LEGITIMATE_CONSTANT_P.
5528 (LEGITIMATE_CONSTANT_P): Delete.
5529 * config/m68k/m68k.c (m68k_expand_prologue): Call
5530 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5531 (m68k_legitimate_constant_p): New function.
5532 * config/m68k/m68k.md: Update comments.
5533
5534 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5535 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5536 (mcore_legitimate_constant_p): New function.
5537
5538 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5539 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5540 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5541 Add a mode argument.
5542 (mep_legitimate_address): Update accordingly.
5543 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5544
5545 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5546 Delete.
5547 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5548 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5549 static. Check OP's mode for VOIDmode.
5550 (microblaze_legitimate_constant_p): New function.
5551 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5552
5553 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5554 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5555 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5556 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5557 * config/mips/predicates.md: Update comments.
5558
5559 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5560 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5561 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5562 (mmix_legitimate_constant_p): Make static, return a bool, and take
5563 a mode argument.
5564 (mmix_print_operand_address): Update accordingly.
5565
5566 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5567 Delete.
5568 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5569 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5570 static. Add a mode argument.
5571 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5572
5573 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5574
5575 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5576 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5577 (pa_legitimate_constant_p): New function.
5578
5579 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5580
5581 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5582 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5583 (pdp11_legitimate_constant_p): New function.
5584
5585 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5586 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5587 (rs6000_legitimate_constant_p): New function.
5588
5589 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5590 (rx_legitimate_constant_p): ...this.
5591 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5592 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5593 (rx_legitimate_constant_p): ...this.
5594 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5595 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5596
5597 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5598 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5599 * config/s390/s390.c (legitimate_constant_p): Rename to...
5600 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5601 and add a mode argument.
5602 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5603
5604 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5605
5606 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5607 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5608 (sh_legitimate_constant_p): New function.
5609
5610 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5611 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5612 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5613 (legitimate_constant_p): Rename to...
5614 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5615 argument.
5616 (constant_address_p): Update accordingly.
5617
5618 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5619 argument and return a bool.
5620 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5621 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5622 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5623 (spu_rtx_costs): Update accordingly.
5624 * config/spu/predicates.md (vec_imm_operand): Likewise.
5625
5626 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5627
5628 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5629 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5630 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5631
5632 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5633 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5634 * config/vax/vax.c (legitimate_constant_p): Likewise.
5635
5636 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5637 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5638 (xtensa_legitimate_constant_p): New function.
5639
5640 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5641
5642 * target.def (cannot_force_const_mem): Add a mode argument.
5643 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5644 * doc/tm.texi: Regenerate.
5645 * hooks.h (hook_bool_mode_rtx_false): Declare.
5646 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5647 (hook_bool_mode_const_rtx_true): Likewise.
5648 (hook_bool_mode_rtx_false): New function.
5649 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5650 to be non-VOID. Update call to cannot_force_const_mem.
5651 (find_reloads): Update accordingly.
5652 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5653 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5654 argument.
5655 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5656 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5657 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5658 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5659 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5660 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5661 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5662 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5663 (m68k_cannot_force_const_mem): ...this new function.
5664 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5665 argument.
5666 (mips_const_insns, mips_legitimize_const_move): Update calls.
5667 (mips_secondary_reload_class): Likewise.
5668 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5669 (pa_cannot_force_const_mem): ...this new function.
5670 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5671 (rs6000_cannot_force_const_mem): ...this new function.
5672 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5673 argument.
5674 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5675 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5676 to...
5677 (xtensa_cannot_force_const_mem): ...this new function.
5678
5679 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5680
5681 * config/mips/mips.c (mips16_build_function_stub): Call
5682 build_function_type_list instead of build_function_type.
5683 (mips16_build_call_stub): Likewise.
5684
5685 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5686
5687 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5688 instead of build_function_type.
5689
5690 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5691
5692 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5693 instead of build_function_type.
5694
5695 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5696
5697 PR target/48678
5698 * config/i386/i386.md (insv): Change operand 0 constraint to
5699 "register_operand". Change operand 1 and 2 constraint to
5700 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5701 * config/i386/sse.md (sse4_1_pinsrb): Export.
5702 (sse2_pinsrw): Ditto.
5703 (sse4_1_pinsrd): Ditto.
5704 (sse4_1_pinsrq): Ditto.
5705 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5706 * config/i386/i386.c (ix86_expand_pinsr): New.
5707
5708 2011-04-20 Easwaran Raman <eraman@google.com>
5709
5710 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5711 containing union type only with -fstrict-aliasing.
5712
5713 2011-04-20 Jim Meyering <meyering@redhat.com>
5714
5715 Remove useless if-before-free tests.
5716 * calls.c (expand_call, save_area): Likewise.
5717 * cfgcleanup.c (try_forward_edges): Likewise.
5718 * collect2.c (collect_execute): Likewise.
5719 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5720 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5721 * coverage.c (coverage_checksum_string): Likewise.
5722 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5723 * cselib.c (cselib_init): Likewise.
5724 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5725 (df_set_clean_cfg): Likewise.
5726 * function.c (free_after_compilation): Likewise.
5727 * gcc.c (do_spec_1, main): Likewise.
5728 * gcov.c (create_file_names): Likewise.
5729 * gensupport.c (identify_predicable_attribute): Likewise.
5730 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5731 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5732 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5733 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5734 * ipa-pure-const.c (local_pure_const): Likewise.
5735 * ipa-reference.c (propagate): Likewise.
5736 * ira-costs.c (free_ira_costs): Likewise.
5737 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5738 * matrix-reorg.c (mat_free): Likewise.
5739 * prefix.c (get_key_value): Likewise.
5740 * profile.c (compute_value_histograms): Likewise.
5741 * reload1.c (free_reg_equiv): Likewise.
5742 * sched-deps.c (free_deps): Likewise.
5743 * sel-sched-ir.c (fence_clear): Likewise.
5744 * sese.c (set_rename, if_region_set_false_region): Likewise.
5745 * tree-data-ref.c (free_rdg): Likewise.
5746 * tree-eh.c (lower_try_finally): Likewise.
5747 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5748 * tree-ssa-live.c (delete_var_map): Likewise.
5749 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5750 * tree-ssa-pre.c (phi_trans_add): Likewise.
5751
5752 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5753
5754 PR tree-optimization/48611
5755 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5756 beyond ERT_MUST_NOT_THROW region.
5757
5758 2011-04-20 Catherine Moore <clm@codesourcery.com>
5759
5760 * config/mips/mips.opt (mfix-24k): New.
5761 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5762 * config/mips/mips.md (length): Increase by 4 for stores if
5763 fixing 24K errata.
5764 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5765 all noreorder if fixing 24K errata.
5766 * doc/invoke.texi: Document mfix-24k.
5767
5768 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5769
5770 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5771 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5772
5773 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5774
5775 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5776 (const_ok_for_op): ... to here.
5777
5778 2011-04-20 Kai Tietz <ktietz@redhat.com>
5779
5780 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5781 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5782
5783 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5784
5785 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5786
5787 2011-04-20 Richard Guenther <rguenther@suse.de>
5788
5789 PR tree-optimization/47892
5790 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5791 are if-convertible.
5792
5793 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5794
5795 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5796
5797 2011-04-20 Tristan Gingold <gingold@adacore.com>
5798
5799 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5800
5801 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5802
5803 PR target/18145
5804
5805 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5806 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5807 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5808 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5809 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5810
5811 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5812 New prototype.
5813
5814 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5815 (avr_asm_named_section, avr_asm_output_aligned_common,
5816 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5817 New functions to update...
5818 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5819 (avr_asm_init_sections): Overwrite section callbacks for
5820 data_section, bss_section.
5821 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5822 from here to...
5823 (avr_file_end): ...here.
5824
5825 2011-04-20 Richard Guenther <rguenther@suse.de>
5826
5827 PR middle-end/48695
5828 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5829 objects and types here. Adjust for their offset before comparing.
5830
5831 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5832
5833 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5834 statement per copy.
5835
5836 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5837
5838 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5839 (GIMPLE_H): Include $(INTERNAL_FN_H).
5840 (OBJS-common): Add internal-fn.o.
5841 (internal-fn.o): New rule.
5842 * internal-fn.def: New file.
5843 * internal-fn.h: Likewise.
5844 * internal-fn.c: Likewise.
5845 * gimple.h: Include internal-fn.h.
5846 (GF_CALL_INTERNAL): New gf_mask.
5847 (gimple_statement_call): Put fntype into a union with a new
5848 internal_fn field.
5849 (gimple_build_call_internal): Declare.
5850 (gimple_build_call_internal_vec): Likewise.
5851 (gimple_call_same_target_p): Likewise.
5852 (gimple_call_internal_p): New function.
5853 (gimple_call_internal_fn): Likewise.
5854 (gimple_call_fntype): Return null for internal calls.
5855 (gimple_call_set_fntype): Assert that the function is not internal.
5856 (gimple_call_set_fn): Likewise.
5857 (gimple_call_set_fndecl): Likewise.
5858 (gimple_call_set_internal_fn): New function.
5859 (gimple_call_addr_fndecl): Handle null functions.
5860 (gimple_call_return_type): Likewise null types.
5861 * gimple.c (gimple_build_call_internal_1): New function.
5862 (gimple_build_call_internal): Likewise.
5863 (gimple_build_call_internal_vec): Likewise.
5864 (gimple_call_same_target_p): Likewise.
5865 (gimple_call_flags): Handle calls to internal functions.
5866 (gimple_call_fnspec): New function.
5867 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5868 (gimple_has_side_effects): Handle null functions.
5869 (gimple_rhs_has_side_effects): Likewise.
5870 (gimple_call_copy_skip_args): Handle calls to internal functions.
5871 * cfgexpand.c (expand_call_stmt): Likewise.
5872 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5873 * gimple-fold.c (gimple_fold_call): Handle null functions.
5874 (gimple_fold_stmt_to_constant_1): Don't fold
5875 calls to internal functions.
5876 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5877 functions.
5878 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5879 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5880 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5881 (do_warn_unused_result): Likewise.
5882 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5883 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5884 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5885 the target of a call.
5886 (initialize_hash_element): Update accordingly.
5887 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5888 (iterative_hash_hashable_expr): Handle calls to internal functions.
5889 (print_expr_hash_elt): Likewise.
5890 * tree-ssa-pre.c (can_value_number_call): Likewise.
5891 (eliminate): Handle null functions.
5892 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5893 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5894 (find_func_aliases): Likewise.
5895 * value-prof.c (gimple_ic_transform): Likewise.
5896 (gimple_indirect_call_to_profile): Likewise.
5897 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5898 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5899
5900 2011-04-19 Jan Hubicka <jh@suse.cz>
5901
5902 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5903 * ipa-inline.c (inline_small_functions): Compute summaries first,
5904 populate heap later.
5905
5906 2011-04-19 Jan Hubicka <jh@suse.cz>
5907
5908 * cgraph.h (save_inline_function_body): Remove.
5909 * ipa-inline-transform.c: New file, broke out of...
5910 * ipa-inline.c: ... this one; Update toplevel comment.
5911 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5912 make global.
5913 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5914 (cgraph_mark_inline_edge): Rename to inline_call; move to
5915 ipa-inline-transform.c.
5916 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5917 move to ipa-inline-transform.c
5918 (recursive_inlining, inline_small_functions, flatten_function,
5919 ipa_inline, inline_always_inline_functions,
5920 early_inline_small_functions): Update.
5921 (inline_transform): Move to ipa-inline-transform.c.
5922 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5923 Declare.
5924 * Makefile.in (ipa-inline-transform.o): New file.
5925 * cgraphunit.c (save_inline_function_body): Move to
5926 ipa-inline-transform.c
5927
5928 2011-04-19 DJ Delorie <dj@redhat.com>
5929
5930 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5931 registers if we already know there aren't any.
5932 (m32c_emit_epilogue): Don't emit a barrier here.
5933 (m32c_emit_eh_epilogue): Likewise.
5934 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5935 operands at expand time.
5936 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5937 int" wchar type.
5938 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5939 duplicates. Provide aliases instead.
5940 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5941 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5942 the compiler.
5943
5944 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5945
5946 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5947 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5948 (general_or_i64_p, sparc_register_move_cost): New function.
5949
5950 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5951
5952 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5953 Add lynx, mipssde. Sort table.
5954
5955 2011-04-19 Xinliang David Li <davidxl@google.com>
5956
5957 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5958 not negative.
5959
5960 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5961
5962 PR target/48678
5963 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5964 is a SUBREG with non-MODE_INT mode inside of it.
5965
5966 2011-04-19 Martin Jambor <mjambor@suse.cz>
5967
5968 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5969 also according to actual contants.
5970 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5971 (gimple_fold_call): Use it.
5972 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5973
5974 2011-04-19 Martin Jambor <mjambor@suse.cz>
5975
5976 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5977 non-pointer assignments.
5978
5979 2011-04-19 Martin Jambor <mjambor@suse.cz>
5980
5981 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5982 account anc_offset and otr_type from the indirect edge info.
5983 * ipa-prop.c (get_ancestor_addr_info): New function.
5984 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5985 get_ancestor_addr_info, call it.
5986 (ipa_note_param_call): Do not initialize information about polymorphic
5987 calls, return the indirect call graph edge. Remove the last
5988 parameter, adjust all callers.
5989 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5990 parameters. Initialize polymorphic information in the indirect edge.
5991
5992 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5993
5994 PR lto/48148
5995 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5996 the types if they have different enumeration identifiers.
5997
5998 2011-04-19 Jan Hubicka <jh@suse.cz>
5999
6000 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6001 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6002 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6003 (optimize_function_for_size_p) ... here.
6004
6005 2011-04-19 Richard Guenther <rguenther@suse.de>
6006
6007 PR lto/48207
6008 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6009 langhook.
6010
6011 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6012
6013 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6014 if DECL_NO_INLINE_WARNING_P is set on the function.
6015
6016 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6017
6018 PR fortran/47976
6019 * reload1.c (inc_for_reload): Return void. All callers changed.
6020 (emit_input_reload_insns): Don't try to delete previous output
6021 reloads to a register, or record spill_reg_store for autoincs.
6022
6023 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6024
6025 * gengtype.h: Updated copyright year.
6026 (struct input_file_st): Add inpisplugin field.
6027 (type_fileloc): New function.
6028 * gengtype.c
6029 (write_typed_struct_alloc_def): Add gcc_assert.
6030 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6031 (write_typed_alloc_defns): Don't output for plugin files.
6032 (input_file_by_name): Clear inpisplugin field.
6033 (main): Set inpisplugin field for plugin files.
6034
6035 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6036
6037 * gengtype-state.c (string_eq): New.
6038 (read_state): Use string_eq instead of strcmp when creating the
6039 state_ident_tab.
6040
6041 2011-04-19 Wei Guozhi <carrot@google.com>
6042
6043 PR target/47855
6044 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6045 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6046 linkage.
6047 * config/arm/constraints.md (Uu): New constraint.
6048 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6049
6050 2011-04-19 Tristan Gingold <gingold@adacore.com>
6051
6052 * config.gcc (-*-*-*vms): Added.
6053 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6054 definitions moved.
6055 * config/vms/vms-ld.c: New file.
6056 * config/vms/vms-ar.c: New file.
6057 * config/vms/t-vmsnative: New file.
6058
6059 2011-04-18 Xinliang David Li <davidxl@google.com>
6060
6061 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6062
6063 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6064
6065 PR middle-end/48661
6066 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6067 if TREE_TYPE (v) is non-NULL.
6068
6069 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6070 gimple_get_virt_mehtod_for_binfo.
6071 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6072 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6073 callers.
6074 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6075
6076 2011-04-18 Michael Matz <matz@suse.de>
6077 Steve Ellcey <sje@cup.hp.com>
6078
6079 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6080 use its mode as source mode if it isn't VOIDmode.
6081
6082 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6083
6084 * doc/passes.texi: Fill crossref nodes.
6085
6086 2011-04-18 Jim Meyering <meyering@redhat.com>
6087
6088 Fix doubled-word typos in comments and strings
6089 * config/alpha/vms-unwind.h: s/for for/for/
6090 * config/arm/unwind-arm.h: Likewise.
6091 * config/microblaze/microblaze.c: Likewise.
6092 * config/sh/constraints.md: s/in in/in/
6093 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6094
6095 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6096
6097 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6098 (AVX_FLOAT_MODE_P): Ditto.
6099 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6100 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6101 (AVX_VEC_FLOAT_MODE_P): Ditto.
6102 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6103 (UNSPEC_MASKSTORE): Ditto.
6104 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6105 Merge from <sse>_movmsk<ssemodesuffix> and
6106 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6107 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6108 iterator.
6109 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6110 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6111 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6112
6113 2011-04-18 Jan Hubicka <jh@suse.cz>
6114
6115 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6116
6117 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6118 (want_inline_function_called_once_p): Break out the logic from
6119 ipa_inline.
6120 (edge_badness): Ensure that profile is not misupdated.
6121 (lookup_recursive_calls): Prioritize by call frequencies.
6122 (inline_small_functions): Move program size estimates here;
6123 actually process whole queue even when unit growth has been
6124 met. (to properly compute inline_failed reasons and for the
6125 case unit size decrease.) Revisit comments on recursive inlining.
6126 (ipa_inline): Remove unit summary code; first inline hot calls
6127 of functions called once, cold calls next.
6128 (order, nnodes): Remove unused variables.
6129 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6130 (GTFILES): Remove ipa-inline.c
6131 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6132
6133 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6134
6135 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6136
6137 2011-04-18 Jie Zhang <jie@codesourcery.com>
6138 Richard Earnshaw <rearnsha@arm.com>
6139
6140 * arm.c (neon_builtin_type_bits): Remove.
6141 (typedef enum neon_builtin_mode): New.
6142 (T_MAX): Don't define.
6143 (typedef enum neon_builtin_datum): Remove bits, codes[],
6144 num_vars and base_fcode. Add mode, code and fcode.
6145 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6146 VAR10): Change accordingly.
6147 (neon_builtin_data[]): Change accordingly
6148 (arm_init_neon_builtins): Change accordingly.
6149 (neon_builtin_compare): Remove.
6150 (locate_neon_builtin_icode): Remove.
6151 (arm_expand_neon_builtin): Change accordingly.
6152
6153 * arm.h (enum arm_builtins): Move to ...
6154 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6155
6156 * arm.c (arm_builtin_decl): Declare.
6157 (TARGET_BUILTIN_DECL): Define.
6158 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6159 (arm_builtin_decls[]): New.
6160 (arm_init_neon_builtins): Store builtin declarations in
6161 arm_builtin_decls[].
6162 (arm_init_tls_builtins): Likewise.
6163 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6164 (arm_builtin_decl): New.
6165
6166 2011-04-18 Richard Guenther <rguenther@suse.de>
6167
6168 * tree.c (upper_bound_in_type): Build properly canonicalized
6169 INTEGER_CSTs.
6170 (lower_bound_in_type): Likewise.
6171
6172 2011-04-18 Richard Guenther <rguenther@suse.de>
6173
6174 * gimple.h (gimple_call_addr_fndecl): New function.
6175 (gimple_call_fndecl): Use it.
6176 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6177 for direct calls.
6178 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6179 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6180
6181 2011-04-18 Richard Guenther <rguenther@suse.de>
6182
6183 PR middle-end/48650
6184 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6185
6186 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6187
6188 PR lto/48492
6189 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6190 DECL_IN_CONSTANT_POOL without RTL.
6191
6192 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6193 Ira Rosen <ira.rosen@linaro.org>
6194
6195 PR target/48252
6196 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6197 to match neon_vzip/vuzp/vtrn_internal.
6198 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6199 outputs explicitly dependent on both inputs.
6200 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6201
6202 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6203
6204 PR tree-optimization/48616
6205 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6206 whether the shift is by scalar or vector based on whether all SLP
6207 scalar stmts have the same rhs.
6208
6209 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6210
6211 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6212 memory operands.
6213
6214 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6215
6216 PR target/43700
6217 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6218 registers.
6219
6220 2011-04-17 Jan Hubicka <jh@suse.cz>
6221
6222 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6223 * cgrpahunit.c (cgraph_finalize_function): Do not set
6224 finalized_by_frontend.
6225 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6226 finalized_by_frontend.
6227
6228 2011-04-17 Jan Hubicka <jh@suse.cz>
6229
6230 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6231 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6232 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6233 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6234 method.
6235 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6236 gimple-fold.c
6237 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6238
6239 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6240
6241 PR lto/48538
6242 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6243 is non-null before accessing it.
6244 (input_cgraph): Remove trailing spaces.
6245
6246 2011-04-17 Revital Eres <revital.eres@linaro.org>
6247
6248 * params.def (sms-min-sc): New param flag.
6249 * modulo-sched.c (sms_schedule): Use it.
6250 * doc/invoke.texi (sms-min-sc): Document it.
6251
6252 2011-04-17 Jan Hubicka <jh@suse.cz>
6253
6254 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6255 present, also set gimple_call_set_cannot_inline.
6256 * ipa-inline.c: Update toplevel comment.
6257 (MAX_TIME): Remove.
6258 (cgraph_clone_inlined_nodes): Fix linebreaks.
6259 (cgraph_check_inline_limits): Restructure to ...
6260 (caller_growth_limits): ... this one; be more tolerant
6261 on growth in nested inline chains; add explanatory comment;
6262 fix stack accounting thinko introduced by previous patch.
6263 (cgraph_default_inline_p): Remove.
6264 (report_inline_failed_reason): New function.
6265 (can_inline_edge_p): New function.
6266 (can_early_inline_edge_p): New function.
6267 (leaf_node_p): Move upwards in file.
6268 (want_early_inline_function_p): New function.
6269 (want_inline_small_function_p): New function.
6270 (want_inline_self_recursive_call_p): New function.
6271 (cgraph_edge_badness): Rename to ...
6272 (edge_badness) ... this one; fix linebreaks.
6273 (update_edge_key): Update call of edge_baddness; add
6274 detailed dump about queue updates.
6275 (update_caller_keys): Use can_inline_edge_p and
6276 want_inline_small_function_p.
6277 (cgraph_decide_recursive_inlining): Rename to...
6278 (recursive_inlining): Use can_inline_edge_p and
6279 want_inline_self_recursive_call_p; simplify and remove no longer
6280 valid FIXME.
6281 (cgraph_set_inline_failed): Remove.
6282 (add_new_edges_to_heap): Use can_inline_edge_p and
6283 want_inline_small_function_p.
6284 (cgraph_decide_inlining_of_small_functions): Rename to ...
6285 (inline_small_functions): ... this one; cleanup; use
6286 can/want predicates; cleanup debug ouput; work edges till fibheap
6287 is exhausted and do not stop once unit growth is reached; remove
6288 later loop processing remaining edges.
6289 (cgraph_flatten): Rename to ...
6290 (flatten_function): ... this one; use can_inline_edge_p
6291 and can_early_inline_edge_p predicates.
6292 (cgraph_decide_inlining): Rename to ...
6293 (ipa_inline): ... this one; remove unreachable nodes before
6294 inlining functions called once; simplify the pass.
6295 (cgraph_perform_always_inlining): Rename to ...
6296 (inline_always_inline_functions): ... this one; use
6297 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6298 (cgraph_decide_inlining_incrementally): Rename to ...
6299 (early_inline_small_functions): ... this one; simplify
6300 using new predicates; cleanup; make dumps prettier.
6301 (cgraph_early_inlining): Rename to ...
6302 (early_inliner): newer inline regular functions into always-inlines;
6303 fix updating of call stmt summaries.
6304 (pass_early_inline): Update for new names.
6305 (inline_transform): Fix formating.
6306 (gate_cgraph_decide_inlining): Rename to ...
6307 (pass_ipa_inline): ... this one.
6308 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6309 * ipa-inline-analysis.c (dump_inline_summary): Update.
6310 (compute_inline_parameters): Do not compute disregard_inline_limits;
6311 look for mismatching arguments.
6312 (estimate_growth): Fix handlig of non-trivial self recursion.
6313 (inline_read_summary): Do not read info->disregard_inline_limits.
6314 (inline_write_summary): Do not write info->disregard_inline_limits.
6315 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6316 and move all checks into can_inline_edge_p predicate; re-enable code
6317 comparing optimization levels.
6318 (expand_call_inline): Do not test inline_forbidden_into_p.
6319 * Makefile.in (ipa-inline.o): Update arguments.
6320
6321 2011-04-17 Revital Eres <revital.eres@linaro.org>
6322
6323 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6324
6325 2011-04-17 Revital Eres <revital.eres@linaro.org>
6326
6327 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6328
6329 2011-04-17 Michael Matz <matz@suse.de>
6330
6331 PR tree-optimization/48622
6332 PR lto/48645
6333 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6334 in same order as they're written.
6335
6336 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6337
6338 * config/pa/predicates.md: Reorganize and simplify predicates.
6339 Eliminate duplicate code checks.
6340 (arith_operand): Rename to arith14_operand
6341 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6342 * config/pa/pa.md: Use renamed operands.
6343 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6344 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6345 arith11_operand, adddi3_operand, indexed_memory_operand,
6346 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6347 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6348 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6349 move_dest_operand, move_src_operand, prefetch_cc_operand,
6350 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6351 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6352 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6353 div_operand, int5_operand, movb_comparison_operator,
6354 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6355 arith_double_operand, ireg_operand, lhs_lshift_operand,
6356 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6357 integer_store_memory_operand): Likewise.
6358 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6359 (integer_store_memory_operand, read_only_operand,
6360 function_label_operand, borx_reg_operand,
6361 non_hard_reg_operand): Likewise.
6362 (eq_neq_comparison_operator): Delete unused operator.
6363 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6364 function_label_operand.
6365 (emit_move_sequence): Likewise.
6366
6367 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6368
6369 * config/i386/sse.md (sseunpackmode): New mode attribute.
6370 (ssepackmode): Ditto.
6371 (vec_pack_trunc_<mode>): Macroize expander from
6372 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6373 (vec_unpacks_lo_<mode>): Macroize expander from
6374 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6375 (vec_unpacks_hi_<mode>): Macroize expander from
6376 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6377 (vec_unpacku_lo_<mode>): Macroize expander from
6378 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6379 (vec_unpacku_hi_<mode>): Macroize expander from
6380 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6381 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6382 ix86_expand_sse4_unpack.
6383 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6384
6385 2011-04-16 Jan Hubicka <jh@suse.cz>
6386
6387 * cgraphbuild.c: Include ipa-inline.h.
6388 (reset_inline_failed): Use initialize_inline_failed.
6389 * cgraph.c: Include ipa-inline.h.
6390 (cgraph_create_node_1): Do not initialize estimated_growth.
6391 (initialize_inline_failed): More to ipa-inline-analysis.c
6392 (dump_cgraph_node): Do not dump inline flags.
6393 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6394 and disregard_inline_limits flags.
6395 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6396 time, size, estimated_growth.
6397 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6398 Update.
6399 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6400 DECL_DISREGARD_INLINE_LIMITS.
6401 (cgraph_analyze_function): Do not initialize
6402 node->local.disregard_inline_limits.
6403 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6404 inlinable, versionable and disregard_inline_limits.
6405 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6406 cgraph_check_inline_limits, cgraph_default_inline_p,
6407 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6408 add_new_edges_to_heap): Update.
6409 (cgraph_decide_inlining_of_small_function): Update; set
6410 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6411 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6412 cgraph_decide_inlining_incrementally): Update.
6413 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6414 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6415 time, size and estimated_growth parameters.
6416 (estimate_edge_growth): Update.
6417 (initialize_inline_failed): Declare.
6418 * ipa-split.c: Include ipa-inline.h
6419 (execute_split_functions): Update.
6420 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6421 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6422 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6423 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6424 estimated_growth to INT_MIN.
6425 (inline_node_duplication_hook): Likewise.
6426 (dump_inline_summary): Dump new fields.
6427 (compute_inline_parameters): Update.
6428 (estimate_edge_time, estimate_time_after_inlining,
6429 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6430 inline_write_summary):
6431 (initialize_inline_failed): Move here from cgraph.c.
6432 * tree-sra.c: Include ipa-inline.h.
6433 (ipa_sra_preliminary_function_checks): Update.
6434 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6435 ipa-inline.h.
6436
6437 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6438
6439 * config/i386/sse.md (V16): New mode iterator.
6440 (VI1, VI8): Ditto.
6441 (AVXMODEQI, AVXMODEDI): Remove.
6442 (sse2, sse3): New mode attribute.
6443 (mov<mode>): Use V16 mode iterator.
6444 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6445 (push<mode>1): Use V16 mode iterator.
6446 (movmisalign<mode>): Ditto.
6447 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6448 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6449 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6450 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6451 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6452 avx_movdqu<avxmodesuffix>.
6453 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6454 *avx_movdqu<avxmodesuffix>.
6455 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6456 avx_lddqu<avxmodesuffix>.
6457 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6458 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6459 avx_movnt<AVXMODEDI:mode>.
6460 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6461 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6462
6463 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6464
6465 PR target/48629
6466 * haifa-sched.c (prune_ready_list, schedule_block): Use
6467 sched_pressure_p rather than flag_sched_pressure.
6468
6469 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6470
6471 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6472 cgraph_get_node instead of cgraph_get_create_node.
6473
6474 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6475
6476 * cfgexpand.c (expand_debug_expr): Use
6477 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6478
6479 2011-04-15 Michael Matz <matz@suse.de>
6480
6481 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6482 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6483 * function.c (gimplify_parameters): Ditto.
6484 * gimplify.c (gimplify_vla_decl): Ditto.
6485
6486 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6487 (gimple_call_set_alloca_for_var): New inline function.
6488 (gimple_call_alloca_for_var_p): Ditto.
6489 * gimple.c (gimple_build_call_from_tree): Remember
6490 CALL_ALLOCA_FOR_VAR_P state.
6491 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6492
6493 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6494 calls if they were for VLA objects.
6495
6496 2011-04-15 Martin Jambor <mjambor@suse.cz>
6497
6498 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6499 of ADR_EXPRs.
6500
6501 2011-04-15 Martin Jambor <mjambor@suse.cz>
6502
6503 PR middle-end/48601
6504 * tree-emutls.c (lower_emutls_function_body): Call
6505 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6506 result is non-NULL.
6507
6508 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6509
6510 * c-decl.c (detect_field_duplicates): Call
6511 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6512
6513 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6514
6515 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6516 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6517 * ipa-pure-const.c (check_stmt): Call it.
6518 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6519
6520 2011-04-15 Richard Guenther <rguenther@suse.de>
6521
6522 PR tree-optimization/48290
6523 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6524 Properly decide inhibiting propagation based on the valueized
6525 operand. Do loop-closed SSA form preserving here ...
6526 (init_copy_prop): ... not here.
6527
6528 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6529
6530 PR target/48612
6531 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6532 (*ieee_smax<mode>3): Likewise.
6533
6534 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6535
6536 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6537 Replace match_operand with match_dup for the third operand in
6538 these expanders.
6539
6540 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6541
6542 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6543 to track processing of conditionals. Update all callers.
6544 (try_combine, simplify_if_then_else): Update.
6545
6546 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6547
6548 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6549 -fsched-pressure.
6550
6551 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6552
6553 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6554 instead of match_operand for operand 3.
6555
6556 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6557
6558 * recog.h (insn_operand_data): Add an "allows_mem" field.
6559 * genoutput.c (output_operand_data): Initialize it.
6560 * optabs.c (maybe_legitimize_operand_same_code): New function.
6561 (maybe_legitimize_operand): Use it when matching the original
6562 op->value.
6563
6564 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6565
6566 * gimplify.c: Fix issues in comments throughout.
6567 (voidify_wrapper_expr): Fix long line.
6568 (build_stack_save_restore): Likewise.
6569 (gimplify_loop_expr): Likewise.
6570 (gimplify_compound_lval): Likewise.
6571 (gimplify_init_ctor_eval): Likewise.
6572 (gimplify_modify_expr_rhs): Likewise.
6573 (omp_notice_threadprivate_variable): Likewise.
6574
6575 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6576
6577 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6578 original one if this is not a builtin function.
6579
6580 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6581
6582 PR target/48605
6583 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6584 offset it as needed based on top 2 bits in operands[3], change
6585 MEM mode to SFmode and mask those 2 bits away from operands[3].
6586
6587 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6588
6589 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6590 change from objc_declare_protocols() to objc_declare_protocol().
6591
6592 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6593
6594 * config/i386/sse.md (sse4_1): New mode attribute.
6595 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6596 avx_blend<ssemodesuffix><avxmodesuffix> and
6597 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6598 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6599 avx_blendv<ssemodesuffix><avxmodesuffix> and
6600 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6601 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6602 avx_dp<ssemodesuffix><avxmodesuffix> and
6603 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6604 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6605 (sse4_1_packusdw): Merge with *avx_packusdw.
6606 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6607 (sse4_1_pblendw): Merge with *avx_pblendw.
6608 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6609 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6610 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6611 VF mode iterator.
6612 (sse4_1_round<ssescalarmodesuffix>): Merge with
6613 *avx_round<ssescalarmodesuffix>.
6614 (aesenc): Merge with *avx_aesenc.
6615 (aesenclast): Merge with *avx_aesenclast.
6616 (aesdec): Merge with *avx_aesdec.
6617 (aesdeclast): Merge with *avx_aesdeclast.
6618 (pclmulqdq): Merge with *pclmulqdq.
6619 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6620 New predicate.
6621 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6622
6623 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6624
6625 PR middle-end/48608
6626 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6627 (align_local_variable): This. Update DECL_ALIGN.
6628 (add_stack_var): Updated.
6629 (expand_one_stack_var): Likewise.
6630
6631 2011-04-14 Richard Guenther <rguenther@suse.de>
6632
6633 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6634 Remove.
6635 (dse_initialize_block_local_data, dse_leave_block,
6636 record_voperand_set, get_stmt_uid): Likewise.
6637 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6638 (dse_optimize_stmt): Remove voperand set handling code.
6639 Simplify and improve to handle any kind of killing stmt.
6640 (dse_record_phi): Remove.
6641 (dse_enter_block): Simplify.
6642 (tree_ssa_dse): Likewise.
6643 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6644
6645 2011-04-14 Jan Hubicka <jh@suse.cz>
6646
6647 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6648 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6649 (cgraph_local_info): Remove inline_summary.
6650 * ipa-cp.c: Include ipa-inline.h.
6651 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6652 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6653 accesor.
6654 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6655 (input_overwrite_node): Do not set inline summary.
6656 (input_node): Do not stream inline summary.
6657 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6658 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6659 growth; we do not have inline parameters computed for that anyway.
6660 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6661 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6662 (inline_summary_t): New type and VECtor.
6663 (debug_inline_summary, dump_inline_summaries): Declare.
6664 (inline_summary): Use VOCtor.
6665 (estimate_edge_growth): Kill hack computing call stmt size directly.
6666 * lto-section-in.c (lto_section_name): Add inline section.
6667 * ipa-inline-analysis.c: Include lto-streamer.h
6668 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6669 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6670 (inline_summary_vec): Define.
6671 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6672 dump_inline_summaries): New functions.
6673 (estimate_function_body_sizes): Properly compute size/time of outgoing
6674 calls.
6675 (compute_inline_parameters): Alloc inline_summary; do not compute
6676 size/time of incomming calls.
6677 (estimate_edge_time): Avoid missing time summary hack.
6678 (inline_read_summary): Read inline summary info.
6679 (inline_write_summary): Write inline summary info.
6680 (inline_free_summary): Free all hooks and inline summary vector.
6681 * lto-streamer.h: Add LTO_section_inline_summary section.
6682 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6683 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6684
6685 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6686
6687 * tree-vectorizer.h (vect_strided_store_supported): Add a
6688 HOST_WIDE_INT argument.
6689 (vect_strided_load_supported): Likewise.
6690 (vect_permute_store_chain): Return void.
6691 (vect_transform_strided_load): Likewise.
6692 (vect_permute_load_chain): Delete.
6693 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6694 count argument. Check that the count is a power of two.
6695 (vect_strided_load_supported): Likewise.
6696 (vect_permute_store_chain): Return void. Update after above changes.
6697 Assert that the access is supported.
6698 (vect_permute_load_chain): Likewise.
6699 (vect_transform_strided_load): Return void.
6700 * tree-vect-stmts.c (vectorizable_store): Update calls after
6701 above interface changes.
6702 (vectorizable_load): Likewise.
6703 (vect_analyze_stmt): Don't check for strided powers of two here.
6704
6705 2011-04-14 Richard Guenther <rguenther@suse.de>
6706
6707 PR tree-optimization/48590
6708 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6709 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6710 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6711 BUILT_IN_STACK_SAVE.
6712 * tree-ssa-dce.c (propagate_necessity): Handle
6713 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6714
6715 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6716
6717 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6718 objc_declare_class.
6719
6720 2011-04-14 Richard Guenther <rguenther@suse.de>
6721
6722 * tree.h (get_object_alignment_1): Declare.
6723 * builtins.c (get_object_alignment_1): Split out worker from ...
6724 (get_object_alignment): ... here.
6725 * fold-const.c (get_pointer_modulus_and_residue): Use
6726 get_object_alignment_1.
6727
6728 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6729
6730 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6731 type parameter.
6732 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6733 parameter. Generalise code to handle arrays as well as vectors.
6734 (vect_setup_realignment): Update accordingly.
6735 * tree-vect-stmts.c (vectorizable_store): Likewise.
6736 (vectorizable_load): Likewise.
6737
6738 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6739
6740 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6741 within the per-copy loop.
6742
6743 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6744
6745 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6746 in the dump file.
6747
6748 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6749
6750 * doc/options.texi (Negative): Explicitly mention that the
6751 Negative chain must be circular.
6752
6753 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6754
6755 * function.h (block_chainon): Declare.
6756 * function.c (block_chainon): Define.
6757
6758 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6759 Eric Weddington <eric.weddington@atmel.com>
6760 Georg-Johann Lay <avr@gjlay.de>
6761
6762 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6763 New Includes
6764 (avr_init_builtins, avr_expand_builtin,
6765 avr_expand_delay_cycles, avr_expand_unop_builtin,
6766 avr_expand_binop_builtin ): New functions.
6767 (avr_builtin_id): New enum
6768 (struct avr_builtin_description): New struct
6769 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6770 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6771
6772 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6773 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6774 UNSPECV_DELAY_CYCLES): new enumeration values
6775 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6776 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6777 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6778 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6779 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6780 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6781 "fmulsu"): New insns
6782
6783 * config/avr/avr-c.c: fix line endings
6784 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6785 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6786 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6787 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6788 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6789
6790 * doc/extend.texi (AVR Built-in Functions): New node
6791 (Target Builtins): Add documentation of AVR
6792 built-in functions.
6793
6794 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6795
6796 PR target/44643
6797 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6798 alone. Error if non-const data has attribute progmem.
6799
6800 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6801
6802 * tree.h (struct tree_constructor): Include tree_typed instead of
6803 tree_common.
6804 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6805 TS_TYPED instead of TS_COMMON.
6806
6807 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6808
6809 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6810 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6811 (sse2_psadbw): Merge with *avx_psadbw.
6812 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6813 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6814 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6815 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6816 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6817 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6818 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6819 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6820 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6821 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6822 (ssse3_palignrti): Merge with *avx_palignrti.
6823
6824 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6825
6826 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6827 * tree-ssanames.c (fini_ssanames): VEC_free it.
6828 (make_ssa_name_fn): Update for VECness of free_ssanames.
6829 (release_ssa_name, release_dead_ssa_names): Likewise.
6830 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6831 tree_common.
6832 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6833 TS_TYPED instead of TS_COMMON.
6834
6835 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6836
6837 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6838 statistics_counter_event.
6839 * tree-ssa-copyrename.c (stats): Define.
6840 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6841 statistics_counter_event.
6842 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6843 (bswap_stats, widen_mul_stats): Define.
6844 (insert_reciprocals): Increment rdivs_inserted.
6845 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6846 rfuncs_inserted. Add calls to statistics_counter_event.
6847 (execute_cse_sincos_1): Increment inserted.
6848 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6849 statistics_counter_event.
6850 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6851 of bswap_stats. Add calls to statistics_counter_event.
6852 (convert_mult_to_widen): Increment widen_mults_inserted.
6853 (convert_plusminus_to_widen): Increment maccs_inserted.
6854 (convert_mult_to_fma): Increment fmas_inserted.
6855 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6856 calls to statistics_counter_event.
6857
6858 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6859
6860 PR rtl-optimization/48455
6861 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6862 `temp_costs->mem_cost'.
6863
6864 2011-04-13 Jan Hubicka <jh@suse.cz>
6865
6866 * ipa-inline.h: New file.
6867 * ipa-inline-analysis.c: New file. Broken out of ...
6868 * ipa-inline.c: ... this file; update toplevel comment;
6869 include ipa-inline.h
6870 (inline_summary): Move to ipa-inline.h
6871 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6872 ipa-inline-analysis.c.
6873 (cgraph_estimate_time_after_inlining): Rename to
6874 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6875 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6876 to estimate_edge_growth.
6877 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6878 rename to estimate_size_after_inlining.
6879 (cgraph_mark_inline_edge): Update for new naming convention.
6880 (cgraph_check_inline_limits): Likewise.
6881 (cgraph_edge_badness): Likewise.
6882 (cgraph_decide_recursive_inlining): Likewise.
6883 (cgraph_decide_inlining_of_small_functions): Likewise.
6884 (cgraph_decide_inlining_incrementally): Likewise.
6885 (cgraph_estimate_growth): Rename to estimate_growth; move to
6886 ipa-inline-analysis.c.
6887 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6888 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6889 (compute_inline_parameters): Likewise.
6890 (compute_inline_parameters_for_current): Likewise.
6891 (pass_inline_parameters): Likewise.
6892 (inline_indirect_intraprocedural_analysis): Likewise.
6893 (analyze_function): Rename to inline_analyze_function; likewise.
6894 (add_new_function): Move to ipa-inline-analysis.c.
6895 (inline_generate_summary): Likewise.
6896 (inline_read_summary): Likewise.
6897 (inline_write_summary): Likewise.
6898 * Makefile.in (ipa-inline-analysis.c): New file.
6899
6900 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6901
6902 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6903 * configure: Regenerate.
6904
6905 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6906
6907 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6908 instead of tree_common.
6909 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6910 Likewise.
6911 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6912 TS_TYPED rather than TS_COMMON.
6913 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6914
6915 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6916
6917 PR target/45263
6918 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6919 r20 around calls of __tablejump_elpm__
6920
6921 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6922
6923 PR middle-end/48591
6924 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6925 NULL.
6926 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6927
6928 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6929
6930 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6931 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6932 (cfi_vec): New typedef.
6933 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6934 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6935 (cie_cfi_vec): New static variable.
6936 (cie_cfi_head): Delete.
6937 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6938 declaration changed. Use vector rather than list operations.
6939 (new_cfi): Don't initialize the dw_cfi_next field.
6940 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6941 rather than list operations.
6942 (lookup_cfa): Use vector rather than list operations.
6943 (output_cfis): New argument upto. Accept a cfi_vec rather than
6944 a dw_cfi_ref list head as argument. All callers changed.
6945 Iterate over the vector using upto as a maximum index.
6946 (output_all_cfis): New static function.
6947 (output_fde): Use vector rather than list operations. Use the
6948 new upto argument for output_cfis rather than manipulating a
6949 list.
6950 (dwarf2out_begin_prologue): Change initializations to match
6951 new struct members.
6952 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6953 from the vector length rather than searching for the end of a list.
6954 Use output_all_cfis.
6955 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6956
6957 2011-04-13 Nick Clifton <nickc@redhat.com>
6958
6959 * config/rx/rx.md (movmemsi): Do not use this pattern when
6960 volatile pointers are involved.
6961
6962 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6963
6964 * config/i386/sse.md (pinsrbits): Remove.
6965 (sse2_packsswb): Merge with *avx_packsswb.
6966 (sse2_packssdw): Merge with *avx_packssdw.
6967 (sse2_packuswb): Merge with *avx_packuswb.
6968 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6969 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6970 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6971 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6972 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6973 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6974 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6975 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6976 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6977 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6978 (sse2_loadld): Merge with *avx_loadld.
6979 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6980 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6981 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6982 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6983 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6984
6985 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6986
6987 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6988 calling TREE_CHAIN.
6989 * print-tree.c (print_node): Likewise.
6990 * tree-inline.c (copy_tree_r): Likewise.
6991 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6992 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6993 instead of TS_COMMON.
6994 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6995 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6996 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6997 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6998 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6999 ...and these...
7000 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7001 * tree.h: ...here.
7002 (TREE_CHAIN): Check for a TS_COMMON structure.
7003 (TREE_TYPE): Check for a TS_TYPED structure.
7004
7005 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7006
7007 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7008 cgraph_get_create_node instead of cgraph_node.
7009
7010 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7011
7012 * c-parser.c (c_parser_initelt): Updated call to
7013 objc_build_message_expr.
7014 (c_parser_postfix_expression): Likewise.
7015
7016 2011-04-12 Kai Tietz <ktietz@redhat.com>
7017
7018 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7019 MASK_MS_BITFIELD_LAYOUT bit.
7020
7021 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7022
7023 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7024 assert it is always true.
7025 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7026 moves.
7027
7028 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7029
7030 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7031 compiling Objective-C to be more efficient.
7032
7033 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7034
7035 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7036 argv_copied.
7037
7038 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7039
7040 * recog.h, genoutput.c, optabs.c: Revert last patch.
7041
7042 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7043
7044 PR target/48090
7045 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7046
7047 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7048
7049 * recog.h (insn_operand_data): Add an "allows_mem" field.
7050 * genoutput.c (output_operand_data): Initialize it.
7051 * optabs.c (maybe_legitimize_operand_same_code): New function.
7052 (maybe_legitimize_operand): Use it when matching the original
7053 op->value.
7054
7055 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7056
7057 * genpreds.c (process_define_predicate): Move most processing
7058 to gensupport.c. Continue to validate the expression.
7059 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7060 (process_define_predicate): Move processing to gensupport.c.
7061 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7062 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7063 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7064 argument.
7065 (valid_predicate_name_p): New function, split out from old
7066 genpreds.c:process_define_predicate.
7067 (process_define_predicate): New function, combining code from
7068 old genpreds.c and genrecog.c functions.
7069 (process_rtx): Call it for DEFINE_PREDICATE and
7070 DEFINE_SPECIAL_PREDICATE.
7071
7072 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7073
7074 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7075 size of a '%A' memory reference.
7076 (T_DREG, T_QREG): New neon_builtin_type_bits.
7077 (arm_init_neon_builtins): Assert that the load and store operands
7078 are neon_struct_operands.
7079 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7080 (NEON_ARG_MEMORY): New builtin_arg.
7081 (neon_dereference_pointer): New function.
7082 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7083 Handle NEON_ARG_MEMORY.
7084 (arm_expand_neon_builtin): Update after above interface changes.
7085 Use NEON_ARG_MEMORY for loads and stores.
7086 * config/arm/predicates.md (neon_struct_operand): New predicate.
7087 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7088 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7089 (V_four_elem): Tweak formatting.
7090 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7091 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7092 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7093 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7094 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7095 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7096 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7097 Use %A in the output template.
7098 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7099 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7100 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7101 the width of the memory access. Remove post-increment.
7102 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7103
7104 2011-04-12 Nick Clifton <nickc@redhat.com>
7105
7106 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7107 instruction for interrupt handlers if the target is the basic V850
7108 architecture.
7109 (expand_epilogue): Likewise.
7110
7111 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7112
7113 PR rtl-optimization/48549
7114 * combine.c (propagate_for_debug): Also stop after BB_END of
7115 this_basic_block. Process LAST and just stop processing after it.
7116 (combine_instructions): If last_combined_insn has been deleted,
7117 set last_combined_insn to its PREV_INSN.
7118
7119 2011-04-12 Richard Guenther <rguenther@suse.de>
7120
7121 PR tree-optimization/46076
7122 * gimple.h (struct gimple_statement_call): Add fntype field.
7123 (gimple_call_fntype): Adjust.
7124 (gimple_call_set_fntype): New function.
7125 * gimple.c (gimple_build_call_1): Set the call function type.
7126 * gimplify.c (gimplify_call_expr): Preserve the function
7127 type the frontend used for the call.
7128 (gimplify_modify_expr): Likewise.
7129 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7130 function type.
7131 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7132 function type.
7133 * tree-ssa.c (useless_type_conversion_p): Function pointer
7134 conversions are useless.
7135
7136 2011-04-12 Martin Jambor <mjambor@suse.cz>
7137
7138 * cgraph.h (cgraph_node): Remove function declaration.
7139 (cgraph_create_node): Declare.
7140 (cgraph_get_create_node): Likewise.
7141 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7142 Updated all callers.
7143 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7144 the decl does not already exist. Call cgraph_get_create_node instead
7145 of cgraph_node.
7146 (cgraph_get_create_node): New function.
7147 (cgraph_same_body_alias): Update comment.
7148 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7149 assert it does not return NULL.
7150 (cgraph_update_edges_for_call_stmt): Likewise.
7151 (cgraph_clone_edge): Likewise.
7152 (cgraph_create_virtual_clone): Likewise.
7153 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7154 instead of cgraph_node.
7155 (cgraph_add_new_function): Call cgraph_create_node or
7156 cgraph_get_create_node instead of cgraph_node.
7157 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7158 instead of cgraph_node.
7159 (record_eh_tables): Likewise.
7160 (mark_address): Likewise.
7161 (mark_load): Likewise.
7162 (build_cgraph_edges): Call cgraph_get_create_node instead
7163 of cgraph_node.
7164 (rebuild_cgraph_edges): Likewise.
7165 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7166 instead of cgraph_node.
7167 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7168 cgraph_node.
7169 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7170 cgraph_create_node instead of cgraph_node.
7171 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7172 of cgraph_node.
7173 * lto-cgraph.c (input_node): Likewise.
7174 * lto-streamer-in.c (input_function): Likewise.
7175 * varasm.c (mark_decl_referenced): Likewise.
7176 (assemble_alias): Likewise.
7177
7178 2011-04-12 Martin Jambor <mjambor@suse.cz>
7179
7180 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7181 instead of cgraph_node and assert it does not return NULL.
7182 * lto-streamer-in.c (lto_read_body): Likewise.
7183 * omp-low.c (new_omp_context): Likewise.
7184 (create_task_copyfn): Likewise.
7185 * tree-emutls.c (lower_emutls_function_body): Likewise.
7186 * matrix-reorg.c (transform_allocation_sites): Likewise.
7187
7188 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7189
7190 PR c/48552
7191 * c-typeck.c (build_asm_expr): Error out on attempts to use
7192 void type outputs or inputs for constraints that allow reg or
7193 don't allow memory.
7194
7195 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7196 Richard Earnshaw <rearnsha@arm.com>
7197
7198 PR target/48250
7199 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7200 to use sign-magnitude offsets. Reject unsupported unaligned
7201 cases. Add detailed description in comments.
7202 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7203 condition from TARGET_32BIT to TARGET_ARM.
7204
7205 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7206
7207 * tree.h (struct typed_tree): New.
7208 (struct tree_common): Include it instead of tree_base.
7209 (TREE_TYPE): Update for new location of type field.
7210 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7211 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7212 (union tree_node): Add typed field.
7213 * treestruct.def (TS_TYPED): New.
7214 * lto-streamer.c (check_handled_ts_structures): Handle it.
7215 * tree.c (MARK_TS_TYPED): New macro.
7216 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7217
7218 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7219
7220 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7221 (force_nonfallthru): Do not alter the loop nest if no basic block
7222 was created.
7223
7224 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7225
7226 * config/i386/sse.md (VI): New mode iterator.
7227 (SSEMODEI): Remove.
7228 (AVX256MODEI): Ditto.
7229 (AVXMODEF4P): Ditto.
7230 (avxvecpsmode): Ditto.
7231 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7232 (sse2_andnot<mode>3): New expander.
7233 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7234 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7235 (<any_logic:code><mode>3): Use VI mode iterator.
7236 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7237 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7238 (*andnottf3): Handle AVX three-operand constraints.
7239 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7240
7241 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7242 Robert Millan <rmh@gnu.org>
7243
7244 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7245 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7246 GNU_USER_DYNAMIC_LINKER64): Define.
7247 (REG_NAME): Don't undefine.
7248 (MD_UNWIND_SUPPORT): Undefine.
7249 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7250 (REG_NAME): Don't undefine.
7251 (MD_UNWIND_SUPPORT): Undefine.
7252 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7253
7254 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7255
7256 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7257 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7258
7259 2011-04-11 Xinliang David Li <davidxl@google.com>
7260
7261 * value-profile.c (check_ic_target): New function.
7262 (gimple_ic_transform): Sanity check indirect call target.
7263 * gimple-low.c (gimple_check_call_args): Interface change.
7264 (gimple_check_call_matching_types): New function.
7265 * tree-inline.c (tree_can_inline_p): Call new function.
7266
7267 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7268
7269 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7270 tree-pretty-print.h & realmpfr.h.
7271
7272 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7273
7274 PR middle-end/48464
7275 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7276 (setup_allocno_and_important_classes): Ditto.
7277
7278 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7279
7280 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7281 GNU_USER_DYNAMIC_LINKER.
7282 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7283 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7284 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7285 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7286 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7287 GNU_USER_TARGET_OS_CPP_BUILTINS.
7288 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7290 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7291 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7292 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7293 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7294 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7295 GNU_USER_TARGET_OS_CPP_BUILTINS.
7296 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7297 GNU_USER_DYNAMIC_LINKER.
7298 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7299 GNU_USER_TARGET_OS_CPP_BUILTINS.
7300 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7301 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7302 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7304 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7305 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7306 GNU_USER_DYNAMIC_LINKER64): Remove.
7307 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7308 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7309 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7310 GNU_USER_DYNAMIC_LINKER.
7311 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7312 GNU_USER_TARGET_OS_CPP_BUILTINS.
7313 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7314 GNU_USER_TARGET_OS_CPP_BUILTINS.
7315 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7316 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7317 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7318 GNU_USER_TARGET_OS_CPP_BUILTINS.
7319 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7320 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7321 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7322 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7323 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7324 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7325 GNU_USER_DYNAMIC_LINKER.
7326 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7327 GNU_USER_TARGET_OS_CPP_BUILTINS.
7328 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7329 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7330 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7331 GNU_USER_DYNAMIC_LINKER.
7332 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7333 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7334 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7335 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7336 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7337 GNU_USER_DYNAMIC_LINKER.
7338 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7339 GNU_USER_DYNAMIC_LINKERN32.
7340 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7341 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7342 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7343 GNU_USER_DYNAMIC_LINKER32.
7344 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7345 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7346 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7347 GNU_USER_DYNAMIC_LINKER.
7348 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7350 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7352 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7353 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7354 GNU_USER_DYNAMIC_LINKER32.
7355 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7356 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7357 GNU_USER_DYNAMIC_LINKER.
7358 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7360 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7361 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7362 GNU_USER_DYNAMIC_LINKER64.
7363 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7364 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7365 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7366 GNU_USER_DYNAMIC_LINKER.
7367 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7368 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7369 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7370 GNU_USER_DYNAMIC_LINKER.
7371 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7372 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7373 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7374 GNU_USER_DYNAMIC_LINKER32.
7375 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7376 GNU_USER_DYNAMIC_LINKER64.
7377 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7378 GNU_USER_DYNAMIC_LINKER64.
7379 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7381 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7383 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7384
7385 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7386
7387 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7388 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7389 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7390 GNU_USER_DYNAMIC_LINKER.
7391 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7392 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7393 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7394 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7395 GNU_USER_DYNAMIC_LINKER64.
7396 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7397 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7398 GNU_USER_LINK_EMULATION.
7399 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7400 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7401 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7402 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7403 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7404 CPP_SPEC, CC1_SPEC): Remove.
7405 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7406 (GNU_USER_DYNAMIC_LINKER): Define.
7407 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7408 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7409 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7410 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7411 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7412 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7413 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7414 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7415 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7416 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7417 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7418 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7419 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7420 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7421 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7422 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7423 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7424 GNU_USER_DYNAMIC_LINKER.
7425 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7426 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7427 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7428 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7429 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7430 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7431 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7432 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7433 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7434 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7435
7436 2011-04-11 Kai Tietz <ktietz@redhat.com>
7437
7438 PR target/9601
7439 PR target/11772
7440 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7441 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7442 comment.
7443 (ix86_is_msabi_thiscall): Removed.
7444 (ix86_is_type_thiscall): Likewise.
7445 (ix86_get_callcvt): New function.
7446 (ix86_comp_type_attributes): Simplify check.
7447 (ix86_function_regparm): Use ix86_get_callcvt for calling
7448 convention attribute checks.
7449 (ix86_return_pops_args): Likewise.
7450 (ix86_static_chain): Likewise.
7451 (x86_this_parameter): Likewise.
7452 (x86_output_mi_thunk): Likewise.
7453 (ix86_function_type_abi): Optimize check for types without attributes.
7454 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7455 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7456 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7457 by flag-values.
7458 (IX86_BASE_CALLCVT): Helper macro.
7459 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7460 Use ix86_get_callcvt for calling convention attribute checks and avoid
7461 symbol-decoration for stdcall in TARGET_RTD case.
7462 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7463 Likewise.
7464 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7465 for declaration.
7466
7467 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7468
7469 * config/i386/sse.md (VI_128): New mode iterator.
7470 (VI12_128): Rename from SSEMODE12.
7471 (VI14_128): Rename from SSEMODE14.
7472 (VI124_128): New mode iterator.
7473 (VI24_128): Rename from SSEMODE248.
7474 (VI248_128): Rename from SSEMODE248.
7475 (SSEMODE124C8): Remove.
7476 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7477 (*sse2_<plusminus_insn><mode>3): Merge with
7478 *avx_<plusminus_insn><mode>3.
7479 (*mulv8hi3): Merge with *avx_mulv8hi3.
7480 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7481 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7482 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7483 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7484 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7485 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7486 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7487 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7488 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7489 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7490 (*<smaxmin:code>v8hi3): Ditto.
7491 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7492 (*<smaxmin:code>v16qi3): Ditto.
7493 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7494 (*sse2_eq<mode>3): Ditto.
7495 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7496 (*sse2_gt<mode>3): Ditto.
7497 (vcondv2di): Split out of vcond<mode>.
7498 (vconduv2di): Split out of vcondu<mode>.
7499
7500 2011-04-11 Richard Guenther <rguenther@suse.de>
7501
7502 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7503 before calling tree_low_cst.
7504
7505 2011-04-11 Richard Guenther <rguenther@suse.de>
7506
7507 * stor-layout.c (layout_type): Compute all array index size operations
7508 in the original type.
7509 (initialize_sizetypes): Add comment.
7510 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7511
7512 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7513
7514 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7515
7516 2011-04-11 Martin Jambor <mjambor@suse.cz>
7517
7518 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7519 of cgraph_node, handle NULL return value.
7520 (cgraph_global_info): Likewise.
7521 (cgraph_rtl_info): Likewise.
7522 * tree-inline.c (estimate_num_insns): Likewise.
7523 * gimplify.c (unshare_body): Likewise.
7524 (unvisit_body): Likewise.
7525 (gimplify_body): Likewise.
7526 * predict.c (optimize_function_for_size_p): Likewise.
7527 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7528 (call_may_clobber_ref_p_1): Likewise.
7529 * varasm.c (function_section_1): Likewise.
7530 (assemble_start_function): Likewise.
7531
7532 2011-04-11 Martin Jambor <mjambor@suse.cz>
7533
7534 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7535 of cgraph_node.
7536 * final.c (rest_of_clean_state): Likewise.
7537 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7538 * passes.c (pass_init_dump_file): Likewise.
7539 (execute_all_ipa_transforms): Likewise.
7540 (function_called_by_processed_nodes_p): Likewise.
7541 * predict.c (maybe_hot_frequency_p): Likewise.
7542 (probably_never_executed_bb_p): Likewise.
7543 (compute_function_frequency): Likewise.
7544 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7545 (unnest_nesting_tree_1): Likewise.
7546 (lower_nested_functions): Likewise.
7547 * tree-optimize.c (execute_fixup_cfg): Likewise.
7548 (tree_rest_of_compilation): Likewise.
7549 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7550 * tree-sra.c (ipa_early_sra): Likewise.
7551 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7552 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7553 * ipa.c (record_cdtor_fn): Likewise.
7554 * ipa-inline.c (cgraph_early_inlining): Likewise.
7555 (compute_inline_parameters_for_current): Likewise.
7556 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7557 * ipa-pure-const.c (local_pure_const): Likewise.
7558 * ipa-split.c (split_function): Likewise.
7559 (execute_split_functions): Likewise.
7560 * cgraphbuild.c (build_cgraph_edges): Likewise.
7561 (rebuild_cgraph_edges): Likewise.
7562 (cgraph_rebuild_references): Likewise.
7563 (remove_cgraph_callee_edges): Likewise.
7564 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7565 (verify_cgraph_node): Likewise.
7566 (cgraph_analyze_functions): Likewise.
7567 (cgraph_preserve_function_body_p): Likewise.
7568 (save_inline_function_body): Likewise.
7569 (save_inline_function_body): Likewise.
7570 * tree-inline.c (copy_bb): Likewise.
7571 (optimize_inline_calls): Likewise.
7572
7573 2011-04-11 Martin Jambor <mjambor@suse.cz>
7574
7575 PR tree-optimization/48195
7576 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7577 ipa_check_create_edge_args.
7578 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7579 ipa_check_create_edge_args.
7580 * ipa-inline.c (inline_generate_summary): Do not call
7581 ipa_check_create_node_params and ipa_check_create_edge_args.
7582 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7583 ipa_check_create_edge_args.
7584
7585 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7586
7587 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7588 instead of loop.
7589 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7590 * function.c (record_hard_reg_sets): Likewise.
7591 * ira.c (compute_regs_asm_clobbered): Likewise.
7592 * sched-deps.c (sched_analyze_1): Likewise.
7593 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7594
7595 2011-04-09 Xinliang David Li <davidxl@google.com>
7596
7597 PR tree-optimization/PR48484
7598 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7599 has_valid_pred lazily
7600
7601 2011-04-09 Duncan Sands <baldrick@free.fr>
7602
7603 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7604
7605 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7606
7607 * combine.c (combine_validate_cost): Adjust comments. Set registered
7608 cost of I0 to zero at the end, if any.
7609
7610 2011-04-08 Xinliang David Li <davidxl@google.com>
7611
7612 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7613 to insane profile data.
7614
7615 2011-04-08 Xinliang David Li <davidxl@google.com>
7616
7617 * ipa-cp.c (ipcp_update_profiling): Correct
7618 negative scale factor due to insane profile data.
7619
7620 2011-04-08 Xinliang David Li <davidxl@google.com>
7621
7622 * final.c (dump_basic_block_info): New function.
7623 (final): Dump basic block.
7624 (final_scan_insn): Remove old dump.
7625
7626 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7627
7628 PR target/47829
7629 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7630 crtbegin/crtend.
7631
7632 2011-04-08 Michael Matz <matz@suse.de>
7633
7634 PR middle-end/48389
7635 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7636 functions.
7637 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7638 * rtl.h (rebuild_jump_labels_chain): Declare.
7639 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7640 insns inserted on edges.
7641
7642 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7643
7644 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7645 * config/arm/arm-arches.def: New.
7646 * config/arm/arm-opts.h: New.
7647 * config/arm/genopt.sh: New.
7648 * config/arm/arm-tables.opt: New (generated).
7649 * config/arm/arm.c (arm_handle_option, arm_target_help,
7650 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7651 (all_architectures): Get most table contents from arm-arches.def.
7652 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7653 arm_selected_tune here.
7654 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7655 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7656 (march=, mcpu=, mtune=): Use Enum and Var.
7657 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7658 (arm.o): Update dependencies.
7659
7660 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7661
7662 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7663 of header_file.
7664 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7665 (write_typed_alloc_defns): Likewise.
7666 (main): Calls write_typed_alloc_defns with output_header.
7667
7668 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7669
7670 PR inline-asm/48435
7671 * ira-color.c (setup_profitable_hard_regs): Add comments.
7672 Don't take prohibited hard regs into account.
7673 (setup_conflict_profitable_regs): Rename to
7674 get_conflict_profitable_regs.
7675 (check_hard_reg_p): Check prohibited hard regs.
7676
7677 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7678
7679 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7680 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7681 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7682
7683 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7684
7685 PR target/48366
7686 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7687 move from floating point to shift amount register.
7688 (emit_move_sequence): Remove secondary reload support for floating
7689 point to shift amount amount register copies.
7690 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7691 amount register copies.
7692 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7693 register, return false if mode isn't a scalar integer mode.
7694 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7695
7696 2011-04-08 Richard Guenther <rguenther@suse.de>
7697
7698 * gimple.c (gimple_call_flags): Remove kludge.
7699
7700 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7701
7702 * sel-sched.c (sel_region_init): Move call to
7703 sel_setup_region_sched_flags after setup_current_loop_nest.
7704
7705 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7706
7707 PR rtl-optimization/48272
7708 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7709 init_insn_reg_pressure_info. Adjust a caller.
7710 * sched-int.h (init_insn_reg_pressure_info): Declare.
7711 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7712 when sched-pressure is enabled.
7713
7714 2011-04-08 Richard Guenther <rguenther@suse.de>
7715
7716 * gimple.c (gimple_set_modified): Do not queue calls to
7717 MODIFIED_NORETURN_CALLS here ...
7718 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7719
7720 2011-04-08 Richard Guenther <rguenther@suse.de>
7721
7722 PR lto/48467
7723 * toplev.c (lang_dependent_init): Do not open asm_out_file
7724 in WPA mode, nor perform debug machinery initialization.
7725 (finalize): Do not unlink asm_out_file in WPA mode.
7726
7727 2011-04-08 Richard Guenther <rguenther@suse.de>
7728
7729 * gimple.h (gimple_call_fntype): New function.
7730 (gimple_call_return_type): Use it.
7731 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7732 * gimple-low.c (gimple_check_call_args): Likewise.
7733 * gimple.c (gimple_call_flags): Likewise.
7734 (gimple_call_arg_flags): Likewise.
7735 (gimple_call_return_flags): Likewise.
7736 * tree-cfg.c (verify_gimple_call): Likewise.
7737 (do_warn_unused_result): Likewise.
7738 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7739 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7740
7741 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7742
7743 PR rtl-optimization/48235
7744 * sel-sched.c (code_motion_process_successors): Recompute the last
7745 insn in basic block if control flow changed.
7746 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7747 Update condition for ilist_remove.
7748
7749 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7750
7751 PR rtl-optimization/48302
7752 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7753 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7754 it to record added preheader blocks.
7755 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7756 on to sel_add_loop_preheaders.
7757 (sel_region_init): Move call to setup_current_loop_nest after
7758 sel_init_bbs.
7759
7760 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7761
7762 PR target/48273
7763 * cfgloop.h (loop_has_exit_edges): New helper.
7764 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7765 non-clonable.
7766 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7767 that have no exit edges.
7768
7769 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7770
7771 PR rtl-optimization/48442
7772 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7773 all callers. Adjust assert.
7774
7775 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7776
7777 PR tree-optimization/48377
7778 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7779 is_packed to true even for types with smaller TYPE_ALIGN than
7780 TYPE_SIZE.
7781
7782 2011-04-08 Richard Guenther <rguenther@suse.de>
7783
7784 PR bootstrap/48513
7785 * doc/tm.texi: Re-generate.
7786
7787 2011-04-08 Wei Guozhi <carrot@google.com>
7788
7789 PR target/47855
7790 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7791 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7792 * config/arm/arm.md (*push_multi): Change the length computation to
7793 call a C function.
7794
7795 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7796
7797 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7798 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7799 * doc/tm.texi: Regenerate.
7800 * system.h (ASM_OUTPUT_BSS): Poison.
7801 * varasm.c (asm_output_bss): Remove function.
7802 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7803
7804 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7805 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7806 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7807 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7808 Likewise.
7809 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7810 Likewise.
7811 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7812 Likewise.
7813 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7814
7815 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7816
7817 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7818 EnumValue lines.
7819
7820 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7821
7822 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7823 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7824 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7825 OPT_mcpu32.
7826 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7827 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7828 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7829 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7830 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7831 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7832 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7833 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7834 options. Don't map other m68k options manually. Don't handle
7835 old-style options as canonical.
7836 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7837 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7838
7839 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7840
7841 * basic-block.h (force_nonfallthru): Move to...
7842 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7843 (force_nonfallthru): ...here.
7844 * cfghooks.c (force_nonfallthru): New function.
7845 * cfgrtl.c (force_nonfallthru): Rename into...
7846 (rtl_force_nonfallthru): ...this.
7847 (commit_one_edge_insertion): Do not set AUX field.
7848 (commit_edge_insertions): Do not discover new basic blocks.
7849 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7850 (cfg_layout_rtl_cfg_hooks): Likewise.
7851 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7852 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7853 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7854
7855 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7856
7857 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7858 Remove macros.
7859
7860 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7861
7862 * config/i386/sse.md: Update copyright year.
7863 (avxcvtvecmode): Remove.
7864 (sse_movhlps): Merge with *avx_movhlps.
7865 (sse_movlhps): Merge with *avx_movlhps.
7866 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7867 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7868 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7869 (sse_loadhps): Merge with *avx_loadhps.
7870 (sse_storelps): Merge with *avx_storelps.
7871 (sse_loadlps): Merge with *avx_loadlps.
7872 (sse_movss): Merge with *avx_movss.
7873 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7874 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7875 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7876 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7877 (vec_set<mode>_0): Ditto.
7878 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7879 (sse4_1_insertps): Merge with *avx_insertps.
7880 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7881 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7882 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7883 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7884 (sse2_storehpd): Merge with *avx_storehpd.
7885 (sse2_loadhpd): Merge with *avx_loadhpd.
7886 (sse2_loadlpd): Merge with *avx_loadlpd.
7887 (sse2_movsd): Merge with *avx_movsd.
7888 (*vec_concatv2df): Merge with *vec_concatv2df.
7889
7890 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7891
7892 PR debug/48343
7893 * combine.c (combine_instructions): Add last_combined_insn,
7894 update it if insn is after it, pass it to all try_combine calls.
7895 (try_combine): Add last_combined_insn parameter, pass it instead of
7896 i3 to propagate_for_debug.
7897
7898 2011-04-07 Nick Clifton <nickc@redhat.com>
7899
7900 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7901 to handle MDR <-> data register transfers.
7902 (movhi_internal): Likewise.
7903
7904 2011-04-07 Alan Modra <amodra@gmail.com>
7905
7906 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7907 previous stack info.
7908
7909 2011-04-07 Tom de Vries <tom@codesourcery.com>
7910
7911 PR target/43920
7912 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7913 flow_find_cross_jump. Swap variables to implement backward replacement.
7914 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7915
7916 2011-04-07 Tom de Vries <tom@codesourcery.com>
7917
7918 PR target/43920
7919 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7920 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7921 and bb2.
7922 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7923 src1 or src2. Redirect edges to the last basic block. Update
7924 frequency and count on multiple basic blocks in case of fallthru.
7925
7926 2011-04-07 Tom de Vries <tom@codesourcery.com>
7927
7928 PR target/43920
7929 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7930 function.
7931 (old_insns_match_p): Change return type. Replace return false/true
7932 with return dir_none/dir_both. Use can_replace_by.
7933 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7934 direction from dir_p. Register replacement direction in dir, last_dir
7935 and afterlast_dir. Handle new return type of old_insns_match_p using
7936 merge_dir. Return replacement direction in dir_p.
7937 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7938 return type of old_insns_match_p.
7939 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7940 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7941 flow_find_cross_jump.
7942 * basic-block.h (enum replace_direction): New type.
7943 (flow_find_cross_jump): Add parameter to declaration.
7944
7945 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7946
7947 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7948 (AVXMODEDCVTPS2DQ): Ditto.
7949 (VEC_FLOAT_MODE): Ditto.
7950 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7951 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7952 (<any_logic:code><mode>3): Use VF mode iterator.
7953 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7954 Use VF mode iterator.
7955 (copysign<mode>3): Use VF mode iterator.
7956 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7957 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7958 (*<any_logic:code><MODEF:mode>3): Merge with
7959 *avx_<any_logic:code><MODEF:mode>3.
7960 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7961 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7962 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7963 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7964 (sse2_cvtdq2ps): Use %v modifier.
7965 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7966 (avx_cvtps2dq<avxmodesuffix>): Remove.
7967 (sse2_cvtps2dq): Use %v modifier.
7968 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7969 (avx_cvttps2dq<avxmodesuffix>): Remove.
7970 (sse2_cvttps2dq): Use %v modifier.
7971 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7972 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7973 (sse2_cvtsd2siq): Fix insn template.
7974 (sse2_cvtsd2siq_2): Ditto.
7975 (sse2_cvttsd2siq): Ditto.
7976 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7977 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7978
7979 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7980
7981 * gcov-io.c: Use GCC Runtime Library Exception.
7982
7983 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7984
7985 PR debug/48466
7986 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7987 as base_reg whatever register reg has been eliminated to, instead
7988 of hardcoding STACK_POINTER_REGNUM.
7989
7990 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7991
7992 * doc/tm.texi.in: Document C target hooks as separate from general
7993 target hooks.
7994 * doc/tm.texi: Regenerate.
7995 * genhooks.c (struct hook_desc): Add docname field.
7996 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7997 docname field.
7998 (hook_array): Include c-target.def.
7999 (emit_documentation): Use docname field in output.
8000 (emit_init_macros): Take docname argument. Only emit definitions
8001 for hooks matching docname.
8002 (main): Expect additional arguments in all cases. Pass argument
8003 to emit_init_macros.
8004 * target.def: Move initial macro definitions and comments to
8005 target-hooks-macros.h.
8006 (gcc_targetcm): Move to c-family/c-target.def.
8007 * target.h (targetcm): Move declaration to c-family/c-target.h.
8008 * targhooks.c (default_handle_c_option): Move to
8009 c-family/c-opts.c.
8010 * targhooks.h (default_handle_c_option): Move declaration to
8011 c-family/c-common.h.
8012 * target-hooks-macros.h: New file.
8013 * config.gcc (target_has_targetcm): Define and use to add to
8014 c_target_objs and cxx_target_objs.
8015 * config/default-c.c: New file.
8016 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8017 of target.h and target-def.h.
8018 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8019 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8020 darwin_check_cfstring_format_arg): Make static.
8021 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8022 TARGET_STRING_OBJECT_REF_TYPE_P,
8023 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8024 * config/darwin-protos.h (darwin_objc_construct_string,
8025 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8026 declare.
8027 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8028 TARGET_STRING_OBJECT_REF_TYPE_P,
8029 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8030 * config/t-darwin (darwin-c.o): Update dependencies.
8031 * system.h (TARGET_HAS_TARGETCM): Poison.
8032 * Makefile.in (TARGET_H): Update.
8033 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8034 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8035 (default-c.o): New target.
8036 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8037 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8038 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8039 c-target.def.
8040 (build/genhooks.o): Update dependencies.
8041
8042 2011-04-06 Richard Guenther <rguenther@suse.de>
8043
8044 * ipa-inline.c (enum inlining_mode): Remove.
8045 (cgraph_flatten): Use some other token.
8046 (cgraph_edge_early_inlinable_p): New function, split out from ...
8047 (cgraph_perform_always_inlining): New function, split out from ...
8048 (cgraph_decide_inlining_incrementally): ... here.
8049 (cgraph_mark_inline_edge): Adjust.
8050 (cgraph_early_inlining): Re-structure.
8051 (pass_early_inline): Require SSA form.
8052
8053 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8054 Julian Brown <julian@codesourcery.com>
8055 Mark Shinwell <shinwell@codesourcery.com>
8056
8057 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8058 LO_REGS only for Thumb-1.
8059 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8060 be used in short instructions when optimising for size on Thumb-2.
8061
8062 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8063
8064 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8065 associated with user returns to be preserved.
8066
8067 2011-04-06 Tristan Gingold <gingold@adacore.com>
8068
8069 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8070 symbol_queue_size, DBXOUT_DECR_NESTING,
8071 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8072 if XCOFF_DEBUGGING_INFO.
8073
8074 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8075
8076 * config/i386/i386.md (attribute isa): New.
8077 (attribute enabled): New.
8078 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8079 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8080 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8081 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8082 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8083 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8084 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8085 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8086
8087 * config/i386/sse.md (VF): New mode iterator.
8088 (VF1): Ditto.
8089 (VF2): Ditto.
8090 (VF_128): Ditto.
8091 (SSEMODEF4): Remove.
8092 (attribute sse): Handle V8SF and V4DF modes.
8093 (<absneg:code><mode>2): Use VF mode iterator.
8094 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8095 mode iterator.
8096 (<plusminus_insn><mode>3): Use VF mode iterator.
8097 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8098 Use VF mode iterator.
8099 (<sse>_vm<plusminus_insn><mode>3): Merge with
8100 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8101 (mul<mode>3): Use VF mode iterator.
8102 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8103 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8104 mode iterator.
8105 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8106 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8107 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8108 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8109 mode iterator.
8110 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8111 Use VF1 mode iterator.
8112 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8113 (sqrt<VF2:mode>2): New expander.
8114 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8115 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8116 and sqrtv2df2. Use VF mode iterator.
8117 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8118 mode iterator.
8119 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8120 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8121 Use VF1 mode iterator.
8122 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8123 (<smaxmin:code><mode>3): Use VF mode iterator.
8124 (*<smaxmin:code><mode>3_finite): Merge with
8125 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8126 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8127 (<sse>_vm<smaxmin:code><mode>2): Merge with
8128 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8129 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8130 mode iterator.
8131 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8132 mode iterator.
8133 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8134 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8135 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8136 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8137 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8138 VF mode iterator.
8139 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8140 Use VF_128 mode iterator.
8141 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8142 mode iterator.
8143 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8144 VF_128 mode iterator.
8145 (vcond<mode>): Use VF mode iterator.
8146 * config/i386/predicates.md (sse_comparison_operator): Merge with
8147 avx_comparison_float_operator. Do not declare as special_predicate.
8148 * config/i386/i386.c (struct builtin_description): Update for renamed
8149 compare patterns.
8150 (ix86_expand_args_builtin): Ditto.
8151 (ix86_expand_sse_compare_mask): Ditto.
8152
8153 2011-04-06 Richard Guenther <rguenther@suse.de>
8154
8155 * tree-inline.c (estimate_num_insns): For calls simply account
8156 for all passed arguments and a used return value.
8157
8158 2011-04-06 Richard Guenther <rguenther@suse.de>
8159
8160 PR tree-optimization/47663
8161 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8162 call_stmt_time fields.
8163 (cgraph_edge_inlinable_p): Declare.
8164 (cgraph_edge_recursive_p): New inline function.
8165 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8166 (cgraph_clone_edge): Copy it.
8167 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8168 Account for call stmt time.
8169 (cgraph_estimate_time_after_inlining): Take edge argument.
8170 (cgraph_estimate_edge_growth): Account call stmt size.
8171 (cgraph_estimate_size_after_inlining): Take edge argument.
8172 (cgraph_mark_inline_edge): Adjust.
8173 (cgraph_check_inline_limits): Likewise.
8174 (cgraph_recursive_inlining_p): Remove.
8175 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8176 (cgraph_decide_recursive_inlining): Take edge argument and
8177 adjust.
8178 (cgraph_decide_inlining_of_small_functions): Do not avoid
8179 diags for recursive inlining here.
8180 (cgraph_flatten): Adjust.
8181 (cgraph_decide_inlining_incrementally): Likewise.
8182 (estimate_function_body_sizes): Remove call cost handling.
8183 (compute_inline_parameters): Initialize caller edge call costs.
8184 (cgraph_estimate_edge_growth): New function.
8185 (cgraph_estimate_growth): Use it.
8186 (cgraph_edge_badness): Likewise.
8187 (cgraph_check_inline_limits): Take an edge argument.
8188 (cgraph_decide_inlining_of_small_functions): Adjust.
8189 (cgraph_decide_inlining): Likewise.
8190 * tree-inline.c (estimate_num_insns): Only account for call
8191 return value if it is used.
8192 (expand_call_inline): Avoid diagnostics on recursive inline
8193 functions here.
8194 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8195 (input_edge): Input edge call costs.
8196
8197 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8198
8199 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8200
8201 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8202
8203 * doc/invoke.texi (Spec Files): Fix typo.
8204
8205 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8206
8207 * profile.c (branch_prob): Move declaration of local variable. Remove
8208 obsolete ??? comment. Expand the location explicitly instead of using
8209 the LOCATION_FILE and LOCATION_LINE macros.
8210
8211 2011-04-06 Wei Guozhi <carrot@google.com>
8212
8213 PR target/47855
8214 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8215 (arm_cond_branch): Likewise.
8216 (arm_cond_branch_reversed): Likewise.
8217 (arm_jump): Likewise.
8218 (push_multi): Likewise.
8219 * config/arm/constraints.md (Py): New constraint.
8220
8221 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8222
8223 PR bootstrap/48471
8224 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8225 Move these...
8226 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8227 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8228 #ifdef DBX_DEBUGGING_INFO.
8229
8230 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8231
8232 PR bootstrap/48403
8233 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8234 if old and new states differ.
8235
8236 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8237
8238 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8239 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8240 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8241 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8242 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8243 mcfv4e): Use Alias.
8244 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8245 ColdFire options to -mcpu= options.
8246
8247 2011-04-05 Jeff Law <law@redhat.com>
8248
8249 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8250 check if BB is a successor of LOOP->header and return
8251 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8252
8253 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8254
8255 * cprop.c (struct reg_use): Remove.
8256 (reg_use_table): Make an array of RTX.
8257 (find_used_regs, constprop_register, local_cprop_pass,
8258 bypass_block): Simplify users of reg_use_table.
8259 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8260 on one of the uses found by find_used_regs.
8261
8262 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8263
8264 PR bootstrap/48469
8265 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8266 declaration.
8267
8268 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8269
8270 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8271 as an rtx.
8272 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8273
8274 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8275
8276 PR middle-end/48441
8277 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8278
8279 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8280
8281 * combine.c: Include obstack.h.
8282 (struct insn_link): Define.
8283 (uid_log_links): Adjust type.
8284 (FOR_EACH_LOG_LINK): New macro.
8285 (insn_link_obstack): Declare.
8286 (alloc_insn_link): Define.
8287 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8288 type of link variables.
8289 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8290 (try_combine, record_promoted_values, distribute_notes): Likewise.
8291 (distribute_links): Likewise. Tweak prototype.
8292 (clear_log_links): Delete.
8293 (adjust_for_new_dest): Call alloc_insn_link.
8294 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8295
8296 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8297
8298 * gcse.c (modify_mem_list): Convert to an array of VECs.
8299 (canon_modify_mem_list, compute_transp): Tweak formatting.
8300 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8301 (load_killed_in_block_p): Likewise.
8302 (record_last_mem_set_info): Likewise.
8303 (clear_modify_mem_tables): Likewise.
8304
8305 2011-04-05 Tom de Vries <tom@codesourcery.com>
8306
8307 PR middle-end/48461
8308 * function.c (emit_use_return_register_into_block): Only define if
8309 HAVE_return.
8310
8311 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8312
8313 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8314
8315 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8316
8317 * config/rx/rx-opts.h: New.
8318 * config/rx/rx.c (rx_cpu_type): Remove.
8319 (rx_handle_option): Don't assert that global structures are in
8320 use. Access variables via opts pointer. Defer most handling of
8321 OPT_mint_register_. Use error_at.
8322 (rx_option_override): Handle deferred OPT_mint_register_ here.
8323 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8324 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8325 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8326 (rx_cpu_types): New Enum and EnumValue entries.
8327 (mint-register=): Use Defer and use Var accordingly.
8328
8329 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8330
8331 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8332 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8333 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8334 Move these...
8335 (debug_free_queue, debug_nesting, symbol_queue_index):
8336 ...and these...
8337 * dbxout.c: ...to here. Make static.
8338
8339 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8340
8341 * gcse.c (modify_pair): Define. Define a VEC of it.
8342 (canon_modify_mem_list): Convert to an array of VECs.
8343 (free_insn_expr_list_list): Delete.
8344 (clear_modify_mem_tables): Call VEC_free instead.
8345 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8346 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8347 (canon_list_insert, compute_transp): Likewise.
8348
8349 2011-04-05 Tom de Vries <tom@codesourcery.com>
8350
8351 PR target/43920
8352 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8353 for size.
8354
8355 2011-04-05 Tom de Vries <tom@codesourcery.com>
8356
8357 PR target/43920
8358 * function.c (emit_use_return_register_into_block): New function.
8359 (thread_prologue_and_epilogue_insns): Use
8360 emit_use_return_register_into_block.
8361
8362 2011-04-05 Tom de Vries <tom@codesourcery.com>
8363
8364 PR target/43920
8365 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8366 insn.
8367
8368 2011-04-05 Tom de Vries <tom@codesourcery.com>
8369
8370 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8371
8372 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8373
8374 * config/arm/arm.md (define_constants for unspec): Replace with
8375 define_c_enum.
8376 (define_constants for unspecv): Replace with define_c_enum.
8377 * config/arm/neon.md (define_constants for unspec): Replace with
8378 define_c_enum.
8379
8380 2011-04-04 Richard Henderson <rth@redhat.com>
8381
8382 PR bootstrap/48400
8383 * dwarf2out.c (output_line_info): Always emit line info from
8384 at least one section.
8385 (dwarf2out_init): Create text_section_line_info here ...
8386 (set_cur_line_info_table): ... not here.
8387
8388 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8389
8390 PR target/48380
8391 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8392 not called.
8393
8394 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8395
8396 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8397
8398 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8399 (expr_equiv_p): Remove.
8400 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8401 (hash_scan_set): Update call to insert_set_in_table.
8402 (dump_hash_table): Dump <dest, src> pair.
8403 (lookup_set): Simplify. Lookup <dest, src> pair.
8404 (compute_transp): Remove, fold heavily simplified code into...
8405 (compute_local_properties): ...here. Expect COMP and TRANSP
8406 unconditionally.
8407 (find_avail_set): Take set directly from struct expr.
8408 (find_bypass-set): Likewise.
8409 (bypass_block): Likewise.
8410 (cprop_insn): Likewise. Remove redundant INSN_P test.
8411
8412 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8413 checks on form of COND from find_implicit_sets to here.
8414 (find_implicit_sets): Cleanup control flow. Split critical edges
8415 if it exposes implicit sets. Allocate/resize implicit_sets as
8416 necessary.
8417 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8418 changed something. Run df_analyze after find_implicit_sets if any
8419 edges were split. Do not allocate implicit_sets here.
8420
8421 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8422 (gcse_obstack): Renamed to cprop_obstack.
8423 (GNEW, GNEWVEC, GNEWVAR): Remove.
8424 (gmalloc): Remove.
8425 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8426 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8427 (gcse_alloc): Likewise, and rename to cprop_alloc.
8428 (alloc_gcse_men, free_gcse_mem): Remove.
8429 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8430 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8431 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8432
8433 * cprop.c (oprs_not_set_p): Remove.
8434 (mark_set, mark_clobber): Remove.
8435 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8436 (reg_not_set_p): New function.
8437 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8438 (cprop_insn): Likewise.
8439 (cprop_jump): Use FOR_EACH_EDGE.
8440
8441 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8442
8443 PR bootstrap/48403
8444 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8445 (rank_for_schedule): Use scheduled_insns vector instead of
8446 last_scheduled_insn.
8447 (ok_for_early_queue_removal): Likewise.
8448 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8449 we have a dbg_cnt.
8450 (choose_ready): Likewise.
8451 (commit_schedule): Use VEC_iterate.
8452 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8453 a dbg_cnt, use it and ensure the first insn is in the ready list.
8454 (haifa_sched_init): Allocate scheduled_insns.
8455 (sched_extend_ready_list): Don't allocate it; reserve space.
8456 (haifa_sched_finish): Free it.
8457
8458 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8459
8460 * optc-gen.awk: Always remove type from Variable entry before
8461 recording in var_seen.
8462
8463 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8464
8465 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8466 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8467 call to tidy_fallthru_edges.
8468
8469 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8470
8471 * doc/options.texi (ToLower): Document.
8472 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8473 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8474 * opts.h (cl_option): Add cl_tolower field.
8475 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8476 arguments with lowercase strings.
8477 * config/rx/rx.opt (mcpu=): Add ToLower.
8478 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8479 argument.
8480
8481 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8482
8483 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8484
8485 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8486
8487 * config/vax/vax.c: Include reload.h.
8488
8489 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8490
8491 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8492 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8493 (sparc_preferred_reload_class): New function.
8494
8495 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8496
8497 PR debug/48401
8498 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8499 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8500
8501 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8502
8503 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8504 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8505
8506 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8507
8508 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8509 (ASM_OUTPUT_ALIGNED_BSS): Define.
8510
8511 2011-04-03 Michael Matz <matz@suse.de>
8512
8513 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8514 and next_slot members.
8515 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8516 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8517 (lto_streamer_cache_append): Declare.
8518 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8519 unsigned index, remove offset parameter, ensure that we append
8520 or update existing entries.
8521 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8522 parameter, update next_slot for append.
8523 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8524 parameter.
8525 (lto_streamer_cache_insert_at): Likewise.
8526 (lto_streamer_cache_append): New function.
8527 (lto_streamer_cache_lookup): Use unsigned index.
8528 (lto_streamer_cache_get): Likewise.
8529 (lto_record_common_node): Don't test tree_node_can_be_shared.
8530 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8531 (lto_streamer_cache_delete): Don't free offsets member.
8532 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8533 (lto_output_string_with_length): Use lto_output_data_stream.
8534 (lto_output_tree_header): Remove ix parameter, don't write it.
8535 (lto_output_builtin_tree): Likewise.
8536 (lto_write_tree): Adjust callers to above, don't track and write
8537 offset, write unsigned index.
8538 (output_unreferenced_globals): Don't emit all global vars.
8539 (write_global_references): Use unsigned indices.
8540 (lto_output_decl_state_refs): Likewise.
8541 (write_symbol): Likewise.
8542 * lto-streamer-in.c (lto_input_chain): Move earlier.
8543 (input_function): Use unsigned index.
8544 (input_alias_pairs): Don't read and then ignore all global vars.
8545 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8546 don't pass it back, use lto_streamer_cache_append.
8547 (lto_register_var_decl_in_symtab): Use unsigned index.
8548 (lto_register_function_decl_in_symtab): Likewise.
8549 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8550 index.
8551 (lto_get_builtin_tree): Don't read index, use
8552 lto_streamer_cache_append.
8553 (lto_read_tree): Adjust call to lto_materialize_tree.
8554
8555 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8556 don't use function calls in arguments to MIN.
8557
8558 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8559 twice.
8560
8561 * gimple.c (gimple_type_leader_entry): Mark deletable.
8562
8563 2011-04-03 Alan Modra <amodra@gmail.com>
8564
8565 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8566
8567 2011-04-03 Michael Matz <matz@suse.de>
8568
8569 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8570 an integer.
8571 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8572
8573 2011-04-03 Michael Matz <matz@suse.de>
8574
8575 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8576 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8577 without function context.
8578 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8579 current_function_decl and cfun.
8580
8581 2011-04-03 Michael Matz <matz@suse.de>
8582
8583 * tree.c (decl_init_priority_insert): Don't create entry for
8584 default priority.
8585 (decl_fini_priority_insert): Ditto.
8586 (fields_compatible_p, find_compatible_field): Remove.
8587 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8588 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8589
8590 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8591
8592 * combine.c (try_combine): Remove useless local variable.
8593
8594 2011-04-03 Richard Guenther <rguenther@suse.de>
8595 Ira Rosen <ira.rosen@linaro.org>
8596
8597 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8598 non-variable offsets and compare the remaining bases of the two
8599 accesses instead of looking for exact same data-ref.
8600
8601 2011-04-02 Kai Tietz <ktietz@redhat.com>
8602
8603 PR target/48416
8604 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8605
8606 * i386.c (ix86_is_msabi_thiscall): New helper function.
8607 (ix86_is_type_thiscall): New helper function.
8608 (ix86_comp_type_attributes): Handle thiscall for method-functions
8609 special.
8610 (init_cumulative_args): Likewise.
8611 (find_drap_reg): Likewise.
8612 (ix86_static_chain): Likewise.
8613 (x86_this_parameter): Likewise.
8614 (x86_output_mi_thunk): Likewise.
8615
8616 2011-04-01 Olivier Hainque <hainque@adacore.com>
8617 Nicolas Setton <setton@adacore.com>
8618 Eric Botcazou <ebotcazou@adacore.com>
8619
8620 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8621 (add_gnat_descriptive_type_attribute): New function.
8622 (gen_array_type_die): Call it.
8623 (gen_enumeration_type_die): Likewise.
8624 (gen_struct_or_union_type_die): Likewise.
8625 (modified_type_die): Likewise.
8626 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8627 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8628 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8629
8630 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8631
8632 PR bootstrap/48148
8633 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8634 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8635
8636 Revert:
8637 2011-03-17 Richard Guenther <rguenther@suse.de>
8638
8639 PR bootstrap/48148
8640 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8641 origin for decls in other ltrans units.
8642 (input_varpool_node): Likewise.
8643
8644 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8645
8646 PR middle-end/48335
8647 * expr.c (expand_assignment): Handle all possibilities
8648 if TO_RTX is CONCAT.
8649 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8650 (store_split_bit_field): If SUBREG_REG (op0) or
8651 op0 itself has smaller mode than word, return it
8652 for offset 0 and const0_rtx for out-of-bounds stores.
8653 If word is const0_rtx, skip it.
8654
8655 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8656
8657 * config/h8300/h8300.c (print_operand_address): Rename to...
8658 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8659 Call h8300_print_operand and h8300_print_operand_address instead of
8660 print_operand and print_operand_address. Declare.
8661 (print_operand): Renake to...
8662 (h8300_print_operand): ...this. Make static. Adjust comments.
8663 Call h8300_print_operand instead of print_operand. Declare.
8664 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8665 (h8300_register_move_cost): Likewise.
8666 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8667 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8668 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8669 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8670 * config/h8300/h8300-protos.h (print_operand): Delete.
8671 (print_operand_address): Delete.
8672
8673 2011-04-01 Richard Henderson <rth@redhat.com>
8674
8675 PR 48400
8676 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8677 in strict mode before dwarf4. Re-order tests to early out
8678 before switching sections.
8679
8680 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8681
8682 * config/h8300/constraints.md: New file.
8683 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8684 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8685 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8686 * config/h8300/predicates.md (bit_operand): Likewise.
8687 (incdec_operand): Use satisfies_constraint_M and
8688 satisfies_constraint_O. Don't use C code block.
8689 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8690 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8691 (compute_mov_length): Use satisfies_constraint_G.
8692 (fix_bit_operand): Use satisfies_constraint_U.
8693 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8694 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8695 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8696 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8697 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8698 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8699 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8700 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8701 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8702 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8703 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8704 (EXTRA_MEMORY_CONSTRAINT): Delete.
8705
8706 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8707 Michael Meissner <meissner@linux.vnet.ibm.com>
8708
8709 PR target/48262
8710 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8711 operands, as per the specifications.
8712
8713 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8714 (vec_extract_evenv4sf): Ditto.
8715 (vec_extract_evenv8hi): Ditto.
8716 (vec_extract_evenv16qi): Ditto.
8717 (vec_extract_oddv4si): Ditto.
8718
8719 2011-03-31 Mark Wielaard <mjw@redhat.com>
8720
8721 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8722 high_pc attribute if the CU has no associated code. Only output
8723 DW_AT_entry_pc for CU if not generating strict dwarf and
8724 dwarf_version < 4.
8725
8726 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8727
8728 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8729 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8730 out of ...
8731 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8732 * final.c (final_start_function): Call the new function rather
8733 than using a NULL argument for dwarf2out_frame_debug.
8734
8735 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8736 that contains the prologue.
8737
8738 * haifa-sched.c (queue_insn): New arg REASON. All callers
8739 changed. Print it in debugging output.
8740
8741 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8742
8743 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8744 Split most of the code into...
8745 (begin_move_insn): ... here. New function.
8746 (ebb_sched_info): Add a pointer to it.
8747 * haifa-sched.c (scheduled_insns): New static variable.
8748 (sched_extend_ready_list): Allocate it.
8749 (schedule_block): Use it to record the order of scheduled insns.
8750 Perform RTL changes to move insns only after all scheduling
8751 decisions have been made.
8752 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8753 begin_move_insn field.
8754 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8755 * sched-int.h (struct haifa_sched_info): Remove second argument
8756 from begin_schedule_ready hook. Add new member begin_move_insn.
8757 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8758 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8759
8760 * haifa-sched.c (prune_ready_list): New function, broken out of
8761 schedule_block.
8762 (schedule_block): Use it.
8763
8764 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8765
8766 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8767
8768 2011-04-01 Kai Tietz <ktietz@redhat.com>
8769
8770 * config.gcc (*-*-mingw*): Allow as option the
8771 posix threading model.
8772 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8773 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8774 definition.
8775 (CPP_SPEC): Add pthread/no-pthread handling.
8776 (LIB_SPEC): Likewise.
8777 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8778 (LIB_SPEC): Likewise.
8779 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8780 flag to pass -pthread option for shared libgcc build.
8781 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8782 for shared libgcc build.
8783 * config/i386/t-mingw-pthread: New file.
8784 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8785 New define to enable use of library pthread by default.
8786 * config/i386/mingw.opt (pthread): New driver option.
8787 (no-pthread): New driver option.
8788 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8789 * config/i386/mingw-w64.opt: Likewise.
8790
8791 2011-04-01 Gary Funck <gary@intrepid.com>
8792
8793 * c-decl.c (grokdeclarator): Fix formatting.
8794
8795 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8796
8797 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8798 instead of n_operands.
8799 (set_storage_via_setmem): Likewise.
8800 * optabs.c (maybe_gen_insn): Likewise.
8801 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8802 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8803 (mips_expand_builtin_direct): Likewise.
8804 * config/spu/spu.c (expand_builtin_args): Likewise.
8805
8806 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8807
8808 * recog.h (insn_data_d): Add n_generator_args.
8809 * genoutput.c (data): Likewise.
8810 (output_insn_data): Print it.
8811 (max_opno, num_dups): Delete.
8812 (scan_operands): Just fill in "d->operand[...]".
8813 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8814
8815 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8816
8817 * gensupport.h (pattern_stats): New structure.
8818 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8819 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8820 (max_operand_1, max_operand_vec): Delete.
8821 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8822
8823 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8824
8825 * emit-rtl.c (emit_pattern_after_setloc): New function.
8826 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8827 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8828 (emit_pattern_after): New function.
8829 (emit_insn_after, emit_jump_insn_after): Call it.
8830 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8831 (emit_pattern_before_setloc): New function.
8832 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8833 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8834 Likewise.
8835 (emit_pattern_before): New function.
8836 (emit_insn_before, emit_jump_insn_before): Call it.
8837 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8838
8839 2011-03-31 Richard Henderson <rth@redhat.com>
8840
8841 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8842 (dw_separate_line_info_entry): Remove.
8843 (enum dw_line_info_opcode): New.
8844 (dw_line_info_entry): Use it.
8845 (dw_line_info_table, dw_line_info_table_p): New.
8846 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8847 (line_info_table, line_info_label_num): Remove.
8848 (line_info_table_in_use): Remove.
8849 (separate_line_info_table): Remove.
8850 (separate_line_info_table_allocated): Remove.
8851 (separate_line_info_table_in_use): Remove.
8852 (LINE_INFO_TABLE_INCREMENT): Remove.
8853 (line_info_label_num): New.
8854 (cur_line_info_table): New.
8855 (text_section_line_info, cold_text_section_line_info): New.
8856 (separate_line_info): New.
8857 (SEPARATE_LINE_CODE_LABEL): Remove.
8858 (print_dwarf_line_table): Remove.
8859 (debug_dwarf): Don't dump it.
8860 (output_one_line_info_table): New.
8861 (output_line_info): Use it.
8862 (new_line_info_table): New.
8863 (set_cur_line_info_table): New.
8864 (dwarf2out_switch_text_section): Use it.
8865 (dwarf2out_begin_function): Likewise.
8866 (push_dw_line_info_entry): New.
8867 (dwarf2out_source_line): Rewrite for new line info tables.
8868 (dwarf2out_init): Remove dead initailizations.
8869
8870 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8871
8872 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8873 various flags.
8874 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8875 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8876 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8877 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8878 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8879 * opt-functions.awk (flag_init, switch_bit_fields): New.
8880 (switch_flags): Don't handle flags moved to bit-fields. Don't
8881 generate CL_MISSING_OK or CL_SAVE.
8882 * optc-gen.awk: Update to generate bit-field output as well as
8883 flags field.
8884 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8885 bit-field instead of CL_REJECT_DRIVER flag.
8886 * opts-common.c (generate_canonical_option,
8887 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8888 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8889 instead of CL_REJECT_NEGATIVE flag.
8890 * toplev.c (print_switch_values): Use cl_report bit-field instead
8891 of CL_REPORT flag.
8892
8893 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8894
8895 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8896 a zero minimum index only if it is redundant.
8897
8898 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8899
8900 PR rtl-optimization/48381
8901 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8902 instead of ira_class_hard_reg_index for calculating conflicting
8903 hard registers.
8904
8905 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8906
8907 * cprop.c: Clean up hash table building.
8908 (reg_avail_info): Remove.
8909 (oprs_available_p): Remove.
8910 (record_last_reg_set_info): Remove.
8911 (record_last_set_info): Remove.
8912 (reg_available_p): New function.
8913 (gcse_constant_p): Do not treat unfolded conditions as constants.
8914 (make_set_regs_unavailable): New function.
8915 (hash_scan_set): Simplify with new reg_available_p.
8916 (compute_hash_table_work): Traverse insns stream only once.
8917 Do not compute reg_avail_info. Traverse insns in reverse order.
8918 Record implicit sets after recording explicit sets from the block.
8919
8920 2011-03-31 Michael Matz <matz@suse.de>
8921
8922 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8923
8924 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8925
8926 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8927 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8928 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8929 (h8300_mode_dependent_address_p): New function.
8930 (h8300_get_index): Make static.
8931
8932 2011-03-31 Jeff Law <law@redhat.com>
8933
8934 * reload1.c (elimination_effects): Fix typo in recent change.
8935
8936 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8937 typo potentially leading to null pointer dereference.
8938
8939 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8940 (setup_save_areas): Corresponding changes to avoid useless
8941 assignments.
8942
8943 * jump.c (reversed_comparison_code_parts): Avoid successive return
8944 statements when REVERSE_CONDITION is defined.
8945
8946 * expr.c (expand_assignment): Avoid useless assignments.
8947 (expand_expr_real_1): Likewise.
8948 (expand_expr_real_2): Avoid useless statements.
8949
8950 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8951
8952 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8953
8954 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8955 statements.
8956
8957 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8958
8959 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8960
8961 PR target/47109
8962 * doc/tm.texi.in (TARGET_VERSION): Remove.
8963 * doc/tm.texi: Regenerate.
8964 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8965 * collect2.c (main): Don't use TARGET_VERSION.
8966 * mips-tdump.c (main): Don't use TARGET_VERSION.
8967 * mips-tfile.c (main): Don't use TARGET_VERSION.
8968 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8969 * config/rs6000/vxworksae.h: Remove.
8970 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8971 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8972 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8973 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8974 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8975 * config/arm/arm.h (TARGET_VERSION): Remove.
8976 * config/arm/coff.h (TARGET_VERSION): Remove.
8977 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8978 * config/arm/elf.h (TARGET_VERSION): Remove.
8979 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8980 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8981 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8982 * config/arm/pe.h (TARGET_VERSION): Remove.
8983 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8984 * config/arm/semi.h (TARGET_VERSION): Remove.
8985 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8986 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8987 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8988 * config/avr/avr.h (TARGET_VERSION): Remove.
8989 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8990 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8991 * config/frv/frv.h (TARGET_VERSION): Remove.
8992 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8993 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8994 * config/i386/darwin.h (TARGET_VERSION): Remove.
8995 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8996 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8997 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8998 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8999 * config/i386/gnu.h (TARGET_VERSION): Remove.
9000 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9001 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9002 * config/i386/linux.h (TARGET_VERSION): Remove.
9003 * config/i386/linux64.h (TARGET_VERSION): Remove.
9004 * config/i386/lynx.h (TARGET_VERSION): Remove.
9005 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9006 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9007 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9008 * config/i386/netware.h (TARGET_VERSION): Remove.
9009 * config/i386/nto.h (TARGET_VERSION): Remove.
9010 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9011 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9012 * config/ia64/elf.h (TARGET_VERSION): Remove.
9013 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9014 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9015 * config/ia64/linux.h (TARGET_VERSION): Remove.
9016 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9017 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9018 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9019 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9020 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9021 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9022 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9023 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9024 * config/m68k/linux.h (TARGET_VERSION): Remove.
9025 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9026 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9027 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9028 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9029 * config/mep/mep.h (TARGET_VERSION): Remove.
9030 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9031 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9032 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9033 * config/mips/linux.h (TARGET_VERSION): Remove.
9034 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9035 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9036 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9037 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9038 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9039 * config/pa/pa.h (TARGET_VERSION): Remove.
9040 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9041 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9042 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9043 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9044 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9045 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9046 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9047 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9048 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9049 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9050 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9051 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9052 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9053 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9054 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9055 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9056 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9057 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9058 * config/s390/linux.h (TARGET_VERSION): Remove.
9059 * config/s390/s390.h (TARGET_VERSION): Remove.
9060 * config/s390/tpf.h (TARGET_VERSION): Remove.
9061 * config/score/score.h (TARGET_VERSION): Remove.
9062 * config/sh/linux.h (TARGET_VERSION): Remove.
9063 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9064 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9065 * config/sh/sh.h (TARGET_VERSION): Remove.
9066 * config/sh/sh64.h (TARGET_VERSION): Remove.
9067 * config/sh/superh.h (TARGET_VERSION): Remove.
9068 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9069 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9070 * config/sparc/linux.h (TARGET_VERSION): Remove.
9071 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9072 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9073 TARGET_NAME32, TARGET_NAME): Remove.
9074 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9075 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9076 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9077 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9078 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9079 * config/spu/spu.h (TARGET_VERSION): Remove.
9080 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9081 * config/v850/v850.h (TARGET_VERSION): Remove.
9082 * config/vax/linux.h (TARGET_VERSION): Remove.
9083 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9084 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9085 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9086
9087 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9088
9089 PR target/48142
9090 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9091 frame-related from frame-unrelated adjustments to the stack pointer.
9092
9093 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9094
9095 * common.opt (fdebug-types-section): Move earlier.
9096 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9097
9098 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9099
9100 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9101 var.
9102
9103 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9104
9105 * tree.h (CASE_CHAIN): Define.
9106 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9107 (gimple_redirect_edge_and_branch): Likewise.
9108
9109 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9110
9111 PR middle-end/48367
9112 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9113 calculation.
9114
9115 2011-03-30 Jeff Law <law@redhat.com>
9116
9117 * PR bootstrap/48371
9118 * reload1.c (reload): Fix botch in last change.
9119
9120 * reload.h (struct reload): Fix typo introduced in last change.
9121
9122 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9123
9124 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9125 Undocumented. Remove help text.
9126 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9127 -mhard-float.
9128
9129 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9130
9131 * doc/options.texi (NegativeAlias): Document.
9132 (Alias): Mention NegativeAlias.
9133 * opt-functions.awk: Handle NegativeAlias.
9134 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9135 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9136 * opts.h (CL_NEGATIVE_ALIAS): Define.
9137 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9138 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9139 OPT_mspe_.
9140 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9141 Alias entries.
9142 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9143 mno-spe and mno-isel instead of mspe=no and -misel=no.
9144
9145 2011-03-29 Mark Wielaard <mjw@redhat.com>
9146
9147 * common.opt (fdebug-types-section): New flag.
9148 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9149 * dwarf2out.c (use_debug_types): New define.
9150 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9151 (print_die): Guard output of type unit signatures using
9152 use_debug_types.
9153 (build_abbrev_table): Replace assert of dwarf_version >= 4
9154 with assert on use_debug_types.
9155 (size_of_die): Likewise.
9156 (unmark_dies): Likewise.
9157 (value_format): Decide AT_ref_external form on use_debug_types.
9158 (output_die): Replace dwarf_version version check guard with
9159 use_debug_types where appropriate.
9160 (modified_type_die): Likewise.
9161 (gen_reference_type_die): Likewise.
9162 (dwarf2out_start_source_file): Likewise.
9163 (dwarf2out_end_source_file): Likewise.
9164 (prune_unused_types_walk_attribs): Likewise.
9165 (dwarf2out_finish): Likewise.
9166
9167 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9168
9169 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9170
9171 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9172
9173 PR rtl-optimization/48332
9174 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9175 mode of input operand N and modeN to its actual mode.
9176
9177 2011-03-30 Jeff Law <law@redhat.com>
9178
9179 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9180 define accessor macro.
9181 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9182 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9183 (reg_equiv_init): Likewise.
9184 (reg_equivs_size): New variable.
9185 (reg_equiv_init_size): Remove.
9186 (allocate_initial_values): Move prototype to here from....
9187 * integrate.h (allocate_initial_values): Remove prototype.
9188 * integrate.c: Include reload.h.
9189 (allocate_initial_values): Corresponding changes.
9190 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9191 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9192 (update_equiv_regs): Corresponding changes.
9193 (ira): Corresponding changes.
9194 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9195 (push_secondary_reload): Corresponding changes.
9196 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9197 (make_memloc, find_reloads_address): Corresponding changes.
9198 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9199 (find_reloads_address_1): Corresponding changes.
9200 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9201 (refers_to_regno_for_reload_p): Corresponding changes.
9202 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9203 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9204 * reload1.c: Include ggc.h.
9205 (grow_reg_equivs): New function.
9206 (replace_pseudos_in, reload): Corresponding changes.
9207 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9208 (eliminate_regs_1, elimination_effects): Corresponding changes.
9209 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9210 (delete_output_reload): Likewise.
9211 * caller-save.c (mark_referenced_regs): Corresponding changes.
9212 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9213 * frv/predicates.md (frv_load_operand): Corresponding changes.
9214 * microblaze/microblaze.c (double_memory_operand): Corresponding
9215 changes.
9216 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9217 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9218 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9219 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9220 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9221 changes.
9222 * pa/pa.c (emit_move_sequence): Corresponding changes.
9223 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9224
9225 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9226
9227 PR target/47551
9228 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9229 structure modes. Don't check neon_vector_mem_operand for
9230 vector or structure modes.
9231
9232 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9233 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9234
9235 PR target/43590
9236 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9237 operand 1 and reshuffle the operands to match.
9238 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9239
9240 2011-03-30 Christian Schüler <cschueler@gmx.de>
9241
9242 PR driver/48208
9243 * config/c.opt (F): Added 'Driver' to -F option.
9244
9245 PR driver/48260
9246 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9247 handler function.
9248 * config/darwin.opt: Added '-arch' option.
9249
9250 2011-03-30 Nick Clifton <nickc@redhat.com>
9251
9252 * config/rx/rx.md: Add peepholes and patterns to combine
9253 extending loads and simple arithmetic instructions.
9254 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9255 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9256 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9257 modes to use pre-decrement and post-increment addressing.
9258 (rx_is_restricted_memory_address): Add range checking of REG+INT
9259 addresses.
9260 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9261 (rx_memory_move_cost): Adjust cost of stores.
9262 (rx_adjust_insn_length): New function.
9263
9264 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9265
9266 PR c/48305
9267 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9268 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9269 matching arg00/arg01 types.
9270
9271 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9272
9273 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9274 last_location to UNKNOWN_LOCATION.
9275
9276 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9277
9278 PR target/48349
9279 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9280 FLOAT_SSE_REGS.
9281
9282 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9283 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9284
9285 PR bootstrap/48337
9286 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9287 Init(PROCESSOR_V7).
9288 (sparc_cpu): Likewise.
9289 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9290 PROCESSOR_V7.
9291
9292 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9293
9294 PR target/48336
9295 PR middle-end/48342
9296 PR rtl-optimization/48345
9297 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9298 hard regs for given mode from profitable regs when doing secondary
9299 allocation.
9300
9301 2011-03-29 Jeff Law <law@redhat.com>
9302
9303 PR bootstrap/48327
9304 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9305 do_not_duplicate field.
9306 (lookup_redirection_data): Corresponding changes.
9307 (create_duplicates): Always create a template block.
9308 (redirect_edges): Remove code which reused the original block
9309 when it was going to become unreachable code.
9310 (thread_block): Don't set do_not_duplicate field.
9311
9312 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9313
9314 * lto-opts.c (register_user_option_p, lto_register_user_option):
9315 Make type argument unsigned.
9316 * lto-streamer.h (lto_register_user_option): Make type argument
9317 unsigned.
9318 * opth-gen.awk: Make CL_* macros unsigned.
9319 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9320 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9321 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9322 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9323 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9324 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9325 (find_opt): Make lang_mask argument unsigned.
9326
9327 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9328
9329 PR rtl-optimization/48331
9330 PR rtl-optimization/48334
9331 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9332 for any used algorithm.
9333
9334 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9335
9336 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9337 to parent_max.
9338
9339 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9340
9341 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9342 (alpha_option_override): Don't set alpha_sr_alias_set.
9343 (emit_frame_store_1): Use gen_frame_mem rather than calling
9344 set_mem_alias_set.
9345 (alpha_expand_epilogue): Ditto.
9346
9347 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9348
9349 PR tree-optimization/48290
9350 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9351 vectorization, check that relevant phis in the basic block after
9352 the inner loop are really inner loop's exit phis.
9353
9354 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9355
9356 PR debug/48190
9357 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9358 (cached_dw_loc_list_def): New structure.
9359 (cached_dw_loc_list): New typedef.
9360 (cached_dw_loc_list_table): New variable.
9361 (cached_dw_loc_list_table_hash): New function.
9362 (cached_dw_loc_list_table_eq): Likewise.
9363 (add_location_or_const_value_attribute): Take a bool cache_p.
9364 Cache the list when the parameter is true.
9365 (gen_formal_parameter_die): Update caller.
9366 (gen_variable_die): Likewise.
9367 (dwarf2out_finish): Likewise.
9368 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9369 while generating debug info for the decl.
9370 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9371 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9372 (resolve_addr): Cache the result of resolving a chain of
9373 location lists.
9374
9375 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9376
9377 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9378 conflict object hard regset nodes have intersecting hard reg sets.
9379
9380 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9381 after regstat_init_n_sets_and_refs.
9382
9383 * ira.c: Add more comments at the top.
9384 (setup_stack_reg_pressure_class, setup_pressure_classes):
9385 Add comments how we compute the register pressure classes.
9386 (setup_allocno_and_important_classes): Add more comments.
9387 (setup_class_translate_array, reorder_important_classes)
9388 (setup_reg_class_relations): Add comments.
9389
9390 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9391 start of the file.
9392
9393 * ira-color.c: Add 2011 to the Copyright line.
9394 (assign_hard_reg): Add more comments.
9395 (improve_allocation): Ditto.
9396
9397 * ira-costs.c: Add 2011 to the Copyright line.
9398 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9399 comments.
9400 (setup_regno_cost_classes_by_mode): Ditto.
9401
9402 Initial patches from ira-improv branch:
9403
9404 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9405
9406 * ira-build.c (ira_create_object): Remove initialization of
9407 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9408 (ira_create_allocno): Remove initialization of
9409 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9410 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9411 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9412 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9413 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9414 Initialize ALLOCNO_ADD_DATA.
9415 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9416 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9417 ALLOCNO_REG.
9418 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9419 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9420
9421 * ira.c (ira_reallocate): Remove.
9422 (setup_pressure_classes): Call
9423 ira_init_register_move_cost_if_necessary. Use
9424 ira_register_move_cost instead of ira_get_register_move_cost.
9425 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9426 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9427
9428 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9429 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9430 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9431 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9432 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9433 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9434 Fix formatting.
9435 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9436 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9437 (struct allocno_color_data): New.
9438 (allocno_color_data_t): New typedef.
9439 (allocno_color_data): New definition.
9440 (ALLOCNO_COLOR_DATA): New macro.
9441 (struct object_color_data): New.
9442 (object_color_data_t): New typedef.
9443 (object_color_data): New definition.
9444 (OBJECT_COLOR_DATA): New macro.
9445 (update_copy_costs, calculate_allocno_spill_cost): Call
9446 ira_init_register_move_cost_if_necessary. Use
9447 ira_register_move_cost instead of ira_get_register_move_cost.
9448 (move_spill_restore, update_curr_costs): Ditto.
9449 (allocno_spill_priority): Make it inline.
9450 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9451 (struct coalesce_data, coalesce_data_t): New.
9452 (allocno_coalesce_data): New definition.
9453 (ALLOCNO_COALESCE_DATA): New macro.
9454 (merge_allocnos, coalesced_allocno_conflict_p): Use
9455 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9456 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9457 (coalesce_allocnos): Ditto.
9458 (setup_coalesced_allocno_costs_and_nums): Ditto.
9459 (collect_spilled_coalesced_allocnos): Ditto.
9460 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9461 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9462 (coalesce_spill_slots): Ditto.
9463 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9464 free allocno_coalesce_data.
9465
9466 * ira-conflicts.c: Fix formatting.
9467 (process_regs_for_copy): Call
9468 ira_init_register_move_cost_if_necessary. Use
9469 ira_register_move_cost instead of ira_get_register_move_cost.
9470 (build_object_conflicts): Optimize.
9471
9472 * ira-costs.c (record_reg_classes): Optimize. Call
9473 ira_init_register_move_cost_if_necessary. Use
9474 ira_register_move_cost, ira_may_move_in_cost, and
9475 ira_may_move_out_cost instead of ira_get_register_move_cost and
9476 ira_get_may_move_cost.
9477 (record_address_regs): Ditto.
9478 (scan_one_insn): Optimize.
9479 (find_costs_and_classes): Optimize.
9480 (process_bb_node_for_hard_reg_moves): Call
9481 ira_init_register_move_cost_if_necessary. Use
9482 ira_register_move_cost instead of ira_get_register_move_cost.
9483
9484 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9485 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9486 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9487 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9488 definitions.
9489 (ira_initiate_emit_data, ira_finish_emit_data)
9490 (create_new_allocno): New functions.
9491 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9492 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9493 Use ira_register_move_cost instead of ira_get_register_move_cost.
9494
9495 * ira-int.h: Fix some comments.
9496 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9497 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9498 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9499 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9500 add_data.
9501 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9502 bitfield after mode. Make hard_regno a short int. Make
9503 hard_regno short. Remove first_coalesced_allocno and
9504 next_coalesced_allocno. Move mem_optimized_dest_p,
9505 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9506 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9507 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9508 temp, colorable_p. Add new member add_data.
9509 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9510 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9511 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9512 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9513 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9514 (ALLOCNO_ADD_DATA): New macro.
9515 (ira_emit_data_t): New typedef.
9516 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9517 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9518 from struct ira_allocno.
9519 (ALLOCNO_EMIT_DATA): New macro.
9520 (ira_allocno_emit_data, allocno_emit_reg): New.
9521 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9522 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9523 (OBJECT_ADD_DATA): New macro.
9524 (ira_reallocate): Remove.
9525 (ira_initiate_emit_data, ira_finish_emit_data): New.
9526 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9527 (ira_init_register_move_cost_if_necessary): New.
9528 (ira_object_conflict_iter_next): Merge into
9529 ira_object_conflict_iter_cond.
9530 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9531
9532 * ira-live.c (process_single_reg_class_operands): Call
9533 ira_init_register_move_cost_if_necessary. Use
9534 ira_register_move_cost instead of ira_get_register_move_cost.
9535
9536 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9537
9538 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9539
9540 * ira-costs.c: Fix formatting.
9541 (cost_classes, cost_classes_num): Remove.
9542 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9543 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9544 (cost_classes_del, cost_classes_htab): New.
9545 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9546 (initiate_regno_cost_classes, setup_cost_classes): New.
9547 (setup_regno_cost_classes_by_aclass): New.
9548 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9549 (record_reg_classes): Use regno_cost_classes instead of
9550 cost_classes. Move checking opposite operand up.
9551 (record_address_regs): Use regno_cost_classes
9552 instead of cost_classes.
9553 (scan_one_insn): Ditto. Use always general register.
9554 (print_allocno_costs): Use regno_cost_classes instead of
9555 cost_classes.
9556 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9557 (find_costs_and_classes): Set up cost classes for each registers.
9558 Use also their mode for this. Use regno_cost_classes instead of
9559 cost_classes.
9560 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9561 cost_classes.
9562 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9563 (ira_costs, ira_set_pseudo_classes): Call
9564 initiate_regno_cost_classes and finish_regno_cost_classes.
9565
9566 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9567
9568 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9569
9570 * target.def (ira_cover_classes): Remove.
9571
9572 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9573
9574 * doc/tm.texi.in: Ditto.
9575
9576 * ira-conflicts.c: Remove mentioning cover classes from the file.
9577 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9578 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9579
9580 * targhooks.c (default_ira_cover_classes): Remove.
9581
9582 * targhooks.h (default_ira_cover_classes): Ditto.
9583
9584 * haifa-sched.c: Remove mentioning cover classes from the file.
9585 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9586 ira_pressure_classes and ira_pressure_classes_num instead of
9587 ira_reg_class_cover_size and ira_reg_class_cover. Use
9588 sched_regno_pressure_class instead of sched_regno_cover_class.
9589 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9590 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9591
9592 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9593 classes from the file.
9594 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9595 (struct object_hard_regs, struct object_hard_regs_node): New.
9596 (struct ira_object): New members profitable_hard_regs,
9597 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9598 (struct ira_allocno): Rename cover_class to aclass. Rename
9599 cover_class_cost and updated_cover_class_cost to class_cost and
9600 updated_class_cost. Remove splay_removed_p and
9601 left_conflict_size. Add new members colorable_p.
9602 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9603 (ALLOCNO_COLORABLE_P): New macro.
9604 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9605 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9606 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9607 (OBJECT_...): Rename parameter C to O.
9608 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9609 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9610 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9611 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9612 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9613 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9614 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9615 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9616 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9617 x_ira_reg_class_subunion.
9618 (ira_max_memory_move_cost, ira_max_register_move_cost)
9619 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9620 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9621 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9622 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9623 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9624 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9625 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9626 (ira_tune_allocno_costs_and_cover_classes): Rename to
9627 ira_tune_allocno_costs.
9628 (ira_debug_hard_regs_forest): New.
9629 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9630 (ira_object_conflict_iter_next): Fix comments.
9631 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9632 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9633 cover_class to aclass.
9634 (ira_allocate_and_accumulate_costs): Ditto.
9635 (ira_allocate_and_set_or_copy_costs): Ditto.
9636
9637 * opts.c (decode_options): Remove ira_cover_class check.
9638
9639 * ira-color.c: Remove mentioning cover classes from the file. Use
9640 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9641 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9642 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9643 (splay-tree.h): Remove include.
9644 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9645 before copy_freq_compare_func.
9646 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9647 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9648 New definitions.
9649 (hard_regs_roots, hard_regs_node_vec): Ditto.
9650 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9651 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9652 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9653 (create_new_object_hard_regs_node): Ditto.
9654 (add_new_object_hard_regs_node_to_forest): Ditto.
9655 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9656 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9657 Ditto.
9658 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9659 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9660 (remove_unused_object_hard_regs_nodes): Ditto.
9661 (enumerate_object_hard_regs_nodes): Ditto.
9662 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9663 (object_hard_regs_subnode_t): Ditto.
9664 (struct object_hard_regs_subnode): Ditto.
9665 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9666 (setup_object_hard_regs_subnode_index): Ditto.
9667 (get_object_hard_regs_subnodes_num): Ditto.
9668 (form_object_hard_regs_nodes_forest): Ditto.
9669 (finish_object_hard_regs_nodes_tree): Ditto.
9670 (finish_object_hard_regs_nodes_forest): Ditto.
9671 (allocnos_have_intersected_live_ranges_p): Rename to
9672 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9673 (pseudos_have_intersected_live_ranges_p): Rename to
9674 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9675 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9676 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9677 (update_copy_costs): Remove assert. Skip cost update if the hard
9678 reg does not belong the class.
9679 (assign_hard_reg): Process only profitable hard regs.
9680 (uncolorable_allocnos_num): Make it scalar.
9681 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9682 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9683 and ira_reg_class_max_nregs.
9684 (bucket_allocno_compare_func): Check frequency first.
9685 (sort_bucket): Add compare function as a parameter.
9686 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9687 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9688 (push_allocno_to_stack): Rewrite for checking new allocno
9689 colorability.
9690 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9691 (push_only_colorable): Pass new parameter to sort_bucket.
9692 (push_allocno_to_spill): Remove.
9693 (allocno_spill_priority_compare): Make it inline and rewrite.
9694 (splay_tree_allocate, splay_tree_free): Remove.
9695 (allocno_spill_sort_compare): New function.
9696 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9697 build and use splay tree. Choose first allocno in uncolorable
9698 allocno bucket to spill. Remove setting spill cost.
9699 (all_conflicting_hard_regs): Remove.
9700 (setup_allocno_available_regs_num): Check only profitable hard
9701 regs. Print info about hard regs nodes.
9702 (setup_allocno_left_conflicts_size): Remove.
9703 (put_allocno_into_bucket): Don't call
9704 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9705 (improve_allocation): New.
9706 (color_allocnos): Call setup_profitable_hard_regs,
9707 form_object_hard_regs_nodes_forest, improve_allocation,
9708 finish_object_hard_regs_nodes_forest. Setup spill cost.
9709 (print_loop_title): Use pressure classes.
9710 (color_allocnso): Ditto.
9711 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9712 and allocnos_for_spilling.
9713 (ira_sort_regnos_for_alter_reg): Don't setup members
9714 {first,next}_coalesced_allocno.
9715 (color): Remove allocating and freeing removed_splay_allocno_vec.
9716 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9717 prohibited_class_mode_regs.
9718
9719 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9720 formatting.
9721 (update_allocno_pressure_excess_length): Use pressure classes.
9722 (inc_register_pressure, dec_register_pressure): Check for pressure
9723 class.
9724 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9725 pressure class. Use ira_reg_class_nregs instead of
9726 ira_reg_class_max_nregs.
9727 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9728 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9729 (single_reg_class): Use ira_reg_class_nregs instead of
9730 ira_reg_class_max_nregs.
9731 (process_bb_node_lives): Use pressure classes.
9732
9733 * ira-emit.c: Remove mentioning cover classes from the file. Use
9734 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9735 (change_loop): Use pressure classes.
9736 (modify_move_list): Call ira_set_allocno_class instead of
9737 ira_set_allocno_cover_class.
9738
9739 * ira-build.c: Remove mentioning cover classes from the file. Use
9740 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9741 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9742 ALLOCNO_UPDATED_CLASS_COST instead of
9743 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9744 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9745 (ira_create_allocno): Remove initialization of
9746 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9747 ALLOCNO_COLORABLE_P.
9748 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9749 Update conflict regs for the objects.
9750 (create_cap_allocno): Remove assert. Don't propagate
9751 ALLOCNO_AVAILABLE_REGS_NUM.
9752 (ira_free_allocno_costs): New function.
9753 (finish_allocno): Change a part of code into call of
9754 ira_free_allocno_costs.
9755 (low_pressure_loop_node_p): Use pressure classes.
9756 (object_range_compare_func): Don't compare classes.
9757 (setup_min_max_conflict_allocno_ids): Ditto.
9758
9759 * loop-invariant.c: Remove mentioning cover classes from the file.
9760 Use ira_pressure_classes and ira_pressure_classes_num instead of
9761 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9762 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9763 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9764 Use reg_allocno_class instead of reg_cover_class.
9765 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9766 STACK_REG_COVER_CLASS.
9767 (get_regno_cover_class): Rename to get_regno_pressure_class.
9768 (move_loop_invariants): Initialize and finalize regstat.
9769
9770 * ira.c: Remove mentioning cover classes from the file. Add
9771 comments about coloring without cover classes. Use ALLOCNO_CLASS
9772 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9773 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9774 setup_class_subset_and_memory_move_costs.
9775 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9776 (setup_cover_and_important_classes): Rename to
9777 setup_allocno_and_important_classes.
9778 (setup_class_translate_array): New.
9779 (setup_class_translate): Call it for allocno and pressure classes.
9780 (cover_class_order): Rename to allocno_class_order.
9781 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9782 of ira_class_translate.
9783 (reorder_important_classes): Set up ira_important_class_nums.
9784 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9785 (print_class_cover): Rename to print_classes. Add parameter.
9786 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9787 Print pressure classes too.
9788 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9789 setup_reg_subclasses.
9790 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9791 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9792 (setup_prohibited_class_mode_regs): Use
9793 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9794 (clarify_prohibited_class_mode_regs): New function.
9795 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9796 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9797 (ira_init_once): Initialize them.
9798 (free_register_move_costs): Process them.
9799 (ira_init): Move calls of find_reg_classes and
9800 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9801 Call clarify_prohibited_class_mode_regs.
9802 (ira_no_alloc_reg): Remove.
9803 (too_high_register_pressure_p): Use pressure classes.
9804
9805 * sched-deps.c: Remove mentioning cover classes from the file.
9806 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9807 ira_pressure_classes and ira_pressure_classes_num instead of
9808 ira_reg_class_cover_size and ira_reg_class_cover.
9809 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9810 sched_regno_pressure_class instead of sched_regno_cover_class.
9811 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9812 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9813
9814 * ira.h: Add 2010 to Copyright.
9815 (ira_no_alloc_reg): Remove external.
9816 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9817 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9818 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9819 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9820 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9821 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9822 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9823 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9824 x_ira_no_alloc_regs.
9825 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9826 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9827 ira_allocno_classes_num and ira_allocno_classes.
9828 (ira_class_translate): Rename to ira_allocno_class_translate.
9829 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9830 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9831 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9832 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9833 (ira_no_alloc_regs): New.
9834
9835 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9836 classes from the file. Use ALLOCNO_CLASS instead of
9837 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9838 ALLOCNO_COVER_CLASS_COST.
9839 (regno_cover_class): Rename to regno_aclass.
9840 (record_reg_classes): Use ira_reg_class_subunion instead of
9841 ira_reg_class_union.
9842 (record_address_regs): Check overflow.
9843 (scan_one_insn): Ditto.
9844 (print_allocno_costs): Print total mem cost fore regional allocation.
9845 (print_pseudo_costs): Use REG_N_REFS.
9846 (find_costs_and_classes): Use classes intersected with them on the
9847 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9848 ira_reg_class_union. Use ira_allocno_class_translate and
9849 regno_aclass instead of ira_class_translate and regno_cover_class.
9850 Modify code for finding regno_aclass. Setup preferred classes for
9851 the next pass.
9852 (setup_allocno_cover_class_and_costs): Rename to
9853 setup_allocno_class_and_costs. Use regno_aclass instead of
9854 regno_cover_class. Use ira_set_allocno_class instead of
9855 ira_set_allocno_cover_class.
9856 (init_costs, finish_costs): Use regno_aclass instead of
9857 regno_cover_class.
9858 (ira_costs): Use setup_allocno_class_and_costs instead of
9859 setup_allocno_cover_class_and_costs.
9860 (ira_tune_allocno_costs_and_cover_classes): Rename to
9861 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9862 by processing objects. Use ira_reg_class_max_nregs instead of
9863 ira_reg_class_nregs.
9864
9865 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9866
9867 * sched-int.h: Remove mentioning cover classes from the file.
9868 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9869
9870 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9871 classes from the file.
9872 (struct reg_pref): Rename coverclass into allocnoclass.
9873 (reg_cover_class): Rename to reg_allocno_class.
9874
9875 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9876
9877 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9878
9879 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9880
9881 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9882
9883 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9884
9885 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9886
9887 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9888
9889 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9890
9891 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9892
9893 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9894
9895 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9896 (i386_ira_cover_classes): Ditto.
9897
9898 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9899
9900 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9901
9902 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9903
9904 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9905
9906 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9907
9908 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9909
9910 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9911 (mips_ira_cover_classes): Ditto.
9912
9913 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9914
9915 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9916
9917 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9918
9919 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9920
9921 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9922
9923 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9924 (IRA_COVER_CLASSES_VSX): Ditto.
9925
9926 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9927 (rs6000_ira_cover_classes): Ditto.
9928
9929 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9930
9931 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9932
9933 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9934
9935 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9936
9937 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9938
9939 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9940
9941 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9942
9943 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9944
9945 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9946
9947 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9948
9949 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9950
9951 PR debug/48253
9952 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9953 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9954 dw_fde_unlikely_section_end_label, cold_in_std_section,
9955 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9956 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9957 fields.
9958 (output_fde): Use dw_fde_second_{begin,end} if second is
9959 true, otherwise dw_fde_{begin,end}.
9960 (output_call_frame_info): Test dw_fde_second_begin != NULL
9961 instead of dw_fde_switched_sections.
9962 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9963 fields, initialize new fields. Initialize in_std_section
9964 unconditionally from the first partition.
9965 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9966 dw_fde_second_begin is non-NULL.
9967 (dwarf2out_switch_text_section): Stop initializing removed
9968 dw_fde_struct fields, initialize new fields, initialize
9969 also dw_fde_end here. Set dw_fde_switch_cfi even when
9970 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9971 (struct var_loc_list_def): Add last_before_switch field.
9972 (arange_table, arange_table_allocated, arange_table_in_use,
9973 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9974 (size_of_aranges): Count !in_std_section and !second_in_std_section
9975 hunks in fdes, instead of looking at arange_table_in_use.
9976 (output_aranges): Add aranges_length argument, don't call
9977 size_of_aranges here. Instead of using aranges_table*
9978 emit ranges for fdes when !in_std_section resp.
9979 !second_in_std_section.
9980 (dw_loc_list): Break ranges crossing section switch.
9981 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9982 use dw_fde_second_end instead of dw_fde_end as end of last range.
9983 (gen_subprogram_die): Don't call add_arange. Use
9984 dw_fde_{begin,end} for first partition and if switched
9985 section dw_fde_second_{begin,end} for the second.
9986 (var_location_switch_text_section_1,
9987 var_location_switch_text_section): New functions.
9988 (dwarf2out_begin_function): Initialize cold_text_section even
9989 when function_section () isn't text_section.
9990 (prune_unused_types): Don't walk arange_table.
9991 (dwarf2out_finish): Don't needlessly test
9992 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9993 If info_section_emitted, call size_of_aranges and if it indicates
9994 non-empty .debug_aranges, call output_aranges with the computed
9995 size. Stop using removed dw_fde_struct fields, use
9996 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9997 for second.
9998
9999 PR debug/48203
10000 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10001 create ENTRY_VALUE if incoming or address of incoming's MEM
10002 is a hard REG.
10003 * dwarf2out.c (mem_loc_descriptor): Don't emit
10004 DW_OP_GNU_entry_value of DW_OP_fbreg.
10005 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10006 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10007 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10008 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10009 ENTRY_VALUE_EXPs.
10010 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10011 is a REG_P or MEM_P with REG_P address, compute hash directly
10012 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10013 (preserve_only_constants): Don't clear VALUES forwaring
10014 ENTRY_VALUE to some other VALUE.
10015
10016 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10017
10018 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10019 instead of GEN_INT.
10020
10021 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10022
10023 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10024 block before expanding the statement.
10025 (expand_gimple_stmt_1): Likewise. Set them here...
10026 (expand_gimple_stmt): ...and not here. Tidy.
10027 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10028 unknown.
10029
10030 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10031
10032 * Makefile.in: New rule for cprop.o.
10033 * gcse.c: Move constant/copy propagation to cprop.c.
10034 (compute_local_properties): Only handle expression tables.
10035 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10036 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10037 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10038 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10039 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10040 compute_cprop_data, find_used_regs, try_replace_reg,
10041 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10042 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10043 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10044 find_bypass_set, reg_killed_on_edge, bypass_block,
10045 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10046 execute_rtl_cprop, pass_rtl_cprop): Move to...
10047 * cprop.c: ...here. New file, constant/copy propagation for RTL
10048 moved from gcse.c to here with minor cleanups in duplicated code.
10049
10050 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10051
10052 * config/i386/i386.c (flag_opts): Fix a typo in
10053 -mavx256-split-unaligned-store.
10054
10055 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10056
10057 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10058 LIBCALL_VALUE): Remove macros.
10059 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10060 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10061 (h8300_function_value, h8300_libcall_value,
10062 h8300_function_value_regno_p): New functions.
10063
10064 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10065
10066 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10067
10068 2011-03-28 Jeff Law <law@redhat.com>
10069
10070 * tree-ssa-threadupdate.c (redirect_edges): Call
10071 create_edge_and_update_destination_phis as needed.
10072 (create_edge_and_update_destination_phis): Accept new BB argument.
10073 All callers updated.
10074 (thread_block): Do not update the profile when threading around
10075 intermediate blocks.
10076 (thread_single_edge): Likewise.
10077 (determine_bb_domination_status): If BB is not a successor of the
10078 loop header, return NONDOMINATING.
10079 (register_jump_thread): Note when we register a jump thread around
10080 an intermediate block.
10081 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10082 (thread_across_edge): Use it.
10083
10084 2011-03-28 Tristan Gingold <gingold@adacore.com>
10085
10086 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10087 when for_return is 2.
10088
10089 2011-03-28 Jeff Law <law@redhat.com>
10090
10091 * var-tracking.c (canonicalize_values_mark): Delete unused
10092 lhs assignment.
10093 (canonicalize_values_star, set_variable_part): Likewise.
10094 (clobber_variable_part, delete_variable_part): Likewise.
10095
10096 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10097
10098 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10099
10100 2011-03-28 Martin Jambor <mjambor@suse.cz>
10101
10102 * tree-inline.c (expand_call_inline): Do not check that destination
10103 node is analyzed.
10104 (optimize_inline_calls): Assert that destination node is analyzed.
10105 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10106 not call tree_lowering_passes.
10107 * cgraph.h (cgraph_analyze_function): Declare.
10108 * cgraphunit.c (cgraph_analyze_function): Make public.
10109
10110 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10111
10112 * config/sparc/sparc-opts.h: New.
10113 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10114 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10115 (sparc_option_override): Store processor_type enumeration rather
10116 than string in cpu_default. Remove name and enumeration from
10117 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10118 without using sparc_select. Use target_flags_explicit instead of
10119 fpu_option_set.
10120 * config/sparc/sparc.h (enum processor_type): Move to
10121 sparc-opts.h.
10122 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10123 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10124 HeaderInclude entry.
10125 (mcpu=, mtune=): Use Var and Enum.
10126 (sparc_processor_type): New Enum and EnumValue entries.
10127
10128 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10129 Iain Sandoe <iains@gcc.gnu.org>
10130
10131 PR target/48245
10132 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10133
10134 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10135
10136 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10137 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10138 Insert new statements at it in lieu of STMT.
10139 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10140 * tree-vect-stmts.c (vectorizable_store): Likewise.
10141 (vectorizable_load): Likewise.
10142
10143 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10144
10145 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10146 (divtf3): Ditto.
10147 (multf3): Ditto.
10148 (subtf3): Ditto.
10149
10150 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10151
10152 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10153 unaligned 256bit load/store.
10154 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10155 (*avx_movdqu<avxmodesuffix>): Likewise.
10156
10157 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10158
10159 PR target/48288
10160 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10161 * config/pa/pa.md (iordi3): Use new predicate in expander.
10162 (iorsi3): Likewise.
10163
10164 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10165
10166 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10167 FUNCTION_VALUE_REGNO_P): Remove macros.
10168 * config/mips/mips-protos.h (mips_function_value): Remove.
10169 * config/mips/mips.c (mips_function_value): Rename to...
10170 (mips_function_value_1): ... this. Make static. Handle receiving
10171 the function type in 'fn_decl_or_type' argument.
10172 (mips_function_value, mips_libcall_value,
10173 mips_function_value_regno_p): New function.
10174 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10175 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10176
10177 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10178
10179 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10180 and -mavx256-split-unaligned-store.
10181 (ix86_option_override_internal): Split 32-byte AVX unaligned
10182 load/store by default.
10183 (ix86_avx256_split_vector_move_misalign): New.
10184 (ix86_expand_vector_move_misalign): Use it.
10185
10186 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10187 -mavx256-split-unaligned-store.
10188
10189 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10190 256bit load/store. Generate unaligned store on misaligned memory
10191 operand.
10192 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10193 256bit load/store.
10194 (*avx_movdqu<avxmodesuffix>): Likewise.
10195
10196 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10197 -mavx256-split-unaligned-store.
10198
10199 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10200
10201 PR target/38598
10202 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10203 Update commentary.
10204
10205 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10206
10207 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10208 opno arguments with an expand_operand. Use create_input_operand.
10209 (mips_prepare_builtin_target): Delete.
10210 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10211 functions.
10212 (mips_expand_builtin_direct): Use create_output_operand and
10213 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10214 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10215 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10216
10217 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10218
10219 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10220 function.
10221 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10222
10223 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10224
10225 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10226 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10227 basic blocks and call commit_edge_insertions directly.
10228 (fixup_abnormal_edges): Move from here to...
10229 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10230 on the edges and return whether some have actually been inserted.
10231 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10232 compensation code.
10233
10234 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10235
10236 PR rtl-optimization/48144
10237 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10238 (merge_expr_data): ... here.
10239 (av_set_intersect): Rename to av_set_code_motion_filter.
10240 Update all callers. Call merge_history_vect when an expression
10241 is found in both sets.
10242 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10243
10244 2011-03-26 Alan Modra <amodra@gmail.com>
10245
10246 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10247 cmodel medium addresses.
10248 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10249 64-bit gpr loads and stores.
10250 (rs6000_secondary_reload_ppc64): New function.
10251 * config/rs6000/rs6000-protos.h: Declare it.
10252 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10253
10254 2011-03-26 Alan Modra <amodra@gmail.com>
10255
10256 PR target/47487
10257 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10258 GNU Go in traceback table.
10259
10260 2011-03-25 Richard Henderson <rth@redhat.com>
10261
10262 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10263 if there are exactly 6 operands.
10264 (set_storage_via_setmem): Similarly.
10265
10266 2011-03-25 Kai Tietz <ktietz@redhat.com>
10267
10268 * collect2.c (write_c_file_stat): Handle backslash
10269 as right-hand directory separator.
10270 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10271 checking just for slash.
10272 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10273 instead of checking for trailing slash.
10274 * gcc.c (record_temp_file): Use filename_cmp instead
10275 of strcmp.
10276 (do_spec_1): Likewise.
10277 (replace_outfile_spec_function): Likewise.
10278 (is_directory): Use filename_ncmp instead of strncmp.
10279 (print_multilib_info): Likewise.
10280 * gcov.c (find_source): Use filename_cmp instead
10281 instead of strcmp.
10282 (make_gcov_file_name): Fix order of slash/backslash
10283 checks.
10284 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10285 (add_standard_paths): Likewise.
10286 * mips-tfile.c (saber_stop): Handle backslash.
10287 * prefix.c (update_path): Use filename_ncmp instead of
10288 strncmp.
10289 * profile.c (output_location): Use filename_cmp instead
10290 of strcmp.
10291 * read-md.c (handle_toplevel_file): Handle backslash.
10292 * tlink.c (frob_extension): Likewise.
10293 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10294 strcmp.
10295 * tree-dump.c (dequeue_and_dump): Handle backslash.
10296 * tree.c (get_file_function_name): Likewise.
10297 * gengtype.c (read_input_list): Likewise.
10298 (get_file_realbasename): Likewise.
10299 (get_output_file_with_visibility): Use filename_cmp
10300 instead of strcmp.
10301
10302 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10303
10304 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10305 case to VFPv1.
10306
10307 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10308
10309 * fold-const.c (expr_location_or): New function.
10310 (fold_truth_not_expr): Call it.
10311
10312 2011-03-25 Jeff Law <law@redhat.com>
10313
10314 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10315 va_end.
10316 * c-family/c-common.c (def_fn_type): Likewise.
10317 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10318 * emit-rtl.c (gen_rtvec): Likewise.
10319 * lto/lto-lang.c (def_fn_type): Likewise.
10320
10321 2011-03-25 Richard Guenther <rguenther@suse.de>
10322
10323 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10324 also generate copies.
10325 (fini_copy_prop): Handle constant values properly.
10326
10327 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10328
10329 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10330 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10331 (hash_loc_operands, compare_loc_operands): Handle
10332 DW_OP_GNU_entry_value.
10333
10334 2011-03-25 Kai Tietz <ktietz@redhat.com>
10335
10336 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10337 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10338 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10339 comment and use macro TARGET_64BIT_MS_ABI instead.
10340 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10341 and change default behavior for 32-bit MS_ABI.
10342 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10343 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10344 32-bit, too.
10345 (ix86_cfun_abi): Likewise.
10346 (ix86_maybe_switch_abi): Adjust comment.
10347 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10348 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10349 instead of checking for SYSV_ABI.
10350 (ix86_nsaved_sseregs): Likewise.
10351 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10352 to 16 bytes.
10353 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10354 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10355 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10356 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10357 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10358
10359 2011-03-25 Richard Guenther <rguenther@suse.de>
10360
10361 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10362 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10363 (verify_gimple): Remove.
10364 * tree-cfg.c (verify_gimple_call): Merge verification
10365 from verify_stmts.
10366 (verify_gimple_phi): Merge verification from verify_stmts.
10367 (verify_gimple_label): New function.
10368 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10369 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10370 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10371 (verify_stmts): Rename to verify_gimple_in_cfg.
10372 (verify_gimple_in_cfg): New function.
10373 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10374 * tree-ssa.c (verify_ssa): Likewise.
10375 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10376
10377 2011-03-25 Richard Guenther <rguenther@suse.de>
10378
10379 * passes.c (init_optimization_passes): Add FRE pass after
10380 early SRA.
10381
10382 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10383 Andrew Stubbs <ams@codesourcery.com>
10384
10385 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10386 for Cortex-A8.
10387 (arm_movdi_vfp_cortexa8): New pattern.
10388 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10389 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10390 instructions when tuning for Cortex-A8. Set attribute "arch".
10391 * config/arm/arm.md: Move include arm-tune.md up a bit.
10392 (define_attr "arch"): Add "onlya8" and "nota8" values.
10393 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10394
10395 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10396
10397 PR bootstrap/48282
10398 Revert:
10399 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10400
10401 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10402 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10403 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10404 * passes.c (init_optimization_passes): Move
10405 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10406
10407 2011-03-25 Kai Tietz <ktietz@redhat.com>
10408
10409 * c-typeck.c (comptypes_internal): Replace target
10410 hook call of comp_type_attributes by version in tree.c file.
10411 * gimple.c (gimple_types_compatible_p_1): Likewise.
10412 * tree-ssa.c (useless_type_conversion_p): Likewise.
10413 * tree.c (build_type_attribute_qual_variant): Likewise.
10414 (attribute_value_equal): New static helper function.
10415 (comp_type_attributes): New function.
10416 (merge_attributes): Use attribute_value_equal for comparison.
10417 (attribute_list_contained): Likewise.
10418 * tree.h (comp_type_attributes): New prototype.
10419
10420 2011-03-25 Richard Guenther <rguenther@suse.de>
10421
10422 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10423 of complex types at -O0.
10424 (verify_gimple_assign_binary): Likewise.
10425 (verify_gimple_assign_ternary): Likewise.
10426
10427 2011-03-24 Mark Wielaard <mjw@redhat.com>
10428
10429 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10430 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10431
10432 2011-03-24 Mark Wielaard <mjw@redhat.com>
10433
10434 PR debug/48041
10435 * dwarf2out.c (output_abbrev_section): Only write table when
10436 abbrev_die_table_in_use > 1.
10437
10438 2011-02-24 Richard Henderson <rth@redhat.com>
10439
10440 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10441 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10442 (alpha_expand_unaligned_load_words): Use extql.
10443 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10444 (emit_insxl): Handle all modes for consistency.
10445
10446 2011-02-24 Richard Henderson <rth@redhat.com>
10447
10448 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10449 (alpha_expand_unaligned_load): Likewise.
10450 (alpha_expand_unaligned_store): Likewise.
10451 (alpha_expand_unaligned_load_words): Likewise.
10452 (alpha_expand_unaligned_store_words): Likewise.
10453 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10454 (alpha_split_lock_test_and_set_12): Likewise.
10455 (print_operand, alpha_fold_builtin_extxx): Likewise.
10456 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10457 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10458 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10459 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10460 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10461 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10462 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10463 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10464 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10465 (extwl, extll, extql): Similarly.
10466 (inswh, inslh, insqh): Similarly.
10467 (mskbl, mskwl, mskll, mskql): Similarly.
10468 (mskwh, msklh, mskqh): Similarly.
10469
10470 2011-02-24 Richard Henderson <rth@redhat.com>
10471
10472 * config/alpha/alpha.md (attribute isa): Add er, ner.
10473 (attribute enabled): Handle them.
10474 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10475
10476 2011-02-24 Richard Henderson <rth@redhat.com>
10477
10478 * config/alpha/alpha.md (attribute isa): Add vms.
10479 (attribute enabled): Handle it.
10480 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10481 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10482 (*movtf): Rename from *movtf_internal for consistency.
10483 (*movsi): Merge with *movsi_nt_vms.
10484 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10485 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10486 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10487 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10488
10489 2011-02-24 Richard Henderson <rth@redhat.com>
10490
10491 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10492 (extendqisi2, extendhisi2): Likewise.
10493 (extendqidi2): Simplify BWX/non-BWX expansions.
10494 (extendhidi2): Similarly.
10495
10496 2011-02-24 Richard Henderson <rth@redhat.com>
10497
10498 * config/alpha/alpha.md (attribute isa): New.
10499 (attribute enabled): New.
10500 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10501 (zero_extendqisi2, zero_extendqidi2): Similarly.
10502 (zero_extendhisi2, zero_extendhidi2): Similarly.
10503 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10504
10505 2011-02-24 Richard Henderson <rth@redhat.com>
10506
10507 * config/alpha/predicates.md (input_operand): Revert last change;
10508 update comment to mention 32-bit VMS rather than Windows.
10509
10510 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10511
10512 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10513 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10514 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10515 * passes.c (init_optimization_passes): Move
10516 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10517
10518 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10519
10520 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10521
10522 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10523
10524 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10525 correctly.
10526
10527 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10528
10529 PR debug/48204
10530 * simplify-rtx.c (simplify_const_unary_operation): Call
10531 real_convert when changing mode class with FLOAT_EXTEND.
10532
10533 2011-03-24 Nick Clifton <nickc@redhat.com>
10534
10535 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10536 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10537 * config/rx/rx.c (rx_option_override): Set align_jumps,
10538 align_loops and align_labels if not set by the user.
10539 (rx_align_for_label): New function.
10540 (rx_max_skip_for_label): New function.
10541 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10542 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10543 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10544 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10545 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10546
10547 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10548
10549 PR rtl-optimization/48263
10550 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10551 and original commutative_p handling. Use maybe_gen_insn.
10552
10553 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10554
10555 * reload.c (find_reloads_subreg_address): Add address_reloaded
10556 parameter and return true there if the full address has been
10557 reloaded.
10558 (find_reloads_toplev): Pass address_reloaded flag.
10559 (find_reloads_address_1): Don't use address_reloaded parameter.
10560
10561 2011-03-24 Jeff Law <law@redhat.com>
10562
10563 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10564 unused variable "ann".
10565 (remove_unused_locals): Likewise.
10566
10567 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10568 statement.
10569
10570 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10571 after it is freed.
10572
10573 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10574
10575 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10576 for invalid symbolic addresses.
10577 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10578 larl operands.
10579
10580 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10581
10582 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10583 the argument in calls to fold_truth_not_expr.
10584
10585 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10586
10587 * tree.c (record_node_allocation_statistics): New function.
10588 (make_node_stat, copy_node_stat, build_string): Call it.
10589 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10590 (build1_stat, build_omp_clause): Likewise.
10591
10592 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10593
10594 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10595 last commit.
10596
10597 2011-03-24 Richard Guenther <rguenther@suse.de>
10598
10599 PR tree-optimization/48271
10600 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10601 blocks that still exist.
10602
10603 2011-03-24 Richard Guenther <rguenther@suse.de>
10604
10605 PR tree-optimization/48270
10606 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10607 not free datarefs before ddrs.
10608
10609 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10610
10611 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10612 from the address built for a reference with variable offset.
10613
10614 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10615
10616 PR target/48237
10617 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10618 alternatives that can be handled with movq or movabsq insn.
10619 (*movdf_internal): Disable for !TARGET_64BIT.
10620 (*movdf_internal_nointeger): Ditto.
10621 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10622
10623 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10624
10625 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10626 (FUNCTION_ARG_ADVANCE): Likewise.
10627 * tm.texi.in: Change references to them to hook references.
10628 * tm.texi: Regenerate.
10629 * targhooks.c (default_function_arg): Eliminate check for target macro.
10630 (default_function_incoming_arg): Likewise.
10631 (default_function_arg_advance): Likewise.
10632 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10633 (function_arg_advance): Likewise.
10634 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10635
10636 2011-03-24 Richard Guenther <rguenther@suse.de>
10637
10638 PR middle-end/48269
10639 * tree-object-size.c (addr_object_size): Do not double-account
10640 for MEM_REF offsets.
10641
10642 2011-03-24 Diego Novillo <dnovillo@google.com>
10643
10644 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10645 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10646 (lto_input_data_block): Move from lto-opts.c. Make extern.
10647 Update all users.
10648 (lto_input_string): Rename from input_string. Make extern.
10649 Update all users.
10650 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10651 output_string_with_length.
10652 Output 0 to indicate a non-NULL string. Update all callers to
10653 not emit 0.
10654 (lto_output_string): Rename from output_string. Make extern.
10655 Update all users.
10656 (lto_output_decl_state_streams): Make extern.
10657 (lto_output_decl_state_refs): Make extern.
10658 * lto-streamer.h (lto_input_string): Declare.
10659 (lto_input_data_block): Declare.
10660 (lto_output_string): Declare.
10661 (lto_output_string_with_length): Declare.
10662 (lto_output_decl_state_streams): Declare.
10663 (lto_output_decl_state_refs): Declare.
10664
10665 2011-03-24 Richard Guenther <rguenther@suse.de>
10666
10667 PR tree-optimization/46562
10668 * tree.c (build_invariant_address): New function.
10669 * tree.h (build_invariant_address): Declare.
10670 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10671 a renamed function moved ...
10672 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10673 Take valueization callback parameter.
10674 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10675 * gimple-fold.h: New file.
10676 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10677 (ccp_fold, fold_const_aggregate_ref,
10678 fold_ctor_reference, fold_nonarray_ctor_reference,
10679 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10680 get_base_constructor): Move ...
10681 * gimple-fold.c: ... here.
10682 (gimple_fold_stmt_to_constant_1): New function
10683 split out from ccp_fold. Take a valueization callback parameter.
10684 Valueize all operands.
10685 (gimple_fold_stmt_to_constant): New wrapper function.
10686 (fold_const_aggregate_ref_1): New function split out from
10687 fold_const_aggregate_ref. Take a valueization callback parameter.
10688 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10689 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10690 invariant POINTER_PLUS_EXPRs to invariant form.
10691 (vn_valueize): New function.
10692 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10693 * tree-vrp.c (vrp_valueize): New function.
10694 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10695 to fold statements to constants.
10696 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10697 function declarations.
10698 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10699 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10700
10701 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10702
10703 * config/h8300/predicates.md (jump_address_operand): Fix register
10704 mode check.
10705
10706 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10707
10708 * doc/invoke.texi (max-stores-to-sink): Document.
10709 * params.h (MAX_STORES_TO_SINK): Define.
10710 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10711 if either vectorization or if-conversion is disabled.
10712 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10713 tree-vect-data-refs.c vect_equal_offsets.
10714 (dr_equal_offsets_p): New function.
10715 (find_data_references_in_bb): Remove static.
10716 * tree-data-ref.h (find_data_references_in_bb): Declare.
10717 (dr_equal_offsets_p): Likewise.
10718 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10719 (vect_drs_dependent_in_basic_block): Update calls to
10720 vect_equal_offsets.
10721 (vect_check_interleaving): Likewise.
10722 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10723 (cond_if_else_store_replacement): Rename to...
10724 (cond_if_else_store_replacement_1): ... this. Change arguments and
10725 documentation.
10726 (cond_if_else_store_replacement): New function.
10727 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10728 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10729
10730 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10731
10732 PR target/46934
10733 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10734 to subtract lower bound instead of GEN_INT().
10735
10736 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10737
10738 PR other/48179
10739 PR other/48221
10740 PR other/48234
10741 * doc/extend.texi (Alignment): Move section to match order in TOC.
10742 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10743 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10744
10745 2011-03-23 Jeff Law <law@redhat.com>
10746
10747 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10748 before removing the edge.
10749
10750 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10751 it may have been freed by redirect_branch_edge or
10752 redirect_edge_succ_nodup.
10753
10754 2011-03-23 Richard Guenther <rguenther@suse.de>
10755
10756 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10757 (check_va_list_escapes): Likewise.
10758 (check_all_va_list_escapes): Likewise.
10759
10760 2011-03-23 Richard Guenther <rguenther@suse.de>
10761
10762 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10763 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10764 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10765 (alias.o): Likewise.
10766 (ipa-type-escape.o): Remove.
10767 (ipa-struct-reorg.o): Likewise.
10768 (GTFILES): Remove ipa-struct-reorg.c.
10769 * alias.c: Do not include ipa-type-escape.h.
10770 * tree-ssa-alias.c: Likewise.
10771 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10772 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10773 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10774 and ipa-type-escape passes.
10775 * tree-pass.h (pass_ipa_type_escape): Remove.
10776 (pass_ipa_struct_reorg): Likewise.
10777 * ipa-struct-reorg.h: Remove.
10778 * ipa-struct-reorg.c: Likewise.
10779 * ipa-type-escape.h: Likewise.
10780 * ipa-type-escape.c: Likewise.
10781 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10782 (--param struct-reorg-cold-struct-ratio): Likewise.
10783 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10784 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10785 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10786
10787 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10788
10789 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10790 cpu attribute value.
10791 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10792 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10793 * config/s390/s390.c (processor_flags_table): New constant array.
10794 (s390_handle_arch_option): Remove.
10795 (s390_handle_option): Remove s390_handle_arch_option invocations
10796 and OPT_mwarn_framesize_ handling.
10797 (s390_option_override): Remove s390_handle_arch_option invocation.
10798 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10799 warnings.
10800 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10801 * config/s390/s390.opt (s390_tune, s390_arch)
10802 (march=): Replace s390_arch_option enum and values with
10803 processor_type. Set variable name to s390_arch. Set
10804 initialization value.
10805 (mtune=): Replace s390_arch_option with processor_type. Set
10806 variable name to s390_tune. Set initialization value.
10807
10808 2011-03-23 Julian Brown <julian@codesourcery.com>
10809
10810 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10811 accesses which are not naturally aligned.
10812
10813 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10814
10815 PR target/47553
10816 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10817
10818 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10819
10820 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10821 parameter from "int" to "enum insn_code".
10822 (expand_operand_type): New enum.
10823 (expand_operand): New structure.
10824 (create_expand_operand): New function.
10825 (create_fixed_operand, create_output_operand): Likewise
10826 (create_input_operand, create_convert_operand_to): Likewise.
10827 (create_convert_operand_from, create_address_operand): Likewise.
10828 (create_integer_operand): Likewise.
10829 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10830 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10831 (expand_insn, expand_jump_insn): Likewise.
10832 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10833 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10834 (expand_movstr, expand_builtin___clear_cache): Likewise.
10835 (expand_builtin_lock_release): Likewise.
10836 * explow.c (allocate_dynamic_stack_space): Likewise.
10837 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10838 and use the default handling in that case.
10839 * expmed.c (check_predicate_volatile_ok): Delete.
10840 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10841 (emit_cstore): Likewise.
10842 * expr.c (emit_block_move_via_movmem): Likewise.
10843 (set_storage_via_setmem, expand_assignment): Likewise.
10844 (emit_storent_insn, try_casesi): Likewise.
10845 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10846 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10847 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10848 (expand_twoval_unop, expand_twoval_binop): Likewise.
10849 (expand_unop_direct, emit_indirect_jump): Likewise.
10850 (emit_conditional_move, vector_compare_rtx): Likewise.
10851 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10852 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10853 (expand_sync_lock_test_and_set): Likewise.
10854 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10855 (emit_unop_insn): Likewise.
10856 (expand_copysign_absneg): Change icode to an insn_code.
10857 (create_convert_operand_from_type): New function.
10858 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10859 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10860 (expand_insn, expand_jump_insn): Likewise.
10861 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10862 than const_int_operand for operand 2.
10863
10864 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10865
10866 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10867 if possible.
10868
10869 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10870
10871 * emit-rtl.c (emit_pattern_before_noloc): New function.
10872 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10873 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10874 (emit_pattern_after_noloc): New function.
10875 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10876 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10877
10878 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10879
10880 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10881 (__ffsDI2): Likewise.
10882
10883 2011-03-22 Richard Henderson <rth@redhat.com>
10884
10885 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10886 of !TARGET_ABI_OPEN_VMS.
10887 (alpha_trampoline_init, alpha_start_function): Likewise.
10888 (alpha_expand_epilogue, alpha_file_start): Likewise.
10889 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10890 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10891 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10892 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10893 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10894
10895 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10896
10897 * config/s390/s390-opts.h: New.
10898 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10899 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10900 s390_stack_guard): Remove.
10901 (s390_handle_arch_option): Return void. Take enum
10902 s390_arch_option value instead of string and searching array.
10903 (s390_handle_option): Don't assert that global structures are in
10904 use. Access variables via opts pointer. Use error_at. Don't use
10905 sscanf for -mstack-guard= or -mstack-size=. Update call to
10906 s390_handle_arch_option.
10907 (s390_option_override): Update call to s390_handle_arch_option.
10908 (s390_emit_prologue): Use %d format for s390_stack_size in
10909 diagnostic. Use %wd for HOST_WIDE_INT.
10910 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10911 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10912 * config/s390/s390.opt (config/s390/s390-opts.h): New
10913 HeaderInclude entry.
10914 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10915 s390_arch_flags, s390_warn_framesize): New Variable entries.
10916 (s390_arch_option): New Enum and EnumValue entries.
10917 (march=): Use Enum instead of Var.
10918 (mstack-guard=, mstack-size=): Use UInteger and Var.
10919 (mtune=): Use Enum.
10920
10921 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10922
10923 * config/score/score.c (score_handle_option): Don't assert that
10924 global structures are in use. Access target_flags via opts
10925 pointer. Use value of -march= option to determine target_flags
10926 settings.
10927 * config/score/score.opt (march=): Use Enum.
10928 (score_arch): New Enum and EnumValue entries.
10929
10930 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10931
10932 * config/mep/mep.c (option_mtiny_specified): Remove.
10933 (mep_option_override): Move register handling for -mivc2 from
10934 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10935 instead of option_mtiny_specified.
10936 (mep_handle_option): Access target_flags via opts pointer. Don't
10937 assert that global structures are in use. Defer part of -mivc2
10938 handling and move it to mep_option_override.
10939 * config/mep/mep.opt (IVC2): New Mask entry.
10940 (mivc2): Use Var and Defer instead of Mask.
10941
10942 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10943
10944 * config/v850/v850-opts.h: New.
10945 * config/v850/v850.c (small_memory): Replace with
10946 small_memory_physical_max array. Make that array static const.
10947 (v850_handle_memory_option): Take integer value of argument. Take
10948 gcc_options pointer, option text and location. Return void.
10949 Update for changes to small memory structures.
10950 (v850_handle_option): Access target_flags via opts pointer. Don't
10951 assert that global structures are in use. Update calls to
10952 v850_handle_memory_option.
10953 (v850_encode_data_area): Update references to small memory settings.
10954 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10955 (enum small_memory_type): Move to v850-opts.h.
10956 * config/v850/v850.opt (config/v850/v850-opts.h): New
10957 HeaderInclude entry.
10958 (small_memory_max): New Variable entry.
10959 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10960 (mtda, mzda): Likewise.
10961
10962 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10963
10964 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10965 pointer. Don't assert that global structures are in use.
10966
10967 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10968
10969 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10970 via opts pointer. Don't assert that global structures are in use.
10971
10972 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10973
10974 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10975 (munix=93): Use Var.
10976 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10977 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10978 * config/pa/pa-opts.h: New.
10979 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10980 (pa_handle_option): Don't assert that global structures are in
10981 use. Access target_flags via opts pointer. Don't handle
10982 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10983 OPT_munix_98 here.
10984 (pa_option_override): Handle deferred OPT_mfixed_range_.
10985
10986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10987
10988 * config/mn10300/mn10300-opts.h: New.
10989 * config/mn10300/mn10300.c (mn10300_processor,
10990 mn10300_tune_string): Remove.
10991 (mn10300_handle_option): Don't assert that global structures are
10992 in use. Access mn10300_processor via opts pointer. Don't handle
10993 OPT_mtune_ here.
10994 * config/mn10300/mn10300.h (enum processor_type): Move to
10995 mn10300-opts.h.
10996 (mn10300_processor): Remove.
10997 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10998 HeaderInclude entry.
10999 (mn10300_processor): New Variable entry.
11000 (mtune=): Use Var.
11001
11002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11003
11004 * config/microblaze/microblaze.c: Don't include opts.h.
11005 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11006 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11007 (mno-clearbss): Use Var and Warn.
11008
11009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11010
11011 * config/m32r/m32r-opts.h: New.
11012 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11013 (m32r_handle_option): Don't assert that global structures are in
11014 use. Access target_flags and m32r_cache_flush_func via opts
11015 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11016 OPT_mno_flush_trap here.
11017 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11018 include of m32r-opts.h.
11019 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11020 HeaderInclude entry.
11021 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11022 (mmodel=): Use Enum and Var.
11023 (m32r_model): New Enum and EnumValue entries.
11024 (mno-flush-trap): Use Var.
11025 (msdata=): Use Enum and Var.
11026 (m32r_sdata): New Enum and EnumValue entries.
11027
11028 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11029
11030 * config/m32c/m32c.c: Don't include opts.h.
11031 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11032 m32c_handle_option): Remove.
11033 (m32c_option_override): Check global_options_set.x_target_memregs
11034 instead of target_memregs_set.
11035 * config/m32c/m32c.h (target_memregs): Remove.
11036 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11037 variable.
11038
11039 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11040
11041 * config/iq2000/iq2000-opts.h: New.
11042 * config/iq2000/iq2000.c: Don't include opts.h.
11043 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11044 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11045 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11046 HeaderInclude entry.
11047 (iq2000_tune): New Variable entry.
11048 (march=): Add comment. Use Enum.
11049 (iq2000_arch): New Enum and EnumValue entries.
11050 (mcpu=): Use Enum and Var.
11051 (iq2000_tune): New Enum and EnumValue entries.
11052
11053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11054
11055 * config/ia64/ia64-opts.h: New.
11056 * config/ia64/ia64.c (ia64_tune): Remove.
11057 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11058 here. Use error_at.
11059 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11060 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11061 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11062 HeaderInclude entry.
11063 (ia64_tune): New Variable entry.
11064 (mfixed-range=): Use Defer and Var.
11065 (mtune=): Use Enum and Var.
11066 (ia64_tune): New Enum and EnumValue entries.
11067
11068 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11069
11070 * config/frv/frv-opts.h: New.
11071 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11072 frv-opts.h.
11073 (frv_cpu_type): Remove.
11074 * config/frv/frv.c: Don't include opts.h.
11075 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11076 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11077 (frv_cpu_type): New Variable entry.
11078 (frv_cpu): New Enum and EnumValue entries.
11079
11080 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11081
11082 * config/cris/cris.c (cris_handle_option): Access target_flags via
11083 opts pointer. Don't assert that global structures are in use.
11084 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11085 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11086
11087 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11088
11089 * config/bfin/bfin-opts.h: New.
11090 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11091 bfin_si_revision, bfin_workarounds): Remove.
11092 (bfin_cpus): Make static const.
11093 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11094 not bfin_lib_id_given.
11095 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11096 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11097 pointer. Use error_at. Don't assert that global structures are in use.
11098 * config/bfin/bfin.h: Include bfin-opts.h.
11099 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11100 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11101 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11102 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11103 entries.
11104
11105 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11106
11107 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11108 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11109 or -msoft-float here.
11110 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11111 -msoft-float and -mhard-float.
11112 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11113 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11114 msoft-float.
11115 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11116 -msoft-float.
11117 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11118 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11119 not mhard-float.
11120 (LIBGCC_SPEC): Don't handle -msoft-float.
11121 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11122 -mhard-float.
11123 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11124 msoft-float.
11125 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11126 -mfloat-abi=*, not -msoft-float and -mhard-float.
11127 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11128 -msoft-float.
11129 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11130 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11131 mhard-float and msoft-float.
11132 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11133 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11134 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11135 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11136 mhard-float.
11137 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11138 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11139 msoft-float.
11140 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11141 not mhard-float.
11142 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11143 not msoft-float.
11144
11145 2011-03-22 Richard Henderson <rth@redhat.com>
11146
11147 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11148 TARGET_ABI_WINDOWS_NT.
11149 (alpha_output_function_end_prologue): Likewise.
11150 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11151 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11152 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11153 (trap, *movsi_nt_vms): Likewise.
11154 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11155 (*tablejump_osf_nt_internal): Remove.
11156 * config/alpha/predicates.md (input_operand): Only test Pmode.
11157
11158 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11159
11160 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11161 via opts pointer. Use error_at. Don't assert that global
11162 structures are in use.
11163
11164 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11165
11166 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11167 (ix86_handle_option): Access ix86_isa_flags and
11168 ix86_isa_flags_explicit via opts pointer. Don't assert that
11169 global structures are in use.
11170 (ix86_function_specific_save, ix86_function_specific_restore):
11171 Update ix86_isa_flags_explicit field name.
11172 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11173 (ix86_isa_flags_explicit): Rename TargetSave entry to
11174 x_ix86_isa_flags_explicit.
11175
11176 2011-03-22 Richard Henderson <rth@redhat.com>
11177
11178 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11179 (alpha_option_override, direct_return): Likewise.
11180 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11181 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11182 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11183 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11184 (alpha_expand_epilogue, alpha_end_function): Likewise.
11185 (alpha_init_libfuncs): Likewise.
11186 (struct machine_function): Remove unicosmk members.
11187 (print_operand) ['t']: Remove.
11188 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11189 unicosmk_output_module_name, unicosmk_output_common,
11190 current_section_align, unicosmk_output_text_section_asm_op,
11191 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11192 unicosmk_section_type_flags, unicosmk_unique_section,
11193 unicosmk_asm_named_section, unicosmk_insert_attributes,
11194 unicosmk_output_align, unicosmk_defer_case_vector,
11195 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11196 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11197 unicosmk_output_ssib, unicosmk_add_call_info_word,
11198 unicosmk_extern_head, unicosmk_output_default_externs,
11199 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11200 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11201 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11202 * config/alpha/alpha-protos.h: Update.
11203 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11204 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11205 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11206 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11207 (*mulsi_se, mulvsi3): Likewise.
11208 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11209 (*divmodsi_internal, call, call_value, realign): Likewise.
11210 (moddi3, umoddi3): Likewise; remove duplicate expander.
11211 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11212 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11213 (*movdi_nofix): Remove r/U alternative.
11214 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11215 * config/alpha/constraints.md ("U"): Remove.
11216 * config/alpha/predicates.md (call_operand"): Don't test
11217 TARGET_ABI_UNICOSMK.
11218
11219 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11220
11221 * target.def (handle_option): Take gcc_options and
11222 cl_decoded_option pointers and location_t.
11223 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11224 * doc/tm.texi: Regenerate.
11225 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11226 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11227 * lto-opts.c (lto_reissue_options): Generate option structure for
11228 targetm.handle_option call.
11229 * opts.c (target_handle_option): Update call to
11230 targetm.handle_option. Remove assertions about values now passed
11231 down to hook.
11232 * targhooks.c (default_target_handle_option): New.
11233 * targhooks.h (default_target_handle_option): Declare.
11234 * config/alpha/alpha.c: Include opts.h.
11235 (alpha_handle_option): Update to new hook interface.
11236 * config/arm/arm.c: Include opts.h.
11237 (arm_handle_option): Update to new hook interface.
11238 * config/arm/t-arm (arm.o): Update dependencies.
11239 * config/bfin/bfin.c: Include opts.h.
11240 (bfin_handle_option): Update to new hook interface.
11241 * config/cris/cris.c: Include opts.h.
11242 (cris_handle_option): Update to new hook interface.
11243 * config/frv/frv.c: Include opts.h.
11244 (frv_handle_option): Update to new hook interface.
11245 * config/i386/i386.c: Include opts.h.
11246 (ix86_handle_option): Update to new hook interface.
11247 (ix86_valid_target_attribute_inner_p): Generate option structure
11248 for call to ix86_handle_option.
11249 * config/i386/t-i386 (i386.o): Update dependencies.
11250 * config/ia64/ia64.c: Include opts.h.
11251 (ia64_handle_option): Update to new hook interface.
11252 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11253 * config/iq2000/iq2000.c: Include opts.h.
11254 (iq2000_handle_option): Update to new hook interface.
11255 * config/m32c/m32c.c: Include opts.h.
11256 (m32c_handle_option): Update to new hook interface.
11257 * config/m32r/m32r.c: Include opts.h.
11258 (m32r_handle_option): Update to new hook interface.
11259 * config/m68k/m68k.c: Include opts.h.
11260 (m68k_handle_option): Update to new hook interface.
11261 * config/mep/mep.c: Include opts.h.
11262 (mep_handle_option): Update to new hook interface.
11263 * config/microblaze/microblaze.c: Include opts.h.
11264 (microblaze_handle_option): Update to new hook interface.
11265 * config/mips/mips.c: Include opts.h.
11266 (mips_handle_option): Update to new hook interface.
11267 * config/mn10300/mn10300.c: Include opts.h.
11268 (mn10300_handle_option): Update to new hook interface.
11269 * config/pa/pa.c: Include opts.h.
11270 (pa_handle_option): Update to new hook interface.
11271 * config/pdp11/pdp11.c: Include opts.h.
11272 (pdp11_handle_option): Update to new hook interface.
11273 * config/rs6000/rs6000.c: Include opts.h.
11274 (rs6000_handle_option): Update to new hook interface.
11275 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11276 * config/rx/rx.c: Include opts.h.
11277 (rx_handle_option): Update to new hook interface.
11278 * config/s390/s390.c: Include opts.h.
11279 (s390_handle_option): Update to new hook interface.
11280 * config/score/score.c: Include opts.h.
11281 (score_handle_option): Update to new hook interface.
11282 * config/sh/sh.c: Include opts.h.
11283 (sh_handle_option): Update to new hook interface.
11284 * config/sparc/sparc.c: Include opts.h.
11285 (sparc_handle_option): Update to new hook interface.
11286 * config/v850/v850.c: Include opts.h.
11287 (v850_handle_option): Update to new hook interface.
11288
11289 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11290
11291 * gcc.c (driver_unknown_option_callback): Only permit and save
11292 unknown -Wno- options.
11293 (driver_wrong_lang_callback): Save options directly instead of via
11294 driver_unknown_option_callback.
11295
11296 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11297
11298 * combine.c (simplify_set): Try harder to find the best CC mode when
11299 simplifying a nested COMPARE on the RHS.
11300
11301 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11302
11303 * config/alpha/gnu.h: Remove.
11304 * config/arc: Remove directory.
11305 * config/arm/netbsd.h: Remove.
11306 * config/arm/t-pe: Remove.
11307 * config/crx: Remove directory.
11308 * config/i386/netbsd.h: Remove.
11309 * config/m68hc11: Remove directory.
11310 * config/m68k/uclinux-oldabi.h: Remove.
11311 * config/mcore/mcore-pe.h: Remove.
11312 * config/mcore/t-mcore-pe: Remove.
11313 * config/netbsd-aout.h: Remove.
11314 * config/rs6000/gnu.h: Remove.
11315 * config/sh/sh-symbian.h: Remove.
11316 * config/sh/symbian-base.c: Remove.
11317 * config/sh/symbian-c.c: Remove.
11318 * config/sh/symbian-cxx.c: Remove.
11319 * config/sh/symbian-post.h: Remove.
11320 * config/sh/symbian-pre.h: Remove.
11321 * config/sh/t-symbian: Remove.
11322 * config/svr3.h: Remove.
11323 * config/vax/netbsd.h: Remove.
11324 * config.build: Don't handle i[34567]86-*-pe.
11325 * config.gcc: Remove handling of deprecations for most deprecated
11326 targets.
11327 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11328 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11329 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11330 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11331 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11332 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11333 Remove cases.
11334 * config.host: Don't handle i[34567]86-*-pe.
11335 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11336 (ASM_SPEC32): Don't handle -mcall-gnu.
11337 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11338 -mcall-gnu.
11339 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11340 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11341 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11342 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11343 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11344 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11345 conditional on SYMBIAN.
11346 * configure.ac: Don't handle powerpc*-*-gnu*.
11347 * configure: Regenerate.
11348 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11349 * doc/install-old.texi (m6811, m6812): Don't mention.
11350 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11351 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11352 (m68k-uclinuxoldabi): Don't mention.
11353 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11354 Remove.
11355 (-mcall-gnu): Remove.
11356 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11357 families): Remove constraint documentation.
11358
11359 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11360
11361 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11362 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11363 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11364
11365 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11366
11367 PR target/48226
11368 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11369 vector when peeking at the next token for vector, don't expand the
11370 keywords.
11371
11372 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11373
11374 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11375 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11376 * config/avr/avr.c (init_cumulative_args)
11377 (avr_function_arg_advance): Use it.
11378 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11379 sibcall epilogues.
11380 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11381 (avr_function_ok_for_sibcall): ...this new function.
11382 (avr_lookup_function_attribute1): New static Function.
11383 (avr_naked_function_p, interrupt_function_p)
11384 (signal_function_p, avr_OS_task_function_p)
11385 (avr_OS_main_function_p): Use it.
11386 * config/avr/avr.md ("sibcall", "sibcall_value")
11387 ("sibcall_epilogue"): New expander.
11388 ("*call_insn", "*call_value_insn"): New insn.
11389 ("call_insn", "call_value_insn"): Remove
11390 ("call", "call_value", "epilogue"): Change expander to handle
11391 sibling calls.
11392
11393 2011-03-21 Nick Clifton <nickc@redhat.com>
11394
11395 * doc/invoke.texi (Overall Options): Move closing brace to end of
11396 options list.
11397 (Optimization Options): Add missing @gol.
11398 (Directory Options): Likewise.
11399 (i386 and x86-64 Options): Likewise.
11400 (RS6000 and PowerPC Options): Likewise.
11401 (i386 and x86-64 Windows Options): Likewise.
11402 (V850 Options): Add text missing from descriptions.
11403
11404 2011-03-22 Richard Henderson <rth@redhat.com>
11405
11406 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11407 (avr_incoming_return_addr_rtx): New.
11408 (emit_push_byte): New.
11409 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11410 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11411 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11412 (emit_pop_byte): New.
11413 (expand_epilogue): Use it. Pop frame pointer by bytes.
11414 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11415 (INCOMING_RETURN_ADDR_RTX): New.
11416 (INCOMING_FRAME_SP_OFFSET): New.
11417 (ARG_POINTER_CFA_OFFSET): New.
11418 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11419 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11420 (pophi): Remove.
11421
11422 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11423
11424 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11425
11426 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11427 (FUNCTION_ARG_ADVANCE): Likewise.
11428 * tm.texi.in: Change references to them to hook references.
11429 * tm.texi: Regenerate.
11430 * targhooks.c (default_function_arg): Eliminate check for target
11431 macro.
11432 (default_function_incoming_arg): Likewise.
11433 (default_function_arg_advance): Likewise.
11434 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11435 (function_arg_advance): Likewise.
11436 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11437
11438 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11439
11440 * tree.c (build_call_1): New function.
11441 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11442
11443 2011-03-22 Richard Guenther <rguenther@suse.de>
11444
11445 PR tree-optimization/48228
11446 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11447 for single-arg PHIs.
11448
11449 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11450
11451 PR rtl-optimization/48143
11452 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11453 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11454 sse2_cvtps2pd): Likewise.
11455
11456 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11457
11458 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11459
11460 2011-03-22 Richard Guenther <rguenther@suse.de>
11461
11462 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11463 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11464 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11465 and REALIGN_LOAD_EXPR.
11466 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11467 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11468 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11469 DOT_PROD_EXPR case ...
11470 (expand_expr_real_2): ... here.
11471 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11472 and REALIGN_LOAD_EXPR.
11473 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11474 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11475 (vect_create_epilog_for_reduction): Likewise.
11476 (vectorizable_reduction): Likewise.
11477 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11478 * tree-vect-stmts.c (vectorizable_load): Likewise.
11479
11480 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11481
11482 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11483
11484 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11485
11486 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11487 handling for PLTOFF/GOTOFF.
11488
11489 2011-03-22 Nick Clifton <nickc@redhat.com>
11490
11491 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11492 trailing backslash from the end of the macro definition.
11493
11494 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11495
11496 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11497 and PLT unspecs.
11498
11499 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11500
11501 * expr.h (prepare_operand): Move to...
11502 * optabs.h (prepare_operand): ...here and change the insn code
11503 parameter from "int" to "enum insn_code".
11504 (insn_operand_matches): Declare.
11505 * expr.c (init_expr_target): Use insn_operand_matches.
11506 (compress_float_constant): Likewise.
11507 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11508 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11509 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11510 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11511 Likewise.
11512 (gen_cond_trap): Likewise.
11513 (prepare_operand): Likewise. Change icode to an insn_code.
11514 (insn_operand_matches): New function.
11515 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11516 * reload1.c (gen_reload): Likewise.
11517 * targhooks.c (default_secondary_reload): Likewise.
11518
11519 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11520
11521 * config/alpha/alpha.md (unspec): New define_c_enum.
11522 (unspecv): Ditto.
11523
11524 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11525
11526 PR debug/48214
11527 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11528 between a call and its CALL_ARG_LOCATION note.
11529
11530 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11531
11532 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11533
11534 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11535
11536 PR c/42544
11537 PR c/48197
11538 * c-common.c (shorten_compare): If primopN is first sign-extended
11539 to opN and then zero-extended to result type, set primopN to opN.
11540
11541 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11542
11543 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11544 for barrier handlers.
11545
11546 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11547
11548 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11549 UNSPEC constants to be in the unspec enumeration, and redefine
11550 all UNSPECV constants to be in the unspecv enumeration, so that
11551 dumps print which unspec/unspec_volatile this is.
11552 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11553 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11554 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11555 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11556 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11557
11558 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11559 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11560 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11561 * config/rs6000/sync.md (isync, lwsync): Ditto.
11562
11563 2011-03-21 Richard Guenther <rguenther@suse.de>
11564
11565 * params.def (lto-min-partition): Fix typo.
11566
11567 2011-03-21 Richard Guenther <rguenther@suse.de>
11568
11569 PR c/47939
11570 * c-decl.c (grokdeclarator): Drop to the main variant only
11571 for array types. Drop flag_gen_aux_info check.
11572
11573 2011-03-21 Richard Guenther <rguenther@suse.de>
11574
11575 PR translation/47911
11576 * params.def (lto-partitions): Fix typo.
11577 (lto-min-partition): Fix wording.
11578
11579 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11580
11581 * config/rs6000/t-freebsd: Remove duplication from file.
11582
11583 2011-03-21 Richard Guenther <rguenther@suse.de>
11584
11585 PR middle-end/47661
11586 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11587
11588 2011-03-21 Richard Guenther <rguenther@suse.de>
11589
11590 PR lto/48210
11591 * params.def (lto-partitions): Require at least 1 partition.
11592
11593 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11594
11595 * gthr-solaris.h: Remove.
11596 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11597 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11598 (LIB_SPEC): Likewise.
11599 * config/sol2.opt (threads): Remove.
11600 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11601 (sparc*-*-solaris2*): Likewise.
11602 * configure.ac (enable_threads): Enable solaris support.
11603 * configure: Regenerate.
11604 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11605 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11606 solaris.
11607
11608 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11609
11610 * config.gcc: Obsolete *-*-solaris2.8*.
11611 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11612
11613 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11614
11615 PR bootstrap/48135
11616 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11617 reference. Solaris 8 perl works.
11618
11619 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11620
11621 PR bootstrap/48135
11622 * doc/install.texi (Prerequisites): Move jar etc. up.
11623 Explain support library version requirements.
11624
11625 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11626
11627 PR bootstrap/48135
11628 * doc/install.texi (Prerequisites): Move Perl to build
11629 requirements. Always necessary on Solaris 2 with Sun ld.
11630
11631 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11632
11633 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11634 binutils 2.21.
11635 (Specific, i?86-*-solaris2.[89]): Likewise.
11636 (Specific, i?86-*-solaris2.10): Likewise.
11637 (Specific, mips-sgi-irix6): Likewise.
11638 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11639 Update for binutils 2.21.
11640
11641 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11642
11643 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11644 Allow -fuse-linker-plugin for non-default plugin linker.
11645 * configure: Regenerate.
11646
11647 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11648
11649 PR bootstrap/48167
11650 * gengtype.c (files_rules): Added rule for cp/parser.h.
11651
11652 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11653
11654 PR target/48213
11655 * config/s390/s390.c (s390_delegitimize_address): Don't call
11656 lowpart_subreg if orig_x has BLKmode.
11657
11658 2011-03-21 Kai Tietz <ktietz@redhat.com>
11659
11660 PR target/12171
11661 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11662 * tree.h (attribute_spec): Add new member affects_type_identity.
11663 * attribs.c (empty_attribute_table): Adjust attribute_spec
11664 initializers.
11665 * config/alpha/alpha.c: Likewise.
11666 * config/arc/arc.c: Likewise.
11667 * config/arm/arm.c: Likewise.
11668 * config/avr/avr.c: Likewise.
11669 * config/bfin/bfin.c: Likewise.
11670 * config/crx/crx.c: Likewise.
11671 * config/darwin.h: Likewise.
11672 * config/h8300/h8300.c: Likewise.
11673 * config/i386/cygming.h: Likewise.
11674 * config/i386/i386.c: Likewise.
11675 * config/ia64/ia64.c: Likewise.
11676 * config/m32c/m32c.c: Likewise.
11677 * config/m32r/m32r.c: Likewise.
11678 * config/m68hc11/m68hc11.c: Likewise.
11679 * config/m68k/m68k.c: Likewise.
11680 * config/mcore/mcore.c: Likewise.
11681 * config/mep/mep.c: Likewise.
11682 * config/microblaze/microblaze.c: Likewise.
11683 * config/mips/mips.c: Likewise.
11684 * config/rs6000/rs6000.c: Likewise.
11685 * config/rx/rx.c: Likewise.
11686 * config/sh/sh.c: Likewise.
11687 * config/sol2.h: Likewise.
11688 * config/sparc/sparc.c: Likewise.
11689 * config/spu/spu.c: Likewise.
11690 * config/stormy16/stormy16.c: Likewise.
11691 * config/v850/v850.c: Likewise.
11692
11693 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11694
11695 * simplify-rtx.c (simplify_binary_operation_1): Handle
11696 (xor (and A B) C) case when B and C are both constants.
11697
11698 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11699
11700 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11701
11702 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11703
11704 PR bootstrap/48168
11705 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11706
11707 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11708
11709 PR rtl-optimization/48156
11710 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11711 assume df and df_lr are not NULL.
11712
11713 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11714
11715 PR debug/48023
11716 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11717 between a call and its CALL_ARG_LOCATION note.
11718
11719 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11720
11721 PR debug/48178
11722 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11723 between a call and its corresponding CALL_ARG_LOCATION note.
11724
11725 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11726
11727 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11728 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11729 * haifa-sched.c (setup_ref_regs): Ditto.
11730 * caller-save.c (add_used_regs_1): Ditto.
11731 * dse.c (look_for_hardregs): Ditto.
11732 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11733 * sched-rgn.c (check_live_1): Ditto.
11734
11735 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11736
11737 * c-decl.c (diagnose_mismatched_decls): Give an error for
11738 redefining a typedef with variably modified type.
11739
11740 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11741
11742 * c-decl.c (grokfield): Don't allow typedefs for structures or
11743 unions with no tag by default.
11744 * doc/extend.texi (Unnamed Fields): Update.
11745
11746 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11747
11748 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11749 Rewrite using indirect functions.
11750 (lwp_slwpcb): Ditto.
11751 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11752 (avx_vinsertf128<mode>): Ditto.
11753
11754 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11755
11756 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11757 unspecs.
11758
11759 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11760
11761 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11762 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11763
11764 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11765
11766 PR rtl-optimization/48170
11767 * gcse.c (hoist_code): Remove bogus asserts.
11768
11769 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11770
11771 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11772 computation for prologue/epilogue.
11773
11774 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11775
11776 * Makefile.in (check-consistency): Remove.
11777
11778 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11779
11780 PR debug/48176
11781 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11782 arange_table_in_use is 0, but either text_section_used or
11783 cold_text_section_used is true. Don't call it if
11784 !info_section_emitted.
11785
11786 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11787
11788 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11789 FUNCTION_VALUE_REGNO_P): Remove.
11790 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11791 Remove.
11792 * config/avr/avr.c (avr_ret_register): Make static inline.
11793 (avr_function_value_regno_p): New function.
11794 (avr_libcall_value): Make static. Add 'func' argument.
11795 (avr_function_value): Make static. Rename 'func' argument to
11796 'fn_decl_or_type', forward it to avr_libcall_value. Call
11797 avr_ret_register function instead of RET_REGISTER macro.
11798 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11799
11800 2011-03-18 Jason Merrill <jason@redhat.com>
11801
11802 PR c++/23372
11803 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11804
11805 2011-03-18 Richard Guenther <rguenther@suse.de>
11806
11807 * doc/install.texi (--enable-gold): Remove.
11808 (--with-plugin-ld): Document.
11809 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11810
11811 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11812
11813 PR middle-end/47790
11814 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11815 again after expansion changes.
11816
11817 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11818
11819 * combine.c (try_combine): Do simplification only call of
11820 subst() on i2 even when i1 is present. Update comments.
11821
11822 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11823
11824 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11825 and UNSPEC_PCREL_SYMOFF.
11826
11827 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11828
11829 * config/s390/s390.md: Use define_c_enum for the unspec constant
11830 definitions.
11831
11832 2011-03-18 Richard Henderson <rth@redhat.com>
11833 Jakub Jelinek <jakub@redhat.com>
11834
11835 PR bootstrap/48161
11836 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11837 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11838
11839 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11840
11841 PR middle-end/47725
11842 * combine.c (cant_combine_insn_p): Don't check zero/sign
11843 extended hard registers.
11844
11845 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11846
11847 PR middle-end/47725
11848 * combine.c (cant_combine_insn_p): Check zero/sign extended
11849 hard registers.
11850
11851 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11852
11853 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11854 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11855 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11856 Change return type to bool.
11857 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11858
11859 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11860
11861 PR debug/48163
11862 * var-tracking.c (prepare_call_arguments): If CALL target
11863 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11864 pc instead of looking it up using cselib_lookup and use
11865 Pmode for it if x has VOIDmode.
11866 * dwarf2out.c (gen_subprogram_die): If also both first and
11867 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11868
11869 PR debug/48163
11870 * function.c (assign_parms): For data.passed_pointer parms
11871 use MEM of data.entry_parm instead of data.entry_parm itself
11872 as DECL_INCOMING_RTL.
11873 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11874 also when passed and declared mode is the same, DECL_RTL
11875 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11876 a MEM too.
11877
11878 2011-03-16 Jeff Law <law@redhat.com>
11879
11880 PR rtl-optimization/37273
11881 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11882 handle them like argument loads from stack slots. Do not double
11883 count memory for memory constants and argument loads from stack slots.
11884
11885 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11886
11887 PR debug/48160
11888 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11889
11890 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11891
11892 PR target/48171
11893 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11894
11895 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11896
11897 PR bootstrap/48153
11898 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11899 if dwarf_strict.
11900 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11901 Clear call_arg_locations and call_arg_loc_last always.
11902
11903 PR middle-end/48152
11904 * var-tracking.c (prepare_call_arguments): If argument needs to be
11905 passed by reference, adjust argtype and mode.
11906
11907 2011-03-17 Richard Guenther <rguenther@suse.de>
11908
11909 PR middle-end/48134
11910 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11911 a value make sure to fold the statement.
11912
11913 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11914
11915 PR target/43872
11916 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11917 return condition with !cfun->calls_alloca.
11918
11919 2011-03-17 Richard Guenther <rguenther@suse.de>
11920
11921 PR bootstrap/48148
11922 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11923 origin for decls in other ltrans units.
11924 (input_varpool_node): Likewise.
11925
11926 2011-03-17 Richard Guenther <rguenther@suse.de>
11927
11928 PR middle-end/48165
11929 * tree-object-size.c (compute_object_offset): Properly return
11930 the offset operand of MEM_REFs as sizetype.
11931
11932 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11933
11934 PR rtl-optimization/48141
11935 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11936 * dse.c: Include params.h.
11937 (active_local_stores_len): New variable.
11938 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11939 to NULL.
11940 (record_store, check_mem_read_rtx): Decrease it when removing
11941 from the chain.
11942 (scan_insn): Likewise. Increase it when adding to chain, if it
11943 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11944 set active_local_stores to NULL before the addition.
11945 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11946
11947 PR rtl-optimization/48141
11948 * dse.c (record_store): If no positions are needed in an insn
11949 that cannot be deleted, at least unchain it from active_local_stores.
11950
11951 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11952
11953 PR debug/47510
11954 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11955 (lookup_type_die_strip_naming_typedef): ... here.
11956 (get_context_die): Use it.
11957 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11958 the anonymous struct named by the naming typedef.
11959
11960 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11961
11962 PR target/48154
11963 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11964 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11965
11966 2011-03-16 Jeff Law <law@redhat.com>
11967
11968 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11969 check for operands of conditional. Allow type to be a pointer.
11970
11971 2011-03-16 Richard Guenther <rguenther@suse.de>
11972
11973 PR tree-optimization/48149
11974 * fold-const.c (fold_binary_loc): Fold
11975 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11976
11977 2011-03-16 Richard Guenther <rguenther@suse.de>
11978
11979 PR tree-optimization/26134
11980 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11981 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11982 (non_rewritable_mem_ref_base): Handle complex type component
11983 accesses, constrain offsets for vector and complex extracts
11984 more properly.
11985
11986 2011-03-16 Richard Guenther <rguenther@suse.de>
11987
11988 PR tree-optimization/48146
11989 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11990 operands avoiding the need for renaming.
11991
11992 2011-03-16 Richard Guenther <rguenther@suse.de>
11993
11994 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11995 constant folding. Move MEM_REF canonicalization first.
11996 Rely on fold_const_aggregate_ref for initializer folding.
11997 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11998
11999 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12000
12001 PR middle-end/48136
12002 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12003 arg0/arg1 or their arguments are always fold converted to matching
12004 types.
12005
12006 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12007 to nargs.
12008
12009 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12010
12011 PR lto/46944
12012 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12013 Handle in-tree gold.
12014 (ld_vers): Extract binutils version for gold.
12015 (gcc_cv_ld_hidden): Handle gold here.
12016 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12017 * configure: Regenerate.
12018 * config.in: Regenerate.
12019 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12020 -fuse-linker-plugin otherwise.
12021 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12022 (LINK_COMMAND_SPEC): Use it.
12023 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12024
12025 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12026
12027 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12028 * calls.c: Remove debug.h include.
12029 (emit_call_1): Don't call virtual_call_token debug hook.
12030 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12031 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12032 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12033 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12034 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12035 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12036 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12037 dwarf2out_virtual_call): Remove.
12038 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12039 copy_call_info and virtual_call hooks.
12040 (dwarf2out_init): Don't initialize vcall_insn_table,
12041 debug_dcall_section and debug_vcall_section.
12042 (prune_unused_types): Don't mark nodes from dcall_table.
12043 (dwarf2out_finish): Don't output dcall or vcall tables.
12044 * final.c (final_scan_insn): Don't call direct_call or
12045 virtual_call debug hooks.
12046 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12047 virtual_call_token, copy_call_info and virtual_call hooks.
12048 (debug_nothing_uid): Remove prototype.
12049 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12050 copy_call_info and virtual_call hooks.
12051 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12052 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12053 * debug.c (do_nothing_debug_hooks): Likewise.
12054 (debug_nothing_uid): Remove.
12055 * doc/invoke.texi (-fenable-icf-debug): Remove.
12056 * common.opt (-fenable-icf-debug): Likewise.
12057
12058 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12059 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12060 call's MEM. Handle functions returning aggregate through a hidden
12061 first pointer. For virtual calls add clobbered pc to call arguments
12062 chain.
12063 * dwarf2out.c (gen_subprogram_die): Emit
12064 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12065 can't be emitted.
12066
12067 PR debug/45882
12068 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12069 * rtl.h (ENTRY_VALUE_EXP): Define.
12070 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12071 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12072 * print-rtl.c (print_rtx): Likewise.
12073 * gengtype.c (adjust_field_rtx_def): Likewise.
12074 * var-tracking.c (vt_add_function_parameter): Adjust
12075 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12076 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12077 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12078 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12079 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12080
12081 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12082 Call var_location debug hook even on CALL_INSNs.
12083 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12084 * rtl.def (ENTRY_VALUE): New.
12085 * dwarf2out.c: Include cfglayout.h.
12086 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12087 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12088 (struct call_arg_loc_node): New type.
12089 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12090 tail_call_site_count): New variables.
12091 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12092 DW_TAG_GNU_call_site_parameter.
12093 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12094 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12095 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12096 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12097 and DW_AT_GNU_all_source_call_sites.
12098 (mem_loc_descriptor): Handle ENTRY_VALUE.
12099 (add_src_coords_attributes): Don't add enything if
12100 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12101 (dwarf2out_abstract_function): Save and clear call_arg_location,
12102 call_site_count and tail_call_site_count around dwarf2out_decl call.
12103 (gen_call_site_die): New function.
12104 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12105 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12106 (dwarf2out_function_decl): Clear call_arg_locations,
12107 call_arg_loc_last, set call_site_count and tail_call_site_count
12108 to -1 and free block_map.
12109 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12110 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12111 followed by any real instructions.
12112 (dwarf2out_begin_function): Set call_site_count and
12113 tail_call_site_count to 0.
12114 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12115 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12116 attempt to force a DIE for it and worst case remove the attribute.
12117 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12118 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12119 the decl itself.
12120 * var-tracking.c: Include tm_p.h.
12121 (vt_stack_adjustments): For calls call note_register_arguments.
12122 (argument_reg_set): New variable.
12123 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12124 ensure the VALUE is resolved.
12125 (call_arguments): New variable.
12126 (prepare_call_arguments): New function.
12127 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12128 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12129 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12130 always use the best expression.
12131 (vt_expand_loc): Add ignore_cur_loc argument.
12132 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12133 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12134 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12135 note for all calls.
12136 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12137 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12138 argument. Don't call cselib_preserve_only_values and
12139 cselib_reset_table.
12140 (note_register_arguments): New function.
12141 (vt_initialize): Compute argument_reg_set. Call
12142 vt_add_function_parameters before processing basic blocks instead of
12143 afterwards. For calls call prepare_call_arguments before calling
12144 cselib_process_insn.
12145 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12146 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12147 (var-tracking.o): Depend on $(TM_P_H).
12148 * cfglayout.h (insn_scope): New prototype.
12149 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12150 * cfglayout.c (insn_scope): No longer static.
12151 * insn-notes.def (CALL_ARG_LOCATION): New.
12152 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12153 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12154 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12155 nothing for DECL_EXTERNAL BLOCK_VARS.
12156
12157 2011-03-16 Alan Modra <amodra@gmail.com>
12158
12159 PR target/45844
12160 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12161 create invalid offset address for vsx splat insn.
12162 * config/rs6000/predicates.md (splat_input_operand): New.
12163 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12164
12165 2011-03-15 Xinliang David Li <davidxl@google.com>
12166
12167 PR c/47837
12168 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12169 (normalize_preds): New function.
12170 (is_use_properly_guarded): Normalize def predicates.
12171
12172 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12173
12174 PR target/46788
12175 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12176 in the output template.
12177
12178 2011-03-15 Richard Guenther <rguenther@suse.de>
12179
12180 PR middle-end/47650
12181 * tree-pretty-print.c (dump_function_declaration): Properly
12182 dump unprototyped and varargs function types.
12183
12184 2011-03-15 Richard Guenther <rguenther@suse.de>
12185
12186 PR tree-optimization/13954
12187 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12188 and friends.
12189
12190 2011-03-15 Richard Guenther <rguenther@suse.de>
12191
12192 PR tree-optimization/48037
12193 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12194 selects into BIT_FIELD_REFs.
12195 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12196 vector select.
12197
12198 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12199
12200 PR tree-optimization/48129
12201 * builtins.c (fold_builtin_snprintf): Convert to type of
12202 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12203 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12204
12205 2011-03-15 Richard Guenther <rguenther@suse.de>
12206
12207 PR tree-optimization/41490
12208 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12209 value but with VUSE.
12210 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12211 return statements.
12212 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12213 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12214 * tree-tailcall.c (find_tail_calls): Ignore returns.
12215
12216 2011-03-15 Richard Guenther <rguenther@suse.de>
12217
12218 PR middle-end/48031
12219 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12220 or variable-indexed array accesses when in gimple form.
12221
12222 2011-03-15 Richard Guenther <rguenther@suse.de>
12223
12224 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12225
12226 2011-03-15 Alan Modra <amodra@gmail.com>
12227
12228 PR target/48032
12229 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12230 presume symbol_refs without a symbol_ref_decl are suitably
12231 aligned, nor other trees we may see here. Handle anchor symbols.
12232 (legitimate_constant_pool_address_p): Comment. Add mode param.
12233 Check cmodel=medium addresses. Adjust all calls.
12234 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12235 creating cmodel=medium optimized access to locals.
12236 * config/rs6000/constraints.md (R): Pass QImode to
12237 legitimate_constant_pool_address_p.
12238 * config/rs6000/predicates.md (input_operand): Pass mode to
12239 legitimate_constant_pool_address_p.
12240 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12241 Update prototype.
12242
12243 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12244
12245 PR target/48053
12246 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12247 64-bit constants being loaded into registers other than GPRs such
12248 as loading 0 into a VSX register.
12249
12250 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12251
12252 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12253
12254 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12255
12256 PR middle-end/47917
12257 * builtins.c (fold_builtin_snprintf): New function.
12258 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12259 (fold_builtin_4): Likewise.
12260
12261 PR middle-end/38878
12262 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12263 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12264 and C - X == X also strip nops from +/-/p+ operand.
12265 When optimizing -X == C, fold C to arg0's type.
12266
12267 PR debug/47946
12268 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12269 emit it as add_AT_int instead of add_AT_unsigned.
12270
12271 2011-03-14 Tom Tromey <tromey@redhat.com>
12272
12273 * unwind-dw2.c: Include sys/sdt.h if it exists.
12274 (_Unwind_DebugHook): Use STAP_PROBE2.
12275 * config.in, configure: Rebuild.
12276 * configure.ac: Check for sys/sdt.h.
12277
12278 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12279
12280 * config/i386/i386.md (ROUND_FLOOR): New constant.
12281 (ROUND_CEIL): Ditto.
12282 (ROUND_TRUNC): Ditto.
12283 (ROUND_MXCSR): Ditto.
12284 (ROUND_NO_EXC): Ditto.
12285 (rint<mode>2): Use new defines instead of numerical constants.
12286 (floor<mode>2): Ditto.
12287 (ceil<mode>2): Ditto.
12288 (btrunc<mode>2): Ditto.
12289 * config/i386/i386-builtin-types.def: Define ROUND function type
12290 aliases.
12291 * config/i386/i386.c (enum ix86_builtins): Add
12292 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12293 (struct builtin_description): Add
12294 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12295 (ix86_expand_sse_round): New static function.
12296 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12297 function types.
12298 (ix86_builtin_vectorized_function): Handle
12299 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12300
12301 2011-03-14 Tom Tromey <tromey@redhat.com>
12302
12303 * c-parser.c (c_parser_asm_string_literal): Clear
12304 warn_overlength_strings.
12305
12306 2011-03-14 Tom Tromey <tromey@redhat.com>
12307
12308 * c-parser.c (disable_extension_diagnostics): Save
12309 warn_overlength_strings.
12310 (restore_extension_diagnostics): Restore warn_overlength_strings.
12311
12312 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12313
12314 * BASE-VER: Change to 4.7.0.
12315
12316 2011-03-14 Richard Guenther <rguenther@suse.de>
12317
12318 PR middle-end/48098
12319 * tree.c (build_vector_from_val): Adjust assert to requirements
12320 and reality.
12321
12322 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12323
12324 PR bootstrap/48102
12325 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12326
12327 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12328
12329 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12330 terms of target_flags_explicit. Adjust copyright year.
12331
12332 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12333 * config/rs6000/t-freebsd: New file. Add override for
12334 LIB2FUNCS_EXTRA.
12335
12336 2011-03-13 Chris Demetriou <cgd@google.com>
12337
12338 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12339 (-fno-diagnostics-show-option): this, to reflect current default.
12340 (-Werror=): Update text about -fno-diagnostics-show-option.
12341
12342 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12343
12344 PR target/48053
12345 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12346 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12347 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12348 mode is not V2DImode or V2DFmode.
12349 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12350 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12351 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12352 registers to 0.
12353 (movdi_internal64): Likewise.
12354
12355 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12356
12357 PR tree-optimization/47127
12358 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12359 parameter.
12360 (set_cloog_options): Same.
12361 (scop_to_clast): Same.
12362 (print_clast_stmt): Do not call cloog_state_malloc and
12363 cloog_state_free.
12364 (print_generated_program): Same.
12365 (gloog): Same.
12366 * graphite-clast-to-gimple.h (cloog_state): Declared.
12367 (scop_to_clast): Adjust declaration.
12368 * graphite.c (cloog_state): Defined here.
12369 (graphite_initialize): Call cloog_state_malloc.
12370 (graphite_finalize): Call cloog_state_free.
12371
12372 2011-03-11 Jason Merrill <jason@redhat.com>
12373
12374 * attribs.c (lookup_attribute_spec): Take const_tree.
12375 * tree.h: Adjust.
12376
12377 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12378
12379 * config/sparc/sparc.c (sparc_option_override): Use
12380 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12381
12382 2011-03-11 Richard Guenther <rguenther@suse.de>
12383
12384 PR tree-optimization/48067
12385 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12386 multiplication result will be only used once on the target
12387 stmt.
12388
12389 2011-03-11 Richard Guenther <rguenther@suse.de>
12390
12391 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12392
12393 2011-03-11 Richard Guenther <rguenther@suse.de>
12394
12395 PR lto/48073
12396 * tree.c (find_decls_types_r): Do not walk types only reachable
12397 from IDENTIFIER_NODEs.
12398
12399 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12400
12401 PR middle-end/48044
12402 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12403 all vnode->force_output nodes as needed.
12404
12405 2011-03-11 Jason Merrill <jason@redhat.com>
12406
12407 PR c++/48069
12408 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12409 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12410
12411 2011-03-11 Martin Jambor <mjambor@suse.cz>
12412
12413 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12414 cgraph_node.
12415
12416 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12417
12418 PR tree-optimization/48063
12419 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12420 inline functions called once if !tree_can_inline_p (node->callers).
12421
12422 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12423
12424 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12425 extra_objs.
12426 * config/score/score3.c: Delete.
12427 * config/score/score3.h: Delete.
12428 * config/score/mul-div.S: Delete.
12429 * config/score/sfp-machine.h: Add new file.
12430 * config/score/constraints.md: Add new file.
12431 * config/score/t-score-softfp: Add new file.
12432 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12433 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12434 (score7_extra_constraint): Delete.
12435 (score7_option_override): Remove unused code.
12436 * config/score/score.c: Remove score3 and score5 define and code.
12437 * config/score/score.h: Remove score3 and score5 define and code.
12438 * config/score/score.md: Remove score3 template and unusual insn.
12439 * config/score/score.opt: Remove score3 and score5 options.
12440
12441 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12442
12443 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12444 when _HPUX_SOURCE is defined.
12445 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12446
12447 2011-03-10 Jason Merrill <jason@redhat.com>
12448
12449 PR c++/48029
12450 * stor-layout.c (layout_type): Don't set structural equality
12451 on arrays of incomplete type.
12452 * tree.c (type_hash_eq): Handle comparing them properly.
12453
12454 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12455
12456 PR debug/48043
12457 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12458 result mode matches original rtl mode.
12459
12460 2011-03-10 Nick Clifton <nickc@redhat.com>
12461
12462 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12463 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12464
12465 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12466
12467 PR rtl-optimization/47866
12468 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12469 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12470 if target wasn't scalar.
12471 * function.c (assign_stack_temp_for_type): Assert that neither
12472 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12473 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12474 macro.
12475 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12476
12477 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12478
12479 * config/s390/s390-protos.h (s390_label_align): New prototype.
12480 * config/s390/s390.c (s390_label_align): New function.
12481 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12482
12483 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12484
12485 PR target/47755
12486 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12487 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12488 (output_vec_const_move): Ditto.
12489
12490 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12491
12492 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12493 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12494 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12495 Change 'rclass' argument and result type to reg_class_t.
12496 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12497
12498 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12499
12500 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12501 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12502 (TARGET_MEMORY_MOVE_COST): Define.
12503 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12504
12505 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12506
12507 PR debug/47881
12508 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12509 removed anything.
12510
12511 PR tree-optimization/48022
12512 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12513 for EQ/NE_EXPR.
12514
12515 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12516
12517 PR debug/47991
12518 * var-tracking.c (find_use_val): Return NULL for
12519 cui->sets && cui->store_p BLKmode MEMs.
12520
12521 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12522
12523 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12524 Remove.
12525 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12526 xstormy16_print_operand_address): Remove.
12527 * config/stormy16/stormy16.c (xstormy16_print_operand,
12528 xstormy16_print_operand_address): Make static.
12529 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12530
12531 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12532
12533 PR target/47862
12534 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12535 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12536 before definition.
12537
12538 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12539
12540 PR bootstrap/48000
12541 * cfgloopmanip.c (fix_bb_placements): Return immediately
12542 if FROM is BASE_LOOP's header.
12543
12544 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12545
12546 * gimplify.c (gimplify_function_tree): Fix building calls
12547 to __builtin_return_address.
12548
12549 2011-03-07 Alan Modra <amodra@gmail.com>
12550
12551 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12552 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12553 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12554 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12555 return_mode args.
12556 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12557 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12558 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12559 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12560 * config/rs6000/rs6000.c
12561 (rs6000_elf_end_indicate_exec_stack): Rename to..
12562 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12563 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12564 (rs6000_file_start): ..here.
12565 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12566 file scope variables.
12567 (call_ABI_of_interest): New function.
12568 (init_cumulative_args): Set above vars when function return value
12569 is a float, vector, or small struct.
12570 (rs6000_function_arg_advance_1): Likewise for function args.
12571 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12572 references float args.
12573
12574 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12575
12576 * doc/cfg.texi: Remove "See" before @ref.
12577 * doc/invoke.texi: Likewise.
12578
12579 2011-03-05 Jason Merrill <jason@redhat.com>
12580
12581 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12582
12583 2011-03-05 Anthony Green <green@moxielogic.com>
12584
12585 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12586
12587 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12588
12589 PR rtl-optimization/47899
12590 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12591 to flow_loop_nested_p when moving the loop upward.
12592
12593 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12594
12595 PR target/47719
12596 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12597
12598 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR tree-optimization/47967
12601 * ipa-cp.c (build_const_val): Return NULL instead of creating
12602 VIEW_CONVERT_EXPR for mismatching sizes.
12603 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12604 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12605 give up on versioning.
12606
12607 2011-03-05 Alan Modra <amodra@gmail.com>
12608
12609 PR target/47986
12610 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12611 full cmodel medium/large lo_sum + high addresses.
12612
12613 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12614
12615 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12616 pool references in UNSPEC_LTREL_OFFSET.
12617
12618 2011-03-04 Jan Hubicka <jh@suse.cz>
12619
12620 PR lto/47497
12621 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12622 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12623 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12624 Add node pointers.
12625 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12626 cgraph_add_thunk): Add node pointers.
12627 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12628 associated to right node.
12629 (input_node): Update use of cgraph_same_body_alias
12630 and cgraph_add_thunk.
12631
12632 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12633
12634 * config/i386/i386.opt (mprefer-avx128): New flag.
12635 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12636 modes when the flag -mprefer-avx128 is on.
12637
12638 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12639
12640 * dwarf2out.c (compare_loc_operands): Fix address handling.
12641
12642 2011-03-04 Alan Modra <amodra@gmail.com>
12643
12644 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12645
12646 2011-03-04 Richard Guenther <rguenther@suse.de>
12647
12648 PR middle-end/47968
12649 * expmed.c (extract_bit_field_1): Prefer vector modes that
12650 vec_extract patterns can handle.
12651
12652 2011-03-04 Richard Guenther <rguenther@suse.de>
12653
12654 PR middle-end/47975
12655 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12656
12657 2011-03-04 Richard Henderson <rth@redhat.com>
12658
12659 * explow.c (emit_stack_save): Remove 'after' parameter.
12660 (emit_stack_restore): Likewise.
12661 * expr.h: Update to match.
12662 * builtins.c, calls.c, stmt.c: Likewise.
12663 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12664 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12665 * function.c (expand_function_end): Insert the emit_stack_save
12666 sequence before parm_birth_insn instead of after.
12667
12668 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12669
12670 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12671 (ssse3_pmaddubsw128): Ditto.
12672 (ssse3_pmaddubsw): Ditto.
12673
12674 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12675
12676 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12677
12678 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12679
12680 PR c/47963
12681 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12682 on TYPE_SIZE_UNIT if it is a DECL.
12683
12684 PR debug/47283
12685 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12686 first operand is not is_gimple_mem_ref_addr, try to fold it.
12687 If the operand still isn't is_gimple_mem_ref_addr, clear
12688 MEM_EXPR on op0.
12689
12690 2011-03-03 Richard Guenther <rguenther@suse.de>
12691
12692 PR middle-end/47283
12693 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12694 match comment.
12695 (refs_may_alias_p_1): For release branches return true if
12696 we are confused by our input.
12697
12698 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12699
12700 * config/s390/s390.c (s390_function_value): Rename to ...
12701 (s390_function_and_libcall_value): ... this.
12702 (s390_function_value): New function.
12703 (s390_libcall_value): New function.
12704 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12705 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12706 target macro definitions.
12707 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12708
12709 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12710
12711 * config/i386/freebsd64.h (CC1_SPEC): Define.
12712 * config/i386/linux64.h (CC1_SPEC): Define.
12713 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12714
12715 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12716
12717 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12718 Remove.
12719 * config/stormy16/stormy16.c: Include reload.h.
12720 (xstormy16_memory_move_cost): New function.
12721 (TARGET_MEMORY_MOVE_COST): Define.
12722
12723 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12724
12725 PR rtl-optimization/47925
12726 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12727 with side effects. Remove the more-specific check for volatile asms.
12728
12729 2011-03-02 Alan Modra <amodra@gmail.com>
12730
12731 PR target/47935
12732 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12733 toc relative addresses for valid offsets.
12734
12735 2011-03-01 Richard Guenther <rguenther@suse.de>
12736
12737 PR tree-optimization/47890
12738 * tree-vect-loop.c (get_initial_def_for_induction): Set
12739 related stmt properly.
12740
12741 2011-03-01 Richard Guenther <rguenther@suse.de>
12742
12743 PR lto/47924
12744 * lto-streamer.c (lto_record_common_node): Also register
12745 the canonical type.
12746
12747 2011-03-01 Richard Guenther <rguenther@suse.de>
12748
12749 PR lto/46911
12750 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12751 Do not stream DECL_ABSTRACT_ORIGIN.
12752 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12753 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12754 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12755 Do not stream DECL_ABSTRACT_ORIGIN.
12756 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12757 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12758
12759 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12760
12761 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12762 FUNCTION_VALUE_REGNO_P): Remove.
12763 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12764 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12765 Add 'outgoing' argument.
12766 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12767 function.
12768 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12769 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12770
12771 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12772
12773 PR debug/28047
12774 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12775 (lookup_filename): Likewise.
12776 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12777
12778 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12779 Jakub Jelinek <jakub@redhat.com>
12780
12781 PR middle-end/47893
12782 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12783 (assign_stack_local_1): Change last argument type to int.
12784 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12785 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12786 don't record padding space into frame_space_list nor use those areas.
12787 (assign_stack_local): Adjust caller.
12788 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12789 of assign_stack_local, pass 0 as last argument.
12790 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12791 callers.
12792
12793 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12794
12795 PR debug/47283
12796 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12797 Use target address_mode and pointer_mode hooks instead of hardcoded
12798 Pmode and ptr_mode. Handle some simple cases of extending if
12799 POINTERS_EXTEND_UNSIGNED < 0.
12800 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12801 Call convert_debug_memory_address.
12802 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12803 convert_debug_memory_address.
12804
12805 PR middle-end/46790
12806 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12807 * configure: Regenerated.
12808 * config.in: Regenerated.
12809 * varasm.c (default_function_section): Return NULL
12810 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12811
12812 2011-02-28 Martin Jambor <mjambor@suse.cz>
12813
12814 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12815 the description to match the printed values.
12816
12817 2011-02-28 Richard Guenther <rguenther@suse.de>
12818
12819 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12820 of the copied scope tree.
12821
12822 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12823
12824 * doc/extend.texi (Function Attributes): Avoid deeply (and
12825 wrongly) nested tables.
12826
12827 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12828
12829 PR middle-end/47903
12830 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12831 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12832 r isn't op0 nor op1.
12833
12834 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12835
12836 * config/avr/avr.md: Remove magic comment for emacs.
12837
12838 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12839
12840 PR target/45261
12841 * config/avr/avr.c (avr_option_override): Use error on bad options.
12842 (avr_help): New function.
12843 (TARGET_HELP): Define.
12844
12845 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12846
12847 PR target/42240
12848 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12849 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12850
12851 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12852
12853 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12854 (ARM Options): Ditto.
12855 (i386 and x86-64 Options): Ditto.
12856 (RX Options): Ditto.
12857 (SPARC Options): Ditto.
12858
12859 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12860
12861 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12862 FreeBSD 6 and later. Generally use cpu generic.
12863
12864 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12865
12866 * doc/cpp.texi: Update copyright years.
12867
12868 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12869
12870 PR target/46898
12871 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12872
12873 2011-02-25 Jon Beniston <jon@beniston.com>
12874
12875 PR target/46898
12876 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12877 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12878 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12879 (lm32_block_move_inline): Add type cast to remove warning.
12880 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12881 (gen_int_relational): Move declarations to start of function.
12882
12883 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12884
12885 PR tree-optimization/45470
12886 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12887 can throw internally only.
12888 * tree-vect-stmts.c (vectorizable_call): Likewise.
12889
12890 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12891
12892 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12893 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12894 * config/stormy16/stormy16-protos.h
12895 (xstormy16_preferred_reload_class): Remove.
12896 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12897 static. Change 'rclass' argument and return type to reg_class_t.
12898 (TARGET_PREFERRED_RELOAD_CLASS,
12899 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12900
12901 2011-02-24 Richard Guenther <rguenther@suse.de>
12902
12903 * lto-streamer-in.c (input_bb): Do not find referenced vars
12904 in debug statements.
12905
12906 2011-02-23 Jason Merrill <jason@redhat.com>
12907
12908 * common.opt (fabi-version): Document v5 and v6.
12909
12910 2011-02-23 Richard Guenther <rguenther@suse.de>
12911
12912 PR tree-optimization/47849
12913 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12914
12915 2011-02-23 Jie Zhang <jie@codesourcery.com>
12916
12917 * opts-common.c (decode_cmdline_option): Print empty string
12918 argument as "" in decoded->orig_option_with_args_text.
12919 * gcc.c (execute): Print empty string argument as ""
12920 in the verbose output.
12921 (do_spec_1): Keep empty string argument.
12922
12923 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12924
12925 * config.gcc: Declare score-* and crx-* obsolete.
12926
12927 2011-02-23 Jie Zhang <jie@codesourcery.com>
12928
12929 PR rtl-optimization/47763
12930 * web.c (web_main): Ignore naked clobber when replacing register.
12931
12932 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12933
12934 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12935 Remove.
12936
12937 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12938
12939 PR doc/47848
12940 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12941
12942 2011-02-22 Mike Stump <mikestump@comcast.net>
12943
12944 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12945 assembler.
12946 * configure: Regenerate.
12947
12948 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12949
12950 PR rtl-optimization/46002
12951 * ira-color.c (update_copy_costs): Change class intersection
12952 test to reg_class_contents[] test of 'hard_regno'.
12953
12954 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12955
12956 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12957 than Driver option.
12958 * config/hpux11.opt (mt): Likewise.
12959 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12960 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12961 * config/vax/elf.opt (mno-asm-pic): Likewise.
12962 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12963
12964 2011-02-21 Mike Stump <mikestump@comcast.net>
12965
12966 PR target/47822
12967 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12968 tree so we can get save the type.
12969 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12970 for CFString instead of trying to use past the end of the builtins.
12971 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12972 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12973 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12974 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12975 Rename to darwin_builtin_cfstring.
12976 (darwin_init_cfstring_builtins): Return the built type.
12977
12978 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12979
12980 PR target/47840
12981 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12982 (_mm256_insert_epi64): Use _mm_insert_epi64.
12983
12984 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12985
12986 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12987 * config/stormy16/stormy16-protos.h
12988 (xstormy16_mode_dependent_address_p): Remove.
12989 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12990 Make static. Change return type to bool. Change argument type to
12991 const_rtx. Remove dead code.
12992 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12993
12994 2011-02-21 Richard Guenther <rguenther@suse.de>
12995
12996 PR lto/47820
12997 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12998 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12999 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13000 TUs context.
13001 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13002 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13003
13004 2011-02-20 Richard Guenther <rguenther@suse.de>
13005
13006 PR lto/47822
13007 * tree.c (free_lang_data_in_decl): Clean builtins from
13008 the TU decl BLOCK_VARS.
13009
13010 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13011
13012 PR debug/47620
13013 PR debug/47630
13014 * haifa-sched.c (fix_tick_ready): Skip tick computation
13015 for debug insns.
13016
13017 2011-02-19 Richard Guenther <rguenther@suse.de>
13018
13019 PR lto/47647
13020 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13021 Remove lazy BLOCK_VARS streaming.
13022 (lto_input_ts_block_tree_pointers): Likewise.
13023 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13024
13025 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13026
13027 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13028
13029 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13030
13031 * config/i386/biarch32.h, config/i386/mach.h,
13032 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13033
13034 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13035
13036 PR target/47800
13037 * config/i386/i386.md (peephole2 for shift and plus): Use
13038 operands[1] original mode in the first insn.
13039
13040 2011-02-18 Mike Stump <mikestump@comcast.net>
13041
13042 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13043
13044 2011-02-18 Jan Hubicka <jh@suse.cz>
13045
13046 PR middle-end/47788
13047 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13048 to zero when the function is not inlinable at all.
13049
13050 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13051
13052 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13053 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13054 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13055 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13056 * config/pa/t-pa64: Likewise.
13057 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13058
13059 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13060
13061 PR driver/47787
13062 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13063
13064 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13065
13066 PR target/47792
13067 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13068
13069 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13070
13071 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13072 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13073 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13074 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13075 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13076 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13077 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13078 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13079 m32r_legitimate_address_p): New functions.
13080 * config/m32r/constraints.md (constraint "S"): Don't use
13081 STORE_PREINC_PREDEC_P.
13082 (constraint "U"): Don't use LOAD_POSTINC_P.
13083
13084 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13085
13086 PR rtl-optimization/46178
13087 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13088 compute ira_hard_regno_cover_class[].
13089
13090 2011-02-18 Richard Guenther <rguenther@suse.de>
13091
13092 PR lto/47798
13093 * lto-streamer.h (lto_global_var_decls): Declare.
13094 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13095 statics for global var processing.
13096
13097 2011-02-18 Richard Guenther <rguenther@suse.de>
13098
13099 PR tree-optimization/47737
13100 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13101 edge dominance check.
13102
13103 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13104
13105 PR debug/47780
13106 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13107 avoid invalid rtx sharing.
13108
13109 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13110
13111 * doc/cpp.texi (Obsolete Features): Add background on the
13112 origin of assertions.
13113
13114 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13115
13116 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13117 objc_abi == 2.
13118 * config/darwin.c (output_objc_section_asm_op): Added support for
13119 ABI v1 and v2.
13120 (is_objc_metadata): New.
13121 (darwin_objc2_section): New.
13122 (darwin_objc1_section): New.
13123 (machopic_select_section): Added support for ABI v1 and v2.
13124 (darwin_emit_objc_zeroed): New.
13125 (darwin_output_aligned_bss): Detect objc metadata and treat it
13126 appropriately.
13127 (darwin_asm_output_aligned_decl_common): Same.
13128 (darwin_asm_output_aligned_decl_local): Same.
13129 * config/darwin-sections.def: Updated for ABI v1 and v2.
13130 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13131 compiling Objective-C code for the NeXT runtime, default to using
13132 ABI version 0 for 32-bit, and version 2 for 64-bit.
13133
13134 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13135
13136 * common.opt (optimize_fast): New Variable.
13137 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13138 instead of local variable ofast.
13139
13140 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13141
13142 * doc/invoke.texi (fobjc-abi-version): Documented.
13143 (fobjc-nilcheck): Documented.
13144 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13145 version.
13146
13147 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13148
13149 PR driver/47390
13150 * common.opt (export-dynamic): New Driver option.
13151 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13152
13153 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13154
13155 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13156
13157 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13158 Jan Hubicka <jh@suse.cz>
13159
13160 PR debug/47106
13161 PR debug/47402
13162 * cfgexpand.c (account_used_vars_for_block): Remove.
13163 (estimated_stack_frame_size): Use referenced vars.
13164 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13165 that were referenced in the original function. Test src_fn
13166 rather than cfun. Drop redundant get_var_ann.
13167 (setup_one_parameter): Drop redundant get_var_ann.
13168 (declare_return_variable): Likewise.
13169 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13170 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13171 * ipa-inline.c (compute_inline_parameters): Do not compute
13172 disregard_inline_limits here.
13173 (compute_inlinable_for_current, pass_inlinable): New.
13174 (pass_inline_parameters): Require PROP_referenced_vars.
13175 * cgraphunit.c (cgraph_process_new_functions): Don't run
13176 compute_inline_parameters explicitly unless function is in SSA form.
13177 (cgraph_analyze_function): Set .disregard_inline_limits.
13178 * tree-sra.c (convert_callers): Compute inliner parameters
13179 only for functions already in SSA form.
13180
13181 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13182
13183 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13184 -mlittle-endian-data.
13185
13186 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13187
13188 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13189 -mno-fpu, not -fpu and -no-fpu.
13190 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13191 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13192
13193 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13194
13195 PR target/43653
13196 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13197 input reload with PLUS RTX.
13198
13199 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13200
13201 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13202 of InverseVar(MDMX).
13203
13204 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13205
13206 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13207 --m4-340.
13208
13209 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13210
13211 * config/mn10300/mn10300.opt (mno-crt0): New.
13212
13213 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13214
13215 * config/m68k/uclinux.opt (static-libc): New Driver option.
13216
13217 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13218
13219 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13220
13221 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13222
13223 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13224 %{muser-extend-enabled}.
13225
13226 2011-02-16 Richard Guenther <rguenther@suse.de>
13227
13228 PR tree-optimization/47738
13229 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13230 the TODO from tree_predictive_commoning.
13231
13232 2011-02-15 Jeff Law <law@redhat.com>
13233
13234 Revert
13235 2011-01-25 Jeff Law <law@redhat.com>
13236
13237 PR rtl-optimization/37273
13238 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13239 handle them like argument loads from stack slots. Do not double
13240 count memory for memory constants and argument loads from stack slots.
13241
13242 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13243
13244 PR middle-end/47725
13245 * combine.c (cant_combine_insn_p): Revert the last change.
13246
13247 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13248
13249 PR target/47755
13250 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13251 mode for vector constants. Remove code that checks for TImode.
13252
13253 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13254
13255 PR debug/47106
13256 PR debug/47402
13257 * cgraph.h (compute_inline_parameters): Return void.
13258 * ipa-inline.c (compute_inline_parameters): Adjust.
13259
13260 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13261
13262 PR debug/47106
13263 PR debug/47402
13264 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13265 rather than decl.
13266 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13267 * ipa-inline.c (compute_inline_parameters): Adjust.
13268
13269 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13270
13271 PR debug/47106
13272 PR debug/47402
13273 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13274 Adjust all users. Pass FN to...
13275 * tree-flow-inline.h (first_referenced_var): ... this. Add
13276 fn argument.
13277 * ipa-struct-reorg.c: Adjust.
13278 * tree-dfa.c: Adjust.
13279 * tree-into-ssa.c: Adjust.
13280 * tree-sra.c: Adjust.
13281 * tree-ssa-alias.c: Adjust.
13282 * tree-ssa-live.c: Adjust.
13283 * tree-ssa.c: Adjust.
13284 * tree-ssanames.c: Adjust.
13285 * tree-tailcall.c: Adjust.
13286
13287 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13288
13289 PR debug/47106
13290 PR debug/47402
13291 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13292 Adjust all callers.
13293 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13294 * tree-flow-inline.h: Adjust.
13295 * gimple-pretty-print.c: Adjust.
13296 * tree-into-ssa.c: Adjust.
13297 * tree-ssa.c: Adjust.
13298 * cfgexpand.c: Adjust.
13299
13300 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13301
13302 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13303 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13304 (EXTRA_CONSTRAINT): Delete.
13305 * config/iq2000/constraints.md: New file.
13306 * config/iq2000/iq2000.md: Include it.
13307 (define_insn ""): Delete.
13308 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13309 unsupported constraint letters from patterns.
13310 (call_value, call_value_internal1): Likewise.
13311 (call_value_multiple_internal1): Likewise.
13312
13313 2011-02-15 Nick Clifton <nickc@redhat.com>
13314
13315 * config/mn10300/mn10300.c: Include tm-constrs.h.
13316 (struct liw_data): New data structure describing an LIW candidate
13317 instruction.
13318 (extract_bundle): Use struct liw_data. Allow small integer
13319 operands for some instructions.
13320 (check_liw_constraints): Use struct liw_data. Remove swapped
13321 parameter. Add comments describing the checks. Fix bug when
13322 assigning the source of liw1 to the source of liw2.
13323 (liw_candidate): Delete. Code moved into extract_bundle.
13324 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13325 before swapping.
13326 * config/mn10300/predicates.md (liw_operand): New predicate.
13327 Allows registers and small integer constants.
13328 * config/mn10300/constraints.md (O): New constraint. Accetps
13329 integers in the range -8 to +7 inclusive.
13330 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13331 for moving a small integer into a register. Give this alternative
13332 LIW attributes.
13333 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13334 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13335 using the J,K,L and M constraints,
13336 (liw): Remove SI mode on second operands to allow for HI and QI
13337 mode values.
13338 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13339 instruction.
13340
13341 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13342
13343 PR middle-end/47725
13344 * combine.c (cant_combine_insn_p): Check zero/sign extended
13345 hard registers.
13346
13347 2011-02-15 Richard Guenther <rguenther@suse.de>
13348
13349 PR tree-optimization/47743
13350 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13351 for a non-type-compatible VN lookup bail out.
13352
13353 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13354
13355 * config/fr30/constraints.md: New file.
13356 * config/fr30/fr30.md: Include it.
13357 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13358 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13359 (EXTRA_CONSTRAINT): Delete.
13360
13361 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13362
13363 * config/frv/constraints.md: New file.
13364 * config/frv/predicates.md: Include it.
13365 * config/frv/frv.c (reg_class_from_letter): Delete.
13366 (frv_option_override): Don't initialize it.
13367 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13368 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13369 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13370 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13371 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13372 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13373 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13374 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13375 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13376 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13377 (REG_CLASS_FROM_CONSTRAINT): Delete.
13378
13379 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13380
13381 PR middle-end/47581
13382 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13383 if frame size is 0 in a leaf function.
13384
13385 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13386
13387 PR pch/14940
13388 * config/alpha/host-osf.c: New file.
13389 * config/alpha/x-osf: New file.
13390 * config.host (alpha*-dec-osf*): Use it.
13391
13392 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13393
13394 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13395 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13396 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13397 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13398 type to const_rtx.
13399 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13400
13401 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13402
13403 * config/stormy16/constraints.md: New file.
13404 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13405 Use satisfies_constraint_Q and satisfies_constraint_R.
13406 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13407 Delete.
13408 (xstormy16_legitiamte_address_p): Declare.
13409 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13410 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13411 (EXTRA_CONSTRAINT): Delete.
13412 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13413 Un-staticize.
13414 (xstormy16_extra_constraint_p): Delete.
13415
13416 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13417
13418 PR tree-optimization/46494
13419 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13420 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13421 (pass_rtl_loop_done): Add TODO_verify_flow.
13422 * fwprop.c (pass_rtl_fwprop): Likewise.
13423 * modulo-sched.c (pass_sms): Likewise.
13424 * tree-ssa-dom.c (pass_dominator): Likewise.
13425 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13426 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13427 (pass_tree_loop_done): Likewise.
13428 * tree-ssa-pre.c (execute_pre): Likewise.
13429 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13430 * tree-ssa-sink.c (pass_sink_code): Likewise.
13431 * tree-vrp.c (pass_vrp): Likewise.
13432
13433 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13434
13435 * config/v850/constraints.md: New file.
13436 * config/v850/v850.md: Include it.
13437 * config/v850/predicates.md (reg_or_0_operand): Use
13438 satisfies_constraint_G.
13439 (special_symbolref_operand): Use satisfies_constraint_K.
13440 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13441 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13442 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13443 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13444 (EXTRA_CONSTRAINT): Delete.
13445 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13446 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13447 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13448
13449 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13450
13451 PR target/47696
13452 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13453 description.
13454
13455 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13456
13457 * config/mcore/constraints.md: New file.
13458 * config/mcore/mcore.md: Include it.
13459 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13460 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13461 (REG_CLASS_FROM_LETTER): Delete.
13462 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13463 insn_const_int_ok_for_constraint.
13464 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13465 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13466 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13467 (EXTRA_CONSTRAINT): Delete.
13468
13469 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13470
13471 PR ada/41929
13472 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13473 (IS_SIGHANDLER): Define.
13474 (sparc64_is_sighandler): New function, split off from
13475 sparc64_fallback_frame_state.
13476 (sparc_is_sighandler): New function, split off from
13477 sparc_fallback_frame_state.
13478 (sparc64_fallback_frame_state): Merge with ...
13479 (sparc_fallback_frame_state): ... this into ...
13480 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13481 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13482 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13483 stack instead of hardcoded offsets.
13484
13485 2011-02-14 Andriy Gapon <avg@freebsd.org>
13486
13487 PR target/45808
13488 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13489
13490 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13491
13492 * configure: Regenerate.
13493
13494 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13495
13496 PR driver/45731
13497 * gcc.c (asm_options): Correct spec matching --target-help.
13498
13499 2011-02-12 Martin Jambor <mjambor@suse.cz>
13500
13501 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13502 to gimple call error.
13503
13504 2011-02-12 Mike Stump <mikestump@comcast.net>
13505
13506 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13507 comments in backslash regions.
13508
13509 2011-02-12 Mike Stump <mikestump@comcast.net>
13510 Jakub Jelinek <jakub@redhat.com>
13511 Iain Sandoe <iains@gcc.gnu.org>
13512
13513 PR target/47324
13514 * dwarf2out.c (output_cfa_loc): When required, apply the
13515 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13516 (output_loc_sequence): Likewise.
13517 (output_loc_operands_raw): Likewise.
13518 (output_loc_sequence_raw): Likewise.
13519 (output_cfa_loc): Likewise.
13520 (output_loc_list): Suppress register number adjustment when
13521 calling output_loc_sequence()
13522 (output_die): Likewise.
13523
13524 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13525
13526 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13527 Remove macros.
13528 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13529 xtensa_memory_move_cost): New functions.
13530 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13531
13532 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13533
13534 PR lto/47225
13535 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13536 in the current directory.
13537 * configure: Rebuilt.
13538
13539 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13540
13541 * config/darwin.c (darwin_override_options): Add a hunk missed
13542 from the commit of r168571. Trim comment line lengths and
13543 correct indents of the preceding block.
13544
13545 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13546
13547 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13548 the switch.
13549
13550 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13551
13552 * common.opt (nostartfiles): New Driver option.
13553
13554 2011-02-11 Xinliang David Li <davidxl@google.com>
13555
13556 PR tree-optimization/47707
13557 * tree-chrec.c (convert_affine_scev): Keep type precision.
13558
13559 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13560
13561 PR tree-optimization/47420
13562 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13563
13564 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13565
13566 PR rtl-optimization/47614
13567 * rtl.h (check_for_inc_dec): Declare.
13568 * dse.c (check_for_inc_dec): Externalize...
13569 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13570 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13571
13572 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13573
13574 PR driver/47678
13575 * gcc.c (main): Do not compile inputs if there were errors in
13576 option handling.
13577 * opts-common.c (read_cmdline_option): Check for wrong language
13578 after other error checks.
13579
13580 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13581
13582 * cgraph.c: Fix comment typos.
13583 * cgraph.h: Likewise.
13584 * cgraphunit.c: Likewise.
13585 * ipa-cp.c: Likewise.
13586 * ipa-inline.c: Likewise.
13587 * ipa-prop.c: Likewise.
13588 * ipa-pure-const.c: Likewise.
13589 * ipa-ref.c: Likewise.
13590 * ipa-reference.c: Likewise.
13591
13592 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13593
13594 PR debug/47684
13595 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13596
13597 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13598
13599 PR testsuite/47400
13600 * doc/sourcebuild.texi (Require Support): Document
13601 dg-require-ascii-locale.
13602
13603 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13604
13605 * doc/lto.texi (Write summary): Fix missing parentheses.
13606
13607 2011-02-10 DJ Delorie <dj@redhat.com>
13608
13609 * config/m32c/m32c.c (m32c_option_override): Disable
13610 -fcombine-stack-adjustments until flag value tracking and compare
13611 optimization can be rewritten.
13612
13613 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13614
13615 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13616 PROCESSOR_POWER7.
13617 (PROCESSOR_DEFAULT64): Likewise.
13618
13619 2011-02-10 Richard Henderson <rth@redhat.com>
13620
13621 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13622 change from 2011-02-03.
13623 * config/rx/rx.c (flags_from_code): Likewise.
13624 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13625 is valid, n/pz otherwise.
13626 (rx_select_cc_mode): Return CCmode if Y is not zero.
13627
13628 2011-02-10 Richard Guenther <rguenther@suse.de>
13629
13630 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13631
13632 2011-02-10 Richard Guenther <rguenther@suse.de>
13633
13634 PR tree-optimization/47677
13635 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13636
13637 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13638
13639 PR target/47665
13640 * combine.c (make_compound_operation): Only change shifts into
13641 multiplication for SCALAR_INT_MODE_P.
13642
13643 2011-02-10 Jie Zhang <jie@codesourcery.com>
13644
13645 PR testsuite/47622
13646 Revert
13647 2011-02-05 Jie Zhang <jie@codesourcery.com>
13648 PR debug/42631
13649 * web.c (entry_register): Don't clobber the number of the
13650 first uninitialized reference in used[].
13651
13652 2011-02-09 Richard Guenther <rguenther@suse.de>
13653
13654 PR tree-optimization/47664
13655 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13656 all edges again.
13657
13658 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13659
13660 PR target/46481
13661 PR target/47032
13662 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13663 PROCESSOR_POWER7.
13664 (PROCESSOR_DEFAULT64): Same.
13665 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13666
13667 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13668
13669 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13670
13671 2011-02-09 Martin Jambor <mjambor@suse.cz>
13672
13673 PR middle-end/45505
13674 * tree-sra.c (struct access): New flags grp_scalar_read and
13675 grp_scalar_write. Changed description of assignment read and write
13676 flags.
13677 (dump_access): Dump new flags, reorder all of them.
13678 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13679 to detect multiple scalar reads.
13680 (analyze_access_subtree): Use the new scalar read write flags instead
13681 of the old flags. Adjusted comments.
13682
13683 2011-02-08 DJ Delorie <dj@redhat.com>
13684
13685 PR target/47548
13686 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13687 patterns.
13688
13689 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13690
13691 * config/m68k/uclinux.opt: New.
13692 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13693
13694 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13695
13696 * config/cris/elf.opt (sim): New Driver option.
13697
13698 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13699
13700 * config/xtensa/elf.opt: New.
13701 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13702
13703 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13704
13705 * config/vax/elf.opt: New.
13706 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13707
13708 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13709
13710 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13711
13712 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13713
13714 * config/gnu-user.opt: New.
13715 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13716 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13717 *-*-uclinux*): Use gnu-user.opt.
13718
13719 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13720
13721 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13722 * config/i386/gnu.h (CPP_SPEC): Likewise.
13723
13724 2011-02-08 Ian Lance Taylor <iant@google.com>
13725
13726 * common.opt (fcx-limited-range): Add SetByCombined flag.
13727 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13728 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13729 (fassociative-math, freciprocal-math): Likewise.
13730 (funsafe-math-optimizations): Likewise.
13731 * opth-gen.awk: Handle SetByCombined.
13732 * optc-gen.awk: Likewise.
13733 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13734 (set_unsafe_math_optimizations_flags): Likewise.
13735 * doc/options.texi (Option properties): Document SetByCombined.
13736
13737 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13738
13739 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13740 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13741 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13742 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13743 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13744
13745 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13746
13747 PR tree-optimization/46834
13748 PR tree-optimization/46994
13749 PR tree-optimization/46995
13750 * graphite-sese-to-poly.c (used_outside_reduction): New.
13751 (detect_commutative_reduction): Call used_outside_reduction.
13752 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13753 translate_scalar_reduction_to_array only when at least one
13754 loop-phi/close-phi tuple has been detected.
13755
13756 2011-02-08 Richard Guenther <rguenther@suse.de>
13757
13758 PR middle-end/47639
13759 * tree-vect-generic.c (expand_vector_operations_1): Update
13760 stmts here ...
13761 (expand_vector_operations): ... not here. Cleanup EH info
13762 and the CFG if required.
13763
13764 2011-02-08 Richard Guenther <rguenther@suse.de>
13765
13766 PR tree-optimization/47641
13767 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13768 require type compatibility.
13769
13770 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13771
13772 * gimple-low.c (lower_function_body): Don't remove the location of
13773 the return statement here.
13774 (lower_gimple_return): Do it here instead but only if the return
13775 statement is actually used twice.
13776
13777 2011-02-08 Richard Guenther <rguenther@suse.de>
13778
13779 PR tree-optimization/47632
13780 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13781 unused up_to_stmt parameter, return whether cfg-cleanup is
13782 necessary, remove EH info properly.
13783 (forward_propagate_into_gimple_cond): Adjust caller.
13784 (forward_propagate_into_cond): Likewise.
13785 (forward_propagate_comparison): Likewise.
13786 (tree_ssa_forward_propagate_single_use_vars): Make
13787 forward_propagate_comparison case similar to the two others.
13788
13789 2011-02-08 Nick Clifton <nickc@redhat.com>
13790
13791 * config/mn10300/mn10300.opt (mliw): New command line option.
13792 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13793 (liw_bundling): New automaton.
13794 (liw): New attribute.
13795 (liw_op): New attribute.
13796 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13797 (movsi_internal): Add LIW attributes.
13798 (andsi3): Likewise.
13799 (iorsi3): Likewise.
13800 (xorsi3): Likewise.
13801 (addsi3): Separate register and immediate alternatives.
13802 Add LIW attributes.
13803 (subsi3): Likewise.
13804 (cmpsi): Likewise.
13805 (aslsi3): Likewise.
13806 (lshrsi3): Likewise.
13807 (ashrsi3): Likewise.
13808 (liw): New pattern.
13809 * config/mn10300/mn10300.c (liw_op_names): New
13810 (mn10300_print_operand): Handle 'W' operand descriptor.
13811 (extract_bundle): New function.
13812 (check_liw_constraints): New function.
13813 (liw_candidate): New function.
13814 (mn10300_bundle_liw): New function.
13815 (mn10300_reorg): New function.
13816 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13817 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13818 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13819 __LIW__ or __NO_LIW__.
13820 * doc/invoke.texi: Describe the -mliw command line option.
13821
13822 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13823
13824 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13825 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13826 pthread_mutex_unlock): Remove.
13827 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13828 * config/pa/t-pa64: Likewise.
13829 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13830 shared libc if not linking against libpthread.
13831 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13832
13833 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13834
13835 PR target/47558
13836 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13837 on 10.6 and later to ensure that we always use the unwinder from
13838 the system. Only add -no_compact_unwind when tarteting darwin
13839 10.6 or later.
13840
13841 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13842
13843 PR target/46997
13844 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13845 (vec_interleave_lowv2sf): Ditto.
13846 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13847 (vec_extract_oddv2sf): Ditto.
13848
13849 2011-02-07 Mike Stump <mikestump@comcast.net>
13850
13851 PR target/42333
13852 Add __ieee_divdc3 entry point.
13853 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13854 entry point.
13855 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13856 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13857 * config/darwin.c (darwin_rename_builtins): Add.
13858 * config/darwin-protos.h (darwin_rename_builtins): Add.
13859
13860 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13861
13862 PR target/47636
13863 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13864 for the condition.
13865
13866 2011-02-07 Mike Stump <mikestump@comcast.net>
13867
13868 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13869
13870 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13871
13872 PR target/47534
13873 * config/avr/libgcc.S (exit): Move .endfunc
13874
13875 2011-02-07 Richard Guenther <rguenther@suse.de>
13876
13877 PR tree-optimization/47615
13878 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13879 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13880 (run_scc_vn): Initialize it.
13881 (visit_reference_op_load): Use it.
13882 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13883
13884 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13885
13886 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13887 DImode trapping arithmetic libfuncs.
13888
13889 2011-02-07 Richard Guenther <rguenther@suse.de>
13890
13891 PR tree-optimization/47621
13892 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13893 two duplicates ...
13894 (execute_update_addresses_taken): ... here. Make it more
13895 conservative in what we accept.
13896
13897 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13898
13899 * config/sparc/freebsd.h (ASM_SPEC): Define.
13900 * config/sparc/vxworks.h (ASM_SPEC): Define.
13901
13902 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13903
13904 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13905
13906 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13907
13908 * doc/invoke.texi: Remove reference to compiler internals from
13909 user documentation.
13910
13911 * reg-notes.def: Remove REG_VALUE_PROFILE.
13912 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13913
13914 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13915
13916 PR middle-end/47610
13917 * varasm.c (default_section_type_flags): If decl is NULL,
13918 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13919
13920 2011-02-05 Jie Zhang <jie@codesourcery.com>
13921
13922 PR debug/42631
13923 * web.c (entry_register): Don't clobber the number of the
13924 first uninitialized reference in used[].
13925
13926 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13927
13928 PR tree-optimization/46194
13929 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13930 (build_classic_dist_vector_1): Do not represent classic distance
13931 vectors when the access functions are variating in different loops.
13932
13933 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13934
13935 * config/mips/iris6.opt: New.
13936 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13937
13938 2011-02-04 Richard Henderson <rth@redhat.com>
13939 Steve Ellcey <sje@cup.hp.com>
13940
13941 PR target/46997
13942 * config/ia64/predicates.md (mux1_brcst_element): New.
13943 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13944 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13945 (ia64_unpack_sign): New.
13946 (ia64_expand_unpack): Rewrite using new routines.
13947 (ia64_expand_widen_sum): Ditto.
13948 (ia64_expand_dot_prod_v8qi): Ditto.
13949 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13950 routines, add endian check.
13951 (pmpy2_even): Rename from pmpy2_r, add endian check.
13952 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13953 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13954 (vec_widen_smult_hi_v4hi): Ditto.
13955 (vec_widen_umult_lo_v4hi): Ditto.
13956 (vec_widen_umult_hi_v4hi): Ditto.
13957 (mulv2si3): Change endian checks.
13958 (sdot_prodv4hi): Rewrite with new calls.
13959 (udot_prodv4hi): New.
13960 (vec_pack_ssat_v4hi): Add endian check.
13961 (vec_pack_usat_v4hi): Ditto.
13962 (vec_pack_ssat_v2si): Ditto.
13963 (max1_even): Rename from max1_r, add endian check.
13964 (max1_odd): Rename from max1_l, add endian check.
13965 (*mux1_rev): Format change.
13966 (*mux1_mix): Ditto.
13967 (*mux1_shuf): Ditto.
13968 (*mux1_alt): Ditto.
13969 (*mux1_brcst_v8qi): Use new predicate.
13970 (vec_extract_evenv8qi): Remove endian check.
13971 (vec_extract_oddv8qi): Ditto.
13972 (vec_interleave_lowv4hi): Format change.
13973 (vec_interleave_highv4hi): Ditto.
13974 (mix2_even): Rename from mix2_r, add endian check.
13975 (mix2_odd): Rename from mux2_l, add endian check.
13976 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13977 (vec_extract_evenodd_helper): Format change.
13978 (vec_extract_evenv4hi): Remove endian check.
13979 (vec_extract_oddv4hi): Remove endian check.
13980 (vec_interleave_lowv2si): Format change.
13981 (vec_interleave_highv2si): Format change.
13982 (vec_initv2si): Remove endian check.
13983 (vecinit_v2si): Add endian check.
13984 (reduc_splus_v2sf): Add endian check.
13985 (reduc_smax_v2sf): Ditto.
13986 (reduc_smin_v2sf): Ditto.
13987 (vec_initv2sf): Remove endian check.
13988 (fpack): Add endian check.
13989 (fswap): Add endian check.
13990 (vec_interleave_highv2sf): Add endian check.
13991 (vec_interleave_lowv2sf): Add endian check.
13992 (fmix_lr): Add endian check.
13993 (vec_setv2sf): Format change.
13994 (*vec_extractv2sf_0_be): Use shift to extract operand.
13995 (*vec_extractv2sf_1_be): New.
13996 (vec_pack_trunc_v4hi): Add endian check.
13997 (vec_pack_trunc_v2si): Format change.
13998
13999 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14000
14001 PR inline-asm/23200
14002 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14003 do bb, locus and block comparison and disallow loads if it is not set.
14004 (stmt_is_replaceable_p): New function.
14005 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14006 callers.
14007 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14008 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14009 SSA_NAME_DEF_STMT.
14010 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14011
14012 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14013
14014 * config/rs6000/xilinx.opt: New.
14015 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14016
14017 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14018
14019 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14020
14021 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14022
14023 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14024 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14025 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14026 secondary_reload_info, xtensa_secondary_reload): Remove.
14027 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14028 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14029 (xtensa_preferred_reload_class): Make static. Change return and
14030 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14031 Use CONST_DOUBLE_P predicate.
14032 (xtensa_preferred_output_reload_class): New function.
14033 (xtensa_secondary_reload): Make static.
14034
14035 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14036
14037 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14038 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14039 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14040
14041 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14042
14043 PR middle-end/31490
14044 * output.h (SECTION_RELRO): Define.
14045 (SECTION_MACH_DEP): Adjust.
14046 (get_variable_section): New prototype.
14047 * varpool.c (varpool_finalize_named_section_flags): New function.
14048 (varpool_assemble_pending_decls): Call it.
14049 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14050 * cgraphunit.c (cgraph_output_in_order): Call
14051 varpool_finalize_named_section_flags.
14052 * varasm.c (get_section): Allow section flags conflicts between
14053 relro and read-only sections if the section hasn't been declared yet.
14054 Set SECTION_OVERRIDE after diagnosing section type conflict.
14055 (get_variable_section): No longer static.
14056 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14057 readonly sections that need relocations.
14058 (decl_readonly_section_1): New function.
14059 (decl_readonly_section): Use it.
14060
14061 Revert:
14062 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14063 Steve Ellcey <sje@cup.hp.com>
14064
14065 PR middle-end/31490
14066 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14067 if section attribute used.
14068
14069 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14070
14071 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14072 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14073 (darwin_init_sections): Remove assertion.
14074
14075 2011-02-03 Nick Clifton <nickc@redhat.com>
14076
14077 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14078 lt and ge.
14079 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14080 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14081 instead of "n" and "pz".
14082 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14083 CC_FLAG_S.
14084
14085 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14086
14087 PR target/47312
14088 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14089 fma, expand FMA_EXPR as fma{,f,l} call.
14090
14091 PR lto/47274
14092 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14093 copy them into a unsigned char variable and pass address of it to
14094 lto_output_data_stream.
14095
14096 PR target/47564
14097 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14098 around backend_init_target and lang_dependent_init_target calls.
14099 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14100 (verify_cgraph_node): Don't call set_cfun here. Use
14101 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14102 Set error_found for incorrectly represented calls to thunks.
14103
14104 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14105
14106 PR debug/43092
14107 PR rtl-optimization/43494
14108 * rtl.h (for_each_inc_dec_fn): New type.
14109 (for_each_inc_dec): Declare.
14110 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14111 (for_each_inc_dec_find_inc_dec): New fn.
14112 (for_each_inc_dec_find_mem): New fn.
14113 (for_each_inc_dec): New fn.
14114 * dse.c (struct insn_size): Remove.
14115 (replace_inc_dec, replace_inc_dec_mem): Remove.
14116 (emit_inc_dec_insn_before): New fn.
14117 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14118 (canon_address): Pass mem modes to cselib_lookup.
14119 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14120 (cselib_lookup_from_insn): Likewise.
14121 (cselib_subst_to_values): Likewise.
14122 * cselib.c (find_slot_memmode): New var.
14123 (cselib_find_slot): New fn. Use it instead of
14124 htab_find_slot_with_hash everywhere.
14125 (entry_and_rtx_equal_p): Use find_slot_memmode.
14126 (autoinc_split): New fn.
14127 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14128 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14129 Deal with autoinc. Special-case recursion into MEMs.
14130 (cselib_hash_rtx): Likewise.
14131 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14132 address and MEM modes.
14133 (cselib_subst_to_values): Add memmode, pass it on.
14134 Deal with autoinc.
14135 (cselib_lookup): Add memmode argument, pass it on.
14136 (cselib_lookup_from_insn): Add memmode.
14137 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14138 (struct cselib_record_autoinc_data): New.
14139 (cselib_record_autoinc_cb): New fn.
14140 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14141 mode to cselib_lookup. Reset autoinced REGs here instead of...
14142 (cselib_process_insn): ... here.
14143 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14144 to cselib_lookup.
14145 (add_uses): Likewise, also to cselib_subst_to_values.
14146 (add_stores): Likewise.
14147 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14148 cselib_subst_to_values.
14149 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14150 * gcse.c (do_local_cprop): Adjusted.
14151 * postreload.c (reload_cse_simplify_set): Adjusted.
14152 (reload_cse_simplify_operands): Adjusted.
14153 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14154
14155 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14156
14157 PR tree-optimization/45122
14158 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14159 unsafe assumptions when there's more than one loop exit.
14160
14161 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14162
14163 PR target/47272
14164 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14165 Document using vector double with the load/store builtins, and
14166 that the load/store builtins always use Altivec instructions.
14167
14168 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14169 to use altivec memory instructions, even on VSX.
14170 (vector_altivec_store_<mode>): Ditto.
14171
14172 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14173 function.
14174
14175 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14176 V2DF, V2DI support to load/store overloaded builtins.
14177
14178 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14179 altivec load/store builtins for V2DF/V2DI types.
14180
14181 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14182 set avoid indexed addresses on power6 if -maltivec.
14183 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14184 vector_altivec_load/vector_altivec_store builtins.
14185 (altivec_expand_st_builtin): Ditto.
14186 (altivec_expand_builtin): Add VSX memory builtins.
14187 (rs6000_init_builtins): Add V2DI types to internal types.
14188 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14189 load/store builtins.
14190 (rs6000_address_for_altivec): Insure memory address is appropriate
14191 for Altivec.
14192
14193 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14194 vec_vsx_ld and vec_vsx_st.
14195 (vsx_store_<mode>): Ditto.
14196
14197 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14198 variables to hold long long types for VSX vector memory builtins.
14199 (RS6000_BTI_unsigned_long_long): Ditto.
14200 (long_long_integer_type_internal_node): Ditti.
14201 (long_long_unsigned_type_internal_node): Ditti.
14202
14203 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14204 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14205 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14206
14207 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14208 short cuts.
14209 (vec_vsx_st): Ditto.
14210
14211 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14212
14213 * config/pa/pa-hpux10.opt: New.
14214 * config/hpux11.opt (pthread): New Driver option.
14215 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14216 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14217
14218 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14219
14220 * config/ia64/vms.opt: New.
14221 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14222
14223 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14224
14225 PR target/47580
14226 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14227 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14228 generator functions.
14229 (vsx_floatuns<VSi><mode>2): Ditto.
14230 (vsx_fix_trunc<mode><VSi>2): Ditto.
14231 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14232
14233 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14234
14235 * config/i386/djgpp.opt (posix): New Driver option.
14236
14237 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14238
14239 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14240 Move to the unsupported targets list.
14241
14242 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14243
14244 PR rtl-optimization/47525
14245 * df-scan.c: Update copyright years.
14246 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14247 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14248
14249 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14250
14251 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14252 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14253 (ASM_OUTPUT_ASCII): Remove.
14254 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14255
14256 2011-02-02 Jeff Law <law@redhat.com>
14257
14258 PR middle-end/47543
14259 * reload.c (find_reloads_address): Handle reg+d address where both
14260 components are invalid by reloading the entire address.
14261
14262 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14263 Richard Guenther <rguenther@suse.de>
14264
14265 PR tree-optimization/40979
14266 PR bootstrap/47044
14267 * passes.c (init_optimization_passes): After LIM call copy_prop
14268 and DCE to clean up.
14269 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14270
14271 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14272
14273 PR tree-optimization/47576
14274 PR tree-optimization/47555
14275 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14276 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14277 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14278 * tree-scalar-evolution.c (follow_ssa_edge): Use
14279 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14280
14281 2011-02-02 Richard Guenther <rguenther@suse.de>
14282
14283 PR tree-optimization/47566
14284 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14285
14286 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14287
14288 PR debug/47106
14289 PR debug/47402
14290 * tree-inline.c (declare_return_variable): Remove unused caller
14291 variable.
14292
14293 PR debug/47106
14294 PR debug/47402
14295 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14296 * cfgexpand.c (account_used_vars_for_block): Use them.
14297 * tree-nrv.c (tree_nrv): Likewise.
14298 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14299 (dump_scope_block): Likewise.
14300 (remove_unused_locals): Likewise.
14301
14302 PR debug/47106
14303 PR debug/47402
14304 * tree-inline.c (declare_return_variable): Add result decl to
14305 local decls only once.
14306 * gimple-low.c (record_vars_into): Mark newly-created variables
14307 as referenced.
14308
14309 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14310
14311 PR debug/47498
14312 PR debug/47501
14313 PR debug/45136
14314 PR debug/45130
14315 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14316 debug insns.
14317 (no_real_insns_p, schedule_block, set_priorities): Drop special
14318 treatment of boundary debug insns.
14319 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14320 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14321 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14322 (BOUNDARY_DEBUG_INSN_P): Likewise.
14323 (SCHEDULE_DEBUG_INSN_P): Likewise.
14324 * sched-rgn.c (init_ready_list): Drop special treatment of
14325 boundary debug insns.
14326 * final.c (rest_of_clean_state): Clear notes' BB.
14327
14328 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14329
14330 * config/openbsd.opt (assert=): New Driver option.
14331
14332 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14333
14334 * config/i386/nto.opt: New.
14335 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14336
14337 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14338
14339 * config/i386/netware.opt: New.
14340 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14341
14342 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14343
14344 * config/interix.opt (posix): New Driver option.
14345
14346 2011-02-01 DJ Delorie <dj@redhat.com>
14347
14348 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14349
14350 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14351 class for A0/A1.
14352
14353 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14354
14355 PR tree-optimization/47561
14356 * toplev.c (process_options): Print the Graphite flags. Add
14357 flag_loop_flatten to the list of options requiring Graphite.
14358
14359 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14360
14361 * config/i386/cygming.opt (posix): New Driver option.
14362
14363 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14364
14365 * config/arm/vxworks.opt: New.
14366 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14367
14368 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14369
14370 * config/alpha/elf.opt: New.
14371 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14372 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14373
14374 2011-02-01 Richard Guenther <rguenther@suse.de>
14375
14376 PR tree-optimization/47559
14377 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14378 store-motion on references that can throw.
14379
14380 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14381
14382 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14383 * tree-pass.h (TDF_CSELIB): New macro.
14384 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14385 cselib_lookup): Check for it rather than for TDF_DETAILS.
14386
14387 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14388
14389 PR driver/47547
14390 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14391 is HOST_BIT_BUCKET.
14392
14393 * opts.c (finish_options): Don't add x_aux_base_name if it is
14394 HOST_BIT_BUCKET.
14395
14396 2011-02-01 Richard Guenther <rguenther@suse.de>
14397
14398 PR tree-optimization/47555
14399 Revert
14400 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14401
14402 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14403
14404 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14405
14406 PR gcc/46692
14407 * config/lm32/t-lm32: Add multilib for all CPU options.
14408
14409 2011-02-01 Richard Guenther <rguenther@suse.de>
14410
14411 PR tree-optimization/47541
14412 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14413 sure to have a field at offset zero.
14414
14415 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14416
14417 * config/arc/arc.opt (EB, EL): New Driver options.
14418
14419 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14420
14421 * config/alpha/osf5.opt: New.
14422 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14423
14424 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14425
14426 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14427
14428 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14429
14430 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14431 -floop-interchange.
14432 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14433 is an alias of -floop-interchange and that it requires the
14434 Graphite infrastructure.
14435 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14436 flag_loop_interchange based on the value of flag_tree_loop_linear.
14437
14438 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14439 Richard Guenther <rguenther@suse.de>
14440
14441 PR tree-optimization/47538
14442 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14443 type instead of r1type, except for comparisons. For right
14444 shifts and comparisons punt if there are mismatches in
14445 sizetype vs. non-sizetype types.
14446
14447 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14448
14449 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14450 avx_runtime.
14451
14452 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14453
14454 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14455 version number.
14456 * configure: Regenerate.
14457
14458 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14459
14460 * configure.ac (gcc_cv_ld_static_option): Define.
14461 (gcc_cv_ld_dynamic_option): Define.
14462 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14463 instead.
14464 (HAVE_LD_STATIC_DYNAMIC): Update message.
14465 (LD_STATIC_OPTION): Define.
14466 (LD_DYNAMIC_OPTION): Define.
14467 * configure: Regenerate.
14468 * config.in: Regenerate.
14469 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14470 HAVE_LD_STATIC_DYNAMIC]: Use them.
14471
14472 2011-01-31 Nick Clifton <nickc@redhat.com>
14473
14474 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14475 registers inside interrupt handlers if the handler is not a leaf
14476 function.
14477
14478 2011-01-31 Nick Clifton <nickc@redhat.com>
14479
14480 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14481 reg_renumber returning an INVALID_REGNUM.
14482
14483 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14484
14485 PR libgcj/44341
14486 * doc/install.texi: Document host options discarded when cross
14487 configuring target libraries.
14488
14489 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14490
14491 Reverted:
14492 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14493 PR debug/45136
14494 PR debug/45130
14495 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14496 debug insns.
14497 (no_real_insns_p, schedule_block, set_priorities): Drop special
14498 treatment of boundary debug insns.
14499 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14500 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14501 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14502 (BOUNDARY_DEBUG_INSN_P): Likewise.
14503 (SCHEDULE_DEBUG_INSN_P): Likewise.
14504 * sched-rgn.c (init_ready_list): Drop special treatment of
14505 boundary debug insns.
14506 * final.c (rest_of_clean-state): Clear notes' BB.
14507
14508 2011-01-31 Alan Modra <amodra@gmail.com>
14509
14510 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14511 toc relative expressions as we do in print_operand_address.
14512
14513 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14514
14515 * doc/extend.texi: Follow spelling conventions.
14516 * doc/invoke.texi: Fix a typo.
14517
14518 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14519
14520 * config/hpux11.opt: New.
14521 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14522 ia64*-*-hpux*): Use hpux11.opt.
14523
14524 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14525
14526 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14527 to tmake_file.
14528
14529 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14530
14531 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14532 support sites.
14533
14534 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14535
14536 * doc/install.texi (Binaries): Remove outdated reference for
14537 Motorola 68HC11/68HC12 downloads.
14538
14539 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14540
14541 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14542 Drepper's paper.
14543
14544 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14545
14546 PR bootstrap/47147
14547 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14548 used by NetBSD.
14549
14550 2011-01-28 Ahmad Sharif <asharif@google.com>
14551
14552 * value-prof.c (check_counter): Corrected error message.
14553
14554 2011-01-29 Jie Zhang <jie@codesourcery.com>
14555
14556 * config/arm/arm.c (arm_legitimize_reload_address): New.
14557 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14558 arm_legitimize_reload_address.
14559 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14560
14561 2011-01-28 Ian Lance Taylor <iant@google.com>
14562
14563 * godump.c (go_define): Ignore macros whose definitions include
14564 two adjacent operands.
14565
14566 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14567
14568 PR target/42894
14569 * varasm.c (force_const_mem): Store copy of x in desc->constant
14570 instead of x itself.
14571 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14572 itself into REG_EQUAL note.
14573
14574 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14575
14576 * config/freebsd.opt (posix, rdynamic): New Driver options.
14577
14578 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14579
14580 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14581 -Bstatic/-Bdynamic.
14582 * configure: Regenerate.
14583
14584 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14585
14586 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14587 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14588
14589 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14590
14591 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14592 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14593 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14594 (s390_preferred_reload_class): Make static. Change return and
14595 'rclass' argument type to reg_class_t.
14596
14597 2011-01-27 Jan Hubicka <jh@suse.cz>
14598
14599 PR middle-end/46949
14600 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14601 (process_function_and_variable_attributes): Check defined weakrefs.
14602
14603 2011-01-27 Martin Jambor <mjambor@suse.cz>
14604
14605 PR tree-optimization/47228
14606 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14607 build_ref_for_offset.
14608
14609 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14610
14611 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14612
14613 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14614
14615 PR rtl-optimization/46856
14616 * postreload.c (reload_combine_recognize_const_pattern): Do not
14617 separate cc0 setter and user on cc0 targets.
14618
14619 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14620
14621 PR c/43082
14622 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14623 passed a VOID_TYPE expression, immediately emit an error and
14624 return error_mark_node.
14625
14626 2011-01-26 Jeff Law <law@redhat.com>
14627
14628 PR rtl-optimization/47464
14629 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14630 rather than may_trap_p as needed.
14631
14632 2011-01-26 DJ Delorie <dj@redhat.com>
14633
14634 PR rtl-optimization/46878
14635 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14636 setter/user dependency as well.
14637
14638 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14639
14640 PR rtl-optimization/44469
14641 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14642 after removing trivially dead basic blocks.
14643
14644 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14645
14646 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14647 * config/frv/frv.h (LINK_SPEC): Likewise.
14648 * config/i386/netware.h (LINK_SPEC): Likewise.
14649 * config/m68k/linux.h (ASM_SPEC): Likewise.
14650 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14651 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14652 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14653 * config/sparc/linux.h (ASM_SPEC): Likewise.
14654 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14655 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14656
14657 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14658
14659 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14660 * config/frv/frv.h (ASM_SPEC): Likewise.
14661 * config/m68k/linux.h (ASM_SPEC): Likewise.
14662 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14663 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14664 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14665 * config/sparc/linux.h (ASM_SPEC): Likewise.
14666 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14667 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14668
14669 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14670
14671 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14672 * config/frv/frv.h (LINK_SPEC): Likewise.
14673 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14674
14675 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14676
14677 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14678 * config/frv/frv.h (ASM_SPEC): Likewise.
14679 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14680 * config/m68k/linux.h (ASM_SPEC): Likewise.
14681 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14682 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14683 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14684 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14685 * config/sparc/linux.h (ASM_SPEC): Likewise.
14686 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14687 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14688 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14689
14690 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14691
14692 PR target/46997
14693 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14694 (*mux2): Ditto.
14695 (vec_extract_evenodd_help): Ditto.
14696 (vec_extract_evenv4hi): Ditto.
14697 (vec_extract_oddv4hi): Ditto.
14698 (vec_interleave_lowv2si): Ditto.
14699 (vec_interleave_highv2si): Ditto.
14700 (vec_extract_evenv2si): Ditto.
14701 (vec_extract_oddv2si: Ditto.
14702 (vec_pack_trunc_v2si): Ditto.
14703
14704 2011-01-22 Jan Hubicka <jh@suse.cz>
14705
14706 PR target/47237
14707 * cgraph.h (cgraph_local_info): New field can_change_signature.
14708 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14709 signature can change.
14710 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14711 can change.
14712 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14713 (cgraph_function_versioning): We can not change signature of functions
14714 that don't allow that.
14715 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14716 (lto_input_node): Likewise.
14717 * ipa-inline.c (compute_inline_parameters): Compute
14718 local.can_change_signature.
14719 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14720 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14721 functions that can not change signature.
14722 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14723 init_cumulative_args): Do not use local calling conventions
14724 for functions that can not change signature.
14725
14726 2011-01-22 Jan Hubicka <jh@suse.cz>
14727
14728 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14729
14730 2011-01-26 Richard Guenther <rguenther@suse.de>
14731
14732 PR tree-optimization/47190
14733 * cgraphunit.c (process_common_attributes): New function.
14734 (process_function_and_variable_attributes): Use it.
14735
14736 2011-01-26 Richard Guenther <rguenther@suse.de>
14737
14738 PR lto/47423
14739 * cgraphbuild.c (record_eh_tables): Record reference to personality
14740 function.
14741
14742 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14743
14744 PR debug/45454
14745 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14746 non-debug insns from moving up.
14747
14748 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14749
14750 PR target/40125
14751 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14752 t-dlldir{,-x} fragment for build and add it to tmake_file.
14753 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14754 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14755 * config/i386/t-dlldir: New file.
14756 (SHLIB_DLLDIR): Define.
14757 * config/i386/t-dlldir-x: New file.
14758 (SHLIB_DLLDIR): Define.
14759 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14760 (SHLIB_INSTALL): Use it.
14761
14762 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14763
14764 PR target/47246
14765 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14766 lower bound of the allowed Thumb-2 coprocessor load/store
14767 index range to -256. Add explaining comment.
14768
14769 2011-01-25 Ian Lance Taylor <iant@google.com>
14770
14771 * godump.c (go_define): Improve lexing of macro expansion to only
14772 accept expressions which match Go spec.
14773
14774 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14775
14776 PR c++/43601
14777 * tree.c (handle_dll_attribute): Handle it.
14778 * doc/extend.texi (@item dllexport): Mention it.
14779 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14780
14781 2011-01-25 Ian Lance Taylor <iant@google.com>
14782
14783 PR tree-optimization/26854
14784 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14785 (decl_jump_unsafe): Move higher in file, with no other change.
14786 (bind): Set has_jump_unsafe_decl if appropriate.
14787 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14788 (check_earlier_gotos): Likewise.
14789 (c_check_switch_jump_warnings): Likewise.
14790
14791 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14792
14793 * doc/invoke.texi (Warning Options): Add missing hyphen.
14794 (-fprofile-dir): Minor grammatical fixes.
14795 (-fbranch-probabilities): Likewise.
14796
14797 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14798
14799 PR debug/45136
14800 PR debug/45130
14801 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14802 debug insns.
14803 (no_real_insns_p, schedule_block, set_priorities): Drop special
14804 treatment of boundary debug insns.
14805 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14806 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14807 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14808 (BOUNDARY_DEBUG_INSN_P): Likewise.
14809 (SCHEDULE_DEBUG_INSN_P): Likewise.
14810 * sched-rgn.c (init_ready_list): Drop special treatment of
14811 boundary debug insns.
14812 * final.c (rest_of_clean-state): Clear notes' BB.
14813
14814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14815
14816 * Makefile.in (LAMBDA_H): Removed.
14817 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14818 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14819 lambda-trans.o, and tree-loop-linear.o.
14820 (lto-symtab.o): Remove dependence on LAMBDA_H.
14821 (tree-loop-linear.o): Remove rule.
14822 (lambda-mat.o): Same.
14823 (lambda-trans.o): Same.
14824 (lambda-code.o): Same.
14825 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14826 (tree-vect-slp.o): Same.
14827 * hwint.h (gcd): Moved here.
14828 (least_common_multiple): Same.
14829 * lambda-code.c: Removed.
14830 * lambda-mat.c: Removed.
14831 * lambda-trans.c: Removed.
14832 * lambda.h: Removed.
14833 * tree-loop-linear.c: Removed.
14834 * lto-symtab.c: Do not include lambda.h.
14835 * omega.c (gcd): Removed.
14836 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14837 * tree-data-ref.c (print_lambda_vector): Moved here.
14838 (lambda_vector_copy): Same.
14839 (lambda_matrix_copy): Same.
14840 (lambda_matrix_id): Same.
14841 (lambda_vector_first_nz): Same.
14842 (lambda_matrix_row_add): Same.
14843 (lambda_matrix_row_exchange): Same.
14844 (lambda_vector_mult_const): Same.
14845 (lambda_vector_negate): Same.
14846 (lambda_matrix_row_negate): Same.
14847 (lambda_vector_equal): Same.
14848 (lambda_matrix_right_hermite): Same.
14849 * tree-data-ref.h: Do not include lambda.h.
14850 (lambda_vector): Moved here.
14851 (lambda_matrix): Same.
14852 (dependence_level): Same.
14853 (lambda_transform_legal_p): Removed declaration.
14854 (lambda_collect_parameters): Same.
14855 (lambda_compute_access_matrices): Same.
14856 (lambda_vector_gcd): Same.
14857 (lambda_vector_new): Same.
14858 (lambda_vector_clear): Same.
14859 (lambda_vector_lexico_pos): Same.
14860 (lambda_vector_zerop): Same.
14861 (lambda_matrix_new): Same.
14862 * tree-flow.h (least_common_multiple): Removed declaration.
14863 * tree-parloops.c (lambda_trans_matrix): Moved here.
14864 (LTM_MATRIX): Same.
14865 (LTM_ROWSIZE): Same.
14866 (LTM_COLSIZE): Same.
14867 (LTM_DENOMINATOR): Same.
14868 (lambda_trans_matrix_new): Same.
14869 (lambda_matrix_vector_mult): Same.
14870 (lambda_transform_legal_p): Same.
14871 * tree-pass.h (pass_linear_transform): Removed declaration.
14872 * tree-ssa-loop.c (tree_linear_transform): Removed.
14873 (gate_tree_linear_transform): Removed.
14874 (pass_linear_transform): Removed.
14875 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14876 flag_loop_interchange.
14877
14878 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14879
14880 PR tree-optimization/47265
14881 PR tree-optimization/47443
14882 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14883 if name still has some uses.
14884
14885 2011-01-25 Martin Jambor <mjambor@suse.cz>
14886
14887 PR tree-optimization/47382
14888 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14889 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14890
14891 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14892
14893 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14894 sjlj_except_unwind_info.
14895
14896 2011-01-25 Richard Guenther <rguenther@suse.de>
14897
14898 PR tree-optimization/47426
14899 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14900 visible functions results escape.
14901
14902 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14903
14904 PR target/45701
14905 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14906 (arm_get_frame_offsets): Use it.
14907
14908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14909 Jakub Jelinek <jakub@redhat.com>
14910
14911 PR tree-optimization/47271
14912 * tree-if-conv.c (bb_postdominates_preds): New.
14913 (if_convertible_bb_p): Call bb_postdominates_preds.
14914 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14915 (predicate_scalar_phi): Call bb_postdominates_preds.
14916
14917 2011-01-25 Nick Clifton <nickc@redhat.com>
14918
14919 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14920 * config/rx/rx.c (rx_function_value): Likewise.
14921 (rx_promote_function_mode): Likewise.
14922 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14923 in order to make it legitimate.
14924 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14925 make sure that the first operand is the same as the result register.
14926 (addsi3_unspec): Delete.
14927 (subdi3): Do not accept immediate operands.
14928 (subdi3_internal): Likewise.
14929
14930 2011-01-25 Jeff Law <law@redhat.com>
14931
14932 PR rtl-optimization/37273
14933 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14934 handle them like argument loads from stack slots. Do not double
14935 count memory for memory constants and argument loads from stack slots.
14936
14937 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14938
14939 PR tree-optimization/47427
14940 PR tree-optimization/47428
14941 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14942 coalesce if the new root var would be TREE_READONLY.
14943
14944 2011-01-25 Richard Guenther <rguenther@suse.de>
14945
14946 PR middle-end/47414
14947 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14948 correct type for TBAA.
14949
14950 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14951
14952 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14953 (close_phi_written_to_memory): Call for_each_index with
14954 dr_indices_valid_in_loop.
14955
14956 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14957
14958 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14959 when it is initialized.
14960
14961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14962
14963 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14964 call to graphite_find_data_references_in_stmt.
14965 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14966 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14967 call to graphite_find_data_references_in_stmt.
14968 (analyze_drs_in_stmts): Same.
14969 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14970 in which the scalar analysis of indices is performed.
14971 (create_data_ref): Same. Update call to dr_analyze_indices.
14972 (find_data_references_in_stmt): Update call to create_data_ref.
14973 (graphite_find_data_references_in_stmt): Same.
14974 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14975 declaration.
14976 (create_data_ref): Same.
14977 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14978 call to create_data_ref.
14979
14980 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14981
14982 * graphite-sese-to-poly.c (build_poly_scop): Move
14983 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14984
14985 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14986
14987 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14988 VAR_DECL, PARM_DECL, and RESULT_DECL.
14989
14990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14991
14992 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14993 in a reduction PBB.
14994 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14995 that have already been marked as PBB_IS_REDUCTION.
14996
14997 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14998
14999 * graphite-scop-detection.c (same_close_phi_node): New.
15000 (remove_duplicate_close_phi): New.
15001 (make_close_phi_nodes_unique): New.
15002 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15003
15004 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15005
15006 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15007 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15008 of both data references to be the same.
15009
15010 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15011
15012 * graphite-dependences.c (build_lexicographical_constraint): Remove
15013 the gdim parameter.
15014 (build_lexicographical_constraint): Adjust call to
15015 ppl_powerset_is_empty.
15016 (dependence_polyhedron): Same.
15017 (graphite_legal_transform_dr): Same.
15018 (graphite_carried_dependence_level_k): Same.
15019 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15020 parameter.
15021 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15022
15023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15024
15025 * graphite-sese-to-poly.c
15026 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15027 (close_phi_written_to_memory): New.
15028 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15029 and unshare_expr.
15030
15031 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15032
15033 * doc/install.texi: Update the expected version number of PPL to 0.11.
15034 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15035 #if PPL_VERSION_MINOR < 11.
15036
15037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15038
15039 * graphite-dependences.c: Include graphite-cloog-util.h.
15040 (new_poly_ddr): Inlined into dependence_polyhedron.
15041 (free_poly_ddr): Moved close by new_poly_ddr.
15042 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15043 Early return NULL when ppl_powerset_is_empty returns true.
15044 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15045 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15046 (graphite_legal_transform_dr): Call new_poly_ddr.
15047 (graphite_carried_dependence_level_k): Same.
15048 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15049 (dot_transformed_deps_stmt_1): Removed.
15050 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15051 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15052 (dot_deps_1): Call dot_deps_2.
15053 * Makefile.in (graphite-dependences.o): Add missing dependence on
15054 graphite-cloog-util.h.
15055
15056 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15057
15058 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15059 (build_lexicographical_constraint): Same.
15060 (dependence_polyhedron_1): Same.
15061 (graphite_legal_transform_dr): Same.
15062 (graphite_carried_dependence_level_k): Same.
15063 * graphite-ppl.c (ppl_powerset_is_empty): New.
15064 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15065 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15066
15067 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15068
15069 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15070 the "a followed by b" relation and document it.
15071
15072 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15073
15074 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15075 iteration when the bag of constraints is empty.
15076
15077 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15078
15079 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15080
15081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15082
15083 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15084 nest and two loop depths as parameters.
15085 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15086 lst_perfect_nestify.
15087
15088 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15089
15090 * graphite-dependences.c (print_pddr): Call
15091 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15092
15093 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15094
15095 * graphite-ppl.c (debug_gmp_value): New.
15096 * graphite-ppl.h (debug_gmp_value): Declared.
15097
15098 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15099
15100 * doc/install.texi: Document availability of cloog-0.16.
15101
15102 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15103
15104 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15105 invalid postdominance info.
15106
15107 2011-01-24 Jan Hubicka <jh@suse.cz>
15108
15109 PR c/21659
15110 * doc/extend.texi (weak pragma): Drop claim that it must
15111 appear before definition.
15112 * varasm.c (merge_weak, declare_weak): Only sanity check
15113 that DECL is not output at a time it is declared weak.
15114
15115 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15116
15117 * machmode.def: Fixed comments.
15118
15119 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15120
15121 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15122
15123 2011-01-24 Paul Koning <ni1d@arrl.net>
15124
15125 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15126 WORDS_BIG_ENDIAN.
15127
15128 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15129
15130 PR target/46519
15131 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15132 (block_info): Add scanned and prev.
15133 (move_or_delete_vzeroupper_2): Return if the basic block
15134 has been scanned and the upper 128bit state is unchanged
15135 from the last scan.
15136 (move_or_delete_vzeroupper_1): Return true if the exit
15137 state is changed.
15138 (move_or_delete_vzeroupper): Visit basic blocks using the
15139 work-list based algorithm based on vt_find_locations in
15140 var-tracking.c.
15141
15142 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15143
15144 2011-01-24 Nick Clifton <nickc@redhat.com>
15145
15146 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15147 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15148 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15149 then define __v850e1__.
15150 * doc/invoke.texi: Document -mv850es.
15151
15152 2011-01-24 Richard Henderson <rth@redhat.com>
15153
15154 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15155 compound unordered comparisons.
15156 * config/rx/rx.c (rx_split_fp_compare): Remove.
15157 * config/rx/rx-protos.h: Update.
15158 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15159 (cbranchsf4): Don't call rx_split_fp_compare.
15160 (*cbranchsf4): Use rx_split_cbranch.
15161 (*cmpsf): Don't accept "i" constraint.
15162 (*conditional_branch): Only valid after reload.
15163 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15164
15165 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15166
15167 PR target/47385
15168 * config/rs6000/altivec.md (vector constant splitters): Add
15169 support for creating vector single precision constants if -mvsx is
15170 used and we would create the constant using Altivec primitives.
15171
15172 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15173 Richard Sandiford <rdsandiford@googlemail.com>
15174
15175 PR rtl-optimization/47166
15176 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15177 mechanism for PRE_MODIFY and POST_MODIFY.
15178 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15179 reloadreg.
15180
15181 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15182
15183 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15184
15185 2011-01-22 Jan Hubicka <jh@suse.cz>
15186
15187 PR lto/47333
15188 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15189
15190 2011-01-22 Jan Hubicka <jh@suse.cz>
15191
15192 PR tree-optimization/43884
15193 PR lto/44334
15194 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15195 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15196
15197 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15198
15199 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15200 * config/s390/s390.c (s390_register_move_cost,
15201 s390_memory_move_cost): New.
15202 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15203
15204 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15205
15206 PR middle-end/47401
15207 * except.c (sjlj_assign_call_site_values): Move setting the
15208 crtl->uses_eh_lsda flag to ...
15209 (sjlj_mark_call_sites): ... here.
15210 (sjlj_emit_function_enter): Support NULL dispatch label.
15211 (sjlj_build_landing_pads): In a function with no landing pads
15212 that still has must-not-throw regions, generate code to register
15213 a personality function with empty LSDA.
15214
15215 2011-01-21 Richard Henderson <rth@redhat.com>
15216
15217 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15218
15219 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15220
15221 * compare-elim.c: New file.
15222 * Makefile.in (OBJS-common): Add it.
15223 (compare-elim.o): New.
15224 * common.opt (fcompare-elim): New.
15225 * opts.c (default_options_table): Add OPT_fcompare_elim.
15226 * tree-pass.h (pass_compare_elim_after_reload): New.
15227 * passes.c (init_optimization_passes): Add it.
15228 * recog.h: Protect against re-inclusion.
15229 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15230 * doc/invoke.texi (-fcompare-elim): Document it.
15231 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15232 * doc/tm.texi: Rebuild.
15233
15234 2011-01-22 Nick Clifton <nickc@redhat.com>
15235
15236 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15237 rx_split_fp_compare.
15238
15239 2011-01-22 Nick Clifton <nickc@redhat.com>
15240
15241 * config/rx/rx.md (UNSPEC_CONST): New.
15242 (deallocate_and_return): Wrap the amount popped off the stack in
15243 an UNSPEC_CONST in order to stop it being rejected by
15244 -mmax-constant-size.
15245 (pop_and_return): Add a "(return)" rtx.
15246 (call): Drop the immediate operand.
15247 (call_internal): Likewise.
15248 (call_value): Likewise.
15249 (call_value_internal): Likewise.
15250 (sibcall_internal): Likewise.
15251 (sibcall_value_internal): Likewise.
15252 (sibcall): Likewise. Generate an explicit call using
15253 sibcall_internal.
15254 (sibcall_value): Likewise.
15255 (mov<>): FAIL if a constant operand is not legitimate.
15256 (addsi3_unpsec): New pattern.
15257
15258 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15259 (ok_for_max_constant): New function.
15260 (gen_safe_add): New function.
15261 (rx_expand_prologue): Use gen_safe_add.
15262 (rx_expand_epilogue): Likewise.
15263 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15264 UNSPEC CONSTs.
15265
15266 2011-01-21 Jeff Law <law@redhat.com>
15267
15268 PR tree-optimization/47053
15269 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15270 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15271 statements are deleted.
15272 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15273 is nonempty, then purge dead edges and cleanup the CFG.
15274
15275 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15276
15277 PR debug/47402
15278 Temporarily revert:
15279 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15280 PR debug/47106
15281 * tree-dfa.c (create_var_ann): Mark variable as used.
15282
15283 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15284
15285 PR middle-end/45566
15286 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15287 notes from other section in hot/cold partitioning even if
15288 last_action is -3. Increment call_site_base.
15289
15290 PR rtl-optimization/47366
15291 * fwprop.c (forward_propagate_into): Return bool. If
15292 any changes are made, -fnon-call-exceptions is used and
15293 REG_EH_REGION note is present, call purge_dead_edges
15294 and return true if it purged anything.
15295 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15296 any EH edges were purged.
15297
15298 2011-01-21 Jeff Law <law@redhat.com>
15299
15300 PR rtl-optimization/41619
15301 * caller-save.c (setup_save_areas): Break out code to determine
15302 which hard regs are live across calls by examining the reload chains
15303 so that it is always used.
15304 Eliminate code which checked REG_N_CALLS_CROSSED.
15305
15306 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15307
15308 PR tree-optimization/47355
15309 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15310 NOP has non-debug uses beyond PHIs in new_bb.
15311
15312 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15313
15314 PR debug/47106
15315 * cfgexpand.c (account_used_vars_for_block): Only account vars
15316 that are annotated as used.
15317 (estimated_stack_frame_size): Don't set TREE_USED.
15318 * tree-dfa.c (create_var_ann): Mark variable as used.
15319
15320 2011-01-21 Richard Guenther <rguenther@suse.de>
15321
15322 PR middle-end/47395
15323 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15324
15325 2011-01-21 Richard Guenther <rguenther@suse.de>
15326
15327 PR tree-optimization/47365
15328 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15329 (vn_reference_lookup_pieces): Adjust.
15330 (vn_reference_lookup): Likewise.
15331 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15332 (vn_reference_lookup_3): Only look through kills if in
15333 VN_WALKREWRITE mode.
15334 (vn_reference_lookup_pieces): Adjust.
15335 (vn_reference_lookup): Likewise.
15336 (visit_reference_op_load): Likewise.
15337 (visit_reference_op_store): Likewise.
15338 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15339 (compute_avail): Likewise.
15340 (eliminate): Likewise.
15341
15342 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15343
15344 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15345 DECL_IGNORED_P non-reg vars if they are used.
15346
15347 PR tree-optimization/47391
15348 * varpool.c (const_value_known_p): Return false if
15349 decl is volatile.
15350
15351 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15352
15353 PR bootstrap/47215
15354 * config/i386/i386.c (ix86_local_alignment): Handle
15355 case for va_list_type_node is nil.
15356 (ix86_canonical_va_list_type): Likewise.
15357
15358 2011-01-21 Alan Modra <amodra@gmail.com>
15359
15360 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15361 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15362
15363 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15364
15365 * config/arm/arm.md (define_attr type): Rename f_load
15366 and f_store to f_fpa_load and f_fpa_store. Update.
15367 (write_conflict): Deal with rename fallout.
15368 (*push_fp_multi): Likewise.
15369 * config/arm/fpa.md (f_load): Use f_fpa_load.
15370 (f_store): Use f_fpa_store.
15371 (*movsf_fpa): Likewise.
15372 (*movdf_fpa): Likewise.
15373 (*movxf_fpa): Likewise.
15374 (*thumb2_movsf_fpa): Likewise.
15375 (*thumb2_movdf_fpa): Likewise.
15376 (*thumb2_movxf_fpa): Likewise.
15377 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15378 f_loadd and f_stored.
15379 (*thumb2_movdi_vfp): Likewise.
15380 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15381 (*thumb2_movsi_vfp): Likewise.
15382 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15383 Use f_loads instead of f_load.
15384 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15385
15386 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15387
15388 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15389 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15390 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15391 (xtensa_mode_dependent_address_p): New function.
15392 (constantpool_address_p): Make static. Change return type to bool.
15393 Change argument type to const_rtx. Use CONST_INT_P predicate.
15394
15395 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15396
15397 PR debug/46583
15398 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15399
15400 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15401
15402 PR debug/47283
15403 * cfgexpand.c (expand_debug_expr): Instead of generating
15404 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15405 etc. handling.
15406
15407 2011-01-20 Richard Guenther <rguenther@suse.de>
15408
15409 PR middle-end/47370
15410 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15411 the pointer operand of MEM_REFs.
15412
15413 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15414
15415 PR tree-optimization/46130
15416 * ipa-split.c (consider_split): If return_bb contains non-virtual
15417 PHIs other than for retval or if split_function would not adjust it,
15418 refuse to split.
15419
15420 2011-01-20 Richard Guenther <rguenther@suse.de>
15421
15422 PR tree-optimization/47167
15423 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15424 Revert previous change, only avoid enumeral type changes.
15425
15426 2011-01-19 Mike Stump <mikestump@comcast.net>
15427
15428 * doc/tm.texi.in (BRANCH_COST): Englishify.
15429 * doc/tm.texi (BRANCH_COST): Likewise.
15430
15431 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15432
15433 PR c++/47291
15434 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15435 (gen_scheduled_generic_parms_dies): New functions.
15436 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15437 generation for the end of CU compilation.
15438 (dwarf2out_finish): Generate template parameters DIEs here.
15439
15440 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15441
15442 PR debug/46240
15443 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15444 debug bind stmt on merge edges.
15445
15446 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15447
15448 PR debug/47079
15449 PR debug/46724
15450 * function.c (instantiate_expr): Instantiate incoming rtl of
15451 implicit arguments, and recurse on VALUE_EXPRs.
15452 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15453 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15454
15455 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15456
15457 * c-parser.c (c_parser_for_statement): Initialize
15458 collection_expression.
15459
15460 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15461
15462 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15463
15464 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15465
15466 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15467 (LINK_SHLIB_SPEC): Don't use %(link_path).
15468 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15469
15470 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15471
15472 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15473 (NO_SHARED_LIB_SUPPORT): Remove.
15474 (LINK_SHLIB_SPEC): Remove one conditional definition.
15475
15476 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15477
15478 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15479 %{call_shared}.
15480 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15481 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15482 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15483 %{call_shared} and conditionals on these options not being passed.
15484 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15485 %{call_shared}.
15486
15487 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15488
15489 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15490 simplify.
15491
15492 * ipa-split.c: Spelling fixes.
15493
15494 2011-01-19 Richard Henderson <rth@redhat.com>
15495
15496 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15497 (*mulsi3): Likewise.
15498
15499 * longlong.h [__mn10300__] (count_leading_zeros): New.
15500 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15501 [__mn10300__] (add_ssaaaa, subddmmss): New.
15502 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15503 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15504
15505 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15506
15507 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15508
15509 2011-01-19 Richard Henderson <rth@redhat.com>
15510
15511 * config/mn10300/mn10300.md (addsi3_flags): New.
15512 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15513 (subsi3_flags, subc_internal, subdi3): New.
15514 (subdi3_internal, *subdi3_degenerate): New.
15515 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15516
15517 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15518 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15519 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15520 * config/mn10300/mn10300-protos.h: Update.
15521 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15522 (return_ret): Likewise. Rename from return_internal_regs.
15523 (return_internal): Remove.
15524
15525 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15526 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15527 (mn10300_legitimate_constant_p): Likewise.
15528 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15529 (mn10300_frame_size): New.
15530 (mn10300_expand_prologue): Use it.
15531 (mn10300_expand_epilogue): Likewise.
15532 (mn10300_initial_offset): Likewise.
15533 * config/mn10300/mn10300-protos.h: Update.
15534 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15535 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15536 (prologue, epilogue, return_internal): Tidy output code.
15537 (mn10300_store_multiple_operation, return): Likewise.
15538 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15539 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15540 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15541 (load_pic, am33_load_pic): New.
15542 (mn10300_load_pic0, mn10300_load_pic1): New.
15543
15544 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15545 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15546 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15547 (cc_flags_for_mode, cc_flags_for_code): New.
15548 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15549 overflow flag is not valid. Validate that the flags we need
15550 for the comparison are valid.
15551 (mn10300_output_cmp): Remove.
15552 (mn10300_output_add): New.
15553 (mn10300_select_cc_mode): Use cc_flags_for_code.
15554 (mn10300_split_cbranch): New.
15555 (mn10300_match_ccmode): New.
15556 (mn10300_split_and_operand_count): New.
15557 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15558 to the function.
15559 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15560 (addsi3): ... here. Use mn10300_output_add.
15561 (*addsi3_flags): New.
15562 (*am33_subsi3, *mn10300_subsi3): Merge...
15563 (subsi3): ... here. Use attribute isa.
15564 (*subsi3_flags): New.
15565 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15566 when possible.
15567 (*am33_andsi3, *mn10300_andsi3): Merge...
15568 (andsi3): ... here.
15569 (*andsi3_flags): New.
15570 (andsi3 splitters): New.
15571 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15572 (iorsi3): ... here.
15573 (*iorsi3_flags): New.
15574 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15575 (xorsi3): ... here.
15576 (*xorsi3_flags): New.
15577 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15578 (one_cmplsi2): ... here.
15579 (*one_cmplsi2_flags): New.
15580 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15581 instead of "dax" in constraints. Use mn10300_split_cbranch.
15582 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15583 use matching constraints to eliminate a self-comparison.
15584 (*integer_conditional_branch): Rename from integer_conditional_branch.
15585 Use int_mode_flags to match CC_REG.
15586 (*cbranchsi4_btst, *btstsi): New.
15587 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15588 mn10300_split_cbranch.
15589 (*am33_cmpsf): Rename from am33_cmpsf.
15590 (*float_conditional_branch): Rename from float_conditional_branch.
15591 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15592 (zero_extendqisi2): ... here.
15593 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15594 (zero_extendhisi2): ... here.
15595 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15596 (extendqisi2): ... here.
15597 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15598 (extendhisi2): ... here.
15599 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15600 (ashlsi3): ... here.
15601 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15602 (lshrsi3): ... here.
15603 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15604 (ashrsi3): ... here.
15605 (consecutive add peephole): Remove.
15606 * config/mn10300/predicates.md (label_ref_operand): New.
15607 (int_mode_flags): New.
15608 (CCZN_comparison_operator): New.
15609
15610 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15611 (throughput_42_latency_43): New reservation.
15612 (mulsidi3, umulsidi3): New expanders.
15613 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15614 the MDR register to allocation; separately allocate the low and
15615 high parts of the DImode result.
15616 (umulsidi3_internal): Similarly.
15617 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15618 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15619 (udivsi3, umodsi3): Remove.
15620 (udivmodsi4, divmodsi4): New expanders.
15621 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15622 (*divmodsi4): Simiarly.
15623 (ext_internal): New.
15624
15625 * config/mn10300/constraints.md ("z"): New constraint.
15626 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15627 (FIXED_REGISTERS): Don't fix MDR.
15628 (CALL_USED_REGSITERS): Reformat nicely.
15629 (REG_ALLOC_ORDER): Add MDR.
15630 (enum regclass): Add MDR_REGS.
15631 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15632 (IRA_COVER_CLASSES): Add MDR_REGS.
15633 (REGNO_REG_CLASS): Handle MDR_REG.
15634 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15635 (mn10300_register_move_cost): Likewise.
15636 * config/mn10300/mn10300.md (MDR_REG): New.
15637 (*movsi_internal): Handle moves to/from MDR_REGS.
15638
15639 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15640 POST_MODIFY.
15641 (mn10300_secondary_reload): Tidy combination reload classes.
15642 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15643 addresses for AM33. Allow symbolic offsets for reg+imm.
15644 (mn10300_regno_in_class_p): New.
15645 (mn10300_legitimize_reload_address): New.
15646 * config/mn10300/mn10300.h (enum reg_class): Remove
15647 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15648 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15649 SP_OR_GENERAL_REGS.
15650 (REG_CLASS_NAMES): Update to match.
15651 (REG_CLASS_CONTENTS): Likewise.
15652 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15653 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15654 (REGNO_IN_RANGE_P): Remove.
15655 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15656 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15657 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15658 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15659 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15660 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15661 (REGNO_GENERAL_P): New.
15662 (HAVE_POST_MODIFY_DISP): New.
15663 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15664 (LEGITIMIZE_RELOAD_ADDRESS): New.
15665 * config/mn10300/mn10300-protos.h: Update.
15666
15667 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15668 DATA_REGS for AM33 stack-pointer destination.
15669 (mn10300_preferred_output_reload_class): Likewise.
15670 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15671 into a form appropriate for ...
15672 (TARGET_SECONDARY_RELOAD): New.
15673 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15674 * config/mn10300/mn10300-protos.h: Update.
15675 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15676 reload_insi; use the "A" constraint for the scratch; handle AM33
15677 moves of sp to non-address registers.
15678
15679 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15680 (*movqi_internal): ... here.
15681 (*am33_movhi, *mn10300_movhi): Merge into...
15682 (*movhi_internal): ... here.
15683 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15684 as the source/destination of moves from/to SP.
15685 (movsf): Only allow for AM33-2.
15686 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15687 any integer constant constraint. Only allow for AM33-2. Tidy
15688 all of the alternative outputs.
15689 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15690 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15691 for MN103.
15692 (udivsi3, umodsi3): New patterns for MN103 only.
15693
15694 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15695
15696 * doc/tm.texi.in: Spell out that a lack of register class unions
15697 can lead to ICEs.
15698 * doc/tm.texi: Regenerate.
15699
15700 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15701
15702 PR rtl-optimization/47337
15703 * dce.c (check_argument_store): New function.
15704 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15705
15706 PR tree-optimization/47290
15707 * tree-eh.c (infinite_empty_loop_p): New function.
15708 (cleanup_empty_eh): Use it.
15709
15710 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15711
15712 PR target/46997
15713 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15714 (a64_expand_widen_sum): Ditto.
15715 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15716 (vec_extract_evenodd_help): Ditto.
15717 (vec_extract_evenv4hi): Ditto.
15718 (vec_extract_oddv4hi): Ditto.
15719 (vec_extract_evenv2si): Ditto.
15720 (vec_extract_oddv2si): Ditto.
15721 (vec_extract_evenv2sf): Ditto.
15722 (vec_extract_oddv2sf): Ditto.
15723 (vec_pack_trunc_v4hi: Ditto.
15724 (vec_pack_trunc_v2si): Ditto.
15725 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15726 (vec_interleave_highv8qi): Ditto.
15727 (mix1_r): Ditto.
15728 (vec_extract_oddv8qi): Ditto.
15729 (vec_interleave_lowv4hi): Ditto.
15730 (vec_interleave_highv4hi): Ditto.
15731 (vec_interleave_lowv2si): Ditto.
15732 (vec_interleave_highv2si): Ditto.
15733
15734 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15735
15736 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15737 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15738 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15739 (pa_c_mode_for_suffix): New.
15740 (TARGET_EXPAND_BUILTIN): Define.
15741 (TARGET_C_MODE_FOR_SUFFIX): Define.
15742 (pa_builtins): Define.
15743 (pa_init_builtins): Register __float128 type and init new support
15744 builtins.
15745 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15746 * config/pa/quadlib.c (_U_Qfcopysign): New.
15747
15748 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15749
15750 PR middle-end/46894
15751 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15752 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15753 are defined.
15754
15755 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15756
15757 PR tree-optimization/47179
15758 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15759 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15760
15761 2011-01-18 Richard Guenther <rguenther@suse.de>
15762
15763 PR rtl-optimization/47216
15764 * emit-rtl.c: Include tree-flow.h.
15765 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15766 of replicating it with different semantics.
15767 * Makefile.in (emit-rtl.o): Adjust.
15768
15769 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15770
15771 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15772 (cortex_a9_dp): Handle neon types correctly.
15773
15774 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15775
15776 PR rtl-optimization/47299
15777 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15778 subtarget. Use normal multiplication if both operands are constants.
15779 * expmed.c (expand_widening_mult): Don't try to optimize constant
15780 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15781 before using it.
15782
15783 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15784
15785 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15786 spacing after 'e.g.', typos, comma, hyphenation.
15787
15788 2011-01-17 Richard Henderson <rth@redhat.com>
15789
15790 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15791 (rx_restricted_mem_operand): New.
15792 (rx_shift_operand): Use register_operand.
15793 (rx_source_operand, rx_compare_operand): Likewise.
15794 * config/rx/rx.md (addsi3_flags): New expander.
15795 (adddi3): Rewrite as expander.
15796 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15797 (subsi3_flags): New expander.
15798 (subdi3): Rewrite as expander.
15799 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15800
15801 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15802 (rx_init_builtins): Remove sat builtin.
15803 (rx_expand_builtin): Likewise.
15804 * config/rx/rx.md (ssaddsi3): New.
15805 (*sat): Rename from sat. Represent the CC_REG input.
15806
15807 * config/rx/predicates.md (rshift_operator): New.
15808 * config/rx/rx.c (rx_expand_insv): Remove.
15809 * config/rx/rx-protos.h: Update.
15810 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15811 operand to the canonical position.
15812 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15813 (*bitclr, *bitclr_in_memory): Similarly.
15814 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15815 (insv): Retain the zero_extract in the expansion.
15816
15817 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15818 (bswaphi2, bitinvert, revw): Likewise.
15819
15820 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15821 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15822 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15823 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15824 (bitset, bitset_in_memory): Likewise.
15825 (bitinvert, bitinvert_in_memory): Likewise.
15826 (bitclr, bitclr_in_memory): Likewise.
15827 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15828 (rx_strend, rx_cmpstrn): Likewise.
15829 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15830 (bitop peep2 patterns): Remove.
15831
15832 * config/rx/rx.c (rx_match_ccmode): New.
15833 * config/rx/rx-protos.h: Update.
15834 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15835 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15836 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15837 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15838 (fix_truncsfsi2, floatsisf2): Likewise.
15839 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15840 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15841 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15842 (*subsi3_flags, *xorsi3_flags): New.
15843
15844 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15845
15846 * config/rx/rx.c (rx_print_operand): Remove workaround for
15847 unsplit comparison operations.
15848
15849 * config/rx/rx.md (movsicc): Split after reload.
15850 (*movsicc): Merge *movsieq and *movsine via match_operator.
15851 (*stcc): New pattern.
15852
15853 * config/rx/rx.c (rx_float_compare_mode): Remove.
15854 * config/rx/rx.h (rx_float_compare_mode): Remove.
15855 * config/rx/rx.md (cstoresi4): Split after reload.
15856 (*sccc): New pattern.
15857
15858 * config/rx/predicates.md (label_ref_operand): New.
15859 (rx_z_comparison_operator): New.
15860 (rx_zs_comparison_operator): New.
15861 (rx_fp_comparison_operator): New.
15862 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15863 Validate that the flags are set properly for the comparison.
15864 (rx_gen_cond_branch_template): Remove.
15865 (rx_cc_modes_compatible): Remove.
15866 (mode_from_flags): New.
15867 (flags_from_code): Rename from flags_needed_for_conditional.
15868 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15869 (rx_select_cc_mode): Likewise.
15870 (rx_split_fp_compare): New.
15871 (rx_split_cbranch): New.
15872 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15873 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15874 (*cbranchsf4): Similarly.
15875 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15876 match_operator and rx_split_cbranch.
15877 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15878 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15879 (*cmpsi): Rename from cmpsi.
15880 (*tstsi): Rename from tstsi.
15881 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15882 (*conditional_branch): Rename from conditional_branch.
15883 (*reveresed_conditional_branch): Remove.
15884 (b<code>): Remove expander.
15885 * config/rx/rx-protos.h: Update.
15886
15887 * config/rx/rx.c (rx_compare_redundant): Remove.
15888 * config/rx/rx.md (cmpsi): Don't use it.
15889 * config/rx/rx-protos.h: Update.
15890
15891 * config/rx/rx-modes.def (CC_F): New mode.
15892 * config/rx/rx.c (rx_select_cc_mode): New.
15893 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15894 * config/rx/rx-protos.h: Update.
15895
15896 2011-01-17 Richard Henderson <rth@redhat.com>
15897
15898 * except.c (dump_eh_tree): Fix stray ; after for statement.
15899
15900 2011-01-17 Richard Guenther <rguenther@suse.de>
15901
15902 PR tree-optimization/47313
15903 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15904 handling before copying the body. Properly deal with
15905 by-reference result in SSA form.
15906
15907 2011-01-17 Ian Lance Taylor <iant@google.com>
15908
15909 PR target/47219
15910 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15911 (struct_value_alias_set): Don't define.
15912 (sparc_option_override): Don't set sparc_sr_alias_set and
15913 struct_value_alias_set.
15914 (save_or_restore_regs): Use gen_frame_mem rather than calling
15915 set_mem_alias_set.
15916 (sparc_struct_value_rtx): Likewise.
15917
15918 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15919
15920 PR target/47318
15921 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15922 (_mm_maskstore_pd): Likewise.
15923 (_mm_maskload_ps): Likewise.
15924 (_mm_maskstore_ps): Likewise.
15925 (_mm256_maskload_pd): Change mask to __m256i.
15926 (_mm256_maskstore_pd): Likewise.
15927 (_mm256_maskload_ps): Likewise.
15928 (_mm256_maskstore_ps): Likewise.
15929
15930 * config/i386/i386-builtin-types.def: Updated.
15931 (ix86_expand_special_args_builtin): Likewise.
15932
15933 * config/i386/i386.c (bdesc_special_args): Update
15934 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15935 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15936 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15937 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15938
15939 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15940 Use <avxpermvecmode> on mask register.
15941 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15942
15943 2011-01-17 Olivier Hainque <hainque@adacore.com>
15944 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15945 Eric Botcazou <ebotcazou@adacore.com>
15946
15947 PR target/46655
15948 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15949 if <= USHRT_MAX in 32-bit mode.
15950
15951 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15952
15953 * doc/install.texi (Configuration, Specific): Wrap long
15954 lines in examples. Allow line wrapping in long options
15955 and URLs where beneficial for PDF output.
15956
15957 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15958
15959 * config/mips/mips.c (mips_classify_symbol): Don't return
15960 SYMBOL_PC_RELATIVE for nonlocal labels.
15961
15962 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15963
15964 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15965
15966 2011-01-15 Jan Hubicka <jh@suse.cz>
15967
15968 PR tree-optimization/47276
15969 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15970 declarations as needed.
15971
15972 2011-01-15 Martin Jambor <mjambor@suse.cz>
15973
15974 * common.opt (fdevirtualize): New flag.
15975 * doc/invoke.texi (Option Summary): Document it.
15976 * opts.c (default_options_table): Add devirtualize flag.
15977 * ipa-prop.c (detect_type_change): Return immediately if
15978 devirtualize flag is not set.
15979 (detect_type_change_ssa): Likewise.
15980 (compute_known_type_jump_func): Likewise.
15981 (ipa_analyze_virtual_call_uses): Likewise.
15982
15983 2011-01-14 Martin Jambor <mjambor@suse.cz>
15984
15985 PR tree-optimization/45934
15986 PR tree-optimization/46302
15987 * ipa-prop.c (type_change_info): New type.
15988 (stmt_may_be_vtbl_ptr_store): New function.
15989 (check_stmt_for_type_change): Likewise.
15990 (detect_type_change): Likewise.
15991 (detect_type_change_ssa): Likewise.
15992 (compute_complex_assign_jump_func): Check for dynamic type change.
15993 (compute_complex_ancestor_jump_func): Likewise.
15994 (compute_known_type_jump_func): Likewise.
15995 (compute_scalar_jump_functions): Likewise.
15996 (ipa_analyze_virtual_call_uses): Likewise.
15997 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15998
15999 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16000
16001 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16002 * config/i386/i386.opt (msse5): New Alias.
16003
16004 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16005
16006 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16007 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16008 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16009 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16010
16011 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16012
16013 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16014 -mcpu options.
16015 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16016 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16017 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16018 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16019 Likewise.
16020 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16021
16022 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16023
16024 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16025
16026 2011-01-14 Mike Stump <mikestump@comcast.net>
16027
16028 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16029 * config/fr30/fr30.md: Likweise
16030 (movsi_push): Likewise.
16031 (movsi_pop): Likewise.
16032 (enter_func): Likewise.
16033 * config/moxie/moxie.md (movsi_push): Likewise.
16034 (movsi_pop): Likewise.
16035
16036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16037
16038 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16039 %{no_archive} %{exact_version}.
16040 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16041 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16042 %{no_archive} %{exact_version}.
16043 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16044 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16045 * config/mips/vxworks.h: Likewise.
16046
16047 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16048
16049 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16050
16051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16052
16053 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16054 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16055
16056 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16057
16058 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16059 -nodefaultlib.
16060
16061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16062
16063 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16064 for mcpu not cpu.
16065 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16066 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16067 not cpu.
16068 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16069 Don't handle -shlib.
16070
16071 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16072
16073 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16074 (CC1_SPEC): Don't handle -profile.
16075
16076 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16077
16078 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16079 * config/mips/mips.h (CC1_SPEC): Likewise.
16080
16081 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16082
16083 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16084 * config/mips/mips.h (CC1_SPEC): Likewise.
16085
16086 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16087
16088 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16089 * config/m32r/linux.h (LINK_SPEC): Likewise.
16090 * config/mips/linux.h (LINK_SPEC): Likewise.
16091 * config/mips/linux64.h (LINK_SPEC): Likewise.
16092 * config/sparc/linux.h (LINK_SPEC): Likewise.
16093 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16094 LINK_SPEC): Likewise.
16095 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16096
16097 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16098
16099 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16100 %{version:-v}.
16101 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16102
16103 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16104
16105 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16106 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16107
16108 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16109
16110 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16111
16112 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16113
16114 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16115 supports -Bstatic/-Bdynamic.
16116 * configure: Regenerate.
16117
16118 2011-01-14 Jan Hubicka <jh@suse.cz>
16119 Jack Howarth <howarth@bromo.med.uc.edu>
16120
16121 PR target/46037
16122 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16123 when checking debug_info_level. Test write_symbols instead of
16124 debug_hooks->var_location when setting flag_var_tracking_uninit.
16125
16126 2011-01-14 Richard Guenther <rguenther@suse.de>
16127
16128 PR tree-optimization/47179
16129 * target.def (ref_may_alias_errno): New target hook.
16130 * targhooks.h (default_ref_may_alias_errno): Declare.
16131 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16132 (default_ref_may_alias_errno): New function.
16133 * target.h (struct ao_ref_s): Declare.
16134 * tree-ssa-alias.c: Include target.h.
16135 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16136 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16137 (targhooks.o): Likewise.
16138 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16139 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16140
16141 2011-01-14 Richard Guenther <rguenther@suse.de>
16142
16143 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16144
16145 2011-01-14 Richard Guenther <rguenther@suse.de>
16146
16147 PR tree-optimization/47280
16148 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16149 return CFG changes.
16150 (tree_ssa_forward_propagate_single_use_vars): Deal with
16151 CFG changes from associate_plusminus.
16152
16153 2011-01-14 Richard Guenther <rguenther@suse.de>
16154
16155 PR middle-end/47281
16156 Revert
16157 2011-01-11 Richard Guenther <rguenther@suse.de>
16158
16159 PR tree-optimization/46076
16160 * tree-ssa.c (useless_type_conversion_p): Conversions from
16161 unprototyped to empty argument list function types are useless.
16162
16163 2011-01-14 Richard Guenther <rguenther@suse.de>
16164
16165 PR tree-optimization/47286
16166 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16167
16168 2011-01-14 Martin Jambor <mjambor@suse.cz>
16169
16170 PR middle-end/46823
16171 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16172
16173 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16174
16175 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16176 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16177 * config/xtensa/xtensa.c (xtensa_libcall_value,
16178 xtensa_function_value_regno_p): New functions.
16179 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16180
16181 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16182
16183 PR c++/47213
16184 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16185 PE specific hook.
16186 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16187 New function prototype.
16188 * config/i386/winnt.c (i386_pe_assemble_visibility):
16189 Warn only if attribute was specified by user.
16190
16191 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16192
16193 PR target/47251
16194 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16195 floating point.
16196 (floatunsdidf2_fcfidu): Ditto.
16197
16198 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16199
16200 * config/s390/s390.c (print_operand_address): Replace 'error' with
16201 'output_operand_lossage'.
16202 (print_operand): Likewise.
16203
16204 2011-01-13 Jeff Law <law@redhat.com>
16205
16206 PR rtl-optimization/39077
16207 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16208 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16209 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16210 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16211 * gcse.c (prune_insertions_deletions): New function.
16212 (compute_pre_data): Use it.
16213
16214 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16215
16216 PR debug/PR46973
16217 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16218 static function.
16219 (prune_unused_types_mark): Use it.
16220
16221 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16222
16223 PR rtl-optimization/45352
16224 * sel-sched.c: Update copyright years.
16225 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16226 in the advancing loop when we have issued issue_rate insns.
16227
16228 2011-01-12 Richard Henderson <rth@redhat.com>
16229
16230 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16231 (TARGET_MD_ASM_CLOBBERS): New.
16232
16233 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16234 (TARGET_DELEGITIMIZE_ADDRESS): New.
16235
16236 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16237 (clzsi2, *bsch): New patterns.
16238
16239 * config/mn10300/mn10300.md (INT): New mode iterator.
16240 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16241
16242 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16243 flag_split_wide_types.
16244
16245 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16246 (mn10300_trampoline_init): Rewrite without a template, an immediate
16247 load and a direct branch.
16248 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16249
16250 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16251
16252 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16253 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16254 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16255 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16256
16257 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16258
16259 PR debug/47209
16260 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16261 of type.
16262
16263 2011-01-12 Jan Hubicka <jh@suse.cz>
16264
16265 PR driver/47244
16266 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16267 (PLUGIN_COND_CLOSE): New macro.
16268 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16269
16270 2011-01-12 Richard Guenther <rguenther@suse.de>
16271
16272 PR lto/47259
16273 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16274 register variables in a MEM_REF.
16275
16276 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16277
16278 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16279 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16280 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16281 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16282 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16283 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16284 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16285 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16286 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16287 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16288 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16289 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16290 * config/gnu-user.h: New. Copied from linux.h.
16291 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16292 GNU_USER_TARGET_STARTFILE_SPEC.
16293 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16294 GNU_USER_TARGET_ENDFILE_SPEC.
16295 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16296 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16297 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16298 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16299 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16300 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16301 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16302 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16303 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16304 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16305 * config/arm/linux-eabi.h (CC1_SPEC): Use
16306 GNU_USER_TARGET_CC1_SPEC.
16307 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16308 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16309 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16310 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16311 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16312 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16313 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16314 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16315
16316 2011-01-12 Richard Guenther <rguenther@suse.de>
16317
16318 PR other/46946
16319 * doc/invoke.texi (ffast-math): Document it is turned on
16320 with -Ofast.
16321
16322 2011-01-12 Jan Hubicka <jh@suse.cz>
16323
16324 PR tree-optimization/47233
16325 * opts.c (common_handle_option): Disable ipa-reference with profile
16326 feedback.
16327
16328 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16329
16330 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16331 error message.
16332
16333 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16334
16335 * c-parser.c (c_lex_one_token): Updated and reindented some
16336 comments. No changes in code.
16337
16338 2011-01-11 Ian Lance Taylor <iant@google.com>
16339
16340 * godump.c (go_output_var): Don't output the variable if there is
16341 already a type with the same name.
16342
16343 2011-01-11 Ian Lance Taylor <iant@google.com>
16344
16345 * godump.c (go_format_type): Don't generate float80.
16346
16347 2011-01-11 Richard Henderson <rth@redhat.com>
16348
16349 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16350 declaration. Rewrite for both speed and size.
16351 (mn10300_address_cost_1): Remove.
16352 (mn10300_register_move_cost): New.
16353 (mn10300_memory_move_cost): New.
16354 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16355 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16356 extensions, shifts, BSWAP, CLZ.
16357 (mn10300_wide_const_load_uses_clr): Remove.
16358 (TARGET_REGISTER_MOVE_COST): New.
16359 (TARGET_MEMORY_MOVE_COST): New.
16360 * config/mn10300/mn10300-protos.h: Update.
16361 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16362
16363 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16364 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16365 * config/mn10300/mn10300-protos.h: Update.
16366 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16367 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16368 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16369 (*test_int_bitfield, *test_byte_bitfield): Remove.
16370 (*bit_test, *subreg_bit_test): Remove.
16371 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16372
16373 * config/mn10300/constraints.md ("c"): Rename from "A".
16374 ("A", "D"): New constraint letters.
16375 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16376 (fmssf4, fnmasf4, fnmssf4): Likewise.
16377
16378 * config/mn10300/mn10300.md (isa): New attribute.
16379 (enabled): New attribute.
16380
16381 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16382 (abssf2, negsf2): Define only for hardware fp.
16383 (sqrtsf2): Reformat.
16384 (addsf3, subsf3, mulsf3): Merge expander and insn.
16385
16386 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16387 (DEBUGGER_AUTO_OFFSET): Remove.
16388 (DEBUGGER_ARG_OFFSET): Remove.
16389
16390 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16391 Emit register stores with the same offsets as the hardware.
16392 (mn10300_store_multiple_operation): Don't check that the register
16393 save offsets are monotonic.
16394 * config/mn10300/mn10300-protos.h: Update.
16395
16396 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16397
16398 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16399 in terms of the value on the stack, not the MDR register.
16400
16401 2011-01-11 Jan Hubicka <jh@suse.cz>
16402
16403 PR lto/45721
16404 PR lto/45375
16405 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16406 (symbol_alias_set_destroy, symbol_alias_set_contains,
16407 propagate_aliases_backward): Declare.
16408 * lto-streamer-out.c (struct sets): New sturcture.
16409 (trivally_defined_alias): New function.
16410 (output_alias_pair_p): Rewrite.
16411 (output_unreferenced_globals): Fix output of alias pairs.
16412 (produce_symtab): Likewise.
16413 * ipa.c (function_and_variable_visibility): Set weak alias destination
16414 as needed in lto.
16415 * varasm.c (symbol_alias_set_t): Remove.
16416 (symbol_alias_set_destroy): Export.
16417 (propagate_aliases_forward, propagate_aliases_backward): New functions
16418 based on ...
16419 (compute_visible_aliases): ... this one; remove.
16420 (trivially_visible_alias): New
16421 (trivially_defined_alias): New.
16422 (remove_unreachable_alias_pairs): Rewrite.
16423 (finish_aliases_1): Reorganize code checking if alias is defined.
16424 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16425 in LTO mode.
16426
16427 2011-01-11 Richard Guenther <rguenther@suse.de>
16428
16429 PR tree-optimization/46076
16430 * tree-ssa.c (useless_type_conversion_p): Conversions from
16431 unprototyped to empty argument list function types are useless.
16432
16433 2011-01-11 Richard Guenther <rguenther@suse.de>
16434
16435 PR middle-end/45235
16436 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16437 volatile MEMs as MEM_READONLY_P.
16438
16439 2011-01-11 Richard Guenther <rguenther@suse.de>
16440
16441 PR tree-optimization/47239
16442 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16443
16444 2011-01-11 Jeff Law <law@redhat.com>
16445
16446 PR tree-optimization/47086
16447 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16448 IVs from statements that might throw.
16449
16450 2011-01-10 Jan Hubicka <jh@suse.cz>
16451
16452 PR lto/45375
16453 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16454
16455 2011-01-10 Jan Hubicka <jh@suse.cz>
16456
16457 PR lto/45375
16458 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16459 when correcting profile.
16460
16461 2011-01-10 Jan Hubicka <jh@suse.cz>
16462
16463 PR lto/46083
16464 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16465 DECL_FINI_PRIORITY.
16466 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16467 Restore DECL_FINI_PRIORITY.
16468
16469 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16470
16471 * doc/gimple.texi: Fix quoting of multi-word return values in
16472 @deftypefn statements. Ensure presence of return value. Wrap
16473 overlong @deftypefn lines.
16474 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16475 descriptions of removed functions.
16476 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16477 of multi-word return value in @deftypefn statement.
16478
16479 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16480
16481 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16482 (Conditional Expressions, Logical Operators)
16483 (Statement and operand traversals): Do not indent smallexample
16484 code. Fix duplicate function argument in example.
16485
16486 2011-01-10 Jeff Law <law@redhat.com>
16487
16488 PR tree-optimization/47141
16489 * ipa-split.c (split_function): Handle case where we are
16490 returning a value and the return block has a virtual operand phi.
16491
16492 2011-01-10 Jan Hubicka <jh@suse.cz>
16493
16494 PR tree-optimization/47234
16495 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16496 (pass_feedback_split_functions): Declare.
16497 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16498 tree-profile.
16499 * ipa-split.c (gate_split_functions): Update comments; disable
16500 split-functions for profile_arc_flag and branch_probabilities.
16501 (gate_feedback_split_functions): New function.
16502 (execute_feedback_split_functions): New function.
16503 (pass_feedback_split_functions): New global var.
16504
16505 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16506
16507 PR lto/46760
16508 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16509 calling gimple_call_set_cannot_inline.
16510
16511 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16512
16513 * config/darwin-sections.def: Remove unused section.
16514
16515 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16516
16517 PR c++/47218
16518 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16519
16520 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16521
16522 PR objc/47232
16523 * c-parser.c (c_parser_declaration_or_fndef): Improved
16524 error message.
16525
16526 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16527
16528 * config/i386/winnt.c (i386_pe_start_function): Make sure
16529 to switch back to function's section.
16530
16531 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16532
16533 PR gcc/46902
16534 PR testsuite/46912
16535 * plugin.c: Move include of dlfcn.h from here...
16536 * system.h: ... to here.
16537
16538 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16539
16540 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16541 file name.
16542 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16543 two extra empty pages in PDF output.
16544
16545 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16546
16547 PR objc/47078
16548 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16549 for error recovery purposes behave as if it was not specified so
16550 that the default type is usd.
16551
16552 2011-01-07 Jan Hubicka <jh@suse.cz>
16553
16554 PR tree-optmization/46469
16555 * ipa.c (function_and_variable_visibility): Clear needed flags on
16556 nodes with external decls; handle weakrefs merging correctly.
16557
16558 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16559
16560 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16561 not false.
16562
16563 2011-01-07 Jan Hubicka <jh@suse.cz>
16564
16565 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16566 and no longer claim that gold is required for linker plugin.
16567 * configure: Regenerate.
16568 * gcc.c (PLUGIN_COND): New macro.
16569 (LINK_COMMAND_SPEC): Use it.
16570 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16571 * config.in (HAVE_LTO_PLUGIN): New.
16572 * configure.ac (--with-lto-plugin): New parameter; autodetect
16573 HAVE_LTO_PLUGIN.
16574
16575 2011-01-07 Jan Hubicka <jh@suse.cz>
16576
16577 PR tree-optimization/46367
16578 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16579 when we can update original.
16580 (cgraph_mark_inline_edge): Sanity check.
16581 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16582
16583 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16584
16585 * config/spu/spu.h (ASM_COMMENT_START): Define.
16586
16587 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16588
16589 PR driver/42445
16590 * gcc.c (%>S): New.
16591 (SWITCH_KEEP_FOR_GCC): Likewise.
16592 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16593 (do_spec_1): Handle "%>".
16594
16595 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16596
16597 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16598
16599 PR target/47201
16600 * config/i386/i386.c (ix86_delegitimize_address): If
16601 simplify_gen_subreg fails, return orig_x.
16602
16603 PR bootstrap/47187
16604 * value-prof.c (gimple_stringop_fixed_value): Handle
16605 lhs of the call properly.
16606
16607 2011-01-07 Jan Hubicka <jh@suse.cz>
16608
16609 PR lto/45375
16610 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16611
16612 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16613
16614 * target.def (function_switched_text_sections): New hook.
16615 * doc/tm.texi: Regenerated.
16616 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16617 * final.c (default_function_switched_text_sections): New.
16618 (final_scan_insn): Call function_switched_text_sections when a
16619 mid-function section change occurs.
16620 * output.h (default_function_switched_text_sections): Declare.
16621 * config/darwin-protos.h (darwin_function_switched_text_sections):
16622 Likewise.
16623 * config/darwin.c (darwin_function_switched_text_sections): New.
16624 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16625
16626 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16627
16628 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16629 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16630 the secondary code fragment when outputting for DWARF == 2.
16631
16632 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16633
16634 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16635 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16636 Remove.
16637 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16638 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16639
16640 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16641
16642 PR debug/46704
16643 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16644 when it is not empty.
16645
16646 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16647
16648 Bobcat Enablement
16649 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16650 (case ${target}): Add btver1.
16651 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16652 -march=native recognize btver1 processors.
16653 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16654 btver1 def_and_undef
16655 * config/i386/i386.c (struct processor_costs btver1_cost): New
16656 btver1 cost table.
16657 (m_BTVER1): New definition.
16658 (m_AMD_MULTIPLE): Includes m_BTVER1.
16659 (initial_ix86_tune_features): Add btver1 tune.
16660 (processor_target_table): Add btver1 entry.
16661 (static const char *const cpu_names): Add btver1 entry.
16662 (software_prefetching_beneficial_p): Add btver1.
16663 (ix86_option_override_internal): Add btver1 instruction sets.
16664 (ix86_issue_rate): Add btver1.
16665 (ix86_adjust_cost): Add btver1.
16666 * config/i386/i386.h (TARGET_BTVER1): New definition.
16667 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16668 (enum processor_type): Add PROCESSOR_BTVER1.
16669 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16670
16671 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16672
16673 PR target/43309
16674 * config/i386/i386.c (legitimize_tls_address)
16675 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16676 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16677 (tls_initial_exec_64_sun): New pattern.
16678
16679 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16680
16681 * doc/invoke.texi (Overall Options): Improve wording and markup
16682 of the description of -wrapper.
16683
16684 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16685
16686 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16687 rdynamic, threads): New Driver options.
16688
16689 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16690
16691 PR target/38118
16692 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16693 if coming from .tdata.
16694 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16695
16696 2011-01-06 Jan Hubicka <jh@suse.cz>
16697
16698 PR lto/47188
16699 * collect2.c (main): Do not enable LTOmode when plugin is active.
16700
16701 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16702
16703 PR other/45915
16704 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16705 --version output if supported.
16706 * configure: Regenerate.
16707
16708 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16709
16710 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16711 Driver options.
16712
16713 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16714
16715 PR c/47150
16716 * c-convert.c (convert): When converting a complex expression
16717 other than COMPLEX_EXPR to a different complex type, ensure
16718 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16719 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16720 when converting COMPLEX_TYPE.
16721
16722 2011-01-06 Ira Rosen <irar@il.ibm.com>
16723
16724 PR tree-optimization/47139
16725 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16726 only the last reduction value is used outside the loop. Update
16727 documentation.
16728
16729 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16730
16731 * config/rtems.opt: New.
16732 * config.gcc (*-*-rtems*): Use rtems.opt.
16733
16734 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16735
16736 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16737 processors do not support 3DNow instructions.
16738
16739 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16740
16741 * config/spu/spu.c (spu_option_override): Set parameter
16742 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16743
16744 2011-01-05 Jan Hubicka <jh@suse.cz>
16745
16746 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16747 at the command line.
16748
16749 2011-01-05 Martin Jambor <mjambor@suse.cz>
16750
16751 PR lto/47162
16752 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16753 deltas on streamed outgoing edges.
16754 (output_node_opt_summary): Output info for outgoing edges only when
16755 the node is in new parameter set.
16756 (output_cgraph_opt_summary): New parameter set, passed to the two
16757 aforementioned functions. Update its forward declaration and its
16758 callee too.
16759
16760 2011-01-05 Tom Tromey <tromey@redhat.com>
16761
16762 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16763 operator to c_finish_omp_atomic.
16764 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16765 (build_unary_op): Update.
16766 (build_modify_expr): Update.
16767 (build_asm_expr): Update.
16768
16769 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16770
16771 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16772 newly inserted insns.
16773 (pad_bb): Likewise.
16774 (spu_emit_branch_hint): Likewise.
16775 (insert_hbrp_for_ilb_runout): Likewise.
16776 (spu_machine_dependent_reorg): Call df_finish_pass after
16777 schedule_insns returns.
16778
16779 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16780
16781 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16782
16783 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16784
16785 PR tree-optimization/47005
16786 * tree-sra.c (struct access): Add 'non_addressable' bit.
16787 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16788 (decide_one_param_reduction): Return 0 if the parameter is passed by
16789 reference and one of the accesses in the group is non_addressable.
16790
16791 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16792
16793 PR tree-optimization/47056
16794 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16795 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16796 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16797
16798 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16799
16800 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16801 initializer. Skip view conversions from aggregate types.
16802
16803 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16804
16805 PR bootstrap/47055
16806 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16807
16808 2011-01-04 Philipp Thomas <pth@suse.de>
16809
16810 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16811 obvious typo.
16812
16813 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16814
16815 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16816 on empty epilogue sequences.
16817
16818 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16819
16820 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16821 non-static): New Driver options.
16822
16823 2011-01-04 Jie Zhang <jie@codesourcery.com>
16824
16825 PR driver/47137
16826 * gcc.c (default_compilers[]): Set combinable field to 0
16827 for all assembly languages.
16828
16829 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16830
16831 * config/mips/loongson3a.md: New file.
16832 * config/mips/mips.md: Include loongson3a.md.
16833 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16834 TUNE_LOONGSON_3A.
16835
16836 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16837
16838 PR middle-end/47017
16839 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16840 instead of convert_memory_address_addr_space on the base expression.
16841
16842 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16843
16844 * config/spu/spu.c (spu_option_override): Update error text
16845 for bad -march= / -mtune= values.
16846
16847 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16848
16849 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16850 if branch-hint optimization will be performed.
16851
16852 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16853
16854 PR tree-optimization/47148
16855 * ipa-split.c (split_function): Convert arguments to
16856 DECL_ARG_TYPE if possible.
16857
16858 PR tree-optimization/47155
16859 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16860 when computing uns.
16861
16862 PR rtl-optimization/47157
16863 * combine.c (try_combine): If undobuf.other_insn becomes
16864 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16865 and set *new_direct_jump_p too.
16866
16867 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16868
16869 PR tree-optimization/47021
16870 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16871
16872 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16873
16874 * gcc.c (process_command): Update copyright notice dates.
16875 * gcov.c (print_version): Likewise.
16876 * gcov-dump.c (print_version): Likewise.
16877 * mips-tfile.c (main): Likewise.
16878 * mips-tdump.c (main): Likewise.
16879
16880 2011-01-03 Martin Jambor <mjambor@suse.cz>
16881
16882 PR tree-optimization/46801
16883 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16884 aggregate fields start at byte boundary instead of the bit-field flag.
16885
16886 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16887
16888 PR driver/47137
16889 * gcc.c (main): Revert revision 168407.
16890
16891 2011-01-03 Martin Jambor <mjambor@suse.cz>
16892
16893 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16894
16895 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16896
16897 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16898 vector optab to expand vector/scalar shift, update gimple to vector.
16899
16900 2011-01-03 Martin Jambor <mjambor@suse.cz>
16901
16902 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16903 a thunk.
16904
16905 2011-01-03 Martin Jambor <mjambor@suse.cz>
16906
16907 PR tree-optimization/46984
16908 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16909 HOST_WIDE_INT.
16910 (cgraph_create_indirect_edge): Fixed line length.
16911 (cgraph_indirect_call_info): Declare.
16912 (cgraph_make_edge_direct) Update declaration.
16913 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16914 (cgraph_create_indirect_edge): Use it.
16915 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16916 callees.
16917 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16918 the new thunk_delta representation.
16919 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16920 HOST_WIDE_INT.
16921 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16922 (ipa_read_indirect_edge_info): Likewise.
16923 * lto-cgraph.c (output_edge_opt_summary): New function.
16924 (output_node_opt_summary): Call it on all outgoing edges.
16925 (input_edge_opt_summary): New function.
16926 (input_node_opt_summary): Call it on all outgoing edges.
16927
16928 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16929
16930 PR driver/47137
16931 * gcc.c (main): Don't check have_o when settting combine_inputs.
16932
16933 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16934
16935 * regrename.c: Add general comment describing the pass.
16936 (struct du_head): Remove 'length' field.
16937 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16938 (regrename_optimize): Do not sort chains. Rework comments, add others.
16939 Force renaming to the preferred class (if any) in the first pass and do
16940 not consider registers that belong to it in the second pass.
16941 (create_new_chain): Do not set 'length' field.
16942 (scan_rtx_reg): Likewise.
16943
16944 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16945
16946 PR tree-optimization/47140
16947 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16948 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16949 to bit_value_binop.
16950
16951 PR rtl-optimization/47028
16952 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16953 parm_birth_insn instead of at the beginning of first bb.
16954
16955 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16956
16957 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16958 Remove the word "see" before "@pxref".
16959 * doc/rtl.texi: Remove the word "see" before "@pxref".
16960
16961 2011-01-01 Jan Hubicka <jh@suse.cz>
16962
16963 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16964 memory.
16965
16966 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16967
16968 PR target/38662
16969 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16970
16971 \f
16972 Copyright (C) 2011 Free Software Foundation, Inc.
16973
16974 Copying and distribution of this file, with or without modification,
16975 are permitted in any medium without royalty provided the copyright
16976 notice and this notice are preserved.