Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
[gcc.git] / gcc / ChangeLog
1 2011-06-04 Diego Novillo <dnovillo@google.com>
2
3 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4 (cgraph.o): Likewise.
5 (cgraphunit.o): Likewise.
6 * cgraphunit.c: Include lto-streamer.h
7 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
8 if LTO is enabled.
9 * lto-streamer-in.c (unpack_value_fields): Call
10 streamer_hooks.unpack_value_fields if set.
11 (lto_materialize_tree): For unhandled nodes, first try to
12 call lto_streamer_hooks.alloc_tree, if it exists.
13 (lto_input_ts_decl_common_tree_pointers): Move reading of
14 DECL_INITIAL to lto_streamer_read_tree.
15 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
16 (lto_streamer_read_tree): New.
17 (lto_reader_init): Rename from lto_init_reader.
18 Move initialization code to lto/lto.c.
19 * lto-streamer-out.c (pack_value_fields): Call
20 streamer_hooks.pack_value_fields if set.
21 (lto_output_tree_ref): For tree nodes that are not
22 normally indexable, call streamer_hooks.indexable_with_decls_p
23 before giving up.
24 (lto_output_ts_decl_common_tree_pointers): Move handling
25 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
26 lto_streamer_write_tree.
27 (lto_output_tree_header): Call streamer_hooks.is_streamable
28 instead of lto_is_streamable.
29 Call lto_streamer_hooks.output_tree_header if set.
30 (lto_write_tree): Call lto_streamer_hooks.write_tree if
31 set.
32 (lto_streamer_write_tree): New.
33 (lto_output): Call lto_streamer_init directly.
34 (lto_writer_init): Remove.
35 * lto-streamer.c (streamer_hooks): New.
36 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
37 instead of lto_preload_common_nodes.
38 (lto_is_streamable): Move from lto-streamer.h
39 (lto_streamer_hooks_init): New.
40 (streamer_hooks): New.
41 (streamer_hooks_init): New.
42 * lto-streamer.h (struct output_block): Forward declare.
43 (struct lto_input_block): Likewise.
44 (struct data_in): Likewise.
45 (struct bitpack_d): Likewise.
46 (struct streamer_hooks): Declare.
47 (streamer_hooks): Declare.
48 (lto_streamer_hooks_init): Declare.
49 (lto_streamer_write_tree): Declare.
50 (lto_streamer_read_tree): Declare.
51 (streamer_hooks_init): Declare.
52 (lto_is_streamable): Move to lto-streamer.c
53
54 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
55
56 * longlong.h (smul_ppmm): The resulting register pair contains the
57 higher order word first.
58
59 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
60
61 PR tree-optimization/46728
62 * builtins.c (powi_table): Remove.
63 (powi_lookup_cost): Remove.
64 (powi_cost): Remove.
65 (expand_powi_1): Remove.
66 (expand_powi): Remove.
67 (expand_builtin_pow_root): Remove.
68 (expand_builtin_pow): Remove.
69 (expand_builtin_powi): Eliminate handling of constant exponent.
70 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
71
72 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
73
74 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
75
76 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
77
78 * dce.c (reset_unmarked_insns_debug_uses): New.
79 (delete_unmarked_insns): Skip debug insns.
80 (prescan_insns_for_dce): Likewise.
81 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
82 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
83 active reg can be found.
84 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
85 (convert_regs_1): Use it.
86
87 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
88
89 * tree-pretty-print.c (dump_function_header): Add flags.
90 Don't dump decl_uid with nouid.
91 * tree-pretty-print.h (dump_function_header): Adjust.
92 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
93 * passes.c (pass_init_dump_file): Pass dump_flags on.
94 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
95
96 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
97
98 PR bootstrap/49270
99 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
100
101 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
102
103 PR tree-optimization/49243
104 * calls.c (setjmp_call_p): Also check if fndecl has the
105 returns_twice attribute.
106
107 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
108
109 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
110 -ffast-math etc.
111
112 2011-06-06 Richard Henderson <rth@redhat.com>
113 Georg-Johann Lay <avr@gjlay.de>
114
115 PR target/42210
116 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
117 New predicates.
118 * config/avr/avr.md ("insv"): New insn expander.
119 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
120 "*insv.not.io", "*insv.reg"): New insns.
121
122 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
123
124 PR target/49285
125 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
126 predicate to nonimmediate_operand from memory_operand for the
127 operand that is to be forced to memory by the expander. Lose
128 the constraints.
129
130 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
131
132 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
133 EH return when delayed branches are disabled.
134
135 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
136
137 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
138 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
139 calculation.
140 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
141 Simplify MODE_V1DF and MODE_V2SF handling.
142 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
143 Simplify MODE_SF handling.
144
145 2011-06-04 Jan Hubicka <jh@suse.cz>
146
147 PR tree-optimization/48893
148 PR tree-optimization/49091
149 PR tree-optimization/49179
150 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
151 Bounds check.
152
153 2011-06-04 Jan Hubicka <jh@suse.cz>
154
155 PR lto/48954
156 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
157
158 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
159
160 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
161
162 2011-06-04 Jakub Jelinek <jakub@redhat.com>
163
164 PR target/49281
165 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
166 to be strictly smaller than 1 << shiftcount.
167
168 2011-06-04 Jan Hubicka <jh@suse.cz>
169
170 PR tree-optimize/48929
171 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
172 of empty predicate.
173
174 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
175
176 PR debug/48333
177 * calls.c (emit_call_1): Prefer the __builtin declaration of
178 builtin functions.
179
180 2011-06-03 Diego Novillo <dnovillo@google.com>
181
182 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
183 (lto_input_tree_pointers): Likewise.
184 * lto-streamer-out.c (pack_value_fields): Likewise.
185 (lto_output_tree_pointers): Likewise.
186 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
187 and OPTIMIZATION_NODE.
188
189 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
192 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
193 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
194 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
195 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
196 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
197 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
198 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
199 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
200 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
201 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
202 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
203 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
204 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
205 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
206 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
207 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
208 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
209 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
210 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
211 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
212 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
213 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
214 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
215 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
216 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
217 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
218 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
219 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
220 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
221 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
222 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
223 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
224 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
225 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
226 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
227 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
228 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
229 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
230 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
231 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
232 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
233 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
234 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
235 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
236 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
237 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
238 * system.h (MD_UNWIND_SUPPORT): Poison.
239 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
240 * doc/tm.texi: Regenerate.
241 * unwind-dw2.c: Include md-unwind-support.h instead of
242 MD_UNWIND_SUPPORT.
243 * config/ia64/unwind-ia64.c: Likewise.
244 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
245
246 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
247
248 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
249
250 2011-06-03 Richard Henderson <rth@redhat.com>
251 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
252
253 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
254 (sigill_hdlr): Correct insn, insn size.
255 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
256
257 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
258
259 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
260 t-slibgcc-dummy.
261 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
262 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
263 * config/mips/t-iris: Remove.
264 * config/mips/t-irix6: New file.
265 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
266
267 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268
269 * Makefile.in (LIB2ADDEHDEP): Remove.
270 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
271 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
272 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
273 * config/t-darwin (LIB2ADDEHDEP): Remove.
274 * config/t-freebsd (LIB2ADDEHDEP): Remove.
275 * config/t-linux (LIB2ADDEHDEP): Remove.
276
277 2011-06-03 Diego Novillo <dnovillo@google.com>
278
279 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
280 (lto_register_var_decl_in_symtab): Likewise.
281 (lto_register_function_decl_in_symtab): Likewise.
282 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
283 logic to uniquify_nodes.
284
285 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286
287 * config/alpha/t-osf5: Remove.
288 * config/alpha/t-osf-pthread: Remove.
289 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
290 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
291
292 2011-06-03 Julian Brown <julian@codesourcery.com>
293
294 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
295 (strongarm1110): Use strongarm tuning.
296 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
297 * config/arm/arm.c (arm_strongarm_tune): New.
298 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
299 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
300 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
301 setting, using previous defaults or 1 for Cortex-A5.
302 (arm_option_override): Set max_insns_skipped from current tuning.
303
304 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
305
306 * doc/install.texi (Options specification): Document --with-specs.
307
308 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
309
310 * config/arm/neon.md (orndi3_neon): Actually split it.
311
312 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
313
314 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
315 * var-tracking.c (reverse_op): Limite recurse depth to 5.
316
317 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
318
319 PR debug/47590
320 * target.def (delay_sched2, delay_vartrack): New.
321 * doc/tm.texi.in: Update.
322 * doc/tm.texi: Rebuild.
323 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
324 * var-tracking.c (gate_handle_var_tracking): Likewise.
325 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
326 (bfin_flag_var_tracking): Drop.
327 (output_file_start): Don't save and override flag_var_tracking.
328 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
329 (bfin_reorg): Test original variables.
330 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
331 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
332 (ia64_flag_var_tracking): Drop.
333 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
334 (ia64_file_start): Don't save and override flag_var_tracking.
335 (ia64_override_options_after_change): Ditto
336 flag_schedule_insns_after_reload.
337 (ia64_reorg): Test original variables.
338 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
339 (picochip_flag_var_tracking): Drop.
340 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
341 (picochip_option_override): Don't save and override
342 flag_schedule_insns_after_reload.
343 (picochip_asm_file_start): Ditto flag_var_tracking.
344 (picochip_reorg): Test original variables.
345 * config/spu/spu.c (spu_flag_var_tracking): Drop.
346 (TARGET_DELAY_VARTRACK): Define.
347 (spu_var_tracking): New.
348 (spu_machine_dependent_reorg): Call it.
349 (asm_file_start): Don't save and override flag_var_tracking.
350
351 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
352
353 PR target/49163
354 * config/sh/predicates.md (general_movsrc_operand): Return 0
355 for memory and memory subreg of which address is an invalid
356 indexed address for QI and HImode.
357 (general_movdst_operand): Likewise.
358
359 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
360
361 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
362 edges only, when there is a non-local label in the function.
363 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
364
365 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
366
367 * config/i386/constraints.md (Y3): New register constraint.
368 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
369 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
370 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
371 *sse2_interleave_lowv2df.
372
373 2011-06-02 Julian Brown <julian@codesourcery.com>
374
375 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
376 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
377 (arm_cortex_a5_tune): New.
378
379 2011-06-02 Julian Brown <julian@codesourcery.com>
380
381 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
382 * config/arm/arm.c (arm_default_branch_cost): New.
383 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
384 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
385 (arm_fa726_tune): Set branch_cost field using
386 arm_default_branch_cost.
387 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
388 current_tune structure.
389 * dojump.c (tm_p.h): Include file.
390
391 2011-06-02 Julian Brown <julian@codesourcery.com>
392
393 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
394 tuning.
395 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
396 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
397 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
398 field.
399 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
400 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
401 (arm_fa726te_tune): Add prefer_constant_pool setting.
402 (arm_v6t2_tune, arm_cortex_tune): New.
403 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
404 prefer_constant_pool setting.
405
406 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
407
408 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
409 switch statement.
410 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
411 (*movdf_internal) <case 6,7,8>: Ditto.
412
413 * config/i386/constraints.md (Y4): New register constraint.
414 * config/i386/sse.md (vec_set<mode>_0): Merge with
415 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
416 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
417 *vec_extractv2di_1_sse.
418 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
419 and *vec_concatv2di_rex64_sse.
420
421 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
422
423 PR target/48807
424 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
425 of cgraph_local_info for null before attempting to use it.
426
427 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
428
429 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
430 (current_function_dynamic_alloc_count): Delete.
431 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
432 (expand_builtin_nonlocal_goto): Remove obsolete comment.
433 (expand_builtin_update_setjmp_buf): Remove dead code.
434 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
435 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
436 support.
437 * function.c (instantiate_virtual_regs): Likewise.
438 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
439 for a block with a single abnormal incoming edge.
440 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
441 (SETJMP_VIA_SAVE_AREA): Delete.
442 * config/sparc/sparc-protos.h (load_got_register): Declare.
443 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
444 (load_got_register): Make global.
445 (sparc_frame_pointer_required): Add 'static'.
446 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
447 (sparc_builtin_setjmp_frame_value): New function.
448 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
449 (save_stack_nonlocal): New expander.
450 (restore_stack_nonlocal): Likewise.
451 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
452 (nonlocal_goto_internal): New insn.
453 (goto_handler_and_restore): Delete.
454 (builtin_setjmp_setup): Likewise.
455 (do_builtin_setjmp_setup): Likewise.
456 (setjmp): Likewise.
457 (builtin_setjmp_receiver): New expander.
458
459 2011-06-01 David Li <davidxl@google.com>
460
461 PR middle-end/49261
462 * tree-pretty-print.c (dump_function_header): Format cleanup.
463
464 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
465
466 PR target/49238
467 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
468 needed when original operands are used for msw_skip comparison.
469
470 2011-06-01 Jakub Jelinek <jakub@redhat.com>
471
472 PR debug/49250
473 * var-tracking.c (add_uses, add_stores): Don't call
474 cselib_subst_to_values on ENTRY_VALUE.
475
476 2011-06-01 Diego Novillo <dnovillo@google.com>
477
478 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
479 output_record_start with LTO_null instead of output_zero.
480 (lto_output_ts_binfo_tree_pointers): Likewise.
481 (lto_output_tree): Likewise.
482 (output_eh_try_list): Likewise.
483 (output_eh_region): Likewise.
484 (output_eh_lp): Likewise.
485 (output_eh_regions): Likewise.
486 (output_bb): Likewise.
487 (output_function): Likewise.
488 (output_unreferenced_globals): Likewise.
489 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
490 instead of NUM_TREE_CODES.
491 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
492 (lto_output_int_in_range): Change << to >> when shifting VAL.
493
494 2011-06-01 Diego Novillo <dnovillo@google.com>
495
496 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
497 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
498
499 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
500
501 PR target/45074
502 * optabs.h (valid_multiword_target_p): Declare.
503 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
504 doing multi-word operations.
505 * optabs.c (expand_binop): Likewise.
506 (expand_doubleword_bswap): Likewise.
507 (expand_absneg_bit): Likewise.
508 (expand_unop): Likewise.
509 (expand_copysign_bit): Likewise.
510 (multiword_target_p): New function.
511
512 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
513
514 PR rtl-optimization/48830
515 PR rtl-optimization/48808
516 PR rtl-optimization/48792
517 * reload.c (push_reload): Check contains_reg_of_mode.
518 * reload1.c (strip_paradoxical_subreg): New function.
519 (gen_reload_chain_without_interm_reg_p): Use it to handle
520 paradoxical subregs.
521 (emit_output_reload_insns, gen_reload): Likewise.
522
523 2011-06-01 David Li <davidxl@google.com>
524
525 * predict.c : Change pass name
526 * ipa.c: Ditto.
527 * dce.c: Ditto.
528 * tree-profile.c: Ditto.
529 * except.c: Ditto.
530
531 2011-06-01 David Li <davidxl@google.com>
532
533 * tree-pretty-print.c (dump_function_header): New function.
534 * final.c (rest_of_clean_state): Use header dumper.
535 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
536 * passes.c (pass_init_dump_file): Use header dumper.
537
538 2011-06-01 Jakub Jelinek <jakub@redhat.com>
539
540 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
541 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
542 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
543 New functions.
544 (mem_loc_descriptor): Use them.
545
546 * var-tracking.c (create_entry_value): New function.
547 (vt_add_function_parameter): Use it.
548
549 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
550
551 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
552 Include <signal.h>, <ucontext.h>.
553 (sigill_caught): Define.
554 (sigill_hdlr): New function.
555 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
556 insns can be executed.
557 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
558 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
559
560 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
561
562 * config/t-slibgcc-darwin: Move to ...
563 * config/t-slibgcc-dummy: ... this. Clarify comments.
564 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
565 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
566 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
567 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
568 Remove i386/t-crtstuff from tmake_file.
569 (i[34567]86-*-solaris2*): Remove t-svr4,
570 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
571 t-slibgcc-dummy.
572 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
573 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
574 sparc/t-crtfm from tmake_file.
575 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
576 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
577 Remove extra_parts.
578 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
579 * config/i386/t-nwld (SHLIB_LINK): Remove.
580 * config/i386/t-rtems-i386: Rename to ...
581 * config/i386/t-rtems: ... this.
582 ($(T)crti.o, $(T)crtn.o): Remove.
583 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
584 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
585 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
586 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
587 EXTRA_MULTILIB_PARTS): Remove.
588 * config/sparc/t-sol2-64: Likewise.
589 * config/sparc/t-sol2: Remove.
590 * config/sparc/t-crtin: Remove.
591 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
592 * config/i386/gmon-sol2.c: Remove.
593 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
594 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
595 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
596 * config/i386/sol2-gc1.asm: Remove.
597 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
598 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
599 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
600 * config/t-slibgcc-sld: Remove.
601
602 2011-06-01 Jakub Jelinek <jakub@redhat.com>
603
604 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
605 base_type_for_mode with op_mode instead of mode.
606
607 2011-06-01 Paul Brook <paul@cpodesourcery.com>
608
609 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
610 Cortex-A15.
611 * config/arm/arm-tune.md: Regenerate.
612 * config/arm/arm-tables.opt: Regenerate.
613 * config/arm/arm.c (FL_DIV): Rename...
614 (FL_THUMB_DIV): ... to this.
615 (FL_ARM_DIV): Define.
616 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
617 (arm_arch_hwdiv): Remove.
618 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
619 (arm_issue_rate): Add cortexr5.
620 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
621 __ARM_ARCH_EXT_IDIV__.
622 (TARGET_IDIV): Define.
623 (arm_arch_hwdiv): Remove.
624 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
625 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
626 (divsi3, udivsi3): New patterns.
627 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
628 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
629
630 2011-06-01 Martin Jambor <mjambor@suse.cz>
631
632 * ipa-utils.c (ipa_dfs_info): New field scc_no.
633 * ipa-utils.c (searchc): Set scc_no.
634
635 2011-06-01 Martin Jambor <mjambor@suse.cz>
636
637 * ipa-utils.c (searchc_env): New field allow_overwritable.
638 (searchc): do not ignore edges to overwritable nodes if indicated
639 by env->allow_overwritable.
640 (ipa_reduced_postorder): Set env.allow_overwritable.
641
642 2011-06-01 Richard Guenther <rguenther@suse.de>
643
644 * tree.c (free_lang_data): Do not reset boolean_type_node nor
645 char_type_node.
646 * lto-streamer.c (lto_record_common_node): Take node pointer,
647 do not register types.
648 (lto_preload_common_nodes): Explicitly skip preloading nodes
649 that differ between frontends.
650
651 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
652
653 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
654 NON_FLOAT_REGS.
655
656 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
657
658 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
659 parameter value for dump. Dump cost on outermost call only.
660 (rs6000_memory_move_cost): Dump cost on outermost call only.
661
662 2011-05-31 Jakub Jelinek <jakub@redhat.com>
663
664 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
665 DW_OP_GNU_convert ops.
666
667 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
668 cselib_preserve_constants.
669 (cselib_lookup_1): If cselib_preserve_constants,
670 a new VALUE is being created for REG and there is a VALUE for the
671 same register in wider mode, add another loc with lowpart SUBREG of
672 the wider VALUE.
673 (cselib_subst_to_values): Handle ENTRY_VALUE.
674 * var-tracking.c (replace_expr_with_values): Return NULL for
675 ENTRY_VALUE too.
676 * dwarf2out.c (convert_descriptor_to_signed): New function.
677 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
678 instead of two shifts.
679 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
680 the right mode if needed.
681 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
682 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
683 convert_descriptor_to_signed.
684 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
685 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
686
687 PR target/48688
688 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
689
690 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
691
692 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
693 of X87MODEI12 and SWI48x instead of SSEMODEI24.
694 (SWI248x): New mode iterator, rename from X87MODEI.
695 (X87MODEI): Remove mode iterator.
696 (X87MODEI12): Ditto.
697 (SSEMODEI24): Ditto.
698
699 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
700
701 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
702 * doc/invoke.texi: Document max-vartrack-expr-depth.
703 * var-tracking.c (EXPR_DEPTH): New.
704 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
705
706 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
707
708 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
709 * config/i386/sse.md: Add n to negated FMA pattern names.
710
711 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
712
713 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
714
715 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
716
717 * gengtype-state.c (read_state_params_structs): Initialize previous.
718
719 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
720
721 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
722 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
723
724 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
725
726 * config/i386/i386.md (*movtf_internal): Avoid allocating general
727 registers. Penalize F*r->o alternative to prevent partial memory
728 stalls. Slightly penalize *roF->*r alternative. Generate SSE
729 CONST_DOUBLE immediates when optimizing function for size. Do not move
730 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
731 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
732 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
733 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
734 alternatives.
735 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
736
737 (fp_register_operand splitters): Use fp_register_operand
738 constraint. Do not use FP_REG_P in insn condition.
739 (any_fp_register_operand splitters): Use any_fp_register_operand
740 constraint. Do not use ANY_FP_REG_P in insn condition.
741
742 2011-05-31 Jan Hubicka <jh@suse.cz>
743
744 * cgraph.h (cgraph_inline_failed_t): Give enum a name
745 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
746 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
747 (lto_output_edge): Use output_enum and var_len_unsigned.
748 (lto_output_varpool_node): Likewise.
749 (input_overwrite_node): Do not take resolution parameter;
750 extract it from a bitpack.
751 (input_node): Do not read resolution; use input_enum and
752 var_len_unsigned.
753 (input_varpool_node): Likewise.
754 (input_edge): Likewise.
755 (input_cgraph_1): Likewise.
756
757 2011-05-31 Richard Guenther <rguenther@suse.de>
758
759 * gimple.c (gimple_register_canonical_type): Do not register
760 any types via gimple_register_type.
761
762 2011-05-31 Jan Hubicka <jh@suse.cz>
763
764 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
765 of thunks.
766
767 2011-05-31 Jakub Jelinek <jakub@redhat.com>
768
769 PR rtl-optimization/49235
770 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
771 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
772
773 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
774
775 PR tree-optimization/49093
776 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
777 data references.
778
779 2011-05-31 Dodji Seketeli <dodji@redhat.com>
780
781 PR debug/49047
782 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
783 for concrete functions containing the code of cloned functions.
784
785 2011-05-31 Richard Guenther <rguenther@suse.de>
786
787 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
788 to ...
789 (forward_propagate_into_comparison_1): ... this.
790 (forward_propagate_comparison): Rename to ...
791 (forward_propagate_into_comparison): ... this. Split out
792 real forward propagation code to ...
793 (forward_propagate_comparison): ... this.
794 (forward_propagate_into_gimple_cond): Remove looping.
795 (forward_propagate_into_cond): Likewise.
796 (simplify_not_neg_expr): Return whether we have done something.
797 (simplify_gimple_switch): Likewise.
798 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
799 (ssa_forward_propagate_and_combine): ... this. Re-structure
800 to do a forward forward-propagation walk on BBs and a backward
801 stmt combining walk on BBs. Consistently re-scan changed statements.
802 (pass_forwprop): Adjust.
803
804 2011-05-30 Ian Lance Taylor <iant@google.com>
805
806 * godump.c (go_format_type): Correct length of name added to
807 obstack for anonymous field.
808
809 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
810
811 PR target/49186
812 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
813 part of the second operand is 0.
814
815 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
816
817 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
818 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
819 to memory for !TARGET_MEMORY_MISMATCH_STALL.
820 (*movdf_internal_rex64): Do not penalize F->r alternative.
821 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
822 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
823 when optimizing function for size. Do not move CONST_DOUBLEs
824 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
825 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
826 SUBREGs. Do not check for MEM_P operands in the insn condition,
827 check for ANY_FP_REGNO_P instead.
828 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
829 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
830 function for speed.
831 * config/i386/i386.c (ix86_option_override_internal): Do not
832 set TARGET_INTEGER_DFMODE_MOVES here.
833
834 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
835
836 PR target/49168
837 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
838
839 2011-05-30 Jakub Jelinek <jakub@redhat.com>
840
841 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
842 DW_TAG_rvalue_reference_type even for
843 -gdwarf-4 -fno-debug-types-section.
844
845 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
846
847 PR tree-optimization/46728
848 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
849 (build_and_insert_binop): New.
850 (gimple_expand_builtin_pow): Reorder args for
851 build_and_insert_call; use build_and_insert_binop; add more
852 optimizations for fractional exponents.
853
854 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
855
856 PR bootstrap/49190
857
858 Revert:
859 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
860
861 * tree.h (struct tree_identifier): Inherit from tree_typed, not
862 tree_common.
863 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
864 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
865 TS_BASE instead of TS_COMMON.
866 * varasm.c (assemble_name): Remove assert.
867
868 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
869
870 * config.gcc: Keep obselete list sorted.
871
872 2011-05-30 Jakub Jelinek <jakub@redhat.com>
873 Eric Botcazou <ebotcazou@adacore.com>
874
875 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
876 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
877 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
878 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
879 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
880
881 2011-05-30 Richard Guenther <rguenther@suse.de>
882
883 * gimple.c (gimple_types_compatible_p_1): Compare record
884 and union type members properly.
885
886 2011-05-30 Richard Guenther <rguenther@suse.de>
887
888 PR tree-optimization/49210
889 * ipa-split.c (split_function): Care for the case where the call
890 result is not trivially convertible to the result holding variable.
891
892 2011-05-30 Richard Guenther <rguenther@suse.de>
893
894 PR tree-optimization/49218
895 * tree-vrp.c (adjust_range_with_scev): Properly check whether
896 overflow occured.
897
898 2011-05-30 Richard Guenther <rguenther@suse.de>
899
900 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
901 New function split out from ...
902 (forward_propagate_into_gimple_cond): ... here. Adjust.
903 (forward_propagate_into_cond): Likewise.
904 (forward_propagate_comparison): Also propagate into
905 comparisons on assignment RHS. Change return value to
906 behave similar to forward_propagate_into_cond.
907 (tree_ssa_forward_propagate_single_use_vars): Handle
908 strict-overflow warnings properly for forward_propagate_comparison.
909
910 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
911
912 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
913 from plugin linker.
914 * configure: Regenerate.
915
916 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
917
918 PR tree-optimization/49199
919 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
920 non-reduction operands are either defined in the loop or by induction.
921
922 2011-05-29 Xinliang David Li <davidxl@google.com>
923
924 * opts-global.c (handle_common_deferred_options): Handle new options.
925 * passes.c (register_one_dump_file): Call register_pass_name.
926 (execute_one_pass): Check explicit enable/disable flag.
927 (passr_hash): New function.
928 (passr_eq): Ditto.
929 (register_pass_name): Ditto.
930 (get_pass_by_name): Ditto.
931 (pass_hash): Ditto.
932 (pass_eq): Ditto.
933 (enable_pass): Ditto.
934 (disable_pass): Ditto.
935 (is_pass_explicitly_enabled_or_disabled): Ditto.
936
937 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
938
939 * config/i386/i386.md (*movoi_internal_avx): Use
940 standard_sse_constant_opcode for alternative 0.
941 (*movti_internal_sse): Ditto.
942 (*movti_internal_rex64): Use standard_sse_constant_opcode for
943 alternative 2.
944 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
945 sselog1 type moves.
946 (*movsi_internal): Ditto.
947 (*movdi_internal): Ditto. Add ssecvt type moves.
948
949 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
950
951 PR target/48830
952 * rtlanal.c (simplify_subreg_regno): Adjust comment.
953
954 2011-05-29 Jakub Jelinek <jakub@redhat.com>
955
956 PR rtl-optimization/49095
957 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
958 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
959
960 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
961
962 PR target/43995
963 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
964 recurse_p argument. Only follow register copies if it is set,
965 and prevent mips_find_pic_call_symbol from recursing.
966 (mips_find_pic_call_symbol): Add a recurse_p argument.
967 Pass it to mips_pic_call_symbol_from_set.
968 (mips_annotate_pic_calls): Update accordingly.
969
970 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
971
972 * emit-rtl.c (try_split): Use a loop to search for
973 NOTE_INSN_CALL_ARG_LOCATIONs.
974
975 2011-05-29 Richard Guenther <rguenther@suse.de>
976
977 PR tree-optimization/49217
978 * ipa-pure-const.c (propagate_pure_const): Fix typos.
979
980 2011-05-28 Jan Hubicka <jh@suse.cz>
981
982 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
983 length.
984 (string_slot_free): Remove
985 (create_output_block): Initialize obstack.
986 (destroy_output_block): Free obstack.
987 (lto_string_index): Add PERSISTENT parameter; do not duplicate
988 the string unless it needs to be added into the hash.
989 (lto_output_string_with_length): Add persistent attribute;
990 handle NULL strings.
991 (lto_output_string): Add PERSISTENT parameter.
992 (output_string_cst, output_identifier): Simplify.
993 (lto_output_location_bitpack): Update.
994 (lto_output_builtin_tree): Update.
995 * lto-streamer.h (struct output_block): Add obstack.
996 (lto_output_string, lto_output_string_with_length): Remove
997 declarations; functions are static now.
998
999 2011-05-28 Jan Hubicka <jh@suse.cz>
1000
1001 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1002 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1003 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1004 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1005 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1006 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1007 unpack_ts_decl_with_vis_value_fields,
1008 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1009 lto_get_builtin_tree): Use enum and variable length i/o.
1010 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1011 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1012 New functions.
1013 (bp_pack_enum, bp_unpack_enum): New macros.
1014
1015 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1016
1017 * genrecog.c: Remove redundant forward declarations.
1018
1019 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1020
1021 * config.gcc: Deprecate mips*-*-openbsd*.
1022
1023 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1024
1025 PR bootstrap/49195
1026 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1027 for match_op_dup.
1028
1029 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1030
1031 PR middle-end/48981
1032 * gengtype.c (vec_prefix_type): New function.
1033 (note_def_vec): Use vec_prefix_type and change the length
1034 attribute to be based on the prefix.
1035 * vec.c: Include coretypes.h before vec.h.
1036 (struct vec_prefix): Remove.
1037 (vec_gc_p_reserve): Change the offsetof to sizeof.
1038 (vec_gc_p_reserve_exact): Likewise.
1039 (vec_heap_p_reserve): Likewise.
1040 (vec_heap_p_reserve_exact): Likewise.
1041 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1042 (vec_stack_p_reserve): Change the offsetof to sizeof.
1043 (vec_stack_p_reserve_exact): Likewise.
1044 * vec.h (struct vec_prefix): New struct definition.
1045 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1046 (VEC_T_GTY(T,B)): Likewise.
1047 (DEF_VEC_FUNC_P(T)): Use prefix field.
1048 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1049 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1050
1051 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1052
1053 PR tree-optimization/46728
1054 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1055 (powi_as_mults): Add gimple_set_location.
1056 (build_and_insert_call): New.
1057 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1058 0.5, 0.25, 0.75, 1./3., or 1./6.
1059
1060 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1061
1062 * doc/contrib.texi: Update copyright years.
1063 (Contributors): Add Zdenek Sojka.
1064
1065 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1066
1067 * c-decl.c (c_push_function_context): Copy the current statement
1068 list stack.
1069 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1070 (finish_struct): Call building_stmt_list_p instead of checking
1071 cur_stmt_list.
1072 * c-parser.c (c_parser_postfix_expression): Likewise.
1073 * c-typeck.c (c_end_compound_stmt): Likewise.
1074 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1075 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1076 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1077 (free_stmt_list): Likewise.
1078 * tree.h (struct tree_statement_list): Include typed_tree instead
1079 of tree_common.
1080 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1081 as TS_TYPED instead of TS_COMMON.
1082
1083 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1084 Uros Bizjak <ubizjak@gmail.com>
1085
1086 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1087 (HAVE_AS_IX86_TLSGDPTL): Define.
1088 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1089 (HAVE_AS_IX86_TLSLDMPLT): Define.
1090 * configure: Regenerate.
1091 * config.in: Regenerate.
1092 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1093 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1094 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1095 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1096 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1097 @tlsldmplt or @plt.
1098 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1099
1100 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1101
1102 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1103 and reverse_cond.
1104 (INSN_COND, INSN_REVERSE_COND): New macros.
1105 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1106 once.
1107 (sched_get_condition_with_rev): Cache the results, and look them up
1108 if possible.
1109 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1110 are clobbered by the current insn.
1111 * target.def (exposed_pipline): New sched data hook.
1112 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1113 * doc/tm.texi: Regenerate.
1114
1115 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1116
1117 PR tree-optimization/49170
1118 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1119 sincos or cexp.
1120
1121 2011-05-27 Richard Guenther <rguenther@suse.de>
1122
1123 PR middle-end/49189
1124 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1125 of comparisons.
1126
1127 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1128
1129 * haifa-sched.c (sched_scan_info): Remove.
1130 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1131 with NULL args.
1132 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1133 Remove functions.
1134 (sched_scan): Remove.
1135 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1136 static. All callers changed.
1137 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1138 static. All callers changed.
1139 (sched_init_luids): Remove all arguments except the first. All
1140 callers changed. Don't use sched_scan.
1141 (haifa_init_h_i_d): Likewise.
1142 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1143 manually rather than using sched_init_luids. Likewise with
1144 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1145 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1146 rather than sched_init_luids with NULL args.
1147 * sel-sched-ir.c (new_insns): Remove variable.
1148 (sched_scan): New static function, previously in haifa-sched.c. Remove
1149 all arguments but the first two; all callers changed.
1150 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1151 rather than sched_init_luids.
1152 (sel_init_bbs): Remove second argument. All callers changed.
1153 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1154 with NULL arguments.
1155 (create_insn_rtx_from_pattern): Likewise.
1156 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1157 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1158 (sched_init_insn_luid, sched_extend_luids): Declare.
1159 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1160 declarations.
1161
1162 2011-05-27 Richard Guenther <rguenther@suse.de>
1163
1164 PR middle-end/49177
1165 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1166 A CMP B ? (T) true : (T) false for non-integral types T again.
1167
1168 2011-05-27 Jan Hubicka <jh@suse.cz>
1169
1170 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1171 so 0 means NULL string.
1172 (lto_output_string_with_length): ... here.
1173 (lto_output_string, output_string_cst, output_identifier): Update
1174 handling of NULL strings.
1175 (lto_output_location_bitpack): New function.
1176 (lto_output_location): Use it.
1177 (lto_output_tree_ref): Use output_record_start.
1178 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1179 len values.
1180 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1181 values by 1.
1182 (input_string_internal): ... here;
1183 (input_string_cst, input_identifier, lto_input_string): Update handling
1184 of NULL strings.
1185 (lto_input_location_bitpack): New function
1186 (lto_input_location): Use it.
1187 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1188 values.
1189 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1190 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1191 (bp_pack_value): Sanity check the value range.
1192 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1193 New functions.
1194 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1195 New functions.
1196
1197 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1198
1199 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1200 call_arg_location instructions down the floor.
1201
1202 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1203
1204 PR rtl-optimization/49154
1205 * ira.c (setup_pressure_classes): Process class without sublcasses
1206 as a candidate for pressure classes.
1207
1208 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1209
1210 PR rtl-optimization/48575
1211 * genrecog.c (position_type): New enum.
1212 (position): New structure.
1213 (decision): Use position structure instead of a string.
1214 (root_pos, peep2_insn_pos_list): New variables.
1215 (next_position, compare_positions): New functions.
1216 (new_decision): Use position structures instead of strings.
1217 (maybe_both_true): Likewise.
1218 (change_state): Likewise.
1219 (write_tree): Likewise.
1220 (make_insn_sequence): Likewise.
1221
1222 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1223
1224 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1225 TS_BASE instead of TS_COMMON.
1226 (find_decls_types_r): Check for TS_TYPED structure before looking at
1227 TREE_TYPE.
1228 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1229 Add chain field.
1230 (BLOCK_CHAIN): Use new chain field.
1231
1232 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1233
1234 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1235 moves expensive on Power7 also.
1236
1237 2011-05-26 Richard Guenther <rguenther@suse.de>
1238
1239 * fold-const.c (fold_unary_loc): Remove bogus code.
1240
1241 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1242
1243 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1244 tree_common.
1245 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1246 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1247 TS_BASE instead of TS_COMMON.
1248 * varasm.c (assemble_name): Remove assert.
1249
1250 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1251
1252 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1253 substituted first.
1254 * libgcc-std.ver: Delete file.
1255
1256 2011-05-26 Richard Guenther <rguenther@suse.de>
1257
1258 PR tree-optimization/48702
1259 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1260 only when we know the base address is within bounds.
1261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1262 assume the base address of TARGET_MEM_REFs is in bounds.
1263
1264 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1265
1266 PR target/49099
1267 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1268 declaration in TARGET_SOLARIS.
1269
1270 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1271
1272 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1273 The instruction is then expanded explicitly.
1274 (supported_compare): Callable instruction.
1275 (compare): Likewise.
1276
1277 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1278
1279 PR c++/49165
1280 * gimplify.c (shortcut_cond_r): Don't special case
1281 COND_EXPRs if they have void type on one of their arms.
1282
1283 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1284
1285 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1286 to reduce duplication, and to achieve a slightly more logical order
1287 of operations.
1288
1289 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1290
1291 PR tree-optimization/49161
1292 * tree-vrp.c (struct case_info): New type.
1293 (compare_case_labels): Sort case_info structs instead of
1294 trees, and not primarily by CASE_LABEL uids but by
1295 label_for_block indexes.
1296 (find_switch_asserts): Put case labels into struct case_info
1297 array instead of TREE_VEC, adjust sorting, compare label_for_block
1298 values instead of CASE_LABELs.
1299
1300 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1301
1302 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1303 ("orndi3_neon"): Likewise.
1304 ("bic<mode>3_neon"): Likewise.
1305
1306 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1307
1308 PR tree-optimization/49038
1309 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1310 Ensure at least one epilogue iteration if required by data
1311 accesses with gaps.
1312 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1313 to mark loops that require peeling for gaps.
1314 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1315 (vect_get_known_peeling_cost): Take peeling for gaps into
1316 account.
1317 (vect_transform_loop): Generate epilogue if required by data
1318 access with gaps.
1319 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1320 loop as requiring an epilogue if there are gaps in the end of
1321 the strided group.
1322
1323 2011-05-25 Ian Lance Taylor <iant@google.com>
1324
1325 * godump.c (go_format_type): Output the first field with a usable
1326 Go type, if any.
1327
1328 2011-05-25 Ian Lance Taylor <iant@google.com>
1329
1330 * godump.c (go_format_type): Check for invalid type names, pointer
1331 target types, and struct field types.
1332
1333 2011-05-25 Jason Merrill <jason@redhat.com>
1334
1335 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1336
1337 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1338
1339 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1340
1341 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * config/i386/i386.md (*movqi_extv_1)): Put back
1344 "register_operand" check in "type" calculation.
1345 (*movqi_extzv_2): Likewise.
1346
1347 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1348
1349 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1350
1351 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1352
1353 PR bootstrap/49160
1354 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1355 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1356 __divxc3, __divtc3): Wrap definitions in #ifndef.
1357
1358 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1359
1360 PR target/49142
1361 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1362 "register_operand" check and replace q_regs_operand with
1363 QIreg_operand in "type" calculation.
1364 (*movqi_extv_1): Likewise.
1365 (*movqi_extzv_2_rex64): Likewise.
1366 (*movqi_extzv_2): Likewise.
1367
1368 * config/i386/predicates.md (QIreg_operand): New.
1369
1370 2011-05-25 Richard Guenther <rguenther@suse.de>
1371
1372 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1373 type-based offset disambiguation, streamline MEM_REF and
1374 TARGET_MEM_REF handling.
1375
1376 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1377
1378 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1379 (bdesc_special_args): Add pause intrinsic.
1380
1381 * config/i386/i386.md (UNSPEC_PAUSE): New.
1382 (pause): Likewise.
1383 (*pause): Likewise.
1384 * config/i386/ia32intrin.h (__pause): Likewise.
1385
1386 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1387 pause intrinsic.
1388
1389 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1390
1391 PR tree-optimization/46728
1392 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1393 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1394
1395 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1396
1397 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1398 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1399 instead of TS_COMMON.
1400
1401 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1402
1403 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1404 LIBGCC2_GNU_PREFIX is defined.
1405 (__N): New macro.
1406 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1407 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1408 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1409 __clz_tab): Define using __N.
1410 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1411 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1412 * target.def (libfunc_gnu_prefix): New hook.
1413 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1414 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1415 * doc/tm.texi: Regenerate.
1416 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1417 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1418 account.
1419 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1420 (init_optabs): Likewise for the bswap libfuncs.
1421 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1422 and divide.
1423 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1424 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1425 * libgcc-std.ver: Remove.
1426 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1427 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1428 libgcc-std.ver.
1429 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1430 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1431 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1432 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1433 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1434 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1435 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1436 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1437 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1438 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1439
1440 2011-05-25 Jan Hubicka <jh@suse.cz>
1441
1442 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1443 (lto_output_tree): Use output_record_start.
1444 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1445 (lto_get_pickled_tree): Use input_record_start.
1446 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1447 (lto_value_range_error): New function.
1448 * lto-streamer.h (lto_value_range_error): Declare.
1449 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1450 (lto_output_enum, lto_input_enum): New macros.
1451
1452 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1453
1454 * common.opt (flag_stack_usage_info): New variable.
1455 (-Wstack-usage): New option.
1456 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1457 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1458 <OPT_fstack_usage>: Likewise.
1459 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1460 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1461 of flag_stack_usage.
1462 (emit_library_call_value_1): Likewise.
1463 * explow.c (allocate_dynamic_stack_space): Likewise.
1464 * function.c (instantiate_virtual_regs ): Likewise.
1465 (prepare_function_start): Likewise.
1466 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1467 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1468 * config/arm/arm.c (arm_expand_prologue): Likewise.
1469 (thumb1_expand_prologue): Likewise.
1470 * config/avr/avr.c (expand_prologue): Likewise.
1471 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1472 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1473 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1474 * config/mips/mips.c (mips_expand_prologue): Likewise.
1475 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1476 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1477 * config/s390/s390.c (s390_emit_prologue): Likewise.
1478 * config/sh/sh.c (sh_expand_prologue): Likewise.
1479 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1480 * config/spu/spu.c (spu_expand_prologue): Likewise.
1481
1482 2011-05-25 Richard Guenther <rguenther@suse.de>
1483
1484 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1485 (gimple_canonical_types_compatible_p): Likewise.
1486
1487 2011-05-25 Jan Hubicka <jh@suse.cz>
1488
1489 PR middle-end/49062
1490 * ipa.c (function_and_variable_visibility): Only add to same
1491 comdat group list if DECL_ONE_ONLY.
1492
1493 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1494
1495 PR rtl-optimization/49014
1496 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1497
1498 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1499
1500 PR target/49128
1501 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1502
1503 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1504
1505 PR rtl-optimization/48757
1506 * ira-build.c (loop_with_eh_edge_p): Rename to
1507 loop_with_complex_edge_p, check edges on complexity, make function
1508 conditional.
1509 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1510 conditional.
1511
1512 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1513
1514 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1515 force flag_ira_share_save_slots to 0.
1516
1517 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1518
1519 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1520 (vt_initialize): Set PROLOGUE_BB unconditionally.
1521 Add block comment about CFA_BASE_RTX machinery.
1522 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1523 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1524
1525 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1526
1527 PR objc/48187
1528 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1529 parsing of syntax error in ObjC instance variable lists. In
1530 particular, avoid an infinite loop if there is a stray ']'.
1531 Updated error message.
1532
1533 2011-05-24 Ian Lance Taylor <iant@google.com>
1534
1535 * godump.c (go_define): Don't accept a string immediately after
1536 another operand.
1537
1538 2011-05-24 Ian Lance Taylor <iant@google.com>
1539
1540 * godump.c (struct godump_container): Add invalid_hash field.
1541 (go_format_type): Return false if type is found in invalid_hash.
1542 (go_output_typedef): Add invalid type to invalid_hash.
1543 (go_finish): Create and delete invalid_hash.
1544
1545 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1546
1547 PR tree-optimization/46728
1548 * tree-ssa-math-opts.c (powi_table): New.
1549 (powi_lookup_cost): New.
1550 (powi_cost): New.
1551 (powi_as_mults_1): New.
1552 (powi_as_mults): New.
1553 (gimple_expand_builtin_powi): New.
1554 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1555 (gate_cse_sincos): Remove sincos/cexp restriction.
1556
1557 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1558
1559 PR target/3746
1560 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1561 mips-tdump native.
1562 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1563 * mips-tdump.c: Likewise.
1564
1565 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1566
1567 PR target/49128
1568 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1569 add -mno-XXX. Handle FMA.
1570
1571 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1572
1573 PR rtl-optimization/48633
1574 * ira-build.c (loop_with_eh_edge_p): New function.
1575 (mark_loops_for_removal): Use it.
1576
1577 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1578
1579 PR rtl-optimization/48971
1580 * ira.c (setup_pressure_classes): Don't check register move cost
1581 for classes with one registers. Don't add pressure class if there
1582 is a pressure class with the same available hard registers.
1583 Check contains_reg_of_mode. Fix a typo in collecting
1584 temp_hard_regset. Ignore hard registers not belonging to a class.
1585
1586 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1587
1588 PR target/49133
1589 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1590
1591 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1592 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1593
1594 PR gcov-profile/48845
1595 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1596
1597 2011-05-24 Richard Guenther <rguenther@suse.de>
1598
1599 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1600 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1601 (gimple_types_compatible_p_1): Adjust.
1602 (iterative_hash_canonical_type): Do not bother about complete vs.
1603 incomplete types.
1604 (gimple_canonical_types_compatible_p): Likewise.
1605
1606 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1607
1608 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1609
1610 2011-05-24 Richard Guenther <rguenther@suse.de>
1611
1612 PR bootstrap/49078
1613 * gimple.c (gimple_register_canonical_type): Revert
1614 previous change.
1615 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1616 does not for a tree for the case where it matters. Cache
1617 pointer-type alias-sets.
1618
1619 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1620
1621 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1622 (OBJS): Remove options.o, opts-common.o and prefix.o.
1623 (OBJS-libcommon-target): New.
1624 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1625 (BACKEND): Include libcommon-target.a.
1626 (MOSTLYCLEANFILES): Include libcommon-target.a.
1627 (libcommon-target.a): New.
1628 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1629 prefix.o.
1630
1631 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1632
1633 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1634 parts of output shared with the driver.
1635 * optc-gen.awk: Don't generate parts of output not shared with the
1636 driver.
1637 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1638 * doc/options.texi (SourcerInclude): Mention options-save.c.
1639 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1640 (OBJS): Add options-save.o.
1641 (options-save.c, options-save.o): New.
1642 (options.o): Update dependencies.
1643 (gcc-options.o): Remove.
1644 (mostlyclean): Remove options-save.c.
1645
1646 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1647
1648 PR debug/49032
1649 * dbxout.c: Include cgraph.h.
1650 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1651 and without value expr, return NULL if no varpool node exists for
1652 it or if it is not needed.
1653 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1654
1655 PR c/49120
1656 * c-decl.c (start_decl): Convert expr to void_type_node.
1657
1658 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1659
1660 PR rtl-optimization/48826
1661 * emit-rtl.c (try_split): When splitting a call that is followed
1662 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1663
1664 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1665
1666 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1667 parameters passed in memory prefer using DECL_INCOMING_RTL over
1668 the pseudos it will be copied into.
1669
1670 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1671
1672 PR target/47315
1673 * config/i386/i386.c (ix86_option_override_internal): Save the
1674 initial options after checking vzeroupper.
1675
1676 2011-05-23 David Li <davidxl@google.com>
1677
1678 PR tree-optimization/48988
1679 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1680 Initialize has_valid_pred for each pred chain.
1681
1682 2011-05-23 Richard Guenther <rguenther@suse.de>
1683
1684 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1685 (iterative_hash_gimple_type): Always hash type names.
1686
1687 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1688
1689 * c-typeck.c (build_function_call_vec): Tweak call to
1690 check_function_arguments.
1691
1692 2011-05-23 Richard Guenther <rguenther@suse.de>
1693
1694 PR tree-optimization/49115
1695 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1696 is not necessarily carried out, do not claim it kills the ref.
1697 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1698
1699 2011-05-23 Richard Guenther <rguenther@suse.de>
1700
1701 PR middle-end/15419
1702 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1703 what pointer types we accept for folding.
1704
1705 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1706
1707 * gthr-gnat.c: Remove.
1708 * gthr-gnat.h: Remove.
1709 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1710 * config/t-freebsd (LIB2ADDEH): Likewise.
1711 * config/t-linux (LIB2ADDEH): Likewise.
1712 * config/t-sol2 (LIB2ADDEH): Likewise.
1713 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1714 * configure.ac (target_thread_file): Remove gnat handling.
1715 * configure: Regenerate.
1716 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1717
1718 2011-05-23 Tristan Gingold <gingold@adacore.com>
1719 Eric Botcazou <ebotcazou@adacore.com>
1720
1721 * gcov.c (create_file_names): If no object directory is specified,
1722 keep the directory of the file.
1723
1724 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1725
1726 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1727 * configure: Regenerate.
1728
1729 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1730
1731 PR middle-end/48973
1732 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1733 failed and the comparison has a single bit signed type, use
1734 constm1_rtx instead of const1_rtx for true value.
1735 (do_store_flag): If ops->type is single bit signed type, disable
1736 signel bit test optimization and pass -1 instead of 1 as last
1737 parameter to emit_store_flag_force.
1738
1739 2011-05-23 Tom de Vries <tom@codesourcery.com>
1740
1741 PR target/45098
1742 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1743 function.
1744 (infer_loop_bounds_from_undefined): Use new function.
1745
1746 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1747
1748 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1749 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1750 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1751 and -O0 otherwise.
1752 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1753
1754 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1755
1756 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1757 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1758 returns true.
1759
1760 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1761
1762 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1763
1764 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1765
1766 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1767 UNSPEC_MOVE_PIC pattern.
1768
1769 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1770
1771 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1772 (sparc-*-rtems*): Likewise.
1773 (sparc64-*-elf*): Likewise.
1774 (sparc64-*-rtems*): Likewise.
1775 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1776 * config/sparc/t-crtin: New file.
1777 * config/sparc/t-sol2 (crti.o): Delete rule.
1778 (crtn.o): Likewise.
1779 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1780 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1781 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1782 (ENDFILE_SPEC): Add crtn.o.
1783
1784 2011-05-22 Tom de Vries <tom@codesourcery.com>
1785
1786 PR middle-end/48689
1787 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1788 CODE_CONTAINS_STRUCT (TS_COMMON).
1789
1790 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1791
1792 PR middle-end/49029
1793 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1794 only after deciding which mode to use.
1795
1796 2011-05-22 Tom de Vries <tom@codesourcery.com>
1797
1798 PR target/45098
1799 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1800 for call to get_shiftadd_cost.
1801
1802 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1803
1804 PR target/49104
1805 * config/i386/cpuid.h (bit_MMXEXT): New define.
1806
1807 2011-05-22 Nick Clifton <nickc@redhat.com>
1808
1809 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1810 initialisation of non-existant args[2] element. Use args[] array
1811 not arg[] array to pass arguments to build_function_type_list.
1812
1813 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1814
1815 PR tree-optimization/49087
1816 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1817
1818 2011-05-21 Jason Merrill <jason@redhat.com>
1819
1820 PR c++/49092
1821 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1822 static storage duration.
1823
1824 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1825
1826 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1827 frame pointer.
1828
1829 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1830
1831 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1832 false if there are call-saved registers here...
1833 (sparc_can_use_return_insn_p): ...but here instead.
1834 (save_or_restore_regs): Fix thinko.
1835 (sparc_expand_prologue): Use current_function_is_leaf.
1836 (sparc_frame_pointer_required): Likewise.
1837
1838 2011-05-21 Nick Clifton <nickc@redhat.com>
1839
1840 PR target/49098
1841 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1842
1843 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1844
1845 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1846 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1847
1848 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1849
1850 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1851 * optc-gen.awk: Move common code to opt-read.awk.
1852 * opth-gen.awk: Likewise.
1853 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1854
1855 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1856
1857 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1858
1859 2011-05-20 Tom de Vries <tom@codesourcery.com>
1860
1861 PR target/45098
1862 * tree-ssa-loop-ivopts.c: Include expmed.h.
1863 (get_shiftadd_cost): New function.
1864 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1865
1866 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1867
1868 PR bootstrap/49086
1869 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1870 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1871
1872 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1873
1874 * Makefile.in: Update comment referring to $(OBJS-common).
1875
1876 2011-05-20 Ian Lance Taylor <iant@google.com>
1877
1878 * godump.c (go_output_typedef): Put enum constants in the macro
1879 hash table to avoid duplicate Go const definitions.
1880
1881 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1882
1883 * Makefile.in (LIBDEPS): Add libcommon.a.
1884 (LIBS): Likewise.
1885 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1886 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1887 pretty-print.o and version.o.
1888 (OBJS-libcommon): New.
1889 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1890 (BACKEND): Add libcommon.a.
1891 (MOSTLYCLEANFILES): Likewise.
1892 (libcommon.a): New.
1893 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1894 (cpp$(exeext)): Likewise.
1895 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1896 pretty-print.o and input.o.
1897 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1898 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1899 (errors.o): Remove.
1900 (mips-tfile): Don't explicitly use version.o.
1901 (mips-tdump): Likewise.
1902 (gcov.o): Depend on $(DIAGNOSTIC_H).
1903 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1904 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1905 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1906 * gcov-dump.c: Include intl.h and diagnostic.h.
1907 (main): Initialize diagnostics.
1908 * gcov.c: Include diagnostic.h.
1909 (fnotice): Remove.
1910 (main): Initialize diagnostics.
1911 * lto-wrapper.c: Include diagnostic.h.
1912 (main): Initialize diagnostics.
1913
1914 2011-05-20 Michael Matz <matz@suse.de>
1915
1916 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1917
1918 2011-05-20 Michael Matz <matz@suse.de>
1919 Richard Guenther <rguenther@suse.de>
1920
1921 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1922 use lto_streamer_cache_append directly instead of returning a VEC.
1923 (preload_common_node): Remove.
1924 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1925 track seen nodes.
1926 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1927
1928 2011-05-20 Richard Guenther <rguenther@suse.de>
1929
1930 PR tree-optimization/49079
1931 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1932 MEM_REFs correctly for the trailing array access detection.
1933 Special case constants the same way as decls for overall size
1934 constraining.
1935
1936 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1937
1938 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1939 argument expansion.
1940
1941 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1942
1943 PR tree-optimization/49073
1944 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1945 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1946 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1947
1948 2011-05-20 Richard Guenther <rguenther@suse.de>
1949
1950 PR middle-end/48849
1951 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1952 of pointer types the same way the middle-end does.
1953
1954 2011-05-20 Richard Guenther <rguenther@suse.de>
1955
1956 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1957 or pointer-to chains. Delay all fixup to uniquify_nodes.
1958
1959 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1960
1961 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1962 (fma4_fmaddsub): Likewise
1963
1964 2011-05-19 Jan Hubicka <jh@suse.cz>
1965
1966 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1967 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1968 (type_pair_cache): New static var.
1969 (lookup_type_pair): Use fixed sized custom hash; make inline.
1970 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1971 calls of lookup_type_pair.
1972 (print_gimple_types_stats): Remove cache stats.
1973 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1974 and gtc_ob.
1975
1976 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1977
1978 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1979 when TARGET_RDRND is active.
1980 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1981 Generate dummy SImode target register when target is NULL.
1982
1983 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1984
1985 * config/arm/arm-fpus.def: New.
1986 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1987 arm-fpus.def.
1988 * config/arm/arm-tables.opt: Regenerate.
1989 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1990 (arm_option_override): Don't decode FPU name to string here.
1991 * config/arm/arm.opt (mfpu=): Use Enum.
1992 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1993 Update dependencies.
1994
1995 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1996
1997 * collect2.c: Include diagnostic.h.
1998 (fatal_perror, fatal, error, fancy_abort): Remove.
1999 (main): Set progname. Call xmalloc_set_program_name and
2000 diagnostic_initialize.
2001 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2002 scan_libraries, resolve_lib_name): Call fatal_error instead of
2003 fatal and fatal_perror.
2004 * collect2.h (error, fatal, fatal_perror): Don't declare.
2005 * tlink.c: Include diagnostic-core.h.
2006 (recompile_files): Call fatal_error instead of fatal_perror.
2007 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2008 pretty-print.o and input.o.
2009 (collect2.o, tlink.o): Update dependencies.
2010
2011 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2012
2013 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2014
2015 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2016
2017 PR target/40483
2018 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2019 COMDAT group syntax, both SPARC and x86 variants.
2020 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2021 * configure: Regenerate.
2022 * config/sol2.h (TARGET_SOLARIS): Define.
2023 (PUSHSECTION_FORMAT): Remove.
2024 (SECTION_NAME_FORMAT): Define.
2025 * config/sol2.c: Include hashtab.h.
2026 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2027 expansion, using SECTION_NAME_FORMAT.
2028 (solaris_comdat_htab): New variable.
2029 (struct comdat_entry): Define.
2030 (comdat_hash): New function.
2031 (comdat_eq): New function.
2032 (solaris_elf_asm_comdat_section): New function.
2033 (solaris_define_comdat_signature): New function.
2034 (solaris_code_end): New function.
2035 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2036 (solaris_code_end): Declare.
2037 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2038 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2039 solaris_code_end.
2040 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2041 Remove ATTRIBUTE_UNUSED.
2042 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2043 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2044 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2045 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2046 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2047 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2048 (PUSHSECTION_FORMAT): Remove.
2049 (SECTION_NAME_FORMAT): Redefine.
2050
2051 2011-05-19 Kai Tietz <ktietz@redhat.com>
2052
2053 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2054 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2055 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2056
2057 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2058 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2059
2060 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2061
2062 2011-05-19 Richard Guenther <rguenther@suse.de>
2063
2064 PR middle-end/48985
2065 * tree-object-size.c (addr_object_size): If the pointed-to
2066 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2067
2068 2011-05-19 Richard Guenther <rguenther@suse.de>
2069
2070 * gimple.c (gimple_types_compatible_p_1): Compare names of
2071 the types themselves.
2072 (iterative_hash_gimple_type): And hash them that way.
2073 (gimple_register_type_1): If we register a main variant properly
2074 initialize the leader to ourselves.
2075
2076 2011-05-19 Tom de Vries <tom@codesourcery.com>
2077
2078 PR target/45098
2079 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2080 get_loop_invariant_expr_id.
2081 (get_loop_invariant_expr_id): Use get_expr_id.
2082 (parm_decl_cost): New function.
2083 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2084 Improve bound cost estimation. Use different inv_expr_id for elim and
2085 express cases.
2086
2087 2011-05-19 Tom de Vries <tom@codesourcery.com>
2088
2089 PR target/45098
2090 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2091 cost_base.cost == 0.
2092
2093 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 PR target/49002
2096 * config/i386/sse.md
2097 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2098 load cast.
2099
2100 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2101
2102 PR tree-optimization/49039
2103 * tree-vrp.c (extract_range_from_binary_expr): For
2104 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2105 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2106
2107 2011-05-18 Tom de Vries <tom@codesourcery.com>
2108
2109 PR target/45098
2110 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2111
2112 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2113
2114 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2115 (*tls_global_dynamic_64): Ditto.
2116 (*tls_local_dynamic_base_32_gnu): Ditto.
2117 (*tls_local_dynamic_base_64): Ditto.
2118 (tls_initial_exec_64_sun): Ditto.
2119
2120 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2121
2122 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2123 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2124 bf592-none.
2125 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2126 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2127 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2128 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2129 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2130 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2131 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2132
2133 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2134
2135 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2136 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2137 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2138 target_thread_pointer, arm_structure_size_boundary, struct
2139 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2140 struct abi_name, arm_all_abis): Remove.
2141 (arm_option_override) Don't process most enumerated option values here.
2142 Don't process target_fpe_name here. Work with integer not string for
2143 structure size boundary; use separate diagnostics for each case.
2144 * config/arm/arm.h (enum float_abi_type, enum
2145 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2146 to arm-opts.h.
2147 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2148 arm_structure_size_boundary): Remove.
2149 * config/arm/arm.opt (mabi=): Use Enum and Init.
2150 (arm_abi_type): New Enum and EnumValue entries.
2151 (mfloat-abi=): Use Enum and Init.
2152 (float_abi_type): New Enum and EnumValue entries.
2153 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2154 (mfp16-format=): Use Enum and Init.
2155 (arm_fp16_format_type): New Enum and EnumValue entries.
2156 (mstructure-size-boundary=): Use UInteger and Init.
2157 (mtp=): Use Enum and Init.
2158 (arm_tp_type): New Enum and EnumValue entries.
2159
2160 2011-05-18 Richard Guenther <rguenther@suse.de>
2161
2162 PR tree-optimization/49018
2163 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2164 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2165 gimple_has_side_effects.
2166
2167 2011-05-18 Richard Guenther <rguenther@suse.de>
2168
2169 * gimple.c (gimple_register_type_1): New function, split out from ...
2170 (gimple_register_type): ... here. Avoid infinite recursion.
2171
2172 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2173
2174 PR tree-optimization/41881
2175 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2176 reduction_chains along with a macro for its access.
2177 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2178 (destroy_loop_vec_info): Free reduction chains.
2179 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2180 (vect_is_slp_reduction): New function.
2181 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2182 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2183 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2184 definition types for reduction chains.
2185 (vect_supported_load_permutation_p): Don't allow permutations for
2186 reduction chains.
2187 (vect_analyze_slp_instance): Support reduction chains.
2188 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2189 (vect_get_constant_vectors): Handle reduction chains.
2190 (vect_schedule_slp_instance): Mark the first statement of the
2191 reduction chain as reduction.
2192
2193 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2194
2195 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2196 names for group elements access.
2197 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2198 reduction chains as well. Remove data reference and interleaving
2199 related words from the fields names.
2200 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2201 elements access.
2202 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2203 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2204 vect_update_interleaving_chain, vect_same_range_drs,
2205 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2206 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2207 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2208 vect_analyze_group_access, vect_analyze_data_ref_access,
2209 vect_create_data_ref_ptr, vect_transform_strided_load,
2210 vect_record_strided_load_vectors): Likewise.
2211 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2212 vect_model_load_cost, vectorizable_store, vectorizable_load,
2213 vect_remove_stores, new_stmt_vec_info): Likewise.
2214 * tree-vect-slp.c (vect_build_slp_tree,
2215 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2216
2217 2011-05-18 Richard Guenther <rguenther@suse.de>
2218
2219 PR middle-end/48989
2220 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2221 operand verification.
2222 (verify_gimple_assign_binary): Likewise.
2223 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2224 to non-1-precision BOOLEAN_TYPEs.
2225
2226 2011-05-18 Tom de Vries <tom@codesourcery.com>
2227
2228 PR target/45098
2229 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2230
2231 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2232
2233 PR tree-optimization/49000
2234 * tree-ssa.c (execute_update_addresses_taken): Call
2235 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2236 be rewritten and decl has been marked for renaming, reset
2237 the debug stmt.
2238
2239 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2240
2241 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2242 enum_opts_set when testing if attributes have set -mfpmath=.
2243
2244 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2245
2246 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2247
2248 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2249
2250 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2251 info->entry with 0
2252 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2253 id.transform_lang_insert_block with NULL.
2254
2255 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2256
2257 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2258 (output_fp_compare): Change args 3 and 4 to bool.
2259 (ix86_expand_call): Change arg 6 to bool.
2260 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2261 (ix86_attr_length_vex_default): Change arg 3 to bool.
2262 * config/i386/i386.md: Update all uses.
2263 * config/i386/i386.c: Ditto.
2264 (ix86_flags_dependent): Change return type to bool.
2265
2266 2011-05-17 Richard Guenther <rguenther@suse.de>
2267
2268 * gimple.c (type_hash_pair_compare): Fix comparison.
2269
2270 2011-05-17 Richard Guenther <rguenther@suse.de>
2271
2272 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2273 case some more, fix final hash value of the non-singleton case.
2274
2275 2011-05-17 Richard Guenther <rguenther@suse.de>
2276
2277 PR bootstrap/49013
2278 Revert
2279 2011-05-16 Richard Guenther <rguenther@suse.de>
2280
2281 * gimple.c (gimple_types_compatible_p_1): Use names of the
2282 type itself, not its main variant.
2283 (iterative_hash_gimple_type): Likewise.
2284
2285 2011-05-17 Richard Guenther <rguenther@suse.de>
2286
2287 * gimple.c (gimple_register_canonical_type): Use the main-variant
2288 leader for computing the canonical type.
2289
2290 2011-05-17 Nick Clifton <nickc@redhat.com>
2291
2292 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2293 moves.
2294
2295 * config/rx/rx.md: Add peephole to remove redundant extensions
2296 after loads.
2297 (bitset_in_memory): Use rx_restricted_mem_operand.
2298 (bitinvert_in_memory): Likewise.
2299 (bitclr_in_memory): Likewise.
2300
2301 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2302 Nick Clifton <nickc@redhat.com>
2303
2304 * config/rx/rx.md: Add peepholes to match a register move followed
2305 by a comparison of the moved register. Replace these with an
2306 addition of zero that does both actions in one instruction.
2307
2308 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2309
2310 PR target/48986
2311 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2312 predicate to allow CONST_INT.
2313 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2314
2315 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2316
2317 * opts-common.c (opt_enum_arg_to_value): New.
2318 * opts.h (opt_enum_arg_to_value): Declare.
2319 * config/i386/i386.opt (fpmath): Remove.
2320 (mfpmath=): Use Enum, Init and Save.
2321 (fpmath_unit): New Enum and EnumValue entries.
2322 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2323 name for function fpmath state.
2324 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2325 * config/i386/i386.c: Include diagnostic.h.
2326 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2327 (ix86_target_string): Take enum fpmath_unit value instead of string.
2328 (ix86_debug_options): Update call to ix86_target_string.
2329 (ix86_option_override_internal): Don't process fpmath strings here.
2330 (x86_function_specific_save, ix86_function_specific_restore):
2331 Don't handle fpmath state specially.
2332 (ix86_function_specific_print): Pass fpmath state to
2333 ix86_target_string instead of printing in this function.
2334 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2335 Handle enum attributes.
2336 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2337 (ix86_valid_target_attribute_tree): Update option_strings
2338 handling. Handle fpmath as enum option.
2339 (ix86_can_inline_p): Update field names for function fpmath state.
2340 (ix86_expand_builtin): Update call to ix86_target_string.
2341 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2342 (ix86_fpmath): Remove.
2343 * config/i386/t-i386 (i386.o): Update dependencies.
2344
2345 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2346
2347 PR preprocessor/48677
2348 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2349 from decoded_options[0], not from itself.
2350
2351 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2352
2353 * config/i386/constraints.md (z): New constraint.
2354 * config/i386/i386.c (c): New mode attribute.
2355 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2356 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2357 constraint for operand 0.
2358 (*call_vzeroupper): Ditto.
2359 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2360 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2361 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2362 Use "lzm" constraint for operand 0.
2363 (*call_pop_vzeroupper): Ditto.
2364 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2365 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2366 constraint for operand 0.
2367 (*sibcall_vzeroupper): Ditto.
2368 (*sibcall_rex64_ms_sysv): Ditto.
2369 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2370 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2371 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2372 (*sibcall_pop_vzeroupper): Ditto.
2373 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2374 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2375 mode iterator. Use "<c>zm" constraint for operand 1.
2376 (*call_value_vzeroupper): Ditto.
2377 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2378 for operand 1.
2379 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2380 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2381 *call_value_pop_1. Use "lzm" constraint for operand 1.
2382 (*call_value_pop_vzeroupper): Ditto.
2383 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2384 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2385 mode iterator. Use "Uz" constraint for operand 1.
2386 (*sibcall_value_vzeroupper): Ditto.
2387 (*sibcall_value_rex64_ms_sysv): Ditto.
2388 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2389 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2390 constraint for operand 1.
2391 (*sibcall_value_pop_vzeroupper): Ditto.
2392 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2393 and "z" constraint for operand 2.
2394 (*tls_global_dynamic_32_gnu): Ditto.
2395 (*tls_local_dynamic_base_32_gnu): Ditto.
2396 (*tls_local_dynamic_base_64): Ditto.
2397 (*tls_local_dynamic_32_once): Ditto.
2398 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2399 Update all callers.
2400 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2401
2402 2011-05-16 Richard Guenther <rguenther@suse.de>
2403
2404 * gimple.c (gimple_types_compatible_p_1): Use names of the
2405 type itself, not its main variant.
2406 (iterative_hash_gimple_type): Likewise.
2407
2408 2011-05-16 Richard Guenther <rguenther@suse.de>
2409
2410 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2411 always visit pointer target and function result and argument types.
2412
2413 2011-05-16 Jason Merrill <jason@redhat.com>
2414
2415 PR c++/48999
2416 * tree-inline.c (copy_statement_list): Put back recursion.
2417
2418 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2419
2420 PR target/27663
2421 PR target/41076
2422 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2423 * config/avr/avr.md ("*ior<mode>qi.byte0",
2424 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2425
2426 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2427
2428 PR target/45099
2429 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2430 register is needed for a function argument.
2431
2432 2011-05-16 Richard Guenther <rguenther@suse.de>
2433
2434 * gimple.c (struct type_hash_pair): New type.
2435 (type_hash_pair_compare): New function.
2436 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2437
2438 2011-05-16 Revital Eres <revital.eres@linaro.org>
2439
2440 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2441
2442 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2443
2444 * config/i386/i386.md (floating point move splitters): Fix
2445 usage of standard_80387_constant_p.
2446 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2447
2448 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2449
2450 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2451
2452 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2453
2454 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2455 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2456 (tree_ssa_lim_finalize): Likewise.
2457
2458 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2459
2460 * config/i386/constraint.md (Yd, Yx): New register constraints.
2461 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2462 Yd conditional register constraint.
2463 (*movtf_internal): Use standard_sse_constant_opcode.
2464 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2465 Yx conditional register constraint.
2466 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2467 Yd conditional register constraint. Use standard_sse_constant_p to
2468 check for valid SSE constants and call standard_sse_constant_opcode to
2469 output SSE insn.
2470 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2471 constants and call standard_sse_constant_opcode to output SSE insn.
2472 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2473 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2474 optimize_size is set.
2475 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2476
2477 2011-05-14 Tobias Burnus <burnus@net-b.de>
2478
2479 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2480
2481 2011-05-13 Martin Jambor <mjambor@suse.cz>
2482
2483 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2484 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2485 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2486 (evaluate_conditions_for_ipcp_clone): Removed.
2487 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2488 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2489 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2490
2491 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2492
2493 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2494 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2495 lieu of MAY_HAVE_DEBUG_STMTS.
2496 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2497 debug statements if !MAY_HAVE_DEBUG_STMTS.
2498
2499 2011-05-13 Martin Thuresson <martint@google.com>
2500
2501 PR gcov-profile/47793
2502 * libgcov.c (gcov_exit): Support relative profile paths.
2503 * doc/invoke.texi (-fprofile-dir): Update for above change.
2504
2505 2011-05-13 Richard Guenther <rguenther@suse.de>
2506
2507 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2508 type-pair caching, do not compare hashes.
2509
2510 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2511
2512 PR middle-end/48965
2513 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2514 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2515
2516 2011-05-13 Kai Tietz <ktietz@redhat.com>
2517
2518 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2519 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2520 compatible type for TRUTH_NOT_EXPR.
2521
2522 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2523
2524 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2525 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2526 can_create_pseudo_p ().
2527
2528 2011-05-13 Richard Guenther <rguenther@suse.de>
2529
2530 PR lto/48978
2531 * gimple.c (iterative_hash_gimple_type): Revert change in
2532 pointer target and function result and argument hashing.
2533
2534 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2535
2536 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2537 (*movxf_internal_nointeger): Ditto.
2538 (*movdf_internal_rex64): Ditto.
2539 (*movdf_internal): Ditto.
2540 (*movdf_internal_nointeger): Ditto.
2541 (*movsf_internal): Ditto.
2542 (sincos splitters): Use can_create_pseudo ().
2543
2544 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2545
2546 * config/i386/i386-opts.h: New.
2547 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2548 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2549 ix86_section_threshold): Remove.
2550 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2551 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2552 OPT_mbranch_cost_.
2553 (ix86_option_override_internal): Don't decode strings for options
2554 other than -march=, -mtune= and -mfpmath=. Don't allow for
2555 __attribute__ uses in remaining diagnostics for options with
2556 string arguments. Don't check for integer arguments being negative.
2557 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2558 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2559 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2560 ix86_branch_cost, ix86_section_threshold): Remove.
2561 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2562 HeaderInclude.
2563 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2564 but not Var.
2565 (masm=): Use Enum and Init.
2566 (asm_dialect): New Enum and EnumValue entries.
2567 (mbranch-cost=): Use UInteger.
2568 (mlarge-data-threshold=): Use UInteger and Init.
2569 (mcmodel=): Use Enum and Init.
2570 (cmodel): New Enum and EnumValue entries.
2571 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2572 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2573 mregparm=): Use UInteger.
2574 (mstringop-strategy=): Use Enum and Init.
2575 (stringop_alg): New Enum and EnumValue entries.
2576 (mtls-dialect=): Use Enum and Init.
2577 (tls_dialect): New Enum and EnumValue entries.
2578 (mabi=): Use Enum and Init.
2579 (calling_abi): New Enum and EnumValue entries.
2580 (mveclibabi=): Use Enum and Init.
2581 (ix86_veclibabi): New Enum and EnumValue entries.
2582
2583 2011-05-13 Nick Clifton <nickc@redhat.com>
2584
2585 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2586 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2587
2588 2011-05-13 Kai Tietz <ktietz@redhat.com>
2589
2590 PR middle-end/48984
2591 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2592 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2593 (gimple_boolify): Check for cast for boolean_type_node instead for
2594 BOOLEAN_TYPE.
2595
2596 2011-05-13 Richard Guenther <rguenther@suse.de>
2597
2598 PR tree-optimization/48172
2599 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2600 multiplying by number of iterations for equal step.
2601 (vect_create_cond_for_alias_checks): Likewise.
2602
2603 2011-05-13 Andreas Schwab <schwab@redhat.com>
2604
2605 * configure.ac: Use AS_HELP_STRING throughout.
2606 * configure: Regenerate.
2607
2608 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2609
2610 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2611 (ix86_emit_restore_regs_using_mov): Likewise.
2612 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2613
2614 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2615
2616 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2617 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2618 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2619 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2620 RTX_OK_FOR_OLO10_P): ...here.
2621 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2622 SYMBOLIC_CONST.
2623
2624 2011-05-12 Kai Tietz <ktietz@redhat.com>
2625
2626 * gimplify.c (gimple_boolify): Re-boolify expression
2627 arguments even if expression type is of kind BOOLEAN_TYPE.
2628 (gimplify_boolean_expr): Removed.
2629 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2630 and XOR. Additional take care that we keep expression's type.
2631 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2632 of TRUTH_AND|OR|XOR_EXPR.
2633
2634 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2635
2636 PR tree-optimization/48975
2637 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2638 on all bbs here and free and clear ifc_bbs at the end.
2639
2640 2011-05-12 Richard Guenther <rguenther@suse.de>
2641
2642 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2643 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2644 until after simple checks.
2645 (gimple_types_compatible_p): Likewise.
2646 (iterative_hash_gimple_type): Always hash pointer targets
2647 and function return and argument types.
2648 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2649 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2650 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2651 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2652 completely in the simple compare section.
2653 (gimple_register_canonical_type): Query the cache again after
2654 registering.
2655
2656 2011-05-12 Richard Guenther <rguenther@suse.de>
2657
2658 PR tree-optimization/48172
2659 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2660 the number of iterations from the segment size calculation.
2661 (vect_create_cond_for_alias_checks): Adjust.
2662
2663 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2664
2665 PR debug/48967
2666 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2667 if validate_subreg fails.
2668
2669 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2670
2671 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2672 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2673 early.
2674
2675 2011-05-12 DJ Delorie <dj@redhat.com>
2676
2677 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2678 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2679 created builtin into rx_builtins array.
2680 (rx_builtin_decl): New function.
2681 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2682
2683 2011-05-12 DJ Delorie <dj@redhat.com>
2684 Nick Clifton <nickc@redhat.com>
2685
2686 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2687 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2688 (rx_is_legitimate_address): Add pre-decrement and post-increment
2689 addressing in HImode and QImode. Fix test for out of range
2690 REG+INT addressing.
2691 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2692 (rx_align_for_label): Test label before extracting its usage count.
2693 (rx_adjust_insn_lengths): Fix selection of insn codes.
2694 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2695
2696 2011-05-11 Jason Merrill <jason@redhat.com>
2697
2698 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2699
2700 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2701
2702 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2703 reindent the subsequent block.
2704
2705 2011-05-11 Satoru Takabayashi <satorux@google.com>
2706 Paul Pluzhnikov <ppluzhnikov@google.com>
2707
2708 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2709 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2710 * config.in: Add LINKER_HASH_STYLE.
2711 * configure.ac: Add --with-linker-hash-style.
2712 * configure: Regenerate.
2713
2714 2011-05-11 Richard Guenther <rguenther@suse.de>
2715
2716 PR middle-end/48964
2717 * gimple.c (iterative_hash_canonical_type): Fix typo.
2718
2719 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2720
2721 * config/i386/i386.c (legitimize_tls_address)
2722 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2723 expanders directly for TARGET_GNU2_TLS. Determine pic and
2724 __tls_get_addr symbol reference here. Update call to
2725 gen_tls_global_dynamic_{32,64} for added arguments.
2726 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2727 expanders directly for TARGET_GNU2_TLS. Determine
2728 __tls_get_addr symbol reference here. Update call to
2729 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2730 unique UNSPEC REG_EQUIV to libcall block.
2731 (ix86_tls_get_addr): Declare static.
2732 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2733 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2734 Do not determine pic and __tls_get_addr symbol reference here. Do not
2735 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2736 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2737 (tls_global_dynamic_64): Add operand 2. Do not determine
2738 __tls_get_addr symbol reference here. Do not call
2739 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2740 (tls_local_dynamic_base64): Ditto for operand 1.
2741
2742 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2743
2744 * function.c (expand_function_start): Initialize stack_check_probe_note
2745 only if the generic stack checking mechanism is used.
2746
2747 2011-05-11 Richard Guenther <rguenther@suse.de>
2748
2749 PR tree-optimization/15256
2750 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2751 (A & B) | C, combine (A op CST1) op CST2.
2752 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2753 visit assigns that have uses.
2754
2755 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2756
2757 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2758 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2759 (unpack_ts_type_common_value_fields): ...this. Update comment.
2760 (unpack_value_fields): Adjust for renaming.
2761 (lto_input_ts_type_tree_pointers): Split into...
2762 (lto_input_ts_type_common_tree_pointer): ...this and...
2763 (lto_input_ts_type_non_common_tree_pointers): ...this.
2764 (lto_input_tree_pointers): Adjust for above split.
2765 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2766 (pack_ts_type_common_value_fields): ...this. Update comment.
2767 (lto_output_ts_type_tree_pointers): Split into...
2768 (lto_output_ts_type_common_tree_pointers): ...this and...
2769 (lto_output_ts_type_non_common_tree_pointers): ...this.
2770 (lto_output_tree_pointers): Adjust for above split.
2771 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2772 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2773 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2774 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2775 Define.
2776 (struct tree_type): Split into...
2777 (struct tree_type_common: ...this and...
2778 (struct tree_type_with_lang_specific): ...this and...
2779 (struct tree_type_non_common): ...this. Adjust accessor macros
2780 accordingly.
2781 (TYPE_VALUES_RAW): Define.
2782 (union tree_node): Update for above changes.
2783 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2784 TS_TYPE_NON_COMMON.
2785 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2786 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2787 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2788 * treestructu.def (TS_TYPE): Remove.
2789 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2790 Define.
2791
2792 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2793
2794 PR debug/48159
2795 * tree-ssa.c (reset_debug_uses): New function.
2796 * tree-flow.h (reset_debug_uses): New prototype.
2797 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2798 * tree-loop-distribution.c (generate_loops_for_partition): Call
2799 reset_debug_uses on the stmts that will be removed. Keep around
2800 all debug stmts, don't count them as bits in partition bitmap.
2801 (generate_builtin): Don't count debug stmts or labels as bits in
2802 partition bitmap.
2803
2804 2011-05-11 Richard Guenther <rguenther@suse.de>
2805
2806 * gimple.c (gimple_type_hash_1): Merge with ...
2807 (gimple_type_hash): ... this.
2808 (gtc_visit): Remove mode parameter and simplify accordingly.
2809 (gimple_types_compatible_p_1): Likewise.
2810 (gimple_types_compatible_p): Likewise.
2811 (iterative_hash_gimple_type): Likewise.
2812 (visit): Likewise.
2813 (gimple_type_eq): Adjust.
2814
2815 2011-05-11 Revital Eres <revital.eres@linaro.org>
2816
2817 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2818 enters the branch create an anti edge in the opposite direction
2819 to prevent the creation of reg-moves.
2820 * modulo-sched.c: Adjust comment to reflect the fact we are
2821 scheduling closing branch.
2822 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2823 (stage_count): New field in struct partial_schedule.
2824 (calculate_stage_count): New function.
2825 (normalize_sched_times): Rename to reset_sched_times and handle
2826 incrementing the sched time of the nodes by a constant value
2827 passed as parameter.
2828 (duplicate_insns_of_cycles): Skip closing branch.
2829 (sms_schedule_by_order): Schedule closing branch.
2830 (ps_insn_find_column): Handle closing branch.
2831 (sms_schedule): Call reset_sched_times and adjust the code to
2832 support scheduling of the closing branch.
2833 (ps_insert_empty_row): Update calls to normalize_sched_times
2834 and rotate_partial_schedule functions.
2835
2836 2011-05-11 Richard Guenther <rguenther@suse.de>
2837
2838 PR middle-end/48953
2839 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2840
2841 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2842
2843 * opts.c (finish_options): Move warning settings from process_options.
2844 * toplev.c (process_options): Move warning settings to finish_options.
2845
2846 2011-05-11 Richard Guenther <rguenther@suse.de>
2847
2848 PR tree-optimization/18041
2849 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2850 (simplify_bitwise_binary): ... this. Handle operand conversions
2851 by applying them to the result instead.
2852 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2853
2854 2011-05-11 Richard Guenther <rguenther@suse.de>
2855
2856 * gimple.c (gimple_canonical_types_compatible_p): Split out
2857 from gimple_types_compatible_p and friends. Do not recurse
2858 to pointed-to types.
2859 (gimple_canonical_type_eq): Use it.
2860 (iterative_hash_canonical_type): Split out from
2861 iterative_hash_gimple_type and friends. Do not recurse
2862 to pointed-to types.
2863 (gimple_canonical_type_hash): Use it, allocate the hash here.
2864
2865 2011-05-11 Revital Eres <revital.eres@linaro.org>
2866
2867 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2868 recognizing doloop.
2869
2870 2011-05-11 Revital Eres <revital.eres@linaro.org>
2871
2872 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2873 instead of PREV_INSN.
2874
2875 2011-05-11 Revital Eres <revital.eres@linaro.org>
2876
2877 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2878 * loop-doloop.c (doloop_condition_get): Likewise.
2879 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2880 (doloop_end): New.
2881 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2882
2883 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2884
2885 * tree.def (CASE_LABEL_EXPR): Add an operand.
2886 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2887
2888 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2889
2890 * c-decl.c (c_override_global_bindings_to_false): Remove.
2891 (global_bindings_p): Don't check
2892 c_override_global_bindings_to_false.
2893 * c-tree.h (c_override_global_bindings_to_false): Remove.
2894 * c-typeck.c (composite_type): Don't set
2895 c_override_global_bindings_to_false.
2896
2897 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2898
2899 PR target/48857, 48495
2900 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2901 (VSX_MODE): Ditto.
2902 (VSX_MOVE_MODE): Ditto.
2903 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2904 VSX vector types. Add V2DImode.
2905 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2906 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2907 (MODES_TIEABLE_P): Ditto.
2908
2909 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2910 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2911 VSX_VECTOR_MODE.
2912 (init_cumulative_args): Ditto.
2913 (rs6000_function_arg_boundary): Ditto.
2914 (rs6000_function_arg_advance_1): Ditto.
2915 (rs6000_function_arg): Ditto.
2916 (rs6000_function_ok_for_sibcall): Ditto.
2917 (emit_frame_save): Ditto.
2918 (rs6000_function_value): Ditto.
2919 (rs6000_libcall_value): Ditto.
2920
2921 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2922
2923 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2924 i386/darwin-lib.h to $libgcc_tm_file.
2925 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2926
2927 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2928
2929 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2930
2931 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2932
2933 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2934 * config/rs6000/rs6000-tables.opt: New file (generated).
2935 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2936 rs6000/rs6000-tables.opt to extra_options.
2937 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2938 * config/rs6000/rs6000.c (rs6000_select): Remove.
2939 (processor_target_table): Move contents to rs6000-cpus.def.
2940 (darwin_rs6000_override_options): Check
2941 global_options_set.x_rs6000_cpu_index instead of
2942 rs6000_select[1].string.
2943 (rs6000_option_override_internal): Likewise.
2944 (rs6000_handle_option): Don't assert that global structures are in
2945 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2946 (rs6000_default_cpu): New variable.
2947 (rs6000_file_start): Set it instead of local default_cpu. Check
2948 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2949 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2950 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2951 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2952 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2953 rs6000_select): Remove.
2954 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2955 Remove.
2956 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2957 * config/rs6000/t-rs6000
2958 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2959 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2960 global_options_set.x_rs6000_cpu_index instead of
2961 rs6000_select[1].string.
2962 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2963 global_options_set.x_rs6000_cpu_index instead of
2964 rs6000_select[1].string.
2965
2966 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2967
2968 * config.gcc (libgcc_tm_file): Define instead of including files
2969 from ../../libgcc/config/ in tm_file.
2970 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2971 * configure: Regenerate.
2972 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2973 libgcc_tm.h, cs-libgcc_tm.h): New.
2974 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2975 (clean): Remove libgcc_tm.h.
2976 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2977 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2978 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2979
2980 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2981
2982 PR target/48896
2983 * config/avr/avr.c (avr_ret_register): Return unsigned int
2984 instead of int.
2985 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2986 it to avr_libcall_value.
2987 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2988 expand_expr.
2989 (avr_expand_binop_builtin): Ditto.
2990 (avr_expand_unop_builtin): Ditto.
2991
2992 2011-05-10 DJ Delorie <dj@redhat.com>
2993
2994 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2995 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2996 * config/rx/rx.c (rx_align_for_label): Add label and
2997 uses_threshold parameters. Do not align when the label is not
2998 used enough.
2999 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3000
3001 2011-05-10 Richard Guenther <rguenther@suse.de>
3002
3003 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3004 a series of conversions and apply foldings similar to what
3005 fold-const does.
3006 (tree_ssa_forward_propagate_single_use_vars): Call it.
3007
3008 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3009
3010 PR tree-optimization/48611
3011 PR tree-optimization/48794
3012 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3013 referenced from RESX or EH_DISPATCH arguments.
3014
3015 PR debug/48928
3016 * dfp.c (decimal_to_decnumber): Handle conversion from
3017 dconst{1,2,m1,half}.
3018
3019 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3020
3021 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3022 for !flag_prefer_avx128.
3023 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3024
3025 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3026
3027 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3028 (fold_ternary_loc): Use expr_location_or.
3029
3030 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3031
3032 PR debug/48853
3033 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3034 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3035 Pmode and mem_mode is not VOIDmode.
3036
3037 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3038
3039 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3040 TYPE_QUAL_RESTRICT): Convert to enum.
3041
3042 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3043
3044 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3045 (const_pow2_1_to_8_operand): Ditto.
3046 (const_pow2_1_to_128_operand): Ditto.
3047 (const_pow2_1_to_32768_operand): Ditto.
3048 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3049 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3050 in insn constraint to check integer value of operand 3.
3051 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3052
3053 (PINSR_MODE): New mode iterator.
3054 (sse2p4_1): New mode attribute.
3055 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3056 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3057 iterator. Use const_int_operand instead of
3058 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3059 exact_log2 in insn constraint to check integer value of operand 3.
3060
3061 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3062
3063 * config/i386/sse.md (blendbits): Remove mode attribute.
3064 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3065 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3066 Check integer value of operand 3 in insn constraint.
3067
3068 2011-05-09 Richard Guenther <rguenther@suse.de>
3069
3070 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3071 for diagnostics.
3072 (lto_symtab_merge): Likewise. Do not register types here.
3073 (lto_symtab_merge_decls_2): Likewise.
3074 (lto_symtab_merge_decls_1): Likewise.
3075 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3076 * gimple.c (enum gtc_mode): Declare.
3077 (gimple_types_compatible_p): Make static.
3078
3079 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3080
3081 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3082 temporary register to match Pmode.
3083
3084 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3085
3086 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3087 and *vec_concatv4si_1_avx.
3088
3089 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3090
3091 PR rtl-optimization/48927
3092 * ira-conflicts.c (commutative_constraint_p): Use
3093 recog_data.alternative_enabled_p to disable alternatives where
3094 "enabled" attribute is false.
3095 (get_dup_num): Ditto.
3096 * ira-lives.c (single_reg_class): Ditto.
3097 (ira_implicitly_set_insn_hard_regs): Ditto.
3098
3099 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3100
3101 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3102 (dataflow_set_preserve_mem_locs): Likewise.
3103
3104 2011-05-09 Philipp Thomas <pth@suse.de>
3105
3106 * config/mep/mep.c (mep_validate_vliw): Syntax description
3107 should not be translated.
3108
3109 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3110
3111 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3112 * config/mips/mips-tables.opt: New file (generated).
3113 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3114 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3115 MIPS_ARCH_OPTION_NATIVE): Define.
3116 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3117 mips-cpus.def.
3118 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3119 mips_parse_cpu): Remove.
3120 (mips_cpu_info_from_opt, mips_default_arch): New.
3121 (mips_handle_option): Don't assert that global structures are in
3122 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3123 (mips_option_override): Use new variables and functions to set
3124 state of these options. Use strcmp to check for individual CPU names.
3125 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3126 definition.
3127 * config/mips/mips.opt (march=): Use ToLower and Enum.
3128 (mips): Use ToLower, Enum and Var.
3129 (mtune=): Use ToLower and Enum.
3130 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3131
3132 2011-05-08 Jan Hubicka <jh@suse.cz>
3133
3134 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3135 Arrange type pairs to be UID ordered.
3136 (gimple_lookup_type_leader): Make inline.
3137
3138 2011-05-09 Nick Clifton <nickc@redhat.com>
3139
3140 PR target/48899
3141 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3142 PROCESSOR_DEFAULT.
3143
3144 PR target/48897
3145 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3146 variable 's'.
3147
3148 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3149
3150 * combine.c (simplify_comparison): Abstract out parts into...
3151 (simplify_compare_const): ... new function.
3152 (try_combine): Generalize parallel arithmetic/compare combining
3153 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3154
3155 2011-05-08 Jan Hubicka <jh@suse.cz>
3156
3157 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3158 (cgraph_create_virtual_clone): Call hooks once virtual clone
3159 is finished.
3160 * cgraph.h (cgraph_clone_node): Update prototype.
3161 * ipa-cp.c (ipcp_estimate_growth): Use
3162 estimate_ipcp_clone_size_and_time.
3163 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3164 * lto-cgraph.c (input_node): Update.
3165 * ipa-inline.c (recursive_inlining): Update.
3166 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3167 (evaluate_conditions_for_known_args): Break out from ...
3168 (evaluate_conditions_for_edge): ... here.
3169 (evaluate_conditions_for_ipcp_clone): New function.
3170 (inline_node_duplication_hook): Update clone summary based
3171 on parameter map.
3172 (estimate_callee_size_and_time): Rename to ...
3173 (estimate_node_size_and_time): take NODE instead of EDGE;
3174 take POSSIBLE_TRUTHS as argument.
3175 (estimate_callee_size_and_time): Update.
3176 (estimate_ipcp_clone_size_and_time): New function.
3177 (do_estimate_edge_time): Update.
3178
3179 2011-05-08 Richard Guenther <rguenther@suse.de>
3180
3181 PR middle-end/48908
3182 PR middle-end/48905
3183 * expmed.c (expand_shift_1): Compute adjusted constant shift
3184 amount manually.
3185
3186 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3187
3188 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3189
3190 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3191
3192 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3193
3194 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3195
3196 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3197
3198 2011-05-07 Jan Hubicka <jh@suse.cz>
3199
3200 * ipa-inline-transform.c (inline_call): Account when program size
3201 decreases.
3202 * ipa-inline.c (relative_time_benefit): New function.
3203 (edge_badness): Reorganize to be power 2 based; fix thinko when
3204 computing badness for negative growth; update comments to match
3205 reality; better dumps.
3206
3207 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3208
3209 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3210 type to bool and adjust comment.
3211 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3212 (fold_mathfn_compare): Remove calls to global_bindings_p.
3213 (fold_inf_compare): Likewise.
3214 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3215 * c-tree.h (global_bindings_p): Adjust prototype.
3216 * c-decl.c (global_bindings_p): Return bool and simplify.
3217
3218 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3219
3220 PR tree-optimization/48837
3221 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3222 when accumulator transformation is performed.
3223
3224 2011-05-06 Jan Hubicka <jh@suse.cz>
3225
3226 * i386.h (ix86_tune_indices): Add
3227 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3228 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3229 * i386.c (initial_ix86_tune_features): Add
3230 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3231 (software_prefetching_beneficial_p): Remove predicate.
3232 (ix86_option_override_internal): Use new macro.
3233
3234 2011-05-06 Jan Hubicka <jh@suse.cz>
3235
3236 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3237
3238 2011-05-06 Jan Hubicka <jh@suse.cz>
3239
3240 * cgraph.c (cgraph_add_thunk): Create real function node instead
3241 of alias node; finalize it and mark needed/reachale; arrange visibility
3242 to be right and add it into the corresponding same comdat group list.
3243 (dump_cgraph_node): Dump thunks.
3244 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3245 cgraph_function_with_gimple_body_p,
3246 cgraph_first_function_with_gimple_body,
3247 cgraph_next_function_with_gimple_body): New functions.
3248 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3249 New macros.
3250 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3251 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3252 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3253 devirtualization when optimizing.
3254 (verify_cgraph_node): Verify thunks.
3255 (cgraph_analyze_function): Analyze thunks.
3256 (cgraph_mark_functions_to_output): Output thunks only in combination
3257 with function they are assigned to.
3258 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3259 alias into normal node.
3260 (assemble_thunks): New functoin.
3261 (cgraph_expand_function): Use it.
3262 * lto-cgraph.c (lto_output_node): Stream thunks.
3263 (input_overwrite_node): Stream in thunks.
3264 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3265 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3266 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3267 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3268 (inline_analyze_function): Do not care about thunk jump functions.
3269 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3270 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3271 cgraph_function_with_gimple_body_p.
3272 * passes.c (do_per_function_toporder): Use
3273 cgraph_function_with_gimple_body_p.
3274 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3275 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3276 (function_called_by_processed_nodes_p): Likewise.
3277
3278 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3279
3280 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3281 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3282 entries.
3283 (mabi=): Replace with separate entries for mabi=altivec,
3284 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3285 mabi=ieeelongdouble and mabi=ibmlongdouble.
3286 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3287 check for -mabi=spe without SPE ABI support here.
3288 (rs6000_handle_option): Replace OPT_mabi_ handling with
3289 OPT_mabi_altivec and OPT_mabi_spe handling.
3290
3291 2011-05-06 Cary Coutant <ccoutant@google.com>
3292
3293 * dwarf2out.c (contains_subprogram_definition): New function.
3294 (should_move_die_to_comdat): Call it.
3295
3296 2011-05-06 Jeff Law <law@redhat.com>
3297
3298 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3299 remove_ctrl_stmt_and_useless_edges.
3300 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3301 (fixup_template_block, thread_single_edge): Likewise.
3302 (mark_threaded_blocks): Use THREAD_TARGET.
3303
3304 2011-05-06 Alan Modra <amodra@gmail.com>
3305
3306 PR target/48900
3307 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3308 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3309
3310 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3311
3312 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3313 constraint modifier to "r".
3314
3315 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3316
3317 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3318 fall through for OPT_mcmodel_.
3319
3320 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3321
3322 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3323 instruction sizes.
3324 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3325
3326 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3327
3328 PR target/47930
3329 * config/arm/arm.opt (marm): Document it.
3330 (mthumb): Reject negative variant.
3331
3332 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3333
3334 PR target/48898
3335 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3336 Fix typo in "ccvt" variable name.
3337
3338 2011-05-06 Tristan Gingold <gingold@adacore.com>
3339
3340 PR target/48895
3341 * config/vms/vms-ar.c (main): Remove cwd variable.
3342
3343 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3344
3345 PR debug/48902
3346 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3347
3348 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3349
3350 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3351 * gimplify.c (gimplify_switch_expr): Likewise.
3352 * omp-low.c (expand_omp_sections): Likewise.
3353 * tree-eh.c (lower_try_finally_switch): Likewise.
3354 (lower_eh_dispatch): Likewise.
3355 * tree.h (build_case_label): Declare.
3356 * tree.c (build_case_label): Define.
3357
3358 2011-05-05 Jason Merrill <jason@redhat.com>
3359
3360 PR c++/40975
3361 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3362 (copy_statement_list): Don't recurse.
3363 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3364 STATEMENT_LIST.
3365
3366 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3367
3368 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3369 through from -mfpu= handling.
3370 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3371
3372 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3373
3374 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3375 POST_MODIFY.
3376
3377 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3378
3379 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3380 for 11.31.
3381 (hppa[12]*-*-hpux11*): Ditto.
3382 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3383 * config/ia64/hpux-unix2003.h: New.
3384 * config/pa/pa-hpux1131.opt: New.
3385 * config/pa/pa-hpux1131.h: New.
3386 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3387 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3388 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3389
3390 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3391
3392 PR debug/48853
3393 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3394 instead of mode as 3rd argument to recursive call.
3395 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3396 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3397 VOIDmode.
3398 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3399 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3400 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3401 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3402
3403 2011-05-05 Julian Brown <julian@codesourcery.com>
3404
3405 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3406 parenthesis in D-register case.
3407
3408 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3409
3410 * opt-functions.awk (var_type_struct): Handle Enum options.
3411 * optc-gen.awk: Don't check range of variables of character type.
3412 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3413 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3414 rs6000_sdata_name, rs6000_explicit_options): Remove.
3415 (rs6000_option_override_internal): Check for -malign-power here.
3416 Use global_options_set instead of rs6000_explicit_options.
3417 (rs6000_parse_fpu_option): Remove.
3418 (rs6000_handle_option): Access variables via opts and opts_set
3419 pointers. Use error_at and warning_at. Add fall-through
3420 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3421 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3422 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3423 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3424 here. Don't use rs6000_parse_fpu_option.
3425 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3426 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3427 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3428 (mrecip=): Use Var.
3429 (mspe): Use Var and Save.
3430 (mtraceback=): Use Enum and Var.
3431 (rs6000_traceback_type): New Enum and EnumValue entries.
3432 (mfloat-gprs=): Use Enum, Var and Save.
3433 (rs6000_float_gprs): New Enum and EnumValue entries.
3434 (mlong-double-): use Var and Save.
3435 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3436 (malign-): Use Enum and Var.
3437 (rs6000_alignment_flags): New Enum and EnumValue entries.
3438 (mfpu=): Use Enum.
3439 (fpu_type_t): New Enum and EnumValue entries.
3440 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3441 global_options_set instead of rs6000_explicit_options.
3442 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3443 global_options_set instead of rs6000_explicit_options.
3444 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3445 global_options_set instead of rs6000_explicit_options.
3446 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3447 global_options_set instead of rs6000_explicit_options.
3448 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3449 global_options_set instead of rs6000_explicit_options.
3450 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3451 global_options_set instead of rs6000_explicit_options.
3452 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3453 definition.
3454 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3455 global_options_set instead of rs6000_explicit_options.
3456 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3457 (rs6000_cmodel): New Enum and EnumValue entries.
3458 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3459 global_options_set instead of rs6000_explicit_options.
3460 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3461 (mtls-size=): Use Enum and Var.
3462 (rs6000_tls_size): New Enum and EnumValue entries.
3463
3464 2011-05-05 Michael Matz <matz@suse.de>
3465
3466 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3467 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3468 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3469 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3470 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3471 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3472 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3473 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3474 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3475 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3476 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3477 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3478 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3479 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3480 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3481 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3482
3483 2011-05-05 Richard Guenther <rguenther@suse.de>
3484
3485 * expmed.c (expand_variable_shift): Rename to ...
3486 (expand_shift_1): ... this. Take an expanded shift amount.
3487 For rotates recurse directly not building trees for the shift amount.
3488 (expand_variable_shift): Wrap around expand_shift_1.
3489 (expand_shift): Adjust.
3490
3491 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3492
3493 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3494
3495 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3496
3497 * tree.h (get_pending_sizes): Remove prototype.
3498 (put_pending_size): Likewise.
3499 (put_pending_sizes): Likewise.
3500 * stor-layout.c (pending_sizes): Delete.
3501 (get_pending_sizes): Likewise.
3502 (put_pending_size): Likewise.
3503 (put_pending_sizes): Likewise.
3504 (variable_size): Do not call put_pending_size and tidy up.
3505 * function.h (struct function): Remove dont_save_pending_sizes_p.
3506 * lto-streamer-in.c (input_function): Do not stream it.
3507 * lto-streamer-out.c (output_function): Likewise.
3508 * tree-inline.c (initialize_cfun): Do not copy it.
3509 * c-decl.c (store_parm_decls): Do not set it.
3510 * omp-low.c (create_task_copyfn): Likewise.
3511 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3512
3513 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3514
3515 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3516 conditions.
3517 (*movdf_internal): Ditto.
3518 (*movdf_internal_nointeger): Ditto.
3519 (*movsf_internal): Ditto.
3520
3521 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3522
3523 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3524 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3525 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3526 (c_variable_size): Remove.
3527 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3528 call put_pending_sizes.
3529 (get_parm_info): Add parameter expr. Use it to set
3530 arg_info->pending_sizes.
3531 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3532 get_pending_sizes.
3533 * c-parser.c (c_parser_parms_declarator): Update call to
3534 c_parser_parms_list_declarator.
3535 (c_parser_parms_list_declarator): Take parameter expr. Update
3536 call to push_parm_decl. Update recursive call. Don't call
3537 get_pending_sizes. Update calls to get_parm_info.
3538 (c_parser_objc_method_definition): Update calls to
3539 c_parser_objc_method_decl and objc_start_method_definition.
3540 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3541 (c_parser_objc_method_decl): Add parameter expr. Update call to
3542 grokparm.
3543 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3544 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3545 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3546
3547 2011-05-05 Michael Hope <michael.hope@linaro.org>
3548
3549 PR pch/45979
3550 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3551 __ARM_EABI__ hosts.
3552
3553 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3554
3555 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3556 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3557 (spu_output_mi_thunk): New function.
3558
3559 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3560
3561 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3562 targetm.asm_out.print_operand.
3563 * config/sol2.c: Include target.h.
3564
3565 2011-05-04 Jan Hubicka <jh@suse.cz>
3566
3567 * ipa-inline.c (reset_edge_caches): New function.
3568 (update_caller_keys): Add check_inlinablity_for; do not
3569 reset edge caches; remove now unnecesary loop.
3570 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3571 (update_all_callee_keys): Likewise.
3572 (inline_small_functions): Sanity check cache; update code
3573 recomputing it.
3574
3575 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3576
3577 PR rtl-optimization/47612
3578 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3579 as the last insn of the sequence to be moved.
3580
3581 2011-05-04 Tobias Burnus <burnus@net-b.de>
3582
3583 PR fortran/48864
3584 * doc/invoke.texi (Ofast): Document that it
3585 enables Fortran's -fno-protect-parens.
3586
3587 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3588
3589 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3590
3591 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3592
3593 * stor-layout.c (variable_size): Do not issue errors.
3594
3595 2011-05-04 Richard Guenther <rguenther@suse.de>
3596
3597 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3598 for array-ref indices.
3599 (tree_coverage_counter_addr): Likewise.
3600 (build_fn_info_type): Use size_int for index types.
3601 (build_gcov_info): Likewise.
3602
3603 2011-05-04 Richard Guenther <rguenther@suse.de>
3604
3605 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3606 to build_int_cst.
3607 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3608 for constructor indices.
3609 (push_init_level): Likewise.
3610
3611 2011-05-04 Richard Guenther <rguenther@suse.de>
3612
3613 * explow.c (promote_mode): Move variable declarations before code.
3614
3615 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3616
3617 * tree.h (build_function_type_array): Declare.
3618 (build_varargs_function_type_array): Declare.
3619 (build_function_type_vec, build_varargs_function_type_vec): Define.
3620 * tree.c (build_function_type_array_1): New function.
3621 (build_function_type_array): New function.
3622 (build_varargs_function_type_array): New function.
3623
3624 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3625
3626 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3627 before setting STMT_VINFO_TYPE.
3628
3629 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3630
3631 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3632 instead of spu_pass_by_reference.
3633
3634 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3635
3636 * calls.c (emit_library_call_value_1): Invoke
3637 promote_function_mode hook on libcall arguments.
3638 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3639 argument being NULL.
3640 * targhooks.c (default_promote_function_mode): Lisewise.
3641 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3642 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3643
3644 * doc/tm.texi: Document that TYPE argument might be NULL.
3645
3646 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3647
3648 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3649
3650 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3651
3652 From Bernd Schmidt
3653 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3654
3655 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3656
3657 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3658 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3659 Move ...
3660 * mips-tfile.c: ... here.
3661 Don't include coretypes.h, tm.h, filenames.h.
3662 (saber_stop): Remove definition and all calls.
3663 [__SABER__]: Remove.
3664 (__LINE__): Remove default.
3665 (Size_t, Ptrdiff_t): Remove definitions.
3666 Replace by size_t, ptrdiff_t.
3667 [!MIPS_DEBUGGING_INFO]: Remove.
3668 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3669 (progname): Add const.
3670 (STATIC): Remove.
3671 Replace all uses by static.
3672 (ALIGN_SYMTABLE_OFFSET): Remove default.
3673 * mips-tdump.c: Don't include coretypes.h, tm.h.
3674 Remove !MIPS_IS_STAB guard.
3675 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3676 $(TM_H), filenames.h dependencies.
3677 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3678
3679 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3680
3681 From Jie Zhang
3682 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3683 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3684
3685 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3686
3687 From Bernd Schmidt
3688 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3689 account and save/restore RETS.
3690 (PROFILE_BEFORE_PROLOGUE): Define.
3691 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3692 the push insn to use predecrement.
3693
3694 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3695
3696 From Jie Zhang
3697 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3698
3699 2011-05-04 Nick Clifton <nickc@redhat.com>
3700
3701 * config/mn10300/mn10300.c: Include cfgloop.h.
3702 (DUMP): New macro.
3703 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3704 Lcc or a FLcc insn into the instruction stream.
3705 (mn10300_block_contains_call): New function. Returns true if the
3706 given basic block contains a CALL insn.
3707 (mn10300_loop_contains_call_insn): New function. Returns true if
3708 the given loop contains a CALL insn.
3709 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3710 to use the SETLB and Lcc or FLcc insns.
3711 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3712 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3713 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3714 disable the SETLB optimization.
3715 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3716 __SETLB__ or __NO_SETLB__.
3717 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3718 (movsf_internal): Handle MDR register.
3719 (cmpsi): Make visible.
3720 (setlb): New pattern.
3721 (Lcc): New pattern.
3722 (FLcc): New pattern.
3723
3724 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3725
3726 PR target/48860
3727 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3728 for reg<->xmm moves.
3729 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3730 (vec_concatv2di_rex64_sse): Ditto.
3731 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3732 (*vec_extractv2di_1_rex64): Ditto.
3733
3734 Revert:
3735 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3736
3737 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3738 reg<->xmm moves.
3739 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3740
3741 2011-05-04 Richard Guenther <rguenther@suse.de>
3742
3743 * tree.h (int_const_binop): Remove notrunc argument.
3744 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3745 create integer constants that are properly truncated.
3746 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3747 (const_binop): Remove zero notrunc argument to int_const_binop.
3748 (size_binop_loc): Likewise.
3749 (fold_div_compare): Likewise.
3750 (maybe_canonicalize_comparison_1): Likewise.
3751 (fold_comparison): Likewise.
3752 (fold_binary_loc): Likewise.
3753 (multiple_of_p): Likewise.
3754 * expr.c (store_constructor): Likewise.
3755 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3756 (maybe_fold_stmt_addition): Likewise.
3757 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3758 * stor-layout.c (layout_type): Likewise.
3759 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3760 * tree-sra.c (build_ref_for_offset): Likewise.
3761 (build_user_friendly_ref_for_offset): Likewise.
3762 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3763 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3764 * tree-ssa-loop-niter.c (inverse): Likewise.
3765 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3766 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3767 * tree-switch-conversion.c (check_range): Likewise.
3768 (build_constructors): Likewise.
3769 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3770 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3771 (extract_range_from_assert): Likewise.
3772 (vrp_int_const_binop): Likewise.
3773 (extract_range_from_binary_expr): Likewise.
3774 (extract_range_from_unary_expr): Likewise.
3775 (check_array_ref): Likewise.
3776 (find_case_label_range): Likewise.
3777 (simplify_div_or_mod_using_ranges): Likewise.
3778 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3779 comparing case labels for merging.
3780
3781 2011-05-03 Mark Wielaard <mjw@redhat.com>
3782
3783 * dwarf2out.c (debug_str_hash_forced): Removed.
3784 (gen_label_for_indirect_string): Removed.
3785 (get_debug_string_label): Removed.
3786 (AT_string_form): Generate label directly.
3787 (output_indirect_string): Test indirect_string_node for
3788 DW_FORM_strp instead of checking label and refcount.
3789 (prune_indirect_string): Removed.
3790 (prune_unused_types): Don't check debug_str_hash_forced or
3791 call prune_indirect_string.
3792
3793 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3794
3795 PR other/48093
3796 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3797
3798 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3799
3800 PR debug/47994
3801 PR debug/47919
3802 * combine.c (try_combine): Skip debug insns at m_split tests.
3803
3804 2011-04-26 Mark Wielaard <mjw@redhat.com>
3805
3806 PR42288
3807 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3808 when info_section_emitted.
3809
3810 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3811
3812 * config/mips/mips-opts.h: New.
3813 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3814 to mips-opts.h.
3815 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3816 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3817 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3818 via opts pointer.
3819 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3820 mips-opts.h.
3821 (mips_abi, mips_code_readable): Don't declare.
3822 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3823 (mabi=): Use Enum and Var.
3824 (mips_abi): New Enum and EnumValue entries.
3825 (mcode-readable=): Use Enum and Var.
3826 (mips_code_readable_setting): New Enum and EnumValue entries.
3827 (mr10k-cache-barrier=): Use Enum and Var.
3828 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3829
3830 2011-05-03 Jan Hubicka <jh@suse.cz>
3831
3832 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3833 replace hash by pointer map.
3834 (cgraph_node_set_element_def, cgraph_node_set_element,
3835 const_cgraph_node_set_element, varpool_node_set_element_def,
3836 varpool_node_set_element, const_varpool_node_set_element): Remove.
3837 (free_cgraph_node_set, free_varpool_node_set): New function.
3838 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3839 * tree-emutls.c: Free varpool node set.
3840 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3841 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3842 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3843 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3844 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3845 Move here from ipa.c; implement using pointer_map
3846 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3847 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3848 debug_cgraph_node_set, varpool_node_set_new,
3849 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3850 dump_varpool_node_set, debug_varpool_node_set):
3851 Move to ipa-uitls.c.
3852 * passes.c (ipa_write_summaries): Update.
3853
3854 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3855
3856 From Mike Frysinger:
3857 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3858 bf542/bf544/bf547/bf548/bf549.
3859
3860 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3861
3862 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3863
3864 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3865
3866 From Bernd Schmidt:
3867 * config/bfin/bfin.md (MOVCC): New mode_macro.
3868 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3869 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3870 comments from generated assembly.
3871
3872 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3873
3874 From Bernd Schmidt
3875 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3876 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3877 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3878 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3879 * config/bfin/lib1funcs.asm (___muldi3): New function.
3880
3881 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3882
3883 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3884 build_function_type_list instead of build_function_type.
3885 Rearrange initialization of `args' to do so.
3886
3887 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3888
3889 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3890 instead of build_function_type.
3891
3892 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3893
3894 * config/rs6000/rs6000.c (spe_init_builtins): Call
3895 build_function_type_list instead of build_function_type.
3896 (paired_init_builtins, altivec_init_builtins): Likewise.
3897 (builtin_function_type): Likewise.
3898
3899 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3900
3901 * config/sh/sh.c (sh_media_init_builtins): Call
3902 build_function_type_list instead of build_function_type.
3903
3904 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3905
3906 * config/sparc/sparc.c (sparc_file_end): Call
3907 build_function_type_list instead of build_function_type.
3908
3909 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3910
3911 * config/alpha/alpha.c (alpha_init_builtins): Call
3912 build_function_type_list instead of build_function_type.
3913
3914 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3915
3916 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3917 build_function_type_list instead of build_function_type.
3918
3919 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3920
3921 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3922 build_function_type_list instead of build_function_type.
3923 Delete `endlink' variable.
3924
3925 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3926
3927 * config/avr/avr.c (avr_init_builtins): Call
3928 build_function_type_list instead of build_function_type.
3929
3930 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3931
3932 * config/picochip/picochip.c (picochip_init_builtins): Call
3933 build_function_type_list instead of build_function_type.
3934 Delete `endlink' variable.
3935
3936 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3937
3938 * config/bfin/bfin.c (bfin_init_builtins): Call
3939 build_function_type_list instead of build_function_type.
3940
3941 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3942
3943 From Bernd Schmidt
3944 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3945 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3946
3947 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3948
3949 From Jie Zhang:
3950 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3951 libbffastfp overrides libgcc when -mfast-fp.
3952
3953 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3954
3955 Originally from Bernd Schmidt
3956 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3957 * config/bfin/bfin.c (override_options): Test it and error if
3958 TARGET_FDPIC.
3959
3960 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3961
3962 Originally From Bernd Schmidt
3963 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3964 FD-PIC.
3965
3966 2011-05-03 Jeff Law <law@redhat.com>
3967
3968 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3969 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3970 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3971 than accessing AUX field directly. Free the AUX field before
3972 clearing it.
3973 (thread_block, thread_through_loop_header): Likewise.
3974 (thread_single_edge, mark_threaded_blocks): Likewise.
3975 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3976 (register_jump_thread): Do not attempt to thread to a NULL edge.
3977
3978 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3979
3980 * function.c (init_function_start): Call decide_function_section.
3981 * varasm.c (decide_function_section): New function.
3982 (assemble_start_function): When not using
3983 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3984 or first_function_block_is_cold.
3985 * rtl.h (decide_function_section): Declare.
3986
3987 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3988 Jakub Jelinek <jakub@redhat.com>
3989
3990 PR target/48774
3991 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3992 only succeed if req_mode is the same as set_mode.
3993
3994 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3995
3996 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3997 * genemit.c (gen_exp): Handle RETURN.
3998 * emit-rtl.c (verify_rtx_sharing): Likewise.
3999 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4000 * rtl.c (copy_rtx): RETURN is shared.
4001 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4002 (ret_rtx): New.
4003 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4004 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4005 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4006 * config/cris/cris.c (cris_expand_return): Likewise.
4007 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4008 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4009 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4010 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4011 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4012 Likewise.
4013 * config/v850/v850.c (expand_epilogue): Likewise.
4014 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4015 * config/arm/arm.md (epilogue): Likewise.
4016 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4017 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4018 variable to ret_reg.
4019
4020 2011-05-03 Richard Guenther <rguenther@suse.de>
4021
4022 PR lto/48846
4023 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4024 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4025 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4026
4027 2011-05-03 Richard Guenther <rguenther@suse.de>
4028
4029 * c-decl.c (grokdeclarator): Instead of looking at
4030 TREE_OVERFLOW check if the constant fits in the index type.
4031
4032 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4033
4034 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4035 (vec_store_lanes<mode><mode>): Likewise.
4036
4037 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4038
4039 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4040 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4041 convert_optab_index values.
4042 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4043 * genopinit.c (optabs): Initialize the new optabs.
4044 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4045 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4046 (expand_STORE_LANES): New functions.
4047 * tree.h (build_array_type_nelts): Declare.
4048 * tree.c (build_array_type_nelts): New function.
4049 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4050 (vect_model_load_cost): Likewise.
4051 (vect_store_lanes_supported, vect_load_lanes_supported)
4052 (vect_record_strided_load_vectors): Declare.
4053 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4054 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4055 (vect_transform_strided_load): Split out statement recording into...
4056 (vect_record_strided_load_vectors): ...this new function.
4057 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4058 (write_vector_array, create_array_ref): New functions.
4059 (vect_model_store_cost): Add store_lanes_p argument.
4060 (vect_model_load_cost): Add load_lanes_p argument.
4061 (vectorizable_store): Try to use store-lanes functions for
4062 interleaved stores.
4063 (vectorizable_load): Likewise load-lanes and loads.
4064 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4065 to vect_model_store_cost.
4066 (vect_build_slp_tree): Likewise vect_model_load_cost.
4067
4068 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4069
4070 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4071 * hooks.c (hook_bool_mode_uhwi_false): New function.
4072 * target.def (array_mode_supported_p): New hook.
4073 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4074 * doc/tm.texi: Regenerate.
4075 * stor-layout.c (mode_for_array): New function.
4076 (layout_type): Use it.
4077 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4078 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4079
4080 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4081
4082 PR target/48723
4083 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4084 for -fstack-check if the size to allocate is negative.
4085
4086 2011-05-02 Lawrence Crowl <crowl@google.com>
4087
4088 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4089 (timevar_cond_start): New for starting a timer only when it is not
4090 already running.
4091 (timevar_cond_stop): New for stopping a timer when it was not already
4092 running.
4093
4094 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4095 (timevar_cond_start): New as above.
4096 (timevar_cond_stop): New as above.
4097
4098 * timevar.def: Add start/stop timers for compiler phases,
4099 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4100 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4101 and TV_PHASE_FINALIZE.
4102 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4103 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4104 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4105 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4106 Make unused TV_OVERLOAD into a start/stop timer.
4107
4108 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4109 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4110 to indicate that they are start/stop timers.
4111
4112 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4113 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4114 Move initialization to do_compile.
4115 (do_compile): Add initialization from above.
4116 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4117
4118 * c-decl.c (c_write_global_declarations): Add start/stop of
4119 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4120
4121 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4122 or TV_PARSE_INLINE, as appropriate.
4123 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4124 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4125
4126 2011-05-02 Jason Merrill <jason@redhat.com>
4127
4128 PR c++/40975
4129 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4130
4131 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4132
4133 PR c/35445
4134 * c-decl.c (finish_decl): Only create a composite if the types are
4135 compatible.
4136
4137 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4138
4139 * config/fr30/fr30-protos.h (Mmode): Don't define.
4140 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4141 definition where used.
4142 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4143 define. Expand definitions where used.
4144 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4145 Expand definitions where used.
4146 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4147 rx_function_arg, rx_function_arg_advance,
4148 rx_function_arg_boundary): Expand definitions of those macros.
4149 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4150 definition where used.
4151
4152 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4153
4154 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4155 reg<->xmm moves.
4156 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4157 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4158 with *movv2sf_internal_rex64_avx.
4159 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4160 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4161 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4162 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4163 "vex" in "prefix" attribute calculation.
4164 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4165
4166 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4167
4168 PR target/47951
4169 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4170 inputs match the output.
4171
4172 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4173
4174 PR target/47955
4175 * config/m68k/m68k.c (m68k_expand_prologue): Set
4176 current_function_static_stack_size.
4177
4178 2011-05-02 Jan Hubicka <jh@suse.cz>
4179
4180 * lto-streamer.c (lto_streamer_cache_insert_1,
4181 lto_streamer_cache_lookup, lto_streamer_cache_create,
4182 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4183 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4184
4185 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4186
4187 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4188 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4189 config/m68k/t-opts: New files.
4190 * config/m68k/m68k-tables.opt: New file (generated).
4191 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4192 extra_options and m68k/t-opts to tmake_file.
4193 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4194 (all_isas): Initialize using m68k-isas.def.
4195 (all_microarchs): Initialize using m68k-microarchs.def.
4196 (m68k_find_selection): Remove.
4197 (m68k_handle_option): Don't assert that global structures are in
4198 use. Use error_at. Access variables via opts pointer. Don't
4199 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4200 directly for -m68020-40 and -m68020-60.
4201 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4202 m68k_tune_entry here.
4203 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4204 to m68k-opts.h.
4205 (m68k_library_id_string): Remove declaration.
4206 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4207 (m68k_library_id_string): New Variable.
4208 (march=, mcpu=, mtune=): Use Enum and Var.
4209
4210 2011-05-02 Richard Guenther <rguenther@suse.de>
4211
4212 * varasm.c (output_constructor_regular_field): Compute zero-based
4213 index with double-ints. Make sure to ICE instead of producing
4214 wrong code.
4215 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4216 in asserts. Properly use a signed type.
4217
4218 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4219
4220 * config/i386/sse.md (V): New mode iterator.
4221 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4222 TARGET_SSE2.
4223 (V_256): Rename from AVX256MODE.
4224 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4225 condition to all users.
4226 (VF1): Ditto.
4227 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4228 condition to all users.
4229 (VF_128): Make V4SF mode unconditional.
4230 (VF_256): Rename from AVX256MODEF2P.
4231 (VI4F_128): Rename from SSEMODE4S.
4232 (VI8F_128): Rename from SSEMODE2D.
4233 (VI4F_256): Rename from AVX256MODE8P.
4234 (VI8F_256): Rename from AVX256MODE4P.
4235 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4236 (ssescalarmodesuffix): Remove SF and DF modes.
4237 (SSEMODE124): Remove.
4238 (SSEMODE1248): Ditto.
4239 (SSEMODEF2P): Ditto.
4240 (AVXMODEF2P): Ditto.
4241 (AVXMODEFDP): Ditto.
4242 (AVXMODEFSP): Ditto.
4243 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4244 unconditional.
4245 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4246 unconditional.
4247 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4248 xop_pcmov_<mode>256. Use V mode iterator.
4249
4250 Adjust RTX patterns globally for renamed mode attributes.
4251
4252 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4253
4254 * haifa-sched.c (sched_emit_insn): Emit insn before first
4255 non-scheduled insn. Inform back-end about new insn. Add
4256 new insn to scheduled_insns list.
4257
4258 2011-05-02 Richard Guenther <rguenther@suse.de>
4259
4260 PR tree-optimization/48822
4261 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4262 (process_scc): Indicate which iteration we start.
4263
4264 2011-05-02 Jan Hubicka <jh@suse.cz>
4265
4266 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4267 (lto_section_overrun): New.
4268 * lto-section-out.c (append_block): Rename to ...
4269 (lto_append_block): ... this one; export.
4270 (lto_output_1_stream): Move lto lto-streamer.h
4271 (lto_output_data_stream): Update.
4272 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4273 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4274 functions.
4275
4276 2011-05-02 Richard Guenther <rguenther@suse.de>
4277
4278 * tree.c (tree_code_counts): New global array.
4279 (record_node_allocation_statistics): Count individual tree codes.
4280 (dump_tree_statistics): Dump individual code stats.
4281
4282 2011-05-01 Jan Hubicka <jh@suse.cz>
4283
4284 * ipa-inline.c (caller_growth_limits): Fix thinko when
4285 looking for largest stack frame.
4286 * ipa-inline.h (dump_inline_summary): Declare.
4287 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4288 on stack usage.
4289 (dump_inline_summary): Export.
4290 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4291
4292 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4293
4294 * reginfo.c (memory_move_cost): Change rclass argument type form
4295 'enum reg_class' to reg_class_t.
4296 * reload.h (memory_move_cost): Update prototype.
4297 * postreload.c reload_cse_simplify_set): Change type dclass var to
4298 reg_class_t.
4299 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4300 Update prototype.
4301 (ira_allocate_and_set_costs): Change aclass argument type form
4302 'enum reg_class' to reg_class_t.
4303 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4304 Change aclass argument type to reg_class_t.
4305 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4306 to reg_class_t.
4307 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4308 memory_move_cost call.
4309
4310 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4311 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4312 Change type tmp var to reg_class_t.
4313
4314 2011-04-30 Jan Hubicka <jh@suse.cz>
4315
4316 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4317 inlining into function with flatten attribute.
4318 (want_inline_small_function_p): Be more realistic about inlining
4319 cold calls where callee size grows.
4320
4321 2011-04-30 Jan Hubicka <jh@suse.cz>
4322
4323 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4324 flags.
4325
4326 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4327
4328 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4329 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4330 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4331 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4332 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4333 (print_operand): Rename to...
4334 (sparc_print_operand): ...this. Make static. Adjust
4335 sparc_print_operand function call.
4336 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4337 functions.
4338
4339 2011-04-30 Jan Hubicka <jh@suse.cz>
4340
4341 PR middle-end/48752
4342 * ipa-inline.c (early_inliner): Disable when doing late
4343 addition of function.
4344
4345 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4346
4347 * dwarf2out.c (get_address_mode): New inline.
4348 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4349 if not dwarf_strict emit
4350 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4351 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4352 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4353 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4354 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4355 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4356 mem_loc_descriptor callers.
4357 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4358 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4359 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4360 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4361 (base_types): New variable.
4362 (get_base_type_offset, calc_base_type_die_sizes,
4363 base_type_for_mode, mark_base_types, base_type_cmp,
4364 move_marked_base_types): New functions.
4365 (calc_die_sizes): Assert that die_offset is 0 or equal to
4366 next_die_offset.
4367 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4368 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4369 callers. If not dwarf_strict, call mem_loc_descriptor even for
4370 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4371 (gen_subprogram_die): Don't give up on call site parameters
4372 with non-integral or large integral modes. Adjust
4373 mem_loc_descriptor callers.
4374 (prune_unused_types): Call prune_unused_types_mark on base_types
4375 vector entries.
4376 (resolve_addr): Call mark_base_types.
4377 (dwarf2out_finish): Call move_marked_base_types.
4378
4379 PR tree-optimization/48809
4380 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4381 type.
4382 (gen_inbound_check): Don't compute index_expr - range_min in utype
4383 again, instead reuse SSA_NAME initialized in build_arrays.
4384 Remove two useless gsi_for_stmt calls.
4385
4386 2011-04-29 Jeff Law <law@redhat.com>
4387
4388 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4389
4390 2011-04-29 Martin Jambor <mjambor@suse.cz>
4391
4392 * cgraph.h (cgraph_postorder): Remove declaration.
4393 * ipa-utils.h (ipa_free_postorder_info): Declare.
4394 (ipa_reverse_postorder): Likewise.
4395 * cgraphunit.c: Include ipa-utils.h.
4396 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4397 * ipa-inline.c: Include ipa-utils.h.
4398 (ipa_inline): Update call to ipa_reverse_postorder.
4399 * ipa-pure-const.c (propagate_pure_const): Update call to
4400 ipa_reduced_postorder and ipa_print_order. Call
4401 ipa_free_postorder_info to clean up.
4402 (propagate_nothrow): Likewise.
4403 * ipa-reference.c (propagate): Removed a useless call to
4404 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4405 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4406 * ipa.c: Include ipa-utils.h.
4407 (ipa_profile): Update call to ipa_reverse_postorder.
4408 (cgraph_postorder): Moved to...
4409 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4410 (ipa_utils_print_order): Renamed to ipa_print_order.
4411 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4412 comments.
4413 (ipa_free_postorder_info): New function.
4414 * passes.c: Include ipa-utils.h.
4415 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4416 (ipa_write_summaries): Likewise.
4417 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4418 (cgraphunit.o): Likewise.
4419 (ipa.o): Likewise.
4420 (ipa-inline.o): Likewise.
4421
4422 2011-04-29 Jan Hubicka <jh@suse.cz>
4423
4424 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4425 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4426 * ipa-inline.h (clause_t): Turn into unsigned int.
4427 * ipa-inline-analysis.c (add_clause): Do more simplification.
4428 (and_predicates): Shortcut more cases.
4429 (predicates_equal_p): Move forward; check that clauses are properly
4430 ordered.
4431 (or_predicates): Shortcut more cases.
4432 (edge_execution_predicate): Rewrite as...
4433 (set_cond_stmt_execution_predicate): ... this function; handle
4434 __builtin_constant_p.
4435 (set_switch_stmt_execution_predicate): New .
4436 (compute_bb_predicates): New.
4437 (will_be_nonconstant_predicate): Update TODO.
4438 (estimate_function_body_sizes): Use compute_bb_predicates
4439 and free them later, always try to estimate if stmt is constant.
4440 (estimate_time_after_inlining, estimate_size_after_inlining):
4441 Gracefully handle optimized out edges.
4442 (read_predicate): Fix off by one error.
4443
4444 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4445
4446 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4447
4448 2011-04-27 Xinliang David Li <davidxl@google.com>
4449
4450 * tree-profile.c (init_ic_make_global_vars): Set
4451 tls attribute on ic vars.
4452 * coverage.c (coverage_end_function): Initialize
4453 function_list with zero.
4454
4455 2011-04-29 Richard Guenther <rguenther@suse.de>
4456
4457 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4458 for the type of the result.
4459 (fold_builtin_isascii): Likewise.
4460 (fold_builtin_toascii): Use integer_type_node where appropriate.
4461 (fold_builtin_logb): Likewise.
4462 (fold_builtin_frexp): Likewise.
4463 (fold_builtin_strstr): Likewise.
4464 (fold_builtin_strpbrk): Likewise.
4465 (fold_builtin_fputs): Likewise.
4466 (fold_builtin_sprintf): Likewise.
4467 (fold_builtin_snprintf): Likewise.
4468 (fold_builtin_printf): Likewise.
4469 (do_mpfr_remquo): Use a proper type for the assigned constant.
4470 (do_mpfr_lgamma_r): Likewise.
4471 * dwarf2out.c (resolve_one_addr): Use size_int.
4472 * except.c (init_eh): Likewise.
4473 (assign_filter_values): Use integer_type_node for filter values.
4474 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4475 indices.
4476 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4477 for EH region numbers.
4478 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4479 for the shift amount.
4480
4481 2011-04-29 Richard Guenther <rguenther@suse.de>
4482
4483 * expr.h (expand_shift): Rename to ...
4484 (expand_variable_shift): ... this.
4485 (expand_shift): Take a constant shift amount.
4486 * expmed.c (expand_shift): Rename to ...
4487 (expand_variable_shift): ... this.
4488 (expand_shift): New wrapper around expand_variable_shift.
4489 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4490 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4491 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4492 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4493 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4494 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4495 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4496 emit_store_flag_1, emit_store_flag): Likewise.
4497 * builtins.c (expand_builtin_signbit): Likewise.
4498 * calls.c (load_register_parameters): Likewise.
4499 * function.c (assign_parm_setup_block): Likewise.
4500 * lower-subreg.c (resolve_shift_zext): Likewise.
4501 * optabs.c (widen_bswap, expand_abs_nojump,
4502 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4503 * spu/spu.c (spu_expand_extv): Likewise.
4504 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4505
4506 2011-04-29 Richard Guenther <rguenther@suse.de>
4507
4508 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4509 for the remapped region number.
4510 * predict.c (build_predict_expr): Use integer_type_node for the
4511 predict kind.
4512 * fold-const.c (fold_binary_loc): Use integer_type_node for
4513 the shift amount. Use a proper type for the PLUS_EXPR operand.
4514
4515 2011-04-29 Michael Matz <matz@suse.de>
4516
4517 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4518 other trees that just builtins.
4519 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4520
4521 2011-04-29 Richard Guenther <rguenther@suse.de>
4522
4523 * tree-nested.c (get_trampoline_type): Use size_int.
4524 (get_nl_goto_field): Likewise.
4525 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4526 for all indexes.
4527 (lower_eh_constructs_2): Likewise.
4528 (lower_resx): Likewise.
4529 (lower_eh_dispatch): Likewise.
4530 * tree-mudflap.c (mf_build_string): Use size_int.
4531 (mudflap_register_call): Use integer_type_node for the flag.
4532 (mudflap_enqueue_constant): Use size_int.
4533 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4534 instead of rebuilding it.
4535
4536 2011-04-29 Richard Guenther <rguenther@suse.de>
4537
4538 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4539 Handle OBJ_TYPE_REF.
4540 (find_func_aliases_for_call): Use it more consistently.
4541
4542 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4543
4544 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4545 (rank_for_schedule): Use it.
4546 (schedule_block): Set it.
4547
4548 2011-04-28 David Li <davidxl@google.com>
4549
4550 * tree.c (crc32_string): Use crc32_byte.
4551 (crc32_byte): New function.
4552 * tree.h (crc32_byte): New function.
4553 * gcov.c (read_graph_file): Handle new cfg_cksum.
4554 (read_count_file): Ditto.
4555 * profile.c (instrument_values): Ditto.
4556 (get_exec_counts): Ditto.
4557 (read_profile_edge_counts): Ditto.
4558 (compute_branch_probabilities): Ditto.
4559 (compute_value_histograms): Ditto.
4560 (branch_prob): Ditto.
4561 (end_branch_prob): Ditto.
4562 * coverage.c (read_counts_file): Ditto.
4563 (get_coverage_counts): Ditto.
4564 (tree_coverage_counter_addr): Ditto.
4565 (coverage_checksum_string): Ditto.
4566 (coverage_begin_output): Ditto.
4567 (coverage_end_function): Ditto.
4568 (build_fn_info_type): Ditto.
4569 (build_fn_info_value): Ditto.
4570 * libgcov.c (gcov_exit): Ditto.
4571 * gcov-dump.c (tag_function): Ditto.
4572 (compute_checksum): Remove.
4573
4574 2011-04-29 Alan Modra <amodra@gmail.com>
4575
4576 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4577 unspec plus offset. Tidy macho code.
4578
4579 2011-04-29 Martin Jambor <mjambor@suse.cz>
4580
4581 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4582 node instead of a decl. Update all callers.
4583 * cgraph.h: Update declaration.
4584
4585 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4586
4587 PR tree-optimization/48765
4588 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4589 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4590 to indicate if loop aware SLP is being used. Scan the statements
4591 and update the vectorization factor according to the type of
4592 vectorization before statement analysis.
4593 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4594 pass it to vect_analyze_loop_operations.
4595 (vectorizable_reduction): Set number of copies to 1 in case of pure
4596 SLP statement.
4597 * tree-vect-stmts.c (vectorizable_conversion,
4598 vectorizable_assignment, vectorizable_shift,
4599 vectorizable_operation, vectorizable_type_demotion,
4600 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4601 Likewise.
4602 (vectorizable_condition): Move the check that it is not SLP
4603 vectorization before the number of copies check.
4604 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4605 to vectorize the loop using SLP.
4606
4607 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4608
4609 PR middle-end/48597
4610 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4611 inline asm.
4612
4613 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4614
4615 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4616 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4617 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4618 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4619 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4620 linux*.h headers.
4621 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4622 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4623 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4624 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4625 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4626 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4627 REG_NAME.
4628 * config/i386/linux.h (REG_NAME): Don't define.
4629 * config/i386/linux64.h (REG_NAME): Don't define.
4630 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4631 Undefine before defining.
4632
4633 2011-04-28 Jan Hubicka <jh@suse.cz>
4634
4635 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4636 nonconstant_names array.
4637 (estimate_function_body_sizes): Build nonconstant_names array; handle
4638 BUILT_IN_CONSTANT_P.
4639
4640 2011-04-28 Richard Guenther <rguenther@suse.de>
4641
4642 PR bootstrap/48804
4643 Revert
4644 2011-04-28 Richard Guenther <rguenther@suse.de>
4645
4646 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4647 as late as possible.
4648
4649 2011-04-28 Richard Guenther <rguenther@suse.de>
4650
4651 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4652 (debug_constraint): Do it here.
4653 (dump_constraints): And here.
4654 (rewrite_constraints): And here.
4655 (dump_constraint_edge): Remove.
4656 (dump_constraint_graph): Rewrite to produce DOT output.
4657 (solve_constraints): Build succ graph as late as possible.
4658 Dump constraint graphs before and after solving.
4659
4660 2011-04-28 Richard Guenther <rguenther@suse.de>
4661
4662 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4663 New function split out from ...
4664 (find_func_aliases): ... here. Call it.
4665 (find_func_aliases_for_call): Likewise.
4666
4667 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4668
4669 * internal-fn.h (internal_fn_name_array): Declare.
4670 (internal_fn_flags_array): Likewise.
4671
4672 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4673
4674 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4675 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4676 Move from sse.md.
4677 (ssemodefsuffix): Remove.
4678 (ssevecmodesuffix): New mode attribute.
4679 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4680 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4681 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4682 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4683 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4684 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4685 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4686 ssemodesuffix mode attribute.
4687 (float splitters): Use ssevecmodesuffix mode attribute.
4688 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4689 (sseinsmode): Rename from avxvecmode.
4690 (avxsizesuffix): Rename from avxmodesuffix.
4691 (sseintvecmode): Rename from avxpermvecmode.
4692 (ssedoublevecmode): Rename from ssedoublesizemode.
4693 (ssehalfvecmode): Rename from avxhalfvecmode.
4694 (ssescalarmode): Rename from avxscalarmode.
4695 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4696 templates for ssemodesuffix mode attribute.
4697 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4698 mode attribute.
4699
4700 Adjust RTX patterns globally for renamed mode attributes.
4701
4702 2011-04-27 Jan Hubcika <jh@suse.cz>
4703
4704 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4705 * ipa-inline-analysis.c: Include alloc-pool.h.
4706 (edge_predicate_pool): New.
4707 (trye_predicate_p): New function
4708 (false_predicate_p): New function.
4709 (add_clause): Sanity check that false clauses are "optimized";
4710 never add clauses to predicate that is already known to be false.
4711 (and_predicate): Use flase_predicate_p.
4712 (evaulate_predicate): Rename to ...
4713 (evaluate_predicate): ... this one; update all callers; assert
4714 that false is not listed among possible truths.
4715 (dump_predicate): Use true_predicate_p.
4716 (account_size_time): Use false_predicate_p.
4717 (evaulate_conditions_for_edge): Rename to ...
4718 (evaluate_conditions_for_edge) ... this one.
4719 (edge_set_predicate): New function.
4720 (inline_edge_duplication_hook): Duplicate edge predicates.
4721 (inline_edge_removal_hook): Free edge predicates.
4722 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4723 (dump_inline_summary): Update.
4724 (estimate_function_body_sizes): Set edge predicates.
4725 (estimate_calls_size_and_time): Handle predicates.
4726 (estimate_callee_size_and_time): Update.
4727 (remap_predicate): Add toplev_predicate; update comment.
4728 (remap_edge_predicates): New function.
4729 (inline_merge_summary): Compute toplev predicate; update.
4730 (read_predicate): New function.
4731 (read_inline_edge_summary): Use it.
4732 (inline_read_section): Likewise.
4733 (write_predicate): New function.
4734 (write_inline_edge_summary): Use it.
4735 (inline_write_summary): Likewise.
4736 (inline_free_summary): Free alloc pool and edge summary vec.
4737
4738 2011-04-27 Richard Guenther <rguenther@suse.de>
4739
4740 * tree-ssa-structalias.c (changed_count): Remove.
4741 (changed): Use a bitmap.
4742 (unify_nodes): Adjust.
4743 (do_sd_constraint): Likewise.
4744 (do_ds_constraint): Likewise.
4745 (do_complex_constraint): Likewise.
4746 (solve_graph): Likewise.
4747
4748 2011-04-27 Jan Hubicka <jh@suse.cz>
4749
4750 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4751
4752 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4753
4754 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4755 (avx_vperm2f128_*_operand): Ditto.
4756 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4757 Use avx_vpermilp_parallel in insn condition.
4758 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4759 Use avx_vperm2f128_parallel in insn condition.
4760
4761 2011-04-27 Richard Guenther <rguenther@suse.de>
4762
4763 * Makefile.in (tree-ssa-structalias.o): Remove
4764 gt-tree-ssa-structalias.h dependency.
4765 (GTFILES): Remove tree-ssa-structalias.c.
4766 * tree.c (allocate_decl_uid): New function.
4767 (make_node_stat): Use it.
4768 (copy_node_stat): Likewise.
4769 * tree.h (allocate_decl_uid): Declare.
4770 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4771 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4772 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4773 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4774 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4775 (struct heapvar_map): Likewise.
4776 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4777 heapvar_insert): Likewise.
4778 (make_heapvar_for): Rename to ...
4779 (make_heapvar): ... this. Simplify.
4780 (fake_var_decl_obstack): New global var.
4781 (build_fake_var_decl): New function.
4782 (make_constraint_from_heapvar): Adjust.
4783 (handle_lhs_call): Likewise.
4784 (create_function_info_for): Likewise.
4785 (intra_create_variable_infos): Likewise.
4786 (init_alias_vars): Allocate fake_var_decl_obstack.
4787 (init_alias_heapvars, delete_alias_heapvars): Remove.
4788 (compute_points_to_sets): Do not call init_alias_heapvars.
4789 (ipa_pta_execute): Likewise.
4790 (delete_points_to_sets): Free fake_var_decl_obstack.
4791
4792 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4793
4794 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4795 (si_from_UTItype, si_to_UTItype): New functions.
4796 (__udivmodti4): Use them to implement type-punning.
4797 * config/spu/multi3.c (union qword_TItype): New data type.
4798 (si_from_TItype, si_to_TItype): New functions.
4799 (__multi3): Use them to implement type-punning.
4800
4801 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4802
4803 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4804
4805 2011-04-27 Jan Hubicka <jh@suse.cz>
4806
4807 * ipa-prop.c (function_insertion_hook_holder): New holder.
4808 (ipa_add_new_function): New function.
4809 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4810 Register/deregister holder.
4811
4812 2011-04-27 Richard Guenther <rguenther@suse.de>
4813
4814 PR tree-optimization/48772
4815 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4816
4817 2011-04-27 Richard Guenther <rguenther@suse.de>
4818
4819 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4820 TARGET_MEM_REF handling.
4821
4822 2011-04-27 Nick Clifton <nickc@redhat.com>
4823
4824 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4825 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4826 (REG_CLASS_NAMES): Likewise.
4827 (REG_CLASS_CONTENTS): Likewise.
4828 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4829 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4830 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4831 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4832 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4833 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4834 duplicate register classes.
4835 (frv_class_likely_spilled_p): Likewise.
4836 (frv_register_move_cost): Likewise.
4837
4838 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4839 end of the regno_reg_class array.
4840
4841 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4842
4843 PR c/48742
4844 * c-typeck.c (build_binary_op): Don't wrap arguments if
4845 int_operands is true.
4846
4847 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4848
4849 PR target/48767
4850 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4851 targetm.calls.must_pass_in_stack for void type.
4852
4853 2011-04-26 Jan Hubicka <jh@suse.cz>
4854
4855 * cgraphbuild.c (build_cgraph_edges): Update call
4856 of cgraph_create_edge and cgraph_create_indirect_edge.
4857 * cgraph.c (cgraph_create_edge_including_clones,
4858 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4859 cgraph_update_edges_for_call_stmt_node): Do not take nest
4860 argument; do not initialize call_stmt_size/time.
4861 (dump_cgraph_node): Do not dump nest.
4862 (cgraph_clone_edge): Do not take loop_nest argument;
4863 do not propagate it; do not clone call_stmt_size/time.
4864 (cgraph_clone_node): Likewise.
4865 (cgraph_create_virtual_clone): Update.
4866 * cgraph.h (struct cgraph_edge): Remove
4867 call_stmt_size/call_stmt_time/loop_nest.
4868 (cgraph_create_edge, cgraph_create_indirect_edge,
4869 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4870 prototype.
4871 * tree-emutls.c (gen_emutls_addr): Update.
4872 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4873 loop_nest; handle indirect calls, too.
4874 (clone_inlined_nodes): Do not care about updating inline summaries.
4875 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4876 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4877 stream call_stmt_size/call_stmt_time/loop_nest.
4878 * ipa-inline.c (edge_badness): Update.
4879 (ipa_inline): dump summaries after inlining.
4880 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4881 New.
4882 (inline_edge_summary): New function.
4883 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4884 (inline_edge_removal_hook): Handle edge summaries.
4885 (inline_edge_duplication_hook): New hook.
4886 (inline_summary_alloc): Alloc hooks.
4887 (initialize_growth_caches): Do not register removal hooks.
4888 (free_growth_caches); Do not free removal hook.
4889 (dump_inline_edge_summary): New function.
4890 (dump_inline_summary): Use it.
4891 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4892 (inline_update_callee_summaries): New function.
4893 (inline_merge_summary): Use it.
4894 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4895 (read_inline_edge_summary): New function.
4896 (inline_read_section): Use it.
4897 (write_inline_edge_summary): New function.
4898 (inline_write_summary): Use it.
4899 (inline_free_summary): Free edge new holders.
4900 * tree-inline.c (copy_bb): Update.
4901
4902 2011-04-26 Jason Merrill <jason@redhat.com>
4903
4904 * tree-eh.c (lower_try_finally_switch): Create the label along with
4905 the CASE_LABEL_EXPR.
4906
4907 2011-04-26 David S. Miller <davem@davemloft.net>
4908 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4909
4910 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4911 * configure: Regenerate.
4912
4913 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4914
4915 PR target/48258
4916 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4917 reduction.
4918 (VEC_reduc): New code iterator and splitters for vector reduction.
4919 (VEC_reduc_name): Ditto.
4920 (VEC_reduc_rtx): Ditto.
4921 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4922 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4923
4924 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4925 support for extracting SF on VSX.
4926
4927 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4928 generating xscvspdp.
4929 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4930 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4931 double add, minimum, maximum vector reduction.
4932 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4933 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4934 optimize double vector reduction.
4935 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4936
4937 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4938
4939 * config/fr30/fr30.h (inhibit_libc): Don't define.
4940 * config/m32r/m32r-protos.h: Correct comment.
4941 * config/v850/v850.h (GHS_default_section_names,
4942 GHS_current_section_names): Use tree, not union tree_node *.
4943
4944 2011-04-26 Xinliang David Li <davidxl@google.com>
4945
4946 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4947 * c-family/c-opts.c (c_common_handle_option): Set
4948 warn_maybe_uninitialized.
4949 * opts.c (common_handle_option): Ditto.
4950 * common.opt: New option.
4951 * tree-ssa.c (warn_uninit): Add one more parameter.
4952 (warn_uninitialized_var): Pass warning code.
4953 * tree-flow.h: Interface change.
4954
4955 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4956
4957 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4958 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4959 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4960
4961 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4962
4963 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4964 * config/mips/mips.opt (mmips-tfile): Remove.
4965
4966 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4967 mips-tdump reference to ...
4968 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4969 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4970 reference by Tru64 UNIX.
4971
4972 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4973
4974 PR debug/48768
4975 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4976 is error_mark_node, set value to NULL.
4977
4978 PR tree-optimization/48734
4979 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4980 if return value from maybe_fold_*_comparsions isn't something
4981 the code is prepared to handle.
4982
4983 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4984
4985 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4986 mode check.
4987 (ext_QIreg_nomode_operands): Remove.
4988 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4989 (*andsi_1): Ditto.
4990 (*andhi_1): Ditto.
4991
4992 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4993
4994 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4995
4996 2011-04-26 Richard Guenther <rguenther@suse.de>
4997
4998 * c-typeck.c (build_unary_op): Do not expand array-refs via
4999 pointer arithmetic. Only adjust qualifiers for function types.
5000
5001 2011-04-26 Richard Guenther <rguenther@suse.de>
5002
5003 PR middle-end/48694
5004 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5005 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5006 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5007 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5008
5009 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5010
5011 * doc/extend.texi: Document __underlying_type.
5012
5013 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5014
5015 * config/rs6000/titan.md (automata_option "progress"): Remove.
5016
5017 2011-04-25 Jeff Law <law@redhat.com>
5018
5019 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5020
5021 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5022
5023 * system.h (ENUM_BITFIELD): Remove.
5024
5025 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5026 Eric Botcazou <ebotcazou@adacore.com>
5027
5028 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5029 for STORE_FLAG_VALUE==-1 case.
5030
5031 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5032
5033 PR target/43804
5034 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5035 LEGITIMATE_PIC_OPERAND_P.
5036
5037 2011-04-24 Jan Hubicka <jh@suse.cz>
5038
5039 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5040 WPA hack.
5041 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5042 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5043 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5044 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5045 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5046 Sanity check predicate length.
5047 (remap_predicate): Likewise; sanity check jump functions.
5048 (inline_read_section, inline_write_summary): Sanity check
5049 predicate length.
5050
5051 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5052
5053 PR other/48748
5054 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5055 __is_literal_type, and __is_trivial; update throughout about
5056 possibly cv-qualified void types.
5057
5058 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5059
5060 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5061 testsuite and make it version agnostic.
5062
5063 2011-04-22 Jan Hubicka <jh@suse.cz>
5064
5065 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5066
5067 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5068
5069 PR c/48685
5070 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5071 to VOID_TYPE even around MODIFY_EXPR.
5072
5073 2011-04-22 Mike Stump <mikestump@comcast.net>
5074
5075 * gensupport.c (read_md_rtx): Fix typo in comment.
5076 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5077 comment.
5078
5079 2011-04-22 Jan Hubicka <jh@suse.cz>
5080
5081 * gengtype.c (open_base_files): Add ipa-inline.h include.
5082 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5083 ipa-prop.c; update all uses.
5084 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5085 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5086 merge summary of inlined function into former caller.
5087 * ipa-inline.c (max_benefit): Remove.
5088 (edge_badness): Compensate for removal of benefits.
5089 (update_caller_keys): Use
5090 reset_node_growth_cache/reset_edge_growth_cache.
5091 (update_callee_keys): Likewise.
5092 (update_all_callee_keys): Likewise.
5093 (inline_small_functions): Do not collect max_benefit; do not reset
5094 estimated_growth; call free_growth_caches and initialize_growth_caches.
5095 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5096 struct size_time_entry): New structures.
5097 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5098 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5099 and estimated_growth.
5100 (edge_growth_cache_entry): New structure.
5101 (node_growth_cache, edge_growth_cache): New global vars.
5102 (estimate_growth): Turn into inline.
5103 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5104 initialize_growth_caches, free_growth_caches): Declare.
5105 (estimate_edge_growth): Rewrite.
5106 (estimate_edge_time): Implement as inline cache lookup.
5107 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5108 functions.
5109 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5110 (NUM_CONDITIONS): New constant.
5111 (predicate_conditions): New enum.
5112 (IS_NOT_CONSTANT): New constant.
5113 (edge_removal_hook_holder): New var.
5114 (node_growth_cache, edge_growth_cache): New global vars.
5115 (true_predicate, single_cond_predicate, false_predicate,
5116 not_inlined_predicate, add_condition, add_clause, and_predicates,
5117 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5118 dump_clause, dump_predicate, account_size_time,
5119 evaulate_conditions_for_edge): New functions.
5120 (inline_summary_alloc): Move to heap.
5121 (inline_node_removal_hook): Clear condition and entry vectors.
5122 (inline_edge_removal_hook): New function.
5123 (initialize_growth_caches, free_growth_caches): New function.
5124 (dump_inline_summary): Update.
5125 (edge_execution_predicate): New function.
5126 (will_be_nonconstant_predicate): New function.
5127 (estimate_function_body_sizes): Compute BB and constantness predicates.
5128 (compute_inline_parameters): Do not clear estimated_growth.
5129 (estimate_edge_size_and_time): New function.
5130 (estimate_calls_size_and_time): New function.
5131 (estimate_callee_size_and_time): New function.
5132 (remap_predicate): New function.
5133 (inline_merge_summary): New function.
5134 (do_estimate_edge_time): New function based on...
5135 (estimate_edge_time): ... this one.
5136 (do_estimate_edge_growth): New function.
5137 (do_estimate_growth): New function based on....
5138 (estimate_growth): ... this one.
5139 (inline_analyze_function): Analyze after deciding on jump functions.
5140 (inline_read_section): New function.
5141 (inline_read_summary): Use it.
5142 (inline_write_summary): Write all the new data.
5143 * ipa-prop.c (ipa_get_param_decl_index): Export.
5144 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5145 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5146 Declare.
5147 (ipa_get_lattice): Move here from ipa-cp.c
5148 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5149 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5150 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5151 cgraph_edge_inlinable_p): Remove.
5152 * cgraphunit.c: Include ipainline.h
5153 (cgraph_process_new_functions): Update call of
5154 compute_inline_parameters.
5155
5156 2011-04-22 Richard Guenther <rguenther@suse.de>
5157
5158 * tree.c (build_int_cst): Properly create canonicalized integer
5159 constants.
5160 (build_int_cst_type): Remove scary comments.
5161
5162 2011-04-22 Xinliang David Li <davidxl@google.com>
5163
5164 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5165 by default when -Wno-error is not specified.
5166 * opts-global.c (decode_options): Remove call to
5167 control_warning_options.
5168
5169 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5170
5171 PR tree-optimization/48717
5172 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5173 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5174
5175 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5176
5177 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5178 definition where used.
5179
5180 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5181
5182 PR c/48716
5183 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5184 TREE_STATIC variables declared inside of some OpenMP construct.
5185
5186 2011-04-22 Martin Jambor <mjambor@suse.cz>
5187
5188 PR middle-end/48585
5189 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5190
5191 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5192
5193 PR c/36750
5194 * c-typeck.c (pop_init_level): Do not warn about initializing
5195 with ` = {0}'.
5196
5197 2011-04-22 Alan Modra <amodra@gmail.com>
5198
5199 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5200 when returning call_cookie.
5201 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5202 pointers, to functions with no more vector args than the current
5203 function, and some non-local calls for ABI_V4.
5204 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5205 sibcall_nonlocal_aix64): Combine to ..
5206 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5207 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5208 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5209 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5210 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5211 operand.
5212 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5213 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5214 sibcall_value_symbolic_64): Delete.
5215
5216 2011-04-21 Xinliang David Li <davidxl@google.com>
5217
5218 * cgraph.h: Remove pid.
5219 * cgraph.c: Remove pid.
5220 * value-prof.c (init_node_map): New function.
5221 (del_node_map): New function.
5222 (find_func_by_funcdef_no): New function.
5223 (gimple_ic_transform): Call new function.
5224 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5225 * function.c (get_last_funcdef_no): New function.
5226 * function.h (get_last_funcdef_no): New function.
5227 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5228 to libgcov function.
5229 (tree-profiling): Call node map init and delete function.
5230
5231 2011-04-21 Ian Lance Taylor <iant@google.com>
5232
5233 * godump.c (go_format_type): Use exported Go name for anonymous
5234 field name.
5235
5236 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5237
5238 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5239 Call builtin_function_type_list instead of builtin_function_type.
5240 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5241
5242 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5243
5244 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5245 build_function_type_list instead of build_function_type.
5246 Delete variable `endlink'.
5247
5248 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5249
5250 * config/s390/s390.c (s390_init_builtins): Call
5251 build_function_type_list instead of build_function_type.
5252
5253 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5254
5255 * config/ia64/ia64.c (ia64_init_builtins): Call
5256 build_function_type_list instead of builtin_function_type.
5257
5258 2011-04-21 Easwaran Raman <eraman@google.com>
5259
5260 * cfgexpand.c (stack_var): Remove OFFSET...
5261 (add_stack_var): ...and its reference here...
5262 (expand_stack_vars): ...and here.
5263 (stack_var_cmp): Sort by descending order of size.
5264 (partition_stack_vars): Change heuristic.
5265 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5266 (dump_stack_var_partition): Add newline after each partition.
5267
5268 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5269 Jeff Law <law@redhat.com>
5270
5271 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5272 * gengtype.c (matching_file_name_substitute): Likewise.
5273
5274 2011-04-21 Richard Guenther <rguenther@suse.de>
5275
5276 PR lto/48703
5277 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5278
5279 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5280
5281 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5282
5283 2011-04-21 Richard Guenther <rguenther@suse.de>
5284
5285 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5286 file name.
5287
5288 2011-04-21 Richard Guenther <rguenther@suse.de>
5289
5290 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5291 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5292 Use DECL_P, not SSA_VAR_P.
5293 (ptr_derefs_may_alias_p): Likewise.
5294 (ptr_deref_may_alias_ref_p_1): Likewise.
5295 (decl_refs_may_alias_p): Likewise.
5296 (refs_may_alias_p_1): Likewise.
5297 (ref_maybe_used_by_call_p_1): Likewise.
5298 (call_may_clobber_ref_p_1): Likewise.
5299 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5300 are either MEM_REF or TARGET_MEM_REF.
5301 (indirect_refs_may_alias_p): Likewise.
5302 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5303 for MEM_EXPR of indirect calls.
5304
5305 2011-04-21 Tristan Gingold <gingold@adacore.com>
5306
5307 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5308 (dst_file_info_struct): Remove flen field.
5309 (lookup_filename): Remove code that set flen field.
5310
5311 2011-04-21 Tristan Gingold <gingold@adacore.com>
5312
5313 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5314
5315 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5316
5317 PR target/48708
5318 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5319 vec_extract and vec_concat for non-SSE4_1 targets.
5320
5321 2011-04-21 Richard Guenther <rguenther@suse.de>
5322
5323 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5324 return statements.
5325
5326 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5327
5328 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5329 undefine.
5330 (FILE): Don't undefine.
5331
5332 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5333
5334 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5335 struct rtx_def *.
5336 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5337 struct rtx_def *.
5338 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5339 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5340 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5341 rtx_def *.
5342 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5343 definitions where used.
5344 * config/microblaze/microblaze.h (struct microblaze_args): Use
5345 rtx, not struct rtx_def *.
5346 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5347 rtx_def *.
5348 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5349 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5350 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5351 not struct rtx_def *.
5352 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5353 struct rtx_def *.
5354 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5355 rtx_def *.
5356 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5357
5358 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5359
5360 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5361 operand_equal_p to compare DR_BASE_ADDRESSes.
5362 (vect_check_interleaving): Likewise.
5363
5364 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5365
5366 PR target/46329
5367 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5368 for all Neon struct constants.
5369
5370 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5371
5372 * target.def (legitimate_constant_p): New hook.
5373 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5374 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5375 * doc/tm.texi: Regenerate.
5376 * hooks.h (hook_bool_mode_rtx_true): Declare.
5377 * hooks.c (hook_bool_mode_rtx_true): Define.
5378 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5379 * calls.c (precompute_register_parameters): Replace uses of
5380 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5381 (emit_library_call_value_1): Likewise.
5382 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5383 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5384 * ira-costs.c (scan_one_insn): Likewise.
5385 * recog.c (general_operand, immediate_operand): Likewise.
5386 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5387 * reload1.c (init_eliminable_invariants): Likewise.
5388
5389 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5390 mode argument.
5391 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5392 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5393 argument.
5394 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5395 * config/alpha/predicates.md (input_operand): Update call to
5396 alpha_legitimate_constant_p.
5397
5398 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5399 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5400 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5401 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5402 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5403 (arm_legitimate_constant_p): New functions.
5404 (arm_cannot_force_const_mem): Make static.
5405
5406 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5407
5408 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5409 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5410 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5411 instead of bfin_legitimate_constant_p.
5412 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5413 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5414
5415 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5416
5417 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5418
5419 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5420 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5421 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5422 (frv_legitimate_constant_p): Make static. Add a mode argument.
5423
5424 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5425 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5426 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5427
5428 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5429 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5430 * config/i386/i386.c (legitimate_constant_p): Rename to...
5431 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5432 argument.
5433 (ix86_cannot_force_const_mem): Update accordingly.
5434 (ix86_legitimate_address_p): Likewise.
5435 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5436 * config/i386/i386.md: Update commentary.
5437
5438 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5439 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5440 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5441 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5442
5443 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5444
5445 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5446 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5447 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5448 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5449
5450 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5451 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5452 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5453
5454 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5455 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5456 (m32r_legitimate_constant_p): New function.
5457
5458 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5459 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5460 LEGITIMATE_CONSTANT_P.
5461 (LEGITIMATE_CONSTANT_P): Delete.
5462 * config/m68k/m68k.c (m68k_expand_prologue): Call
5463 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5464 (m68k_legitimate_constant_p): New function.
5465 * config/m68k/m68k.md: Update comments.
5466
5467 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5468 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5469 (mcore_legitimate_constant_p): New function.
5470
5471 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5472 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5473 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5474 Add a mode argument.
5475 (mep_legitimate_address): Update accordingly.
5476 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5477
5478 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5479 Delete.
5480 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5481 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5482 static. Check OP's mode for VOIDmode.
5483 (microblaze_legitimate_constant_p): New function.
5484 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5485
5486 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5487 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5488 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5489 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5490 * config/mips/predicates.md: Update comments.
5491
5492 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5493 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5494 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5495 (mmix_legitimate_constant_p): Make static, return a bool, and take
5496 a mode argument.
5497 (mmix_print_operand_address): Update accordingly.
5498
5499 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5500 Delete.
5501 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5502 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5503 static. Add a mode argument.
5504 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5505
5506 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5507
5508 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5509 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5510 (pa_legitimate_constant_p): New function.
5511
5512 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5513
5514 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5515 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5516 (pdp11_legitimate_constant_p): New function.
5517
5518 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5519 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5520 (rs6000_legitimate_constant_p): New function.
5521
5522 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5523 (rx_legitimate_constant_p): ...this.
5524 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5525 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5526 (rx_legitimate_constant_p): ...this.
5527 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5528 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5529
5530 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5531 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5532 * config/s390/s390.c (legitimate_constant_p): Rename to...
5533 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5534 and add a mode argument.
5535 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5536
5537 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5538
5539 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5540 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5541 (sh_legitimate_constant_p): New function.
5542
5543 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5544 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5545 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5546 (legitimate_constant_p): Rename to...
5547 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5548 argument.
5549 (constant_address_p): Update accordingly.
5550
5551 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5552 argument and return a bool.
5553 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5554 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5555 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5556 (spu_rtx_costs): Update accordingly.
5557 * config/spu/predicates.md (vec_imm_operand): Likewise.
5558
5559 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5560
5561 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5562 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5563 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5564
5565 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5566 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5567 * config/vax/vax.c (legitimate_constant_p): Likewise.
5568
5569 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5570 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5571 (xtensa_legitimate_constant_p): New function.
5572
5573 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5574
5575 * target.def (cannot_force_const_mem): Add a mode argument.
5576 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5577 * doc/tm.texi: Regenerate.
5578 * hooks.h (hook_bool_mode_rtx_false): Declare.
5579 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5580 (hook_bool_mode_const_rtx_true): Likewise.
5581 (hook_bool_mode_rtx_false): New function.
5582 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5583 to be non-VOID. Update call to cannot_force_const_mem.
5584 (find_reloads): Update accordingly.
5585 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5586 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5587 argument.
5588 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5589 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5590 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5591 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5592 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5593 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5594 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5595 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5596 (m68k_cannot_force_const_mem): ...this new function.
5597 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5598 argument.
5599 (mips_const_insns, mips_legitimize_const_move): Update calls.
5600 (mips_secondary_reload_class): Likewise.
5601 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5602 (pa_cannot_force_const_mem): ...this new function.
5603 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5604 (rs6000_cannot_force_const_mem): ...this new function.
5605 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5606 argument.
5607 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5608 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5609 to...
5610 (xtensa_cannot_force_const_mem): ...this new function.
5611
5612 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5613
5614 * config/mips/mips.c (mips16_build_function_stub): Call
5615 build_function_type_list instead of build_function_type.
5616 (mips16_build_call_stub): Likewise.
5617
5618 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5619
5620 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5621 instead of build_function_type.
5622
5623 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5624
5625 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5626 instead of build_function_type.
5627
5628 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5629
5630 PR target/48678
5631 * config/i386/i386.md (insv): Change operand 0 constraint to
5632 "register_operand". Change operand 1 and 2 constraint to
5633 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5634 * config/i386/sse.md (sse4_1_pinsrb): Export.
5635 (sse2_pinsrw): Ditto.
5636 (sse4_1_pinsrd): Ditto.
5637 (sse4_1_pinsrq): Ditto.
5638 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5639 * config/i386/i386.c (ix86_expand_pinsr): New.
5640
5641 2011-04-20 Easwaran Raman <eraman@google.com>
5642
5643 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5644 containing union type only with -fstrict-aliasing.
5645
5646 2011-04-20 Jim Meyering <meyering@redhat.com>
5647
5648 Remove useless if-before-free tests.
5649 * calls.c (expand_call, save_area): Likewise.
5650 * cfgcleanup.c (try_forward_edges): Likewise.
5651 * collect2.c (collect_execute): Likewise.
5652 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5653 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5654 * coverage.c (coverage_checksum_string): Likewise.
5655 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5656 * cselib.c (cselib_init): Likewise.
5657 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5658 (df_set_clean_cfg): Likewise.
5659 * function.c (free_after_compilation): Likewise.
5660 * gcc.c (do_spec_1, main): Likewise.
5661 * gcov.c (create_file_names): Likewise.
5662 * gensupport.c (identify_predicable_attribute): Likewise.
5663 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5664 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5665 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5666 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5667 * ipa-pure-const.c (local_pure_const): Likewise.
5668 * ipa-reference.c (propagate): Likewise.
5669 * ira-costs.c (free_ira_costs): Likewise.
5670 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5671 * matrix-reorg.c (mat_free): Likewise.
5672 * prefix.c (get_key_value): Likewise.
5673 * profile.c (compute_value_histograms): Likewise.
5674 * reload1.c (free_reg_equiv): Likewise.
5675 * sched-deps.c (free_deps): Likewise.
5676 * sel-sched-ir.c (fence_clear): Likewise.
5677 * sese.c (set_rename, if_region_set_false_region): Likewise.
5678 * tree-data-ref.c (free_rdg): Likewise.
5679 * tree-eh.c (lower_try_finally): Likewise.
5680 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5681 * tree-ssa-live.c (delete_var_map): Likewise.
5682 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5683 * tree-ssa-pre.c (phi_trans_add): Likewise.
5684
5685 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5686
5687 PR tree-optimization/48611
5688 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5689 beyond ERT_MUST_NOT_THROW region.
5690
5691 2011-04-20 Catherine Moore <clm@codesourcery.com>
5692
5693 * config/mips/mips.opt (mfix-24k): New.
5694 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5695 * config/mips/mips.md (length): Increase by 4 for stores if
5696 fixing 24K errata.
5697 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5698 all noreorder if fixing 24K errata.
5699 * doc/invoke.texi: Document mfix-24k.
5700
5701 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5702
5703 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5704 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5705
5706 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5707
5708 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5709 (const_ok_for_op): ... to here.
5710
5711 2011-04-20 Kai Tietz <ktietz@redhat.com>
5712
5713 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5714 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5715
5716 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5717
5718 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5719
5720 2011-04-20 Richard Guenther <rguenther@suse.de>
5721
5722 PR tree-optimization/47892
5723 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5724 are if-convertible.
5725
5726 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5727
5728 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5729
5730 2011-04-20 Tristan Gingold <gingold@adacore.com>
5731
5732 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5733
5734 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5735
5736 PR target/18145
5737
5738 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5739 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5740 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5741 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5742 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5743
5744 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5745 New prototype.
5746
5747 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5748 (avr_asm_named_section, avr_asm_output_aligned_common,
5749 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5750 New functions to update...
5751 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5752 (avr_asm_init_sections): Overwrite section callbacks for
5753 data_section, bss_section.
5754 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5755 from here to...
5756 (avr_file_end): ...here.
5757
5758 2011-04-20 Richard Guenther <rguenther@suse.de>
5759
5760 PR middle-end/48695
5761 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5762 objects and types here. Adjust for their offset before comparing.
5763
5764 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5765
5766 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5767 statement per copy.
5768
5769 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5770
5771 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5772 (GIMPLE_H): Include $(INTERNAL_FN_H).
5773 (OBJS-common): Add internal-fn.o.
5774 (internal-fn.o): New rule.
5775 * internal-fn.def: New file.
5776 * internal-fn.h: Likewise.
5777 * internal-fn.c: Likewise.
5778 * gimple.h: Include internal-fn.h.
5779 (GF_CALL_INTERNAL): New gf_mask.
5780 (gimple_statement_call): Put fntype into a union with a new
5781 internal_fn field.
5782 (gimple_build_call_internal): Declare.
5783 (gimple_build_call_internal_vec): Likewise.
5784 (gimple_call_same_target_p): Likewise.
5785 (gimple_call_internal_p): New function.
5786 (gimple_call_internal_fn): Likewise.
5787 (gimple_call_fntype): Return null for internal calls.
5788 (gimple_call_set_fntype): Assert that the function is not internal.
5789 (gimple_call_set_fn): Likewise.
5790 (gimple_call_set_fndecl): Likewise.
5791 (gimple_call_set_internal_fn): New function.
5792 (gimple_call_addr_fndecl): Handle null functions.
5793 (gimple_call_return_type): Likewise null types.
5794 * gimple.c (gimple_build_call_internal_1): New function.
5795 (gimple_build_call_internal): Likewise.
5796 (gimple_build_call_internal_vec): Likewise.
5797 (gimple_call_same_target_p): Likewise.
5798 (gimple_call_flags): Handle calls to internal functions.
5799 (gimple_call_fnspec): New function.
5800 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5801 (gimple_has_side_effects): Handle null functions.
5802 (gimple_rhs_has_side_effects): Likewise.
5803 (gimple_call_copy_skip_args): Handle calls to internal functions.
5804 * cfgexpand.c (expand_call_stmt): Likewise.
5805 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5806 * gimple-fold.c (gimple_fold_call): Handle null functions.
5807 (gimple_fold_stmt_to_constant_1): Don't fold
5808 calls to internal functions.
5809 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5810 functions.
5811 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5812 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5813 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5814 (do_warn_unused_result): Likewise.
5815 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5816 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5817 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5818 the target of a call.
5819 (initialize_hash_element): Update accordingly.
5820 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5821 (iterative_hash_hashable_expr): Handle calls to internal functions.
5822 (print_expr_hash_elt): Likewise.
5823 * tree-ssa-pre.c (can_value_number_call): Likewise.
5824 (eliminate): Handle null functions.
5825 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5826 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5827 (find_func_aliases): Likewise.
5828 * value-prof.c (gimple_ic_transform): Likewise.
5829 (gimple_indirect_call_to_profile): Likewise.
5830 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5831 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5832
5833 2011-04-19 Jan Hubicka <jh@suse.cz>
5834
5835 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5836 * ipa-inline.c (inline_small_functions): Compute summaries first,
5837 populate heap later.
5838
5839 2011-04-19 Jan Hubicka <jh@suse.cz>
5840
5841 * cgraph.h (save_inline_function_body): Remove.
5842 * ipa-inline-transform.c: New file, broke out of...
5843 * ipa-inline.c: ... this one; Update toplevel comment.
5844 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5845 make global.
5846 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5847 (cgraph_mark_inline_edge): Rename to inline_call; move to
5848 ipa-inline-transform.c.
5849 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5850 move to ipa-inline-transform.c
5851 (recursive_inlining, inline_small_functions, flatten_function,
5852 ipa_inline, inline_always_inline_functions,
5853 early_inline_small_functions): Update.
5854 (inline_transform): Move to ipa-inline-transform.c.
5855 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5856 Declare.
5857 * Makefile.in (ipa-inline-transform.o): New file.
5858 * cgraphunit.c (save_inline_function_body): Move to
5859 ipa-inline-transform.c
5860
5861 2011-04-19 DJ Delorie <dj@redhat.com>
5862
5863 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5864 registers if we already know there aren't any.
5865 (m32c_emit_epilogue): Don't emit a barrier here.
5866 (m32c_emit_eh_epilogue): Likewise.
5867 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5868 operands at expand time.
5869 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5870 int" wchar type.
5871 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5872 duplicates. Provide aliases instead.
5873 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5874 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5875 the compiler.
5876
5877 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5878
5879 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5880 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5881 (general_or_i64_p, sparc_register_move_cost): New function.
5882
5883 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5884
5885 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5886 Add lynx, mipssde. Sort table.
5887
5888 2011-04-19 Xinliang David Li <davidxl@google.com>
5889
5890 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5891 not negative.
5892
5893 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5894
5895 PR target/48678
5896 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5897 is a SUBREG with non-MODE_INT mode inside of it.
5898
5899 2011-04-19 Martin Jambor <mjambor@suse.cz>
5900
5901 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5902 also according to actual contants.
5903 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5904 (gimple_fold_call): Use it.
5905 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5906
5907 2011-04-19 Martin Jambor <mjambor@suse.cz>
5908
5909 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5910 non-pointer assignments.
5911
5912 2011-04-19 Martin Jambor <mjambor@suse.cz>
5913
5914 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5915 account anc_offset and otr_type from the indirect edge info.
5916 * ipa-prop.c (get_ancestor_addr_info): New function.
5917 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5918 get_ancestor_addr_info, call it.
5919 (ipa_note_param_call): Do not initialize information about polymorphic
5920 calls, return the indirect call graph edge. Remove the last
5921 parameter, adjust all callers.
5922 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5923 parameters. Initialize polymorphic information in the indirect edge.
5924
5925 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5926
5927 PR lto/48148
5928 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5929 the types if they have different enumeration identifiers.
5930
5931 2011-04-19 Jan Hubicka <jh@suse.cz>
5932
5933 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5934 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5935 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5936 (optimize_function_for_size_p) ... here.
5937
5938 2011-04-19 Richard Guenther <rguenther@suse.de>
5939
5940 PR lto/48207
5941 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5942 langhook.
5943
5944 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5945
5946 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5947 if DECL_NO_INLINE_WARNING_P is set on the function.
5948
5949 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5950
5951 PR fortran/47976
5952 * reload1.c (inc_for_reload): Return void. All callers changed.
5953 (emit_input_reload_insns): Don't try to delete previous output
5954 reloads to a register, or record spill_reg_store for autoincs.
5955
5956 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5957
5958 * gengtype.h: Updated copyright year.
5959 (struct input_file_st): Add inpisplugin field.
5960 (type_fileloc): New function.
5961 * gengtype.c
5962 (write_typed_struct_alloc_def): Add gcc_assert.
5963 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5964 (write_typed_alloc_defns): Don't output for plugin files.
5965 (input_file_by_name): Clear inpisplugin field.
5966 (main): Set inpisplugin field for plugin files.
5967
5968 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5969
5970 * gengtype-state.c (string_eq): New.
5971 (read_state): Use string_eq instead of strcmp when creating the
5972 state_ident_tab.
5973
5974 2011-04-19 Wei Guozhi <carrot@google.com>
5975
5976 PR target/47855
5977 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5978 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5979 linkage.
5980 * config/arm/constraints.md (Uu): New constraint.
5981 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5982
5983 2011-04-19 Tristan Gingold <gingold@adacore.com>
5984
5985 * config.gcc (-*-*-*vms): Added.
5986 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5987 definitions moved.
5988 * config/vms/vms-ld.c: New file.
5989 * config/vms/vms-ar.c: New file.
5990 * config/vms/t-vmsnative: New file.
5991
5992 2011-04-18 Xinliang David Li <davidxl@google.com>
5993
5994 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5995
5996 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5997
5998 PR middle-end/48661
5999 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6000 if TREE_TYPE (v) is non-NULL.
6001
6002 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6003 gimple_get_virt_mehtod_for_binfo.
6004 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6005 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6006 callers.
6007 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6008
6009 2011-04-18 Michael Matz <matz@suse.de>
6010 Steve Ellcey <sje@cup.hp.com>
6011
6012 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6013 use its mode as source mode if it isn't VOIDmode.
6014
6015 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6016
6017 * doc/passes.texi: Fill crossref nodes.
6018
6019 2011-04-18 Jim Meyering <meyering@redhat.com>
6020
6021 Fix doubled-word typos in comments and strings
6022 * config/alpha/vms-unwind.h: s/for for/for/
6023 * config/arm/unwind-arm.h: Likewise.
6024 * config/microblaze/microblaze.c: Likewise.
6025 * config/sh/constraints.md: s/in in/in/
6026 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6027
6028 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6029
6030 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6031 (AVX_FLOAT_MODE_P): Ditto.
6032 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6033 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6034 (AVX_VEC_FLOAT_MODE_P): Ditto.
6035 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6036 (UNSPEC_MASKSTORE): Ditto.
6037 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6038 Merge from <sse>_movmsk<ssemodesuffix> and
6039 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6040 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6041 iterator.
6042 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6043 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6044 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6045
6046 2011-04-18 Jan Hubicka <jh@suse.cz>
6047
6048 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6049
6050 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6051 (want_inline_function_called_once_p): Break out the logic from
6052 ipa_inline.
6053 (edge_badness): Ensure that profile is not misupdated.
6054 (lookup_recursive_calls): Prioritize by call frequencies.
6055 (inline_small_functions): Move program size estimates here;
6056 actually process whole queue even when unit growth has been
6057 met. (to properly compute inline_failed reasons and for the
6058 case unit size decrease.) Revisit comments on recursive inlining.
6059 (ipa_inline): Remove unit summary code; first inline hot calls
6060 of functions called once, cold calls next.
6061 (order, nnodes): Remove unused variables.
6062 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6063 (GTFILES): Remove ipa-inline.c
6064 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6065
6066 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6067
6068 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6069
6070 2011-04-18 Jie Zhang <jie@codesourcery.com>
6071 Richard Earnshaw <rearnsha@arm.com>
6072
6073 * arm.c (neon_builtin_type_bits): Remove.
6074 (typedef enum neon_builtin_mode): New.
6075 (T_MAX): Don't define.
6076 (typedef enum neon_builtin_datum): Remove bits, codes[],
6077 num_vars and base_fcode. Add mode, code and fcode.
6078 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6079 VAR10): Change accordingly.
6080 (neon_builtin_data[]): Change accordingly
6081 (arm_init_neon_builtins): Change accordingly.
6082 (neon_builtin_compare): Remove.
6083 (locate_neon_builtin_icode): Remove.
6084 (arm_expand_neon_builtin): Change accordingly.
6085
6086 * arm.h (enum arm_builtins): Move to ...
6087 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6088
6089 * arm.c (arm_builtin_decl): Declare.
6090 (TARGET_BUILTIN_DECL): Define.
6091 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6092 (arm_builtin_decls[]): New.
6093 (arm_init_neon_builtins): Store builtin declarations in
6094 arm_builtin_decls[].
6095 (arm_init_tls_builtins): Likewise.
6096 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6097 (arm_builtin_decl): New.
6098
6099 2011-04-18 Richard Guenther <rguenther@suse.de>
6100
6101 * tree.c (upper_bound_in_type): Build properly canonicalized
6102 INTEGER_CSTs.
6103 (lower_bound_in_type): Likewise.
6104
6105 2011-04-18 Richard Guenther <rguenther@suse.de>
6106
6107 * gimple.h (gimple_call_addr_fndecl): New function.
6108 (gimple_call_fndecl): Use it.
6109 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6110 for direct calls.
6111 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6112 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6113
6114 2011-04-18 Richard Guenther <rguenther@suse.de>
6115
6116 PR middle-end/48650
6117 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6118
6119 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6120
6121 PR lto/48492
6122 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6123 DECL_IN_CONSTANT_POOL without RTL.
6124
6125 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6126 Ira Rosen <ira.rosen@linaro.org>
6127
6128 PR target/48252
6129 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6130 to match neon_vzip/vuzp/vtrn_internal.
6131 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6132 outputs explicitly dependent on both inputs.
6133 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6134
6135 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6136
6137 PR tree-optimization/48616
6138 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6139 whether the shift is by scalar or vector based on whether all SLP
6140 scalar stmts have the same rhs.
6141
6142 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6143
6144 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6145 memory operands.
6146
6147 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6148
6149 PR target/43700
6150 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6151 registers.
6152
6153 2011-04-17 Jan Hubicka <jh@suse.cz>
6154
6155 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6156 * cgrpahunit.c (cgraph_finalize_function): Do not set
6157 finalized_by_frontend.
6158 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6159 finalized_by_frontend.
6160
6161 2011-04-17 Jan Hubicka <jh@suse.cz>
6162
6163 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6164 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6165 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6166 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6167 method.
6168 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6169 gimple-fold.c
6170 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6171
6172 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6173
6174 PR lto/48538
6175 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6176 is non-null before accessing it.
6177 (input_cgraph): Remove trailing spaces.
6178
6179 2011-04-17 Revital Eres <revital.eres@linaro.org>
6180
6181 * params.def (sms-min-sc): New param flag.
6182 * modulo-sched.c (sms_schedule): Use it.
6183 * doc/invoke.texi (sms-min-sc): Document it.
6184
6185 2011-04-17 Jan Hubicka <jh@suse.cz>
6186
6187 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6188 present, also set gimple_call_set_cannot_inline.
6189 * ipa-inline.c: Update toplevel comment.
6190 (MAX_TIME): Remove.
6191 (cgraph_clone_inlined_nodes): Fix linebreaks.
6192 (cgraph_check_inline_limits): Restructure to ...
6193 (caller_growth_limits): ... this one; be more tolerant
6194 on growth in nested inline chains; add explanatory comment;
6195 fix stack accounting thinko introduced by previous patch.
6196 (cgraph_default_inline_p): Remove.
6197 (report_inline_failed_reason): New function.
6198 (can_inline_edge_p): New function.
6199 (can_early_inline_edge_p): New function.
6200 (leaf_node_p): Move upwards in file.
6201 (want_early_inline_function_p): New function.
6202 (want_inline_small_function_p): New function.
6203 (want_inline_self_recursive_call_p): New function.
6204 (cgraph_edge_badness): Rename to ...
6205 (edge_badness) ... this one; fix linebreaks.
6206 (update_edge_key): Update call of edge_baddness; add
6207 detailed dump about queue updates.
6208 (update_caller_keys): Use can_inline_edge_p and
6209 want_inline_small_function_p.
6210 (cgraph_decide_recursive_inlining): Rename to...
6211 (recursive_inlining): Use can_inline_edge_p and
6212 want_inline_self_recursive_call_p; simplify and remove no longer
6213 valid FIXME.
6214 (cgraph_set_inline_failed): Remove.
6215 (add_new_edges_to_heap): Use can_inline_edge_p and
6216 want_inline_small_function_p.
6217 (cgraph_decide_inlining_of_small_functions): Rename to ...
6218 (inline_small_functions): ... this one; cleanup; use
6219 can/want predicates; cleanup debug ouput; work edges till fibheap
6220 is exhausted and do not stop once unit growth is reached; remove
6221 later loop processing remaining edges.
6222 (cgraph_flatten): Rename to ...
6223 (flatten_function): ... this one; use can_inline_edge_p
6224 and can_early_inline_edge_p predicates.
6225 (cgraph_decide_inlining): Rename to ...
6226 (ipa_inline): ... this one; remove unreachable nodes before
6227 inlining functions called once; simplify the pass.
6228 (cgraph_perform_always_inlining): Rename to ...
6229 (inline_always_inline_functions): ... this one; use
6230 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6231 (cgraph_decide_inlining_incrementally): Rename to ...
6232 (early_inline_small_functions): ... this one; simplify
6233 using new predicates; cleanup; make dumps prettier.
6234 (cgraph_early_inlining): Rename to ...
6235 (early_inliner): newer inline regular functions into always-inlines;
6236 fix updating of call stmt summaries.
6237 (pass_early_inline): Update for new names.
6238 (inline_transform): Fix formating.
6239 (gate_cgraph_decide_inlining): Rename to ...
6240 (pass_ipa_inline): ... this one.
6241 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6242 * ipa-inline-analysis.c (dump_inline_summary): Update.
6243 (compute_inline_parameters): Do not compute disregard_inline_limits;
6244 look for mismatching arguments.
6245 (estimate_growth): Fix handlig of non-trivial self recursion.
6246 (inline_read_summary): Do not read info->disregard_inline_limits.
6247 (inline_write_summary): Do not write info->disregard_inline_limits.
6248 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6249 and move all checks into can_inline_edge_p predicate; re-enable code
6250 comparing optimization levels.
6251 (expand_call_inline): Do not test inline_forbidden_into_p.
6252 * Makefile.in (ipa-inline.o): Update arguments.
6253
6254 2011-04-17 Revital Eres <revital.eres@linaro.org>
6255
6256 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6257
6258 2011-04-17 Revital Eres <revital.eres@linaro.org>
6259
6260 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6261
6262 2011-04-17 Michael Matz <matz@suse.de>
6263
6264 PR tree-optimization/48622
6265 PR lto/48645
6266 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6267 in same order as they're written.
6268
6269 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6270
6271 * config/pa/predicates.md: Reorganize and simplify predicates.
6272 Eliminate duplicate code checks.
6273 (arith_operand): Rename to arith14_operand
6274 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6275 * config/pa/pa.md: Use renamed operands.
6276 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6277 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6278 arith11_operand, adddi3_operand, indexed_memory_operand,
6279 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6280 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6281 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6282 move_dest_operand, move_src_operand, prefetch_cc_operand,
6283 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6284 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6285 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6286 div_operand, int5_operand, movb_comparison_operator,
6287 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6288 arith_double_operand, ireg_operand, lhs_lshift_operand,
6289 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6290 integer_store_memory_operand): Likewise.
6291 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6292 (integer_store_memory_operand, read_only_operand,
6293 function_label_operand, borx_reg_operand,
6294 non_hard_reg_operand): Likewise.
6295 (eq_neq_comparison_operator): Delete unused operator.
6296 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6297 function_label_operand.
6298 (emit_move_sequence): Likewise.
6299
6300 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6301
6302 * config/i386/sse.md (sseunpackmode): New mode attribute.
6303 (ssepackmode): Ditto.
6304 (vec_pack_trunc_<mode>): Macroize expander from
6305 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6306 (vec_unpacks_lo_<mode>): Macroize expander from
6307 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6308 (vec_unpacks_hi_<mode>): Macroize expander from
6309 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6310 (vec_unpacku_lo_<mode>): Macroize expander from
6311 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6312 (vec_unpacku_hi_<mode>): Macroize expander from
6313 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6314 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6315 ix86_expand_sse4_unpack.
6316 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6317
6318 2011-04-16 Jan Hubicka <jh@suse.cz>
6319
6320 * cgraphbuild.c: Include ipa-inline.h.
6321 (reset_inline_failed): Use initialize_inline_failed.
6322 * cgraph.c: Include ipa-inline.h.
6323 (cgraph_create_node_1): Do not initialize estimated_growth.
6324 (initialize_inline_failed): More to ipa-inline-analysis.c
6325 (dump_cgraph_node): Do not dump inline flags.
6326 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6327 and disregard_inline_limits flags.
6328 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6329 time, size, estimated_growth.
6330 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6331 Update.
6332 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6333 DECL_DISREGARD_INLINE_LIMITS.
6334 (cgraph_analyze_function): Do not initialize
6335 node->local.disregard_inline_limits.
6336 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6337 inlinable, versionable and disregard_inline_limits.
6338 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6339 cgraph_check_inline_limits, cgraph_default_inline_p,
6340 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6341 add_new_edges_to_heap): Update.
6342 (cgraph_decide_inlining_of_small_function): Update; set
6343 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6344 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6345 cgraph_decide_inlining_incrementally): Update.
6346 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6347 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6348 time, size and estimated_growth parameters.
6349 (estimate_edge_growth): Update.
6350 (initialize_inline_failed): Declare.
6351 * ipa-split.c: Include ipa-inline.h
6352 (execute_split_functions): Update.
6353 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6354 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6355 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6356 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6357 estimated_growth to INT_MIN.
6358 (inline_node_duplication_hook): Likewise.
6359 (dump_inline_summary): Dump new fields.
6360 (compute_inline_parameters): Update.
6361 (estimate_edge_time, estimate_time_after_inlining,
6362 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6363 inline_write_summary):
6364 (initialize_inline_failed): Move here from cgraph.c.
6365 * tree-sra.c: Include ipa-inline.h.
6366 (ipa_sra_preliminary_function_checks): Update.
6367 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6368 ipa-inline.h.
6369
6370 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6371
6372 * config/i386/sse.md (V16): New mode iterator.
6373 (VI1, VI8): Ditto.
6374 (AVXMODEQI, AVXMODEDI): Remove.
6375 (sse2, sse3): New mode attribute.
6376 (mov<mode>): Use V16 mode iterator.
6377 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6378 (push<mode>1): Use V16 mode iterator.
6379 (movmisalign<mode>): Ditto.
6380 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6381 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6382 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6383 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6384 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6385 avx_movdqu<avxmodesuffix>.
6386 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6387 *avx_movdqu<avxmodesuffix>.
6388 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6389 avx_lddqu<avxmodesuffix>.
6390 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6391 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6392 avx_movnt<AVXMODEDI:mode>.
6393 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6394 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6395
6396 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6397
6398 PR target/48629
6399 * haifa-sched.c (prune_ready_list, schedule_block): Use
6400 sched_pressure_p rather than flag_sched_pressure.
6401
6402 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6403
6404 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6405 cgraph_get_node instead of cgraph_get_create_node.
6406
6407 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6408
6409 * cfgexpand.c (expand_debug_expr): Use
6410 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6411
6412 2011-04-15 Michael Matz <matz@suse.de>
6413
6414 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6415 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6416 * function.c (gimplify_parameters): Ditto.
6417 * gimplify.c (gimplify_vla_decl): Ditto.
6418
6419 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6420 (gimple_call_set_alloca_for_var): New inline function.
6421 (gimple_call_alloca_for_var_p): Ditto.
6422 * gimple.c (gimple_build_call_from_tree): Remember
6423 CALL_ALLOCA_FOR_VAR_P state.
6424 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6425
6426 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6427 calls if they were for VLA objects.
6428
6429 2011-04-15 Martin Jambor <mjambor@suse.cz>
6430
6431 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6432 of ADR_EXPRs.
6433
6434 2011-04-15 Martin Jambor <mjambor@suse.cz>
6435
6436 PR middle-end/48601
6437 * tree-emutls.c (lower_emutls_function_body): Call
6438 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6439 result is non-NULL.
6440
6441 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6442
6443 * c-decl.c (detect_field_duplicates): Call
6444 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6445
6446 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6447
6448 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6449 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6450 * ipa-pure-const.c (check_stmt): Call it.
6451 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6452
6453 2011-04-15 Richard Guenther <rguenther@suse.de>
6454
6455 PR tree-optimization/48290
6456 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6457 Properly decide inhibiting propagation based on the valueized
6458 operand. Do loop-closed SSA form preserving here ...
6459 (init_copy_prop): ... not here.
6460
6461 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6462
6463 PR target/48612
6464 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6465 (*ieee_smax<mode>3): Likewise.
6466
6467 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6468
6469 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6470 Replace match_operand with match_dup for the third operand in
6471 these expanders.
6472
6473 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6474
6475 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6476 to track processing of conditionals. Update all callers.
6477 (try_combine, simplify_if_then_else): Update.
6478
6479 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6480
6481 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6482 -fsched-pressure.
6483
6484 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6485
6486 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6487 instead of match_operand for operand 3.
6488
6489 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6490
6491 * recog.h (insn_operand_data): Add an "allows_mem" field.
6492 * genoutput.c (output_operand_data): Initialize it.
6493 * optabs.c (maybe_legitimize_operand_same_code): New function.
6494 (maybe_legitimize_operand): Use it when matching the original
6495 op->value.
6496
6497 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6498
6499 * gimplify.c: Fix issues in comments throughout.
6500 (voidify_wrapper_expr): Fix long line.
6501 (build_stack_save_restore): Likewise.
6502 (gimplify_loop_expr): Likewise.
6503 (gimplify_compound_lval): Likewise.
6504 (gimplify_init_ctor_eval): Likewise.
6505 (gimplify_modify_expr_rhs): Likewise.
6506 (omp_notice_threadprivate_variable): Likewise.
6507
6508 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6509
6510 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6511 original one if this is not a builtin function.
6512
6513 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6514
6515 PR target/48605
6516 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6517 offset it as needed based on top 2 bits in operands[3], change
6518 MEM mode to SFmode and mask those 2 bits away from operands[3].
6519
6520 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6521
6522 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6523 change from objc_declare_protocols() to objc_declare_protocol().
6524
6525 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6526
6527 * config/i386/sse.md (sse4_1): New mode attribute.
6528 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6529 avx_blend<ssemodesuffix><avxmodesuffix> and
6530 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6531 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6532 avx_blendv<ssemodesuffix><avxmodesuffix> and
6533 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6534 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6535 avx_dp<ssemodesuffix><avxmodesuffix> and
6536 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6537 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6538 (sse4_1_packusdw): Merge with *avx_packusdw.
6539 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6540 (sse4_1_pblendw): Merge with *avx_pblendw.
6541 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6542 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6543 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6544 VF mode iterator.
6545 (sse4_1_round<ssescalarmodesuffix>): Merge with
6546 *avx_round<ssescalarmodesuffix>.
6547 (aesenc): Merge with *avx_aesenc.
6548 (aesenclast): Merge with *avx_aesenclast.
6549 (aesdec): Merge with *avx_aesdec.
6550 (aesdeclast): Merge with *avx_aesdeclast.
6551 (pclmulqdq): Merge with *pclmulqdq.
6552 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6553 New predicate.
6554 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6555
6556 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6557
6558 PR middle-end/48608
6559 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6560 (align_local_variable): This. Update DECL_ALIGN.
6561 (add_stack_var): Updated.
6562 (expand_one_stack_var): Likewise.
6563
6564 2011-04-14 Richard Guenther <rguenther@suse.de>
6565
6566 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6567 Remove.
6568 (dse_initialize_block_local_data, dse_leave_block,
6569 record_voperand_set, get_stmt_uid): Likewise.
6570 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6571 (dse_optimize_stmt): Remove voperand set handling code.
6572 Simplify and improve to handle any kind of killing stmt.
6573 (dse_record_phi): Remove.
6574 (dse_enter_block): Simplify.
6575 (tree_ssa_dse): Likewise.
6576 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6577
6578 2011-04-14 Jan Hubicka <jh@suse.cz>
6579
6580 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6581 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6582 (cgraph_local_info): Remove inline_summary.
6583 * ipa-cp.c: Include ipa-inline.h.
6584 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6585 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6586 accesor.
6587 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6588 (input_overwrite_node): Do not set inline summary.
6589 (input_node): Do not stream inline summary.
6590 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6591 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6592 growth; we do not have inline parameters computed for that anyway.
6593 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6594 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6595 (inline_summary_t): New type and VECtor.
6596 (debug_inline_summary, dump_inline_summaries): Declare.
6597 (inline_summary): Use VOCtor.
6598 (estimate_edge_growth): Kill hack computing call stmt size directly.
6599 * lto-section-in.c (lto_section_name): Add inline section.
6600 * ipa-inline-analysis.c: Include lto-streamer.h
6601 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6602 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6603 (inline_summary_vec): Define.
6604 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6605 dump_inline_summaries): New functions.
6606 (estimate_function_body_sizes): Properly compute size/time of outgoing
6607 calls.
6608 (compute_inline_parameters): Alloc inline_summary; do not compute
6609 size/time of incomming calls.
6610 (estimate_edge_time): Avoid missing time summary hack.
6611 (inline_read_summary): Read inline summary info.
6612 (inline_write_summary): Write inline summary info.
6613 (inline_free_summary): Free all hooks and inline summary vector.
6614 * lto-streamer.h: Add LTO_section_inline_summary section.
6615 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6616 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6617
6618 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6619
6620 * tree-vectorizer.h (vect_strided_store_supported): Add a
6621 HOST_WIDE_INT argument.
6622 (vect_strided_load_supported): Likewise.
6623 (vect_permute_store_chain): Return void.
6624 (vect_transform_strided_load): Likewise.
6625 (vect_permute_load_chain): Delete.
6626 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6627 count argument. Check that the count is a power of two.
6628 (vect_strided_load_supported): Likewise.
6629 (vect_permute_store_chain): Return void. Update after above changes.
6630 Assert that the access is supported.
6631 (vect_permute_load_chain): Likewise.
6632 (vect_transform_strided_load): Return void.
6633 * tree-vect-stmts.c (vectorizable_store): Update calls after
6634 above interface changes.
6635 (vectorizable_load): Likewise.
6636 (vect_analyze_stmt): Don't check for strided powers of two here.
6637
6638 2011-04-14 Richard Guenther <rguenther@suse.de>
6639
6640 PR tree-optimization/48590
6641 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6642 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6643 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6644 BUILT_IN_STACK_SAVE.
6645 * tree-ssa-dce.c (propagate_necessity): Handle
6646 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6647
6648 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6649
6650 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6651 objc_declare_class.
6652
6653 2011-04-14 Richard Guenther <rguenther@suse.de>
6654
6655 * tree.h (get_object_alignment_1): Declare.
6656 * builtins.c (get_object_alignment_1): Split out worker from ...
6657 (get_object_alignment): ... here.
6658 * fold-const.c (get_pointer_modulus_and_residue): Use
6659 get_object_alignment_1.
6660
6661 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6662
6663 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6664 type parameter.
6665 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6666 parameter. Generalise code to handle arrays as well as vectors.
6667 (vect_setup_realignment): Update accordingly.
6668 * tree-vect-stmts.c (vectorizable_store): Likewise.
6669 (vectorizable_load): Likewise.
6670
6671 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6672
6673 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6674 within the per-copy loop.
6675
6676 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6677
6678 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6679 in the dump file.
6680
6681 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6682
6683 * doc/options.texi (Negative): Explicitly mention that the
6684 Negative chain must be circular.
6685
6686 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6687
6688 * function.h (block_chainon): Declare.
6689 * function.c (block_chainon): Define.
6690
6691 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6692 Eric Weddington <eric.weddington@atmel.com>
6693 Georg-Johann Lay <avr@gjlay.de>
6694
6695 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6696 New Includes
6697 (avr_init_builtins, avr_expand_builtin,
6698 avr_expand_delay_cycles, avr_expand_unop_builtin,
6699 avr_expand_binop_builtin ): New functions.
6700 (avr_builtin_id): New enum
6701 (struct avr_builtin_description): New struct
6702 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6703 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6704
6705 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6706 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6707 UNSPECV_DELAY_CYCLES): new enumeration values
6708 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6709 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6710 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6711 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6712 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6713 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6714 "fmulsu"): New insns
6715
6716 * config/avr/avr-c.c: fix line endings
6717 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6718 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6719 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6720 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6721 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6722
6723 * doc/extend.texi (AVR Built-in Functions): New node
6724 (Target Builtins): Add documentation of AVR
6725 built-in functions.
6726
6727 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6728
6729 PR target/44643
6730 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6731 alone. Error if non-const data has attribute progmem.
6732
6733 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6734
6735 * tree.h (struct tree_constructor): Include tree_typed instead of
6736 tree_common.
6737 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6738 TS_TYPED instead of TS_COMMON.
6739
6740 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6741
6742 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6743 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6744 (sse2_psadbw): Merge with *avx_psadbw.
6745 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6746 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6747 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6748 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6749 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6750 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6751 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6752 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6753 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6754 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6755 (ssse3_palignrti): Merge with *avx_palignrti.
6756
6757 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6758
6759 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6760 * tree-ssanames.c (fini_ssanames): VEC_free it.
6761 (make_ssa_name_fn): Update for VECness of free_ssanames.
6762 (release_ssa_name, release_dead_ssa_names): Likewise.
6763 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6764 tree_common.
6765 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6766 TS_TYPED instead of TS_COMMON.
6767
6768 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6769
6770 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6771 statistics_counter_event.
6772 * tree-ssa-copyrename.c (stats): Define.
6773 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6774 statistics_counter_event.
6775 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6776 (bswap_stats, widen_mul_stats): Define.
6777 (insert_reciprocals): Increment rdivs_inserted.
6778 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6779 rfuncs_inserted. Add calls to statistics_counter_event.
6780 (execute_cse_sincos_1): Increment inserted.
6781 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6782 statistics_counter_event.
6783 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6784 of bswap_stats. Add calls to statistics_counter_event.
6785 (convert_mult_to_widen): Increment widen_mults_inserted.
6786 (convert_plusminus_to_widen): Increment maccs_inserted.
6787 (convert_mult_to_fma): Increment fmas_inserted.
6788 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6789 calls to statistics_counter_event.
6790
6791 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6792
6793 PR rtl-optimization/48455
6794 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6795 `temp_costs->mem_cost'.
6796
6797 2011-04-13 Jan Hubicka <jh@suse.cz>
6798
6799 * ipa-inline.h: New file.
6800 * ipa-inline-analysis.c: New file. Broken out of ...
6801 * ipa-inline.c: ... this file; update toplevel comment;
6802 include ipa-inline.h
6803 (inline_summary): Move to ipa-inline.h
6804 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6805 ipa-inline-analysis.c.
6806 (cgraph_estimate_time_after_inlining): Rename to
6807 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6808 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6809 to estimate_edge_growth.
6810 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6811 rename to estimate_size_after_inlining.
6812 (cgraph_mark_inline_edge): Update for new naming convention.
6813 (cgraph_check_inline_limits): Likewise.
6814 (cgraph_edge_badness): Likewise.
6815 (cgraph_decide_recursive_inlining): Likewise.
6816 (cgraph_decide_inlining_of_small_functions): Likewise.
6817 (cgraph_decide_inlining_incrementally): Likewise.
6818 (cgraph_estimate_growth): Rename to estimate_growth; move to
6819 ipa-inline-analysis.c.
6820 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6821 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6822 (compute_inline_parameters): Likewise.
6823 (compute_inline_parameters_for_current): Likewise.
6824 (pass_inline_parameters): Likewise.
6825 (inline_indirect_intraprocedural_analysis): Likewise.
6826 (analyze_function): Rename to inline_analyze_function; likewise.
6827 (add_new_function): Move to ipa-inline-analysis.c.
6828 (inline_generate_summary): Likewise.
6829 (inline_read_summary): Likewise.
6830 (inline_write_summary): Likewise.
6831 * Makefile.in (ipa-inline-analysis.c): New file.
6832
6833 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6834
6835 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6836 * configure: Regenerate.
6837
6838 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6839
6840 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6841 instead of tree_common.
6842 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6843 Likewise.
6844 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6845 TS_TYPED rather than TS_COMMON.
6846 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6847
6848 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6849
6850 PR target/45263
6851 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6852 r20 around calls of __tablejump_elpm__
6853
6854 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6855
6856 PR middle-end/48591
6857 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6858 NULL.
6859 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6860
6861 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6862
6863 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6864 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6865 (cfi_vec): New typedef.
6866 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6867 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6868 (cie_cfi_vec): New static variable.
6869 (cie_cfi_head): Delete.
6870 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6871 declaration changed. Use vector rather than list operations.
6872 (new_cfi): Don't initialize the dw_cfi_next field.
6873 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6874 rather than list operations.
6875 (lookup_cfa): Use vector rather than list operations.
6876 (output_cfis): New argument upto. Accept a cfi_vec rather than
6877 a dw_cfi_ref list head as argument. All callers changed.
6878 Iterate over the vector using upto as a maximum index.
6879 (output_all_cfis): New static function.
6880 (output_fde): Use vector rather than list operations. Use the
6881 new upto argument for output_cfis rather than manipulating a
6882 list.
6883 (dwarf2out_begin_prologue): Change initializations to match
6884 new struct members.
6885 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6886 from the vector length rather than searching for the end of a list.
6887 Use output_all_cfis.
6888 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6889
6890 2011-04-13 Nick Clifton <nickc@redhat.com>
6891
6892 * config/rx/rx.md (movmemsi): Do not use this pattern when
6893 volatile pointers are involved.
6894
6895 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6896
6897 * config/i386/sse.md (pinsrbits): Remove.
6898 (sse2_packsswb): Merge with *avx_packsswb.
6899 (sse2_packssdw): Merge with *avx_packssdw.
6900 (sse2_packuswb): Merge with *avx_packuswb.
6901 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6902 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6903 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6904 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6905 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6906 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6907 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6908 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6909 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6910 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6911 (sse2_loadld): Merge with *avx_loadld.
6912 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6913 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6914 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6915 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6916 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6917
6918 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6919
6920 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6921 calling TREE_CHAIN.
6922 * print-tree.c (print_node): Likewise.
6923 * tree-inline.c (copy_tree_r): Likewise.
6924 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6925 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6926 instead of TS_COMMON.
6927 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6928 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6929 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6930 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6931 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6932 ...and these...
6933 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6934 * tree.h: ...here.
6935 (TREE_CHAIN): Check for a TS_COMMON structure.
6936 (TREE_TYPE): Check for a TS_TYPED structure.
6937
6938 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6939
6940 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6941 cgraph_get_create_node instead of cgraph_node.
6942
6943 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6944
6945 * c-parser.c (c_parser_initelt): Updated call to
6946 objc_build_message_expr.
6947 (c_parser_postfix_expression): Likewise.
6948
6949 2011-04-12 Kai Tietz <ktietz@redhat.com>
6950
6951 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6952 MASK_MS_BITFIELD_LAYOUT bit.
6953
6954 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6955
6956 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6957 assert it is always true.
6958 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6959 moves.
6960
6961 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6962
6963 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6964 compiling Objective-C to be more efficient.
6965
6966 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6967
6968 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6969 argv_copied.
6970
6971 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6972
6973 * recog.h, genoutput.c, optabs.c: Revert last patch.
6974
6975 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6976
6977 PR target/48090
6978 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6979
6980 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6981
6982 * recog.h (insn_operand_data): Add an "allows_mem" field.
6983 * genoutput.c (output_operand_data): Initialize it.
6984 * optabs.c (maybe_legitimize_operand_same_code): New function.
6985 (maybe_legitimize_operand): Use it when matching the original
6986 op->value.
6987
6988 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6989
6990 * genpreds.c (process_define_predicate): Move most processing
6991 to gensupport.c. Continue to validate the expression.
6992 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6993 (process_define_predicate): Move processing to gensupport.c.
6994 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6995 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6996 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6997 argument.
6998 (valid_predicate_name_p): New function, split out from old
6999 genpreds.c:process_define_predicate.
7000 (process_define_predicate): New function, combining code from
7001 old genpreds.c and genrecog.c functions.
7002 (process_rtx): Call it for DEFINE_PREDICATE and
7003 DEFINE_SPECIAL_PREDICATE.
7004
7005 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7006
7007 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7008 size of a '%A' memory reference.
7009 (T_DREG, T_QREG): New neon_builtin_type_bits.
7010 (arm_init_neon_builtins): Assert that the load and store operands
7011 are neon_struct_operands.
7012 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7013 (NEON_ARG_MEMORY): New builtin_arg.
7014 (neon_dereference_pointer): New function.
7015 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7016 Handle NEON_ARG_MEMORY.
7017 (arm_expand_neon_builtin): Update after above interface changes.
7018 Use NEON_ARG_MEMORY for loads and stores.
7019 * config/arm/predicates.md (neon_struct_operand): New predicate.
7020 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7021 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7022 (V_four_elem): Tweak formatting.
7023 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7024 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7025 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7026 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7027 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7028 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7029 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7030 Use %A in the output template.
7031 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7032 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7033 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7034 the width of the memory access. Remove post-increment.
7035 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7036
7037 2011-04-12 Nick Clifton <nickc@redhat.com>
7038
7039 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7040 instruction for interrupt handlers if the target is the basic V850
7041 architecture.
7042 (expand_epilogue): Likewise.
7043
7044 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7045
7046 PR rtl-optimization/48549
7047 * combine.c (propagate_for_debug): Also stop after BB_END of
7048 this_basic_block. Process LAST and just stop processing after it.
7049 (combine_instructions): If last_combined_insn has been deleted,
7050 set last_combined_insn to its PREV_INSN.
7051
7052 2011-04-12 Richard Guenther <rguenther@suse.de>
7053
7054 PR tree-optimization/46076
7055 * gimple.h (struct gimple_statement_call): Add fntype field.
7056 (gimple_call_fntype): Adjust.
7057 (gimple_call_set_fntype): New function.
7058 * gimple.c (gimple_build_call_1): Set the call function type.
7059 * gimplify.c (gimplify_call_expr): Preserve the function
7060 type the frontend used for the call.
7061 (gimplify_modify_expr): Likewise.
7062 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7063 function type.
7064 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7065 function type.
7066 * tree-ssa.c (useless_type_conversion_p): Function pointer
7067 conversions are useless.
7068
7069 2011-04-12 Martin Jambor <mjambor@suse.cz>
7070
7071 * cgraph.h (cgraph_node): Remove function declaration.
7072 (cgraph_create_node): Declare.
7073 (cgraph_get_create_node): Likewise.
7074 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7075 Updated all callers.
7076 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7077 the decl does not already exist. Call cgraph_get_create_node instead
7078 of cgraph_node.
7079 (cgraph_get_create_node): New function.
7080 (cgraph_same_body_alias): Update comment.
7081 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7082 assert it does not return NULL.
7083 (cgraph_update_edges_for_call_stmt): Likewise.
7084 (cgraph_clone_edge): Likewise.
7085 (cgraph_create_virtual_clone): Likewise.
7086 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7087 instead of cgraph_node.
7088 (cgraph_add_new_function): Call cgraph_create_node or
7089 cgraph_get_create_node instead of cgraph_node.
7090 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7091 instead of cgraph_node.
7092 (record_eh_tables): Likewise.
7093 (mark_address): Likewise.
7094 (mark_load): Likewise.
7095 (build_cgraph_edges): Call cgraph_get_create_node instead
7096 of cgraph_node.
7097 (rebuild_cgraph_edges): Likewise.
7098 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7099 instead of cgraph_node.
7100 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7101 cgraph_node.
7102 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7103 cgraph_create_node instead of cgraph_node.
7104 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7105 of cgraph_node.
7106 * lto-cgraph.c (input_node): Likewise.
7107 * lto-streamer-in.c (input_function): Likewise.
7108 * varasm.c (mark_decl_referenced): Likewise.
7109 (assemble_alias): Likewise.
7110
7111 2011-04-12 Martin Jambor <mjambor@suse.cz>
7112
7113 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7114 instead of cgraph_node and assert it does not return NULL.
7115 * lto-streamer-in.c (lto_read_body): Likewise.
7116 * omp-low.c (new_omp_context): Likewise.
7117 (create_task_copyfn): Likewise.
7118 * tree-emutls.c (lower_emutls_function_body): Likewise.
7119 * matrix-reorg.c (transform_allocation_sites): Likewise.
7120
7121 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7122
7123 PR c/48552
7124 * c-typeck.c (build_asm_expr): Error out on attempts to use
7125 void type outputs or inputs for constraints that allow reg or
7126 don't allow memory.
7127
7128 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7129 Richard Earnshaw <rearnsha@arm.com>
7130
7131 PR target/48250
7132 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7133 to use sign-magnitude offsets. Reject unsupported unaligned
7134 cases. Add detailed description in comments.
7135 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7136 condition from TARGET_32BIT to TARGET_ARM.
7137
7138 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7139
7140 * tree.h (struct typed_tree): New.
7141 (struct tree_common): Include it instead of tree_base.
7142 (TREE_TYPE): Update for new location of type field.
7143 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7144 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7145 (union tree_node): Add typed field.
7146 * treestruct.def (TS_TYPED): New.
7147 * lto-streamer.c (check_handled_ts_structures): Handle it.
7148 * tree.c (MARK_TS_TYPED): New macro.
7149 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7150
7151 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7152
7153 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7154 (force_nonfallthru): Do not alter the loop nest if no basic block
7155 was created.
7156
7157 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7158
7159 * config/i386/sse.md (VI): New mode iterator.
7160 (SSEMODEI): Remove.
7161 (AVX256MODEI): Ditto.
7162 (AVXMODEF4P): Ditto.
7163 (avxvecpsmode): Ditto.
7164 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7165 (sse2_andnot<mode>3): New expander.
7166 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7167 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7168 (<any_logic:code><mode>3): Use VI mode iterator.
7169 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7170 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7171 (*andnottf3): Handle AVX three-operand constraints.
7172 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7173
7174 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7175 Robert Millan <rmh@gnu.org>
7176
7177 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7178 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7179 GNU_USER_DYNAMIC_LINKER64): Define.
7180 (REG_NAME): Don't undefine.
7181 (MD_UNWIND_SUPPORT): Undefine.
7182 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7183 (REG_NAME): Don't undefine.
7184 (MD_UNWIND_SUPPORT): Undefine.
7185 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7186
7187 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7188
7189 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7190 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7191
7192 2011-04-11 Xinliang David Li <davidxl@google.com>
7193
7194 * value-profile.c (check_ic_target): New function.
7195 (gimple_ic_transform): Sanity check indirect call target.
7196 * gimple-low.c (gimple_check_call_args): Interface change.
7197 (gimple_check_call_matching_types): New function.
7198 * tree-inline.c (tree_can_inline_p): Call new function.
7199
7200 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7201
7202 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7203 tree-pretty-print.h & realmpfr.h.
7204
7205 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7206
7207 PR middle-end/48464
7208 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7209 (setup_allocno_and_important_classes): Ditto.
7210
7211 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7212
7213 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7214 GNU_USER_DYNAMIC_LINKER.
7215 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7216 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7217 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7218 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7219 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7220 GNU_USER_TARGET_OS_CPP_BUILTINS.
7221 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7222 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7223 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7224 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7225 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7226 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7227 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7228 GNU_USER_TARGET_OS_CPP_BUILTINS.
7229 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7230 GNU_USER_DYNAMIC_LINKER.
7231 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7232 GNU_USER_TARGET_OS_CPP_BUILTINS.
7233 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7234 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7235 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7236 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7237 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7238 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7239 GNU_USER_DYNAMIC_LINKER64): Remove.
7240 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7241 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7242 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7243 GNU_USER_DYNAMIC_LINKER.
7244 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7245 GNU_USER_TARGET_OS_CPP_BUILTINS.
7246 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7247 GNU_USER_TARGET_OS_CPP_BUILTINS.
7248 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7249 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7250 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7251 GNU_USER_TARGET_OS_CPP_BUILTINS.
7252 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7253 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7254 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7255 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7256 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7257 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7258 GNU_USER_DYNAMIC_LINKER.
7259 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7260 GNU_USER_TARGET_OS_CPP_BUILTINS.
7261 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7264 GNU_USER_DYNAMIC_LINKER.
7265 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7266 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7267 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7269 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7270 GNU_USER_DYNAMIC_LINKER.
7271 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7272 GNU_USER_DYNAMIC_LINKERN32.
7273 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7274 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7275 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7276 GNU_USER_DYNAMIC_LINKER32.
7277 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7278 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7279 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7280 GNU_USER_DYNAMIC_LINKER.
7281 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7282 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7283 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7285 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7286 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7287 GNU_USER_DYNAMIC_LINKER32.
7288 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7289 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7290 GNU_USER_DYNAMIC_LINKER.
7291 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7292 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7293 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7294 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7295 GNU_USER_DYNAMIC_LINKER64.
7296 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7298 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7299 GNU_USER_DYNAMIC_LINKER.
7300 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7301 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7302 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7303 GNU_USER_DYNAMIC_LINKER.
7304 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7306 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7307 GNU_USER_DYNAMIC_LINKER32.
7308 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7309 GNU_USER_DYNAMIC_LINKER64.
7310 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7311 GNU_USER_DYNAMIC_LINKER64.
7312 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7313 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7314 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7315 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7316 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7317
7318 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7319
7320 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7321 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7322 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7323 GNU_USER_DYNAMIC_LINKER.
7324 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7325 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7326 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7327 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7328 GNU_USER_DYNAMIC_LINKER64.
7329 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7330 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7331 GNU_USER_LINK_EMULATION.
7332 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7333 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7334 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7335 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7336 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7337 CPP_SPEC, CC1_SPEC): Remove.
7338 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7339 (GNU_USER_DYNAMIC_LINKER): Define.
7340 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7341 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7342 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7343 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7344 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7345 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7346 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7347 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7348 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7349 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7350 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7351 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7352 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7353 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7354 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7355 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7356 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7357 GNU_USER_DYNAMIC_LINKER.
7358 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7359 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7360 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7361 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7362 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7363 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7364 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7365 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7366 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7367 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7368
7369 2011-04-11 Kai Tietz <ktietz@redhat.com>
7370
7371 PR target/9601
7372 PR target/11772
7373 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7374 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7375 comment.
7376 (ix86_is_msabi_thiscall): Removed.
7377 (ix86_is_type_thiscall): Likewise.
7378 (ix86_get_callcvt): New function.
7379 (ix86_comp_type_attributes): Simplify check.
7380 (ix86_function_regparm): Use ix86_get_callcvt for calling
7381 convention attribute checks.
7382 (ix86_return_pops_args): Likewise.
7383 (ix86_static_chain): Likewise.
7384 (x86_this_parameter): Likewise.
7385 (x86_output_mi_thunk): Likewise.
7386 (ix86_function_type_abi): Optimize check for types without attributes.
7387 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7388 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7389 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7390 by flag-values.
7391 (IX86_BASE_CALLCVT): Helper macro.
7392 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7393 Use ix86_get_callcvt for calling convention attribute checks and avoid
7394 symbol-decoration for stdcall in TARGET_RTD case.
7395 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7396 Likewise.
7397 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7398 for declaration.
7399
7400 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7401
7402 * config/i386/sse.md (VI_128): New mode iterator.
7403 (VI12_128): Rename from SSEMODE12.
7404 (VI14_128): Rename from SSEMODE14.
7405 (VI124_128): New mode iterator.
7406 (VI24_128): Rename from SSEMODE248.
7407 (VI248_128): Rename from SSEMODE248.
7408 (SSEMODE124C8): Remove.
7409 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7410 (*sse2_<plusminus_insn><mode>3): Merge with
7411 *avx_<plusminus_insn><mode>3.
7412 (*mulv8hi3): Merge with *avx_mulv8hi3.
7413 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7414 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7415 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7416 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7417 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7418 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7419 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7420 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7421 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7422 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7423 (*<smaxmin:code>v8hi3): Ditto.
7424 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7425 (*<smaxmin:code>v16qi3): Ditto.
7426 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7427 (*sse2_eq<mode>3): Ditto.
7428 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7429 (*sse2_gt<mode>3): Ditto.
7430 (vcondv2di): Split out of vcond<mode>.
7431 (vconduv2di): Split out of vcondu<mode>.
7432
7433 2011-04-11 Richard Guenther <rguenther@suse.de>
7434
7435 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7436 before calling tree_low_cst.
7437
7438 2011-04-11 Richard Guenther <rguenther@suse.de>
7439
7440 * stor-layout.c (layout_type): Compute all array index size operations
7441 in the original type.
7442 (initialize_sizetypes): Add comment.
7443 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7444
7445 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7446
7447 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7448
7449 2011-04-11 Martin Jambor <mjambor@suse.cz>
7450
7451 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7452 of cgraph_node, handle NULL return value.
7453 (cgraph_global_info): Likewise.
7454 (cgraph_rtl_info): Likewise.
7455 * tree-inline.c (estimate_num_insns): Likewise.
7456 * gimplify.c (unshare_body): Likewise.
7457 (unvisit_body): Likewise.
7458 (gimplify_body): Likewise.
7459 * predict.c (optimize_function_for_size_p): Likewise.
7460 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7461 (call_may_clobber_ref_p_1): Likewise.
7462 * varasm.c (function_section_1): Likewise.
7463 (assemble_start_function): Likewise.
7464
7465 2011-04-11 Martin Jambor <mjambor@suse.cz>
7466
7467 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7468 of cgraph_node.
7469 * final.c (rest_of_clean_state): Likewise.
7470 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7471 * passes.c (pass_init_dump_file): Likewise.
7472 (execute_all_ipa_transforms): Likewise.
7473 (function_called_by_processed_nodes_p): Likewise.
7474 * predict.c (maybe_hot_frequency_p): Likewise.
7475 (probably_never_executed_bb_p): Likewise.
7476 (compute_function_frequency): Likewise.
7477 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7478 (unnest_nesting_tree_1): Likewise.
7479 (lower_nested_functions): Likewise.
7480 * tree-optimize.c (execute_fixup_cfg): Likewise.
7481 (tree_rest_of_compilation): Likewise.
7482 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7483 * tree-sra.c (ipa_early_sra): Likewise.
7484 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7485 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7486 * ipa.c (record_cdtor_fn): Likewise.
7487 * ipa-inline.c (cgraph_early_inlining): Likewise.
7488 (compute_inline_parameters_for_current): Likewise.
7489 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7490 * ipa-pure-const.c (local_pure_const): Likewise.
7491 * ipa-split.c (split_function): Likewise.
7492 (execute_split_functions): Likewise.
7493 * cgraphbuild.c (build_cgraph_edges): Likewise.
7494 (rebuild_cgraph_edges): Likewise.
7495 (cgraph_rebuild_references): Likewise.
7496 (remove_cgraph_callee_edges): Likewise.
7497 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7498 (verify_cgraph_node): Likewise.
7499 (cgraph_analyze_functions): Likewise.
7500 (cgraph_preserve_function_body_p): Likewise.
7501 (save_inline_function_body): Likewise.
7502 (save_inline_function_body): Likewise.
7503 * tree-inline.c (copy_bb): Likewise.
7504 (optimize_inline_calls): Likewise.
7505
7506 2011-04-11 Martin Jambor <mjambor@suse.cz>
7507
7508 PR tree-optimization/48195
7509 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7510 ipa_check_create_edge_args.
7511 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7512 ipa_check_create_edge_args.
7513 * ipa-inline.c (inline_generate_summary): Do not call
7514 ipa_check_create_node_params and ipa_check_create_edge_args.
7515 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7516 ipa_check_create_edge_args.
7517
7518 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7519
7520 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7521 instead of loop.
7522 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7523 * function.c (record_hard_reg_sets): Likewise.
7524 * ira.c (compute_regs_asm_clobbered): Likewise.
7525 * sched-deps.c (sched_analyze_1): Likewise.
7526 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7527
7528 2011-04-09 Xinliang David Li <davidxl@google.com>
7529
7530 PR tree-optimization/PR48484
7531 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7532 has_valid_pred lazily
7533
7534 2011-04-09 Duncan Sands <baldrick@free.fr>
7535
7536 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7537
7538 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7539
7540 * combine.c (combine_validate_cost): Adjust comments. Set registered
7541 cost of I0 to zero at the end, if any.
7542
7543 2011-04-08 Xinliang David Li <davidxl@google.com>
7544
7545 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7546 to insane profile data.
7547
7548 2011-04-08 Xinliang David Li <davidxl@google.com>
7549
7550 * ipa-cp.c (ipcp_update_profiling): Correct
7551 negative scale factor due to insane profile data.
7552
7553 2011-04-08 Xinliang David Li <davidxl@google.com>
7554
7555 * final.c (dump_basic_block_info): New function.
7556 (final): Dump basic block.
7557 (final_scan_insn): Remove old dump.
7558
7559 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7560
7561 PR target/47829
7562 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7563 crtbegin/crtend.
7564
7565 2011-04-08 Michael Matz <matz@suse.de>
7566
7567 PR middle-end/48389
7568 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7569 functions.
7570 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7571 * rtl.h (rebuild_jump_labels_chain): Declare.
7572 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7573 insns inserted on edges.
7574
7575 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7576
7577 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7578 * config/arm/arm-arches.def: New.
7579 * config/arm/arm-opts.h: New.
7580 * config/arm/genopt.sh: New.
7581 * config/arm/arm-tables.opt: New (generated).
7582 * config/arm/arm.c (arm_handle_option, arm_target_help,
7583 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7584 (all_architectures): Get most table contents from arm-arches.def.
7585 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7586 arm_selected_tune here.
7587 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7588 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7589 (march=, mcpu=, mtune=): Use Enum and Var.
7590 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7591 (arm.o): Update dependencies.
7592
7593 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7594
7595 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7596 of header_file.
7597 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7598 (write_typed_alloc_defns): Likewise.
7599 (main): Calls write_typed_alloc_defns with output_header.
7600
7601 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7602
7603 PR inline-asm/48435
7604 * ira-color.c (setup_profitable_hard_regs): Add comments.
7605 Don't take prohibited hard regs into account.
7606 (setup_conflict_profitable_regs): Rename to
7607 get_conflict_profitable_regs.
7608 (check_hard_reg_p): Check prohibited hard regs.
7609
7610 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7611
7612 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7613 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7614 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7615
7616 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7617
7618 PR target/48366
7619 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7620 move from floating point to shift amount register.
7621 (emit_move_sequence): Remove secondary reload support for floating
7622 point to shift amount amount register copies.
7623 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7624 amount register copies.
7625 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7626 register, return false if mode isn't a scalar integer mode.
7627 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7628
7629 2011-04-08 Richard Guenther <rguenther@suse.de>
7630
7631 * gimple.c (gimple_call_flags): Remove kludge.
7632
7633 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7634
7635 * sel-sched.c (sel_region_init): Move call to
7636 sel_setup_region_sched_flags after setup_current_loop_nest.
7637
7638 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7639
7640 PR rtl-optimization/48272
7641 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7642 init_insn_reg_pressure_info. Adjust a caller.
7643 * sched-int.h (init_insn_reg_pressure_info): Declare.
7644 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7645 when sched-pressure is enabled.
7646
7647 2011-04-08 Richard Guenther <rguenther@suse.de>
7648
7649 * gimple.c (gimple_set_modified): Do not queue calls to
7650 MODIFIED_NORETURN_CALLS here ...
7651 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7652
7653 2011-04-08 Richard Guenther <rguenther@suse.de>
7654
7655 PR lto/48467
7656 * toplev.c (lang_dependent_init): Do not open asm_out_file
7657 in WPA mode, nor perform debug machinery initialization.
7658 (finalize): Do not unlink asm_out_file in WPA mode.
7659
7660 2011-04-08 Richard Guenther <rguenther@suse.de>
7661
7662 * gimple.h (gimple_call_fntype): New function.
7663 (gimple_call_return_type): Use it.
7664 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7665 * gimple-low.c (gimple_check_call_args): Likewise.
7666 * gimple.c (gimple_call_flags): Likewise.
7667 (gimple_call_arg_flags): Likewise.
7668 (gimple_call_return_flags): Likewise.
7669 * tree-cfg.c (verify_gimple_call): Likewise.
7670 (do_warn_unused_result): Likewise.
7671 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7672 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7673
7674 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7675
7676 PR rtl-optimization/48235
7677 * sel-sched.c (code_motion_process_successors): Recompute the last
7678 insn in basic block if control flow changed.
7679 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7680 Update condition for ilist_remove.
7681
7682 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7683
7684 PR rtl-optimization/48302
7685 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7686 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7687 it to record added preheader blocks.
7688 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7689 on to sel_add_loop_preheaders.
7690 (sel_region_init): Move call to setup_current_loop_nest after
7691 sel_init_bbs.
7692
7693 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7694
7695 PR target/48273
7696 * cfgloop.h (loop_has_exit_edges): New helper.
7697 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7698 non-clonable.
7699 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7700 that have no exit edges.
7701
7702 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7703
7704 PR rtl-optimization/48442
7705 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7706 all callers. Adjust assert.
7707
7708 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7709
7710 PR tree-optimization/48377
7711 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7712 is_packed to true even for types with smaller TYPE_ALIGN than
7713 TYPE_SIZE.
7714
7715 2011-04-08 Richard Guenther <rguenther@suse.de>
7716
7717 PR bootstrap/48513
7718 * doc/tm.texi: Re-generate.
7719
7720 2011-04-08 Wei Guozhi <carrot@google.com>
7721
7722 PR target/47855
7723 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7724 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7725 * config/arm/arm.md (*push_multi): Change the length computation to
7726 call a C function.
7727
7728 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7729
7730 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7731 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7732 * doc/tm.texi: Regenerate.
7733 * system.h (ASM_OUTPUT_BSS): Poison.
7734 * varasm.c (asm_output_bss): Remove function.
7735 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7736
7737 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7738 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7739 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7740 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7741 Likewise.
7742 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7743 Likewise.
7744 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7745 Likewise.
7746 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7747
7748 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7749
7750 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7751 EnumValue lines.
7752
7753 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7754
7755 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7756 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7757 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7758 OPT_mcpu32.
7759 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7760 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7761 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7762 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7763 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7764 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7765 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7766 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7767 options. Don't map other m68k options manually. Don't handle
7768 old-style options as canonical.
7769 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7770 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7771
7772 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7773
7774 * basic-block.h (force_nonfallthru): Move to...
7775 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7776 (force_nonfallthru): ...here.
7777 * cfghooks.c (force_nonfallthru): New function.
7778 * cfgrtl.c (force_nonfallthru): Rename into...
7779 (rtl_force_nonfallthru): ...this.
7780 (commit_one_edge_insertion): Do not set AUX field.
7781 (commit_edge_insertions): Do not discover new basic blocks.
7782 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7783 (cfg_layout_rtl_cfg_hooks): Likewise.
7784 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7785 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7786 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7787
7788 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7789
7790 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7791 Remove macros.
7792
7793 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7794
7795 * config/i386/sse.md: Update copyright year.
7796 (avxcvtvecmode): Remove.
7797 (sse_movhlps): Merge with *avx_movhlps.
7798 (sse_movlhps): Merge with *avx_movlhps.
7799 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7800 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7801 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7802 (sse_loadhps): Merge with *avx_loadhps.
7803 (sse_storelps): Merge with *avx_storelps.
7804 (sse_loadlps): Merge with *avx_loadlps.
7805 (sse_movss): Merge with *avx_movss.
7806 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7807 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7808 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7809 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7810 (vec_set<mode>_0): Ditto.
7811 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7812 (sse4_1_insertps): Merge with *avx_insertps.
7813 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7814 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7815 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7816 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7817 (sse2_storehpd): Merge with *avx_storehpd.
7818 (sse2_loadhpd): Merge with *avx_loadhpd.
7819 (sse2_loadlpd): Merge with *avx_loadlpd.
7820 (sse2_movsd): Merge with *avx_movsd.
7821 (*vec_concatv2df): Merge with *vec_concatv2df.
7822
7823 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7824
7825 PR debug/48343
7826 * combine.c (combine_instructions): Add last_combined_insn,
7827 update it if insn is after it, pass it to all try_combine calls.
7828 (try_combine): Add last_combined_insn parameter, pass it instead of
7829 i3 to propagate_for_debug.
7830
7831 2011-04-07 Nick Clifton <nickc@redhat.com>
7832
7833 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7834 to handle MDR <-> data register transfers.
7835 (movhi_internal): Likewise.
7836
7837 2011-04-07 Alan Modra <amodra@gmail.com>
7838
7839 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7840 previous stack info.
7841
7842 2011-04-07 Tom de Vries <tom@codesourcery.com>
7843
7844 PR target/43920
7845 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7846 flow_find_cross_jump. Swap variables to implement backward replacement.
7847 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7848
7849 2011-04-07 Tom de Vries <tom@codesourcery.com>
7850
7851 PR target/43920
7852 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7853 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7854 and bb2.
7855 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7856 src1 or src2. Redirect edges to the last basic block. Update
7857 frequency and count on multiple basic blocks in case of fallthru.
7858
7859 2011-04-07 Tom de Vries <tom@codesourcery.com>
7860
7861 PR target/43920
7862 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7863 function.
7864 (old_insns_match_p): Change return type. Replace return false/true
7865 with return dir_none/dir_both. Use can_replace_by.
7866 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7867 direction from dir_p. Register replacement direction in dir, last_dir
7868 and afterlast_dir. Handle new return type of old_insns_match_p using
7869 merge_dir. Return replacement direction in dir_p.
7870 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7871 return type of old_insns_match_p.
7872 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7873 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7874 flow_find_cross_jump.
7875 * basic-block.h (enum replace_direction): New type.
7876 (flow_find_cross_jump): Add parameter to declaration.
7877
7878 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7879
7880 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7881 (AVXMODEDCVTPS2DQ): Ditto.
7882 (VEC_FLOAT_MODE): Ditto.
7883 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7884 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7885 (<any_logic:code><mode>3): Use VF mode iterator.
7886 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7887 Use VF mode iterator.
7888 (copysign<mode>3): Use VF mode iterator.
7889 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7890 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7891 (*<any_logic:code><MODEF:mode>3): Merge with
7892 *avx_<any_logic:code><MODEF:mode>3.
7893 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7894 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7895 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7896 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7897 (sse2_cvtdq2ps): Use %v modifier.
7898 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7899 (avx_cvtps2dq<avxmodesuffix>): Remove.
7900 (sse2_cvtps2dq): Use %v modifier.
7901 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7902 (avx_cvttps2dq<avxmodesuffix>): Remove.
7903 (sse2_cvttps2dq): Use %v modifier.
7904 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7905 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7906 (sse2_cvtsd2siq): Fix insn template.
7907 (sse2_cvtsd2siq_2): Ditto.
7908 (sse2_cvttsd2siq): Ditto.
7909 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7910 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7911
7912 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7913
7914 * gcov-io.c: Use GCC Runtime Library Exception.
7915
7916 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7917
7918 PR debug/48466
7919 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7920 as base_reg whatever register reg has been eliminated to, instead
7921 of hardcoding STACK_POINTER_REGNUM.
7922
7923 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7924
7925 * doc/tm.texi.in: Document C target hooks as separate from general
7926 target hooks.
7927 * doc/tm.texi: Regenerate.
7928 * genhooks.c (struct hook_desc): Add docname field.
7929 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7930 docname field.
7931 (hook_array): Include c-target.def.
7932 (emit_documentation): Use docname field in output.
7933 (emit_init_macros): Take docname argument. Only emit definitions
7934 for hooks matching docname.
7935 (main): Expect additional arguments in all cases. Pass argument
7936 to emit_init_macros.
7937 * target.def: Move initial macro definitions and comments to
7938 target-hooks-macros.h.
7939 (gcc_targetcm): Move to c-family/c-target.def.
7940 * target.h (targetcm): Move declaration to c-family/c-target.h.
7941 * targhooks.c (default_handle_c_option): Move to
7942 c-family/c-opts.c.
7943 * targhooks.h (default_handle_c_option): Move declaration to
7944 c-family/c-common.h.
7945 * target-hooks-macros.h: New file.
7946 * config.gcc (target_has_targetcm): Define and use to add to
7947 c_target_objs and cxx_target_objs.
7948 * config/default-c.c: New file.
7949 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7950 of target.h and target-def.h.
7951 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7952 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7953 darwin_check_cfstring_format_arg): Make static.
7954 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7955 TARGET_STRING_OBJECT_REF_TYPE_P,
7956 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7957 * config/darwin-protos.h (darwin_objc_construct_string,
7958 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7959 declare.
7960 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7961 TARGET_STRING_OBJECT_REF_TYPE_P,
7962 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7963 * config/t-darwin (darwin-c.o): Update dependencies.
7964 * system.h (TARGET_HAS_TARGETCM): Poison.
7965 * Makefile.in (TARGET_H): Update.
7966 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7967 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7968 (default-c.o): New target.
7969 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7970 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7971 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7972 c-target.def.
7973 (build/genhooks.o): Update dependencies.
7974
7975 2011-04-06 Richard Guenther <rguenther@suse.de>
7976
7977 * ipa-inline.c (enum inlining_mode): Remove.
7978 (cgraph_flatten): Use some other token.
7979 (cgraph_edge_early_inlinable_p): New function, split out from ...
7980 (cgraph_perform_always_inlining): New function, split out from ...
7981 (cgraph_decide_inlining_incrementally): ... here.
7982 (cgraph_mark_inline_edge): Adjust.
7983 (cgraph_early_inlining): Re-structure.
7984 (pass_early_inline): Require SSA form.
7985
7986 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7987 Julian Brown <julian@codesourcery.com>
7988 Mark Shinwell <shinwell@codesourcery.com>
7989
7990 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7991 LO_REGS only for Thumb-1.
7992 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7993 be used in short instructions when optimising for size on Thumb-2.
7994
7995 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7996
7997 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7998 associated with user returns to be preserved.
7999
8000 2011-04-06 Tristan Gingold <gingold@adacore.com>
8001
8002 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8003 symbol_queue_size, DBXOUT_DECR_NESTING,
8004 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8005 if XCOFF_DEBUGGING_INFO.
8006
8007 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8008
8009 * config/i386/i386.md (attribute isa): New.
8010 (attribute enabled): New.
8011 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8012 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8013 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8014 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8015 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8016 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8017 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8018 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8019
8020 * config/i386/sse.md (VF): New mode iterator.
8021 (VF1): Ditto.
8022 (VF2): Ditto.
8023 (VF_128): Ditto.
8024 (SSEMODEF4): Remove.
8025 (attribute sse): Handle V8SF and V4DF modes.
8026 (<absneg:code><mode>2): Use VF mode iterator.
8027 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8028 mode iterator.
8029 (<plusminus_insn><mode>3): Use VF mode iterator.
8030 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8031 Use VF mode iterator.
8032 (<sse>_vm<plusminus_insn><mode>3): Merge with
8033 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8034 (mul<mode>3): Use VF mode iterator.
8035 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8036 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8037 mode iterator.
8038 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8039 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8040 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8041 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8042 mode iterator.
8043 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8044 Use VF1 mode iterator.
8045 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8046 (sqrt<VF2:mode>2): New expander.
8047 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8048 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8049 and sqrtv2df2. Use VF mode iterator.
8050 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8051 mode iterator.
8052 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8053 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8054 Use VF1 mode iterator.
8055 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8056 (<smaxmin:code><mode>3): Use VF mode iterator.
8057 (*<smaxmin:code><mode>3_finite): Merge with
8058 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8059 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8060 (<sse>_vm<smaxmin:code><mode>2): Merge with
8061 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8062 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8063 mode iterator.
8064 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8065 mode iterator.
8066 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8067 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8068 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8069 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8070 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8071 VF mode iterator.
8072 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8073 Use VF_128 mode iterator.
8074 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8075 mode iterator.
8076 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8077 VF_128 mode iterator.
8078 (vcond<mode>): Use VF mode iterator.
8079 * config/i386/predicates.md (sse_comparison_operator): Merge with
8080 avx_comparison_float_operator. Do not declare as special_predicate.
8081 * config/i386/i386.c (struct builtin_description): Update for renamed
8082 compare patterns.
8083 (ix86_expand_args_builtin): Ditto.
8084 (ix86_expand_sse_compare_mask): Ditto.
8085
8086 2011-04-06 Richard Guenther <rguenther@suse.de>
8087
8088 * tree-inline.c (estimate_num_insns): For calls simply account
8089 for all passed arguments and a used return value.
8090
8091 2011-04-06 Richard Guenther <rguenther@suse.de>
8092
8093 PR tree-optimization/47663
8094 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8095 call_stmt_time fields.
8096 (cgraph_edge_inlinable_p): Declare.
8097 (cgraph_edge_recursive_p): New inline function.
8098 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8099 (cgraph_clone_edge): Copy it.
8100 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8101 Account for call stmt time.
8102 (cgraph_estimate_time_after_inlining): Take edge argument.
8103 (cgraph_estimate_edge_growth): Account call stmt size.
8104 (cgraph_estimate_size_after_inlining): Take edge argument.
8105 (cgraph_mark_inline_edge): Adjust.
8106 (cgraph_check_inline_limits): Likewise.
8107 (cgraph_recursive_inlining_p): Remove.
8108 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8109 (cgraph_decide_recursive_inlining): Take edge argument and
8110 adjust.
8111 (cgraph_decide_inlining_of_small_functions): Do not avoid
8112 diags for recursive inlining here.
8113 (cgraph_flatten): Adjust.
8114 (cgraph_decide_inlining_incrementally): Likewise.
8115 (estimate_function_body_sizes): Remove call cost handling.
8116 (compute_inline_parameters): Initialize caller edge call costs.
8117 (cgraph_estimate_edge_growth): New function.
8118 (cgraph_estimate_growth): Use it.
8119 (cgraph_edge_badness): Likewise.
8120 (cgraph_check_inline_limits): Take an edge argument.
8121 (cgraph_decide_inlining_of_small_functions): Adjust.
8122 (cgraph_decide_inlining): Likewise.
8123 * tree-inline.c (estimate_num_insns): Only account for call
8124 return value if it is used.
8125 (expand_call_inline): Avoid diagnostics on recursive inline
8126 functions here.
8127 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8128 (input_edge): Input edge call costs.
8129
8130 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8131
8132 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8133
8134 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8135
8136 * doc/invoke.texi (Spec Files): Fix typo.
8137
8138 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8139
8140 * profile.c (branch_prob): Move declaration of local variable. Remove
8141 obsolete ??? comment. Expand the location explicitly instead of using
8142 the LOCATION_FILE and LOCATION_LINE macros.
8143
8144 2011-04-06 Wei Guozhi <carrot@google.com>
8145
8146 PR target/47855
8147 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8148 (arm_cond_branch): Likewise.
8149 (arm_cond_branch_reversed): Likewise.
8150 (arm_jump): Likewise.
8151 (push_multi): Likewise.
8152 * config/arm/constraints.md (Py): New constraint.
8153
8154 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8155
8156 PR bootstrap/48471
8157 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8158 Move these...
8159 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8160 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8161 #ifdef DBX_DEBUGGING_INFO.
8162
8163 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8164
8165 PR bootstrap/48403
8166 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8167 if old and new states differ.
8168
8169 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8170
8171 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8172 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8173 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8174 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8175 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8176 mcfv4e): Use Alias.
8177 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8178 ColdFire options to -mcpu= options.
8179
8180 2011-04-05 Jeff Law <law@redhat.com>
8181
8182 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8183 check if BB is a successor of LOOP->header and return
8184 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8185
8186 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8187
8188 * cprop.c (struct reg_use): Remove.
8189 (reg_use_table): Make an array of RTX.
8190 (find_used_regs, constprop_register, local_cprop_pass,
8191 bypass_block): Simplify users of reg_use_table.
8192 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8193 on one of the uses found by find_used_regs.
8194
8195 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8196
8197 PR bootstrap/48469
8198 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8199 declaration.
8200
8201 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8202
8203 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8204 as an rtx.
8205 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8206
8207 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8208
8209 PR middle-end/48441
8210 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8211
8212 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8213
8214 * combine.c: Include obstack.h.
8215 (struct insn_link): Define.
8216 (uid_log_links): Adjust type.
8217 (FOR_EACH_LOG_LINK): New macro.
8218 (insn_link_obstack): Declare.
8219 (alloc_insn_link): Define.
8220 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8221 type of link variables.
8222 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8223 (try_combine, record_promoted_values, distribute_notes): Likewise.
8224 (distribute_links): Likewise. Tweak prototype.
8225 (clear_log_links): Delete.
8226 (adjust_for_new_dest): Call alloc_insn_link.
8227 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8228
8229 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8230
8231 * gcse.c (modify_mem_list): Convert to an array of VECs.
8232 (canon_modify_mem_list, compute_transp): Tweak formatting.
8233 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8234 (load_killed_in_block_p): Likewise.
8235 (record_last_mem_set_info): Likewise.
8236 (clear_modify_mem_tables): Likewise.
8237
8238 2011-04-05 Tom de Vries <tom@codesourcery.com>
8239
8240 PR middle-end/48461
8241 * function.c (emit_use_return_register_into_block): Only define if
8242 HAVE_return.
8243
8244 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8245
8246 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8247
8248 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8249
8250 * config/rx/rx-opts.h: New.
8251 * config/rx/rx.c (rx_cpu_type): Remove.
8252 (rx_handle_option): Don't assert that global structures are in
8253 use. Access variables via opts pointer. Defer most handling of
8254 OPT_mint_register_. Use error_at.
8255 (rx_option_override): Handle deferred OPT_mint_register_ here.
8256 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8257 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8258 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8259 (rx_cpu_types): New Enum and EnumValue entries.
8260 (mint-register=): Use Defer and use Var accordingly.
8261
8262 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8263
8264 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8265 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8266 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8267 Move these...
8268 (debug_free_queue, debug_nesting, symbol_queue_index):
8269 ...and these...
8270 * dbxout.c: ...to here. Make static.
8271
8272 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8273
8274 * gcse.c (modify_pair): Define. Define a VEC of it.
8275 (canon_modify_mem_list): Convert to an array of VECs.
8276 (free_insn_expr_list_list): Delete.
8277 (clear_modify_mem_tables): Call VEC_free instead.
8278 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8279 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8280 (canon_list_insert, compute_transp): Likewise.
8281
8282 2011-04-05 Tom de Vries <tom@codesourcery.com>
8283
8284 PR target/43920
8285 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8286 for size.
8287
8288 2011-04-05 Tom de Vries <tom@codesourcery.com>
8289
8290 PR target/43920
8291 * function.c (emit_use_return_register_into_block): New function.
8292 (thread_prologue_and_epilogue_insns): Use
8293 emit_use_return_register_into_block.
8294
8295 2011-04-05 Tom de Vries <tom@codesourcery.com>
8296
8297 PR target/43920
8298 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8299 insn.
8300
8301 2011-04-05 Tom de Vries <tom@codesourcery.com>
8302
8303 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8304
8305 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8306
8307 * config/arm/arm.md (define_constants for unspec): Replace with
8308 define_c_enum.
8309 (define_constants for unspecv): Replace with define_c_enum.
8310 * config/arm/neon.md (define_constants for unspec): Replace with
8311 define_c_enum.
8312
8313 2011-04-04 Richard Henderson <rth@redhat.com>
8314
8315 PR bootstrap/48400
8316 * dwarf2out.c (output_line_info): Always emit line info from
8317 at least one section.
8318 (dwarf2out_init): Create text_section_line_info here ...
8319 (set_cur_line_info_table): ... not here.
8320
8321 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8322
8323 PR target/48380
8324 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8325 not called.
8326
8327 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8328
8329 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8330
8331 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8332 (expr_equiv_p): Remove.
8333 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8334 (hash_scan_set): Update call to insert_set_in_table.
8335 (dump_hash_table): Dump <dest, src> pair.
8336 (lookup_set): Simplify. Lookup <dest, src> pair.
8337 (compute_transp): Remove, fold heavily simplified code into...
8338 (compute_local_properties): ...here. Expect COMP and TRANSP
8339 unconditionally.
8340 (find_avail_set): Take set directly from struct expr.
8341 (find_bypass-set): Likewise.
8342 (bypass_block): Likewise.
8343 (cprop_insn): Likewise. Remove redundant INSN_P test.
8344
8345 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8346 checks on form of COND from find_implicit_sets to here.
8347 (find_implicit_sets): Cleanup control flow. Split critical edges
8348 if it exposes implicit sets. Allocate/resize implicit_sets as
8349 necessary.
8350 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8351 changed something. Run df_analyze after find_implicit_sets if any
8352 edges were split. Do not allocate implicit_sets here.
8353
8354 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8355 (gcse_obstack): Renamed to cprop_obstack.
8356 (GNEW, GNEWVEC, GNEWVAR): Remove.
8357 (gmalloc): Remove.
8358 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8359 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8360 (gcse_alloc): Likewise, and rename to cprop_alloc.
8361 (alloc_gcse_men, free_gcse_mem): Remove.
8362 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8363 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8364 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8365
8366 * cprop.c (oprs_not_set_p): Remove.
8367 (mark_set, mark_clobber): Remove.
8368 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8369 (reg_not_set_p): New function.
8370 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8371 (cprop_insn): Likewise.
8372 (cprop_jump): Use FOR_EACH_EDGE.
8373
8374 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8375
8376 PR bootstrap/48403
8377 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8378 (rank_for_schedule): Use scheduled_insns vector instead of
8379 last_scheduled_insn.
8380 (ok_for_early_queue_removal): Likewise.
8381 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8382 we have a dbg_cnt.
8383 (choose_ready): Likewise.
8384 (commit_schedule): Use VEC_iterate.
8385 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8386 a dbg_cnt, use it and ensure the first insn is in the ready list.
8387 (haifa_sched_init): Allocate scheduled_insns.
8388 (sched_extend_ready_list): Don't allocate it; reserve space.
8389 (haifa_sched_finish): Free it.
8390
8391 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8392
8393 * optc-gen.awk: Always remove type from Variable entry before
8394 recording in var_seen.
8395
8396 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8397
8398 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8399 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8400 call to tidy_fallthru_edges.
8401
8402 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8403
8404 * doc/options.texi (ToLower): Document.
8405 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8406 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8407 * opts.h (cl_option): Add cl_tolower field.
8408 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8409 arguments with lowercase strings.
8410 * config/rx/rx.opt (mcpu=): Add ToLower.
8411 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8412 argument.
8413
8414 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8415
8416 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8417
8418 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8419
8420 * config/vax/vax.c: Include reload.h.
8421
8422 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8423
8424 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8425 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8426 (sparc_preferred_reload_class): New function.
8427
8428 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8429
8430 PR debug/48401
8431 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8432 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8433
8434 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8435
8436 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8437 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8438
8439 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8440
8441 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8442 (ASM_OUTPUT_ALIGNED_BSS): Define.
8443
8444 2011-04-03 Michael Matz <matz@suse.de>
8445
8446 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8447 and next_slot members.
8448 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8449 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8450 (lto_streamer_cache_append): Declare.
8451 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8452 unsigned index, remove offset parameter, ensure that we append
8453 or update existing entries.
8454 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8455 parameter, update next_slot for append.
8456 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8457 parameter.
8458 (lto_streamer_cache_insert_at): Likewise.
8459 (lto_streamer_cache_append): New function.
8460 (lto_streamer_cache_lookup): Use unsigned index.
8461 (lto_streamer_cache_get): Likewise.
8462 (lto_record_common_node): Don't test tree_node_can_be_shared.
8463 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8464 (lto_streamer_cache_delete): Don't free offsets member.
8465 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8466 (lto_output_string_with_length): Use lto_output_data_stream.
8467 (lto_output_tree_header): Remove ix parameter, don't write it.
8468 (lto_output_builtin_tree): Likewise.
8469 (lto_write_tree): Adjust callers to above, don't track and write
8470 offset, write unsigned index.
8471 (output_unreferenced_globals): Don't emit all global vars.
8472 (write_global_references): Use unsigned indices.
8473 (lto_output_decl_state_refs): Likewise.
8474 (write_symbol): Likewise.
8475 * lto-streamer-in.c (lto_input_chain): Move earlier.
8476 (input_function): Use unsigned index.
8477 (input_alias_pairs): Don't read and then ignore all global vars.
8478 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8479 don't pass it back, use lto_streamer_cache_append.
8480 (lto_register_var_decl_in_symtab): Use unsigned index.
8481 (lto_register_function_decl_in_symtab): Likewise.
8482 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8483 index.
8484 (lto_get_builtin_tree): Don't read index, use
8485 lto_streamer_cache_append.
8486 (lto_read_tree): Adjust call to lto_materialize_tree.
8487
8488 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8489 don't use function calls in arguments to MIN.
8490
8491 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8492 twice.
8493
8494 * gimple.c (gimple_type_leader_entry): Mark deletable.
8495
8496 2011-04-03 Alan Modra <amodra@gmail.com>
8497
8498 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8499
8500 2011-04-03 Michael Matz <matz@suse.de>
8501
8502 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8503 an integer.
8504 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8505
8506 2011-04-03 Michael Matz <matz@suse.de>
8507
8508 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8509 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8510 without function context.
8511 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8512 current_function_decl and cfun.
8513
8514 2011-04-03 Michael Matz <matz@suse.de>
8515
8516 * tree.c (decl_init_priority_insert): Don't create entry for
8517 default priority.
8518 (decl_fini_priority_insert): Ditto.
8519 (fields_compatible_p, find_compatible_field): Remove.
8520 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8521 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8522
8523 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8524
8525 * combine.c (try_combine): Remove useless local variable.
8526
8527 2011-04-03 Richard Guenther <rguenther@suse.de>
8528 Ira Rosen <ira.rosen@linaro.org>
8529
8530 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8531 non-variable offsets and compare the remaining bases of the two
8532 accesses instead of looking for exact same data-ref.
8533
8534 2011-04-02 Kai Tietz <ktietz@redhat.com>
8535
8536 PR target/48416
8537 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8538
8539 * i386.c (ix86_is_msabi_thiscall): New helper function.
8540 (ix86_is_type_thiscall): New helper function.
8541 (ix86_comp_type_attributes): Handle thiscall for method-functions
8542 special.
8543 (init_cumulative_args): Likewise.
8544 (find_drap_reg): Likewise.
8545 (ix86_static_chain): Likewise.
8546 (x86_this_parameter): Likewise.
8547 (x86_output_mi_thunk): Likewise.
8548
8549 2011-04-01 Olivier Hainque <hainque@adacore.com>
8550 Nicolas Setton <setton@adacore.com>
8551 Eric Botcazou <ebotcazou@adacore.com>
8552
8553 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8554 (add_gnat_descriptive_type_attribute): New function.
8555 (gen_array_type_die): Call it.
8556 (gen_enumeration_type_die): Likewise.
8557 (gen_struct_or_union_type_die): Likewise.
8558 (modified_type_die): Likewise.
8559 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8560 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8561 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8562
8563 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8564
8565 PR bootstrap/48148
8566 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8567 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8568
8569 Revert:
8570 2011-03-17 Richard Guenther <rguenther@suse.de>
8571
8572 PR bootstrap/48148
8573 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8574 origin for decls in other ltrans units.
8575 (input_varpool_node): Likewise.
8576
8577 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8578
8579 PR middle-end/48335
8580 * expr.c (expand_assignment): Handle all possibilities
8581 if TO_RTX is CONCAT.
8582 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8583 (store_split_bit_field): If SUBREG_REG (op0) or
8584 op0 itself has smaller mode than word, return it
8585 for offset 0 and const0_rtx for out-of-bounds stores.
8586 If word is const0_rtx, skip it.
8587
8588 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8589
8590 * config/h8300/h8300.c (print_operand_address): Rename to...
8591 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8592 Call h8300_print_operand and h8300_print_operand_address instead of
8593 print_operand and print_operand_address. Declare.
8594 (print_operand): Renake to...
8595 (h8300_print_operand): ...this. Make static. Adjust comments.
8596 Call h8300_print_operand instead of print_operand. Declare.
8597 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8598 (h8300_register_move_cost): Likewise.
8599 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8600 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8601 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8602 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8603 * config/h8300/h8300-protos.h (print_operand): Delete.
8604 (print_operand_address): Delete.
8605
8606 2011-04-01 Richard Henderson <rth@redhat.com>
8607
8608 PR 48400
8609 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8610 in strict mode before dwarf4. Re-order tests to early out
8611 before switching sections.
8612
8613 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8614
8615 * config/h8300/constraints.md: New file.
8616 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8617 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8618 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8619 * config/h8300/predicates.md (bit_operand): Likewise.
8620 (incdec_operand): Use satisfies_constraint_M and
8621 satisfies_constraint_O. Don't use C code block.
8622 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8623 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8624 (compute_mov_length): Use satisfies_constraint_G.
8625 (fix_bit_operand): Use satisfies_constraint_U.
8626 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8627 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8628 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8629 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8630 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8631 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8632 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8633 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8634 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8635 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8636 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8637 (EXTRA_MEMORY_CONSTRAINT): Delete.
8638
8639 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8640 Michael Meissner <meissner@linux.vnet.ibm.com>
8641
8642 PR target/48262
8643 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8644 operands, as per the specifications.
8645
8646 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8647 (vec_extract_evenv4sf): Ditto.
8648 (vec_extract_evenv8hi): Ditto.
8649 (vec_extract_evenv16qi): Ditto.
8650 (vec_extract_oddv4si): Ditto.
8651
8652 2011-03-31 Mark Wielaard <mjw@redhat.com>
8653
8654 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8655 high_pc attribute if the CU has no associated code. Only output
8656 DW_AT_entry_pc for CU if not generating strict dwarf and
8657 dwarf_version < 4.
8658
8659 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8660
8661 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8662 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8663 out of ...
8664 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8665 * final.c (final_start_function): Call the new function rather
8666 than using a NULL argument for dwarf2out_frame_debug.
8667
8668 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8669 that contains the prologue.
8670
8671 * haifa-sched.c (queue_insn): New arg REASON. All callers
8672 changed. Print it in debugging output.
8673
8674 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8675
8676 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8677 Split most of the code into...
8678 (begin_move_insn): ... here. New function.
8679 (ebb_sched_info): Add a pointer to it.
8680 * haifa-sched.c (scheduled_insns): New static variable.
8681 (sched_extend_ready_list): Allocate it.
8682 (schedule_block): Use it to record the order of scheduled insns.
8683 Perform RTL changes to move insns only after all scheduling
8684 decisions have been made.
8685 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8686 begin_move_insn field.
8687 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8688 * sched-int.h (struct haifa_sched_info): Remove second argument
8689 from begin_schedule_ready hook. Add new member begin_move_insn.
8690 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8691 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8692
8693 * haifa-sched.c (prune_ready_list): New function, broken out of
8694 schedule_block.
8695 (schedule_block): Use it.
8696
8697 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8698
8699 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8700
8701 2011-04-01 Kai Tietz <ktietz@redhat.com>
8702
8703 * config.gcc (*-*-mingw*): Allow as option the
8704 posix threading model.
8705 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8706 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8707 definition.
8708 (CPP_SPEC): Add pthread/no-pthread handling.
8709 (LIB_SPEC): Likewise.
8710 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8711 (LIB_SPEC): Likewise.
8712 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8713 flag to pass -pthread option for shared libgcc build.
8714 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8715 for shared libgcc build.
8716 * config/i386/t-mingw-pthread: New file.
8717 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8718 New define to enable use of library pthread by default.
8719 * config/i386/mingw.opt (pthread): New driver option.
8720 (no-pthread): New driver option.
8721 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8722 * config/i386/mingw-w64.opt: Likewise.
8723
8724 2011-04-01 Gary Funck <gary@intrepid.com>
8725
8726 * c-decl.c (grokdeclarator): Fix formatting.
8727
8728 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8729
8730 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8731 instead of n_operands.
8732 (set_storage_via_setmem): Likewise.
8733 * optabs.c (maybe_gen_insn): Likewise.
8734 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8735 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8736 (mips_expand_builtin_direct): Likewise.
8737 * config/spu/spu.c (expand_builtin_args): Likewise.
8738
8739 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8740
8741 * recog.h (insn_data_d): Add n_generator_args.
8742 * genoutput.c (data): Likewise.
8743 (output_insn_data): Print it.
8744 (max_opno, num_dups): Delete.
8745 (scan_operands): Just fill in "d->operand[...]".
8746 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8747
8748 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8749
8750 * gensupport.h (pattern_stats): New structure.
8751 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8752 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8753 (max_operand_1, max_operand_vec): Delete.
8754 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8755
8756 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8757
8758 * emit-rtl.c (emit_pattern_after_setloc): New function.
8759 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8760 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8761 (emit_pattern_after): New function.
8762 (emit_insn_after, emit_jump_insn_after): Call it.
8763 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8764 (emit_pattern_before_setloc): New function.
8765 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8766 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8767 Likewise.
8768 (emit_pattern_before): New function.
8769 (emit_insn_before, emit_jump_insn_before): Call it.
8770 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8771
8772 2011-03-31 Richard Henderson <rth@redhat.com>
8773
8774 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8775 (dw_separate_line_info_entry): Remove.
8776 (enum dw_line_info_opcode): New.
8777 (dw_line_info_entry): Use it.
8778 (dw_line_info_table, dw_line_info_table_p): New.
8779 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8780 (line_info_table, line_info_label_num): Remove.
8781 (line_info_table_in_use): Remove.
8782 (separate_line_info_table): Remove.
8783 (separate_line_info_table_allocated): Remove.
8784 (separate_line_info_table_in_use): Remove.
8785 (LINE_INFO_TABLE_INCREMENT): Remove.
8786 (line_info_label_num): New.
8787 (cur_line_info_table): New.
8788 (text_section_line_info, cold_text_section_line_info): New.
8789 (separate_line_info): New.
8790 (SEPARATE_LINE_CODE_LABEL): Remove.
8791 (print_dwarf_line_table): Remove.
8792 (debug_dwarf): Don't dump it.
8793 (output_one_line_info_table): New.
8794 (output_line_info): Use it.
8795 (new_line_info_table): New.
8796 (set_cur_line_info_table): New.
8797 (dwarf2out_switch_text_section): Use it.
8798 (dwarf2out_begin_function): Likewise.
8799 (push_dw_line_info_entry): New.
8800 (dwarf2out_source_line): Rewrite for new line info tables.
8801 (dwarf2out_init): Remove dead initailizations.
8802
8803 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8804
8805 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8806 various flags.
8807 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8808 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8809 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8810 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8811 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8812 * opt-functions.awk (flag_init, switch_bit_fields): New.
8813 (switch_flags): Don't handle flags moved to bit-fields. Don't
8814 generate CL_MISSING_OK or CL_SAVE.
8815 * optc-gen.awk: Update to generate bit-field output as well as
8816 flags field.
8817 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8818 bit-field instead of CL_REJECT_DRIVER flag.
8819 * opts-common.c (generate_canonical_option,
8820 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8821 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8822 instead of CL_REJECT_NEGATIVE flag.
8823 * toplev.c (print_switch_values): Use cl_report bit-field instead
8824 of CL_REPORT flag.
8825
8826 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8827
8828 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8829 a zero minimum index only if it is redundant.
8830
8831 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8832
8833 PR rtl-optimization/48381
8834 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8835 instead of ira_class_hard_reg_index for calculating conflicting
8836 hard registers.
8837
8838 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8839
8840 * cprop.c: Clean up hash table building.
8841 (reg_avail_info): Remove.
8842 (oprs_available_p): Remove.
8843 (record_last_reg_set_info): Remove.
8844 (record_last_set_info): Remove.
8845 (reg_available_p): New function.
8846 (gcse_constant_p): Do not treat unfolded conditions as constants.
8847 (make_set_regs_unavailable): New function.
8848 (hash_scan_set): Simplify with new reg_available_p.
8849 (compute_hash_table_work): Traverse insns stream only once.
8850 Do not compute reg_avail_info. Traverse insns in reverse order.
8851 Record implicit sets after recording explicit sets from the block.
8852
8853 2011-03-31 Michael Matz <matz@suse.de>
8854
8855 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8856
8857 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8858
8859 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8860 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8861 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8862 (h8300_mode_dependent_address_p): New function.
8863 (h8300_get_index): Make static.
8864
8865 2011-03-31 Jeff Law <law@redhat.com>
8866
8867 * reload1.c (elimination_effects): Fix typo in recent change.
8868
8869 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8870 typo potentially leading to null pointer dereference.
8871
8872 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8873 (setup_save_areas): Corresponding changes to avoid useless
8874 assignments.
8875
8876 * jump.c (reversed_comparison_code_parts): Avoid successive return
8877 statements when REVERSE_CONDITION is defined.
8878
8879 * expr.c (expand_assignment): Avoid useless assignments.
8880 (expand_expr_real_1): Likewise.
8881 (expand_expr_real_2): Avoid useless statements.
8882
8883 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8884
8885 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8886
8887 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8888 statements.
8889
8890 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8891
8892 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8893
8894 PR target/47109
8895 * doc/tm.texi.in (TARGET_VERSION): Remove.
8896 * doc/tm.texi: Regenerate.
8897 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8898 * collect2.c (main): Don't use TARGET_VERSION.
8899 * mips-tdump.c (main): Don't use TARGET_VERSION.
8900 * mips-tfile.c (main): Don't use TARGET_VERSION.
8901 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8902 * config/rs6000/vxworksae.h: Remove.
8903 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8904 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8905 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8906 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8907 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8908 * config/arm/arm.h (TARGET_VERSION): Remove.
8909 * config/arm/coff.h (TARGET_VERSION): Remove.
8910 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8911 * config/arm/elf.h (TARGET_VERSION): Remove.
8912 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8913 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8914 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8915 * config/arm/pe.h (TARGET_VERSION): Remove.
8916 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8917 * config/arm/semi.h (TARGET_VERSION): Remove.
8918 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8919 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8920 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8921 * config/avr/avr.h (TARGET_VERSION): Remove.
8922 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8923 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8924 * config/frv/frv.h (TARGET_VERSION): Remove.
8925 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8926 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8927 * config/i386/darwin.h (TARGET_VERSION): Remove.
8928 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8929 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8930 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8931 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8932 * config/i386/gnu.h (TARGET_VERSION): Remove.
8933 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8934 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8935 * config/i386/linux.h (TARGET_VERSION): Remove.
8936 * config/i386/linux64.h (TARGET_VERSION): Remove.
8937 * config/i386/lynx.h (TARGET_VERSION): Remove.
8938 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8939 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8940 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8941 * config/i386/netware.h (TARGET_VERSION): Remove.
8942 * config/i386/nto.h (TARGET_VERSION): Remove.
8943 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8944 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8945 * config/ia64/elf.h (TARGET_VERSION): Remove.
8946 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8947 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8948 * config/ia64/linux.h (TARGET_VERSION): Remove.
8949 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8950 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8951 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8952 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8953 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8954 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8955 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8956 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8957 * config/m68k/linux.h (TARGET_VERSION): Remove.
8958 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8959 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8960 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8961 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8962 * config/mep/mep.h (TARGET_VERSION): Remove.
8963 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8964 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8965 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8966 * config/mips/linux.h (TARGET_VERSION): Remove.
8967 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8968 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8969 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8970 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8971 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8972 * config/pa/pa.h (TARGET_VERSION): Remove.
8973 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8974 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8975 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8976 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8977 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8978 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8979 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8980 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8981 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8982 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8983 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8984 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8985 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8986 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8987 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8988 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8989 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8990 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8991 * config/s390/linux.h (TARGET_VERSION): Remove.
8992 * config/s390/s390.h (TARGET_VERSION): Remove.
8993 * config/s390/tpf.h (TARGET_VERSION): Remove.
8994 * config/score/score.h (TARGET_VERSION): Remove.
8995 * config/sh/linux.h (TARGET_VERSION): Remove.
8996 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8997 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8998 * config/sh/sh.h (TARGET_VERSION): Remove.
8999 * config/sh/sh64.h (TARGET_VERSION): Remove.
9000 * config/sh/superh.h (TARGET_VERSION): Remove.
9001 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9002 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9003 * config/sparc/linux.h (TARGET_VERSION): Remove.
9004 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9005 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9006 TARGET_NAME32, TARGET_NAME): Remove.
9007 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9008 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9009 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9010 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9011 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9012 * config/spu/spu.h (TARGET_VERSION): Remove.
9013 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9014 * config/v850/v850.h (TARGET_VERSION): Remove.
9015 * config/vax/linux.h (TARGET_VERSION): Remove.
9016 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9017 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9018 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9019
9020 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9021
9022 PR target/48142
9023 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9024 frame-related from frame-unrelated adjustments to the stack pointer.
9025
9026 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9027
9028 * common.opt (fdebug-types-section): Move earlier.
9029 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9030
9031 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9032
9033 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9034 var.
9035
9036 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9037
9038 * tree.h (CASE_CHAIN): Define.
9039 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9040 (gimple_redirect_edge_and_branch): Likewise.
9041
9042 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9043
9044 PR middle-end/48367
9045 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9046 calculation.
9047
9048 2011-03-30 Jeff Law <law@redhat.com>
9049
9050 * PR bootstrap/48371
9051 * reload1.c (reload): Fix botch in last change.
9052
9053 * reload.h (struct reload): Fix typo introduced in last change.
9054
9055 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9056
9057 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9058 Undocumented. Remove help text.
9059 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9060 -mhard-float.
9061
9062 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9063
9064 * doc/options.texi (NegativeAlias): Document.
9065 (Alias): Mention NegativeAlias.
9066 * opt-functions.awk: Handle NegativeAlias.
9067 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9068 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9069 * opts.h (CL_NEGATIVE_ALIAS): Define.
9070 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9071 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9072 OPT_mspe_.
9073 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9074 Alias entries.
9075 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9076 mno-spe and mno-isel instead of mspe=no and -misel=no.
9077
9078 2011-03-29 Mark Wielaard <mjw@redhat.com>
9079
9080 * common.opt (fdebug-types-section): New flag.
9081 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9082 * dwarf2out.c (use_debug_types): New define.
9083 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9084 (print_die): Guard output of type unit signatures using
9085 use_debug_types.
9086 (build_abbrev_table): Replace assert of dwarf_version >= 4
9087 with assert on use_debug_types.
9088 (size_of_die): Likewise.
9089 (unmark_dies): Likewise.
9090 (value_format): Decide AT_ref_external form on use_debug_types.
9091 (output_die): Replace dwarf_version version check guard with
9092 use_debug_types where appropriate.
9093 (modified_type_die): Likewise.
9094 (gen_reference_type_die): Likewise.
9095 (dwarf2out_start_source_file): Likewise.
9096 (dwarf2out_end_source_file): Likewise.
9097 (prune_unused_types_walk_attribs): Likewise.
9098 (dwarf2out_finish): Likewise.
9099
9100 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9101
9102 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9103
9104 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9105
9106 PR rtl-optimization/48332
9107 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9108 mode of input operand N and modeN to its actual mode.
9109
9110 2011-03-30 Jeff Law <law@redhat.com>
9111
9112 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9113 define accessor macro.
9114 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9115 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9116 (reg_equiv_init): Likewise.
9117 (reg_equivs_size): New variable.
9118 (reg_equiv_init_size): Remove.
9119 (allocate_initial_values): Move prototype to here from....
9120 * integrate.h (allocate_initial_values): Remove prototype.
9121 * integrate.c: Include reload.h.
9122 (allocate_initial_values): Corresponding changes.
9123 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9124 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9125 (update_equiv_regs): Corresponding changes.
9126 (ira): Corresponding changes.
9127 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9128 (push_secondary_reload): Corresponding changes.
9129 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9130 (make_memloc, find_reloads_address): Corresponding changes.
9131 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9132 (find_reloads_address_1): Corresponding changes.
9133 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9134 (refers_to_regno_for_reload_p): Corresponding changes.
9135 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9136 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9137 * reload1.c: Include ggc.h.
9138 (grow_reg_equivs): New function.
9139 (replace_pseudos_in, reload): Corresponding changes.
9140 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9141 (eliminate_regs_1, elimination_effects): Corresponding changes.
9142 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9143 (delete_output_reload): Likewise.
9144 * caller-save.c (mark_referenced_regs): Corresponding changes.
9145 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9146 * frv/predicates.md (frv_load_operand): Corresponding changes.
9147 * microblaze/microblaze.c (double_memory_operand): Corresponding
9148 changes.
9149 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9150 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9151 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9152 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9153 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9154 changes.
9155 * pa/pa.c (emit_move_sequence): Corresponding changes.
9156 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9157
9158 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9159
9160 PR target/47551
9161 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9162 structure modes. Don't check neon_vector_mem_operand for
9163 vector or structure modes.
9164
9165 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9166 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9167
9168 PR target/43590
9169 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9170 operand 1 and reshuffle the operands to match.
9171 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9172
9173 2011-03-30 Christian Schüler <cschueler@gmx.de>
9174
9175 PR driver/48208
9176 * config/c.opt (F): Added 'Driver' to -F option.
9177
9178 PR driver/48260
9179 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9180 handler function.
9181 * config/darwin.opt: Added '-arch' option.
9182
9183 2011-03-30 Nick Clifton <nickc@redhat.com>
9184
9185 * config/rx/rx.md: Add peepholes and patterns to combine
9186 extending loads and simple arithmetic instructions.
9187 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9188 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9189 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9190 modes to use pre-decrement and post-increment addressing.
9191 (rx_is_restricted_memory_address): Add range checking of REG+INT
9192 addresses.
9193 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9194 (rx_memory_move_cost): Adjust cost of stores.
9195 (rx_adjust_insn_length): New function.
9196
9197 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9198
9199 PR c/48305
9200 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9201 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9202 matching arg00/arg01 types.
9203
9204 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9205
9206 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9207 last_location to UNKNOWN_LOCATION.
9208
9209 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9210
9211 PR target/48349
9212 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9213 FLOAT_SSE_REGS.
9214
9215 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9216 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9217
9218 PR bootstrap/48337
9219 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9220 Init(PROCESSOR_V7).
9221 (sparc_cpu): Likewise.
9222 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9223 PROCESSOR_V7.
9224
9225 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9226
9227 PR target/48336
9228 PR middle-end/48342
9229 PR rtl-optimization/48345
9230 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9231 hard regs for given mode from profitable regs when doing secondary
9232 allocation.
9233
9234 2011-03-29 Jeff Law <law@redhat.com>
9235
9236 PR bootstrap/48327
9237 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9238 do_not_duplicate field.
9239 (lookup_redirection_data): Corresponding changes.
9240 (create_duplicates): Always create a template block.
9241 (redirect_edges): Remove code which reused the original block
9242 when it was going to become unreachable code.
9243 (thread_block): Don't set do_not_duplicate field.
9244
9245 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9246
9247 * lto-opts.c (register_user_option_p, lto_register_user_option):
9248 Make type argument unsigned.
9249 * lto-streamer.h (lto_register_user_option): Make type argument
9250 unsigned.
9251 * opth-gen.awk: Make CL_* macros unsigned.
9252 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9253 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9254 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9255 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9256 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9257 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9258 (find_opt): Make lang_mask argument unsigned.
9259
9260 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9261
9262 PR rtl-optimization/48331
9263 PR rtl-optimization/48334
9264 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9265 for any used algorithm.
9266
9267 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9268
9269 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9270 to parent_max.
9271
9272 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9273
9274 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9275 (alpha_option_override): Don't set alpha_sr_alias_set.
9276 (emit_frame_store_1): Use gen_frame_mem rather than calling
9277 set_mem_alias_set.
9278 (alpha_expand_epilogue): Ditto.
9279
9280 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9281
9282 PR tree-optimization/48290
9283 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9284 vectorization, check that relevant phis in the basic block after
9285 the inner loop are really inner loop's exit phis.
9286
9287 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9288
9289 PR debug/48190
9290 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9291 (cached_dw_loc_list_def): New structure.
9292 (cached_dw_loc_list): New typedef.
9293 (cached_dw_loc_list_table): New variable.
9294 (cached_dw_loc_list_table_hash): New function.
9295 (cached_dw_loc_list_table_eq): Likewise.
9296 (add_location_or_const_value_attribute): Take a bool cache_p.
9297 Cache the list when the parameter is true.
9298 (gen_formal_parameter_die): Update caller.
9299 (gen_variable_die): Likewise.
9300 (dwarf2out_finish): Likewise.
9301 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9302 while generating debug info for the decl.
9303 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9304 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9305 (resolve_addr): Cache the result of resolving a chain of
9306 location lists.
9307
9308 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9309
9310 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9311 conflict object hard regset nodes have intersecting hard reg sets.
9312
9313 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9314 after regstat_init_n_sets_and_refs.
9315
9316 * ira.c: Add more comments at the top.
9317 (setup_stack_reg_pressure_class, setup_pressure_classes):
9318 Add comments how we compute the register pressure classes.
9319 (setup_allocno_and_important_classes): Add more comments.
9320 (setup_class_translate_array, reorder_important_classes)
9321 (setup_reg_class_relations): Add comments.
9322
9323 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9324 start of the file.
9325
9326 * ira-color.c: Add 2011 to the Copyright line.
9327 (assign_hard_reg): Add more comments.
9328 (improve_allocation): Ditto.
9329
9330 * ira-costs.c: Add 2011 to the Copyright line.
9331 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9332 comments.
9333 (setup_regno_cost_classes_by_mode): Ditto.
9334
9335 Initial patches from ira-improv branch:
9336
9337 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9338
9339 * ira-build.c (ira_create_object): Remove initialization of
9340 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9341 (ira_create_allocno): Remove initialization of
9342 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9343 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9344 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9345 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9346 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9347 Initialize ALLOCNO_ADD_DATA.
9348 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9349 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9350 ALLOCNO_REG.
9351 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9352 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9353
9354 * ira.c (ira_reallocate): Remove.
9355 (setup_pressure_classes): Call
9356 ira_init_register_move_cost_if_necessary. Use
9357 ira_register_move_cost instead of ira_get_register_move_cost.
9358 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9359 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9360
9361 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9362 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9363 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9364 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9365 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9366 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9367 Fix formatting.
9368 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9369 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9370 (struct allocno_color_data): New.
9371 (allocno_color_data_t): New typedef.
9372 (allocno_color_data): New definition.
9373 (ALLOCNO_COLOR_DATA): New macro.
9374 (struct object_color_data): New.
9375 (object_color_data_t): New typedef.
9376 (object_color_data): New definition.
9377 (OBJECT_COLOR_DATA): New macro.
9378 (update_copy_costs, calculate_allocno_spill_cost): Call
9379 ira_init_register_move_cost_if_necessary. Use
9380 ira_register_move_cost instead of ira_get_register_move_cost.
9381 (move_spill_restore, update_curr_costs): Ditto.
9382 (allocno_spill_priority): Make it inline.
9383 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9384 (struct coalesce_data, coalesce_data_t): New.
9385 (allocno_coalesce_data): New definition.
9386 (ALLOCNO_COALESCE_DATA): New macro.
9387 (merge_allocnos, coalesced_allocno_conflict_p): Use
9388 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9389 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9390 (coalesce_allocnos): Ditto.
9391 (setup_coalesced_allocno_costs_and_nums): Ditto.
9392 (collect_spilled_coalesced_allocnos): Ditto.
9393 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9394 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9395 (coalesce_spill_slots): Ditto.
9396 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9397 free allocno_coalesce_data.
9398
9399 * ira-conflicts.c: Fix formatting.
9400 (process_regs_for_copy): Call
9401 ira_init_register_move_cost_if_necessary. Use
9402 ira_register_move_cost instead of ira_get_register_move_cost.
9403 (build_object_conflicts): Optimize.
9404
9405 * ira-costs.c (record_reg_classes): Optimize. Call
9406 ira_init_register_move_cost_if_necessary. Use
9407 ira_register_move_cost, ira_may_move_in_cost, and
9408 ira_may_move_out_cost instead of ira_get_register_move_cost and
9409 ira_get_may_move_cost.
9410 (record_address_regs): Ditto.
9411 (scan_one_insn): Optimize.
9412 (find_costs_and_classes): Optimize.
9413 (process_bb_node_for_hard_reg_moves): Call
9414 ira_init_register_move_cost_if_necessary. Use
9415 ira_register_move_cost instead of ira_get_register_move_cost.
9416
9417 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9418 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9419 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9420 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9421 definitions.
9422 (ira_initiate_emit_data, ira_finish_emit_data)
9423 (create_new_allocno): New functions.
9424 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9425 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9426 Use ira_register_move_cost instead of ira_get_register_move_cost.
9427
9428 * ira-int.h: Fix some comments.
9429 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9430 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9431 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9432 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9433 add_data.
9434 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9435 bitfield after mode. Make hard_regno a short int. Make
9436 hard_regno short. Remove first_coalesced_allocno and
9437 next_coalesced_allocno. Move mem_optimized_dest_p,
9438 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9439 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9440 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9441 temp, colorable_p. Add new member add_data.
9442 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9443 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9444 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9445 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9446 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9447 (ALLOCNO_ADD_DATA): New macro.
9448 (ira_emit_data_t): New typedef.
9449 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9450 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9451 from struct ira_allocno.
9452 (ALLOCNO_EMIT_DATA): New macro.
9453 (ira_allocno_emit_data, allocno_emit_reg): New.
9454 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9455 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9456 (OBJECT_ADD_DATA): New macro.
9457 (ira_reallocate): Remove.
9458 (ira_initiate_emit_data, ira_finish_emit_data): New.
9459 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9460 (ira_init_register_move_cost_if_necessary): New.
9461 (ira_object_conflict_iter_next): Merge into
9462 ira_object_conflict_iter_cond.
9463 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9464
9465 * ira-live.c (process_single_reg_class_operands): Call
9466 ira_init_register_move_cost_if_necessary. Use
9467 ira_register_move_cost instead of ira_get_register_move_cost.
9468
9469 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9470
9471 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9472
9473 * ira-costs.c: Fix formatting.
9474 (cost_classes, cost_classes_num): Remove.
9475 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9476 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9477 (cost_classes_del, cost_classes_htab): New.
9478 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9479 (initiate_regno_cost_classes, setup_cost_classes): New.
9480 (setup_regno_cost_classes_by_aclass): New.
9481 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9482 (record_reg_classes): Use regno_cost_classes instead of
9483 cost_classes. Move checking opposite operand up.
9484 (record_address_regs): Use regno_cost_classes
9485 instead of cost_classes.
9486 (scan_one_insn): Ditto. Use always general register.
9487 (print_allocno_costs): Use regno_cost_classes instead of
9488 cost_classes.
9489 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9490 (find_costs_and_classes): Set up cost classes for each registers.
9491 Use also their mode for this. Use regno_cost_classes instead of
9492 cost_classes.
9493 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9494 cost_classes.
9495 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9496 (ira_costs, ira_set_pseudo_classes): Call
9497 initiate_regno_cost_classes and finish_regno_cost_classes.
9498
9499 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9500
9501 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9502
9503 * target.def (ira_cover_classes): Remove.
9504
9505 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9506
9507 * doc/tm.texi.in: Ditto.
9508
9509 * ira-conflicts.c: Remove mentioning cover classes from the file.
9510 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9511 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9512
9513 * targhooks.c (default_ira_cover_classes): Remove.
9514
9515 * targhooks.h (default_ira_cover_classes): Ditto.
9516
9517 * haifa-sched.c: Remove mentioning cover classes from the file.
9518 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9519 ira_pressure_classes and ira_pressure_classes_num instead of
9520 ira_reg_class_cover_size and ira_reg_class_cover. Use
9521 sched_regno_pressure_class instead of sched_regno_cover_class.
9522 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9523 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9524
9525 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9526 classes from the file.
9527 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9528 (struct object_hard_regs, struct object_hard_regs_node): New.
9529 (struct ira_object): New members profitable_hard_regs,
9530 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9531 (struct ira_allocno): Rename cover_class to aclass. Rename
9532 cover_class_cost and updated_cover_class_cost to class_cost and
9533 updated_class_cost. Remove splay_removed_p and
9534 left_conflict_size. Add new members colorable_p.
9535 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9536 (ALLOCNO_COLORABLE_P): New macro.
9537 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9538 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9539 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9540 (OBJECT_...): Rename parameter C to O.
9541 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9542 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9543 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9544 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9545 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9546 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9547 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9548 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9549 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9550 x_ira_reg_class_subunion.
9551 (ira_max_memory_move_cost, ira_max_register_move_cost)
9552 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9553 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9554 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9555 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9556 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9557 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9558 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9559 (ira_tune_allocno_costs_and_cover_classes): Rename to
9560 ira_tune_allocno_costs.
9561 (ira_debug_hard_regs_forest): New.
9562 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9563 (ira_object_conflict_iter_next): Fix comments.
9564 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9565 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9566 cover_class to aclass.
9567 (ira_allocate_and_accumulate_costs): Ditto.
9568 (ira_allocate_and_set_or_copy_costs): Ditto.
9569
9570 * opts.c (decode_options): Remove ira_cover_class check.
9571
9572 * ira-color.c: Remove mentioning cover classes from the file. Use
9573 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9574 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9575 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9576 (splay-tree.h): Remove include.
9577 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9578 before copy_freq_compare_func.
9579 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9580 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9581 New definitions.
9582 (hard_regs_roots, hard_regs_node_vec): Ditto.
9583 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9584 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9585 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9586 (create_new_object_hard_regs_node): Ditto.
9587 (add_new_object_hard_regs_node_to_forest): Ditto.
9588 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9589 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9590 Ditto.
9591 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9592 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9593 (remove_unused_object_hard_regs_nodes): Ditto.
9594 (enumerate_object_hard_regs_nodes): Ditto.
9595 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9596 (object_hard_regs_subnode_t): Ditto.
9597 (struct object_hard_regs_subnode): Ditto.
9598 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9599 (setup_object_hard_regs_subnode_index): Ditto.
9600 (get_object_hard_regs_subnodes_num): Ditto.
9601 (form_object_hard_regs_nodes_forest): Ditto.
9602 (finish_object_hard_regs_nodes_tree): Ditto.
9603 (finish_object_hard_regs_nodes_forest): Ditto.
9604 (allocnos_have_intersected_live_ranges_p): Rename to
9605 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9606 (pseudos_have_intersected_live_ranges_p): Rename to
9607 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9608 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9609 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9610 (update_copy_costs): Remove assert. Skip cost update if the hard
9611 reg does not belong the class.
9612 (assign_hard_reg): Process only profitable hard regs.
9613 (uncolorable_allocnos_num): Make it scalar.
9614 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9615 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9616 and ira_reg_class_max_nregs.
9617 (bucket_allocno_compare_func): Check frequency first.
9618 (sort_bucket): Add compare function as a parameter.
9619 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9620 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9621 (push_allocno_to_stack): Rewrite for checking new allocno
9622 colorability.
9623 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9624 (push_only_colorable): Pass new parameter to sort_bucket.
9625 (push_allocno_to_spill): Remove.
9626 (allocno_spill_priority_compare): Make it inline and rewrite.
9627 (splay_tree_allocate, splay_tree_free): Remove.
9628 (allocno_spill_sort_compare): New function.
9629 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9630 build and use splay tree. Choose first allocno in uncolorable
9631 allocno bucket to spill. Remove setting spill cost.
9632 (all_conflicting_hard_regs): Remove.
9633 (setup_allocno_available_regs_num): Check only profitable hard
9634 regs. Print info about hard regs nodes.
9635 (setup_allocno_left_conflicts_size): Remove.
9636 (put_allocno_into_bucket): Don't call
9637 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9638 (improve_allocation): New.
9639 (color_allocnos): Call setup_profitable_hard_regs,
9640 form_object_hard_regs_nodes_forest, improve_allocation,
9641 finish_object_hard_regs_nodes_forest. Setup spill cost.
9642 (print_loop_title): Use pressure classes.
9643 (color_allocnso): Ditto.
9644 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9645 and allocnos_for_spilling.
9646 (ira_sort_regnos_for_alter_reg): Don't setup members
9647 {first,next}_coalesced_allocno.
9648 (color): Remove allocating and freeing removed_splay_allocno_vec.
9649 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9650 prohibited_class_mode_regs.
9651
9652 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9653 formatting.
9654 (update_allocno_pressure_excess_length): Use pressure classes.
9655 (inc_register_pressure, dec_register_pressure): Check for pressure
9656 class.
9657 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9658 pressure class. Use ira_reg_class_nregs instead of
9659 ira_reg_class_max_nregs.
9660 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9661 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9662 (single_reg_class): Use ira_reg_class_nregs instead of
9663 ira_reg_class_max_nregs.
9664 (process_bb_node_lives): Use pressure classes.
9665
9666 * ira-emit.c: Remove mentioning cover classes from the file. Use
9667 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9668 (change_loop): Use pressure classes.
9669 (modify_move_list): Call ira_set_allocno_class instead of
9670 ira_set_allocno_cover_class.
9671
9672 * ira-build.c: Remove mentioning cover classes from the file. Use
9673 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9674 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9675 ALLOCNO_UPDATED_CLASS_COST instead of
9676 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9677 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9678 (ira_create_allocno): Remove initialization of
9679 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9680 ALLOCNO_COLORABLE_P.
9681 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9682 Update conflict regs for the objects.
9683 (create_cap_allocno): Remove assert. Don't propagate
9684 ALLOCNO_AVAILABLE_REGS_NUM.
9685 (ira_free_allocno_costs): New function.
9686 (finish_allocno): Change a part of code into call of
9687 ira_free_allocno_costs.
9688 (low_pressure_loop_node_p): Use pressure classes.
9689 (object_range_compare_func): Don't compare classes.
9690 (setup_min_max_conflict_allocno_ids): Ditto.
9691
9692 * loop-invariant.c: Remove mentioning cover classes from the file.
9693 Use ira_pressure_classes and ira_pressure_classes_num instead of
9694 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9695 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9696 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9697 Use reg_allocno_class instead of reg_cover_class.
9698 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9699 STACK_REG_COVER_CLASS.
9700 (get_regno_cover_class): Rename to get_regno_pressure_class.
9701 (move_loop_invariants): Initialize and finalize regstat.
9702
9703 * ira.c: Remove mentioning cover classes from the file. Add
9704 comments about coloring without cover classes. Use ALLOCNO_CLASS
9705 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9706 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9707 setup_class_subset_and_memory_move_costs.
9708 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9709 (setup_cover_and_important_classes): Rename to
9710 setup_allocno_and_important_classes.
9711 (setup_class_translate_array): New.
9712 (setup_class_translate): Call it for allocno and pressure classes.
9713 (cover_class_order): Rename to allocno_class_order.
9714 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9715 of ira_class_translate.
9716 (reorder_important_classes): Set up ira_important_class_nums.
9717 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9718 (print_class_cover): Rename to print_classes. Add parameter.
9719 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9720 Print pressure classes too.
9721 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9722 setup_reg_subclasses.
9723 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9724 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9725 (setup_prohibited_class_mode_regs): Use
9726 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9727 (clarify_prohibited_class_mode_regs): New function.
9728 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9729 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9730 (ira_init_once): Initialize them.
9731 (free_register_move_costs): Process them.
9732 (ira_init): Move calls of find_reg_classes and
9733 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9734 Call clarify_prohibited_class_mode_regs.
9735 (ira_no_alloc_reg): Remove.
9736 (too_high_register_pressure_p): Use pressure classes.
9737
9738 * sched-deps.c: Remove mentioning cover classes from the file.
9739 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9740 ira_pressure_classes and ira_pressure_classes_num instead of
9741 ira_reg_class_cover_size and ira_reg_class_cover.
9742 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9743 sched_regno_pressure_class instead of sched_regno_cover_class.
9744 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9745 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9746
9747 * ira.h: Add 2010 to Copyright.
9748 (ira_no_alloc_reg): Remove external.
9749 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9750 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9751 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9752 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9753 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9754 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9755 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9756 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9757 x_ira_no_alloc_regs.
9758 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9759 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9760 ira_allocno_classes_num and ira_allocno_classes.
9761 (ira_class_translate): Rename to ira_allocno_class_translate.
9762 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9763 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9764 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9765 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9766 (ira_no_alloc_regs): New.
9767
9768 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9769 classes from the file. Use ALLOCNO_CLASS instead of
9770 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9771 ALLOCNO_COVER_CLASS_COST.
9772 (regno_cover_class): Rename to regno_aclass.
9773 (record_reg_classes): Use ira_reg_class_subunion instead of
9774 ira_reg_class_union.
9775 (record_address_regs): Check overflow.
9776 (scan_one_insn): Ditto.
9777 (print_allocno_costs): Print total mem cost fore regional allocation.
9778 (print_pseudo_costs): Use REG_N_REFS.
9779 (find_costs_and_classes): Use classes intersected with them on the
9780 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9781 ira_reg_class_union. Use ira_allocno_class_translate and
9782 regno_aclass instead of ira_class_translate and regno_cover_class.
9783 Modify code for finding regno_aclass. Setup preferred classes for
9784 the next pass.
9785 (setup_allocno_cover_class_and_costs): Rename to
9786 setup_allocno_class_and_costs. Use regno_aclass instead of
9787 regno_cover_class. Use ira_set_allocno_class instead of
9788 ira_set_allocno_cover_class.
9789 (init_costs, finish_costs): Use regno_aclass instead of
9790 regno_cover_class.
9791 (ira_costs): Use setup_allocno_class_and_costs instead of
9792 setup_allocno_cover_class_and_costs.
9793 (ira_tune_allocno_costs_and_cover_classes): Rename to
9794 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9795 by processing objects. Use ira_reg_class_max_nregs instead of
9796 ira_reg_class_nregs.
9797
9798 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9799
9800 * sched-int.h: Remove mentioning cover classes from the file.
9801 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9802
9803 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9804 classes from the file.
9805 (struct reg_pref): Rename coverclass into allocnoclass.
9806 (reg_cover_class): Rename to reg_allocno_class.
9807
9808 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9809
9810 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9811
9812 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9813
9814 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9815
9816 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9817
9818 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9819
9820 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9821
9822 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9823
9824 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9825
9826 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9827
9828 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9829 (i386_ira_cover_classes): Ditto.
9830
9831 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9832
9833 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9834
9835 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9836
9837 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9838
9839 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9840
9841 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9842
9843 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9844 (mips_ira_cover_classes): Ditto.
9845
9846 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9847
9848 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9849
9850 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9851
9852 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9853
9854 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9855
9856 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9857 (IRA_COVER_CLASSES_VSX): Ditto.
9858
9859 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9860 (rs6000_ira_cover_classes): Ditto.
9861
9862 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9863
9864 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9865
9866 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9867
9868 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9869
9870 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9871
9872 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9873
9874 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9875
9876 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9877
9878 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9879
9880 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9881
9882 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9883
9884 PR debug/48253
9885 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9886 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9887 dw_fde_unlikely_section_end_label, cold_in_std_section,
9888 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9889 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9890 fields.
9891 (output_fde): Use dw_fde_second_{begin,end} if second is
9892 true, otherwise dw_fde_{begin,end}.
9893 (output_call_frame_info): Test dw_fde_second_begin != NULL
9894 instead of dw_fde_switched_sections.
9895 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9896 fields, initialize new fields. Initialize in_std_section
9897 unconditionally from the first partition.
9898 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9899 dw_fde_second_begin is non-NULL.
9900 (dwarf2out_switch_text_section): Stop initializing removed
9901 dw_fde_struct fields, initialize new fields, initialize
9902 also dw_fde_end here. Set dw_fde_switch_cfi even when
9903 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9904 (struct var_loc_list_def): Add last_before_switch field.
9905 (arange_table, arange_table_allocated, arange_table_in_use,
9906 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9907 (size_of_aranges): Count !in_std_section and !second_in_std_section
9908 hunks in fdes, instead of looking at arange_table_in_use.
9909 (output_aranges): Add aranges_length argument, don't call
9910 size_of_aranges here. Instead of using aranges_table*
9911 emit ranges for fdes when !in_std_section resp.
9912 !second_in_std_section.
9913 (dw_loc_list): Break ranges crossing section switch.
9914 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9915 use dw_fde_second_end instead of dw_fde_end as end of last range.
9916 (gen_subprogram_die): Don't call add_arange. Use
9917 dw_fde_{begin,end} for first partition and if switched
9918 section dw_fde_second_{begin,end} for the second.
9919 (var_location_switch_text_section_1,
9920 var_location_switch_text_section): New functions.
9921 (dwarf2out_begin_function): Initialize cold_text_section even
9922 when function_section () isn't text_section.
9923 (prune_unused_types): Don't walk arange_table.
9924 (dwarf2out_finish): Don't needlessly test
9925 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9926 If info_section_emitted, call size_of_aranges and if it indicates
9927 non-empty .debug_aranges, call output_aranges with the computed
9928 size. Stop using removed dw_fde_struct fields, use
9929 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9930 for second.
9931
9932 PR debug/48203
9933 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9934 create ENTRY_VALUE if incoming or address of incoming's MEM
9935 is a hard REG.
9936 * dwarf2out.c (mem_loc_descriptor): Don't emit
9937 DW_OP_GNU_entry_value of DW_OP_fbreg.
9938 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9939 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9940 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9941 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9942 ENTRY_VALUE_EXPs.
9943 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9944 is a REG_P or MEM_P with REG_P address, compute hash directly
9945 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9946 (preserve_only_constants): Don't clear VALUES forwaring
9947 ENTRY_VALUE to some other VALUE.
9948
9949 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9950
9951 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9952 instead of GEN_INT.
9953
9954 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9955
9956 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9957 block before expanding the statement.
9958 (expand_gimple_stmt_1): Likewise. Set them here...
9959 (expand_gimple_stmt): ...and not here. Tidy.
9960 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9961 unknown.
9962
9963 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9964
9965 * Makefile.in: New rule for cprop.o.
9966 * gcse.c: Move constant/copy propagation to cprop.c.
9967 (compute_local_properties): Only handle expression tables.
9968 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9969 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9970 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9971 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9972 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9973 compute_cprop_data, find_used_regs, try_replace_reg,
9974 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9975 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9976 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9977 find_bypass_set, reg_killed_on_edge, bypass_block,
9978 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9979 execute_rtl_cprop, pass_rtl_cprop): Move to...
9980 * cprop.c: ...here. New file, constant/copy propagation for RTL
9981 moved from gcse.c to here with minor cleanups in duplicated code.
9982
9983 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9984
9985 * config/i386/i386.c (flag_opts): Fix a typo in
9986 -mavx256-split-unaligned-store.
9987
9988 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9989
9990 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9991 LIBCALL_VALUE): Remove macros.
9992 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9993 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9994 (h8300_function_value, h8300_libcall_value,
9995 h8300_function_value_regno_p): New functions.
9996
9997 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9998
9999 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10000
10001 2011-03-28 Jeff Law <law@redhat.com>
10002
10003 * tree-ssa-threadupdate.c (redirect_edges): Call
10004 create_edge_and_update_destination_phis as needed.
10005 (create_edge_and_update_destination_phis): Accept new BB argument.
10006 All callers updated.
10007 (thread_block): Do not update the profile when threading around
10008 intermediate blocks.
10009 (thread_single_edge): Likewise.
10010 (determine_bb_domination_status): If BB is not a successor of the
10011 loop header, return NONDOMINATING.
10012 (register_jump_thread): Note when we register a jump thread around
10013 an intermediate block.
10014 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10015 (thread_across_edge): Use it.
10016
10017 2011-03-28 Tristan Gingold <gingold@adacore.com>
10018
10019 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10020 when for_return is 2.
10021
10022 2011-03-28 Jeff Law <law@redhat.com>
10023
10024 * var-tracking.c (canonicalize_values_mark): Delete unused
10025 lhs assignment.
10026 (canonicalize_values_star, set_variable_part): Likewise.
10027 (clobber_variable_part, delete_variable_part): Likewise.
10028
10029 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10030
10031 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10032
10033 2011-03-28 Martin Jambor <mjambor@suse.cz>
10034
10035 * tree-inline.c (expand_call_inline): Do not check that destination
10036 node is analyzed.
10037 (optimize_inline_calls): Assert that destination node is analyzed.
10038 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10039 not call tree_lowering_passes.
10040 * cgraph.h (cgraph_analyze_function): Declare.
10041 * cgraphunit.c (cgraph_analyze_function): Make public.
10042
10043 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10044
10045 * config/sparc/sparc-opts.h: New.
10046 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10047 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10048 (sparc_option_override): Store processor_type enumeration rather
10049 than string in cpu_default. Remove name and enumeration from
10050 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10051 without using sparc_select. Use target_flags_explicit instead of
10052 fpu_option_set.
10053 * config/sparc/sparc.h (enum processor_type): Move to
10054 sparc-opts.h.
10055 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10056 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10057 HeaderInclude entry.
10058 (mcpu=, mtune=): Use Var and Enum.
10059 (sparc_processor_type): New Enum and EnumValue entries.
10060
10061 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10062 Iain Sandoe <iains@gcc.gnu.org>
10063
10064 PR target/48245
10065 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10066
10067 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10068
10069 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10070 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10071 Insert new statements at it in lieu of STMT.
10072 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10073 * tree-vect-stmts.c (vectorizable_store): Likewise.
10074 (vectorizable_load): Likewise.
10075
10076 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10077
10078 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10079 (divtf3): Ditto.
10080 (multf3): Ditto.
10081 (subtf3): Ditto.
10082
10083 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10084
10085 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10086 unaligned 256bit load/store.
10087 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10088 (*avx_movdqu<avxmodesuffix>): Likewise.
10089
10090 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10091
10092 PR target/48288
10093 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10094 * config/pa/pa.md (iordi3): Use new predicate in expander.
10095 (iorsi3): Likewise.
10096
10097 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10098
10099 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10100 FUNCTION_VALUE_REGNO_P): Remove macros.
10101 * config/mips/mips-protos.h (mips_function_value): Remove.
10102 * config/mips/mips.c (mips_function_value): Rename to...
10103 (mips_function_value_1): ... this. Make static. Handle receiving
10104 the function type in 'fn_decl_or_type' argument.
10105 (mips_function_value, mips_libcall_value,
10106 mips_function_value_regno_p): New function.
10107 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10108 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10109
10110 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10111
10112 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10113 and -mavx256-split-unaligned-store.
10114 (ix86_option_override_internal): Split 32-byte AVX unaligned
10115 load/store by default.
10116 (ix86_avx256_split_vector_move_misalign): New.
10117 (ix86_expand_vector_move_misalign): Use it.
10118
10119 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10120 -mavx256-split-unaligned-store.
10121
10122 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10123 256bit load/store. Generate unaligned store on misaligned memory
10124 operand.
10125 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10126 256bit load/store.
10127 (*avx_movdqu<avxmodesuffix>): Likewise.
10128
10129 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10130 -mavx256-split-unaligned-store.
10131
10132 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10133
10134 PR target/38598
10135 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10136 Update commentary.
10137
10138 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10139
10140 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10141 opno arguments with an expand_operand. Use create_input_operand.
10142 (mips_prepare_builtin_target): Delete.
10143 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10144 functions.
10145 (mips_expand_builtin_direct): Use create_output_operand and
10146 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10147 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10148 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10149
10150 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10151
10152 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10153 function.
10154 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10155
10156 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10157
10158 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10159 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10160 basic blocks and call commit_edge_insertions directly.
10161 (fixup_abnormal_edges): Move from here to...
10162 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10163 on the edges and return whether some have actually been inserted.
10164 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10165 compensation code.
10166
10167 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10168
10169 PR rtl-optimization/48144
10170 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10171 (merge_expr_data): ... here.
10172 (av_set_intersect): Rename to av_set_code_motion_filter.
10173 Update all callers. Call merge_history_vect when an expression
10174 is found in both sets.
10175 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10176
10177 2011-03-26 Alan Modra <amodra@gmail.com>
10178
10179 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10180 cmodel medium addresses.
10181 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10182 64-bit gpr loads and stores.
10183 (rs6000_secondary_reload_ppc64): New function.
10184 * config/rs6000/rs6000-protos.h: Declare it.
10185 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10186
10187 2011-03-26 Alan Modra <amodra@gmail.com>
10188
10189 PR target/47487
10190 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10191 GNU Go in traceback table.
10192
10193 2011-03-25 Richard Henderson <rth@redhat.com>
10194
10195 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10196 if there are exactly 6 operands.
10197 (set_storage_via_setmem): Similarly.
10198
10199 2011-03-25 Kai Tietz <ktietz@redhat.com>
10200
10201 * collect2.c (write_c_file_stat): Handle backslash
10202 as right-hand directory separator.
10203 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10204 checking just for slash.
10205 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10206 instead of checking for trailing slash.
10207 * gcc.c (record_temp_file): Use filename_cmp instead
10208 of strcmp.
10209 (do_spec_1): Likewise.
10210 (replace_outfile_spec_function): Likewise.
10211 (is_directory): Use filename_ncmp instead of strncmp.
10212 (print_multilib_info): Likewise.
10213 * gcov.c (find_source): Use filename_cmp instead
10214 instead of strcmp.
10215 (make_gcov_file_name): Fix order of slash/backslash
10216 checks.
10217 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10218 (add_standard_paths): Likewise.
10219 * mips-tfile.c (saber_stop): Handle backslash.
10220 * prefix.c (update_path): Use filename_ncmp instead of
10221 strncmp.
10222 * profile.c (output_location): Use filename_cmp instead
10223 of strcmp.
10224 * read-md.c (handle_toplevel_file): Handle backslash.
10225 * tlink.c (frob_extension): Likewise.
10226 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10227 strcmp.
10228 * tree-dump.c (dequeue_and_dump): Handle backslash.
10229 * tree.c (get_file_function_name): Likewise.
10230 * gengtype.c (read_input_list): Likewise.
10231 (get_file_realbasename): Likewise.
10232 (get_output_file_with_visibility): Use filename_cmp
10233 instead of strcmp.
10234
10235 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10236
10237 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10238 case to VFPv1.
10239
10240 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10241
10242 * fold-const.c (expr_location_or): New function.
10243 (fold_truth_not_expr): Call it.
10244
10245 2011-03-25 Jeff Law <law@redhat.com>
10246
10247 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10248 va_end.
10249 * c-family/c-common.c (def_fn_type): Likewise.
10250 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10251 * emit-rtl.c (gen_rtvec): Likewise.
10252 * lto/lto-lang.c (def_fn_type): Likewise.
10253
10254 2011-03-25 Richard Guenther <rguenther@suse.de>
10255
10256 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10257 also generate copies.
10258 (fini_copy_prop): Handle constant values properly.
10259
10260 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10261
10262 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10263 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10264 (hash_loc_operands, compare_loc_operands): Handle
10265 DW_OP_GNU_entry_value.
10266
10267 2011-03-25 Kai Tietz <ktietz@redhat.com>
10268
10269 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10270 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10271 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10272 comment and use macro TARGET_64BIT_MS_ABI instead.
10273 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10274 and change default behavior for 32-bit MS_ABI.
10275 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10276 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10277 32-bit, too.
10278 (ix86_cfun_abi): Likewise.
10279 (ix86_maybe_switch_abi): Adjust comment.
10280 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10281 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10282 instead of checking for SYSV_ABI.
10283 (ix86_nsaved_sseregs): Likewise.
10284 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10285 to 16 bytes.
10286 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10287 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10288 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10289 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10290 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10291
10292 2011-03-25 Richard Guenther <rguenther@suse.de>
10293
10294 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10295 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10296 (verify_gimple): Remove.
10297 * tree-cfg.c (verify_gimple_call): Merge verification
10298 from verify_stmts.
10299 (verify_gimple_phi): Merge verification from verify_stmts.
10300 (verify_gimple_label): New function.
10301 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10302 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10303 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10304 (verify_stmts): Rename to verify_gimple_in_cfg.
10305 (verify_gimple_in_cfg): New function.
10306 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10307 * tree-ssa.c (verify_ssa): Likewise.
10308 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10309
10310 2011-03-25 Richard Guenther <rguenther@suse.de>
10311
10312 * passes.c (init_optimization_passes): Add FRE pass after
10313 early SRA.
10314
10315 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10316 Andrew Stubbs <ams@codesourcery.com>
10317
10318 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10319 for Cortex-A8.
10320 (arm_movdi_vfp_cortexa8): New pattern.
10321 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10322 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10323 instructions when tuning for Cortex-A8. Set attribute "arch".
10324 * config/arm/arm.md: Move include arm-tune.md up a bit.
10325 (define_attr "arch"): Add "onlya8" and "nota8" values.
10326 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10327
10328 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10329
10330 PR bootstrap/48282
10331 Revert:
10332 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10333
10334 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10335 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10336 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10337 * passes.c (init_optimization_passes): Move
10338 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10339
10340 2011-03-25 Kai Tietz <ktietz@redhat.com>
10341
10342 * c-typeck.c (comptypes_internal): Replace target
10343 hook call of comp_type_attributes by version in tree.c file.
10344 * gimple.c (gimple_types_compatible_p_1): Likewise.
10345 * tree-ssa.c (useless_type_conversion_p): Likewise.
10346 * tree.c (build_type_attribute_qual_variant): Likewise.
10347 (attribute_value_equal): New static helper function.
10348 (comp_type_attributes): New function.
10349 (merge_attributes): Use attribute_value_equal for comparison.
10350 (attribute_list_contained): Likewise.
10351 * tree.h (comp_type_attributes): New prototype.
10352
10353 2011-03-25 Richard Guenther <rguenther@suse.de>
10354
10355 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10356 of complex types at -O0.
10357 (verify_gimple_assign_binary): Likewise.
10358 (verify_gimple_assign_ternary): Likewise.
10359
10360 2011-03-24 Mark Wielaard <mjw@redhat.com>
10361
10362 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10363 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10364
10365 2011-03-24 Mark Wielaard <mjw@redhat.com>
10366
10367 PR debug/48041
10368 * dwarf2out.c (output_abbrev_section): Only write table when
10369 abbrev_die_table_in_use > 1.
10370
10371 2011-02-24 Richard Henderson <rth@redhat.com>
10372
10373 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10374 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10375 (alpha_expand_unaligned_load_words): Use extql.
10376 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10377 (emit_insxl): Handle all modes for consistency.
10378
10379 2011-02-24 Richard Henderson <rth@redhat.com>
10380
10381 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10382 (alpha_expand_unaligned_load): Likewise.
10383 (alpha_expand_unaligned_store): Likewise.
10384 (alpha_expand_unaligned_load_words): Likewise.
10385 (alpha_expand_unaligned_store_words): Likewise.
10386 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10387 (alpha_split_lock_test_and_set_12): Likewise.
10388 (print_operand, alpha_fold_builtin_extxx): Likewise.
10389 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10390 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10391 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10392 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10393 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10394 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10395 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10396 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10397 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10398 (extwl, extll, extql): Similarly.
10399 (inswh, inslh, insqh): Similarly.
10400 (mskbl, mskwl, mskll, mskql): Similarly.
10401 (mskwh, msklh, mskqh): Similarly.
10402
10403 2011-02-24 Richard Henderson <rth@redhat.com>
10404
10405 * config/alpha/alpha.md (attribute isa): Add er, ner.
10406 (attribute enabled): Handle them.
10407 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10408
10409 2011-02-24 Richard Henderson <rth@redhat.com>
10410
10411 * config/alpha/alpha.md (attribute isa): Add vms.
10412 (attribute enabled): Handle it.
10413 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10414 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10415 (*movtf): Rename from *movtf_internal for consistency.
10416 (*movsi): Merge with *movsi_nt_vms.
10417 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10418 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10419 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10420 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10421
10422 2011-02-24 Richard Henderson <rth@redhat.com>
10423
10424 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10425 (extendqisi2, extendhisi2): Likewise.
10426 (extendqidi2): Simplify BWX/non-BWX expansions.
10427 (extendhidi2): Similarly.
10428
10429 2011-02-24 Richard Henderson <rth@redhat.com>
10430
10431 * config/alpha/alpha.md (attribute isa): New.
10432 (attribute enabled): New.
10433 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10434 (zero_extendqisi2, zero_extendqidi2): Similarly.
10435 (zero_extendhisi2, zero_extendhidi2): Similarly.
10436 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10437
10438 2011-02-24 Richard Henderson <rth@redhat.com>
10439
10440 * config/alpha/predicates.md (input_operand): Revert last change;
10441 update comment to mention 32-bit VMS rather than Windows.
10442
10443 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10444
10445 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10446 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10447 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10448 * passes.c (init_optimization_passes): Move
10449 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10450
10451 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10452
10453 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10454
10455 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10456
10457 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10458 correctly.
10459
10460 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10461
10462 PR debug/48204
10463 * simplify-rtx.c (simplify_const_unary_operation): Call
10464 real_convert when changing mode class with FLOAT_EXTEND.
10465
10466 2011-03-24 Nick Clifton <nickc@redhat.com>
10467
10468 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10469 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10470 * config/rx/rx.c (rx_option_override): Set align_jumps,
10471 align_loops and align_labels if not set by the user.
10472 (rx_align_for_label): New function.
10473 (rx_max_skip_for_label): New function.
10474 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10475 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10476 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10477 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10478 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10479
10480 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10481
10482 PR rtl-optimization/48263
10483 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10484 and original commutative_p handling. Use maybe_gen_insn.
10485
10486 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10487
10488 * reload.c (find_reloads_subreg_address): Add address_reloaded
10489 parameter and return true there if the full address has been
10490 reloaded.
10491 (find_reloads_toplev): Pass address_reloaded flag.
10492 (find_reloads_address_1): Don't use address_reloaded parameter.
10493
10494 2011-03-24 Jeff Law <law@redhat.com>
10495
10496 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10497 unused variable "ann".
10498 (remove_unused_locals): Likewise.
10499
10500 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10501 statement.
10502
10503 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10504 after it is freed.
10505
10506 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10507
10508 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10509 for invalid symbolic addresses.
10510 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10511 larl operands.
10512
10513 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10514
10515 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10516 the argument in calls to fold_truth_not_expr.
10517
10518 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10519
10520 * tree.c (record_node_allocation_statistics): New function.
10521 (make_node_stat, copy_node_stat, build_string): Call it.
10522 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10523 (build1_stat, build_omp_clause): Likewise.
10524
10525 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10526
10527 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10528 last commit.
10529
10530 2011-03-24 Richard Guenther <rguenther@suse.de>
10531
10532 PR tree-optimization/48271
10533 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10534 blocks that still exist.
10535
10536 2011-03-24 Richard Guenther <rguenther@suse.de>
10537
10538 PR tree-optimization/48270
10539 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10540 not free datarefs before ddrs.
10541
10542 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10543
10544 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10545 from the address built for a reference with variable offset.
10546
10547 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10548
10549 PR target/48237
10550 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10551 alternatives that can be handled with movq or movabsq insn.
10552 (*movdf_internal): Disable for !TARGET_64BIT.
10553 (*movdf_internal_nointeger): Ditto.
10554 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10555
10556 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10557
10558 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10559 (FUNCTION_ARG_ADVANCE): Likewise.
10560 * tm.texi.in: Change references to them to hook references.
10561 * tm.texi: Regenerate.
10562 * targhooks.c (default_function_arg): Eliminate check for target macro.
10563 (default_function_incoming_arg): Likewise.
10564 (default_function_arg_advance): Likewise.
10565 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10566 (function_arg_advance): Likewise.
10567 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10568
10569 2011-03-24 Richard Guenther <rguenther@suse.de>
10570
10571 PR middle-end/48269
10572 * tree-object-size.c (addr_object_size): Do not double-account
10573 for MEM_REF offsets.
10574
10575 2011-03-24 Diego Novillo <dnovillo@google.com>
10576
10577 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10578 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10579 (lto_input_data_block): Move from lto-opts.c. Make extern.
10580 Update all users.
10581 (lto_input_string): Rename from input_string. Make extern.
10582 Update all users.
10583 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10584 output_string_with_length.
10585 Output 0 to indicate a non-NULL string. Update all callers to
10586 not emit 0.
10587 (lto_output_string): Rename from output_string. Make extern.
10588 Update all users.
10589 (lto_output_decl_state_streams): Make extern.
10590 (lto_output_decl_state_refs): Make extern.
10591 * lto-streamer.h (lto_input_string): Declare.
10592 (lto_input_data_block): Declare.
10593 (lto_output_string): Declare.
10594 (lto_output_string_with_length): Declare.
10595 (lto_output_decl_state_streams): Declare.
10596 (lto_output_decl_state_refs): Declare.
10597
10598 2011-03-24 Richard Guenther <rguenther@suse.de>
10599
10600 PR tree-optimization/46562
10601 * tree.c (build_invariant_address): New function.
10602 * tree.h (build_invariant_address): Declare.
10603 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10604 a renamed function moved ...
10605 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10606 Take valueization callback parameter.
10607 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10608 * gimple-fold.h: New file.
10609 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10610 (ccp_fold, fold_const_aggregate_ref,
10611 fold_ctor_reference, fold_nonarray_ctor_reference,
10612 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10613 get_base_constructor): Move ...
10614 * gimple-fold.c: ... here.
10615 (gimple_fold_stmt_to_constant_1): New function
10616 split out from ccp_fold. Take a valueization callback parameter.
10617 Valueize all operands.
10618 (gimple_fold_stmt_to_constant): New wrapper function.
10619 (fold_const_aggregate_ref_1): New function split out from
10620 fold_const_aggregate_ref. Take a valueization callback parameter.
10621 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10622 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10623 invariant POINTER_PLUS_EXPRs to invariant form.
10624 (vn_valueize): New function.
10625 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10626 * tree-vrp.c (vrp_valueize): New function.
10627 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10628 to fold statements to constants.
10629 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10630 function declarations.
10631 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10632 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10633
10634 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10635
10636 * config/h8300/predicates.md (jump_address_operand): Fix register
10637 mode check.
10638
10639 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10640
10641 * doc/invoke.texi (max-stores-to-sink): Document.
10642 * params.h (MAX_STORES_TO_SINK): Define.
10643 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10644 if either vectorization or if-conversion is disabled.
10645 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10646 tree-vect-data-refs.c vect_equal_offsets.
10647 (dr_equal_offsets_p): New function.
10648 (find_data_references_in_bb): Remove static.
10649 * tree-data-ref.h (find_data_references_in_bb): Declare.
10650 (dr_equal_offsets_p): Likewise.
10651 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10652 (vect_drs_dependent_in_basic_block): Update calls to
10653 vect_equal_offsets.
10654 (vect_check_interleaving): Likewise.
10655 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10656 (cond_if_else_store_replacement): Rename to...
10657 (cond_if_else_store_replacement_1): ... this. Change arguments and
10658 documentation.
10659 (cond_if_else_store_replacement): New function.
10660 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10661 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10662
10663 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10664
10665 PR target/46934
10666 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10667 to subtract lower bound instead of GEN_INT().
10668
10669 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10670
10671 PR other/48179
10672 PR other/48221
10673 PR other/48234
10674 * doc/extend.texi (Alignment): Move section to match order in TOC.
10675 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10676 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10677
10678 2011-03-23 Jeff Law <law@redhat.com>
10679
10680 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10681 before removing the edge.
10682
10683 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10684 it may have been freed by redirect_branch_edge or
10685 redirect_edge_succ_nodup.
10686
10687 2011-03-23 Richard Guenther <rguenther@suse.de>
10688
10689 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10690 (check_va_list_escapes): Likewise.
10691 (check_all_va_list_escapes): Likewise.
10692
10693 2011-03-23 Richard Guenther <rguenther@suse.de>
10694
10695 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10696 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10697 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10698 (alias.o): Likewise.
10699 (ipa-type-escape.o): Remove.
10700 (ipa-struct-reorg.o): Likewise.
10701 (GTFILES): Remove ipa-struct-reorg.c.
10702 * alias.c: Do not include ipa-type-escape.h.
10703 * tree-ssa-alias.c: Likewise.
10704 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10705 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10706 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10707 and ipa-type-escape passes.
10708 * tree-pass.h (pass_ipa_type_escape): Remove.
10709 (pass_ipa_struct_reorg): Likewise.
10710 * ipa-struct-reorg.h: Remove.
10711 * ipa-struct-reorg.c: Likewise.
10712 * ipa-type-escape.h: Likewise.
10713 * ipa-type-escape.c: Likewise.
10714 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10715 (--param struct-reorg-cold-struct-ratio): Likewise.
10716 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10717 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10718 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10719
10720 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10721
10722 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10723 cpu attribute value.
10724 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10725 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10726 * config/s390/s390.c (processor_flags_table): New constant array.
10727 (s390_handle_arch_option): Remove.
10728 (s390_handle_option): Remove s390_handle_arch_option invocations
10729 and OPT_mwarn_framesize_ handling.
10730 (s390_option_override): Remove s390_handle_arch_option invocation.
10731 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10732 warnings.
10733 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10734 * config/s390/s390.opt (s390_tune, s390_arch)
10735 (march=): Replace s390_arch_option enum and values with
10736 processor_type. Set variable name to s390_arch. Set
10737 initialization value.
10738 (mtune=): Replace s390_arch_option with processor_type. Set
10739 variable name to s390_tune. Set initialization value.
10740
10741 2011-03-23 Julian Brown <julian@codesourcery.com>
10742
10743 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10744 accesses which are not naturally aligned.
10745
10746 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10747
10748 PR target/47553
10749 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10750
10751 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10752
10753 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10754 parameter from "int" to "enum insn_code".
10755 (expand_operand_type): New enum.
10756 (expand_operand): New structure.
10757 (create_expand_operand): New function.
10758 (create_fixed_operand, create_output_operand): Likewise
10759 (create_input_operand, create_convert_operand_to): Likewise.
10760 (create_convert_operand_from, create_address_operand): Likewise.
10761 (create_integer_operand): Likewise.
10762 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10763 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10764 (expand_insn, expand_jump_insn): Likewise.
10765 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10766 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10767 (expand_movstr, expand_builtin___clear_cache): Likewise.
10768 (expand_builtin_lock_release): Likewise.
10769 * explow.c (allocate_dynamic_stack_space): Likewise.
10770 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10771 and use the default handling in that case.
10772 * expmed.c (check_predicate_volatile_ok): Delete.
10773 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10774 (emit_cstore): Likewise.
10775 * expr.c (emit_block_move_via_movmem): Likewise.
10776 (set_storage_via_setmem, expand_assignment): Likewise.
10777 (emit_storent_insn, try_casesi): Likewise.
10778 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10779 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10780 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10781 (expand_twoval_unop, expand_twoval_binop): Likewise.
10782 (expand_unop_direct, emit_indirect_jump): Likewise.
10783 (emit_conditional_move, vector_compare_rtx): Likewise.
10784 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10785 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10786 (expand_sync_lock_test_and_set): Likewise.
10787 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10788 (emit_unop_insn): Likewise.
10789 (expand_copysign_absneg): Change icode to an insn_code.
10790 (create_convert_operand_from_type): New function.
10791 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10792 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10793 (expand_insn, expand_jump_insn): Likewise.
10794 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10795 than const_int_operand for operand 2.
10796
10797 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10798
10799 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10800 if possible.
10801
10802 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10803
10804 * emit-rtl.c (emit_pattern_before_noloc): New function.
10805 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10806 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10807 (emit_pattern_after_noloc): New function.
10808 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10809 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10810
10811 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10812
10813 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10814 (__ffsDI2): Likewise.
10815
10816 2011-03-22 Richard Henderson <rth@redhat.com>
10817
10818 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10819 of !TARGET_ABI_OPEN_VMS.
10820 (alpha_trampoline_init, alpha_start_function): Likewise.
10821 (alpha_expand_epilogue, alpha_file_start): Likewise.
10822 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10823 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10824 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10825 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10826 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10827
10828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10829
10830 * config/s390/s390-opts.h: New.
10831 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10832 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10833 s390_stack_guard): Remove.
10834 (s390_handle_arch_option): Return void. Take enum
10835 s390_arch_option value instead of string and searching array.
10836 (s390_handle_option): Don't assert that global structures are in
10837 use. Access variables via opts pointer. Use error_at. Don't use
10838 sscanf for -mstack-guard= or -mstack-size=. Update call to
10839 s390_handle_arch_option.
10840 (s390_option_override): Update call to s390_handle_arch_option.
10841 (s390_emit_prologue): Use %d format for s390_stack_size in
10842 diagnostic. Use %wd for HOST_WIDE_INT.
10843 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10844 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10845 * config/s390/s390.opt (config/s390/s390-opts.h): New
10846 HeaderInclude entry.
10847 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10848 s390_arch_flags, s390_warn_framesize): New Variable entries.
10849 (s390_arch_option): New Enum and EnumValue entries.
10850 (march=): Use Enum instead of Var.
10851 (mstack-guard=, mstack-size=): Use UInteger and Var.
10852 (mtune=): Use Enum.
10853
10854 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10855
10856 * config/score/score.c (score_handle_option): Don't assert that
10857 global structures are in use. Access target_flags via opts
10858 pointer. Use value of -march= option to determine target_flags
10859 settings.
10860 * config/score/score.opt (march=): Use Enum.
10861 (score_arch): New Enum and EnumValue entries.
10862
10863 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10864
10865 * config/mep/mep.c (option_mtiny_specified): Remove.
10866 (mep_option_override): Move register handling for -mivc2 from
10867 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10868 instead of option_mtiny_specified.
10869 (mep_handle_option): Access target_flags via opts pointer. Don't
10870 assert that global structures are in use. Defer part of -mivc2
10871 handling and move it to mep_option_override.
10872 * config/mep/mep.opt (IVC2): New Mask entry.
10873 (mivc2): Use Var and Defer instead of Mask.
10874
10875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10876
10877 * config/v850/v850-opts.h: New.
10878 * config/v850/v850.c (small_memory): Replace with
10879 small_memory_physical_max array. Make that array static const.
10880 (v850_handle_memory_option): Take integer value of argument. Take
10881 gcc_options pointer, option text and location. Return void.
10882 Update for changes to small memory structures.
10883 (v850_handle_option): Access target_flags via opts pointer. Don't
10884 assert that global structures are in use. Update calls to
10885 v850_handle_memory_option.
10886 (v850_encode_data_area): Update references to small memory settings.
10887 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10888 (enum small_memory_type): Move to v850-opts.h.
10889 * config/v850/v850.opt (config/v850/v850-opts.h): New
10890 HeaderInclude entry.
10891 (small_memory_max): New Variable entry.
10892 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10893 (mtda, mzda): Likewise.
10894
10895 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10896
10897 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10898 pointer. Don't assert that global structures are in use.
10899
10900 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10901
10902 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10903 via opts pointer. Don't assert that global structures are in use.
10904
10905 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10906
10907 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10908 (munix=93): Use Var.
10909 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10910 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10911 * config/pa/pa-opts.h: New.
10912 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10913 (pa_handle_option): Don't assert that global structures are in
10914 use. Access target_flags via opts pointer. Don't handle
10915 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10916 OPT_munix_98 here.
10917 (pa_option_override): Handle deferred OPT_mfixed_range_.
10918
10919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10920
10921 * config/mn10300/mn10300-opts.h: New.
10922 * config/mn10300/mn10300.c (mn10300_processor,
10923 mn10300_tune_string): Remove.
10924 (mn10300_handle_option): Don't assert that global structures are
10925 in use. Access mn10300_processor via opts pointer. Don't handle
10926 OPT_mtune_ here.
10927 * config/mn10300/mn10300.h (enum processor_type): Move to
10928 mn10300-opts.h.
10929 (mn10300_processor): Remove.
10930 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10931 HeaderInclude entry.
10932 (mn10300_processor): New Variable entry.
10933 (mtune=): Use Var.
10934
10935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10936
10937 * config/microblaze/microblaze.c: Don't include opts.h.
10938 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10939 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10940 (mno-clearbss): Use Var and Warn.
10941
10942 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10943
10944 * config/m32r/m32r-opts.h: New.
10945 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10946 (m32r_handle_option): Don't assert that global structures are in
10947 use. Access target_flags and m32r_cache_flush_func via opts
10948 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10949 OPT_mno_flush_trap here.
10950 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10951 include of m32r-opts.h.
10952 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10953 HeaderInclude entry.
10954 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10955 (mmodel=): Use Enum and Var.
10956 (m32r_model): New Enum and EnumValue entries.
10957 (mno-flush-trap): Use Var.
10958 (msdata=): Use Enum and Var.
10959 (m32r_sdata): New Enum and EnumValue entries.
10960
10961 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10962
10963 * config/m32c/m32c.c: Don't include opts.h.
10964 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10965 m32c_handle_option): Remove.
10966 (m32c_option_override): Check global_options_set.x_target_memregs
10967 instead of target_memregs_set.
10968 * config/m32c/m32c.h (target_memregs): Remove.
10969 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10970 variable.
10971
10972 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10973
10974 * config/iq2000/iq2000-opts.h: New.
10975 * config/iq2000/iq2000.c: Don't include opts.h.
10976 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10977 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10978 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10979 HeaderInclude entry.
10980 (iq2000_tune): New Variable entry.
10981 (march=): Add comment. Use Enum.
10982 (iq2000_arch): New Enum and EnumValue entries.
10983 (mcpu=): Use Enum and Var.
10984 (iq2000_tune): New Enum and EnumValue entries.
10985
10986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10987
10988 * config/ia64/ia64-opts.h: New.
10989 * config/ia64/ia64.c (ia64_tune): Remove.
10990 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10991 here. Use error_at.
10992 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10993 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10994 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10995 HeaderInclude entry.
10996 (ia64_tune): New Variable entry.
10997 (mfixed-range=): Use Defer and Var.
10998 (mtune=): Use Enum and Var.
10999 (ia64_tune): New Enum and EnumValue entries.
11000
11001 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11002
11003 * config/frv/frv-opts.h: New.
11004 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11005 frv-opts.h.
11006 (frv_cpu_type): Remove.
11007 * config/frv/frv.c: Don't include opts.h.
11008 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11009 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11010 (frv_cpu_type): New Variable entry.
11011 (frv_cpu): New Enum and EnumValue entries.
11012
11013 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11014
11015 * config/cris/cris.c (cris_handle_option): Access target_flags via
11016 opts pointer. Don't assert that global structures are in use.
11017 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11018 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11019
11020 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11021
11022 * config/bfin/bfin-opts.h: New.
11023 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11024 bfin_si_revision, bfin_workarounds): Remove.
11025 (bfin_cpus): Make static const.
11026 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11027 not bfin_lib_id_given.
11028 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11029 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11030 pointer. Use error_at. Don't assert that global structures are in use.
11031 * config/bfin/bfin.h: Include bfin-opts.h.
11032 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11033 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11034 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11035 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11036 entries.
11037
11038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11039
11040 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11041 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11042 or -msoft-float here.
11043 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11044 -msoft-float and -mhard-float.
11045 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11046 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11047 msoft-float.
11048 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11049 -msoft-float.
11050 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11051 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11052 not mhard-float.
11053 (LIBGCC_SPEC): Don't handle -msoft-float.
11054 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11055 -mhard-float.
11056 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11057 msoft-float.
11058 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11059 -mfloat-abi=*, not -msoft-float and -mhard-float.
11060 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11061 -msoft-float.
11062 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11063 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11064 mhard-float and msoft-float.
11065 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11066 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11067 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11068 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11069 mhard-float.
11070 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11071 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11072 msoft-float.
11073 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11074 not mhard-float.
11075 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11076 not msoft-float.
11077
11078 2011-03-22 Richard Henderson <rth@redhat.com>
11079
11080 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11081 TARGET_ABI_WINDOWS_NT.
11082 (alpha_output_function_end_prologue): Likewise.
11083 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11084 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11085 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11086 (trap, *movsi_nt_vms): Likewise.
11087 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11088 (*tablejump_osf_nt_internal): Remove.
11089 * config/alpha/predicates.md (input_operand): Only test Pmode.
11090
11091 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11092
11093 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11094 via opts pointer. Use error_at. Don't assert that global
11095 structures are in use.
11096
11097 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11098
11099 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11100 (ix86_handle_option): Access ix86_isa_flags and
11101 ix86_isa_flags_explicit via opts pointer. Don't assert that
11102 global structures are in use.
11103 (ix86_function_specific_save, ix86_function_specific_restore):
11104 Update ix86_isa_flags_explicit field name.
11105 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11106 (ix86_isa_flags_explicit): Rename TargetSave entry to
11107 x_ix86_isa_flags_explicit.
11108
11109 2011-03-22 Richard Henderson <rth@redhat.com>
11110
11111 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11112 (alpha_option_override, direct_return): Likewise.
11113 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11114 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11115 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11116 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11117 (alpha_expand_epilogue, alpha_end_function): Likewise.
11118 (alpha_init_libfuncs): Likewise.
11119 (struct machine_function): Remove unicosmk members.
11120 (print_operand) ['t']: Remove.
11121 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11122 unicosmk_output_module_name, unicosmk_output_common,
11123 current_section_align, unicosmk_output_text_section_asm_op,
11124 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11125 unicosmk_section_type_flags, unicosmk_unique_section,
11126 unicosmk_asm_named_section, unicosmk_insert_attributes,
11127 unicosmk_output_align, unicosmk_defer_case_vector,
11128 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11129 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11130 unicosmk_output_ssib, unicosmk_add_call_info_word,
11131 unicosmk_extern_head, unicosmk_output_default_externs,
11132 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11133 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11134 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11135 * config/alpha/alpha-protos.h: Update.
11136 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11137 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11138 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11139 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11140 (*mulsi_se, mulvsi3): Likewise.
11141 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11142 (*divmodsi_internal, call, call_value, realign): Likewise.
11143 (moddi3, umoddi3): Likewise; remove duplicate expander.
11144 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11145 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11146 (*movdi_nofix): Remove r/U alternative.
11147 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11148 * config/alpha/constraints.md ("U"): Remove.
11149 * config/alpha/predicates.md (call_operand"): Don't test
11150 TARGET_ABI_UNICOSMK.
11151
11152 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11153
11154 * target.def (handle_option): Take gcc_options and
11155 cl_decoded_option pointers and location_t.
11156 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11157 * doc/tm.texi: Regenerate.
11158 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11159 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11160 * lto-opts.c (lto_reissue_options): Generate option structure for
11161 targetm.handle_option call.
11162 * opts.c (target_handle_option): Update call to
11163 targetm.handle_option. Remove assertions about values now passed
11164 down to hook.
11165 * targhooks.c (default_target_handle_option): New.
11166 * targhooks.h (default_target_handle_option): Declare.
11167 * config/alpha/alpha.c: Include opts.h.
11168 (alpha_handle_option): Update to new hook interface.
11169 * config/arm/arm.c: Include opts.h.
11170 (arm_handle_option): Update to new hook interface.
11171 * config/arm/t-arm (arm.o): Update dependencies.
11172 * config/bfin/bfin.c: Include opts.h.
11173 (bfin_handle_option): Update to new hook interface.
11174 * config/cris/cris.c: Include opts.h.
11175 (cris_handle_option): Update to new hook interface.
11176 * config/frv/frv.c: Include opts.h.
11177 (frv_handle_option): Update to new hook interface.
11178 * config/i386/i386.c: Include opts.h.
11179 (ix86_handle_option): Update to new hook interface.
11180 (ix86_valid_target_attribute_inner_p): Generate option structure
11181 for call to ix86_handle_option.
11182 * config/i386/t-i386 (i386.o): Update dependencies.
11183 * config/ia64/ia64.c: Include opts.h.
11184 (ia64_handle_option): Update to new hook interface.
11185 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11186 * config/iq2000/iq2000.c: Include opts.h.
11187 (iq2000_handle_option): Update to new hook interface.
11188 * config/m32c/m32c.c: Include opts.h.
11189 (m32c_handle_option): Update to new hook interface.
11190 * config/m32r/m32r.c: Include opts.h.
11191 (m32r_handle_option): Update to new hook interface.
11192 * config/m68k/m68k.c: Include opts.h.
11193 (m68k_handle_option): Update to new hook interface.
11194 * config/mep/mep.c: Include opts.h.
11195 (mep_handle_option): Update to new hook interface.
11196 * config/microblaze/microblaze.c: Include opts.h.
11197 (microblaze_handle_option): Update to new hook interface.
11198 * config/mips/mips.c: Include opts.h.
11199 (mips_handle_option): Update to new hook interface.
11200 * config/mn10300/mn10300.c: Include opts.h.
11201 (mn10300_handle_option): Update to new hook interface.
11202 * config/pa/pa.c: Include opts.h.
11203 (pa_handle_option): Update to new hook interface.
11204 * config/pdp11/pdp11.c: Include opts.h.
11205 (pdp11_handle_option): Update to new hook interface.
11206 * config/rs6000/rs6000.c: Include opts.h.
11207 (rs6000_handle_option): Update to new hook interface.
11208 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11209 * config/rx/rx.c: Include opts.h.
11210 (rx_handle_option): Update to new hook interface.
11211 * config/s390/s390.c: Include opts.h.
11212 (s390_handle_option): Update to new hook interface.
11213 * config/score/score.c: Include opts.h.
11214 (score_handle_option): Update to new hook interface.
11215 * config/sh/sh.c: Include opts.h.
11216 (sh_handle_option): Update to new hook interface.
11217 * config/sparc/sparc.c: Include opts.h.
11218 (sparc_handle_option): Update to new hook interface.
11219 * config/v850/v850.c: Include opts.h.
11220 (v850_handle_option): Update to new hook interface.
11221
11222 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11223
11224 * gcc.c (driver_unknown_option_callback): Only permit and save
11225 unknown -Wno- options.
11226 (driver_wrong_lang_callback): Save options directly instead of via
11227 driver_unknown_option_callback.
11228
11229 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11230
11231 * combine.c (simplify_set): Try harder to find the best CC mode when
11232 simplifying a nested COMPARE on the RHS.
11233
11234 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11235
11236 * config/alpha/gnu.h: Remove.
11237 * config/arc: Remove directory.
11238 * config/arm/netbsd.h: Remove.
11239 * config/arm/t-pe: Remove.
11240 * config/crx: Remove directory.
11241 * config/i386/netbsd.h: Remove.
11242 * config/m68hc11: Remove directory.
11243 * config/m68k/uclinux-oldabi.h: Remove.
11244 * config/mcore/mcore-pe.h: Remove.
11245 * config/mcore/t-mcore-pe: Remove.
11246 * config/netbsd-aout.h: Remove.
11247 * config/rs6000/gnu.h: Remove.
11248 * config/sh/sh-symbian.h: Remove.
11249 * config/sh/symbian-base.c: Remove.
11250 * config/sh/symbian-c.c: Remove.
11251 * config/sh/symbian-cxx.c: Remove.
11252 * config/sh/symbian-post.h: Remove.
11253 * config/sh/symbian-pre.h: Remove.
11254 * config/sh/t-symbian: Remove.
11255 * config/svr3.h: Remove.
11256 * config/vax/netbsd.h: Remove.
11257 * config.build: Don't handle i[34567]86-*-pe.
11258 * config.gcc: Remove handling of deprecations for most deprecated
11259 targets.
11260 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11261 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11262 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11263 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11264 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11265 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11266 Remove cases.
11267 * config.host: Don't handle i[34567]86-*-pe.
11268 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11269 (ASM_SPEC32): Don't handle -mcall-gnu.
11270 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11271 -mcall-gnu.
11272 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11273 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11274 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11275 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11276 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11277 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11278 conditional on SYMBIAN.
11279 * configure.ac: Don't handle powerpc*-*-gnu*.
11280 * configure: Regenerate.
11281 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11282 * doc/install-old.texi (m6811, m6812): Don't mention.
11283 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11284 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11285 (m68k-uclinuxoldabi): Don't mention.
11286 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11287 Remove.
11288 (-mcall-gnu): Remove.
11289 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11290 families): Remove constraint documentation.
11291
11292 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11293
11294 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11295 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11296 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11297
11298 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11299
11300 PR target/48226
11301 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11302 vector when peeking at the next token for vector, don't expand the
11303 keywords.
11304
11305 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11306
11307 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11308 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11309 * config/avr/avr.c (init_cumulative_args)
11310 (avr_function_arg_advance): Use it.
11311 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11312 sibcall epilogues.
11313 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11314 (avr_function_ok_for_sibcall): ...this new function.
11315 (avr_lookup_function_attribute1): New static Function.
11316 (avr_naked_function_p, interrupt_function_p)
11317 (signal_function_p, avr_OS_task_function_p)
11318 (avr_OS_main_function_p): Use it.
11319 * config/avr/avr.md ("sibcall", "sibcall_value")
11320 ("sibcall_epilogue"): New expander.
11321 ("*call_insn", "*call_value_insn"): New insn.
11322 ("call_insn", "call_value_insn"): Remove
11323 ("call", "call_value", "epilogue"): Change expander to handle
11324 sibling calls.
11325
11326 2011-03-21 Nick Clifton <nickc@redhat.com>
11327
11328 * doc/invoke.texi (Overall Options): Move closing brace to end of
11329 options list.
11330 (Optimization Options): Add missing @gol.
11331 (Directory Options): Likewise.
11332 (i386 and x86-64 Options): Likewise.
11333 (RS6000 and PowerPC Options): Likewise.
11334 (i386 and x86-64 Windows Options): Likewise.
11335 (V850 Options): Add text missing from descriptions.
11336
11337 2011-03-22 Richard Henderson <rth@redhat.com>
11338
11339 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11340 (avr_incoming_return_addr_rtx): New.
11341 (emit_push_byte): New.
11342 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11343 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11344 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11345 (emit_pop_byte): New.
11346 (expand_epilogue): Use it. Pop frame pointer by bytes.
11347 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11348 (INCOMING_RETURN_ADDR_RTX): New.
11349 (INCOMING_FRAME_SP_OFFSET): New.
11350 (ARG_POINTER_CFA_OFFSET): New.
11351 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11352 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11353 (pophi): Remove.
11354
11355 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11356
11357 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11358
11359 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11360 (FUNCTION_ARG_ADVANCE): Likewise.
11361 * tm.texi.in: Change references to them to hook references.
11362 * tm.texi: Regenerate.
11363 * targhooks.c (default_function_arg): Eliminate check for target
11364 macro.
11365 (default_function_incoming_arg): Likewise.
11366 (default_function_arg_advance): Likewise.
11367 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11368 (function_arg_advance): Likewise.
11369 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11370
11371 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11372
11373 * tree.c (build_call_1): New function.
11374 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11375
11376 2011-03-22 Richard Guenther <rguenther@suse.de>
11377
11378 PR tree-optimization/48228
11379 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11380 for single-arg PHIs.
11381
11382 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11383
11384 PR rtl-optimization/48143
11385 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11386 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11387 sse2_cvtps2pd): Likewise.
11388
11389 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11390
11391 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11392
11393 2011-03-22 Richard Guenther <rguenther@suse.de>
11394
11395 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11396 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11397 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11398 and REALIGN_LOAD_EXPR.
11399 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11400 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11401 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11402 DOT_PROD_EXPR case ...
11403 (expand_expr_real_2): ... here.
11404 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11405 and REALIGN_LOAD_EXPR.
11406 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11407 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11408 (vect_create_epilog_for_reduction): Likewise.
11409 (vectorizable_reduction): Likewise.
11410 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11411 * tree-vect-stmts.c (vectorizable_load): Likewise.
11412
11413 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11414
11415 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11416
11417 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11418
11419 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11420 handling for PLTOFF/GOTOFF.
11421
11422 2011-03-22 Nick Clifton <nickc@redhat.com>
11423
11424 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11425 trailing backslash from the end of the macro definition.
11426
11427 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11428
11429 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11430 and PLT unspecs.
11431
11432 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11433
11434 * expr.h (prepare_operand): Move to...
11435 * optabs.h (prepare_operand): ...here and change the insn code
11436 parameter from "int" to "enum insn_code".
11437 (insn_operand_matches): Declare.
11438 * expr.c (init_expr_target): Use insn_operand_matches.
11439 (compress_float_constant): Likewise.
11440 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11441 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11442 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11443 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11444 Likewise.
11445 (gen_cond_trap): Likewise.
11446 (prepare_operand): Likewise. Change icode to an insn_code.
11447 (insn_operand_matches): New function.
11448 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11449 * reload1.c (gen_reload): Likewise.
11450 * targhooks.c (default_secondary_reload): Likewise.
11451
11452 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11453
11454 * config/alpha/alpha.md (unspec): New define_c_enum.
11455 (unspecv): Ditto.
11456
11457 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11458
11459 PR debug/48214
11460 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11461 between a call and its CALL_ARG_LOCATION note.
11462
11463 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11464
11465 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11466
11467 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11468
11469 PR c/42544
11470 PR c/48197
11471 * c-common.c (shorten_compare): If primopN is first sign-extended
11472 to opN and then zero-extended to result type, set primopN to opN.
11473
11474 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11475
11476 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11477 for barrier handlers.
11478
11479 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11480
11481 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11482 UNSPEC constants to be in the unspec enumeration, and redefine
11483 all UNSPECV constants to be in the unspecv enumeration, so that
11484 dumps print which unspec/unspec_volatile this is.
11485 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11486 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11487 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11488 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11489 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11490
11491 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11492 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11493 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11494 * config/rs6000/sync.md (isync, lwsync): Ditto.
11495
11496 2011-03-21 Richard Guenther <rguenther@suse.de>
11497
11498 * params.def (lto-min-partition): Fix typo.
11499
11500 2011-03-21 Richard Guenther <rguenther@suse.de>
11501
11502 PR c/47939
11503 * c-decl.c (grokdeclarator): Drop to the main variant only
11504 for array types. Drop flag_gen_aux_info check.
11505
11506 2011-03-21 Richard Guenther <rguenther@suse.de>
11507
11508 PR translation/47911
11509 * params.def (lto-partitions): Fix typo.
11510 (lto-min-partition): Fix wording.
11511
11512 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11513
11514 * config/rs6000/t-freebsd: Remove duplication from file.
11515
11516 2011-03-21 Richard Guenther <rguenther@suse.de>
11517
11518 PR middle-end/47661
11519 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11520
11521 2011-03-21 Richard Guenther <rguenther@suse.de>
11522
11523 PR lto/48210
11524 * params.def (lto-partitions): Require at least 1 partition.
11525
11526 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11527
11528 * gthr-solaris.h: Remove.
11529 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11530 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11531 (LIB_SPEC): Likewise.
11532 * config/sol2.opt (threads): Remove.
11533 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11534 (sparc*-*-solaris2*): Likewise.
11535 * configure.ac (enable_threads): Enable solaris support.
11536 * configure: Regenerate.
11537 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11538 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11539 solaris.
11540
11541 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11542
11543 * config.gcc: Obsolete *-*-solaris2.8*.
11544 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11545
11546 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11547
11548 PR bootstrap/48135
11549 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11550 reference. Solaris 8 perl works.
11551
11552 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11553
11554 PR bootstrap/48135
11555 * doc/install.texi (Prerequisites): Move jar etc. up.
11556 Explain support library version requirements.
11557
11558 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11559
11560 PR bootstrap/48135
11561 * doc/install.texi (Prerequisites): Move Perl to build
11562 requirements. Always necessary on Solaris 2 with Sun ld.
11563
11564 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11565
11566 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11567 binutils 2.21.
11568 (Specific, i?86-*-solaris2.[89]): Likewise.
11569 (Specific, i?86-*-solaris2.10): Likewise.
11570 (Specific, mips-sgi-irix6): Likewise.
11571 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11572 Update for binutils 2.21.
11573
11574 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11575
11576 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11577 Allow -fuse-linker-plugin for non-default plugin linker.
11578 * configure: Regenerate.
11579
11580 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11581
11582 PR bootstrap/48167
11583 * gengtype.c (files_rules): Added rule for cp/parser.h.
11584
11585 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11586
11587 PR target/48213
11588 * config/s390/s390.c (s390_delegitimize_address): Don't call
11589 lowpart_subreg if orig_x has BLKmode.
11590
11591 2011-03-21 Kai Tietz <ktietz@redhat.com>
11592
11593 PR target/12171
11594 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11595 * tree.h (attribute_spec): Add new member affects_type_identity.
11596 * attribs.c (empty_attribute_table): Adjust attribute_spec
11597 initializers.
11598 * config/alpha/alpha.c: Likewise.
11599 * config/arc/arc.c: Likewise.
11600 * config/arm/arm.c: Likewise.
11601 * config/avr/avr.c: Likewise.
11602 * config/bfin/bfin.c: Likewise.
11603 * config/crx/crx.c: Likewise.
11604 * config/darwin.h: Likewise.
11605 * config/h8300/h8300.c: Likewise.
11606 * config/i386/cygming.h: Likewise.
11607 * config/i386/i386.c: Likewise.
11608 * config/ia64/ia64.c: Likewise.
11609 * config/m32c/m32c.c: Likewise.
11610 * config/m32r/m32r.c: Likewise.
11611 * config/m68hc11/m68hc11.c: Likewise.
11612 * config/m68k/m68k.c: Likewise.
11613 * config/mcore/mcore.c: Likewise.
11614 * config/mep/mep.c: Likewise.
11615 * config/microblaze/microblaze.c: Likewise.
11616 * config/mips/mips.c: Likewise.
11617 * config/rs6000/rs6000.c: Likewise.
11618 * config/rx/rx.c: Likewise.
11619 * config/sh/sh.c: Likewise.
11620 * config/sol2.h: Likewise.
11621 * config/sparc/sparc.c: Likewise.
11622 * config/spu/spu.c: Likewise.
11623 * config/stormy16/stormy16.c: Likewise.
11624 * config/v850/v850.c: Likewise.
11625
11626 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11627
11628 * simplify-rtx.c (simplify_binary_operation_1): Handle
11629 (xor (and A B) C) case when B and C are both constants.
11630
11631 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11632
11633 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11634
11635 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11636
11637 PR bootstrap/48168
11638 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11639
11640 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11641
11642 PR rtl-optimization/48156
11643 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11644 assume df and df_lr are not NULL.
11645
11646 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11647
11648 PR debug/48023
11649 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11650 between a call and its CALL_ARG_LOCATION note.
11651
11652 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11653
11654 PR debug/48178
11655 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11656 between a call and its corresponding CALL_ARG_LOCATION note.
11657
11658 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11659
11660 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11661 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11662 * haifa-sched.c (setup_ref_regs): Ditto.
11663 * caller-save.c (add_used_regs_1): Ditto.
11664 * dse.c (look_for_hardregs): Ditto.
11665 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11666 * sched-rgn.c (check_live_1): Ditto.
11667
11668 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11669
11670 * c-decl.c (diagnose_mismatched_decls): Give an error for
11671 redefining a typedef with variably modified type.
11672
11673 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11674
11675 * c-decl.c (grokfield): Don't allow typedefs for structures or
11676 unions with no tag by default.
11677 * doc/extend.texi (Unnamed Fields): Update.
11678
11679 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11680
11681 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11682 Rewrite using indirect functions.
11683 (lwp_slwpcb): Ditto.
11684 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11685 (avx_vinsertf128<mode>): Ditto.
11686
11687 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11688
11689 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11690 unspecs.
11691
11692 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11693
11694 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11695 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11696
11697 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11698
11699 PR rtl-optimization/48170
11700 * gcse.c (hoist_code): Remove bogus asserts.
11701
11702 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11703
11704 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11705 computation for prologue/epilogue.
11706
11707 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11708
11709 * Makefile.in (check-consistency): Remove.
11710
11711 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11712
11713 PR debug/48176
11714 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11715 arange_table_in_use is 0, but either text_section_used or
11716 cold_text_section_used is true. Don't call it if
11717 !info_section_emitted.
11718
11719 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11720
11721 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11722 FUNCTION_VALUE_REGNO_P): Remove.
11723 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11724 Remove.
11725 * config/avr/avr.c (avr_ret_register): Make static inline.
11726 (avr_function_value_regno_p): New function.
11727 (avr_libcall_value): Make static. Add 'func' argument.
11728 (avr_function_value): Make static. Rename 'func' argument to
11729 'fn_decl_or_type', forward it to avr_libcall_value. Call
11730 avr_ret_register function instead of RET_REGISTER macro.
11731 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11732
11733 2011-03-18 Jason Merrill <jason@redhat.com>
11734
11735 PR c++/23372
11736 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11737
11738 2011-03-18 Richard Guenther <rguenther@suse.de>
11739
11740 * doc/install.texi (--enable-gold): Remove.
11741 (--with-plugin-ld): Document.
11742 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11743
11744 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11745
11746 PR middle-end/47790
11747 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11748 again after expansion changes.
11749
11750 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11751
11752 * combine.c (try_combine): Do simplification only call of
11753 subst() on i2 even when i1 is present. Update comments.
11754
11755 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11756
11757 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11758 and UNSPEC_PCREL_SYMOFF.
11759
11760 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11761
11762 * config/s390/s390.md: Use define_c_enum for the unspec constant
11763 definitions.
11764
11765 2011-03-18 Richard Henderson <rth@redhat.com>
11766 Jakub Jelinek <jakub@redhat.com>
11767
11768 PR bootstrap/48161
11769 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11770 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11771
11772 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11773
11774 PR middle-end/47725
11775 * combine.c (cant_combine_insn_p): Don't check zero/sign
11776 extended hard registers.
11777
11778 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11779
11780 PR middle-end/47725
11781 * combine.c (cant_combine_insn_p): Check zero/sign extended
11782 hard registers.
11783
11784 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11785
11786 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11787 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11788 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11789 Change return type to bool.
11790 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11791
11792 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11793
11794 PR debug/48163
11795 * var-tracking.c (prepare_call_arguments): If CALL target
11796 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11797 pc instead of looking it up using cselib_lookup and use
11798 Pmode for it if x has VOIDmode.
11799 * dwarf2out.c (gen_subprogram_die): If also both first and
11800 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11801
11802 PR debug/48163
11803 * function.c (assign_parms): For data.passed_pointer parms
11804 use MEM of data.entry_parm instead of data.entry_parm itself
11805 as DECL_INCOMING_RTL.
11806 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11807 also when passed and declared mode is the same, DECL_RTL
11808 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11809 a MEM too.
11810
11811 2011-03-16 Jeff Law <law@redhat.com>
11812
11813 PR rtl-optimization/37273
11814 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11815 handle them like argument loads from stack slots. Do not double
11816 count memory for memory constants and argument loads from stack slots.
11817
11818 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11819
11820 PR debug/48160
11821 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11822
11823 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11824
11825 PR target/48171
11826 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11827
11828 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11829
11830 PR bootstrap/48153
11831 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11832 if dwarf_strict.
11833 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11834 Clear call_arg_locations and call_arg_loc_last always.
11835
11836 PR middle-end/48152
11837 * var-tracking.c (prepare_call_arguments): If argument needs to be
11838 passed by reference, adjust argtype and mode.
11839
11840 2011-03-17 Richard Guenther <rguenther@suse.de>
11841
11842 PR middle-end/48134
11843 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11844 a value make sure to fold the statement.
11845
11846 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11847
11848 PR target/43872
11849 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11850 return condition with !cfun->calls_alloca.
11851
11852 2011-03-17 Richard Guenther <rguenther@suse.de>
11853
11854 PR bootstrap/48148
11855 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11856 origin for decls in other ltrans units.
11857 (input_varpool_node): Likewise.
11858
11859 2011-03-17 Richard Guenther <rguenther@suse.de>
11860
11861 PR middle-end/48165
11862 * tree-object-size.c (compute_object_offset): Properly return
11863 the offset operand of MEM_REFs as sizetype.
11864
11865 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11866
11867 PR rtl-optimization/48141
11868 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11869 * dse.c: Include params.h.
11870 (active_local_stores_len): New variable.
11871 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11872 to NULL.
11873 (record_store, check_mem_read_rtx): Decrease it when removing
11874 from the chain.
11875 (scan_insn): Likewise. Increase it when adding to chain, if it
11876 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11877 set active_local_stores to NULL before the addition.
11878 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11879
11880 PR rtl-optimization/48141
11881 * dse.c (record_store): If no positions are needed in an insn
11882 that cannot be deleted, at least unchain it from active_local_stores.
11883
11884 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11885
11886 PR debug/47510
11887 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11888 (lookup_type_die_strip_naming_typedef): ... here.
11889 (get_context_die): Use it.
11890 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11891 the anonymous struct named by the naming typedef.
11892
11893 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11894
11895 PR target/48154
11896 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11897 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11898
11899 2011-03-16 Jeff Law <law@redhat.com>
11900
11901 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11902 check for operands of conditional. Allow type to be a pointer.
11903
11904 2011-03-16 Richard Guenther <rguenther@suse.de>
11905
11906 PR tree-optimization/48149
11907 * fold-const.c (fold_binary_loc): Fold
11908 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11909
11910 2011-03-16 Richard Guenther <rguenther@suse.de>
11911
11912 PR tree-optimization/26134
11913 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11914 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11915 (non_rewritable_mem_ref_base): Handle complex type component
11916 accesses, constrain offsets for vector and complex extracts
11917 more properly.
11918
11919 2011-03-16 Richard Guenther <rguenther@suse.de>
11920
11921 PR tree-optimization/48146
11922 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11923 operands avoiding the need for renaming.
11924
11925 2011-03-16 Richard Guenther <rguenther@suse.de>
11926
11927 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11928 constant folding. Move MEM_REF canonicalization first.
11929 Rely on fold_const_aggregate_ref for initializer folding.
11930 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11931
11932 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11933
11934 PR middle-end/48136
11935 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11936 arg0/arg1 or their arguments are always fold converted to matching
11937 types.
11938
11939 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11940 to nargs.
11941
11942 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11943
11944 PR lto/46944
11945 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11946 Handle in-tree gold.
11947 (ld_vers): Extract binutils version for gold.
11948 (gcc_cv_ld_hidden): Handle gold here.
11949 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11950 * configure: Regenerate.
11951 * config.in: Regenerate.
11952 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11953 -fuse-linker-plugin otherwise.
11954 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11955 (LINK_COMMAND_SPEC): Use it.
11956 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11957
11958 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11959
11960 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11961 * calls.c: Remove debug.h include.
11962 (emit_call_1): Don't call virtual_call_token debug hook.
11963 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11964 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11965 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11966 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11967 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11968 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11969 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11970 dwarf2out_virtual_call): Remove.
11971 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11972 copy_call_info and virtual_call hooks.
11973 (dwarf2out_init): Don't initialize vcall_insn_table,
11974 debug_dcall_section and debug_vcall_section.
11975 (prune_unused_types): Don't mark nodes from dcall_table.
11976 (dwarf2out_finish): Don't output dcall or vcall tables.
11977 * final.c (final_scan_insn): Don't call direct_call or
11978 virtual_call debug hooks.
11979 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11980 virtual_call_token, copy_call_info and virtual_call hooks.
11981 (debug_nothing_uid): Remove prototype.
11982 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11983 copy_call_info and virtual_call hooks.
11984 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11985 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11986 * debug.c (do_nothing_debug_hooks): Likewise.
11987 (debug_nothing_uid): Remove.
11988 * doc/invoke.texi (-fenable-icf-debug): Remove.
11989 * common.opt (-fenable-icf-debug): Likewise.
11990
11991 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11992 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11993 call's MEM. Handle functions returning aggregate through a hidden
11994 first pointer. For virtual calls add clobbered pc to call arguments
11995 chain.
11996 * dwarf2out.c (gen_subprogram_die): Emit
11997 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11998 can't be emitted.
11999
12000 PR debug/45882
12001 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12002 * rtl.h (ENTRY_VALUE_EXP): Define.
12003 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12004 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12005 * print-rtl.c (print_rtx): Likewise.
12006 * gengtype.c (adjust_field_rtx_def): Likewise.
12007 * var-tracking.c (vt_add_function_parameter): Adjust
12008 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12009 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12010 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12011 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12012 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12013
12014 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12015 Call var_location debug hook even on CALL_INSNs.
12016 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12017 * rtl.def (ENTRY_VALUE): New.
12018 * dwarf2out.c: Include cfglayout.h.
12019 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12020 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12021 (struct call_arg_loc_node): New type.
12022 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12023 tail_call_site_count): New variables.
12024 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12025 DW_TAG_GNU_call_site_parameter.
12026 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12027 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12028 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12029 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12030 and DW_AT_GNU_all_source_call_sites.
12031 (mem_loc_descriptor): Handle ENTRY_VALUE.
12032 (add_src_coords_attributes): Don't add enything if
12033 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12034 (dwarf2out_abstract_function): Save and clear call_arg_location,
12035 call_site_count and tail_call_site_count around dwarf2out_decl call.
12036 (gen_call_site_die): New function.
12037 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12038 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12039 (dwarf2out_function_decl): Clear call_arg_locations,
12040 call_arg_loc_last, set call_site_count and tail_call_site_count
12041 to -1 and free block_map.
12042 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12043 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12044 followed by any real instructions.
12045 (dwarf2out_begin_function): Set call_site_count and
12046 tail_call_site_count to 0.
12047 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12048 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12049 attempt to force a DIE for it and worst case remove the attribute.
12050 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12051 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12052 the decl itself.
12053 * var-tracking.c: Include tm_p.h.
12054 (vt_stack_adjustments): For calls call note_register_arguments.
12055 (argument_reg_set): New variable.
12056 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12057 ensure the VALUE is resolved.
12058 (call_arguments): New variable.
12059 (prepare_call_arguments): New function.
12060 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12061 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12062 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12063 always use the best expression.
12064 (vt_expand_loc): Add ignore_cur_loc argument.
12065 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12066 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12067 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12068 note for all calls.
12069 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12070 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12071 argument. Don't call cselib_preserve_only_values and
12072 cselib_reset_table.
12073 (note_register_arguments): New function.
12074 (vt_initialize): Compute argument_reg_set. Call
12075 vt_add_function_parameters before processing basic blocks instead of
12076 afterwards. For calls call prepare_call_arguments before calling
12077 cselib_process_insn.
12078 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12079 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12080 (var-tracking.o): Depend on $(TM_P_H).
12081 * cfglayout.h (insn_scope): New prototype.
12082 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12083 * cfglayout.c (insn_scope): No longer static.
12084 * insn-notes.def (CALL_ARG_LOCATION): New.
12085 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12086 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12087 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12088 nothing for DECL_EXTERNAL BLOCK_VARS.
12089
12090 2011-03-16 Alan Modra <amodra@gmail.com>
12091
12092 PR target/45844
12093 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12094 create invalid offset address for vsx splat insn.
12095 * config/rs6000/predicates.md (splat_input_operand): New.
12096 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12097
12098 2011-03-15 Xinliang David Li <davidxl@google.com>
12099
12100 PR c/47837
12101 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12102 (normalize_preds): New function.
12103 (is_use_properly_guarded): Normalize def predicates.
12104
12105 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12106
12107 PR target/46788
12108 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12109 in the output template.
12110
12111 2011-03-15 Richard Guenther <rguenther@suse.de>
12112
12113 PR middle-end/47650
12114 * tree-pretty-print.c (dump_function_declaration): Properly
12115 dump unprototyped and varargs function types.
12116
12117 2011-03-15 Richard Guenther <rguenther@suse.de>
12118
12119 PR tree-optimization/13954
12120 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12121 and friends.
12122
12123 2011-03-15 Richard Guenther <rguenther@suse.de>
12124
12125 PR tree-optimization/48037
12126 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12127 selects into BIT_FIELD_REFs.
12128 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12129 vector select.
12130
12131 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12132
12133 PR tree-optimization/48129
12134 * builtins.c (fold_builtin_snprintf): Convert to type of
12135 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12136 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12137
12138 2011-03-15 Richard Guenther <rguenther@suse.de>
12139
12140 PR tree-optimization/41490
12141 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12142 value but with VUSE.
12143 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12144 return statements.
12145 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12146 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12147 * tree-tailcall.c (find_tail_calls): Ignore returns.
12148
12149 2011-03-15 Richard Guenther <rguenther@suse.de>
12150
12151 PR middle-end/48031
12152 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12153 or variable-indexed array accesses when in gimple form.
12154
12155 2011-03-15 Richard Guenther <rguenther@suse.de>
12156
12157 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12158
12159 2011-03-15 Alan Modra <amodra@gmail.com>
12160
12161 PR target/48032
12162 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12163 presume symbol_refs without a symbol_ref_decl are suitably
12164 aligned, nor other trees we may see here. Handle anchor symbols.
12165 (legitimate_constant_pool_address_p): Comment. Add mode param.
12166 Check cmodel=medium addresses. Adjust all calls.
12167 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12168 creating cmodel=medium optimized access to locals.
12169 * config/rs6000/constraints.md (R): Pass QImode to
12170 legitimate_constant_pool_address_p.
12171 * config/rs6000/predicates.md (input_operand): Pass mode to
12172 legitimate_constant_pool_address_p.
12173 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12174 Update prototype.
12175
12176 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12177
12178 PR target/48053
12179 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12180 64-bit constants being loaded into registers other than GPRs such
12181 as loading 0 into a VSX register.
12182
12183 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12184
12185 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12186
12187 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12188
12189 PR middle-end/47917
12190 * builtins.c (fold_builtin_snprintf): New function.
12191 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12192 (fold_builtin_4): Likewise.
12193
12194 PR middle-end/38878
12195 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12196 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12197 and C - X == X also strip nops from +/-/p+ operand.
12198 When optimizing -X == C, fold C to arg0's type.
12199
12200 PR debug/47946
12201 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12202 emit it as add_AT_int instead of add_AT_unsigned.
12203
12204 2011-03-14 Tom Tromey <tromey@redhat.com>
12205
12206 * unwind-dw2.c: Include sys/sdt.h if it exists.
12207 (_Unwind_DebugHook): Use STAP_PROBE2.
12208 * config.in, configure: Rebuild.
12209 * configure.ac: Check for sys/sdt.h.
12210
12211 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12212
12213 * config/i386/i386.md (ROUND_FLOOR): New constant.
12214 (ROUND_CEIL): Ditto.
12215 (ROUND_TRUNC): Ditto.
12216 (ROUND_MXCSR): Ditto.
12217 (ROUND_NO_EXC): Ditto.
12218 (rint<mode>2): Use new defines instead of numerical constants.
12219 (floor<mode>2): Ditto.
12220 (ceil<mode>2): Ditto.
12221 (btrunc<mode>2): Ditto.
12222 * config/i386/i386-builtin-types.def: Define ROUND function type
12223 aliases.
12224 * config/i386/i386.c (enum ix86_builtins): Add
12225 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12226 (struct builtin_description): Add
12227 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12228 (ix86_expand_sse_round): New static function.
12229 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12230 function types.
12231 (ix86_builtin_vectorized_function): Handle
12232 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12233
12234 2011-03-14 Tom Tromey <tromey@redhat.com>
12235
12236 * c-parser.c (c_parser_asm_string_literal): Clear
12237 warn_overlength_strings.
12238
12239 2011-03-14 Tom Tromey <tromey@redhat.com>
12240
12241 * c-parser.c (disable_extension_diagnostics): Save
12242 warn_overlength_strings.
12243 (restore_extension_diagnostics): Restore warn_overlength_strings.
12244
12245 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12246
12247 * BASE-VER: Change to 4.7.0.
12248
12249 2011-03-14 Richard Guenther <rguenther@suse.de>
12250
12251 PR middle-end/48098
12252 * tree.c (build_vector_from_val): Adjust assert to requirements
12253 and reality.
12254
12255 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12256
12257 PR bootstrap/48102
12258 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12259
12260 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12261
12262 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12263 terms of target_flags_explicit. Adjust copyright year.
12264
12265 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12266 * config/rs6000/t-freebsd: New file. Add override for
12267 LIB2FUNCS_EXTRA.
12268
12269 2011-03-13 Chris Demetriou <cgd@google.com>
12270
12271 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12272 (-fno-diagnostics-show-option): this, to reflect current default.
12273 (-Werror=): Update text about -fno-diagnostics-show-option.
12274
12275 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12276
12277 PR target/48053
12278 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12279 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12280 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12281 mode is not V2DImode or V2DFmode.
12282 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12283 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12284 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12285 registers to 0.
12286 (movdi_internal64): Likewise.
12287
12288 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12289
12290 PR tree-optimization/47127
12291 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12292 parameter.
12293 (set_cloog_options): Same.
12294 (scop_to_clast): Same.
12295 (print_clast_stmt): Do not call cloog_state_malloc and
12296 cloog_state_free.
12297 (print_generated_program): Same.
12298 (gloog): Same.
12299 * graphite-clast-to-gimple.h (cloog_state): Declared.
12300 (scop_to_clast): Adjust declaration.
12301 * graphite.c (cloog_state): Defined here.
12302 (graphite_initialize): Call cloog_state_malloc.
12303 (graphite_finalize): Call cloog_state_free.
12304
12305 2011-03-11 Jason Merrill <jason@redhat.com>
12306
12307 * attribs.c (lookup_attribute_spec): Take const_tree.
12308 * tree.h: Adjust.
12309
12310 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12311
12312 * config/sparc/sparc.c (sparc_option_override): Use
12313 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12314
12315 2011-03-11 Richard Guenther <rguenther@suse.de>
12316
12317 PR tree-optimization/48067
12318 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12319 multiplication result will be only used once on the target
12320 stmt.
12321
12322 2011-03-11 Richard Guenther <rguenther@suse.de>
12323
12324 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12325
12326 2011-03-11 Richard Guenther <rguenther@suse.de>
12327
12328 PR lto/48073
12329 * tree.c (find_decls_types_r): Do not walk types only reachable
12330 from IDENTIFIER_NODEs.
12331
12332 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12333
12334 PR middle-end/48044
12335 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12336 all vnode->force_output nodes as needed.
12337
12338 2011-03-11 Jason Merrill <jason@redhat.com>
12339
12340 PR c++/48069
12341 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12342 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12343
12344 2011-03-11 Martin Jambor <mjambor@suse.cz>
12345
12346 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12347 cgraph_node.
12348
12349 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12350
12351 PR tree-optimization/48063
12352 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12353 inline functions called once if !tree_can_inline_p (node->callers).
12354
12355 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12356
12357 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12358 extra_objs.
12359 * config/score/score3.c: Delete.
12360 * config/score/score3.h: Delete.
12361 * config/score/mul-div.S: Delete.
12362 * config/score/sfp-machine.h: Add new file.
12363 * config/score/constraints.md: Add new file.
12364 * config/score/t-score-softfp: Add new file.
12365 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12366 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12367 (score7_extra_constraint): Delete.
12368 (score7_option_override): Remove unused code.
12369 * config/score/score.c: Remove score3 and score5 define and code.
12370 * config/score/score.h: Remove score3 and score5 define and code.
12371 * config/score/score.md: Remove score3 template and unusual insn.
12372 * config/score/score.opt: Remove score3 and score5 options.
12373
12374 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12375
12376 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12377 when _HPUX_SOURCE is defined.
12378 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12379
12380 2011-03-10 Jason Merrill <jason@redhat.com>
12381
12382 PR c++/48029
12383 * stor-layout.c (layout_type): Don't set structural equality
12384 on arrays of incomplete type.
12385 * tree.c (type_hash_eq): Handle comparing them properly.
12386
12387 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12388
12389 PR debug/48043
12390 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12391 result mode matches original rtl mode.
12392
12393 2011-03-10 Nick Clifton <nickc@redhat.com>
12394
12395 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12396 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12397
12398 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12399
12400 PR rtl-optimization/47866
12401 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12402 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12403 if target wasn't scalar.
12404 * function.c (assign_stack_temp_for_type): Assert that neither
12405 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12406 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12407 macro.
12408 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12409
12410 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12411
12412 * config/s390/s390-protos.h (s390_label_align): New prototype.
12413 * config/s390/s390.c (s390_label_align): New function.
12414 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12415
12416 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12417
12418 PR target/47755
12419 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12420 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12421 (output_vec_const_move): Ditto.
12422
12423 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12424
12425 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12426 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12427 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12428 Change 'rclass' argument and result type to reg_class_t.
12429 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12430
12431 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12432
12433 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12434 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12435 (TARGET_MEMORY_MOVE_COST): Define.
12436 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12437
12438 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12439
12440 PR debug/47881
12441 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12442 removed anything.
12443
12444 PR tree-optimization/48022
12445 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12446 for EQ/NE_EXPR.
12447
12448 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12449
12450 PR debug/47991
12451 * var-tracking.c (find_use_val): Return NULL for
12452 cui->sets && cui->store_p BLKmode MEMs.
12453
12454 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12455
12456 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12457 Remove.
12458 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12459 xstormy16_print_operand_address): Remove.
12460 * config/stormy16/stormy16.c (xstormy16_print_operand,
12461 xstormy16_print_operand_address): Make static.
12462 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12463
12464 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12465
12466 PR target/47862
12467 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12468 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12469 before definition.
12470
12471 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12472
12473 PR bootstrap/48000
12474 * cfgloopmanip.c (fix_bb_placements): Return immediately
12475 if FROM is BASE_LOOP's header.
12476
12477 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12478
12479 * gimplify.c (gimplify_function_tree): Fix building calls
12480 to __builtin_return_address.
12481
12482 2011-03-07 Alan Modra <amodra@gmail.com>
12483
12484 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12485 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12486 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12487 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12488 return_mode args.
12489 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12490 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12491 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12492 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12493 * config/rs6000/rs6000.c
12494 (rs6000_elf_end_indicate_exec_stack): Rename to..
12495 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12496 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12497 (rs6000_file_start): ..here.
12498 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12499 file scope variables.
12500 (call_ABI_of_interest): New function.
12501 (init_cumulative_args): Set above vars when function return value
12502 is a float, vector, or small struct.
12503 (rs6000_function_arg_advance_1): Likewise for function args.
12504 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12505 references float args.
12506
12507 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12508
12509 * doc/cfg.texi: Remove "See" before @ref.
12510 * doc/invoke.texi: Likewise.
12511
12512 2011-03-05 Jason Merrill <jason@redhat.com>
12513
12514 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12515
12516 2011-03-05 Anthony Green <green@moxielogic.com>
12517
12518 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12519
12520 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12521
12522 PR rtl-optimization/47899
12523 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12524 to flow_loop_nested_p when moving the loop upward.
12525
12526 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12527
12528 PR target/47719
12529 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12530
12531 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12532
12533 PR tree-optimization/47967
12534 * ipa-cp.c (build_const_val): Return NULL instead of creating
12535 VIEW_CONVERT_EXPR for mismatching sizes.
12536 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12537 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12538 give up on versioning.
12539
12540 2011-03-05 Alan Modra <amodra@gmail.com>
12541
12542 PR target/47986
12543 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12544 full cmodel medium/large lo_sum + high addresses.
12545
12546 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12547
12548 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12549 pool references in UNSPEC_LTREL_OFFSET.
12550
12551 2011-03-04 Jan Hubicka <jh@suse.cz>
12552
12553 PR lto/47497
12554 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12555 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12556 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12557 Add node pointers.
12558 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12559 cgraph_add_thunk): Add node pointers.
12560 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12561 associated to right node.
12562 (input_node): Update use of cgraph_same_body_alias
12563 and cgraph_add_thunk.
12564
12565 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12566
12567 * config/i386/i386.opt (mprefer-avx128): New flag.
12568 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12569 modes when the flag -mprefer-avx128 is on.
12570
12571 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12572
12573 * dwarf2out.c (compare_loc_operands): Fix address handling.
12574
12575 2011-03-04 Alan Modra <amodra@gmail.com>
12576
12577 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12578
12579 2011-03-04 Richard Guenther <rguenther@suse.de>
12580
12581 PR middle-end/47968
12582 * expmed.c (extract_bit_field_1): Prefer vector modes that
12583 vec_extract patterns can handle.
12584
12585 2011-03-04 Richard Guenther <rguenther@suse.de>
12586
12587 PR middle-end/47975
12588 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12589
12590 2011-03-04 Richard Henderson <rth@redhat.com>
12591
12592 * explow.c (emit_stack_save): Remove 'after' parameter.
12593 (emit_stack_restore): Likewise.
12594 * expr.h: Update to match.
12595 * builtins.c, calls.c, stmt.c: Likewise.
12596 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12597 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12598 * function.c (expand_function_end): Insert the emit_stack_save
12599 sequence before parm_birth_insn instead of after.
12600
12601 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12602
12603 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12604 (ssse3_pmaddubsw128): Ditto.
12605 (ssse3_pmaddubsw): Ditto.
12606
12607 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12608
12609 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12610
12611 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12612
12613 PR c/47963
12614 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12615 on TYPE_SIZE_UNIT if it is a DECL.
12616
12617 PR debug/47283
12618 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12619 first operand is not is_gimple_mem_ref_addr, try to fold it.
12620 If the operand still isn't is_gimple_mem_ref_addr, clear
12621 MEM_EXPR on op0.
12622
12623 2011-03-03 Richard Guenther <rguenther@suse.de>
12624
12625 PR middle-end/47283
12626 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12627 match comment.
12628 (refs_may_alias_p_1): For release branches return true if
12629 we are confused by our input.
12630
12631 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12632
12633 * config/s390/s390.c (s390_function_value): Rename to ...
12634 (s390_function_and_libcall_value): ... this.
12635 (s390_function_value): New function.
12636 (s390_libcall_value): New function.
12637 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12638 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12639 target macro definitions.
12640 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12641
12642 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12643
12644 * config/i386/freebsd64.h (CC1_SPEC): Define.
12645 * config/i386/linux64.h (CC1_SPEC): Define.
12646 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12647
12648 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12649
12650 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12651 Remove.
12652 * config/stormy16/stormy16.c: Include reload.h.
12653 (xstormy16_memory_move_cost): New function.
12654 (TARGET_MEMORY_MOVE_COST): Define.
12655
12656 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12657
12658 PR rtl-optimization/47925
12659 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12660 with side effects. Remove the more-specific check for volatile asms.
12661
12662 2011-03-02 Alan Modra <amodra@gmail.com>
12663
12664 PR target/47935
12665 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12666 toc relative addresses for valid offsets.
12667
12668 2011-03-01 Richard Guenther <rguenther@suse.de>
12669
12670 PR tree-optimization/47890
12671 * tree-vect-loop.c (get_initial_def_for_induction): Set
12672 related stmt properly.
12673
12674 2011-03-01 Richard Guenther <rguenther@suse.de>
12675
12676 PR lto/47924
12677 * lto-streamer.c (lto_record_common_node): Also register
12678 the canonical type.
12679
12680 2011-03-01 Richard Guenther <rguenther@suse.de>
12681
12682 PR lto/46911
12683 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12684 Do not stream DECL_ABSTRACT_ORIGIN.
12685 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12686 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12687 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12688 Do not stream DECL_ABSTRACT_ORIGIN.
12689 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12690 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12691
12692 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12693
12694 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12695 FUNCTION_VALUE_REGNO_P): Remove.
12696 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12697 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12698 Add 'outgoing' argument.
12699 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12700 function.
12701 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12702 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12703
12704 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12705
12706 PR debug/28047
12707 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12708 (lookup_filename): Likewise.
12709 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12710
12711 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12712 Jakub Jelinek <jakub@redhat.com>
12713
12714 PR middle-end/47893
12715 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12716 (assign_stack_local_1): Change last argument type to int.
12717 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12718 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12719 don't record padding space into frame_space_list nor use those areas.
12720 (assign_stack_local): Adjust caller.
12721 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12722 of assign_stack_local, pass 0 as last argument.
12723 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12724 callers.
12725
12726 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12727
12728 PR debug/47283
12729 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12730 Use target address_mode and pointer_mode hooks instead of hardcoded
12731 Pmode and ptr_mode. Handle some simple cases of extending if
12732 POINTERS_EXTEND_UNSIGNED < 0.
12733 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12734 Call convert_debug_memory_address.
12735 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12736 convert_debug_memory_address.
12737
12738 PR middle-end/46790
12739 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12740 * configure: Regenerated.
12741 * config.in: Regenerated.
12742 * varasm.c (default_function_section): Return NULL
12743 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12744
12745 2011-02-28 Martin Jambor <mjambor@suse.cz>
12746
12747 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12748 the description to match the printed values.
12749
12750 2011-02-28 Richard Guenther <rguenther@suse.de>
12751
12752 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12753 of the copied scope tree.
12754
12755 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12756
12757 * doc/extend.texi (Function Attributes): Avoid deeply (and
12758 wrongly) nested tables.
12759
12760 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12761
12762 PR middle-end/47903
12763 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12764 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12765 r isn't op0 nor op1.
12766
12767 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12768
12769 * config/avr/avr.md: Remove magic comment for emacs.
12770
12771 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12772
12773 PR target/45261
12774 * config/avr/avr.c (avr_option_override): Use error on bad options.
12775 (avr_help): New function.
12776 (TARGET_HELP): Define.
12777
12778 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12779
12780 PR target/42240
12781 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12782 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12783
12784 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12785
12786 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12787 (ARM Options): Ditto.
12788 (i386 and x86-64 Options): Ditto.
12789 (RX Options): Ditto.
12790 (SPARC Options): Ditto.
12791
12792 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12793
12794 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12795 FreeBSD 6 and later. Generally use cpu generic.
12796
12797 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12798
12799 * doc/cpp.texi: Update copyright years.
12800
12801 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12802
12803 PR target/46898
12804 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12805
12806 2011-02-25 Jon Beniston <jon@beniston.com>
12807
12808 PR target/46898
12809 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12810 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12811 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12812 (lm32_block_move_inline): Add type cast to remove warning.
12813 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12814 (gen_int_relational): Move declarations to start of function.
12815
12816 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12817
12818 PR tree-optimization/45470
12819 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12820 can throw internally only.
12821 * tree-vect-stmts.c (vectorizable_call): Likewise.
12822
12823 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12824
12825 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12826 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12827 * config/stormy16/stormy16-protos.h
12828 (xstormy16_preferred_reload_class): Remove.
12829 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12830 static. Change 'rclass' argument and return type to reg_class_t.
12831 (TARGET_PREFERRED_RELOAD_CLASS,
12832 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12833
12834 2011-02-24 Richard Guenther <rguenther@suse.de>
12835
12836 * lto-streamer-in.c (input_bb): Do not find referenced vars
12837 in debug statements.
12838
12839 2011-02-23 Jason Merrill <jason@redhat.com>
12840
12841 * common.opt (fabi-version): Document v5 and v6.
12842
12843 2011-02-23 Richard Guenther <rguenther@suse.de>
12844
12845 PR tree-optimization/47849
12846 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12847
12848 2011-02-23 Jie Zhang <jie@codesourcery.com>
12849
12850 * opts-common.c (decode_cmdline_option): Print empty string
12851 argument as "" in decoded->orig_option_with_args_text.
12852 * gcc.c (execute): Print empty string argument as ""
12853 in the verbose output.
12854 (do_spec_1): Keep empty string argument.
12855
12856 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12857
12858 * config.gcc: Declare score-* and crx-* obsolete.
12859
12860 2011-02-23 Jie Zhang <jie@codesourcery.com>
12861
12862 PR rtl-optimization/47763
12863 * web.c (web_main): Ignore naked clobber when replacing register.
12864
12865 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12866
12867 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12868 Remove.
12869
12870 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12871
12872 PR doc/47848
12873 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12874
12875 2011-02-22 Mike Stump <mikestump@comcast.net>
12876
12877 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12878 assembler.
12879 * configure: Regenerate.
12880
12881 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12882
12883 PR rtl-optimization/46002
12884 * ira-color.c (update_copy_costs): Change class intersection
12885 test to reg_class_contents[] test of 'hard_regno'.
12886
12887 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12888
12889 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12890 than Driver option.
12891 * config/hpux11.opt (mt): Likewise.
12892 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12893 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12894 * config/vax/elf.opt (mno-asm-pic): Likewise.
12895 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12896
12897 2011-02-21 Mike Stump <mikestump@comcast.net>
12898
12899 PR target/47822
12900 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12901 tree so we can get save the type.
12902 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12903 for CFString instead of trying to use past the end of the builtins.
12904 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12905 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12906 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12907 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12908 Rename to darwin_builtin_cfstring.
12909 (darwin_init_cfstring_builtins): Return the built type.
12910
12911 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12912
12913 PR target/47840
12914 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12915 (_mm256_insert_epi64): Use _mm_insert_epi64.
12916
12917 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12918
12919 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12920 * config/stormy16/stormy16-protos.h
12921 (xstormy16_mode_dependent_address_p): Remove.
12922 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12923 Make static. Change return type to bool. Change argument type to
12924 const_rtx. Remove dead code.
12925 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12926
12927 2011-02-21 Richard Guenther <rguenther@suse.de>
12928
12929 PR lto/47820
12930 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12931 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12932 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12933 TUs context.
12934 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12935 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12936
12937 2011-02-20 Richard Guenther <rguenther@suse.de>
12938
12939 PR lto/47822
12940 * tree.c (free_lang_data_in_decl): Clean builtins from
12941 the TU decl BLOCK_VARS.
12942
12943 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12944
12945 PR debug/47620
12946 PR debug/47630
12947 * haifa-sched.c (fix_tick_ready): Skip tick computation
12948 for debug insns.
12949
12950 2011-02-19 Richard Guenther <rguenther@suse.de>
12951
12952 PR lto/47647
12953 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12954 Remove lazy BLOCK_VARS streaming.
12955 (lto_input_ts_block_tree_pointers): Likewise.
12956 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12957
12958 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12959
12960 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12961
12962 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12963
12964 * config/i386/biarch32.h, config/i386/mach.h,
12965 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12966
12967 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12968
12969 PR target/47800
12970 * config/i386/i386.md (peephole2 for shift and plus): Use
12971 operands[1] original mode in the first insn.
12972
12973 2011-02-18 Mike Stump <mikestump@comcast.net>
12974
12975 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12976
12977 2011-02-18 Jan Hubicka <jh@suse.cz>
12978
12979 PR middle-end/47788
12980 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12981 to zero when the function is not inlinable at all.
12982
12983 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12984
12985 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12986 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12987 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12988 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12989 * config/pa/t-pa64: Likewise.
12990 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12991
12992 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12993
12994 PR driver/47787
12995 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12996
12997 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12998
12999 PR target/47792
13000 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13001
13002 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13003
13004 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13005 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13006 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13007 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13008 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13009 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13010 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13011 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13012 m32r_legitimate_address_p): New functions.
13013 * config/m32r/constraints.md (constraint "S"): Don't use
13014 STORE_PREINC_PREDEC_P.
13015 (constraint "U"): Don't use LOAD_POSTINC_P.
13016
13017 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13018
13019 PR rtl-optimization/46178
13020 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13021 compute ira_hard_regno_cover_class[].
13022
13023 2011-02-18 Richard Guenther <rguenther@suse.de>
13024
13025 PR lto/47798
13026 * lto-streamer.h (lto_global_var_decls): Declare.
13027 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13028 statics for global var processing.
13029
13030 2011-02-18 Richard Guenther <rguenther@suse.de>
13031
13032 PR tree-optimization/47737
13033 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13034 edge dominance check.
13035
13036 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13037
13038 PR debug/47780
13039 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13040 avoid invalid rtx sharing.
13041
13042 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13043
13044 * doc/cpp.texi (Obsolete Features): Add background on the
13045 origin of assertions.
13046
13047 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13048
13049 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13050 objc_abi == 2.
13051 * config/darwin.c (output_objc_section_asm_op): Added support for
13052 ABI v1 and v2.
13053 (is_objc_metadata): New.
13054 (darwin_objc2_section): New.
13055 (darwin_objc1_section): New.
13056 (machopic_select_section): Added support for ABI v1 and v2.
13057 (darwin_emit_objc_zeroed): New.
13058 (darwin_output_aligned_bss): Detect objc metadata and treat it
13059 appropriately.
13060 (darwin_asm_output_aligned_decl_common): Same.
13061 (darwin_asm_output_aligned_decl_local): Same.
13062 * config/darwin-sections.def: Updated for ABI v1 and v2.
13063 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13064 compiling Objective-C code for the NeXT runtime, default to using
13065 ABI version 0 for 32-bit, and version 2 for 64-bit.
13066
13067 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13068
13069 * common.opt (optimize_fast): New Variable.
13070 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13071 instead of local variable ofast.
13072
13073 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13074
13075 * doc/invoke.texi (fobjc-abi-version): Documented.
13076 (fobjc-nilcheck): Documented.
13077 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13078 version.
13079
13080 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13081
13082 PR driver/47390
13083 * common.opt (export-dynamic): New Driver option.
13084 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13085
13086 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13087
13088 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13089
13090 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13091 Jan Hubicka <jh@suse.cz>
13092
13093 PR debug/47106
13094 PR debug/47402
13095 * cfgexpand.c (account_used_vars_for_block): Remove.
13096 (estimated_stack_frame_size): Use referenced vars.
13097 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13098 that were referenced in the original function. Test src_fn
13099 rather than cfun. Drop redundant get_var_ann.
13100 (setup_one_parameter): Drop redundant get_var_ann.
13101 (declare_return_variable): Likewise.
13102 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13103 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13104 * ipa-inline.c (compute_inline_parameters): Do not compute
13105 disregard_inline_limits here.
13106 (compute_inlinable_for_current, pass_inlinable): New.
13107 (pass_inline_parameters): Require PROP_referenced_vars.
13108 * cgraphunit.c (cgraph_process_new_functions): Don't run
13109 compute_inline_parameters explicitly unless function is in SSA form.
13110 (cgraph_analyze_function): Set .disregard_inline_limits.
13111 * tree-sra.c (convert_callers): Compute inliner parameters
13112 only for functions already in SSA form.
13113
13114 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13115
13116 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13117 -mlittle-endian-data.
13118
13119 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13120
13121 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13122 -mno-fpu, not -fpu and -no-fpu.
13123 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13124 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13125
13126 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13127
13128 PR target/43653
13129 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13130 input reload with PLUS RTX.
13131
13132 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13133
13134 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13135 of InverseVar(MDMX).
13136
13137 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13138
13139 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13140 --m4-340.
13141
13142 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13143
13144 * config/mn10300/mn10300.opt (mno-crt0): New.
13145
13146 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13147
13148 * config/m68k/uclinux.opt (static-libc): New Driver option.
13149
13150 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13151
13152 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13153
13154 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13155
13156 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13157 %{muser-extend-enabled}.
13158
13159 2011-02-16 Richard Guenther <rguenther@suse.de>
13160
13161 PR tree-optimization/47738
13162 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13163 the TODO from tree_predictive_commoning.
13164
13165 2011-02-15 Jeff Law <law@redhat.com>
13166
13167 Revert
13168 2011-01-25 Jeff Law <law@redhat.com>
13169
13170 PR rtl-optimization/37273
13171 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13172 handle them like argument loads from stack slots. Do not double
13173 count memory for memory constants and argument loads from stack slots.
13174
13175 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13176
13177 PR middle-end/47725
13178 * combine.c (cant_combine_insn_p): Revert the last change.
13179
13180 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13181
13182 PR target/47755
13183 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13184 mode for vector constants. Remove code that checks for TImode.
13185
13186 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13187
13188 PR debug/47106
13189 PR debug/47402
13190 * cgraph.h (compute_inline_parameters): Return void.
13191 * ipa-inline.c (compute_inline_parameters): Adjust.
13192
13193 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13194
13195 PR debug/47106
13196 PR debug/47402
13197 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13198 rather than decl.
13199 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13200 * ipa-inline.c (compute_inline_parameters): Adjust.
13201
13202 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13203
13204 PR debug/47106
13205 PR debug/47402
13206 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13207 Adjust all users. Pass FN to...
13208 * tree-flow-inline.h (first_referenced_var): ... this. Add
13209 fn argument.
13210 * ipa-struct-reorg.c: Adjust.
13211 * tree-dfa.c: Adjust.
13212 * tree-into-ssa.c: Adjust.
13213 * tree-sra.c: Adjust.
13214 * tree-ssa-alias.c: Adjust.
13215 * tree-ssa-live.c: Adjust.
13216 * tree-ssa.c: Adjust.
13217 * tree-ssanames.c: Adjust.
13218 * tree-tailcall.c: Adjust.
13219
13220 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13221
13222 PR debug/47106
13223 PR debug/47402
13224 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13225 Adjust all callers.
13226 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13227 * tree-flow-inline.h: Adjust.
13228 * gimple-pretty-print.c: Adjust.
13229 * tree-into-ssa.c: Adjust.
13230 * tree-ssa.c: Adjust.
13231 * cfgexpand.c: Adjust.
13232
13233 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13234
13235 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13236 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13237 (EXTRA_CONSTRAINT): Delete.
13238 * config/iq2000/constraints.md: New file.
13239 * config/iq2000/iq2000.md: Include it.
13240 (define_insn ""): Delete.
13241 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13242 unsupported constraint letters from patterns.
13243 (call_value, call_value_internal1): Likewise.
13244 (call_value_multiple_internal1): Likewise.
13245
13246 2011-02-15 Nick Clifton <nickc@redhat.com>
13247
13248 * config/mn10300/mn10300.c: Include tm-constrs.h.
13249 (struct liw_data): New data structure describing an LIW candidate
13250 instruction.
13251 (extract_bundle): Use struct liw_data. Allow small integer
13252 operands for some instructions.
13253 (check_liw_constraints): Use struct liw_data. Remove swapped
13254 parameter. Add comments describing the checks. Fix bug when
13255 assigning the source of liw1 to the source of liw2.
13256 (liw_candidate): Delete. Code moved into extract_bundle.
13257 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13258 before swapping.
13259 * config/mn10300/predicates.md (liw_operand): New predicate.
13260 Allows registers and small integer constants.
13261 * config/mn10300/constraints.md (O): New constraint. Accetps
13262 integers in the range -8 to +7 inclusive.
13263 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13264 for moving a small integer into a register. Give this alternative
13265 LIW attributes.
13266 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13267 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13268 using the J,K,L and M constraints,
13269 (liw): Remove SI mode on second operands to allow for HI and QI
13270 mode values.
13271 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13272 instruction.
13273
13274 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13275
13276 PR middle-end/47725
13277 * combine.c (cant_combine_insn_p): Check zero/sign extended
13278 hard registers.
13279
13280 2011-02-15 Richard Guenther <rguenther@suse.de>
13281
13282 PR tree-optimization/47743
13283 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13284 for a non-type-compatible VN lookup bail out.
13285
13286 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13287
13288 * config/fr30/constraints.md: New file.
13289 * config/fr30/fr30.md: Include it.
13290 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13291 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13292 (EXTRA_CONSTRAINT): Delete.
13293
13294 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13295
13296 * config/frv/constraints.md: New file.
13297 * config/frv/predicates.md: Include it.
13298 * config/frv/frv.c (reg_class_from_letter): Delete.
13299 (frv_option_override): Don't initialize it.
13300 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13301 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13302 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13303 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13304 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13305 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13306 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13307 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13308 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13309 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13310 (REG_CLASS_FROM_CONSTRAINT): Delete.
13311
13312 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13313
13314 PR middle-end/47581
13315 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13316 if frame size is 0 in a leaf function.
13317
13318 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13319
13320 PR pch/14940
13321 * config/alpha/host-osf.c: New file.
13322 * config/alpha/x-osf: New file.
13323 * config.host (alpha*-dec-osf*): Use it.
13324
13325 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13326
13327 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13328 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13329 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13330 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13331 type to const_rtx.
13332 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13333
13334 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13335
13336 * config/stormy16/constraints.md: New file.
13337 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13338 Use satisfies_constraint_Q and satisfies_constraint_R.
13339 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13340 Delete.
13341 (xstormy16_legitiamte_address_p): Declare.
13342 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13343 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13344 (EXTRA_CONSTRAINT): Delete.
13345 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13346 Un-staticize.
13347 (xstormy16_extra_constraint_p): Delete.
13348
13349 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13350
13351 PR tree-optimization/46494
13352 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13353 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13354 (pass_rtl_loop_done): Add TODO_verify_flow.
13355 * fwprop.c (pass_rtl_fwprop): Likewise.
13356 * modulo-sched.c (pass_sms): Likewise.
13357 * tree-ssa-dom.c (pass_dominator): Likewise.
13358 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13359 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13360 (pass_tree_loop_done): Likewise.
13361 * tree-ssa-pre.c (execute_pre): Likewise.
13362 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13363 * tree-ssa-sink.c (pass_sink_code): Likewise.
13364 * tree-vrp.c (pass_vrp): Likewise.
13365
13366 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13367
13368 * config/v850/constraints.md: New file.
13369 * config/v850/v850.md: Include it.
13370 * config/v850/predicates.md (reg_or_0_operand): Use
13371 satisfies_constraint_G.
13372 (special_symbolref_operand): Use satisfies_constraint_K.
13373 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13374 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13375 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13376 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13377 (EXTRA_CONSTRAINT): Delete.
13378 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13379 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13380 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13381
13382 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13383
13384 PR target/47696
13385 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13386 description.
13387
13388 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13389
13390 * config/mcore/constraints.md: New file.
13391 * config/mcore/mcore.md: Include it.
13392 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13393 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13394 (REG_CLASS_FROM_LETTER): Delete.
13395 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13396 insn_const_int_ok_for_constraint.
13397 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13398 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13399 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13400 (EXTRA_CONSTRAINT): Delete.
13401
13402 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13403
13404 PR ada/41929
13405 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13406 (IS_SIGHANDLER): Define.
13407 (sparc64_is_sighandler): New function, split off from
13408 sparc64_fallback_frame_state.
13409 (sparc_is_sighandler): New function, split off from
13410 sparc_fallback_frame_state.
13411 (sparc64_fallback_frame_state): Merge with ...
13412 (sparc_fallback_frame_state): ... this into ...
13413 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13414 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13415 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13416 stack instead of hardcoded offsets.
13417
13418 2011-02-14 Andriy Gapon <avg@freebsd.org>
13419
13420 PR target/45808
13421 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13422
13423 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13424
13425 * configure: Regenerate.
13426
13427 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13428
13429 PR driver/45731
13430 * gcc.c (asm_options): Correct spec matching --target-help.
13431
13432 2011-02-12 Martin Jambor <mjambor@suse.cz>
13433
13434 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13435 to gimple call error.
13436
13437 2011-02-12 Mike Stump <mikestump@comcast.net>
13438
13439 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13440 comments in backslash regions.
13441
13442 2011-02-12 Mike Stump <mikestump@comcast.net>
13443 Jakub Jelinek <jakub@redhat.com>
13444 Iain Sandoe <iains@gcc.gnu.org>
13445
13446 PR target/47324
13447 * dwarf2out.c (output_cfa_loc): When required, apply the
13448 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13449 (output_loc_sequence): Likewise.
13450 (output_loc_operands_raw): Likewise.
13451 (output_loc_sequence_raw): Likewise.
13452 (output_cfa_loc): Likewise.
13453 (output_loc_list): Suppress register number adjustment when
13454 calling output_loc_sequence()
13455 (output_die): Likewise.
13456
13457 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13458
13459 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13460 Remove macros.
13461 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13462 xtensa_memory_move_cost): New functions.
13463 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13464
13465 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13466
13467 PR lto/47225
13468 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13469 in the current directory.
13470 * configure: Rebuilt.
13471
13472 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13473
13474 * config/darwin.c (darwin_override_options): Add a hunk missed
13475 from the commit of r168571. Trim comment line lengths and
13476 correct indents of the preceding block.
13477
13478 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13479
13480 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13481 the switch.
13482
13483 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13484
13485 * common.opt (nostartfiles): New Driver option.
13486
13487 2011-02-11 Xinliang David Li <davidxl@google.com>
13488
13489 PR tree-optimization/47707
13490 * tree-chrec.c (convert_affine_scev): Keep type precision.
13491
13492 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13493
13494 PR tree-optimization/47420
13495 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13496
13497 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13498
13499 PR rtl-optimization/47614
13500 * rtl.h (check_for_inc_dec): Declare.
13501 * dse.c (check_for_inc_dec): Externalize...
13502 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13503 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13504
13505 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13506
13507 PR driver/47678
13508 * gcc.c (main): Do not compile inputs if there were errors in
13509 option handling.
13510 * opts-common.c (read_cmdline_option): Check for wrong language
13511 after other error checks.
13512
13513 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13514
13515 * cgraph.c: Fix comment typos.
13516 * cgraph.h: Likewise.
13517 * cgraphunit.c: Likewise.
13518 * ipa-cp.c: Likewise.
13519 * ipa-inline.c: Likewise.
13520 * ipa-prop.c: Likewise.
13521 * ipa-pure-const.c: Likewise.
13522 * ipa-ref.c: Likewise.
13523 * ipa-reference.c: Likewise.
13524
13525 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13526
13527 PR debug/47684
13528 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13529
13530 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13531
13532 PR testsuite/47400
13533 * doc/sourcebuild.texi (Require Support): Document
13534 dg-require-ascii-locale.
13535
13536 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13537
13538 * doc/lto.texi (Write summary): Fix missing parentheses.
13539
13540 2011-02-10 DJ Delorie <dj@redhat.com>
13541
13542 * config/m32c/m32c.c (m32c_option_override): Disable
13543 -fcombine-stack-adjustments until flag value tracking and compare
13544 optimization can be rewritten.
13545
13546 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13547
13548 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13549 PROCESSOR_POWER7.
13550 (PROCESSOR_DEFAULT64): Likewise.
13551
13552 2011-02-10 Richard Henderson <rth@redhat.com>
13553
13554 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13555 change from 2011-02-03.
13556 * config/rx/rx.c (flags_from_code): Likewise.
13557 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13558 is valid, n/pz otherwise.
13559 (rx_select_cc_mode): Return CCmode if Y is not zero.
13560
13561 2011-02-10 Richard Guenther <rguenther@suse.de>
13562
13563 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13564
13565 2011-02-10 Richard Guenther <rguenther@suse.de>
13566
13567 PR tree-optimization/47677
13568 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13569
13570 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13571
13572 PR target/47665
13573 * combine.c (make_compound_operation): Only change shifts into
13574 multiplication for SCALAR_INT_MODE_P.
13575
13576 2011-02-10 Jie Zhang <jie@codesourcery.com>
13577
13578 PR testsuite/47622
13579 Revert
13580 2011-02-05 Jie Zhang <jie@codesourcery.com>
13581 PR debug/42631
13582 * web.c (entry_register): Don't clobber the number of the
13583 first uninitialized reference in used[].
13584
13585 2011-02-09 Richard Guenther <rguenther@suse.de>
13586
13587 PR tree-optimization/47664
13588 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13589 all edges again.
13590
13591 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13592
13593 PR target/46481
13594 PR target/47032
13595 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13596 PROCESSOR_POWER7.
13597 (PROCESSOR_DEFAULT64): Same.
13598 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13599
13600 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13601
13602 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13603
13604 2011-02-09 Martin Jambor <mjambor@suse.cz>
13605
13606 PR middle-end/45505
13607 * tree-sra.c (struct access): New flags grp_scalar_read and
13608 grp_scalar_write. Changed description of assignment read and write
13609 flags.
13610 (dump_access): Dump new flags, reorder all of them.
13611 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13612 to detect multiple scalar reads.
13613 (analyze_access_subtree): Use the new scalar read write flags instead
13614 of the old flags. Adjusted comments.
13615
13616 2011-02-08 DJ Delorie <dj@redhat.com>
13617
13618 PR target/47548
13619 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13620 patterns.
13621
13622 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13623
13624 * config/m68k/uclinux.opt: New.
13625 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13626
13627 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13628
13629 * config/cris/elf.opt (sim): New Driver option.
13630
13631 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13632
13633 * config/xtensa/elf.opt: New.
13634 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13635
13636 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13637
13638 * config/vax/elf.opt: New.
13639 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13640
13641 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13642
13643 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13644
13645 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13646
13647 * config/gnu-user.opt: New.
13648 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13649 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13650 *-*-uclinux*): Use gnu-user.opt.
13651
13652 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13653
13654 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13655 * config/i386/gnu.h (CPP_SPEC): Likewise.
13656
13657 2011-02-08 Ian Lance Taylor <iant@google.com>
13658
13659 * common.opt (fcx-limited-range): Add SetByCombined flag.
13660 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13661 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13662 (fassociative-math, freciprocal-math): Likewise.
13663 (funsafe-math-optimizations): Likewise.
13664 * opth-gen.awk: Handle SetByCombined.
13665 * optc-gen.awk: Likewise.
13666 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13667 (set_unsafe_math_optimizations_flags): Likewise.
13668 * doc/options.texi (Option properties): Document SetByCombined.
13669
13670 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13671
13672 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13673 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13674 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13675 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13676 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13677
13678 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13679
13680 PR tree-optimization/46834
13681 PR tree-optimization/46994
13682 PR tree-optimization/46995
13683 * graphite-sese-to-poly.c (used_outside_reduction): New.
13684 (detect_commutative_reduction): Call used_outside_reduction.
13685 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13686 translate_scalar_reduction_to_array only when at least one
13687 loop-phi/close-phi tuple has been detected.
13688
13689 2011-02-08 Richard Guenther <rguenther@suse.de>
13690
13691 PR middle-end/47639
13692 * tree-vect-generic.c (expand_vector_operations_1): Update
13693 stmts here ...
13694 (expand_vector_operations): ... not here. Cleanup EH info
13695 and the CFG if required.
13696
13697 2011-02-08 Richard Guenther <rguenther@suse.de>
13698
13699 PR tree-optimization/47641
13700 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13701 require type compatibility.
13702
13703 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13704
13705 * gimple-low.c (lower_function_body): Don't remove the location of
13706 the return statement here.
13707 (lower_gimple_return): Do it here instead but only if the return
13708 statement is actually used twice.
13709
13710 2011-02-08 Richard Guenther <rguenther@suse.de>
13711
13712 PR tree-optimization/47632
13713 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13714 unused up_to_stmt parameter, return whether cfg-cleanup is
13715 necessary, remove EH info properly.
13716 (forward_propagate_into_gimple_cond): Adjust caller.
13717 (forward_propagate_into_cond): Likewise.
13718 (forward_propagate_comparison): Likewise.
13719 (tree_ssa_forward_propagate_single_use_vars): Make
13720 forward_propagate_comparison case similar to the two others.
13721
13722 2011-02-08 Nick Clifton <nickc@redhat.com>
13723
13724 * config/mn10300/mn10300.opt (mliw): New command line option.
13725 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13726 (liw_bundling): New automaton.
13727 (liw): New attribute.
13728 (liw_op): New attribute.
13729 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13730 (movsi_internal): Add LIW attributes.
13731 (andsi3): Likewise.
13732 (iorsi3): Likewise.
13733 (xorsi3): Likewise.
13734 (addsi3): Separate register and immediate alternatives.
13735 Add LIW attributes.
13736 (subsi3): Likewise.
13737 (cmpsi): Likewise.
13738 (aslsi3): Likewise.
13739 (lshrsi3): Likewise.
13740 (ashrsi3): Likewise.
13741 (liw): New pattern.
13742 * config/mn10300/mn10300.c (liw_op_names): New
13743 (mn10300_print_operand): Handle 'W' operand descriptor.
13744 (extract_bundle): New function.
13745 (check_liw_constraints): New function.
13746 (liw_candidate): New function.
13747 (mn10300_bundle_liw): New function.
13748 (mn10300_reorg): New function.
13749 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13750 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13751 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13752 __LIW__ or __NO_LIW__.
13753 * doc/invoke.texi: Describe the -mliw command line option.
13754
13755 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13756
13757 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13758 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13759 pthread_mutex_unlock): Remove.
13760 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13761 * config/pa/t-pa64: Likewise.
13762 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13763 shared libc if not linking against libpthread.
13764 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13765
13766 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13767
13768 PR target/47558
13769 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13770 on 10.6 and later to ensure that we always use the unwinder from
13771 the system. Only add -no_compact_unwind when tarteting darwin
13772 10.6 or later.
13773
13774 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13775
13776 PR target/46997
13777 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13778 (vec_interleave_lowv2sf): Ditto.
13779 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13780 (vec_extract_oddv2sf): Ditto.
13781
13782 2011-02-07 Mike Stump <mikestump@comcast.net>
13783
13784 PR target/42333
13785 Add __ieee_divdc3 entry point.
13786 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13787 entry point.
13788 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13789 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13790 * config/darwin.c (darwin_rename_builtins): Add.
13791 * config/darwin-protos.h (darwin_rename_builtins): Add.
13792
13793 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13794
13795 PR target/47636
13796 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13797 for the condition.
13798
13799 2011-02-07 Mike Stump <mikestump@comcast.net>
13800
13801 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13802
13803 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13804
13805 PR target/47534
13806 * config/avr/libgcc.S (exit): Move .endfunc
13807
13808 2011-02-07 Richard Guenther <rguenther@suse.de>
13809
13810 PR tree-optimization/47615
13811 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13812 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13813 (run_scc_vn): Initialize it.
13814 (visit_reference_op_load): Use it.
13815 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13816
13817 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13818
13819 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13820 DImode trapping arithmetic libfuncs.
13821
13822 2011-02-07 Richard Guenther <rguenther@suse.de>
13823
13824 PR tree-optimization/47621
13825 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13826 two duplicates ...
13827 (execute_update_addresses_taken): ... here. Make it more
13828 conservative in what we accept.
13829
13830 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13831
13832 * config/sparc/freebsd.h (ASM_SPEC): Define.
13833 * config/sparc/vxworks.h (ASM_SPEC): Define.
13834
13835 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13836
13837 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13838
13839 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13840
13841 * doc/invoke.texi: Remove reference to compiler internals from
13842 user documentation.
13843
13844 * reg-notes.def: Remove REG_VALUE_PROFILE.
13845 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13846
13847 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13848
13849 PR middle-end/47610
13850 * varasm.c (default_section_type_flags): If decl is NULL,
13851 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13852
13853 2011-02-05 Jie Zhang <jie@codesourcery.com>
13854
13855 PR debug/42631
13856 * web.c (entry_register): Don't clobber the number of the
13857 first uninitialized reference in used[].
13858
13859 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13860
13861 PR tree-optimization/46194
13862 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13863 (build_classic_dist_vector_1): Do not represent classic distance
13864 vectors when the access functions are variating in different loops.
13865
13866 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13867
13868 * config/mips/iris6.opt: New.
13869 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13870
13871 2011-02-04 Richard Henderson <rth@redhat.com>
13872 Steve Ellcey <sje@cup.hp.com>
13873
13874 PR target/46997
13875 * config/ia64/predicates.md (mux1_brcst_element): New.
13876 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13877 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13878 (ia64_unpack_sign): New.
13879 (ia64_expand_unpack): Rewrite using new routines.
13880 (ia64_expand_widen_sum): Ditto.
13881 (ia64_expand_dot_prod_v8qi): Ditto.
13882 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13883 routines, add endian check.
13884 (pmpy2_even): Rename from pmpy2_r, add endian check.
13885 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13886 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13887 (vec_widen_smult_hi_v4hi): Ditto.
13888 (vec_widen_umult_lo_v4hi): Ditto.
13889 (vec_widen_umult_hi_v4hi): Ditto.
13890 (mulv2si3): Change endian checks.
13891 (sdot_prodv4hi): Rewrite with new calls.
13892 (udot_prodv4hi): New.
13893 (vec_pack_ssat_v4hi): Add endian check.
13894 (vec_pack_usat_v4hi): Ditto.
13895 (vec_pack_ssat_v2si): Ditto.
13896 (max1_even): Rename from max1_r, add endian check.
13897 (max1_odd): Rename from max1_l, add endian check.
13898 (*mux1_rev): Format change.
13899 (*mux1_mix): Ditto.
13900 (*mux1_shuf): Ditto.
13901 (*mux1_alt): Ditto.
13902 (*mux1_brcst_v8qi): Use new predicate.
13903 (vec_extract_evenv8qi): Remove endian check.
13904 (vec_extract_oddv8qi): Ditto.
13905 (vec_interleave_lowv4hi): Format change.
13906 (vec_interleave_highv4hi): Ditto.
13907 (mix2_even): Rename from mix2_r, add endian check.
13908 (mix2_odd): Rename from mux2_l, add endian check.
13909 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13910 (vec_extract_evenodd_helper): Format change.
13911 (vec_extract_evenv4hi): Remove endian check.
13912 (vec_extract_oddv4hi): Remove endian check.
13913 (vec_interleave_lowv2si): Format change.
13914 (vec_interleave_highv2si): Format change.
13915 (vec_initv2si): Remove endian check.
13916 (vecinit_v2si): Add endian check.
13917 (reduc_splus_v2sf): Add endian check.
13918 (reduc_smax_v2sf): Ditto.
13919 (reduc_smin_v2sf): Ditto.
13920 (vec_initv2sf): Remove endian check.
13921 (fpack): Add endian check.
13922 (fswap): Add endian check.
13923 (vec_interleave_highv2sf): Add endian check.
13924 (vec_interleave_lowv2sf): Add endian check.
13925 (fmix_lr): Add endian check.
13926 (vec_setv2sf): Format change.
13927 (*vec_extractv2sf_0_be): Use shift to extract operand.
13928 (*vec_extractv2sf_1_be): New.
13929 (vec_pack_trunc_v4hi): Add endian check.
13930 (vec_pack_trunc_v2si): Format change.
13931
13932 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13933
13934 PR inline-asm/23200
13935 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13936 do bb, locus and block comparison and disallow loads if it is not set.
13937 (stmt_is_replaceable_p): New function.
13938 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13939 callers.
13940 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13941 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13942 SSA_NAME_DEF_STMT.
13943 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13944
13945 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13946
13947 * config/rs6000/xilinx.opt: New.
13948 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13949
13950 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13951
13952 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13953
13954 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13955
13956 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13957 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13958 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13959 secondary_reload_info, xtensa_secondary_reload): Remove.
13960 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13961 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13962 (xtensa_preferred_reload_class): Make static. Change return and
13963 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13964 Use CONST_DOUBLE_P predicate.
13965 (xtensa_preferred_output_reload_class): New function.
13966 (xtensa_secondary_reload): Make static.
13967
13968 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13969
13970 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13971 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13972 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13973
13974 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13975
13976 PR middle-end/31490
13977 * output.h (SECTION_RELRO): Define.
13978 (SECTION_MACH_DEP): Adjust.
13979 (get_variable_section): New prototype.
13980 * varpool.c (varpool_finalize_named_section_flags): New function.
13981 (varpool_assemble_pending_decls): Call it.
13982 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13983 * cgraphunit.c (cgraph_output_in_order): Call
13984 varpool_finalize_named_section_flags.
13985 * varasm.c (get_section): Allow section flags conflicts between
13986 relro and read-only sections if the section hasn't been declared yet.
13987 Set SECTION_OVERRIDE after diagnosing section type conflict.
13988 (get_variable_section): No longer static.
13989 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13990 readonly sections that need relocations.
13991 (decl_readonly_section_1): New function.
13992 (decl_readonly_section): Use it.
13993
13994 Revert:
13995 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13996 Steve Ellcey <sje@cup.hp.com>
13997
13998 PR middle-end/31490
13999 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14000 if section attribute used.
14001
14002 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14003
14004 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14005 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14006 (darwin_init_sections): Remove assertion.
14007
14008 2011-02-03 Nick Clifton <nickc@redhat.com>
14009
14010 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14011 lt and ge.
14012 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14013 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14014 instead of "n" and "pz".
14015 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14016 CC_FLAG_S.
14017
14018 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14019
14020 PR target/47312
14021 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14022 fma, expand FMA_EXPR as fma{,f,l} call.
14023
14024 PR lto/47274
14025 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14026 copy them into a unsigned char variable and pass address of it to
14027 lto_output_data_stream.
14028
14029 PR target/47564
14030 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14031 around backend_init_target and lang_dependent_init_target calls.
14032 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14033 (verify_cgraph_node): Don't call set_cfun here. Use
14034 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14035 Set error_found for incorrectly represented calls to thunks.
14036
14037 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14038
14039 PR debug/43092
14040 PR rtl-optimization/43494
14041 * rtl.h (for_each_inc_dec_fn): New type.
14042 (for_each_inc_dec): Declare.
14043 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14044 (for_each_inc_dec_find_inc_dec): New fn.
14045 (for_each_inc_dec_find_mem): New fn.
14046 (for_each_inc_dec): New fn.
14047 * dse.c (struct insn_size): Remove.
14048 (replace_inc_dec, replace_inc_dec_mem): Remove.
14049 (emit_inc_dec_insn_before): New fn.
14050 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14051 (canon_address): Pass mem modes to cselib_lookup.
14052 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14053 (cselib_lookup_from_insn): Likewise.
14054 (cselib_subst_to_values): Likewise.
14055 * cselib.c (find_slot_memmode): New var.
14056 (cselib_find_slot): New fn. Use it instead of
14057 htab_find_slot_with_hash everywhere.
14058 (entry_and_rtx_equal_p): Use find_slot_memmode.
14059 (autoinc_split): New fn.
14060 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14061 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14062 Deal with autoinc. Special-case recursion into MEMs.
14063 (cselib_hash_rtx): Likewise.
14064 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14065 address and MEM modes.
14066 (cselib_subst_to_values): Add memmode, pass it on.
14067 Deal with autoinc.
14068 (cselib_lookup): Add memmode argument, pass it on.
14069 (cselib_lookup_from_insn): Add memmode.
14070 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14071 (struct cselib_record_autoinc_data): New.
14072 (cselib_record_autoinc_cb): New fn.
14073 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14074 mode to cselib_lookup. Reset autoinced REGs here instead of...
14075 (cselib_process_insn): ... here.
14076 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14077 to cselib_lookup.
14078 (add_uses): Likewise, also to cselib_subst_to_values.
14079 (add_stores): Likewise.
14080 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14081 cselib_subst_to_values.
14082 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14083 * gcse.c (do_local_cprop): Adjusted.
14084 * postreload.c (reload_cse_simplify_set): Adjusted.
14085 (reload_cse_simplify_operands): Adjusted.
14086 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14087
14088 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14089
14090 PR tree-optimization/45122
14091 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14092 unsafe assumptions when there's more than one loop exit.
14093
14094 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14095
14096 PR target/47272
14097 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14098 Document using vector double with the load/store builtins, and
14099 that the load/store builtins always use Altivec instructions.
14100
14101 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14102 to use altivec memory instructions, even on VSX.
14103 (vector_altivec_store_<mode>): Ditto.
14104
14105 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14106 function.
14107
14108 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14109 V2DF, V2DI support to load/store overloaded builtins.
14110
14111 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14112 altivec load/store builtins for V2DF/V2DI types.
14113
14114 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14115 set avoid indexed addresses on power6 if -maltivec.
14116 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14117 vector_altivec_load/vector_altivec_store builtins.
14118 (altivec_expand_st_builtin): Ditto.
14119 (altivec_expand_builtin): Add VSX memory builtins.
14120 (rs6000_init_builtins): Add V2DI types to internal types.
14121 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14122 load/store builtins.
14123 (rs6000_address_for_altivec): Insure memory address is appropriate
14124 for Altivec.
14125
14126 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14127 vec_vsx_ld and vec_vsx_st.
14128 (vsx_store_<mode>): Ditto.
14129
14130 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14131 variables to hold long long types for VSX vector memory builtins.
14132 (RS6000_BTI_unsigned_long_long): Ditto.
14133 (long_long_integer_type_internal_node): Ditti.
14134 (long_long_unsigned_type_internal_node): Ditti.
14135
14136 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14137 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14138 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14139
14140 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14141 short cuts.
14142 (vec_vsx_st): Ditto.
14143
14144 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14145
14146 * config/pa/pa-hpux10.opt: New.
14147 * config/hpux11.opt (pthread): New Driver option.
14148 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14149 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14150
14151 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14152
14153 * config/ia64/vms.opt: New.
14154 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14155
14156 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14157
14158 PR target/47580
14159 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14160 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14161 generator functions.
14162 (vsx_floatuns<VSi><mode>2): Ditto.
14163 (vsx_fix_trunc<mode><VSi>2): Ditto.
14164 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14165
14166 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14167
14168 * config/i386/djgpp.opt (posix): New Driver option.
14169
14170 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14171
14172 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14173 Move to the unsupported targets list.
14174
14175 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14176
14177 PR rtl-optimization/47525
14178 * df-scan.c: Update copyright years.
14179 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14180 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14181
14182 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14183
14184 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14185 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14186 (ASM_OUTPUT_ASCII): Remove.
14187 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14188
14189 2011-02-02 Jeff Law <law@redhat.com>
14190
14191 PR middle-end/47543
14192 * reload.c (find_reloads_address): Handle reg+d address where both
14193 components are invalid by reloading the entire address.
14194
14195 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14196 Richard Guenther <rguenther@suse.de>
14197
14198 PR tree-optimization/40979
14199 PR bootstrap/47044
14200 * passes.c (init_optimization_passes): After LIM call copy_prop
14201 and DCE to clean up.
14202 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14203
14204 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14205
14206 PR tree-optimization/47576
14207 PR tree-optimization/47555
14208 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14209 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14210 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14211 * tree-scalar-evolution.c (follow_ssa_edge): Use
14212 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14213
14214 2011-02-02 Richard Guenther <rguenther@suse.de>
14215
14216 PR tree-optimization/47566
14217 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14218
14219 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14220
14221 PR debug/47106
14222 PR debug/47402
14223 * tree-inline.c (declare_return_variable): Remove unused caller
14224 variable.
14225
14226 PR debug/47106
14227 PR debug/47402
14228 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14229 * cfgexpand.c (account_used_vars_for_block): Use them.
14230 * tree-nrv.c (tree_nrv): Likewise.
14231 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14232 (dump_scope_block): Likewise.
14233 (remove_unused_locals): Likewise.
14234
14235 PR debug/47106
14236 PR debug/47402
14237 * tree-inline.c (declare_return_variable): Add result decl to
14238 local decls only once.
14239 * gimple-low.c (record_vars_into): Mark newly-created variables
14240 as referenced.
14241
14242 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14243
14244 PR debug/47498
14245 PR debug/47501
14246 PR debug/45136
14247 PR debug/45130
14248 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14249 debug insns.
14250 (no_real_insns_p, schedule_block, set_priorities): Drop special
14251 treatment of boundary debug insns.
14252 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14253 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14254 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14255 (BOUNDARY_DEBUG_INSN_P): Likewise.
14256 (SCHEDULE_DEBUG_INSN_P): Likewise.
14257 * sched-rgn.c (init_ready_list): Drop special treatment of
14258 boundary debug insns.
14259 * final.c (rest_of_clean_state): Clear notes' BB.
14260
14261 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14262
14263 * config/openbsd.opt (assert=): New Driver option.
14264
14265 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14266
14267 * config/i386/nto.opt: New.
14268 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14269
14270 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14271
14272 * config/i386/netware.opt: New.
14273 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14274
14275 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14276
14277 * config/interix.opt (posix): New Driver option.
14278
14279 2011-02-01 DJ Delorie <dj@redhat.com>
14280
14281 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14282
14283 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14284 class for A0/A1.
14285
14286 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14287
14288 PR tree-optimization/47561
14289 * toplev.c (process_options): Print the Graphite flags. Add
14290 flag_loop_flatten to the list of options requiring Graphite.
14291
14292 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14293
14294 * config/i386/cygming.opt (posix): New Driver option.
14295
14296 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14297
14298 * config/arm/vxworks.opt: New.
14299 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14300
14301 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14302
14303 * config/alpha/elf.opt: New.
14304 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14305 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14306
14307 2011-02-01 Richard Guenther <rguenther@suse.de>
14308
14309 PR tree-optimization/47559
14310 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14311 store-motion on references that can throw.
14312
14313 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14314
14315 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14316 * tree-pass.h (TDF_CSELIB): New macro.
14317 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14318 cselib_lookup): Check for it rather than for TDF_DETAILS.
14319
14320 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14321
14322 PR driver/47547
14323 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14324 is HOST_BIT_BUCKET.
14325
14326 * opts.c (finish_options): Don't add x_aux_base_name if it is
14327 HOST_BIT_BUCKET.
14328
14329 2011-02-01 Richard Guenther <rguenther@suse.de>
14330
14331 PR tree-optimization/47555
14332 Revert
14333 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14334
14335 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14336
14337 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14338
14339 PR gcc/46692
14340 * config/lm32/t-lm32: Add multilib for all CPU options.
14341
14342 2011-02-01 Richard Guenther <rguenther@suse.de>
14343
14344 PR tree-optimization/47541
14345 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14346 sure to have a field at offset zero.
14347
14348 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14349
14350 * config/arc/arc.opt (EB, EL): New Driver options.
14351
14352 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14353
14354 * config/alpha/osf5.opt: New.
14355 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14356
14357 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14358
14359 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14360
14361 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14362
14363 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14364 -floop-interchange.
14365 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14366 is an alias of -floop-interchange and that it requires the
14367 Graphite infrastructure.
14368 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14369 flag_loop_interchange based on the value of flag_tree_loop_linear.
14370
14371 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14372 Richard Guenther <rguenther@suse.de>
14373
14374 PR tree-optimization/47538
14375 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14376 type instead of r1type, except for comparisons. For right
14377 shifts and comparisons punt if there are mismatches in
14378 sizetype vs. non-sizetype types.
14379
14380 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14381
14382 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14383 avx_runtime.
14384
14385 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14386
14387 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14388 version number.
14389 * configure: Regenerate.
14390
14391 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14392
14393 * configure.ac (gcc_cv_ld_static_option): Define.
14394 (gcc_cv_ld_dynamic_option): Define.
14395 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14396 instead.
14397 (HAVE_LD_STATIC_DYNAMIC): Update message.
14398 (LD_STATIC_OPTION): Define.
14399 (LD_DYNAMIC_OPTION): Define.
14400 * configure: Regenerate.
14401 * config.in: Regenerate.
14402 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14403 HAVE_LD_STATIC_DYNAMIC]: Use them.
14404
14405 2011-01-31 Nick Clifton <nickc@redhat.com>
14406
14407 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14408 registers inside interrupt handlers if the handler is not a leaf
14409 function.
14410
14411 2011-01-31 Nick Clifton <nickc@redhat.com>
14412
14413 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14414 reg_renumber returning an INVALID_REGNUM.
14415
14416 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14417
14418 PR libgcj/44341
14419 * doc/install.texi: Document host options discarded when cross
14420 configuring target libraries.
14421
14422 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14423
14424 Reverted:
14425 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14426 PR debug/45136
14427 PR debug/45130
14428 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14429 debug insns.
14430 (no_real_insns_p, schedule_block, set_priorities): Drop special
14431 treatment of boundary debug insns.
14432 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14433 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14434 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14435 (BOUNDARY_DEBUG_INSN_P): Likewise.
14436 (SCHEDULE_DEBUG_INSN_P): Likewise.
14437 * sched-rgn.c (init_ready_list): Drop special treatment of
14438 boundary debug insns.
14439 * final.c (rest_of_clean-state): Clear notes' BB.
14440
14441 2011-01-31 Alan Modra <amodra@gmail.com>
14442
14443 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14444 toc relative expressions as we do in print_operand_address.
14445
14446 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14447
14448 * doc/extend.texi: Follow spelling conventions.
14449 * doc/invoke.texi: Fix a typo.
14450
14451 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14452
14453 * config/hpux11.opt: New.
14454 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14455 ia64*-*-hpux*): Use hpux11.opt.
14456
14457 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14458
14459 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14460 to tmake_file.
14461
14462 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14463
14464 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14465 support sites.
14466
14467 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14468
14469 * doc/install.texi (Binaries): Remove outdated reference for
14470 Motorola 68HC11/68HC12 downloads.
14471
14472 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14473
14474 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14475 Drepper's paper.
14476
14477 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14478
14479 PR bootstrap/47147
14480 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14481 used by NetBSD.
14482
14483 2011-01-28 Ahmad Sharif <asharif@google.com>
14484
14485 * value-prof.c (check_counter): Corrected error message.
14486
14487 2011-01-29 Jie Zhang <jie@codesourcery.com>
14488
14489 * config/arm/arm.c (arm_legitimize_reload_address): New.
14490 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14491 arm_legitimize_reload_address.
14492 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14493
14494 2011-01-28 Ian Lance Taylor <iant@google.com>
14495
14496 * godump.c (go_define): Ignore macros whose definitions include
14497 two adjacent operands.
14498
14499 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14500
14501 PR target/42894
14502 * varasm.c (force_const_mem): Store copy of x in desc->constant
14503 instead of x itself.
14504 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14505 itself into REG_EQUAL note.
14506
14507 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14508
14509 * config/freebsd.opt (posix, rdynamic): New Driver options.
14510
14511 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14512
14513 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14514 -Bstatic/-Bdynamic.
14515 * configure: Regenerate.
14516
14517 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14518
14519 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14520 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14521
14522 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14523
14524 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14525 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14526 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14527 (s390_preferred_reload_class): Make static. Change return and
14528 'rclass' argument type to reg_class_t.
14529
14530 2011-01-27 Jan Hubicka <jh@suse.cz>
14531
14532 PR middle-end/46949
14533 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14534 (process_function_and_variable_attributes): Check defined weakrefs.
14535
14536 2011-01-27 Martin Jambor <mjambor@suse.cz>
14537
14538 PR tree-optimization/47228
14539 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14540 build_ref_for_offset.
14541
14542 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14543
14544 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14545
14546 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14547
14548 PR rtl-optimization/46856
14549 * postreload.c (reload_combine_recognize_const_pattern): Do not
14550 separate cc0 setter and user on cc0 targets.
14551
14552 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14553
14554 PR c/43082
14555 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14556 passed a VOID_TYPE expression, immediately emit an error and
14557 return error_mark_node.
14558
14559 2011-01-26 Jeff Law <law@redhat.com>
14560
14561 PR rtl-optimization/47464
14562 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14563 rather than may_trap_p as needed.
14564
14565 2011-01-26 DJ Delorie <dj@redhat.com>
14566
14567 PR rtl-optimization/46878
14568 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14569 setter/user dependency as well.
14570
14571 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14572
14573 PR rtl-optimization/44469
14574 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14575 after removing trivially dead basic blocks.
14576
14577 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14578
14579 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14580 * config/frv/frv.h (LINK_SPEC): Likewise.
14581 * config/i386/netware.h (LINK_SPEC): Likewise.
14582 * config/m68k/linux.h (ASM_SPEC): Likewise.
14583 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14584 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14585 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14586 * config/sparc/linux.h (ASM_SPEC): Likewise.
14587 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14588 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14589
14590 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14591
14592 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14593 * config/frv/frv.h (ASM_SPEC): Likewise.
14594 * config/m68k/linux.h (ASM_SPEC): Likewise.
14595 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14596 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14597 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14598 * config/sparc/linux.h (ASM_SPEC): Likewise.
14599 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14600 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14601
14602 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14603
14604 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14605 * config/frv/frv.h (LINK_SPEC): Likewise.
14606 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14607
14608 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14609
14610 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14611 * config/frv/frv.h (ASM_SPEC): Likewise.
14612 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14613 * config/m68k/linux.h (ASM_SPEC): Likewise.
14614 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14615 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14616 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14617 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14618 * config/sparc/linux.h (ASM_SPEC): Likewise.
14619 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14620 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14621 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14622
14623 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14624
14625 PR target/46997
14626 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14627 (*mux2): Ditto.
14628 (vec_extract_evenodd_help): Ditto.
14629 (vec_extract_evenv4hi): Ditto.
14630 (vec_extract_oddv4hi): Ditto.
14631 (vec_interleave_lowv2si): Ditto.
14632 (vec_interleave_highv2si): Ditto.
14633 (vec_extract_evenv2si): Ditto.
14634 (vec_extract_oddv2si: Ditto.
14635 (vec_pack_trunc_v2si): Ditto.
14636
14637 2011-01-22 Jan Hubicka <jh@suse.cz>
14638
14639 PR target/47237
14640 * cgraph.h (cgraph_local_info): New field can_change_signature.
14641 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14642 signature can change.
14643 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14644 can change.
14645 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14646 (cgraph_function_versioning): We can not change signature of functions
14647 that don't allow that.
14648 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14649 (lto_input_node): Likewise.
14650 * ipa-inline.c (compute_inline_parameters): Compute
14651 local.can_change_signature.
14652 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14653 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14654 functions that can not change signature.
14655 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14656 init_cumulative_args): Do not use local calling conventions
14657 for functions that can not change signature.
14658
14659 2011-01-22 Jan Hubicka <jh@suse.cz>
14660
14661 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14662
14663 2011-01-26 Richard Guenther <rguenther@suse.de>
14664
14665 PR tree-optimization/47190
14666 * cgraphunit.c (process_common_attributes): New function.
14667 (process_function_and_variable_attributes): Use it.
14668
14669 2011-01-26 Richard Guenther <rguenther@suse.de>
14670
14671 PR lto/47423
14672 * cgraphbuild.c (record_eh_tables): Record reference to personality
14673 function.
14674
14675 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14676
14677 PR debug/45454
14678 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14679 non-debug insns from moving up.
14680
14681 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14682
14683 PR target/40125
14684 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14685 t-dlldir{,-x} fragment for build and add it to tmake_file.
14686 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14687 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14688 * config/i386/t-dlldir: New file.
14689 (SHLIB_DLLDIR): Define.
14690 * config/i386/t-dlldir-x: New file.
14691 (SHLIB_DLLDIR): Define.
14692 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14693 (SHLIB_INSTALL): Use it.
14694
14695 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14696
14697 PR target/47246
14698 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14699 lower bound of the allowed Thumb-2 coprocessor load/store
14700 index range to -256. Add explaining comment.
14701
14702 2011-01-25 Ian Lance Taylor <iant@google.com>
14703
14704 * godump.c (go_define): Improve lexing of macro expansion to only
14705 accept expressions which match Go spec.
14706
14707 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14708
14709 PR c++/43601
14710 * tree.c (handle_dll_attribute): Handle it.
14711 * doc/extend.texi (@item dllexport): Mention it.
14712 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14713
14714 2011-01-25 Ian Lance Taylor <iant@google.com>
14715
14716 PR tree-optimization/26854
14717 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14718 (decl_jump_unsafe): Move higher in file, with no other change.
14719 (bind): Set has_jump_unsafe_decl if appropriate.
14720 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14721 (check_earlier_gotos): Likewise.
14722 (c_check_switch_jump_warnings): Likewise.
14723
14724 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14725
14726 * doc/invoke.texi (Warning Options): Add missing hyphen.
14727 (-fprofile-dir): Minor grammatical fixes.
14728 (-fbranch-probabilities): Likewise.
14729
14730 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14731
14732 PR debug/45136
14733 PR debug/45130
14734 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14735 debug insns.
14736 (no_real_insns_p, schedule_block, set_priorities): Drop special
14737 treatment of boundary debug insns.
14738 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14739 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14740 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14741 (BOUNDARY_DEBUG_INSN_P): Likewise.
14742 (SCHEDULE_DEBUG_INSN_P): Likewise.
14743 * sched-rgn.c (init_ready_list): Drop special treatment of
14744 boundary debug insns.
14745 * final.c (rest_of_clean-state): Clear notes' BB.
14746
14747 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14748
14749 * Makefile.in (LAMBDA_H): Removed.
14750 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14751 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14752 lambda-trans.o, and tree-loop-linear.o.
14753 (lto-symtab.o): Remove dependence on LAMBDA_H.
14754 (tree-loop-linear.o): Remove rule.
14755 (lambda-mat.o): Same.
14756 (lambda-trans.o): Same.
14757 (lambda-code.o): Same.
14758 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14759 (tree-vect-slp.o): Same.
14760 * hwint.h (gcd): Moved here.
14761 (least_common_multiple): Same.
14762 * lambda-code.c: Removed.
14763 * lambda-mat.c: Removed.
14764 * lambda-trans.c: Removed.
14765 * lambda.h: Removed.
14766 * tree-loop-linear.c: Removed.
14767 * lto-symtab.c: Do not include lambda.h.
14768 * omega.c (gcd): Removed.
14769 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14770 * tree-data-ref.c (print_lambda_vector): Moved here.
14771 (lambda_vector_copy): Same.
14772 (lambda_matrix_copy): Same.
14773 (lambda_matrix_id): Same.
14774 (lambda_vector_first_nz): Same.
14775 (lambda_matrix_row_add): Same.
14776 (lambda_matrix_row_exchange): Same.
14777 (lambda_vector_mult_const): Same.
14778 (lambda_vector_negate): Same.
14779 (lambda_matrix_row_negate): Same.
14780 (lambda_vector_equal): Same.
14781 (lambda_matrix_right_hermite): Same.
14782 * tree-data-ref.h: Do not include lambda.h.
14783 (lambda_vector): Moved here.
14784 (lambda_matrix): Same.
14785 (dependence_level): Same.
14786 (lambda_transform_legal_p): Removed declaration.
14787 (lambda_collect_parameters): Same.
14788 (lambda_compute_access_matrices): Same.
14789 (lambda_vector_gcd): Same.
14790 (lambda_vector_new): Same.
14791 (lambda_vector_clear): Same.
14792 (lambda_vector_lexico_pos): Same.
14793 (lambda_vector_zerop): Same.
14794 (lambda_matrix_new): Same.
14795 * tree-flow.h (least_common_multiple): Removed declaration.
14796 * tree-parloops.c (lambda_trans_matrix): Moved here.
14797 (LTM_MATRIX): Same.
14798 (LTM_ROWSIZE): Same.
14799 (LTM_COLSIZE): Same.
14800 (LTM_DENOMINATOR): Same.
14801 (lambda_trans_matrix_new): Same.
14802 (lambda_matrix_vector_mult): Same.
14803 (lambda_transform_legal_p): Same.
14804 * tree-pass.h (pass_linear_transform): Removed declaration.
14805 * tree-ssa-loop.c (tree_linear_transform): Removed.
14806 (gate_tree_linear_transform): Removed.
14807 (pass_linear_transform): Removed.
14808 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14809 flag_loop_interchange.
14810
14811 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14812
14813 PR tree-optimization/47265
14814 PR tree-optimization/47443
14815 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14816 if name still has some uses.
14817
14818 2011-01-25 Martin Jambor <mjambor@suse.cz>
14819
14820 PR tree-optimization/47382
14821 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14822 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14823
14824 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14825
14826 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14827 sjlj_except_unwind_info.
14828
14829 2011-01-25 Richard Guenther <rguenther@suse.de>
14830
14831 PR tree-optimization/47426
14832 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14833 visible functions results escape.
14834
14835 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14836
14837 PR target/45701
14838 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14839 (arm_get_frame_offsets): Use it.
14840
14841 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14842 Jakub Jelinek <jakub@redhat.com>
14843
14844 PR tree-optimization/47271
14845 * tree-if-conv.c (bb_postdominates_preds): New.
14846 (if_convertible_bb_p): Call bb_postdominates_preds.
14847 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14848 (predicate_scalar_phi): Call bb_postdominates_preds.
14849
14850 2011-01-25 Nick Clifton <nickc@redhat.com>
14851
14852 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14853 * config/rx/rx.c (rx_function_value): Likewise.
14854 (rx_promote_function_mode): Likewise.
14855 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14856 in order to make it legitimate.
14857 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14858 make sure that the first operand is the same as the result register.
14859 (addsi3_unspec): Delete.
14860 (subdi3): Do not accept immediate operands.
14861 (subdi3_internal): Likewise.
14862
14863 2011-01-25 Jeff Law <law@redhat.com>
14864
14865 PR rtl-optimization/37273
14866 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14867 handle them like argument loads from stack slots. Do not double
14868 count memory for memory constants and argument loads from stack slots.
14869
14870 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14871
14872 PR tree-optimization/47427
14873 PR tree-optimization/47428
14874 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14875 coalesce if the new root var would be TREE_READONLY.
14876
14877 2011-01-25 Richard Guenther <rguenther@suse.de>
14878
14879 PR middle-end/47414
14880 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14881 correct type for TBAA.
14882
14883 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14884
14885 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14886 (close_phi_written_to_memory): Call for_each_index with
14887 dr_indices_valid_in_loop.
14888
14889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14890
14891 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14892 when it is initialized.
14893
14894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14895
14896 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14897 call to graphite_find_data_references_in_stmt.
14898 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14899 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14900 call to graphite_find_data_references_in_stmt.
14901 (analyze_drs_in_stmts): Same.
14902 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14903 in which the scalar analysis of indices is performed.
14904 (create_data_ref): Same. Update call to dr_analyze_indices.
14905 (find_data_references_in_stmt): Update call to create_data_ref.
14906 (graphite_find_data_references_in_stmt): Same.
14907 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14908 declaration.
14909 (create_data_ref): Same.
14910 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14911 call to create_data_ref.
14912
14913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14914
14915 * graphite-sese-to-poly.c (build_poly_scop): Move
14916 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14917
14918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14919
14920 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14921 VAR_DECL, PARM_DECL, and RESULT_DECL.
14922
14923 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14924
14925 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14926 in a reduction PBB.
14927 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14928 that have already been marked as PBB_IS_REDUCTION.
14929
14930 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14931
14932 * graphite-scop-detection.c (same_close_phi_node): New.
14933 (remove_duplicate_close_phi): New.
14934 (make_close_phi_nodes_unique): New.
14935 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14936
14937 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14938
14939 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14940 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14941 of both data references to be the same.
14942
14943 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14944
14945 * graphite-dependences.c (build_lexicographical_constraint): Remove
14946 the gdim parameter.
14947 (build_lexicographical_constraint): Adjust call to
14948 ppl_powerset_is_empty.
14949 (dependence_polyhedron): Same.
14950 (graphite_legal_transform_dr): Same.
14951 (graphite_carried_dependence_level_k): Same.
14952 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14953 parameter.
14954 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14955
14956 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14957
14958 * graphite-sese-to-poly.c
14959 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14960 (close_phi_written_to_memory): New.
14961 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14962 and unshare_expr.
14963
14964 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14965
14966 * doc/install.texi: Update the expected version number of PPL to 0.11.
14967 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14968 #if PPL_VERSION_MINOR < 11.
14969
14970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14971
14972 * graphite-dependences.c: Include graphite-cloog-util.h.
14973 (new_poly_ddr): Inlined into dependence_polyhedron.
14974 (free_poly_ddr): Moved close by new_poly_ddr.
14975 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14976 Early return NULL when ppl_powerset_is_empty returns true.
14977 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14978 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14979 (graphite_legal_transform_dr): Call new_poly_ddr.
14980 (graphite_carried_dependence_level_k): Same.
14981 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14982 (dot_transformed_deps_stmt_1): Removed.
14983 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14984 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14985 (dot_deps_1): Call dot_deps_2.
14986 * Makefile.in (graphite-dependences.o): Add missing dependence on
14987 graphite-cloog-util.h.
14988
14989 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14990
14991 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14992 (build_lexicographical_constraint): Same.
14993 (dependence_polyhedron_1): Same.
14994 (graphite_legal_transform_dr): Same.
14995 (graphite_carried_dependence_level_k): Same.
14996 * graphite-ppl.c (ppl_powerset_is_empty): New.
14997 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14998 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14999
15000 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15001
15002 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15003 the "a followed by b" relation and document it.
15004
15005 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15006
15007 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15008 iteration when the bag of constraints is empty.
15009
15010 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15011
15012 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15013
15014 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15015
15016 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15017 nest and two loop depths as parameters.
15018 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15019 lst_perfect_nestify.
15020
15021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15022
15023 * graphite-dependences.c (print_pddr): Call
15024 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15025
15026 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15027
15028 * graphite-ppl.c (debug_gmp_value): New.
15029 * graphite-ppl.h (debug_gmp_value): Declared.
15030
15031 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15032
15033 * doc/install.texi: Document availability of cloog-0.16.
15034
15035 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15036
15037 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15038 invalid postdominance info.
15039
15040 2011-01-24 Jan Hubicka <jh@suse.cz>
15041
15042 PR c/21659
15043 * doc/extend.texi (weak pragma): Drop claim that it must
15044 appear before definition.
15045 * varasm.c (merge_weak, declare_weak): Only sanity check
15046 that DECL is not output at a time it is declared weak.
15047
15048 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15049
15050 * machmode.def: Fixed comments.
15051
15052 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15053
15054 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15055
15056 2011-01-24 Paul Koning <ni1d@arrl.net>
15057
15058 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15059 WORDS_BIG_ENDIAN.
15060
15061 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15062
15063 PR target/46519
15064 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15065 (block_info): Add scanned and prev.
15066 (move_or_delete_vzeroupper_2): Return if the basic block
15067 has been scanned and the upper 128bit state is unchanged
15068 from the last scan.
15069 (move_or_delete_vzeroupper_1): Return true if the exit
15070 state is changed.
15071 (move_or_delete_vzeroupper): Visit basic blocks using the
15072 work-list based algorithm based on vt_find_locations in
15073 var-tracking.c.
15074
15075 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15076
15077 2011-01-24 Nick Clifton <nickc@redhat.com>
15078
15079 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15080 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15081 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15082 then define __v850e1__.
15083 * doc/invoke.texi: Document -mv850es.
15084
15085 2011-01-24 Richard Henderson <rth@redhat.com>
15086
15087 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15088 compound unordered comparisons.
15089 * config/rx/rx.c (rx_split_fp_compare): Remove.
15090 * config/rx/rx-protos.h: Update.
15091 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15092 (cbranchsf4): Don't call rx_split_fp_compare.
15093 (*cbranchsf4): Use rx_split_cbranch.
15094 (*cmpsf): Don't accept "i" constraint.
15095 (*conditional_branch): Only valid after reload.
15096 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15097
15098 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15099
15100 PR target/47385
15101 * config/rs6000/altivec.md (vector constant splitters): Add
15102 support for creating vector single precision constants if -mvsx is
15103 used and we would create the constant using Altivec primitives.
15104
15105 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15106 Richard Sandiford <rdsandiford@googlemail.com>
15107
15108 PR rtl-optimization/47166
15109 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15110 mechanism for PRE_MODIFY and POST_MODIFY.
15111 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15112 reloadreg.
15113
15114 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15115
15116 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15117
15118 2011-01-22 Jan Hubicka <jh@suse.cz>
15119
15120 PR lto/47333
15121 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15122
15123 2011-01-22 Jan Hubicka <jh@suse.cz>
15124
15125 PR tree-optimization/43884
15126 PR lto/44334
15127 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15128 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15129
15130 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15131
15132 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15133 * config/s390/s390.c (s390_register_move_cost,
15134 s390_memory_move_cost): New.
15135 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15136
15137 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15138
15139 PR middle-end/47401
15140 * except.c (sjlj_assign_call_site_values): Move setting the
15141 crtl->uses_eh_lsda flag to ...
15142 (sjlj_mark_call_sites): ... here.
15143 (sjlj_emit_function_enter): Support NULL dispatch label.
15144 (sjlj_build_landing_pads): In a function with no landing pads
15145 that still has must-not-throw regions, generate code to register
15146 a personality function with empty LSDA.
15147
15148 2011-01-21 Richard Henderson <rth@redhat.com>
15149
15150 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15151
15152 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15153
15154 * compare-elim.c: New file.
15155 * Makefile.in (OBJS-common): Add it.
15156 (compare-elim.o): New.
15157 * common.opt (fcompare-elim): New.
15158 * opts.c (default_options_table): Add OPT_fcompare_elim.
15159 * tree-pass.h (pass_compare_elim_after_reload): New.
15160 * passes.c (init_optimization_passes): Add it.
15161 * recog.h: Protect against re-inclusion.
15162 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15163 * doc/invoke.texi (-fcompare-elim): Document it.
15164 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15165 * doc/tm.texi: Rebuild.
15166
15167 2011-01-22 Nick Clifton <nickc@redhat.com>
15168
15169 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15170 rx_split_fp_compare.
15171
15172 2011-01-22 Nick Clifton <nickc@redhat.com>
15173
15174 * config/rx/rx.md (UNSPEC_CONST): New.
15175 (deallocate_and_return): Wrap the amount popped off the stack in
15176 an UNSPEC_CONST in order to stop it being rejected by
15177 -mmax-constant-size.
15178 (pop_and_return): Add a "(return)" rtx.
15179 (call): Drop the immediate operand.
15180 (call_internal): Likewise.
15181 (call_value): Likewise.
15182 (call_value_internal): Likewise.
15183 (sibcall_internal): Likewise.
15184 (sibcall_value_internal): Likewise.
15185 (sibcall): Likewise. Generate an explicit call using
15186 sibcall_internal.
15187 (sibcall_value): Likewise.
15188 (mov<>): FAIL if a constant operand is not legitimate.
15189 (addsi3_unpsec): New pattern.
15190
15191 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15192 (ok_for_max_constant): New function.
15193 (gen_safe_add): New function.
15194 (rx_expand_prologue): Use gen_safe_add.
15195 (rx_expand_epilogue): Likewise.
15196 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15197 UNSPEC CONSTs.
15198
15199 2011-01-21 Jeff Law <law@redhat.com>
15200
15201 PR tree-optimization/47053
15202 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15203 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15204 statements are deleted.
15205 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15206 is nonempty, then purge dead edges and cleanup the CFG.
15207
15208 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15209
15210 PR debug/47402
15211 Temporarily revert:
15212 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15213 PR debug/47106
15214 * tree-dfa.c (create_var_ann): Mark variable as used.
15215
15216 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15217
15218 PR middle-end/45566
15219 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15220 notes from other section in hot/cold partitioning even if
15221 last_action is -3. Increment call_site_base.
15222
15223 PR rtl-optimization/47366
15224 * fwprop.c (forward_propagate_into): Return bool. If
15225 any changes are made, -fnon-call-exceptions is used and
15226 REG_EH_REGION note is present, call purge_dead_edges
15227 and return true if it purged anything.
15228 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15229 any EH edges were purged.
15230
15231 2011-01-21 Jeff Law <law@redhat.com>
15232
15233 PR rtl-optimization/41619
15234 * caller-save.c (setup_save_areas): Break out code to determine
15235 which hard regs are live across calls by examining the reload chains
15236 so that it is always used.
15237 Eliminate code which checked REG_N_CALLS_CROSSED.
15238
15239 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15240
15241 PR tree-optimization/47355
15242 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15243 NOP has non-debug uses beyond PHIs in new_bb.
15244
15245 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15246
15247 PR debug/47106
15248 * cfgexpand.c (account_used_vars_for_block): Only account vars
15249 that are annotated as used.
15250 (estimated_stack_frame_size): Don't set TREE_USED.
15251 * tree-dfa.c (create_var_ann): Mark variable as used.
15252
15253 2011-01-21 Richard Guenther <rguenther@suse.de>
15254
15255 PR middle-end/47395
15256 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15257
15258 2011-01-21 Richard Guenther <rguenther@suse.de>
15259
15260 PR tree-optimization/47365
15261 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15262 (vn_reference_lookup_pieces): Adjust.
15263 (vn_reference_lookup): Likewise.
15264 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15265 (vn_reference_lookup_3): Only look through kills if in
15266 VN_WALKREWRITE mode.
15267 (vn_reference_lookup_pieces): Adjust.
15268 (vn_reference_lookup): Likewise.
15269 (visit_reference_op_load): Likewise.
15270 (visit_reference_op_store): Likewise.
15271 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15272 (compute_avail): Likewise.
15273 (eliminate): Likewise.
15274
15275 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15276
15277 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15278 DECL_IGNORED_P non-reg vars if they are used.
15279
15280 PR tree-optimization/47391
15281 * varpool.c (const_value_known_p): Return false if
15282 decl is volatile.
15283
15284 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15285
15286 PR bootstrap/47215
15287 * config/i386/i386.c (ix86_local_alignment): Handle
15288 case for va_list_type_node is nil.
15289 (ix86_canonical_va_list_type): Likewise.
15290
15291 2011-01-21 Alan Modra <amodra@gmail.com>
15292
15293 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15294 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15295
15296 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15297
15298 * config/arm/arm.md (define_attr type): Rename f_load
15299 and f_store to f_fpa_load and f_fpa_store. Update.
15300 (write_conflict): Deal with rename fallout.
15301 (*push_fp_multi): Likewise.
15302 * config/arm/fpa.md (f_load): Use f_fpa_load.
15303 (f_store): Use f_fpa_store.
15304 (*movsf_fpa): Likewise.
15305 (*movdf_fpa): Likewise.
15306 (*movxf_fpa): Likewise.
15307 (*thumb2_movsf_fpa): Likewise.
15308 (*thumb2_movdf_fpa): Likewise.
15309 (*thumb2_movxf_fpa): Likewise.
15310 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15311 f_loadd and f_stored.
15312 (*thumb2_movdi_vfp): Likewise.
15313 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15314 (*thumb2_movsi_vfp): Likewise.
15315 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15316 Use f_loads instead of f_load.
15317 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15318
15319 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15320
15321 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15322 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15323 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15324 (xtensa_mode_dependent_address_p): New function.
15325 (constantpool_address_p): Make static. Change return type to bool.
15326 Change argument type to const_rtx. Use CONST_INT_P predicate.
15327
15328 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15329
15330 PR debug/46583
15331 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15332
15333 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15334
15335 PR debug/47283
15336 * cfgexpand.c (expand_debug_expr): Instead of generating
15337 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15338 etc. handling.
15339
15340 2011-01-20 Richard Guenther <rguenther@suse.de>
15341
15342 PR middle-end/47370
15343 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15344 the pointer operand of MEM_REFs.
15345
15346 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15347
15348 PR tree-optimization/46130
15349 * ipa-split.c (consider_split): If return_bb contains non-virtual
15350 PHIs other than for retval or if split_function would not adjust it,
15351 refuse to split.
15352
15353 2011-01-20 Richard Guenther <rguenther@suse.de>
15354
15355 PR tree-optimization/47167
15356 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15357 Revert previous change, only avoid enumeral type changes.
15358
15359 2011-01-19 Mike Stump <mikestump@comcast.net>
15360
15361 * doc/tm.texi.in (BRANCH_COST): Englishify.
15362 * doc/tm.texi (BRANCH_COST): Likewise.
15363
15364 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15365
15366 PR c++/47291
15367 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15368 (gen_scheduled_generic_parms_dies): New functions.
15369 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15370 generation for the end of CU compilation.
15371 (dwarf2out_finish): Generate template parameters DIEs here.
15372
15373 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15374
15375 PR debug/46240
15376 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15377 debug bind stmt on merge edges.
15378
15379 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15380
15381 PR debug/47079
15382 PR debug/46724
15383 * function.c (instantiate_expr): Instantiate incoming rtl of
15384 implicit arguments, and recurse on VALUE_EXPRs.
15385 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15386 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15387
15388 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15389
15390 * c-parser.c (c_parser_for_statement): Initialize
15391 collection_expression.
15392
15393 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15394
15395 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15396
15397 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15398
15399 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15400 (LINK_SHLIB_SPEC): Don't use %(link_path).
15401 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15402
15403 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15404
15405 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15406 (NO_SHARED_LIB_SUPPORT): Remove.
15407 (LINK_SHLIB_SPEC): Remove one conditional definition.
15408
15409 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15410
15411 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15412 %{call_shared}.
15413 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15414 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15415 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15416 %{call_shared} and conditionals on these options not being passed.
15417 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15418 %{call_shared}.
15419
15420 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15421
15422 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15423 simplify.
15424
15425 * ipa-split.c: Spelling fixes.
15426
15427 2011-01-19 Richard Henderson <rth@redhat.com>
15428
15429 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15430 (*mulsi3): Likewise.
15431
15432 * longlong.h [__mn10300__] (count_leading_zeros): New.
15433 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15434 [__mn10300__] (add_ssaaaa, subddmmss): New.
15435 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15436 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15437
15438 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15439
15440 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15441
15442 2011-01-19 Richard Henderson <rth@redhat.com>
15443
15444 * config/mn10300/mn10300.md (addsi3_flags): New.
15445 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15446 (subsi3_flags, subc_internal, subdi3): New.
15447 (subdi3_internal, *subdi3_degenerate): New.
15448 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15449
15450 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15451 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15452 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15453 * config/mn10300/mn10300-protos.h: Update.
15454 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15455 (return_ret): Likewise. Rename from return_internal_regs.
15456 (return_internal): Remove.
15457
15458 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15459 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15460 (mn10300_legitimate_constant_p): Likewise.
15461 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15462 (mn10300_frame_size): New.
15463 (mn10300_expand_prologue): Use it.
15464 (mn10300_expand_epilogue): Likewise.
15465 (mn10300_initial_offset): Likewise.
15466 * config/mn10300/mn10300-protos.h: Update.
15467 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15468 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15469 (prologue, epilogue, return_internal): Tidy output code.
15470 (mn10300_store_multiple_operation, return): Likewise.
15471 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15472 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15473 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15474 (load_pic, am33_load_pic): New.
15475 (mn10300_load_pic0, mn10300_load_pic1): New.
15476
15477 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15478 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15479 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15480 (cc_flags_for_mode, cc_flags_for_code): New.
15481 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15482 overflow flag is not valid. Validate that the flags we need
15483 for the comparison are valid.
15484 (mn10300_output_cmp): Remove.
15485 (mn10300_output_add): New.
15486 (mn10300_select_cc_mode): Use cc_flags_for_code.
15487 (mn10300_split_cbranch): New.
15488 (mn10300_match_ccmode): New.
15489 (mn10300_split_and_operand_count): New.
15490 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15491 to the function.
15492 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15493 (addsi3): ... here. Use mn10300_output_add.
15494 (*addsi3_flags): New.
15495 (*am33_subsi3, *mn10300_subsi3): Merge...
15496 (subsi3): ... here. Use attribute isa.
15497 (*subsi3_flags): New.
15498 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15499 when possible.
15500 (*am33_andsi3, *mn10300_andsi3): Merge...
15501 (andsi3): ... here.
15502 (*andsi3_flags): New.
15503 (andsi3 splitters): New.
15504 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15505 (iorsi3): ... here.
15506 (*iorsi3_flags): New.
15507 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15508 (xorsi3): ... here.
15509 (*xorsi3_flags): New.
15510 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15511 (one_cmplsi2): ... here.
15512 (*one_cmplsi2_flags): New.
15513 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15514 instead of "dax" in constraints. Use mn10300_split_cbranch.
15515 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15516 use matching constraints to eliminate a self-comparison.
15517 (*integer_conditional_branch): Rename from integer_conditional_branch.
15518 Use int_mode_flags to match CC_REG.
15519 (*cbranchsi4_btst, *btstsi): New.
15520 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15521 mn10300_split_cbranch.
15522 (*am33_cmpsf): Rename from am33_cmpsf.
15523 (*float_conditional_branch): Rename from float_conditional_branch.
15524 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15525 (zero_extendqisi2): ... here.
15526 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15527 (zero_extendhisi2): ... here.
15528 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15529 (extendqisi2): ... here.
15530 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15531 (extendhisi2): ... here.
15532 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15533 (ashlsi3): ... here.
15534 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15535 (lshrsi3): ... here.
15536 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15537 (ashrsi3): ... here.
15538 (consecutive add peephole): Remove.
15539 * config/mn10300/predicates.md (label_ref_operand): New.
15540 (int_mode_flags): New.
15541 (CCZN_comparison_operator): New.
15542
15543 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15544 (throughput_42_latency_43): New reservation.
15545 (mulsidi3, umulsidi3): New expanders.
15546 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15547 the MDR register to allocation; separately allocate the low and
15548 high parts of the DImode result.
15549 (umulsidi3_internal): Similarly.
15550 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15551 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15552 (udivsi3, umodsi3): Remove.
15553 (udivmodsi4, divmodsi4): New expanders.
15554 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15555 (*divmodsi4): Simiarly.
15556 (ext_internal): New.
15557
15558 * config/mn10300/constraints.md ("z"): New constraint.
15559 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15560 (FIXED_REGISTERS): Don't fix MDR.
15561 (CALL_USED_REGSITERS): Reformat nicely.
15562 (REG_ALLOC_ORDER): Add MDR.
15563 (enum regclass): Add MDR_REGS.
15564 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15565 (IRA_COVER_CLASSES): Add MDR_REGS.
15566 (REGNO_REG_CLASS): Handle MDR_REG.
15567 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15568 (mn10300_register_move_cost): Likewise.
15569 * config/mn10300/mn10300.md (MDR_REG): New.
15570 (*movsi_internal): Handle moves to/from MDR_REGS.
15571
15572 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15573 POST_MODIFY.
15574 (mn10300_secondary_reload): Tidy combination reload classes.
15575 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15576 addresses for AM33. Allow symbolic offsets for reg+imm.
15577 (mn10300_regno_in_class_p): New.
15578 (mn10300_legitimize_reload_address): New.
15579 * config/mn10300/mn10300.h (enum reg_class): Remove
15580 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15581 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15582 SP_OR_GENERAL_REGS.
15583 (REG_CLASS_NAMES): Update to match.
15584 (REG_CLASS_CONTENTS): Likewise.
15585 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15586 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15587 (REGNO_IN_RANGE_P): Remove.
15588 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15589 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15590 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15591 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15592 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15593 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15594 (REGNO_GENERAL_P): New.
15595 (HAVE_POST_MODIFY_DISP): New.
15596 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15597 (LEGITIMIZE_RELOAD_ADDRESS): New.
15598 * config/mn10300/mn10300-protos.h: Update.
15599
15600 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15601 DATA_REGS for AM33 stack-pointer destination.
15602 (mn10300_preferred_output_reload_class): Likewise.
15603 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15604 into a form appropriate for ...
15605 (TARGET_SECONDARY_RELOAD): New.
15606 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15607 * config/mn10300/mn10300-protos.h: Update.
15608 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15609 reload_insi; use the "A" constraint for the scratch; handle AM33
15610 moves of sp to non-address registers.
15611
15612 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15613 (*movqi_internal): ... here.
15614 (*am33_movhi, *mn10300_movhi): Merge into...
15615 (*movhi_internal): ... here.
15616 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15617 as the source/destination of moves from/to SP.
15618 (movsf): Only allow for AM33-2.
15619 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15620 any integer constant constraint. Only allow for AM33-2. Tidy
15621 all of the alternative outputs.
15622 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15623 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15624 for MN103.
15625 (udivsi3, umodsi3): New patterns for MN103 only.
15626
15627 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15628
15629 * doc/tm.texi.in: Spell out that a lack of register class unions
15630 can lead to ICEs.
15631 * doc/tm.texi: Regenerate.
15632
15633 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15634
15635 PR rtl-optimization/47337
15636 * dce.c (check_argument_store): New function.
15637 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15638
15639 PR tree-optimization/47290
15640 * tree-eh.c (infinite_empty_loop_p): New function.
15641 (cleanup_empty_eh): Use it.
15642
15643 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15644
15645 PR target/46997
15646 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15647 (a64_expand_widen_sum): Ditto.
15648 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15649 (vec_extract_evenodd_help): Ditto.
15650 (vec_extract_evenv4hi): Ditto.
15651 (vec_extract_oddv4hi): Ditto.
15652 (vec_extract_evenv2si): Ditto.
15653 (vec_extract_oddv2si): Ditto.
15654 (vec_extract_evenv2sf): Ditto.
15655 (vec_extract_oddv2sf): Ditto.
15656 (vec_pack_trunc_v4hi: Ditto.
15657 (vec_pack_trunc_v2si): Ditto.
15658 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15659 (vec_interleave_highv8qi): Ditto.
15660 (mix1_r): Ditto.
15661 (vec_extract_oddv8qi): Ditto.
15662 (vec_interleave_lowv4hi): Ditto.
15663 (vec_interleave_highv4hi): Ditto.
15664 (vec_interleave_lowv2si): Ditto.
15665 (vec_interleave_highv2si): Ditto.
15666
15667 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15668
15669 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15670 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15671 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15672 (pa_c_mode_for_suffix): New.
15673 (TARGET_EXPAND_BUILTIN): Define.
15674 (TARGET_C_MODE_FOR_SUFFIX): Define.
15675 (pa_builtins): Define.
15676 (pa_init_builtins): Register __float128 type and init new support
15677 builtins.
15678 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15679 * config/pa/quadlib.c (_U_Qfcopysign): New.
15680
15681 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15682
15683 PR middle-end/46894
15684 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15685 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15686 are defined.
15687
15688 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15689
15690 PR tree-optimization/47179
15691 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15692 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15693
15694 2011-01-18 Richard Guenther <rguenther@suse.de>
15695
15696 PR rtl-optimization/47216
15697 * emit-rtl.c: Include tree-flow.h.
15698 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15699 of replicating it with different semantics.
15700 * Makefile.in (emit-rtl.o): Adjust.
15701
15702 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15703
15704 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15705 (cortex_a9_dp): Handle neon types correctly.
15706
15707 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15708
15709 PR rtl-optimization/47299
15710 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15711 subtarget. Use normal multiplication if both operands are constants.
15712 * expmed.c (expand_widening_mult): Don't try to optimize constant
15713 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15714 before using it.
15715
15716 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15717
15718 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15719 spacing after 'e.g.', typos, comma, hyphenation.
15720
15721 2011-01-17 Richard Henderson <rth@redhat.com>
15722
15723 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15724 (rx_restricted_mem_operand): New.
15725 (rx_shift_operand): Use register_operand.
15726 (rx_source_operand, rx_compare_operand): Likewise.
15727 * config/rx/rx.md (addsi3_flags): New expander.
15728 (adddi3): Rewrite as expander.
15729 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15730 (subsi3_flags): New expander.
15731 (subdi3): Rewrite as expander.
15732 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15733
15734 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15735 (rx_init_builtins): Remove sat builtin.
15736 (rx_expand_builtin): Likewise.
15737 * config/rx/rx.md (ssaddsi3): New.
15738 (*sat): Rename from sat. Represent the CC_REG input.
15739
15740 * config/rx/predicates.md (rshift_operator): New.
15741 * config/rx/rx.c (rx_expand_insv): Remove.
15742 * config/rx/rx-protos.h: Update.
15743 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15744 operand to the canonical position.
15745 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15746 (*bitclr, *bitclr_in_memory): Similarly.
15747 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15748 (insv): Retain the zero_extract in the expansion.
15749
15750 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15751 (bswaphi2, bitinvert, revw): Likewise.
15752
15753 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15754 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15755 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15756 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15757 (bitset, bitset_in_memory): Likewise.
15758 (bitinvert, bitinvert_in_memory): Likewise.
15759 (bitclr, bitclr_in_memory): Likewise.
15760 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15761 (rx_strend, rx_cmpstrn): Likewise.
15762 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15763 (bitop peep2 patterns): Remove.
15764
15765 * config/rx/rx.c (rx_match_ccmode): New.
15766 * config/rx/rx-protos.h: Update.
15767 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15768 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15769 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15770 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15771 (fix_truncsfsi2, floatsisf2): Likewise.
15772 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15773 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15774 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15775 (*subsi3_flags, *xorsi3_flags): New.
15776
15777 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15778
15779 * config/rx/rx.c (rx_print_operand): Remove workaround for
15780 unsplit comparison operations.
15781
15782 * config/rx/rx.md (movsicc): Split after reload.
15783 (*movsicc): Merge *movsieq and *movsine via match_operator.
15784 (*stcc): New pattern.
15785
15786 * config/rx/rx.c (rx_float_compare_mode): Remove.
15787 * config/rx/rx.h (rx_float_compare_mode): Remove.
15788 * config/rx/rx.md (cstoresi4): Split after reload.
15789 (*sccc): New pattern.
15790
15791 * config/rx/predicates.md (label_ref_operand): New.
15792 (rx_z_comparison_operator): New.
15793 (rx_zs_comparison_operator): New.
15794 (rx_fp_comparison_operator): New.
15795 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15796 Validate that the flags are set properly for the comparison.
15797 (rx_gen_cond_branch_template): Remove.
15798 (rx_cc_modes_compatible): Remove.
15799 (mode_from_flags): New.
15800 (flags_from_code): Rename from flags_needed_for_conditional.
15801 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15802 (rx_select_cc_mode): Likewise.
15803 (rx_split_fp_compare): New.
15804 (rx_split_cbranch): New.
15805 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15806 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15807 (*cbranchsf4): Similarly.
15808 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15809 match_operator and rx_split_cbranch.
15810 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15811 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15812 (*cmpsi): Rename from cmpsi.
15813 (*tstsi): Rename from tstsi.
15814 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15815 (*conditional_branch): Rename from conditional_branch.
15816 (*reveresed_conditional_branch): Remove.
15817 (b<code>): Remove expander.
15818 * config/rx/rx-protos.h: Update.
15819
15820 * config/rx/rx.c (rx_compare_redundant): Remove.
15821 * config/rx/rx.md (cmpsi): Don't use it.
15822 * config/rx/rx-protos.h: Update.
15823
15824 * config/rx/rx-modes.def (CC_F): New mode.
15825 * config/rx/rx.c (rx_select_cc_mode): New.
15826 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15827 * config/rx/rx-protos.h: Update.
15828
15829 2011-01-17 Richard Henderson <rth@redhat.com>
15830
15831 * except.c (dump_eh_tree): Fix stray ; after for statement.
15832
15833 2011-01-17 Richard Guenther <rguenther@suse.de>
15834
15835 PR tree-optimization/47313
15836 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15837 handling before copying the body. Properly deal with
15838 by-reference result in SSA form.
15839
15840 2011-01-17 Ian Lance Taylor <iant@google.com>
15841
15842 PR target/47219
15843 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15844 (struct_value_alias_set): Don't define.
15845 (sparc_option_override): Don't set sparc_sr_alias_set and
15846 struct_value_alias_set.
15847 (save_or_restore_regs): Use gen_frame_mem rather than calling
15848 set_mem_alias_set.
15849 (sparc_struct_value_rtx): Likewise.
15850
15851 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15852
15853 PR target/47318
15854 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15855 (_mm_maskstore_pd): Likewise.
15856 (_mm_maskload_ps): Likewise.
15857 (_mm_maskstore_ps): Likewise.
15858 (_mm256_maskload_pd): Change mask to __m256i.
15859 (_mm256_maskstore_pd): Likewise.
15860 (_mm256_maskload_ps): Likewise.
15861 (_mm256_maskstore_ps): Likewise.
15862
15863 * config/i386/i386-builtin-types.def: Updated.
15864 (ix86_expand_special_args_builtin): Likewise.
15865
15866 * config/i386/i386.c (bdesc_special_args): Update
15867 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15868 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15869 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15870 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15871
15872 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15873 Use <avxpermvecmode> on mask register.
15874 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15875
15876 2011-01-17 Olivier Hainque <hainque@adacore.com>
15877 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15878 Eric Botcazou <ebotcazou@adacore.com>
15879
15880 PR target/46655
15881 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15882 if <= USHRT_MAX in 32-bit mode.
15883
15884 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15885
15886 * doc/install.texi (Configuration, Specific): Wrap long
15887 lines in examples. Allow line wrapping in long options
15888 and URLs where beneficial for PDF output.
15889
15890 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15891
15892 * config/mips/mips.c (mips_classify_symbol): Don't return
15893 SYMBOL_PC_RELATIVE for nonlocal labels.
15894
15895 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15896
15897 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15898
15899 2011-01-15 Jan Hubicka <jh@suse.cz>
15900
15901 PR tree-optimization/47276
15902 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15903 declarations as needed.
15904
15905 2011-01-15 Martin Jambor <mjambor@suse.cz>
15906
15907 * common.opt (fdevirtualize): New flag.
15908 * doc/invoke.texi (Option Summary): Document it.
15909 * opts.c (default_options_table): Add devirtualize flag.
15910 * ipa-prop.c (detect_type_change): Return immediately if
15911 devirtualize flag is not set.
15912 (detect_type_change_ssa): Likewise.
15913 (compute_known_type_jump_func): Likewise.
15914 (ipa_analyze_virtual_call_uses): Likewise.
15915
15916 2011-01-14 Martin Jambor <mjambor@suse.cz>
15917
15918 PR tree-optimization/45934
15919 PR tree-optimization/46302
15920 * ipa-prop.c (type_change_info): New type.
15921 (stmt_may_be_vtbl_ptr_store): New function.
15922 (check_stmt_for_type_change): Likewise.
15923 (detect_type_change): Likewise.
15924 (detect_type_change_ssa): Likewise.
15925 (compute_complex_assign_jump_func): Check for dynamic type change.
15926 (compute_complex_ancestor_jump_func): Likewise.
15927 (compute_known_type_jump_func): Likewise.
15928 (compute_scalar_jump_functions): Likewise.
15929 (ipa_analyze_virtual_call_uses): Likewise.
15930 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15931
15932 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15933
15934 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15935 * config/i386/i386.opt (msse5): New Alias.
15936
15937 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15938
15939 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15940 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15941 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15942 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15943
15944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15945
15946 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15947 -mcpu options.
15948 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15949 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15950 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15951 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15952 Likewise.
15953 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15954
15955 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15956
15957 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15958
15959 2011-01-14 Mike Stump <mikestump@comcast.net>
15960
15961 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15962 * config/fr30/fr30.md: Likweise
15963 (movsi_push): Likewise.
15964 (movsi_pop): Likewise.
15965 (enter_func): Likewise.
15966 * config/moxie/moxie.md (movsi_push): Likewise.
15967 (movsi_pop): Likewise.
15968
15969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15970
15971 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15972 %{no_archive} %{exact_version}.
15973 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15974 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15975 %{no_archive} %{exact_version}.
15976 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15977 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15978 * config/mips/vxworks.h: Likewise.
15979
15980 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15981
15982 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15983
15984 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15985
15986 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15987 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15988
15989 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15990
15991 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15992 -nodefaultlib.
15993
15994 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15995
15996 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15997 for mcpu not cpu.
15998 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15999 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16000 not cpu.
16001 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16002 Don't handle -shlib.
16003
16004 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16005
16006 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16007 (CC1_SPEC): Don't handle -profile.
16008
16009 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16010
16011 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16012 * config/mips/mips.h (CC1_SPEC): Likewise.
16013
16014 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16015
16016 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16017 * config/mips/mips.h (CC1_SPEC): Likewise.
16018
16019 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16020
16021 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16022 * config/m32r/linux.h (LINK_SPEC): Likewise.
16023 * config/mips/linux.h (LINK_SPEC): Likewise.
16024 * config/mips/linux64.h (LINK_SPEC): Likewise.
16025 * config/sparc/linux.h (LINK_SPEC): Likewise.
16026 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16027 LINK_SPEC): Likewise.
16028 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16029
16030 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16031
16032 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16033 %{version:-v}.
16034 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16035
16036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16037
16038 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16039 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16040
16041 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16042
16043 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16044
16045 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16046
16047 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16048 supports -Bstatic/-Bdynamic.
16049 * configure: Regenerate.
16050
16051 2011-01-14 Jan Hubicka <jh@suse.cz>
16052 Jack Howarth <howarth@bromo.med.uc.edu>
16053
16054 PR target/46037
16055 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16056 when checking debug_info_level. Test write_symbols instead of
16057 debug_hooks->var_location when setting flag_var_tracking_uninit.
16058
16059 2011-01-14 Richard Guenther <rguenther@suse.de>
16060
16061 PR tree-optimization/47179
16062 * target.def (ref_may_alias_errno): New target hook.
16063 * targhooks.h (default_ref_may_alias_errno): Declare.
16064 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16065 (default_ref_may_alias_errno): New function.
16066 * target.h (struct ao_ref_s): Declare.
16067 * tree-ssa-alias.c: Include target.h.
16068 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16069 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16070 (targhooks.o): Likewise.
16071 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16072 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16073
16074 2011-01-14 Richard Guenther <rguenther@suse.de>
16075
16076 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16077
16078 2011-01-14 Richard Guenther <rguenther@suse.de>
16079
16080 PR tree-optimization/47280
16081 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16082 return CFG changes.
16083 (tree_ssa_forward_propagate_single_use_vars): Deal with
16084 CFG changes from associate_plusminus.
16085
16086 2011-01-14 Richard Guenther <rguenther@suse.de>
16087
16088 PR middle-end/47281
16089 Revert
16090 2011-01-11 Richard Guenther <rguenther@suse.de>
16091
16092 PR tree-optimization/46076
16093 * tree-ssa.c (useless_type_conversion_p): Conversions from
16094 unprototyped to empty argument list function types are useless.
16095
16096 2011-01-14 Richard Guenther <rguenther@suse.de>
16097
16098 PR tree-optimization/47286
16099 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16100
16101 2011-01-14 Martin Jambor <mjambor@suse.cz>
16102
16103 PR middle-end/46823
16104 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16105
16106 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16107
16108 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16109 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16110 * config/xtensa/xtensa.c (xtensa_libcall_value,
16111 xtensa_function_value_regno_p): New functions.
16112 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16113
16114 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16115
16116 PR c++/47213
16117 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16118 PE specific hook.
16119 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16120 New function prototype.
16121 * config/i386/winnt.c (i386_pe_assemble_visibility):
16122 Warn only if attribute was specified by user.
16123
16124 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16125
16126 PR target/47251
16127 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16128 floating point.
16129 (floatunsdidf2_fcfidu): Ditto.
16130
16131 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16132
16133 * config/s390/s390.c (print_operand_address): Replace 'error' with
16134 'output_operand_lossage'.
16135 (print_operand): Likewise.
16136
16137 2011-01-13 Jeff Law <law@redhat.com>
16138
16139 PR rtl-optimization/39077
16140 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16141 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16142 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16143 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16144 * gcse.c (prune_insertions_deletions): New function.
16145 (compute_pre_data): Use it.
16146
16147 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16148
16149 PR debug/PR46973
16150 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16151 static function.
16152 (prune_unused_types_mark): Use it.
16153
16154 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16155
16156 PR rtl-optimization/45352
16157 * sel-sched.c: Update copyright years.
16158 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16159 in the advancing loop when we have issued issue_rate insns.
16160
16161 2011-01-12 Richard Henderson <rth@redhat.com>
16162
16163 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16164 (TARGET_MD_ASM_CLOBBERS): New.
16165
16166 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16167 (TARGET_DELEGITIMIZE_ADDRESS): New.
16168
16169 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16170 (clzsi2, *bsch): New patterns.
16171
16172 * config/mn10300/mn10300.md (INT): New mode iterator.
16173 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16174
16175 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16176 flag_split_wide_types.
16177
16178 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16179 (mn10300_trampoline_init): Rewrite without a template, an immediate
16180 load and a direct branch.
16181 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16182
16183 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16184
16185 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16186 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16187 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16188 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16189
16190 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16191
16192 PR debug/47209
16193 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16194 of type.
16195
16196 2011-01-12 Jan Hubicka <jh@suse.cz>
16197
16198 PR driver/47244
16199 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16200 (PLUGIN_COND_CLOSE): New macro.
16201 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16202
16203 2011-01-12 Richard Guenther <rguenther@suse.de>
16204
16205 PR lto/47259
16206 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16207 register variables in a MEM_REF.
16208
16209 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16210
16211 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16212 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16213 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16214 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16215 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16216 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16217 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16218 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16219 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16220 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16221 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16222 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16223 * config/gnu-user.h: New. Copied from linux.h.
16224 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16225 GNU_USER_TARGET_STARTFILE_SPEC.
16226 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16227 GNU_USER_TARGET_ENDFILE_SPEC.
16228 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16229 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16230 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16231 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16232 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16233 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16234 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16235 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16236 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16237 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16238 * config/arm/linux-eabi.h (CC1_SPEC): Use
16239 GNU_USER_TARGET_CC1_SPEC.
16240 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16241 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16242 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16243 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16244 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16245 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16246 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16247 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16248
16249 2011-01-12 Richard Guenther <rguenther@suse.de>
16250
16251 PR other/46946
16252 * doc/invoke.texi (ffast-math): Document it is turned on
16253 with -Ofast.
16254
16255 2011-01-12 Jan Hubicka <jh@suse.cz>
16256
16257 PR tree-optimization/47233
16258 * opts.c (common_handle_option): Disable ipa-reference with profile
16259 feedback.
16260
16261 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16262
16263 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16264 error message.
16265
16266 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16267
16268 * c-parser.c (c_lex_one_token): Updated and reindented some
16269 comments. No changes in code.
16270
16271 2011-01-11 Ian Lance Taylor <iant@google.com>
16272
16273 * godump.c (go_output_var): Don't output the variable if there is
16274 already a type with the same name.
16275
16276 2011-01-11 Ian Lance Taylor <iant@google.com>
16277
16278 * godump.c (go_format_type): Don't generate float80.
16279
16280 2011-01-11 Richard Henderson <rth@redhat.com>
16281
16282 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16283 declaration. Rewrite for both speed and size.
16284 (mn10300_address_cost_1): Remove.
16285 (mn10300_register_move_cost): New.
16286 (mn10300_memory_move_cost): New.
16287 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16288 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16289 extensions, shifts, BSWAP, CLZ.
16290 (mn10300_wide_const_load_uses_clr): Remove.
16291 (TARGET_REGISTER_MOVE_COST): New.
16292 (TARGET_MEMORY_MOVE_COST): New.
16293 * config/mn10300/mn10300-protos.h: Update.
16294 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16295
16296 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16297 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16298 * config/mn10300/mn10300-protos.h: Update.
16299 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16300 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16301 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16302 (*test_int_bitfield, *test_byte_bitfield): Remove.
16303 (*bit_test, *subreg_bit_test): Remove.
16304 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16305
16306 * config/mn10300/constraints.md ("c"): Rename from "A".
16307 ("A", "D"): New constraint letters.
16308 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16309 (fmssf4, fnmasf4, fnmssf4): Likewise.
16310
16311 * config/mn10300/mn10300.md (isa): New attribute.
16312 (enabled): New attribute.
16313
16314 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16315 (abssf2, negsf2): Define only for hardware fp.
16316 (sqrtsf2): Reformat.
16317 (addsf3, subsf3, mulsf3): Merge expander and insn.
16318
16319 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16320 (DEBUGGER_AUTO_OFFSET): Remove.
16321 (DEBUGGER_ARG_OFFSET): Remove.
16322
16323 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16324 Emit register stores with the same offsets as the hardware.
16325 (mn10300_store_multiple_operation): Don't check that the register
16326 save offsets are monotonic.
16327 * config/mn10300/mn10300-protos.h: Update.
16328
16329 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16330
16331 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16332 in terms of the value on the stack, not the MDR register.
16333
16334 2011-01-11 Jan Hubicka <jh@suse.cz>
16335
16336 PR lto/45721
16337 PR lto/45375
16338 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16339 (symbol_alias_set_destroy, symbol_alias_set_contains,
16340 propagate_aliases_backward): Declare.
16341 * lto-streamer-out.c (struct sets): New sturcture.
16342 (trivally_defined_alias): New function.
16343 (output_alias_pair_p): Rewrite.
16344 (output_unreferenced_globals): Fix output of alias pairs.
16345 (produce_symtab): Likewise.
16346 * ipa.c (function_and_variable_visibility): Set weak alias destination
16347 as needed in lto.
16348 * varasm.c (symbol_alias_set_t): Remove.
16349 (symbol_alias_set_destroy): Export.
16350 (propagate_aliases_forward, propagate_aliases_backward): New functions
16351 based on ...
16352 (compute_visible_aliases): ... this one; remove.
16353 (trivially_visible_alias): New
16354 (trivially_defined_alias): New.
16355 (remove_unreachable_alias_pairs): Rewrite.
16356 (finish_aliases_1): Reorganize code checking if alias is defined.
16357 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16358 in LTO mode.
16359
16360 2011-01-11 Richard Guenther <rguenther@suse.de>
16361
16362 PR tree-optimization/46076
16363 * tree-ssa.c (useless_type_conversion_p): Conversions from
16364 unprototyped to empty argument list function types are useless.
16365
16366 2011-01-11 Richard Guenther <rguenther@suse.de>
16367
16368 PR middle-end/45235
16369 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16370 volatile MEMs as MEM_READONLY_P.
16371
16372 2011-01-11 Richard Guenther <rguenther@suse.de>
16373
16374 PR tree-optimization/47239
16375 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16376
16377 2011-01-11 Jeff Law <law@redhat.com>
16378
16379 PR tree-optimization/47086
16380 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16381 IVs from statements that might throw.
16382
16383 2011-01-10 Jan Hubicka <jh@suse.cz>
16384
16385 PR lto/45375
16386 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16387
16388 2011-01-10 Jan Hubicka <jh@suse.cz>
16389
16390 PR lto/45375
16391 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16392 when correcting profile.
16393
16394 2011-01-10 Jan Hubicka <jh@suse.cz>
16395
16396 PR lto/46083
16397 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16398 DECL_FINI_PRIORITY.
16399 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16400 Restore DECL_FINI_PRIORITY.
16401
16402 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16403
16404 * doc/gimple.texi: Fix quoting of multi-word return values in
16405 @deftypefn statements. Ensure presence of return value. Wrap
16406 overlong @deftypefn lines.
16407 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16408 descriptions of removed functions.
16409 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16410 of multi-word return value in @deftypefn statement.
16411
16412 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16413
16414 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16415 (Conditional Expressions, Logical Operators)
16416 (Statement and operand traversals): Do not indent smallexample
16417 code. Fix duplicate function argument in example.
16418
16419 2011-01-10 Jeff Law <law@redhat.com>
16420
16421 PR tree-optimization/47141
16422 * ipa-split.c (split_function): Handle case where we are
16423 returning a value and the return block has a virtual operand phi.
16424
16425 2011-01-10 Jan Hubicka <jh@suse.cz>
16426
16427 PR tree-optimization/47234
16428 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16429 (pass_feedback_split_functions): Declare.
16430 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16431 tree-profile.
16432 * ipa-split.c (gate_split_functions): Update comments; disable
16433 split-functions for profile_arc_flag and branch_probabilities.
16434 (gate_feedback_split_functions): New function.
16435 (execute_feedback_split_functions): New function.
16436 (pass_feedback_split_functions): New global var.
16437
16438 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16439
16440 PR lto/46760
16441 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16442 calling gimple_call_set_cannot_inline.
16443
16444 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16445
16446 * config/darwin-sections.def: Remove unused section.
16447
16448 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16449
16450 PR c++/47218
16451 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16452
16453 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16454
16455 PR objc/47232
16456 * c-parser.c (c_parser_declaration_or_fndef): Improved
16457 error message.
16458
16459 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16460
16461 * config/i386/winnt.c (i386_pe_start_function): Make sure
16462 to switch back to function's section.
16463
16464 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16465
16466 PR gcc/46902
16467 PR testsuite/46912
16468 * plugin.c: Move include of dlfcn.h from here...
16469 * system.h: ... to here.
16470
16471 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16472
16473 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16474 file name.
16475 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16476 two extra empty pages in PDF output.
16477
16478 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16479
16480 PR objc/47078
16481 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16482 for error recovery purposes behave as if it was not specified so
16483 that the default type is usd.
16484
16485 2011-01-07 Jan Hubicka <jh@suse.cz>
16486
16487 PR tree-optmization/46469
16488 * ipa.c (function_and_variable_visibility): Clear needed flags on
16489 nodes with external decls; handle weakrefs merging correctly.
16490
16491 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16492
16493 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16494 not false.
16495
16496 2011-01-07 Jan Hubicka <jh@suse.cz>
16497
16498 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16499 and no longer claim that gold is required for linker plugin.
16500 * configure: Regenerate.
16501 * gcc.c (PLUGIN_COND): New macro.
16502 (LINK_COMMAND_SPEC): Use it.
16503 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16504 * config.in (HAVE_LTO_PLUGIN): New.
16505 * configure.ac (--with-lto-plugin): New parameter; autodetect
16506 HAVE_LTO_PLUGIN.
16507
16508 2011-01-07 Jan Hubicka <jh@suse.cz>
16509
16510 PR tree-optimization/46367
16511 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16512 when we can update original.
16513 (cgraph_mark_inline_edge): Sanity check.
16514 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16515
16516 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16517
16518 * config/spu/spu.h (ASM_COMMENT_START): Define.
16519
16520 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16521
16522 PR driver/42445
16523 * gcc.c (%>S): New.
16524 (SWITCH_KEEP_FOR_GCC): Likewise.
16525 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16526 (do_spec_1): Handle "%>".
16527
16528 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16529
16530 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16531
16532 PR target/47201
16533 * config/i386/i386.c (ix86_delegitimize_address): If
16534 simplify_gen_subreg fails, return orig_x.
16535
16536 PR bootstrap/47187
16537 * value-prof.c (gimple_stringop_fixed_value): Handle
16538 lhs of the call properly.
16539
16540 2011-01-07 Jan Hubicka <jh@suse.cz>
16541
16542 PR lto/45375
16543 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16544
16545 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16546
16547 * target.def (function_switched_text_sections): New hook.
16548 * doc/tm.texi: Regenerated.
16549 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16550 * final.c (default_function_switched_text_sections): New.
16551 (final_scan_insn): Call function_switched_text_sections when a
16552 mid-function section change occurs.
16553 * output.h (default_function_switched_text_sections): Declare.
16554 * config/darwin-protos.h (darwin_function_switched_text_sections):
16555 Likewise.
16556 * config/darwin.c (darwin_function_switched_text_sections): New.
16557 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16558
16559 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16560
16561 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16562 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16563 the secondary code fragment when outputting for DWARF == 2.
16564
16565 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16566
16567 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16568 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16569 Remove.
16570 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16571 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16572
16573 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16574
16575 PR debug/46704
16576 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16577 when it is not empty.
16578
16579 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16580
16581 Bobcat Enablement
16582 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16583 (case ${target}): Add btver1.
16584 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16585 -march=native recognize btver1 processors.
16586 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16587 btver1 def_and_undef
16588 * config/i386/i386.c (struct processor_costs btver1_cost): New
16589 btver1 cost table.
16590 (m_BTVER1): New definition.
16591 (m_AMD_MULTIPLE): Includes m_BTVER1.
16592 (initial_ix86_tune_features): Add btver1 tune.
16593 (processor_target_table): Add btver1 entry.
16594 (static const char *const cpu_names): Add btver1 entry.
16595 (software_prefetching_beneficial_p): Add btver1.
16596 (ix86_option_override_internal): Add btver1 instruction sets.
16597 (ix86_issue_rate): Add btver1.
16598 (ix86_adjust_cost): Add btver1.
16599 * config/i386/i386.h (TARGET_BTVER1): New definition.
16600 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16601 (enum processor_type): Add PROCESSOR_BTVER1.
16602 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16603
16604 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16605
16606 PR target/43309
16607 * config/i386/i386.c (legitimize_tls_address)
16608 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16609 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16610 (tls_initial_exec_64_sun): New pattern.
16611
16612 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16613
16614 * doc/invoke.texi (Overall Options): Improve wording and markup
16615 of the description of -wrapper.
16616
16617 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16618
16619 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16620 rdynamic, threads): New Driver options.
16621
16622 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16623
16624 PR target/38118
16625 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16626 if coming from .tdata.
16627 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16628
16629 2011-01-06 Jan Hubicka <jh@suse.cz>
16630
16631 PR lto/47188
16632 * collect2.c (main): Do not enable LTOmode when plugin is active.
16633
16634 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16635
16636 PR other/45915
16637 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16638 --version output if supported.
16639 * configure: Regenerate.
16640
16641 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16642
16643 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16644 Driver options.
16645
16646 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16647
16648 PR c/47150
16649 * c-convert.c (convert): When converting a complex expression
16650 other than COMPLEX_EXPR to a different complex type, ensure
16651 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16652 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16653 when converting COMPLEX_TYPE.
16654
16655 2011-01-06 Ira Rosen <irar@il.ibm.com>
16656
16657 PR tree-optimization/47139
16658 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16659 only the last reduction value is used outside the loop. Update
16660 documentation.
16661
16662 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16663
16664 * config/rtems.opt: New.
16665 * config.gcc (*-*-rtems*): Use rtems.opt.
16666
16667 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16668
16669 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16670 processors do not support 3DNow instructions.
16671
16672 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16673
16674 * config/spu/spu.c (spu_option_override): Set parameter
16675 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16676
16677 2011-01-05 Jan Hubicka <jh@suse.cz>
16678
16679 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16680 at the command line.
16681
16682 2011-01-05 Martin Jambor <mjambor@suse.cz>
16683
16684 PR lto/47162
16685 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16686 deltas on streamed outgoing edges.
16687 (output_node_opt_summary): Output info for outgoing edges only when
16688 the node is in new parameter set.
16689 (output_cgraph_opt_summary): New parameter set, passed to the two
16690 aforementioned functions. Update its forward declaration and its
16691 callee too.
16692
16693 2011-01-05 Tom Tromey <tromey@redhat.com>
16694
16695 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16696 operator to c_finish_omp_atomic.
16697 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16698 (build_unary_op): Update.
16699 (build_modify_expr): Update.
16700 (build_asm_expr): Update.
16701
16702 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16703
16704 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16705 newly inserted insns.
16706 (pad_bb): Likewise.
16707 (spu_emit_branch_hint): Likewise.
16708 (insert_hbrp_for_ilb_runout): Likewise.
16709 (spu_machine_dependent_reorg): Call df_finish_pass after
16710 schedule_insns returns.
16711
16712 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16713
16714 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16715
16716 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16717
16718 PR tree-optimization/47005
16719 * tree-sra.c (struct access): Add 'non_addressable' bit.
16720 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16721 (decide_one_param_reduction): Return 0 if the parameter is passed by
16722 reference and one of the accesses in the group is non_addressable.
16723
16724 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16725
16726 PR tree-optimization/47056
16727 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16728 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16729 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16730
16731 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16732
16733 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16734 initializer. Skip view conversions from aggregate types.
16735
16736 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16737
16738 PR bootstrap/47055
16739 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16740
16741 2011-01-04 Philipp Thomas <pth@suse.de>
16742
16743 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16744 obvious typo.
16745
16746 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16747
16748 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16749 on empty epilogue sequences.
16750
16751 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16752
16753 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16754 non-static): New Driver options.
16755
16756 2011-01-04 Jie Zhang <jie@codesourcery.com>
16757
16758 PR driver/47137
16759 * gcc.c (default_compilers[]): Set combinable field to 0
16760 for all assembly languages.
16761
16762 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16763
16764 * config/mips/loongson3a.md: New file.
16765 * config/mips/mips.md: Include loongson3a.md.
16766 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16767 TUNE_LOONGSON_3A.
16768
16769 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16770
16771 PR middle-end/47017
16772 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16773 instead of convert_memory_address_addr_space on the base expression.
16774
16775 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16776
16777 * config/spu/spu.c (spu_option_override): Update error text
16778 for bad -march= / -mtune= values.
16779
16780 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16781
16782 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16783 if branch-hint optimization will be performed.
16784
16785 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16786
16787 PR tree-optimization/47148
16788 * ipa-split.c (split_function): Convert arguments to
16789 DECL_ARG_TYPE if possible.
16790
16791 PR tree-optimization/47155
16792 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16793 when computing uns.
16794
16795 PR rtl-optimization/47157
16796 * combine.c (try_combine): If undobuf.other_insn becomes
16797 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16798 and set *new_direct_jump_p too.
16799
16800 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16801
16802 PR tree-optimization/47021
16803 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16804
16805 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16806
16807 * gcc.c (process_command): Update copyright notice dates.
16808 * gcov.c (print_version): Likewise.
16809 * gcov-dump.c (print_version): Likewise.
16810 * mips-tfile.c (main): Likewise.
16811 * mips-tdump.c (main): Likewise.
16812
16813 2011-01-03 Martin Jambor <mjambor@suse.cz>
16814
16815 PR tree-optimization/46801
16816 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16817 aggregate fields start at byte boundary instead of the bit-field flag.
16818
16819 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16820
16821 PR driver/47137
16822 * gcc.c (main): Revert revision 168407.
16823
16824 2011-01-03 Martin Jambor <mjambor@suse.cz>
16825
16826 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16827
16828 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16829
16830 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16831 vector optab to expand vector/scalar shift, update gimple to vector.
16832
16833 2011-01-03 Martin Jambor <mjambor@suse.cz>
16834
16835 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16836 a thunk.
16837
16838 2011-01-03 Martin Jambor <mjambor@suse.cz>
16839
16840 PR tree-optimization/46984
16841 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16842 HOST_WIDE_INT.
16843 (cgraph_create_indirect_edge): Fixed line length.
16844 (cgraph_indirect_call_info): Declare.
16845 (cgraph_make_edge_direct) Update declaration.
16846 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16847 (cgraph_create_indirect_edge): Use it.
16848 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16849 callees.
16850 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16851 the new thunk_delta representation.
16852 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16853 HOST_WIDE_INT.
16854 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16855 (ipa_read_indirect_edge_info): Likewise.
16856 * lto-cgraph.c (output_edge_opt_summary): New function.
16857 (output_node_opt_summary): Call it on all outgoing edges.
16858 (input_edge_opt_summary): New function.
16859 (input_node_opt_summary): Call it on all outgoing edges.
16860
16861 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16862
16863 PR driver/47137
16864 * gcc.c (main): Don't check have_o when settting combine_inputs.
16865
16866 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16867
16868 * regrename.c: Add general comment describing the pass.
16869 (struct du_head): Remove 'length' field.
16870 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16871 (regrename_optimize): Do not sort chains. Rework comments, add others.
16872 Force renaming to the preferred class (if any) in the first pass and do
16873 not consider registers that belong to it in the second pass.
16874 (create_new_chain): Do not set 'length' field.
16875 (scan_rtx_reg): Likewise.
16876
16877 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16878
16879 PR tree-optimization/47140
16880 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16881 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16882 to bit_value_binop.
16883
16884 PR rtl-optimization/47028
16885 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16886 parm_birth_insn instead of at the beginning of first bb.
16887
16888 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16889
16890 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16891 Remove the word "see" before "@pxref".
16892 * doc/rtl.texi: Remove the word "see" before "@pxref".
16893
16894 2011-01-01 Jan Hubicka <jh@suse.cz>
16895
16896 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16897 memory.
16898
16899 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16900
16901 PR target/38662
16902 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16903
16904 \f
16905 Copyright (C) 2011 Free Software Foundation, Inc.
16906
16907 Copying and distribution of this file, with or without modification,
16908 are permitted in any medium without royalty provided the copyright
16909 notice and this notice are preserved.