invoke.texi: Document -Wdelete-non-virtual-dtor.
[gcc.git] / gcc / ChangeLog
1 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2
3 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4
5 2011-06-04 Jakub Jelinek <jakub@redhat.com>
6
7 PR target/49281
8 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9 to be strictly smaller than 1 << shiftcount.
10
11 2011-06-04 Jan Hubicka <jh@suse.cz>
12
13 PR tree-optimize/48929
14 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15 of empty predicate.
16
17 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
18
19 PR debug/48333
20 * calls.c (emit_call_1): Prefer the __builtin declaration of
21 builtin functions.
22
23 2011-06-03 Diego Novillo <dnovillo@google.com>
24
25 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
26 (lto_input_tree_pointers): Likewise.
27 * lto-streamer-out.c (pack_value_fields): Likewise.
28 (lto_output_tree_pointers): Likewise.
29 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
30 and OPTIMIZATION_NODE.
31
32 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
35 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
36 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
37 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
38 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
39 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
40 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
41 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
42 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
43 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
44 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
45 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
46 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
47 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
48 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
49 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
50 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
51 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
52 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
53 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
54 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
55 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
56 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
57 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
58 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
59 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
60 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
61 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
62 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
63 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
64 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
65 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
66 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
67 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
68 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
69 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
70 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
71 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
72 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
73 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
74 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
75 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
76 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
77 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
78 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
79 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
80 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
81 * system.h (MD_UNWIND_SUPPORT): Poison.
82 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
83 * doc/tm.texi: Regenerate.
84 * unwind-dw2.c: Include md-unwind-support.h instead of
85 MD_UNWIND_SUPPORT.
86 * config/ia64/unwind-ia64.c: Likewise.
87 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
88
89 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
90
91 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
92
93 2011-06-03 Richard Henderson <rth@redhat.com>
94 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
95
96 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
97 (sigill_hdlr): Correct insn, insn size.
98 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
99
100 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101
102 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
103 t-slibgcc-dummy.
104 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
105 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
106 * config/mips/t-iris: Remove.
107 * config/mips/t-irix6: New file.
108 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
109
110 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
111
112 * Makefile.in (LIB2ADDEHDEP): Remove.
113 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
114 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
115 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
116 * config/t-darwin (LIB2ADDEHDEP): Remove.
117 * config/t-freebsd (LIB2ADDEHDEP): Remove.
118 * config/t-linux (LIB2ADDEHDEP): Remove.
119
120 2011-06-03 Diego Novillo <dnovillo@google.com>
121
122 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
123 (lto_register_var_decl_in_symtab): Likewise.
124 (lto_register_function_decl_in_symtab): Likewise.
125 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
126 logic to uniquify_nodes.
127
128 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
129
130 * config/alpha/t-osf5: Remove.
131 * config/alpha/t-osf-pthread: Remove.
132 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
133 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
134
135 2011-06-03 Julian Brown <julian@codesourcery.com>
136
137 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
138 (strongarm1110): Use strongarm tuning.
139 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
140 field.
141 * config/arm/arm.c (arm_strongarm_tune): New.
142 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
143 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
144 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
145 setting, using previous defaults or 1 for Cortex-A5.
146 (arm_option_override): Set max_insns_skipped from current tuning.
147
148 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
149
150 * doc/install.texi (Options specification): Document --with-specs.
151
152 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
153
154 * config/arm/neon.md (orndi3_neon): Actually split it.
155
156 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
157
158 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
159 * var-tracking.c (reverse_op): Limite recurse depth to 5.
160
161 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
162
163 PR debug/47590
164 * target.def (delay_sched2, delay_vartrack): New.
165 * doc/tm.texi.in: Update.
166 * doc/tm.texi: Rebuild.
167 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
168 * var-tracking.c (gate_handle_var_tracking): Likewise.
169 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
170 (bfin_flag_var_tracking): Drop.
171 (output_file_start): Don't save and override flag_var_tracking.
172 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
173 (bfin_reorg): Test original variables.
174 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
175 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
176 (ia64_flag_var_tracking): Drop.
177 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
178 (ia64_file_start): Don't save and override flag_var_tracking.
179 (ia64_override_options_after_change): Ditto
180 flag_schedule_insns_after_reload.
181 (ia64_reorg): Test original variables.
182 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
183 (picochip_flag_var_tracking): Drop.
184 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
185 (picochip_option_override): Don't save and override
186 flag_schedule_insns_after_reload.
187 (picochip_asm_file_start): Ditto flag_var_tracking.
188 (picochip_reorg): Test original variables.
189 * config/spu/spu.c (spu_flag_var_tracking): Drop.
190 (TARGET_DELAY_VARTRACK): Define.
191 (spu_var_tracking): New.
192 (spu_machine_dependent_reorg): Call it.
193 (asm_file_start): Don't save and override flag_var_tracking.
194
195 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
196
197 PR target/49163
198 * config/sh/predicates.md (general_movsrc_operand): Return 0
199 for memory and memory subreg of which address is an invalid
200 indexed address for QI and HImode.
201 (general_movdst_operand): Likewise.
202
203 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
204
205 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
206 edges only, when there is a non-local label in the function.
207 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
208
209 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
210
211 * config/i386/constraints.md (Y3): New register constraint.
212 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
213 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
214 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
215 *sse2_interleave_lowv2df.
216
217 2011-06-02 Julian Brown <julian@codesourcery.com>
218
219 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
220 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
221 (arm_cortex_a5_tune): New.
222
223 2011-06-02 Julian Brown <julian@codesourcery.com>
224
225 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
226 * config/arm/arm.c (arm_default_branch_cost): New.
227 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
228 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
229 (arm_fa726_tune): Set branch_cost field using
230 arm_default_branch_cost.
231 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
232 current_tune structure.
233 * dojump.c (tm_p.h): Include file.
234
235 2011-06-02 Julian Brown <julian@codesourcery.com>
236
237 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
238 tuning.
239 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
240 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
241 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
242 field.
243 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
244 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
245 (arm_fa726te_tune): Add prefer_constant_pool setting.
246 (arm_v6t2_tune, arm_cortex_tune): New.
247 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
248 prefer_constant_pool setting.
249
250 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
251
252 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
253 switch statement.
254 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
255 (*movdf_internal) <case 6,7,8>: Ditto.
256
257 * config/i386/constraints.md (Y4): New register constraint.
258 * config/i386/sse.md (vec_set<mode>_0): Merge with
259 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
260 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
261 *vec_extractv2di_1_sse.
262 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
263 and *vec_concatv2di_rex64_sse.
264
265 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
266
267 PR target/48807
268 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
269 of cgraph_local_info for null before attempting to use it.
270
271 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
272
273 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
274 (current_function_dynamic_alloc_count): Delete.
275 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
276 (expand_builtin_nonlocal_goto): Remove obsolete comment.
277 (expand_builtin_update_setjmp_buf): Remove dead code.
278 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
279 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
280 support.
281 * function.c (instantiate_virtual_regs): Likewise.
282 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
283 for a block with a single abnormal incoming edge.
284 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
285 (SETJMP_VIA_SAVE_AREA): Delete.
286 * config/sparc/sparc-protos.h (load_got_register): Declare.
287 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
288 (load_got_register): Make global.
289 (sparc_frame_pointer_required): Add 'static'.
290 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
291 (sparc_builtin_setjmp_frame_value): New function.
292 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
293 (save_stack_nonlocal): New expander.
294 (restore_stack_nonlocal): Likewise.
295 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
296 (nonlocal_goto_internal): New insn.
297 (goto_handler_and_restore): Delete.
298 (builtin_setjmp_setup): Likewise.
299 (do_builtin_setjmp_setup): Likewise.
300 (setjmp): Likewise.
301 (builtin_setjmp_receiver): New expander.
302
303 2011-06-01 David Li <davidxl@google.com>
304
305 PR middle-end/49261
306 * tree-pretty-print.c (dump_function_header): Format cleanup.
307
308 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
309
310 PR target/49238
311 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
312 needed when original operands are used for msw_skip comparison.
313
314 2011-06-01 Jakub Jelinek <jakub@redhat.com>
315
316 PR debug/49250
317 * var-tracking.c (add_uses, add_stores): Don't call
318 cselib_subst_to_values on ENTRY_VALUE.
319
320 2011-06-01 Diego Novillo <dnovillo@google.com>
321
322 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
323 output_record_start with LTO_null instead of output_zero.
324 (lto_output_ts_binfo_tree_pointers): Likewise.
325 (lto_output_tree): Likewise.
326 (output_eh_try_list): Likewise.
327 (output_eh_region): Likewise.
328 (output_eh_lp): Likewise.
329 (output_eh_regions): Likewise.
330 (output_bb): Likewise.
331 (output_function): Likewise.
332 (output_unreferenced_globals): Likewise.
333 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
334 instead of NUM_TREE_CODES.
335 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
336 (lto_output_int_in_range): Change << to >> when shifting VAL.
337
338 2011-06-01 Diego Novillo <dnovillo@google.com>
339
340 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
341 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
342
343 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
344
345 PR target/45074
346 * optabs.h (valid_multiword_target_p): Declare.
347 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
348 doing multi-word operations.
349 * optabs.c (expand_binop): Likewise.
350 (expand_doubleword_bswap): Likewise.
351 (expand_absneg_bit): Likewise.
352 (expand_unop): Likewise.
353 (expand_copysign_bit): Likewise.
354 (multiword_target_p): New function.
355
356 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
357
358 PR rtl-optimization/48830
359 PR rtl-optimization/48808
360 PR rtl-optimization/48792
361 * reload.c (push_reload): Check contains_reg_of_mode.
362 * reload1.c (strip_paradoxical_subreg): New function.
363 (gen_reload_chain_without_interm_reg_p): Use it to handle
364 paradoxical subregs.
365 (emit_output_reload_insns, gen_reload): Likewise.
366
367 2011-06-01 David Li <davidxl@google.com>
368
369 * predict.c : Change pass name
370 * ipa.c: Ditto.
371 * dce.c: Ditto.
372 * tree-profile.c: Ditto.
373 * except.c: Ditto.
374
375 2011-06-01 David Li <davidxl@google.com>
376
377 * tree-pretty-print.c (dump_function_header): New function.
378 * final.c (rest_of_clean_state): Use header dumper.
379 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
380 * passes.c (pass_init_dump_file): Use header dumper.
381
382 2011-06-01 Jakub Jelinek <jakub@redhat.com>
383
384 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
385 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
386 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
387 New functions.
388 (mem_loc_descriptor): Use them.
389
390 * var-tracking.c (create_entry_value): New function.
391 (vt_add_function_parameter): Use it.
392
393 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394
395 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
396 Include <signal.h>, <ucontext.h>.
397 (sigill_caught): Define.
398 (sigill_hdlr): New function.
399 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
400 insns can be executed.
401 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
402 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
403
404 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405
406 * config/t-slibgcc-darwin: Move to ...
407 * config/t-slibgcc-dummy: ... this. Clarify comments.
408 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
409 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
410 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
411 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
412 Remove i386/t-crtstuff from tmake_file.
413 (i[34567]86-*-solaris2*): Remove t-svr4,
414 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
415 t-slibgcc-dummy.
416 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
417 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
418 sparc/t-crtfm from tmake_file.
419 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
420 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
421 Remove extra_parts.
422 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
423 * config/i386/t-nwld (SHLIB_LINK): Remove.
424 * config/i386/t-rtems-i386: Rename to ...
425 * config/i386/t-rtems: ... this.
426 ($(T)crti.o, $(T)crtn.o): Remove.
427 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
428 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
429 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
430 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
431 EXTRA_MULTILIB_PARTS): Remove.
432 * config/sparc/t-sol2-64: Likewise.
433 * config/sparc/t-sol2: Remove.
434 * config/sparc/t-crtin: Remove.
435 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
436 * config/i386/gmon-sol2.c: Remove.
437 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
438 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
439 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
440 * config/i386/sol2-gc1.asm: Remove.
441 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
442 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
443 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
444 * config/t-slibgcc-sld: Remove.
445
446 2011-06-01 Jakub Jelinek <jakub@redhat.com>
447
448 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
449 base_type_for_mode with op_mode instead of mode.
450
451 2011-06-01 Paul Brook <paul@cpodesourcery.com>
452
453 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
454 Cortex-A15.
455 * config/arm/arm-tune.md: Regenerate.
456 * config/arm/arm-tables.opt: Regenerate.
457 * config/arm/arm.c (FL_DIV): Rename...
458 (FL_THUMB_DIV): ... to this.
459 (FL_ARM_DIV): Define.
460 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
461 (arm_arch_hwdiv): Remove.
462 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
463 (arm_issue_rate): Add cortexr5.
464 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
465 __ARM_ARCH_EXT_IDIV__.
466 (TARGET_IDIV): Define.
467 (arm_arch_hwdiv): Remove.
468 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
469 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
470 (divsi3, udivsi3): New patterns.
471 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
472 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
473
474 2011-06-01 Martin Jambor <mjambor@suse.cz>
475
476 * ipa-utils.c (ipa_dfs_info): New field scc_no.
477 * ipa-utils.c (searchc): Set scc_no.
478
479 2011-06-01 Martin Jambor <mjambor@suse.cz>
480
481 * ipa-utils.c (searchc_env): New field allow_overwritable.
482 (searchc): do not ignore edges to overwritable nodes if indicated
483 by env->allow_overwritable.
484 (ipa_reduced_postorder): Set env.allow_overwritable.
485
486 2011-06-01 Richard Guenther <rguenther@suse.de>
487
488 * tree.c (free_lang_data): Do not reset boolean_type_node nor
489 char_type_node.
490 * lto-streamer.c (lto_record_common_node): Take node pointer,
491 do not register types.
492 (lto_preload_common_nodes): Explicitly skip preloading nodes
493 that differ between frontends.
494
495 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
496
497 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
498 NON_FLOAT_REGS.
499
500 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
501
502 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
503 parameter value for dump. Dump cost on outermost call only.
504 (rs6000_memory_move_cost): Dump cost on outermost call only.
505
506 2011-05-31 Jakub Jelinek <jakub@redhat.com>
507
508 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
509 DW_OP_GNU_convert ops.
510
511 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
512 cselib_preserve_constants.
513 (cselib_lookup_1): If cselib_preserve_constants,
514 a new VALUE is being created for REG and there is a VALUE for the
515 same register in wider mode, add another loc with lowpart SUBREG of
516 the wider VALUE.
517 (cselib_subst_to_values): Handle ENTRY_VALUE.
518 * var-tracking.c (replace_expr_with_values): Return NULL for
519 ENTRY_VALUE too.
520 * dwarf2out.c (convert_descriptor_to_signed): New function.
521 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
522 instead of two shifts.
523 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
524 the right mode if needed.
525 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
526 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
527 convert_descriptor_to_signed.
528 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
529 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
530
531 PR target/48688
532 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
533
534 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
535
536 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
537 of X87MODEI12 and SWI48x instead of SSEMODEI24.
538 (SWI248x): New mode iterator, rename from X87MODEI.
539 (X87MODEI): Remove mode iterator.
540 (X87MODEI12): Ditto.
541 (SSEMODEI24): Ditto.
542
543 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
544
545 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
546 * doc/invoke.texi: Document max-vartrack-expr-depth.
547 * var-tracking.c (EXPR_DEPTH): New.
548 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
549
550 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
551
552 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
553 * config/i386/sse.md: Add n to negated FMA pattern names.
554
555 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
556
557 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
558
559 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
560
561 * gengtype-state.c (read_state_params_structs): Initialize previous.
562
563 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
564
565 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
566 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
567
568 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
569
570 * config/i386/i386.md (*movtf_internal): Avoid allocating general
571 registers. Penalize F*r->o alternative to prevent partial memory
572 stalls. Slightly penalize *roF->*r alternative. Generate SSE
573 CONST_DOUBLE immediates when optimizing function for size. Do not move
574 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
575 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
576 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
577 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
578 alternatives.
579 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
580
581 (fp_register_operand splitters): Use fp_register_operand
582 constraint. Do not use FP_REG_P in insn condition.
583 (any_fp_register_operand splitters): Use any_fp_register_operand
584 constraint. Do not use ANY_FP_REG_P in insn condition.
585
586 2011-05-31 Jan Hubicka <jh@suse.cz>
587
588 * cgraph.h (cgraph_inline_failed_t): Give enum a name
589 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
590 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
591 (lto_output_edge): Use output_enum and var_len_unsigned.
592 (lto_output_varpool_node): Likewise.
593 (input_overwrite_node): Do not take resolution parameter;
594 extract it from a bitpack.
595 (input_node): Do not read resolution; use input_enum and
596 var_len_unsigned.
597 (input_varpool_node): Likewise.
598 (input_edge): Likewise.
599 (input_cgraph_1): Likewise.
600
601 2011-05-31 Richard Guenther <rguenther@suse.de>
602
603 * gimple.c (gimple_register_canonical_type): Do not register
604 any types via gimple_register_type.
605
606 2011-05-31 Jan Hubicka <jh@suse.cz>
607
608 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
609 of thunks.
610
611 2011-05-31 Jakub Jelinek <jakub@redhat.com>
612
613 PR rtl-optimization/49235
614 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
615 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
616
617 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
618
619 PR tree-optimization/49093
620 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
621 data references.
622
623 2011-05-31 Dodji Seketeli <dodji@redhat.com>
624
625 PR debug/49047
626 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
627 for concrete functions containing the code of cloned functions.
628
629 2011-05-31 Richard Guenther <rguenther@suse.de>
630
631 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
632 to ...
633 (forward_propagate_into_comparison_1): ... this.
634 (forward_propagate_comparison): Rename to ...
635 (forward_propagate_into_comparison): ... this. Split out
636 real forward propagation code to ...
637 (forward_propagate_comparison): ... this.
638 (forward_propagate_into_gimple_cond): Remove looping.
639 (forward_propagate_into_cond): Likewise.
640 (simplify_not_neg_expr): Return whether we have done something.
641 (simplify_gimple_switch): Likewise.
642 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
643 (ssa_forward_propagate_and_combine): ... this. Re-structure
644 to do a forward forward-propagation walk on BBs and a backward
645 stmt combining walk on BBs. Consistently re-scan changed statements.
646 (pass_forwprop): Adjust.
647
648 2011-05-30 Ian Lance Taylor <iant@google.com>
649
650 * godump.c (go_format_type): Correct length of name added to
651 obstack for anonymous field.
652
653 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
654
655 PR target/49186
656 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
657 part of the second operand is 0.
658
659 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
660
661 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
662 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
663 to memory for !TARGET_MEMORY_MISMATCH_STALL.
664 (*movdf_internal_rex64): Do not penalize F->r alternative.
665 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
666 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
667 when optimizing function for size. Do not move CONST_DOUBLEs
668 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
669 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
670 SUBREGs. Do not check for MEM_P operands in the insn condition,
671 check for ANY_FP_REGNO_P instead.
672 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
673 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
674 function for speed.
675 * config/i386/i386.c (ix86_option_override_internal): Do not
676 set TARGET_INTEGER_DFMODE_MOVES here.
677
678 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
679
680 PR target/49168
681 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
682
683 2011-05-30 Jakub Jelinek <jakub@redhat.com>
684
685 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
686 DW_TAG_rvalue_reference_type even for
687 -gdwarf-4 -fno-debug-types-section.
688
689 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
690
691 PR tree-optimization/46728
692 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
693 (build_and_insert_binop): New.
694 (gimple_expand_builtin_pow): Reorder args for
695 build_and_insert_call; use build_and_insert_binop; add more
696 optimizations for fractional exponents.
697
698 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
699
700 PR bootstrap/49190
701
702 Revert:
703 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
704
705 * tree.h (struct tree_identifier): Inherit from tree_typed, not
706 tree_common.
707 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
708 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
709 TS_BASE instead of TS_COMMON.
710 * varasm.c (assemble_name): Remove assert.
711
712 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
713
714 * config.gcc: Keep obselete list sorted.
715
716 2011-05-30 Jakub Jelinek <jakub@redhat.com>
717 Eric Botcazou <ebotcazou@adacore.com>
718
719 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
720 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
721 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
722 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
723 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
724
725 2011-05-30 Richard Guenther <rguenther@suse.de>
726
727 * gimple.c (gimple_types_compatible_p_1): Compare record
728 and union type members properly.
729
730 2011-05-30 Richard Guenther <rguenther@suse.de>
731
732 PR tree-optimization/49210
733 * ipa-split.c (split_function): Care for the case where the call
734 result is not trivially convertible to the result holding variable.
735
736 2011-05-30 Richard Guenther <rguenther@suse.de>
737
738 PR tree-optimization/49218
739 * tree-vrp.c (adjust_range_with_scev): Properly check whether
740 overflow occured.
741
742 2011-05-30 Richard Guenther <rguenther@suse.de>
743
744 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
745 New function split out from ...
746 (forward_propagate_into_gimple_cond): ... here. Adjust.
747 (forward_propagate_into_cond): Likewise.
748 (forward_propagate_comparison): Also propagate into
749 comparisons on assignment RHS. Change return value to
750 behave similar to forward_propagate_into_cond.
751 (tree_ssa_forward_propagate_single_use_vars): Handle
752 strict-overflow warnings properly for forward_propagate_comparison.
753
754 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
755
756 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
757 from plugin linker.
758 * configure: Regenerate.
759
760 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
761
762 PR tree-optimization/49199
763 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
764 non-reduction operands are either defined in the loop or by induction.
765
766 2011-05-29 Xinliang David Li <davidxl@google.com>
767
768 * opts-global.c (handle_common_deferred_options): Handle new options.
769 * passes.c (register_one_dump_file): Call register_pass_name.
770 (execute_one_pass): Check explicit enable/disable flag.
771 (passr_hash): New function.
772 (passr_eq): Ditto.
773 (register_pass_name): Ditto.
774 (get_pass_by_name): Ditto.
775 (pass_hash): Ditto.
776 (pass_eq): Ditto.
777 (enable_pass): Ditto.
778 (disable_pass): Ditto.
779 (is_pass_explicitly_enabled_or_disabled): Ditto.
780
781 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
782
783 * config/i386/i386.md (*movoi_internal_avx): Use
784 standard_sse_constant_opcode for alternative 0.
785 (*movti_internal_sse): Ditto.
786 (*movti_internal_rex64): Use standard_sse_constant_opcode for
787 alternative 2.
788 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
789 sselog1 type moves.
790 (*movsi_internal): Ditto.
791 (*movdi_internal): Ditto. Add ssecvt type moves.
792
793 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
794
795 PR target/48830
796 * rtlanal.c (simplify_subreg_regno): Adjust comment.
797
798 2011-05-29 Jakub Jelinek <jakub@redhat.com>
799
800 PR rtl-optimization/49095
801 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
802 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
803
804 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
805
806 PR target/43995
807 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
808 recurse_p argument. Only follow register copies if it is set,
809 and prevent mips_find_pic_call_symbol from recursing.
810 (mips_find_pic_call_symbol): Add a recurse_p argument.
811 Pass it to mips_pic_call_symbol_from_set.
812 (mips_annotate_pic_calls): Update accordingly.
813
814 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
815
816 * emit-rtl.c (try_split): Use a loop to search for
817 NOTE_INSN_CALL_ARG_LOCATIONs.
818
819 2011-05-29 Richard Guenther <rguenther@suse.de>
820
821 PR tree-optimization/49217
822 * ipa-pure-const.c (propagate_pure_const): Fix typos.
823
824 2011-05-28 Jan Hubicka <jh@suse.cz>
825
826 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
827 length.
828 (string_slot_free): Remove
829 (create_output_block): Initialize obstack.
830 (destroy_output_block): Free obstack.
831 (lto_string_index): Add PERSISTENT parameter; do not duplicate
832 the string unless it needs to be added into the hash.
833 (lto_output_string_with_length): Add persistent attribute;
834 handle NULL strings.
835 (lto_output_string): Add PERSISTENT parameter.
836 (output_string_cst, output_identifier): Simplify.
837 (lto_output_location_bitpack): Update.
838 (lto_output_builtin_tree): Update.
839 * lto-streamer.h (struct output_block): Add obstack.
840 (lto_output_string, lto_output_string_with_length): Remove
841 declarations; functions are static now.
842
843 2011-05-28 Jan Hubicka <jh@suse.cz>
844
845 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
846 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
847 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
848 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
849 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
850 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
851 unpack_ts_decl_with_vis_value_fields,
852 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
853 lto_get_builtin_tree): Use enum and variable length i/o.
854 * basic-block.h (profile_status_d): Add PROFILE_LAST.
855 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
856 New functions.
857 (bp_pack_enum, bp_unpack_enum): New macros.
858
859 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
860
861 * genrecog.c: Remove redundant forward declarations.
862
863 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
864
865 * config.gcc: Deprecate mips*-*-openbsd*.
866
867 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
868
869 PR bootstrap/49195
870 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
871 for match_op_dup.
872
873 2011-05-27 Andrew Pinski <pinskia@gmail.com>
874
875 PR middle-end/48981
876 * gengtype.c (vec_prefix_type): New function.
877 (note_def_vec): Use vec_prefix_type and change the length
878 attribute to be based on the prefix.
879 * vec.c: Include coretypes.h before vec.h.
880 (struct vec_prefix): Remove.
881 (vec_gc_p_reserve): Change the offsetof to sizeof.
882 (vec_gc_p_reserve_exact): Likewise.
883 (vec_heap_p_reserve): Likewise.
884 (vec_heap_p_reserve_exact): Likewise.
885 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
886 (vec_stack_p_reserve): Change the offsetof to sizeof.
887 (vec_stack_p_reserve_exact): Likewise.
888 * vec.h (struct vec_prefix): New struct definition.
889 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
890 (VEC_T_GTY(T,B)): Likewise.
891 (DEF_VEC_FUNC_P(T)): Use prefix field.
892 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
893 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
894
895 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
896
897 PR tree-optimization/46728
898 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
899 (powi_as_mults): Add gimple_set_location.
900 (build_and_insert_call): New.
901 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
902 0.5, 0.25, 0.75, 1./3., or 1./6.
903
904 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
905
906 * doc/contrib.texi: Update copyright years.
907 (Contributors): Add Zdenek Sojka.
908
909 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
910
911 * c-decl.c (c_push_function_context): Copy the current statement
912 list stack.
913 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
914 (finish_struct): Call building_stmt_list_p instead of checking
915 cur_stmt_list.
916 * c-parser.c (c_parser_postfix_expression): Likewise.
917 * c-typeck.c (c_end_compound_stmt): Likewise.
918 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
919 * tree-iterator.c (stmt_list_cache): Change to a VEC.
920 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
921 (free_stmt_list): Likewise.
922 * tree.h (struct tree_statement_list): Include typed_tree instead
923 of tree_common.
924 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
925 as TS_TYPED instead of TS_COMMON.
926
927 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
928 Uros Bizjak <ubizjak@gmail.com>
929
930 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
931 (HAVE_AS_IX86_TLSGDPTL): Define.
932 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
933 (HAVE_AS_IX86_TLSLDMPLT): Define.
934 * configure: Regenerate.
935 * config.in: Regenerate.
936 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
937 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
938 TARGET_SUN_TLS, use @tlsgdplt or @plt.
939 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
940 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
941 @tlsldmplt or @plt.
942 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
943
944 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
945
946 * sched-int.h (struct _haifa_deps_insn_data): New members cond
947 and reverse_cond.
948 (INSN_COND, INSN_REVERSE_COND): New macros.
949 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
950 once.
951 (sched_get_condition_with_rev): Cache the results, and look them up
952 if possible.
953 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
954 are clobbered by the current insn.
955 * target.def (exposed_pipline): New sched data hook.
956 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
957 * doc/tm.texi: Regenerate.
958
959 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
960
961 PR tree-optimization/49170
962 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
963 sincos or cexp.
964
965 2011-05-27 Richard Guenther <rguenther@suse.de>
966
967 PR middle-end/49189
968 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
969 of comparisons.
970
971 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
972
973 * haifa-sched.c (sched_scan_info): Remove.
974 (schedule_block): Call sched_extend_luids rather than sched_init_luids
975 with NULL args.
976 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
977 Remove functions.
978 (sched_scan): Remove.
979 (sched_extend_luids): Renamed from luids_extend_insn and no longer
980 static. All callers changed.
981 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
982 static. All callers changed.
983 (sched_init_luids): Remove all arguments except the first. All
984 callers changed. Don't use sched_scan.
985 (haifa_init_h_i_d): Likewise.
986 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
987 manually rather than using sched_init_luids. Likewise with
988 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
989 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
990 rather than sched_init_luids with NULL args.
991 * sel-sched-ir.c (new_insns): Remove variable.
992 (sched_scan): New static function, previously in haifa-sched.c. Remove
993 all arguments but the first two; all callers changed.
994 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
995 rather than sched_init_luids.
996 (sel_init_bbs): Remove second argument. All callers changed.
997 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
998 with NULL arguments.
999 (create_insn_rtx_from_pattern): Likewise.
1000 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1001 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1002 (sched_init_insn_luid, sched_extend_luids): Declare.
1003 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1004 declarations.
1005
1006 2011-05-27 Richard Guenther <rguenther@suse.de>
1007
1008 PR middle-end/49177
1009 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1010 A CMP B ? (T) true : (T) false for non-integral types T again.
1011
1012 2011-05-27 Jan Hubicka <jh@suse.cz>
1013
1014 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1015 so 0 means NULL string.
1016 (lto_output_string_with_length): ... here.
1017 (lto_output_string, output_string_cst, output_identifier): Update
1018 handling of NULL strings.
1019 (lto_output_location_bitpack): New function.
1020 (lto_output_location): Use it.
1021 (lto_output_tree_ref): Use output_record_start.
1022 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1023 len values.
1024 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1025 values by 1.
1026 (input_string_internal): ... here;
1027 (input_string_cst, input_identifier, lto_input_string): Update handling
1028 of NULL strings.
1029 (lto_input_location_bitpack): New function
1030 (lto_input_location): Use it.
1031 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1032 values.
1033 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1034 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1035 (bp_pack_value): Sanity check the value range.
1036 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1037 New functions.
1038 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1039 New functions.
1040
1041 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1042
1043 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1044 call_arg_location instructions down the floor.
1045
1046 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1047
1048 PR rtl-optimization/49154
1049 * ira.c (setup_pressure_classes): Process class without sublcasses
1050 as a candidate for pressure classes.
1051
1052 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1053
1054 PR rtl-optimization/48575
1055 * genrecog.c (position_type): New enum.
1056 (position): New structure.
1057 (decision): Use position structure instead of a string.
1058 (root_pos, peep2_insn_pos_list): New variables.
1059 (next_position, compare_positions): New functions.
1060 (new_decision): Use position structures instead of strings.
1061 (maybe_both_true): Likewise.
1062 (change_state): Likewise.
1063 (write_tree): Likewise.
1064 (make_insn_sequence): Likewise.
1065
1066 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1067
1068 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1069 TS_BASE instead of TS_COMMON.
1070 (find_decls_types_r): Check for TS_TYPED structure before looking at
1071 TREE_TYPE.
1072 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1073 Add chain field.
1074 (BLOCK_CHAIN): Use new chain field.
1075
1076 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1077
1078 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1079 moves expensive on Power7 also.
1080
1081 2011-05-26 Richard Guenther <rguenther@suse.de>
1082
1083 * fold-const.c (fold_unary_loc): Remove bogus code.
1084
1085 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1086
1087 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1088 tree_common.
1089 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1090 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1091 TS_BASE instead of TS_COMMON.
1092 * varasm.c (assemble_name): Remove assert.
1093
1094 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1095
1096 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1097 substituted first.
1098 * libgcc-std.ver: Delete file.
1099
1100 2011-05-26 Richard Guenther <rguenther@suse.de>
1101
1102 PR tree-optimization/48702
1103 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1104 only when we know the base address is within bounds.
1105 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1106 assume the base address of TARGET_MEM_REFs is in bounds.
1107
1108 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1109
1110 PR target/49099
1111 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1112 declaration in TARGET_SOLARIS.
1113
1114 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1115
1116 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1117 The instruction is then expanded explicitly.
1118 (supported_compare): Callable instruction.
1119 (compare): Likewise.
1120
1121 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1122
1123 PR c++/49165
1124 * gimplify.c (shortcut_cond_r): Don't special case
1125 COND_EXPRs if they have void type on one of their arms.
1126
1127 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1128
1129 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1130 to reduce duplication, and to achieve a slightly more logical order
1131 of operations.
1132
1133 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1134
1135 PR tree-optimization/49161
1136 * tree-vrp.c (struct case_info): New type.
1137 (compare_case_labels): Sort case_info structs instead of
1138 trees, and not primarily by CASE_LABEL uids but by
1139 label_for_block indexes.
1140 (find_switch_asserts): Put case labels into struct case_info
1141 array instead of TREE_VEC, adjust sorting, compare label_for_block
1142 values instead of CASE_LABELs.
1143
1144 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1145
1146 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1147 ("orndi3_neon"): Likewise.
1148 ("bic<mode>3_neon"): Likewise.
1149
1150 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1151
1152 PR tree-optimization/49038
1153 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1154 Ensure at least one epilogue iteration if required by data
1155 accesses with gaps.
1156 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1157 to mark loops that require peeling for gaps.
1158 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1159 (vect_get_known_peeling_cost): Take peeling for gaps into
1160 account.
1161 (vect_transform_loop): Generate epilogue if required by data
1162 access with gaps.
1163 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1164 loop as requiring an epilogue if there are gaps in the end of
1165 the strided group.
1166
1167 2011-05-25 Ian Lance Taylor <iant@google.com>
1168
1169 * godump.c (go_format_type): Output the first field with a usable
1170 Go type, if any.
1171
1172 2011-05-25 Ian Lance Taylor <iant@google.com>
1173
1174 * godump.c (go_format_type): Check for invalid type names, pointer
1175 target types, and struct field types.
1176
1177 2011-05-25 Jason Merrill <jason@redhat.com>
1178
1179 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1180
1181 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1182
1183 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1184
1185 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1186
1187 * config/i386/i386.md (*movqi_extv_1)): Put back
1188 "register_operand" check in "type" calculation.
1189 (*movqi_extzv_2): Likewise.
1190
1191 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1192
1193 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1194
1195 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1196
1197 PR bootstrap/49160
1198 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1199 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1200 __divxc3, __divtc3): Wrap definitions in #ifndef.
1201
1202 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1203
1204 PR target/49142
1205 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1206 "register_operand" check and replace q_regs_operand with
1207 QIreg_operand in "type" calculation.
1208 (*movqi_extv_1): Likewise.
1209 (*movqi_extzv_2_rex64): Likewise.
1210 (*movqi_extzv_2): Likewise.
1211
1212 * config/i386/predicates.md (QIreg_operand): New.
1213
1214 2011-05-25 Richard Guenther <rguenther@suse.de>
1215
1216 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1217 type-based offset disambiguation, streamline MEM_REF and
1218 TARGET_MEM_REF handling.
1219
1220 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1221
1222 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1223 (bdesc_special_args): Add pause intrinsic.
1224
1225 * config/i386/i386.md (UNSPEC_PAUSE): New.
1226 (pause): Likewise.
1227 (*pause): Likewise.
1228 * config/i386/ia32intrin.h (__pause): Likewise.
1229
1230 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1231 pause intrinsic.
1232
1233 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1234
1235 PR tree-optimization/46728
1236 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1237 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1238
1239 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1240
1241 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1242 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1243 instead of TS_COMMON.
1244
1245 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1246
1247 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1248 LIBGCC2_GNU_PREFIX is defined.
1249 (__N): New macro.
1250 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1251 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1252 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1253 __clz_tab): Define using __N.
1254 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1255 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1256 * target.def (libfunc_gnu_prefix): New hook.
1257 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1258 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1259 * doc/tm.texi: Regenerate.
1260 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1261 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1262 account.
1263 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1264 (init_optabs): Likewise for the bswap libfuncs.
1265 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1266 and divide.
1267 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1268 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1269 * libgcc-std.ver: Remove.
1270 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1271 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1272 libgcc-std.ver.
1273 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1274 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1275 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1276 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1277 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1278 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1279 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1280 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1281 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1282 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1283
1284 2011-05-25 Jan Hubicka <jh@suse.cz>
1285
1286 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1287 (lto_output_tree): Use output_record_start.
1288 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1289 (lto_get_pickled_tree): Use input_record_start.
1290 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1291 (lto_value_range_error): New function.
1292 * lto-streamer.h (lto_value_range_error): Declare.
1293 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1294 (lto_output_enum, lto_input_enum): New macros.
1295
1296 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1297
1298 * common.opt (flag_stack_usage_info): New variable.
1299 (-Wstack-usage): New option.
1300 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1301 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1302 <OPT_fstack_usage>: Likewise.
1303 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1304 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1305 of flag_stack_usage.
1306 (emit_library_call_value_1): Likewise.
1307 * explow.c (allocate_dynamic_stack_space): Likewise.
1308 * function.c (instantiate_virtual_regs ): Likewise.
1309 (prepare_function_start): Likewise.
1310 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1311 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1312 * config/arm/arm.c (arm_expand_prologue): Likewise.
1313 (thumb1_expand_prologue): Likewise.
1314 * config/avr/avr.c (expand_prologue): Likewise.
1315 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1316 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1317 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1318 * config/mips/mips.c (mips_expand_prologue): Likewise.
1319 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1320 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1321 * config/s390/s390.c (s390_emit_prologue): Likewise.
1322 * config/sh/sh.c (sh_expand_prologue): Likewise.
1323 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1324 * config/spu/spu.c (spu_expand_prologue): Likewise.
1325
1326 2011-05-25 Richard Guenther <rguenther@suse.de>
1327
1328 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1329 (gimple_canonical_types_compatible_p): Likewise.
1330
1331 2011-05-25 Jan Hubicka <jh@suse.cz>
1332
1333 PR middle-end/49062
1334 * ipa.c (function_and_variable_visibility): Only add to same
1335 comdat group list if DECL_ONE_ONLY.
1336
1337 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1338
1339 PR rtl-optimization/49014
1340 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1341
1342 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1343
1344 PR target/49128
1345 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1346
1347 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1348
1349 PR rtl-optimization/48757
1350 * ira-build.c (loop_with_eh_edge_p): Rename to
1351 loop_with_complex_edge_p, check edges on complexity, make function
1352 conditional.
1353 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1354 conditional.
1355
1356 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1357
1358 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1359 force flag_ira_share_save_slots to 0.
1360
1361 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1362
1363 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1364 (vt_initialize): Set PROLOGUE_BB unconditionally.
1365 Add block comment about CFA_BASE_RTX machinery.
1366 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1367 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1368
1369 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1370
1371 PR objc/48187
1372 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1373 parsing of syntax error in ObjC instance variable lists. In
1374 particular, avoid an infinite loop if there is a stray ']'.
1375 Updated error message.
1376
1377 2011-05-24 Ian Lance Taylor <iant@google.com>
1378
1379 * godump.c (go_define): Don't accept a string immediately after
1380 another operand.
1381
1382 2011-05-24 Ian Lance Taylor <iant@google.com>
1383
1384 * godump.c (struct godump_container): Add invalid_hash field.
1385 (go_format_type): Return false if type is found in invalid_hash.
1386 (go_output_typedef): Add invalid type to invalid_hash.
1387 (go_finish): Create and delete invalid_hash.
1388
1389 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1390
1391 PR tree-optimization/46728
1392 * tree-ssa-math-opts.c (powi_table): New.
1393 (powi_lookup_cost): New.
1394 (powi_cost): New.
1395 (powi_as_mults_1): New.
1396 (powi_as_mults): New.
1397 (gimple_expand_builtin_powi): New.
1398 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1399 (gate_cse_sincos): Remove sincos/cexp restriction.
1400
1401 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1402
1403 PR target/3746
1404 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1405 mips-tdump native.
1406 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1407 * mips-tdump.c: Likewise.
1408
1409 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1410
1411 PR target/49128
1412 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1413 add -mno-XXX. Handle FMA.
1414
1415 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1416
1417 PR rtl-optimization/48633
1418 * ira-build.c (loop_with_eh_edge_p): New function.
1419 (mark_loops_for_removal): Use it.
1420
1421 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1422
1423 PR rtl-optimization/48971
1424 * ira.c (setup_pressure_classes): Don't check register move cost
1425 for classes with one registers. Don't add pressure class if there
1426 is a pressure class with the same available hard registers.
1427 Check contains_reg_of_mode. Fix a typo in collecting
1428 temp_hard_regset. Ignore hard registers not belonging to a class.
1429
1430 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1431
1432 PR target/49133
1433 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1434
1435 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1436 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1437
1438 PR gcov-profile/48845
1439 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1440
1441 2011-05-24 Richard Guenther <rguenther@suse.de>
1442
1443 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1444 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1445 (gimple_types_compatible_p_1): Adjust.
1446 (iterative_hash_canonical_type): Do not bother about complete vs.
1447 incomplete types.
1448 (gimple_canonical_types_compatible_p): Likewise.
1449
1450 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1451
1452 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1453
1454 2011-05-24 Richard Guenther <rguenther@suse.de>
1455
1456 PR bootstrap/49078
1457 * gimple.c (gimple_register_canonical_type): Revert
1458 previous change.
1459 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1460 does not for a tree for the case where it matters. Cache
1461 pointer-type alias-sets.
1462
1463 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1464
1465 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1466 (OBJS): Remove options.o, opts-common.o and prefix.o.
1467 (OBJS-libcommon-target): New.
1468 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1469 (BACKEND): Include libcommon-target.a.
1470 (MOSTLYCLEANFILES): Include libcommon-target.a.
1471 (libcommon-target.a): New.
1472 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1473 prefix.o.
1474
1475 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1476
1477 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1478 parts of output shared with the driver.
1479 * optc-gen.awk: Don't generate parts of output not shared with the
1480 driver.
1481 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1482 * doc/options.texi (SourcerInclude): Mention options-save.c.
1483 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1484 (OBJS): Add options-save.o.
1485 (options-save.c, options-save.o): New.
1486 (options.o): Update dependencies.
1487 (gcc-options.o): Remove.
1488 (mostlyclean): Remove options-save.c.
1489
1490 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1491
1492 PR debug/49032
1493 * dbxout.c: Include cgraph.h.
1494 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1495 and without value expr, return NULL if no varpool node exists for
1496 it or if it is not needed.
1497 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1498
1499 PR c/49120
1500 * c-decl.c (start_decl): Convert expr to void_type_node.
1501
1502 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1503
1504 PR rtl-optimization/48826
1505 * emit-rtl.c (try_split): When splitting a call that is followed
1506 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1507
1508 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1509
1510 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1511 parameters passed in memory prefer using DECL_INCOMING_RTL over
1512 the pseudos it will be copied into.
1513
1514 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1515
1516 PR target/47315
1517 * config/i386/i386.c (ix86_option_override_internal): Save the
1518 initial options after checking vzeroupper.
1519
1520 2011-05-23 David Li <davidxl@google.com>
1521
1522 PR tree-optimization/48988
1523 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1524 Initialize has_valid_pred for each pred chain.
1525
1526 2011-05-23 Richard Guenther <rguenther@suse.de>
1527
1528 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1529 (iterative_hash_gimple_type): Always hash type names.
1530
1531 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1532
1533 * c-typeck.c (build_function_call_vec): Tweak call to
1534 check_function_arguments.
1535
1536 2011-05-23 Richard Guenther <rguenther@suse.de>
1537
1538 PR tree-optimization/49115
1539 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1540 is not necessarily carried out, do not claim it kills the ref.
1541 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1542
1543 2011-05-23 Richard Guenther <rguenther@suse.de>
1544
1545 PR middle-end/15419
1546 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1547 what pointer types we accept for folding.
1548
1549 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1550
1551 * gthr-gnat.c: Remove.
1552 * gthr-gnat.h: Remove.
1553 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1554 * config/t-freebsd (LIB2ADDEH): Likewise.
1555 * config/t-linux (LIB2ADDEH): Likewise.
1556 * config/t-sol2 (LIB2ADDEH): Likewise.
1557 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1558 * configure.ac (target_thread_file): Remove gnat handling.
1559 * configure: Regenerate.
1560 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1561
1562 2011-05-23 Tristan Gingold <gingold@adacore.com>
1563 Eric Botcazou <ebotcazou@adacore.com>
1564
1565 * gcov.c (create_file_names): If no object directory is specified,
1566 keep the directory of the file.
1567
1568 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1569
1570 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1571 * configure: Regenerate.
1572
1573 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1574
1575 PR middle-end/48973
1576 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1577 failed and the comparison has a single bit signed type, use
1578 constm1_rtx instead of const1_rtx for true value.
1579 (do_store_flag): If ops->type is single bit signed type, disable
1580 signel bit test optimization and pass -1 instead of 1 as last
1581 parameter to emit_store_flag_force.
1582
1583 2011-05-23 Tom de Vries <tom@codesourcery.com>
1584
1585 PR target/45098
1586 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1587 function.
1588 (infer_loop_bounds_from_undefined): Use new function.
1589
1590 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1591
1592 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1593 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1594 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1595 and -O0 otherwise.
1596 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1597
1598 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1599
1600 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1601 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1602 returns true.
1603
1604 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1605
1606 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1607
1608 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1609
1610 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1611 UNSPEC_MOVE_PIC pattern.
1612
1613 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1614
1615 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1616 (sparc-*-rtems*): Likewise.
1617 (sparc64-*-elf*): Likewise.
1618 (sparc64-*-rtems*): Likewise.
1619 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1620 * config/sparc/t-crtin: New file.
1621 * config/sparc/t-sol2 (crti.o): Delete rule.
1622 (crtn.o): Likewise.
1623 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1624 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1625 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1626 (ENDFILE_SPEC): Add crtn.o.
1627
1628 2011-05-22 Tom de Vries <tom@codesourcery.com>
1629
1630 PR middle-end/48689
1631 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1632 CODE_CONTAINS_STRUCT (TS_COMMON).
1633
1634 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1635
1636 PR middle-end/49029
1637 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1638 only after deciding which mode to use.
1639
1640 2011-05-22 Tom de Vries <tom@codesourcery.com>
1641
1642 PR target/45098
1643 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1644 for call to get_shiftadd_cost.
1645
1646 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1647
1648 PR target/49104
1649 * config/i386/cpuid.h (bit_MMXEXT): New define.
1650
1651 2011-05-22 Nick Clifton <nickc@redhat.com>
1652
1653 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1654 initialisation of non-existant args[2] element. Use args[] array
1655 not arg[] array to pass arguments to build_function_type_list.
1656
1657 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1658
1659 PR tree-optimization/49087
1660 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1661
1662 2011-05-21 Jason Merrill <jason@redhat.com>
1663
1664 PR c++/49092
1665 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1666 static storage duration.
1667
1668 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1669
1670 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1671 frame pointer.
1672
1673 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1674
1675 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1676 false if there are call-saved registers here...
1677 (sparc_can_use_return_insn_p): ...but here instead.
1678 (save_or_restore_regs): Fix thinko.
1679 (sparc_expand_prologue): Use current_function_is_leaf.
1680 (sparc_frame_pointer_required): Likewise.
1681
1682 2011-05-21 Nick Clifton <nickc@redhat.com>
1683
1684 PR target/49098
1685 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1686
1687 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1688
1689 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1690 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1691
1692 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1693
1694 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1695 * optc-gen.awk: Move common code to opt-read.awk.
1696 * opth-gen.awk: Likewise.
1697 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1698
1699 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1700
1701 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1702
1703 2011-05-20 Tom de Vries <tom@codesourcery.com>
1704
1705 PR target/45098
1706 * tree-ssa-loop-ivopts.c: Include expmed.h.
1707 (get_shiftadd_cost): New function.
1708 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1709
1710 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1711
1712 PR bootstrap/49086
1713 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1714 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1715
1716 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1717
1718 * Makefile.in: Update comment referring to $(OBJS-common).
1719
1720 2011-05-20 Ian Lance Taylor <iant@google.com>
1721
1722 * godump.c (go_output_typedef): Put enum constants in the macro
1723 hash table to avoid duplicate Go const definitions.
1724
1725 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1726
1727 * Makefile.in (LIBDEPS): Add libcommon.a.
1728 (LIBS): Likewise.
1729 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1730 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1731 pretty-print.o and version.o.
1732 (OBJS-libcommon): New.
1733 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1734 (BACKEND): Add libcommon.a.
1735 (MOSTLYCLEANFILES): Likewise.
1736 (libcommon.a): New.
1737 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1738 (cpp$(exeext)): Likewise.
1739 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1740 pretty-print.o and input.o.
1741 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1742 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1743 (errors.o): Remove.
1744 (mips-tfile): Don't explicitly use version.o.
1745 (mips-tdump): Likewise.
1746 (gcov.o): Depend on $(DIAGNOSTIC_H).
1747 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1748 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1749 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1750 * gcov-dump.c: Include intl.h and diagnostic.h.
1751 (main): Initialize diagnostics.
1752 * gcov.c: Include diagnostic.h.
1753 (fnotice): Remove.
1754 (main): Initialize diagnostics.
1755 * lto-wrapper.c: Include diagnostic.h.
1756 (main): Initialize diagnostics.
1757
1758 2011-05-20 Michael Matz <matz@suse.de>
1759
1760 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1761
1762 2011-05-20 Michael Matz <matz@suse.de>
1763 Richard Guenther <rguenther@suse.de>
1764
1765 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1766 use lto_streamer_cache_append directly instead of returning a VEC.
1767 (preload_common_node): Remove.
1768 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1769 track seen nodes.
1770 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1771
1772 2011-05-20 Richard Guenther <rguenther@suse.de>
1773
1774 PR tree-optimization/49079
1775 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1776 MEM_REFs correctly for the trailing array access detection.
1777 Special case constants the same way as decls for overall size
1778 constraining.
1779
1780 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1781
1782 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1783 argument expansion.
1784
1785 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1786
1787 PR tree-optimization/49073
1788 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1789 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1790 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1791
1792 2011-05-20 Richard Guenther <rguenther@suse.de>
1793
1794 PR middle-end/48849
1795 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1796 of pointer types the same way the middle-end does.
1797
1798 2011-05-20 Richard Guenther <rguenther@suse.de>
1799
1800 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1801 or pointer-to chains. Delay all fixup to uniquify_nodes.
1802
1803 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1804
1805 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1806 (fma4_fmaddsub): Likewise
1807
1808 2011-05-19 Jan Hubicka <jh@suse.cz>
1809
1810 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1811 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1812 (type_pair_cache): New static var.
1813 (lookup_type_pair): Use fixed sized custom hash; make inline.
1814 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1815 calls of lookup_type_pair.
1816 (print_gimple_types_stats): Remove cache stats.
1817 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1818 and gtc_ob.
1819
1820 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1821
1822 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1823 when TARGET_RDRND is active.
1824 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1825 Generate dummy SImode target register when target is NULL.
1826
1827 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1828
1829 * config/arm/arm-fpus.def: New.
1830 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1831 arm-fpus.def.
1832 * config/arm/arm-tables.opt: Regenerate.
1833 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1834 (arm_option_override): Don't decode FPU name to string here.
1835 * config/arm/arm.opt (mfpu=): Use Enum.
1836 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1837 Update dependencies.
1838
1839 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1840
1841 * collect2.c: Include diagnostic.h.
1842 (fatal_perror, fatal, error, fancy_abort): Remove.
1843 (main): Set progname. Call xmalloc_set_program_name and
1844 diagnostic_initialize.
1845 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1846 scan_libraries, resolve_lib_name): Call fatal_error instead of
1847 fatal and fatal_perror.
1848 * collect2.h (error, fatal, fatal_perror): Don't declare.
1849 * tlink.c: Include diagnostic-core.h.
1850 (recompile_files): Call fatal_error instead of fatal_perror.
1851 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1852 pretty-print.o and input.o.
1853 (collect2.o, tlink.o): Update dependencies.
1854
1855 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1856
1857 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1858
1859 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1860
1861 PR target/40483
1862 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1863 COMDAT group syntax, both SPARC and x86 variants.
1864 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1865 * configure: Regenerate.
1866 * config/sol2.h (TARGET_SOLARIS): Define.
1867 (PUSHSECTION_FORMAT): Remove.
1868 (SECTION_NAME_FORMAT): Define.
1869 * config/sol2.c: Include hashtab.h.
1870 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1871 expansion, using SECTION_NAME_FORMAT.
1872 (solaris_comdat_htab): New variable.
1873 (struct comdat_entry): Define.
1874 (comdat_hash): New function.
1875 (comdat_eq): New function.
1876 (solaris_elf_asm_comdat_section): New function.
1877 (solaris_define_comdat_signature): New function.
1878 (solaris_code_end): New function.
1879 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1880 (solaris_code_end): Declare.
1881 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1882 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1883 solaris_code_end.
1884 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1885 Remove ATTRIBUTE_UNUSED.
1886 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1887 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1888 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1889 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1890 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1891 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1892 (PUSHSECTION_FORMAT): Remove.
1893 (SECTION_NAME_FORMAT): Redefine.
1894
1895 2011-05-19 Kai Tietz <ktietz@redhat.com>
1896
1897 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1898 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1899 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1900
1901 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1902 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1903
1904 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1905
1906 2011-05-19 Richard Guenther <rguenther@suse.de>
1907
1908 PR middle-end/48985
1909 * tree-object-size.c (addr_object_size): If the pointed-to
1910 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1911
1912 2011-05-19 Richard Guenther <rguenther@suse.de>
1913
1914 * gimple.c (gimple_types_compatible_p_1): Compare names of
1915 the types themselves.
1916 (iterative_hash_gimple_type): And hash them that way.
1917 (gimple_register_type_1): If we register a main variant properly
1918 initialize the leader to ourselves.
1919
1920 2011-05-19 Tom de Vries <tom@codesourcery.com>
1921
1922 PR target/45098
1923 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1924 get_loop_invariant_expr_id.
1925 (get_loop_invariant_expr_id): Use get_expr_id.
1926 (parm_decl_cost): New function.
1927 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1928 Improve bound cost estimation. Use different inv_expr_id for elim and
1929 express cases.
1930
1931 2011-05-19 Tom de Vries <tom@codesourcery.com>
1932
1933 PR target/45098
1934 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1935 cost_base.cost == 0.
1936
1937 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1938
1939 PR target/49002
1940 * config/i386/sse.md
1941 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1942 load cast.
1943
1944 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1945
1946 PR tree-optimization/49039
1947 * tree-vrp.c (extract_range_from_binary_expr): For
1948 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1949 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1950
1951 2011-05-18 Tom de Vries <tom@codesourcery.com>
1952
1953 PR target/45098
1954 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1955
1956 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1957
1958 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1959 (*tls_global_dynamic_64): Ditto.
1960 (*tls_local_dynamic_base_32_gnu): Ditto.
1961 (*tls_local_dynamic_base_64): Ditto.
1962 (tls_initial_exec_64_sun): Ditto.
1963
1964 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1965
1966 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1967 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1968 bf592-none.
1969 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1970 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1971 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1972 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1973 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1974 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1975 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1976
1977 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1978
1979 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1980 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1981 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1982 target_thread_pointer, arm_structure_size_boundary, struct
1983 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1984 struct abi_name, arm_all_abis): Remove.
1985 (arm_option_override) Don't process most enumerated option values here.
1986 Don't process target_fpe_name here. Work with integer not string for
1987 structure size boundary; use separate diagnostics for each case.
1988 * config/arm/arm.h (enum float_abi_type, enum
1989 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1990 to arm-opts.h.
1991 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1992 arm_structure_size_boundary): Remove.
1993 * config/arm/arm.opt (mabi=): Use Enum and Init.
1994 (arm_abi_type): New Enum and EnumValue entries.
1995 (mfloat-abi=): Use Enum and Init.
1996 (float_abi_type): New Enum and EnumValue entries.
1997 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1998 (mfp16-format=): Use Enum and Init.
1999 (arm_fp16_format_type): New Enum and EnumValue entries.
2000 (mstructure-size-boundary=): Use UInteger and Init.
2001 (mtp=): Use Enum and Init.
2002 (arm_tp_type): New Enum and EnumValue entries.
2003
2004 2011-05-18 Richard Guenther <rguenther@suse.de>
2005
2006 PR tree-optimization/49018
2007 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2008 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2009 gimple_has_side_effects.
2010
2011 2011-05-18 Richard Guenther <rguenther@suse.de>
2012
2013 * gimple.c (gimple_register_type_1): New function, split out from ...
2014 (gimple_register_type): ... here. Avoid infinite recursion.
2015
2016 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2017
2018 PR tree-optimization/41881
2019 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2020 reduction_chains along with a macro for its access.
2021 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2022 (destroy_loop_vec_info): Free reduction chains.
2023 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2024 (vect_is_slp_reduction): New function.
2025 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2026 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2027 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2028 definition types for reduction chains.
2029 (vect_supported_load_permutation_p): Don't allow permutations for
2030 reduction chains.
2031 (vect_analyze_slp_instance): Support reduction chains.
2032 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2033 (vect_get_constant_vectors): Handle reduction chains.
2034 (vect_schedule_slp_instance): Mark the first statement of the
2035 reduction chain as reduction.
2036
2037 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2038
2039 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2040 names for group elements access.
2041 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2042 reduction chains as well. Remove data reference and interleaving
2043 related words from the fields names.
2044 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2045 elements access.
2046 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2047 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2048 vect_update_interleaving_chain, vect_same_range_drs,
2049 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2050 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2051 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2052 vect_analyze_group_access, vect_analyze_data_ref_access,
2053 vect_create_data_ref_ptr, vect_transform_strided_load,
2054 vect_record_strided_load_vectors): Likewise.
2055 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2056 vect_model_load_cost, vectorizable_store, vectorizable_load,
2057 vect_remove_stores, new_stmt_vec_info): Likewise.
2058 * tree-vect-slp.c (vect_build_slp_tree,
2059 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2060
2061 2011-05-18 Richard Guenther <rguenther@suse.de>
2062
2063 PR middle-end/48989
2064 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2065 operand verification.
2066 (verify_gimple_assign_binary): Likewise.
2067 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2068 to non-1-precision BOOLEAN_TYPEs.
2069
2070 2011-05-18 Tom de Vries <tom@codesourcery.com>
2071
2072 PR target/45098
2073 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2074
2075 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2076
2077 PR tree-optimization/49000
2078 * tree-ssa.c (execute_update_addresses_taken): Call
2079 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2080 be rewritten and decl has been marked for renaming, reset
2081 the debug stmt.
2082
2083 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2084
2085 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2086 enum_opts_set when testing if attributes have set -mfpmath=.
2087
2088 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2089
2090 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2091
2092 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2093
2094 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2095 info->entry with 0
2096 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2097 id.transform_lang_insert_block with NULL.
2098
2099 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2100
2101 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2102 (output_fp_compare): Change args 3 and 4 to bool.
2103 (ix86_expand_call): Change arg 6 to bool.
2104 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2105 (ix86_attr_length_vex_default): Change arg 3 to bool.
2106 * config/i386/i386.md: Update all uses.
2107 * config/i386/i386.c: Ditto.
2108 (ix86_flags_dependent): Change return type to bool.
2109
2110 2011-05-17 Richard Guenther <rguenther@suse.de>
2111
2112 * gimple.c (type_hash_pair_compare): Fix comparison.
2113
2114 2011-05-17 Richard Guenther <rguenther@suse.de>
2115
2116 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2117 case some more, fix final hash value of the non-singleton case.
2118
2119 2011-05-17 Richard Guenther <rguenther@suse.de>
2120
2121 PR bootstrap/49013
2122 Revert
2123 2011-05-16 Richard Guenther <rguenther@suse.de>
2124
2125 * gimple.c (gimple_types_compatible_p_1): Use names of the
2126 type itself, not its main variant.
2127 (iterative_hash_gimple_type): Likewise.
2128
2129 2011-05-17 Richard Guenther <rguenther@suse.de>
2130
2131 * gimple.c (gimple_register_canonical_type): Use the main-variant
2132 leader for computing the canonical type.
2133
2134 2011-05-17 Nick Clifton <nickc@redhat.com>
2135
2136 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2137 moves.
2138
2139 * config/rx/rx.md: Add peephole to remove redundant extensions
2140 after loads.
2141 (bitset_in_memory): Use rx_restricted_mem_operand.
2142 (bitinvert_in_memory): Likewise.
2143 (bitclr_in_memory): Likewise.
2144
2145 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2146 Nick Clifton <nickc@redhat.com>
2147
2148 * config/rx/rx.md: Add peepholes to match a register move followed
2149 by a comparison of the moved register. Replace these with an
2150 addition of zero that does both actions in one instruction.
2151
2152 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2153
2154 PR target/48986
2155 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2156 predicate to allow CONST_INT.
2157 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2158
2159 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2160
2161 * opts-common.c (opt_enum_arg_to_value): New.
2162 * opts.h (opt_enum_arg_to_value): Declare.
2163 * config/i386/i386.opt (fpmath): Remove.
2164 (mfpmath=): Use Enum, Init and Save.
2165 (fpmath_unit): New Enum and EnumValue entries.
2166 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2167 name for function fpmath state.
2168 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2169 * config/i386/i386.c: Include diagnostic.h.
2170 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2171 (ix86_target_string): Take enum fpmath_unit value instead of string.
2172 (ix86_debug_options): Update call to ix86_target_string.
2173 (ix86_option_override_internal): Don't process fpmath strings here.
2174 (x86_function_specific_save, ix86_function_specific_restore):
2175 Don't handle fpmath state specially.
2176 (ix86_function_specific_print): Pass fpmath state to
2177 ix86_target_string instead of printing in this function.
2178 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2179 Handle enum attributes.
2180 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2181 (ix86_valid_target_attribute_tree): Update option_strings
2182 handling. Handle fpmath as enum option.
2183 (ix86_can_inline_p): Update field names for function fpmath state.
2184 (ix86_expand_builtin): Update call to ix86_target_string.
2185 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2186 (ix86_fpmath): Remove.
2187 * config/i386/t-i386 (i386.o): Update dependencies.
2188
2189 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2190
2191 PR preprocessor/48677
2192 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2193 from decoded_options[0], not from itself.
2194
2195 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2196
2197 * config/i386/constraints.md (z): New constraint.
2198 * config/i386/i386.c (c): New mode attribute.
2199 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2200 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2201 constraint for operand 0.
2202 (*call_vzeroupper): Ditto.
2203 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2204 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2205 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2206 Use "lzm" constraint for operand 0.
2207 (*call_pop_vzeroupper): Ditto.
2208 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2209 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2210 constraint for operand 0.
2211 (*sibcall_vzeroupper): Ditto.
2212 (*sibcall_rex64_ms_sysv): Ditto.
2213 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2214 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2215 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2216 (*sibcall_pop_vzeroupper): Ditto.
2217 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2218 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2219 mode iterator. Use "<c>zm" constraint for operand 1.
2220 (*call_value_vzeroupper): Ditto.
2221 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2222 for operand 1.
2223 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2224 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2225 *call_value_pop_1. Use "lzm" constraint for operand 1.
2226 (*call_value_pop_vzeroupper): Ditto.
2227 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2228 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2229 mode iterator. Use "Uz" constraint for operand 1.
2230 (*sibcall_value_vzeroupper): Ditto.
2231 (*sibcall_value_rex64_ms_sysv): Ditto.
2232 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2233 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2234 constraint for operand 1.
2235 (*sibcall_value_pop_vzeroupper): Ditto.
2236 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2237 and "z" constraint for operand 2.
2238 (*tls_global_dynamic_32_gnu): Ditto.
2239 (*tls_local_dynamic_base_32_gnu): Ditto.
2240 (*tls_local_dynamic_base_64): Ditto.
2241 (*tls_local_dynamic_32_once): Ditto.
2242 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2243 Update all callers.
2244 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2245
2246 2011-05-16 Richard Guenther <rguenther@suse.de>
2247
2248 * gimple.c (gimple_types_compatible_p_1): Use names of the
2249 type itself, not its main variant.
2250 (iterative_hash_gimple_type): Likewise.
2251
2252 2011-05-16 Richard Guenther <rguenther@suse.de>
2253
2254 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2255 always visit pointer target and function result and argument types.
2256
2257 2011-05-16 Jason Merrill <jason@redhat.com>
2258
2259 PR c++/48999
2260 * tree-inline.c (copy_statement_list): Put back recursion.
2261
2262 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2263
2264 PR target/27663
2265 PR target/41076
2266 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2267 * config/avr/avr.md ("*ior<mode>qi.byte0",
2268 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2269
2270 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2271
2272 PR target/45099
2273 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2274 register is needed for a function argument.
2275
2276 2011-05-16 Richard Guenther <rguenther@suse.de>
2277
2278 * gimple.c (struct type_hash_pair): New type.
2279 (type_hash_pair_compare): New function.
2280 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2281
2282 2011-05-16 Revital Eres <revital.eres@linaro.org>
2283
2284 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2285
2286 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2287
2288 * config/i386/i386.md (floating point move splitters): Fix
2289 usage of standard_80387_constant_p.
2290 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2291
2292 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2293
2294 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2295
2296 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2297
2298 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2299 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2300 (tree_ssa_lim_finalize): Likewise.
2301
2302 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2303
2304 * config/i386/constraint.md (Yd, Yx): New register constraints.
2305 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2306 Yd conditional register constraint.
2307 (*movtf_internal): Use standard_sse_constant_opcode.
2308 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2309 Yx conditional register constraint.
2310 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2311 Yd conditional register constraint. Use standard_sse_constant_p to
2312 check for valid SSE constants and call standard_sse_constant_opcode to
2313 output SSE insn.
2314 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2315 constants and call standard_sse_constant_opcode to output SSE insn.
2316 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2317 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2318 optimize_size is set.
2319 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2320
2321 2011-05-14 Tobias Burnus <burnus@net-b.de>
2322
2323 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2324
2325 2011-05-13 Martin Jambor <mjambor@suse.cz>
2326
2327 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2328 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2329 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2330 (evaluate_conditions_for_ipcp_clone): Removed.
2331 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2332 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2333 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2334
2335 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2336
2337 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2338 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2339 lieu of MAY_HAVE_DEBUG_STMTS.
2340 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2341 debug statements if !MAY_HAVE_DEBUG_STMTS.
2342
2343 2011-05-13 Martin Thuresson <martint@google.com>
2344
2345 PR gcov-profile/47793
2346 * libgcov.c (gcov_exit): Support relative profile paths.
2347 * doc/invoke.texi (-fprofile-dir): Update for above change.
2348
2349 2011-05-13 Richard Guenther <rguenther@suse.de>
2350
2351 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2352 type-pair caching, do not compare hashes.
2353
2354 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2355
2356 PR middle-end/48965
2357 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2358 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2359
2360 2011-05-13 Kai Tietz <ktietz@redhat.com>
2361
2362 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2363 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2364 compatible type for TRUTH_NOT_EXPR.
2365
2366 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2367
2368 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2369 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2370 can_create_pseudo_p ().
2371
2372 2011-05-13 Richard Guenther <rguenther@suse.de>
2373
2374 PR lto/48978
2375 * gimple.c (iterative_hash_gimple_type): Revert change in
2376 pointer target and function result and argument hashing.
2377
2378 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2379
2380 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2381 (*movxf_internal_nointeger): Ditto.
2382 (*movdf_internal_rex64): Ditto.
2383 (*movdf_internal): Ditto.
2384 (*movdf_internal_nointeger): Ditto.
2385 (*movsf_internal): Ditto.
2386 (sincos splitters): Use can_create_pseudo ().
2387
2388 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2389
2390 * config/i386/i386-opts.h: New.
2391 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2392 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2393 ix86_section_threshold): Remove.
2394 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2395 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2396 OPT_mbranch_cost_.
2397 (ix86_option_override_internal): Don't decode strings for options
2398 other than -march=, -mtune= and -mfpmath=. Don't allow for
2399 __attribute__ uses in remaining diagnostics for options with
2400 string arguments. Don't check for integer arguments being negative.
2401 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2402 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2403 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2404 ix86_branch_cost, ix86_section_threshold): Remove.
2405 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2406 HeaderInclude.
2407 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2408 but not Var.
2409 (masm=): Use Enum and Init.
2410 (asm_dialect): New Enum and EnumValue entries.
2411 (mbranch-cost=): Use UInteger.
2412 (mlarge-data-threshold=): Use UInteger and Init.
2413 (mcmodel=): Use Enum and Init.
2414 (cmodel): New Enum and EnumValue entries.
2415 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2416 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2417 mregparm=): Use UInteger.
2418 (mstringop-strategy=): Use Enum and Init.
2419 (stringop_alg): New Enum and EnumValue entries.
2420 (mtls-dialect=): Use Enum and Init.
2421 (tls_dialect): New Enum and EnumValue entries.
2422 (mabi=): Use Enum and Init.
2423 (calling_abi): New Enum and EnumValue entries.
2424 (mveclibabi=): Use Enum and Init.
2425 (ix86_veclibabi): New Enum and EnumValue entries.
2426
2427 2011-05-13 Nick Clifton <nickc@redhat.com>
2428
2429 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2430 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2431
2432 2011-05-13 Kai Tietz <ktietz@redhat.com>
2433
2434 PR middle-end/48984
2435 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2436 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2437 (gimple_boolify): Check for cast for boolean_type_node instead for
2438 BOOLEAN_TYPE.
2439
2440 2011-05-13 Richard Guenther <rguenther@suse.de>
2441
2442 PR tree-optimization/48172
2443 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2444 multiplying by number of iterations for equal step.
2445 (vect_create_cond_for_alias_checks): Likewise.
2446
2447 2011-05-13 Andreas Schwab <schwab@redhat.com>
2448
2449 * configure.ac: Use AS_HELP_STRING throughout.
2450 * configure: Regenerate.
2451
2452 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2453
2454 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2455 (ix86_emit_restore_regs_using_mov): Likewise.
2456 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2457
2458 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2459
2460 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2461 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2462 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2463 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2464 RTX_OK_FOR_OLO10_P): ...here.
2465 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2466 SYMBOLIC_CONST.
2467
2468 2011-05-12 Kai Tietz <ktietz@redhat.com>
2469
2470 * gimplify.c (gimple_boolify): Re-boolify expression
2471 arguments even if expression type is of kind BOOLEAN_TYPE.
2472 (gimplify_boolean_expr): Removed.
2473 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2474 and XOR. Additional take care that we keep expression's type.
2475 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2476 of TRUTH_AND|OR|XOR_EXPR.
2477
2478 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR tree-optimization/48975
2481 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2482 on all bbs here and free and clear ifc_bbs at the end.
2483
2484 2011-05-12 Richard Guenther <rguenther@suse.de>
2485
2486 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2487 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2488 until after simple checks.
2489 (gimple_types_compatible_p): Likewise.
2490 (iterative_hash_gimple_type): Always hash pointer targets
2491 and function return and argument types.
2492 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2493 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2494 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2495 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2496 completely in the simple compare section.
2497 (gimple_register_canonical_type): Query the cache again after
2498 registering.
2499
2500 2011-05-12 Richard Guenther <rguenther@suse.de>
2501
2502 PR tree-optimization/48172
2503 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2504 the number of iterations from the segment size calculation.
2505 (vect_create_cond_for_alias_checks): Adjust.
2506
2507 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR debug/48967
2510 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2511 if validate_subreg fails.
2512
2513 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2514
2515 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2516 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2517 early.
2518
2519 2011-05-12 DJ Delorie <dj@redhat.com>
2520
2521 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2522 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2523 created builtin into rx_builtins array.
2524 (rx_builtin_decl): New function.
2525 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2526
2527 2011-05-12 DJ Delorie <dj@redhat.com>
2528 Nick Clifton <nickc@redhat.com>
2529
2530 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2531 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2532 (rx_is_legitimate_address): Add pre-decrement and post-increment
2533 addressing in HImode and QImode. Fix test for out of range
2534 REG+INT addressing.
2535 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2536 (rx_align_for_label): Test label before extracting its usage count.
2537 (rx_adjust_insn_lengths): Fix selection of insn codes.
2538 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2539
2540 2011-05-11 Jason Merrill <jason@redhat.com>
2541
2542 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2543
2544 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2545
2546 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2547 reindent the subsequent block.
2548
2549 2011-05-11 Satoru Takabayashi <satorux@google.com>
2550 Paul Pluzhnikov <ppluzhnikov@google.com>
2551
2552 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2553 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2554 * config.in: Add LINKER_HASH_STYLE.
2555 * configure.ac: Add --with-linker-hash-style.
2556 * configure: Regenerate.
2557
2558 2011-05-11 Richard Guenther <rguenther@suse.de>
2559
2560 PR middle-end/48964
2561 * gimple.c (iterative_hash_canonical_type): Fix typo.
2562
2563 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2564
2565 * config/i386/i386.c (legitimize_tls_address)
2566 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2567 expanders directly for TARGET_GNU2_TLS. Determine pic and
2568 __tls_get_addr symbol reference here. Update call to
2569 gen_tls_global_dynamic_{32,64} for added arguments.
2570 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2571 expanders directly for TARGET_GNU2_TLS. Determine
2572 __tls_get_addr symbol reference here. Update call to
2573 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2574 unique UNSPEC REG_EQUIV to libcall block.
2575 (ix86_tls_get_addr): Declare static.
2576 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2577 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2578 Do not determine pic and __tls_get_addr symbol reference here. Do not
2579 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2580 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2581 (tls_global_dynamic_64): Add operand 2. Do not determine
2582 __tls_get_addr symbol reference here. Do not call
2583 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2584 (tls_local_dynamic_base64): Ditto for operand 1.
2585
2586 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2587
2588 * function.c (expand_function_start): Initialize stack_check_probe_note
2589 only if the generic stack checking mechanism is used.
2590
2591 2011-05-11 Richard Guenther <rguenther@suse.de>
2592
2593 PR tree-optimization/15256
2594 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2595 (A & B) | C, combine (A op CST1) op CST2.
2596 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2597 visit assigns that have uses.
2598
2599 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2600
2601 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2602 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2603 (unpack_ts_type_common_value_fields): ...this. Update comment.
2604 (unpack_value_fields): Adjust for renaming.
2605 (lto_input_ts_type_tree_pointers): Split into...
2606 (lto_input_ts_type_common_tree_pointer): ...this and...
2607 (lto_input_ts_type_non_common_tree_pointers): ...this.
2608 (lto_input_tree_pointers): Adjust for above split.
2609 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2610 (pack_ts_type_common_value_fields): ...this. Update comment.
2611 (lto_output_ts_type_tree_pointers): Split into...
2612 (lto_output_ts_type_common_tree_pointers): ...this and...
2613 (lto_output_ts_type_non_common_tree_pointers): ...this.
2614 (lto_output_tree_pointers): Adjust for above split.
2615 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2616 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2617 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2618 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2619 Define.
2620 (struct tree_type): Split into...
2621 (struct tree_type_common: ...this and...
2622 (struct tree_type_with_lang_specific): ...this and...
2623 (struct tree_type_non_common): ...this. Adjust accessor macros
2624 accordingly.
2625 (TYPE_VALUES_RAW): Define.
2626 (union tree_node): Update for above changes.
2627 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2628 TS_TYPE_NON_COMMON.
2629 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2630 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2631 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2632 * treestructu.def (TS_TYPE): Remove.
2633 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2634 Define.
2635
2636 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2637
2638 PR debug/48159
2639 * tree-ssa.c (reset_debug_uses): New function.
2640 * tree-flow.h (reset_debug_uses): New prototype.
2641 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2642 * tree-loop-distribution.c (generate_loops_for_partition): Call
2643 reset_debug_uses on the stmts that will be removed. Keep around
2644 all debug stmts, don't count them as bits in partition bitmap.
2645 (generate_builtin): Don't count debug stmts or labels as bits in
2646 partition bitmap.
2647
2648 2011-05-11 Richard Guenther <rguenther@suse.de>
2649
2650 * gimple.c (gimple_type_hash_1): Merge with ...
2651 (gimple_type_hash): ... this.
2652 (gtc_visit): Remove mode parameter and simplify accordingly.
2653 (gimple_types_compatible_p_1): Likewise.
2654 (gimple_types_compatible_p): Likewise.
2655 (iterative_hash_gimple_type): Likewise.
2656 (visit): Likewise.
2657 (gimple_type_eq): Adjust.
2658
2659 2011-05-11 Revital Eres <revital.eres@linaro.org>
2660
2661 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2662 enters the branch create an anti edge in the opposite direction
2663 to prevent the creation of reg-moves.
2664 * modulo-sched.c: Adjust comment to reflect the fact we are
2665 scheduling closing branch.
2666 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2667 (stage_count): New field in struct partial_schedule.
2668 (calculate_stage_count): New function.
2669 (normalize_sched_times): Rename to reset_sched_times and handle
2670 incrementing the sched time of the nodes by a constant value
2671 passed as parameter.
2672 (duplicate_insns_of_cycles): Skip closing branch.
2673 (sms_schedule_by_order): Schedule closing branch.
2674 (ps_insn_find_column): Handle closing branch.
2675 (sms_schedule): Call reset_sched_times and adjust the code to
2676 support scheduling of the closing branch.
2677 (ps_insert_empty_row): Update calls to normalize_sched_times
2678 and rotate_partial_schedule functions.
2679
2680 2011-05-11 Richard Guenther <rguenther@suse.de>
2681
2682 PR middle-end/48953
2683 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2684
2685 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2686
2687 * opts.c (finish_options): Move warning settings from process_options.
2688 * toplev.c (process_options): Move warning settings to finish_options.
2689
2690 2011-05-11 Richard Guenther <rguenther@suse.de>
2691
2692 PR tree-optimization/18041
2693 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2694 (simplify_bitwise_binary): ... this. Handle operand conversions
2695 by applying them to the result instead.
2696 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2697
2698 2011-05-11 Richard Guenther <rguenther@suse.de>
2699
2700 * gimple.c (gimple_canonical_types_compatible_p): Split out
2701 from gimple_types_compatible_p and friends. Do not recurse
2702 to pointed-to types.
2703 (gimple_canonical_type_eq): Use it.
2704 (iterative_hash_canonical_type): Split out from
2705 iterative_hash_gimple_type and friends. Do not recurse
2706 to pointed-to types.
2707 (gimple_canonical_type_hash): Use it, allocate the hash here.
2708
2709 2011-05-11 Revital Eres <revital.eres@linaro.org>
2710
2711 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2712 recognizing doloop.
2713
2714 2011-05-11 Revital Eres <revital.eres@linaro.org>
2715
2716 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2717 instead of PREV_INSN.
2718
2719 2011-05-11 Revital Eres <revital.eres@linaro.org>
2720
2721 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2722 * loop-doloop.c (doloop_condition_get): Likewise.
2723 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2724 (doloop_end): New.
2725 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2726
2727 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2728
2729 * tree.def (CASE_LABEL_EXPR): Add an operand.
2730 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2731
2732 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2733
2734 * c-decl.c (c_override_global_bindings_to_false): Remove.
2735 (global_bindings_p): Don't check
2736 c_override_global_bindings_to_false.
2737 * c-tree.h (c_override_global_bindings_to_false): Remove.
2738 * c-typeck.c (composite_type): Don't set
2739 c_override_global_bindings_to_false.
2740
2741 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2742
2743 PR target/48857, 48495
2744 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2745 (VSX_MODE): Ditto.
2746 (VSX_MOVE_MODE): Ditto.
2747 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2748 VSX vector types. Add V2DImode.
2749 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2750 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2751 (MODES_TIEABLE_P): Ditto.
2752
2753 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2754 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2755 VSX_VECTOR_MODE.
2756 (init_cumulative_args): Ditto.
2757 (rs6000_function_arg_boundary): Ditto.
2758 (rs6000_function_arg_advance_1): Ditto.
2759 (rs6000_function_arg): Ditto.
2760 (rs6000_function_ok_for_sibcall): Ditto.
2761 (emit_frame_save): Ditto.
2762 (rs6000_function_value): Ditto.
2763 (rs6000_libcall_value): Ditto.
2764
2765 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2766
2767 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2768 i386/darwin-lib.h to $libgcc_tm_file.
2769 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2770
2771 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2772
2773 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2774
2775 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2776
2777 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2778 * config/rs6000/rs6000-tables.opt: New file (generated).
2779 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2780 rs6000/rs6000-tables.opt to extra_options.
2781 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2782 * config/rs6000/rs6000.c (rs6000_select): Remove.
2783 (processor_target_table): Move contents to rs6000-cpus.def.
2784 (darwin_rs6000_override_options): Check
2785 global_options_set.x_rs6000_cpu_index instead of
2786 rs6000_select[1].string.
2787 (rs6000_option_override_internal): Likewise.
2788 (rs6000_handle_option): Don't assert that global structures are in
2789 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2790 (rs6000_default_cpu): New variable.
2791 (rs6000_file_start): Set it instead of local default_cpu. Check
2792 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2793 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2794 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2795 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2796 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2797 rs6000_select): Remove.
2798 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2799 Remove.
2800 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2801 * config/rs6000/t-rs6000
2802 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2803 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2804 global_options_set.x_rs6000_cpu_index instead of
2805 rs6000_select[1].string.
2806 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2807 global_options_set.x_rs6000_cpu_index instead of
2808 rs6000_select[1].string.
2809
2810 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2811
2812 * config.gcc (libgcc_tm_file): Define instead of including files
2813 from ../../libgcc/config/ in tm_file.
2814 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2815 * configure: Regenerate.
2816 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2817 libgcc_tm.h, cs-libgcc_tm.h): New.
2818 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2819 (clean): Remove libgcc_tm.h.
2820 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2821 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2822 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2823
2824 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2825
2826 PR target/48896
2827 * config/avr/avr.c (avr_ret_register): Return unsigned int
2828 instead of int.
2829 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2830 it to avr_libcall_value.
2831 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2832 expand_expr.
2833 (avr_expand_binop_builtin): Ditto.
2834 (avr_expand_unop_builtin): Ditto.
2835
2836 2011-05-10 DJ Delorie <dj@redhat.com>
2837
2838 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2839 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2840 * config/rx/rx.c (rx_align_for_label): Add label and
2841 uses_threshold parameters. Do not align when the label is not
2842 used enough.
2843 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2844
2845 2011-05-10 Richard Guenther <rguenther@suse.de>
2846
2847 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2848 a series of conversions and apply foldings similar to what
2849 fold-const does.
2850 (tree_ssa_forward_propagate_single_use_vars): Call it.
2851
2852 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2853
2854 PR tree-optimization/48611
2855 PR tree-optimization/48794
2856 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2857 referenced from RESX or EH_DISPATCH arguments.
2858
2859 PR debug/48928
2860 * dfp.c (decimal_to_decnumber): Handle conversion from
2861 dconst{1,2,m1,half}.
2862
2863 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2864
2865 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2866 for !flag_prefer_avx128.
2867 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2868
2869 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2870
2871 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2872 (fold_ternary_loc): Use expr_location_or.
2873
2874 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2875
2876 PR debug/48853
2877 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2878 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2879 Pmode and mem_mode is not VOIDmode.
2880
2881 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2882
2883 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2884 TYPE_QUAL_RESTRICT): Convert to enum.
2885
2886 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2887
2888 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2889 (const_pow2_1_to_8_operand): Ditto.
2890 (const_pow2_1_to_128_operand): Ditto.
2891 (const_pow2_1_to_32768_operand): Ditto.
2892 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2893 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2894 in insn constraint to check integer value of operand 3.
2895 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2896
2897 (PINSR_MODE): New mode iterator.
2898 (sse2p4_1): New mode attribute.
2899 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2900 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2901 iterator. Use const_int_operand instead of
2902 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2903 exact_log2 in insn constraint to check integer value of operand 3.
2904
2905 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2906
2907 * config/i386/sse.md (blendbits): Remove mode attribute.
2908 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2909 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2910 Check integer value of operand 3 in insn constraint.
2911
2912 2011-05-09 Richard Guenther <rguenther@suse.de>
2913
2914 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2915 for diagnostics.
2916 (lto_symtab_merge): Likewise. Do not register types here.
2917 (lto_symtab_merge_decls_2): Likewise.
2918 (lto_symtab_merge_decls_1): Likewise.
2919 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2920 * gimple.c (enum gtc_mode): Declare.
2921 (gimple_types_compatible_p): Make static.
2922
2923 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2924
2925 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2926 temporary register to match Pmode.
2927
2928 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2929
2930 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2931 and *vec_concatv4si_1_avx.
2932
2933 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2934
2935 PR rtl-optimization/48927
2936 * ira-conflicts.c (commutative_constraint_p): Use
2937 recog_data.alternative_enabled_p to disable alternatives where
2938 "enabled" attribute is false.
2939 (get_dup_num): Ditto.
2940 * ira-lives.c (single_reg_class): Ditto.
2941 (ira_implicitly_set_insn_hard_regs): Ditto.
2942
2943 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2944
2945 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2946 (dataflow_set_preserve_mem_locs): Likewise.
2947
2948 2011-05-09 Philipp Thomas <pth@suse.de>
2949
2950 * config/mep/mep.c (mep_validate_vliw): Syntax description
2951 should not be translated.
2952
2953 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2954
2955 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2956 * config/mips/mips-tables.opt: New file (generated).
2957 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2958 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2959 MIPS_ARCH_OPTION_NATIVE): Define.
2960 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2961 mips-cpus.def.
2962 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2963 mips_parse_cpu): Remove.
2964 (mips_cpu_info_from_opt, mips_default_arch): New.
2965 (mips_handle_option): Don't assert that global structures are in
2966 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2967 (mips_option_override): Use new variables and functions to set
2968 state of these options. Use strcmp to check for individual CPU names.
2969 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2970 definition.
2971 * config/mips/mips.opt (march=): Use ToLower and Enum.
2972 (mips): Use ToLower, Enum and Var.
2973 (mtune=): Use ToLower and Enum.
2974 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2975
2976 2011-05-08 Jan Hubicka <jh@suse.cz>
2977
2978 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2979 Arrange type pairs to be UID ordered.
2980 (gimple_lookup_type_leader): Make inline.
2981
2982 2011-05-09 Nick Clifton <nickc@redhat.com>
2983
2984 PR target/48899
2985 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2986 PROCESSOR_DEFAULT.
2987
2988 PR target/48897
2989 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2990 variable 's'.
2991
2992 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2993
2994 * combine.c (simplify_comparison): Abstract out parts into...
2995 (simplify_compare_const): ... new function.
2996 (try_combine): Generalize parallel arithmetic/compare combining
2997 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2998
2999 2011-05-08 Jan Hubicka <jh@suse.cz>
3000
3001 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3002 (cgraph_create_virtual_clone): Call hooks once virtual clone
3003 is finished.
3004 * cgraph.h (cgraph_clone_node): Update prototype.
3005 * ipa-cp.c (ipcp_estimate_growth): Use
3006 estimate_ipcp_clone_size_and_time.
3007 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3008 * lto-cgraph.c (input_node): Update.
3009 * ipa-inline.c (recursive_inlining): Update.
3010 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3011 (evaluate_conditions_for_known_args): Break out from ...
3012 (evaluate_conditions_for_edge): ... here.
3013 (evaluate_conditions_for_ipcp_clone): New function.
3014 (inline_node_duplication_hook): Update clone summary based
3015 on parameter map.
3016 (estimate_callee_size_and_time): Rename to ...
3017 (estimate_node_size_and_time): take NODE instead of EDGE;
3018 take POSSIBLE_TRUTHS as argument.
3019 (estimate_callee_size_and_time): Update.
3020 (estimate_ipcp_clone_size_and_time): New function.
3021 (do_estimate_edge_time): Update.
3022
3023 2011-05-08 Richard Guenther <rguenther@suse.de>
3024
3025 PR middle-end/48908
3026 PR middle-end/48905
3027 * expmed.c (expand_shift_1): Compute adjusted constant shift
3028 amount manually.
3029
3030 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3031
3032 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3033
3034 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3035
3036 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3037
3038 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3039
3040 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3041
3042 2011-05-07 Jan Hubicka <jh@suse.cz>
3043
3044 * ipa-inline-transform.c (inline_call): Account when program size
3045 decreases.
3046 * ipa-inline.c (relative_time_benefit): New function.
3047 (edge_badness): Reorganize to be power 2 based; fix thinko when
3048 computing badness for negative growth; update comments to match
3049 reality; better dumps.
3050
3051 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3052
3053 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3054 type to bool and adjust comment.
3055 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3056 (fold_mathfn_compare): Remove calls to global_bindings_p.
3057 (fold_inf_compare): Likewise.
3058 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3059 * c-tree.h (global_bindings_p): Adjust prototype.
3060 * c-decl.c (global_bindings_p): Return bool and simplify.
3061
3062 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3063
3064 PR tree-optimization/48837
3065 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3066 when accumulator transformation is performed.
3067
3068 2011-05-06 Jan Hubicka <jh@suse.cz>
3069
3070 * i386.h (ix86_tune_indices): Add
3071 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3072 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3073 * i386.c (initial_ix86_tune_features): Add
3074 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3075 (software_prefetching_beneficial_p): Remove predicate.
3076 (ix86_option_override_internal): Use new macro.
3077
3078 2011-05-06 Jan Hubicka <jh@suse.cz>
3079
3080 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3081
3082 2011-05-06 Jan Hubicka <jh@suse.cz>
3083
3084 * cgraph.c (cgraph_add_thunk): Create real function node instead
3085 of alias node; finalize it and mark needed/reachale; arrange visibility
3086 to be right and add it into the corresponding same comdat group list.
3087 (dump_cgraph_node): Dump thunks.
3088 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3089 cgraph_function_with_gimple_body_p,
3090 cgraph_first_function_with_gimple_body,
3091 cgraph_next_function_with_gimple_body): New functions.
3092 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3093 New macros.
3094 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3095 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3096 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3097 devirtualization when optimizing.
3098 (verify_cgraph_node): Verify thunks.
3099 (cgraph_analyze_function): Analyze thunks.
3100 (cgraph_mark_functions_to_output): Output thunks only in combination
3101 with function they are assigned to.
3102 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3103 alias into normal node.
3104 (assemble_thunks): New functoin.
3105 (cgraph_expand_function): Use it.
3106 * lto-cgraph.c (lto_output_node): Stream thunks.
3107 (input_overwrite_node): Stream in thunks.
3108 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3109 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3110 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3111 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3112 (inline_analyze_function): Do not care about thunk jump functions.
3113 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3114 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3115 cgraph_function_with_gimple_body_p.
3116 * passes.c (do_per_function_toporder): Use
3117 cgraph_function_with_gimple_body_p.
3118 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3119 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3120 (function_called_by_processed_nodes_p): Likewise.
3121
3122 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3123
3124 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3125 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3126 entries.
3127 (mabi=): Replace with separate entries for mabi=altivec,
3128 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3129 mabi=ieeelongdouble and mabi=ibmlongdouble.
3130 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3131 check for -mabi=spe without SPE ABI support here.
3132 (rs6000_handle_option): Replace OPT_mabi_ handling with
3133 OPT_mabi_altivec and OPT_mabi_spe handling.
3134
3135 2011-05-06 Cary Coutant <ccoutant@google.com>
3136
3137 * dwarf2out.c (contains_subprogram_definition): New function.
3138 (should_move_die_to_comdat): Call it.
3139
3140 2011-05-06 Jeff Law <law@redhat.com>
3141
3142 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3143 remove_ctrl_stmt_and_useless_edges.
3144 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3145 (fixup_template_block, thread_single_edge): Likewise.
3146 (mark_threaded_blocks): Use THREAD_TARGET.
3147
3148 2011-05-06 Alan Modra <amodra@gmail.com>
3149
3150 PR target/48900
3151 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3152 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3153
3154 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3155
3156 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3157 constraint modifier to "r".
3158
3159 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3160
3161 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3162 fall through for OPT_mcmodel_.
3163
3164 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3165
3166 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3167 instruction sizes.
3168 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3169
3170 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3171
3172 PR target/47930
3173 * config/arm/arm.opt (marm): Document it.
3174 (mthumb): Reject negative variant.
3175
3176 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3177
3178 PR target/48898
3179 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3180 Fix typo in "ccvt" variable name.
3181
3182 2011-05-06 Tristan Gingold <gingold@adacore.com>
3183
3184 PR target/48895
3185 * config/vms/vms-ar.c (main): Remove cwd variable.
3186
3187 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR debug/48902
3190 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3191
3192 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3193
3194 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3195 * gimplify.c (gimplify_switch_expr): Likewise.
3196 * omp-low.c (expand_omp_sections): Likewise.
3197 * tree-eh.c (lower_try_finally_switch): Likewise.
3198 (lower_eh_dispatch): Likewise.
3199 * tree.h (build_case_label): Declare.
3200 * tree.c (build_case_label): Define.
3201
3202 2011-05-05 Jason Merrill <jason@redhat.com>
3203
3204 PR c++/40975
3205 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3206 (copy_statement_list): Don't recurse.
3207 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3208 STATEMENT_LIST.
3209
3210 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3211
3212 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3213 through from -mfpu= handling.
3214 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3215
3216 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3217
3218 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3219 POST_MODIFY.
3220
3221 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3222
3223 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3224 for 11.31.
3225 (hppa[12]*-*-hpux11*): Ditto.
3226 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3227 * config/ia64/hpux-unix2003.h: New.
3228 * config/pa/pa-hpux1131.opt: New.
3229 * config/pa/pa-hpux1131.h: New.
3230 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3231 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3232 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3233
3234 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3235
3236 PR debug/48853
3237 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3238 instead of mode as 3rd argument to recursive call.
3239 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3240 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3241 VOIDmode.
3242 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3243 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3244 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3245 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3246
3247 2011-05-05 Julian Brown <julian@codesourcery.com>
3248
3249 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3250 parenthesis in D-register case.
3251
3252 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3253
3254 * opt-functions.awk (var_type_struct): Handle Enum options.
3255 * optc-gen.awk: Don't check range of variables of character type.
3256 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3257 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3258 rs6000_sdata_name, rs6000_explicit_options): Remove.
3259 (rs6000_option_override_internal): Check for -malign-power here.
3260 Use global_options_set instead of rs6000_explicit_options.
3261 (rs6000_parse_fpu_option): Remove.
3262 (rs6000_handle_option): Access variables via opts and opts_set
3263 pointers. Use error_at and warning_at. Add fall-through
3264 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3265 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3266 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3267 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3268 here. Don't use rs6000_parse_fpu_option.
3269 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3270 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3271 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3272 (mrecip=): Use Var.
3273 (mspe): Use Var and Save.
3274 (mtraceback=): Use Enum and Var.
3275 (rs6000_traceback_type): New Enum and EnumValue entries.
3276 (mfloat-gprs=): Use Enum, Var and Save.
3277 (rs6000_float_gprs): New Enum and EnumValue entries.
3278 (mlong-double-): use Var and Save.
3279 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3280 (malign-): Use Enum and Var.
3281 (rs6000_alignment_flags): New Enum and EnumValue entries.
3282 (mfpu=): Use Enum.
3283 (fpu_type_t): New Enum and EnumValue entries.
3284 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3285 global_options_set instead of rs6000_explicit_options.
3286 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3287 global_options_set instead of rs6000_explicit_options.
3288 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3289 global_options_set instead of rs6000_explicit_options.
3290 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3291 global_options_set instead of rs6000_explicit_options.
3292 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3293 global_options_set instead of rs6000_explicit_options.
3294 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3295 global_options_set instead of rs6000_explicit_options.
3296 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3297 definition.
3298 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3299 global_options_set instead of rs6000_explicit_options.
3300 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3301 (rs6000_cmodel): New Enum and EnumValue entries.
3302 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3303 global_options_set instead of rs6000_explicit_options.
3304 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3305 (mtls-size=): Use Enum and Var.
3306 (rs6000_tls_size): New Enum and EnumValue entries.
3307
3308 2011-05-05 Michael Matz <matz@suse.de>
3309
3310 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3311 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3312 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3313 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3314 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3315 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3316 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3317 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3318 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3319 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3320 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3321 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3322 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3323 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3324 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3325 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3326
3327 2011-05-05 Richard Guenther <rguenther@suse.de>
3328
3329 * expmed.c (expand_variable_shift): Rename to ...
3330 (expand_shift_1): ... this. Take an expanded shift amount.
3331 For rotates recurse directly not building trees for the shift amount.
3332 (expand_variable_shift): Wrap around expand_shift_1.
3333 (expand_shift): Adjust.
3334
3335 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3336
3337 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3338
3339 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3340
3341 * tree.h (get_pending_sizes): Remove prototype.
3342 (put_pending_size): Likewise.
3343 (put_pending_sizes): Likewise.
3344 * stor-layout.c (pending_sizes): Delete.
3345 (get_pending_sizes): Likewise.
3346 (put_pending_size): Likewise.
3347 (put_pending_sizes): Likewise.
3348 (variable_size): Do not call put_pending_size and tidy up.
3349 * function.h (struct function): Remove dont_save_pending_sizes_p.
3350 * lto-streamer-in.c (input_function): Do not stream it.
3351 * lto-streamer-out.c (output_function): Likewise.
3352 * tree-inline.c (initialize_cfun): Do not copy it.
3353 * c-decl.c (store_parm_decls): Do not set it.
3354 * omp-low.c (create_task_copyfn): Likewise.
3355 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3356
3357 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3358
3359 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3360 conditions.
3361 (*movdf_internal): Ditto.
3362 (*movdf_internal_nointeger): Ditto.
3363 (*movsf_internal): Ditto.
3364
3365 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3366
3367 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3368 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3369 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3370 (c_variable_size): Remove.
3371 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3372 call put_pending_sizes.
3373 (get_parm_info): Add parameter expr. Use it to set
3374 arg_info->pending_sizes.
3375 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3376 get_pending_sizes.
3377 * c-parser.c (c_parser_parms_declarator): Update call to
3378 c_parser_parms_list_declarator.
3379 (c_parser_parms_list_declarator): Take parameter expr. Update
3380 call to push_parm_decl. Update recursive call. Don't call
3381 get_pending_sizes. Update calls to get_parm_info.
3382 (c_parser_objc_method_definition): Update calls to
3383 c_parser_objc_method_decl and objc_start_method_definition.
3384 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3385 (c_parser_objc_method_decl): Add parameter expr. Update call to
3386 grokparm.
3387 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3388 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3389 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3390
3391 2011-05-05 Michael Hope <michael.hope@linaro.org>
3392
3393 PR pch/45979
3394 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3395 __ARM_EABI__ hosts.
3396
3397 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3398
3399 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3400 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3401 (spu_output_mi_thunk): New function.
3402
3403 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3404
3405 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3406 targetm.asm_out.print_operand.
3407 * config/sol2.c: Include target.h.
3408
3409 2011-05-04 Jan Hubicka <jh@suse.cz>
3410
3411 * ipa-inline.c (reset_edge_caches): New function.
3412 (update_caller_keys): Add check_inlinablity_for; do not
3413 reset edge caches; remove now unnecesary loop.
3414 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3415 (update_all_callee_keys): Likewise.
3416 (inline_small_functions): Sanity check cache; update code
3417 recomputing it.
3418
3419 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3420
3421 PR rtl-optimization/47612
3422 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3423 as the last insn of the sequence to be moved.
3424
3425 2011-05-04 Tobias Burnus <burnus@net-b.de>
3426
3427 PR fortran/48864
3428 * doc/invoke.texi (Ofast): Document that it
3429 enables Fortran's -fno-protect-parens.
3430
3431 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3432
3433 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3434
3435 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3436
3437 * stor-layout.c (variable_size): Do not issue errors.
3438
3439 2011-05-04 Richard Guenther <rguenther@suse.de>
3440
3441 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3442 for array-ref indices.
3443 (tree_coverage_counter_addr): Likewise.
3444 (build_fn_info_type): Use size_int for index types.
3445 (build_gcov_info): Likewise.
3446
3447 2011-05-04 Richard Guenther <rguenther@suse.de>
3448
3449 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3450 to build_int_cst.
3451 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3452 for constructor indices.
3453 (push_init_level): Likewise.
3454
3455 2011-05-04 Richard Guenther <rguenther@suse.de>
3456
3457 * explow.c (promote_mode): Move variable declarations before code.
3458
3459 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3460
3461 * tree.h (build_function_type_array): Declare.
3462 (build_varargs_function_type_array): Declare.
3463 (build_function_type_vec, build_varargs_function_type_vec): Define.
3464 * tree.c (build_function_type_array_1): New function.
3465 (build_function_type_array): New function.
3466 (build_varargs_function_type_array): New function.
3467
3468 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3469
3470 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3471 before setting STMT_VINFO_TYPE.
3472
3473 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3474
3475 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3476 instead of spu_pass_by_reference.
3477
3478 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3479
3480 * calls.c (emit_library_call_value_1): Invoke
3481 promote_function_mode hook on libcall arguments.
3482 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3483 argument being NULL.
3484 * targhooks.c (default_promote_function_mode): Lisewise.
3485 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3486 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3487
3488 * doc/tm.texi: Document that TYPE argument might be NULL.
3489
3490 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3491
3492 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3493
3494 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3495
3496 From Bernd Schmidt
3497 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3498
3499 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3500
3501 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3502 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3503 Move ...
3504 * mips-tfile.c: ... here.
3505 Don't include coretypes.h, tm.h, filenames.h.
3506 (saber_stop): Remove definition and all calls.
3507 [__SABER__]: Remove.
3508 (__LINE__): Remove default.
3509 (Size_t, Ptrdiff_t): Remove definitions.
3510 Replace by size_t, ptrdiff_t.
3511 [!MIPS_DEBUGGING_INFO]: Remove.
3512 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3513 (progname): Add const.
3514 (STATIC): Remove.
3515 Replace all uses by static.
3516 (ALIGN_SYMTABLE_OFFSET): Remove default.
3517 * mips-tdump.c: Don't include coretypes.h, tm.h.
3518 Remove !MIPS_IS_STAB guard.
3519 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3520 $(TM_H), filenames.h dependencies.
3521 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3522
3523 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3524
3525 From Jie Zhang
3526 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3527 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3528
3529 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3530
3531 From Bernd Schmidt
3532 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3533 account and save/restore RETS.
3534 (PROFILE_BEFORE_PROLOGUE): Define.
3535 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3536 the push insn to use predecrement.
3537
3538 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3539
3540 From Jie Zhang
3541 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3542
3543 2011-05-04 Nick Clifton <nickc@redhat.com>
3544
3545 * config/mn10300/mn10300.c: Include cfgloop.h.
3546 (DUMP): New macro.
3547 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3548 Lcc or a FLcc insn into the instruction stream.
3549 (mn10300_block_contains_call): New function. Returns true if the
3550 given basic block contains a CALL insn.
3551 (mn10300_loop_contains_call_insn): New function. Returns true if
3552 the given loop contains a CALL insn.
3553 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3554 to use the SETLB and Lcc or FLcc insns.
3555 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3556 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3557 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3558 disable the SETLB optimization.
3559 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3560 __SETLB__ or __NO_SETLB__.
3561 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3562 (movsf_internal): Handle MDR register.
3563 (cmpsi): Make visible.
3564 (setlb): New pattern.
3565 (Lcc): New pattern.
3566 (FLcc): New pattern.
3567
3568 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3569
3570 PR target/48860
3571 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3572 for reg<->xmm moves.
3573 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3574 (vec_concatv2di_rex64_sse): Ditto.
3575 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3576 (*vec_extractv2di_1_rex64): Ditto.
3577
3578 Revert:
3579 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3580
3581 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3582 reg<->xmm moves.
3583 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3584
3585 2011-05-04 Richard Guenther <rguenther@suse.de>
3586
3587 * tree.h (int_const_binop): Remove notrunc argument.
3588 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3589 create integer constants that are properly truncated.
3590 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3591 (const_binop): Remove zero notrunc argument to int_const_binop.
3592 (size_binop_loc): Likewise.
3593 (fold_div_compare): Likewise.
3594 (maybe_canonicalize_comparison_1): Likewise.
3595 (fold_comparison): Likewise.
3596 (fold_binary_loc): Likewise.
3597 (multiple_of_p): Likewise.
3598 * expr.c (store_constructor): Likewise.
3599 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3600 (maybe_fold_stmt_addition): Likewise.
3601 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3602 * stor-layout.c (layout_type): Likewise.
3603 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3604 * tree-sra.c (build_ref_for_offset): Likewise.
3605 (build_user_friendly_ref_for_offset): Likewise.
3606 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3607 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3608 * tree-ssa-loop-niter.c (inverse): Likewise.
3609 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3610 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3611 * tree-switch-conversion.c (check_range): Likewise.
3612 (build_constructors): Likewise.
3613 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3614 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3615 (extract_range_from_assert): Likewise.
3616 (vrp_int_const_binop): Likewise.
3617 (extract_range_from_binary_expr): Likewise.
3618 (extract_range_from_unary_expr): Likewise.
3619 (check_array_ref): Likewise.
3620 (find_case_label_range): Likewise.
3621 (simplify_div_or_mod_using_ranges): Likewise.
3622 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3623 comparing case labels for merging.
3624
3625 2011-05-03 Mark Wielaard <mjw@redhat.com>
3626
3627 * dwarf2out.c (debug_str_hash_forced): Removed.
3628 (gen_label_for_indirect_string): Removed.
3629 (get_debug_string_label): Removed.
3630 (AT_string_form): Generate label directly.
3631 (output_indirect_string): Test indirect_string_node for
3632 DW_FORM_strp instead of checking label and refcount.
3633 (prune_indirect_string): Removed.
3634 (prune_unused_types): Don't check debug_str_hash_forced or
3635 call prune_indirect_string.
3636
3637 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3638
3639 PR other/48093
3640 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3641
3642 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3643
3644 PR debug/47994
3645 PR debug/47919
3646 * combine.c (try_combine): Skip debug insns at m_split tests.
3647
3648 2011-04-26 Mark Wielaard <mjw@redhat.com>
3649
3650 PR42288
3651 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3652 when info_section_emitted.
3653
3654 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3655
3656 * config/mips/mips-opts.h: New.
3657 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3658 to mips-opts.h.
3659 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3660 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3661 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3662 via opts pointer.
3663 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3664 mips-opts.h.
3665 (mips_abi, mips_code_readable): Don't declare.
3666 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3667 (mabi=): Use Enum and Var.
3668 (mips_abi): New Enum and EnumValue entries.
3669 (mcode-readable=): Use Enum and Var.
3670 (mips_code_readable_setting): New Enum and EnumValue entries.
3671 (mr10k-cache-barrier=): Use Enum and Var.
3672 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3673
3674 2011-05-03 Jan Hubicka <jh@suse.cz>
3675
3676 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3677 replace hash by pointer map.
3678 (cgraph_node_set_element_def, cgraph_node_set_element,
3679 const_cgraph_node_set_element, varpool_node_set_element_def,
3680 varpool_node_set_element, const_varpool_node_set_element): Remove.
3681 (free_cgraph_node_set, free_varpool_node_set): New function.
3682 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3683 * tree-emutls.c: Free varpool node set.
3684 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3685 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3686 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3687 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3688 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3689 Move here from ipa.c; implement using pointer_map
3690 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3691 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3692 debug_cgraph_node_set, varpool_node_set_new,
3693 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3694 dump_varpool_node_set, debug_varpool_node_set):
3695 Move to ipa-uitls.c.
3696 * passes.c (ipa_write_summaries): Update.
3697
3698 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3699
3700 From Mike Frysinger:
3701 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3702 bf542/bf544/bf547/bf548/bf549.
3703
3704 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3705
3706 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3707
3708 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3709
3710 From Bernd Schmidt:
3711 * config/bfin/bfin.md (MOVCC): New mode_macro.
3712 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3713 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3714 comments from generated assembly.
3715
3716 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3717
3718 From Bernd Schmidt
3719 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3720 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3721 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3722 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3723 * config/bfin/lib1funcs.asm (___muldi3): New function.
3724
3725 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3726
3727 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3728 build_function_type_list instead of build_function_type.
3729 Rearrange initialization of `args' to do so.
3730
3731 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3732
3733 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3734 instead of build_function_type.
3735
3736 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3737
3738 * config/rs6000/rs6000.c (spe_init_builtins): Call
3739 build_function_type_list instead of build_function_type.
3740 (paired_init_builtins, altivec_init_builtins): Likewise.
3741 (builtin_function_type): Likewise.
3742
3743 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3744
3745 * config/sh/sh.c (sh_media_init_builtins): Call
3746 build_function_type_list instead of build_function_type.
3747
3748 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3749
3750 * config/sparc/sparc.c (sparc_file_end): Call
3751 build_function_type_list instead of build_function_type.
3752
3753 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3754
3755 * config/alpha/alpha.c (alpha_init_builtins): Call
3756 build_function_type_list instead of build_function_type.
3757
3758 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3759
3760 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3761 build_function_type_list instead of build_function_type.
3762
3763 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3764
3765 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3766 build_function_type_list instead of build_function_type.
3767 Delete `endlink' variable.
3768
3769 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3770
3771 * config/avr/avr.c (avr_init_builtins): Call
3772 build_function_type_list instead of build_function_type.
3773
3774 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3775
3776 * config/picochip/picochip.c (picochip_init_builtins): Call
3777 build_function_type_list instead of build_function_type.
3778 Delete `endlink' variable.
3779
3780 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3781
3782 * config/bfin/bfin.c (bfin_init_builtins): Call
3783 build_function_type_list instead of build_function_type.
3784
3785 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3786
3787 From Bernd Schmidt
3788 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3789 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3790
3791 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3792
3793 From Jie Zhang:
3794 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3795 libbffastfp overrides libgcc when -mfast-fp.
3796
3797 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3798
3799 Originally from Bernd Schmidt
3800 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3801 * config/bfin/bfin.c (override_options): Test it and error if
3802 TARGET_FDPIC.
3803
3804 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3805
3806 Originally From Bernd Schmidt
3807 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3808 FD-PIC.
3809
3810 2011-05-03 Jeff Law <law@redhat.com>
3811
3812 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3813 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3814 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3815 than accessing AUX field directly. Free the AUX field before
3816 clearing it.
3817 (thread_block, thread_through_loop_header): Likewise.
3818 (thread_single_edge, mark_threaded_blocks): Likewise.
3819 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3820 (register_jump_thread): Do not attempt to thread to a NULL edge.
3821
3822 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3823
3824 * function.c (init_function_start): Call decide_function_section.
3825 * varasm.c (decide_function_section): New function.
3826 (assemble_start_function): When not using
3827 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3828 or first_function_block_is_cold.
3829 * rtl.h (decide_function_section): Declare.
3830
3831 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3832 Jakub Jelinek <jakub@redhat.com>
3833
3834 PR target/48774
3835 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3836 only succeed if req_mode is the same as set_mode.
3837
3838 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3839
3840 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3841 * genemit.c (gen_exp): Handle RETURN.
3842 * emit-rtl.c (verify_rtx_sharing): Likewise.
3843 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3844 * rtl.c (copy_rtx): RETURN is shared.
3845 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3846 (ret_rtx): New.
3847 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3848 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3849 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3850 * config/cris/cris.c (cris_expand_return): Likewise.
3851 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3852 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3853 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3854 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3855 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3856 Likewise.
3857 * config/v850/v850.c (expand_epilogue): Likewise.
3858 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3859 * config/arm/arm.md (epilogue): Likewise.
3860 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3861 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3862 variable to ret_reg.
3863
3864 2011-05-03 Richard Guenther <rguenther@suse.de>
3865
3866 PR lto/48846
3867 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3868 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3869 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3870
3871 2011-05-03 Richard Guenther <rguenther@suse.de>
3872
3873 * c-decl.c (grokdeclarator): Instead of looking at
3874 TREE_OVERFLOW check if the constant fits in the index type.
3875
3876 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3877
3878 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3879 (vec_store_lanes<mode><mode>): Likewise.
3880
3881 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3882
3883 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3884 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3885 convert_optab_index values.
3886 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3887 * genopinit.c (optabs): Initialize the new optabs.
3888 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3889 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3890 (expand_STORE_LANES): New functions.
3891 * tree.h (build_array_type_nelts): Declare.
3892 * tree.c (build_array_type_nelts): New function.
3893 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3894 (vect_model_load_cost): Likewise.
3895 (vect_store_lanes_supported, vect_load_lanes_supported)
3896 (vect_record_strided_load_vectors): Declare.
3897 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3898 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3899 (vect_transform_strided_load): Split out statement recording into...
3900 (vect_record_strided_load_vectors): ...this new function.
3901 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3902 (write_vector_array, create_array_ref): New functions.
3903 (vect_model_store_cost): Add store_lanes_p argument.
3904 (vect_model_load_cost): Add load_lanes_p argument.
3905 (vectorizable_store): Try to use store-lanes functions for
3906 interleaved stores.
3907 (vectorizable_load): Likewise load-lanes and loads.
3908 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3909 to vect_model_store_cost.
3910 (vect_build_slp_tree): Likewise vect_model_load_cost.
3911
3912 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3913
3914 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3915 * hooks.c (hook_bool_mode_uhwi_false): New function.
3916 * target.def (array_mode_supported_p): New hook.
3917 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3918 * doc/tm.texi: Regenerate.
3919 * stor-layout.c (mode_for_array): New function.
3920 (layout_type): Use it.
3921 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3922 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3923
3924 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3925
3926 PR target/48723
3927 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3928 for -fstack-check if the size to allocate is negative.
3929
3930 2011-05-02 Lawrence Crowl <crowl@google.com>
3931
3932 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3933 (timevar_cond_start): New for starting a timer only when it is not
3934 already running.
3935 (timevar_cond_stop): New for stopping a timer when it was not already
3936 running.
3937
3938 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3939 (timevar_cond_start): New as above.
3940 (timevar_cond_stop): New as above.
3941
3942 * timevar.def: Add start/stop timers for compiler phases,
3943 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3944 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3945 and TV_PHASE_FINALIZE.
3946 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3947 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3948 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3949 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3950 Make unused TV_OVERLOAD into a start/stop timer.
3951
3952 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3953 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3954 to indicate that they are start/stop timers.
3955
3956 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3957 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3958 Move initialization to do_compile.
3959 (do_compile): Add initialization from above.
3960 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3961
3962 * c-decl.c (c_write_global_declarations): Add start/stop of
3963 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3964
3965 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3966 or TV_PARSE_INLINE, as appropriate.
3967 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3968 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3969
3970 2011-05-02 Jason Merrill <jason@redhat.com>
3971
3972 PR c++/40975
3973 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3974
3975 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3976
3977 PR c/35445
3978 * c-decl.c (finish_decl): Only create a composite if the types are
3979 compatible.
3980
3981 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3982
3983 * config/fr30/fr30-protos.h (Mmode): Don't define.
3984 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3985 definition where used.
3986 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3987 define. Expand definitions where used.
3988 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3989 Expand definitions where used.
3990 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3991 rx_function_arg, rx_function_arg_advance,
3992 rx_function_arg_boundary): Expand definitions of those macros.
3993 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3994 definition where used.
3995
3996 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3997
3998 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3999 reg<->xmm moves.
4000 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4001 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4002 with *movv2sf_internal_rex64_avx.
4003 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4004 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4005 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4006 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4007 "vex" in "prefix" attribute calculation.
4008 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4009
4010 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4011
4012 PR target/47951
4013 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4014 inputs match the output.
4015
4016 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4017
4018 PR target/47955
4019 * config/m68k/m68k.c (m68k_expand_prologue): Set
4020 current_function_static_stack_size.
4021
4022 2011-05-02 Jan Hubicka <jh@suse.cz>
4023
4024 * lto-streamer.c (lto_streamer_cache_insert_1,
4025 lto_streamer_cache_lookup, lto_streamer_cache_create,
4026 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4027 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4028
4029 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4030
4031 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4032 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4033 config/m68k/t-opts: New files.
4034 * config/m68k/m68k-tables.opt: New file (generated).
4035 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4036 extra_options and m68k/t-opts to tmake_file.
4037 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4038 (all_isas): Initialize using m68k-isas.def.
4039 (all_microarchs): Initialize using m68k-microarchs.def.
4040 (m68k_find_selection): Remove.
4041 (m68k_handle_option): Don't assert that global structures are in
4042 use. Use error_at. Access variables via opts pointer. Don't
4043 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4044 directly for -m68020-40 and -m68020-60.
4045 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4046 m68k_tune_entry here.
4047 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4048 to m68k-opts.h.
4049 (m68k_library_id_string): Remove declaration.
4050 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4051 (m68k_library_id_string): New Variable.
4052 (march=, mcpu=, mtune=): Use Enum and Var.
4053
4054 2011-05-02 Richard Guenther <rguenther@suse.de>
4055
4056 * varasm.c (output_constructor_regular_field): Compute zero-based
4057 index with double-ints. Make sure to ICE instead of producing
4058 wrong code.
4059 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4060 in asserts. Properly use a signed type.
4061
4062 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4063
4064 * config/i386/sse.md (V): New mode iterator.
4065 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4066 TARGET_SSE2.
4067 (V_256): Rename from AVX256MODE.
4068 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4069 condition to all users.
4070 (VF1): Ditto.
4071 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4072 condition to all users.
4073 (VF_128): Make V4SF mode unconditional.
4074 (VF_256): Rename from AVX256MODEF2P.
4075 (VI4F_128): Rename from SSEMODE4S.
4076 (VI8F_128): Rename from SSEMODE2D.
4077 (VI4F_256): Rename from AVX256MODE8P.
4078 (VI8F_256): Rename from AVX256MODE4P.
4079 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4080 (ssescalarmodesuffix): Remove SF and DF modes.
4081 (SSEMODE124): Remove.
4082 (SSEMODE1248): Ditto.
4083 (SSEMODEF2P): Ditto.
4084 (AVXMODEF2P): Ditto.
4085 (AVXMODEFDP): Ditto.
4086 (AVXMODEFSP): Ditto.
4087 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4088 unconditional.
4089 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4090 unconditional.
4091 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4092 xop_pcmov_<mode>256. Use V mode iterator.
4093
4094 Adjust RTX patterns globally for renamed mode attributes.
4095
4096 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4097
4098 * haifa-sched.c (sched_emit_insn): Emit insn before first
4099 non-scheduled insn. Inform back-end about new insn. Add
4100 new insn to scheduled_insns list.
4101
4102 2011-05-02 Richard Guenther <rguenther@suse.de>
4103
4104 PR tree-optimization/48822
4105 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4106 (process_scc): Indicate which iteration we start.
4107
4108 2011-05-02 Jan Hubicka <jh@suse.cz>
4109
4110 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4111 (lto_section_overrun): New.
4112 * lto-section-out.c (append_block): Rename to ...
4113 (lto_append_block): ... this one; export.
4114 (lto_output_1_stream): Move lto lto-streamer.h
4115 (lto_output_data_stream): Update.
4116 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4117 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4118 functions.
4119
4120 2011-05-02 Richard Guenther <rguenther@suse.de>
4121
4122 * tree.c (tree_code_counts): New global array.
4123 (record_node_allocation_statistics): Count individual tree codes.
4124 (dump_tree_statistics): Dump individual code stats.
4125
4126 2011-05-01 Jan Hubicka <jh@suse.cz>
4127
4128 * ipa-inline.c (caller_growth_limits): Fix thinko when
4129 looking for largest stack frame.
4130 * ipa-inline.h (dump_inline_summary): Declare.
4131 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4132 on stack usage.
4133 (dump_inline_summary): Export.
4134 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4135
4136 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4137
4138 * reginfo.c (memory_move_cost): Change rclass argument type form
4139 'enum reg_class' to reg_class_t.
4140 * reload.h (memory_move_cost): Update prototype.
4141 * postreload.c reload_cse_simplify_set): Change type dclass var to
4142 reg_class_t.
4143 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4144 Update prototype.
4145 (ira_allocate_and_set_costs): Change aclass argument type form
4146 'enum reg_class' to reg_class_t.
4147 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4148 Change aclass argument type to reg_class_t.
4149 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4150 to reg_class_t.
4151 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4152 memory_move_cost call.
4153
4154 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4155 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4156 Change type tmp var to reg_class_t.
4157
4158 2011-04-30 Jan Hubicka <jh@suse.cz>
4159
4160 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4161 inlining into function with flatten attribute.
4162 (want_inline_small_function_p): Be more realistic about inlining
4163 cold calls where callee size grows.
4164
4165 2011-04-30 Jan Hubicka <jh@suse.cz>
4166
4167 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4168 flags.
4169
4170 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4171
4172 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4173 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4174 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4175 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4176 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4177 (print_operand): Rename to...
4178 (sparc_print_operand): ...this. Make static. Adjust
4179 sparc_print_operand function call.
4180 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4181 functions.
4182
4183 2011-04-30 Jan Hubicka <jh@suse.cz>
4184
4185 PR middle-end/48752
4186 * ipa-inline.c (early_inliner): Disable when doing late
4187 addition of function.
4188
4189 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4190
4191 * dwarf2out.c (get_address_mode): New inline.
4192 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4193 if not dwarf_strict emit
4194 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4195 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4196 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4197 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4198 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4199 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4200 mem_loc_descriptor callers.
4201 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4202 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4203 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4204 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4205 (base_types): New variable.
4206 (get_base_type_offset, calc_base_type_die_sizes,
4207 base_type_for_mode, mark_base_types, base_type_cmp,
4208 move_marked_base_types): New functions.
4209 (calc_die_sizes): Assert that die_offset is 0 or equal to
4210 next_die_offset.
4211 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4212 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4213 callers. If not dwarf_strict, call mem_loc_descriptor even for
4214 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4215 (gen_subprogram_die): Don't give up on call site parameters
4216 with non-integral or large integral modes. Adjust
4217 mem_loc_descriptor callers.
4218 (prune_unused_types): Call prune_unused_types_mark on base_types
4219 vector entries.
4220 (resolve_addr): Call mark_base_types.
4221 (dwarf2out_finish): Call move_marked_base_types.
4222
4223 PR tree-optimization/48809
4224 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4225 type.
4226 (gen_inbound_check): Don't compute index_expr - range_min in utype
4227 again, instead reuse SSA_NAME initialized in build_arrays.
4228 Remove two useless gsi_for_stmt calls.
4229
4230 2011-04-29 Jeff Law <law@redhat.com>
4231
4232 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4233
4234 2011-04-29 Martin Jambor <mjambor@suse.cz>
4235
4236 * cgraph.h (cgraph_postorder): Remove declaration.
4237 * ipa-utils.h (ipa_free_postorder_info): Declare.
4238 (ipa_reverse_postorder): Likewise.
4239 * cgraphunit.c: Include ipa-utils.h.
4240 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4241 * ipa-inline.c: Include ipa-utils.h.
4242 (ipa_inline): Update call to ipa_reverse_postorder.
4243 * ipa-pure-const.c (propagate_pure_const): Update call to
4244 ipa_reduced_postorder and ipa_print_order. Call
4245 ipa_free_postorder_info to clean up.
4246 (propagate_nothrow): Likewise.
4247 * ipa-reference.c (propagate): Removed a useless call to
4248 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4249 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4250 * ipa.c: Include ipa-utils.h.
4251 (ipa_profile): Update call to ipa_reverse_postorder.
4252 (cgraph_postorder): Moved to...
4253 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4254 (ipa_utils_print_order): Renamed to ipa_print_order.
4255 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4256 comments.
4257 (ipa_free_postorder_info): New function.
4258 * passes.c: Include ipa-utils.h.
4259 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4260 (ipa_write_summaries): Likewise.
4261 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4262 (cgraphunit.o): Likewise.
4263 (ipa.o): Likewise.
4264 (ipa-inline.o): Likewise.
4265
4266 2011-04-29 Jan Hubicka <jh@suse.cz>
4267
4268 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4269 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4270 * ipa-inline.h (clause_t): Turn into unsigned int.
4271 * ipa-inline-analysis.c (add_clause): Do more simplification.
4272 (and_predicates): Shortcut more cases.
4273 (predicates_equal_p): Move forward; check that clauses are properly
4274 ordered.
4275 (or_predicates): Shortcut more cases.
4276 (edge_execution_predicate): Rewrite as...
4277 (set_cond_stmt_execution_predicate): ... this function; handle
4278 __builtin_constant_p.
4279 (set_switch_stmt_execution_predicate): New .
4280 (compute_bb_predicates): New.
4281 (will_be_nonconstant_predicate): Update TODO.
4282 (estimate_function_body_sizes): Use compute_bb_predicates
4283 and free them later, always try to estimate if stmt is constant.
4284 (estimate_time_after_inlining, estimate_size_after_inlining):
4285 Gracefully handle optimized out edges.
4286 (read_predicate): Fix off by one error.
4287
4288 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4289
4290 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4291
4292 2011-04-27 Xinliang David Li <davidxl@google.com>
4293
4294 * tree-profile.c (init_ic_make_global_vars): Set
4295 tls attribute on ic vars.
4296 * coverage.c (coverage_end_function): Initialize
4297 function_list with zero.
4298
4299 2011-04-29 Richard Guenther <rguenther@suse.de>
4300
4301 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4302 for the type of the result.
4303 (fold_builtin_isascii): Likewise.
4304 (fold_builtin_toascii): Use integer_type_node where appropriate.
4305 (fold_builtin_logb): Likewise.
4306 (fold_builtin_frexp): Likewise.
4307 (fold_builtin_strstr): Likewise.
4308 (fold_builtin_strpbrk): Likewise.
4309 (fold_builtin_fputs): Likewise.
4310 (fold_builtin_sprintf): Likewise.
4311 (fold_builtin_snprintf): Likewise.
4312 (fold_builtin_printf): Likewise.
4313 (do_mpfr_remquo): Use a proper type for the assigned constant.
4314 (do_mpfr_lgamma_r): Likewise.
4315 * dwarf2out.c (resolve_one_addr): Use size_int.
4316 * except.c (init_eh): Likewise.
4317 (assign_filter_values): Use integer_type_node for filter values.
4318 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4319 indices.
4320 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4321 for EH region numbers.
4322 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4323 for the shift amount.
4324
4325 2011-04-29 Richard Guenther <rguenther@suse.de>
4326
4327 * expr.h (expand_shift): Rename to ...
4328 (expand_variable_shift): ... this.
4329 (expand_shift): Take a constant shift amount.
4330 * expmed.c (expand_shift): Rename to ...
4331 (expand_variable_shift): ... this.
4332 (expand_shift): New wrapper around expand_variable_shift.
4333 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4334 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4335 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4336 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4337 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4338 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4339 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4340 emit_store_flag_1, emit_store_flag): Likewise.
4341 * builtins.c (expand_builtin_signbit): Likewise.
4342 * calls.c (load_register_parameters): Likewise.
4343 * function.c (assign_parm_setup_block): Likewise.
4344 * lower-subreg.c (resolve_shift_zext): Likewise.
4345 * optabs.c (widen_bswap, expand_abs_nojump,
4346 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4347 * spu/spu.c (spu_expand_extv): Likewise.
4348 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4349
4350 2011-04-29 Richard Guenther <rguenther@suse.de>
4351
4352 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4353 for the remapped region number.
4354 * predict.c (build_predict_expr): Use integer_type_node for the
4355 predict kind.
4356 * fold-const.c (fold_binary_loc): Use integer_type_node for
4357 the shift amount. Use a proper type for the PLUS_EXPR operand.
4358
4359 2011-04-29 Michael Matz <matz@suse.de>
4360
4361 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4362 other trees that just builtins.
4363 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4364
4365 2011-04-29 Richard Guenther <rguenther@suse.de>
4366
4367 * tree-nested.c (get_trampoline_type): Use size_int.
4368 (get_nl_goto_field): Likewise.
4369 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4370 for all indexes.
4371 (lower_eh_constructs_2): Likewise.
4372 (lower_resx): Likewise.
4373 (lower_eh_dispatch): Likewise.
4374 * tree-mudflap.c (mf_build_string): Use size_int.
4375 (mudflap_register_call): Use integer_type_node for the flag.
4376 (mudflap_enqueue_constant): Use size_int.
4377 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4378 instead of rebuilding it.
4379
4380 2011-04-29 Richard Guenther <rguenther@suse.de>
4381
4382 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4383 Handle OBJ_TYPE_REF.
4384 (find_func_aliases_for_call): Use it more consistently.
4385
4386 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4387
4388 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4389 (rank_for_schedule): Use it.
4390 (schedule_block): Set it.
4391
4392 2011-04-28 David Li <davidxl@google.com>
4393
4394 * tree.c (crc32_string): Use crc32_byte.
4395 (crc32_byte): New function.
4396 * tree.h (crc32_byte): New function.
4397 * gcov.c (read_graph_file): Handle new cfg_cksum.
4398 (read_count_file): Ditto.
4399 * profile.c (instrument_values): Ditto.
4400 (get_exec_counts): Ditto.
4401 (read_profile_edge_counts): Ditto.
4402 (compute_branch_probabilities): Ditto.
4403 (compute_value_histograms): Ditto.
4404 (branch_prob): Ditto.
4405 (end_branch_prob): Ditto.
4406 * coverage.c (read_counts_file): Ditto.
4407 (get_coverage_counts): Ditto.
4408 (tree_coverage_counter_addr): Ditto.
4409 (coverage_checksum_string): Ditto.
4410 (coverage_begin_output): Ditto.
4411 (coverage_end_function): Ditto.
4412 (build_fn_info_type): Ditto.
4413 (build_fn_info_value): Ditto.
4414 * libgcov.c (gcov_exit): Ditto.
4415 * gcov-dump.c (tag_function): Ditto.
4416 (compute_checksum): Remove.
4417
4418 2011-04-29 Alan Modra <amodra@gmail.com>
4419
4420 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4421 unspec plus offset. Tidy macho code.
4422
4423 2011-04-29 Martin Jambor <mjambor@suse.cz>
4424
4425 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4426 node instead of a decl. Update all callers.
4427 * cgraph.h: Update declaration.
4428
4429 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4430
4431 PR tree-optimization/48765
4432 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4433 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4434 to indicate if loop aware SLP is being used. Scan the statements
4435 and update the vectorization factor according to the type of
4436 vectorization before statement analysis.
4437 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4438 pass it to vect_analyze_loop_operations.
4439 (vectorizable_reduction): Set number of copies to 1 in case of pure
4440 SLP statement.
4441 * tree-vect-stmts.c (vectorizable_conversion,
4442 vectorizable_assignment, vectorizable_shift,
4443 vectorizable_operation, vectorizable_type_demotion,
4444 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4445 Likewise.
4446 (vectorizable_condition): Move the check that it is not SLP
4447 vectorization before the number of copies check.
4448 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4449 to vectorize the loop using SLP.
4450
4451 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4452
4453 PR middle-end/48597
4454 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4455 inline asm.
4456
4457 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4458
4459 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4460 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4461 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4462 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4463 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4464 linux*.h headers.
4465 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4466 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4467 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4468 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4469 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4470 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4471 REG_NAME.
4472 * config/i386/linux.h (REG_NAME): Don't define.
4473 * config/i386/linux64.h (REG_NAME): Don't define.
4474 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4475 Undefine before defining.
4476
4477 2011-04-28 Jan Hubicka <jh@suse.cz>
4478
4479 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4480 nonconstant_names array.
4481 (estimate_function_body_sizes): Build nonconstant_names array; handle
4482 BUILT_IN_CONSTANT_P.
4483
4484 2011-04-28 Richard Guenther <rguenther@suse.de>
4485
4486 PR bootstrap/48804
4487 Revert
4488 2011-04-28 Richard Guenther <rguenther@suse.de>
4489
4490 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4491 as late as possible.
4492
4493 2011-04-28 Richard Guenther <rguenther@suse.de>
4494
4495 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4496 (debug_constraint): Do it here.
4497 (dump_constraints): And here.
4498 (rewrite_constraints): And here.
4499 (dump_constraint_edge): Remove.
4500 (dump_constraint_graph): Rewrite to produce DOT output.
4501 (solve_constraints): Build succ graph as late as possible.
4502 Dump constraint graphs before and after solving.
4503
4504 2011-04-28 Richard Guenther <rguenther@suse.de>
4505
4506 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4507 New function split out from ...
4508 (find_func_aliases): ... here. Call it.
4509 (find_func_aliases_for_call): Likewise.
4510
4511 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4512
4513 * internal-fn.h (internal_fn_name_array): Declare.
4514 (internal_fn_flags_array): Likewise.
4515
4516 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4517
4518 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4519 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4520 Move from sse.md.
4521 (ssemodefsuffix): Remove.
4522 (ssevecmodesuffix): New mode attribute.
4523 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4524 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4525 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4526 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4527 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4528 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4529 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4530 ssemodesuffix mode attribute.
4531 (float splitters): Use ssevecmodesuffix mode attribute.
4532 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4533 (sseinsmode): Rename from avxvecmode.
4534 (avxsizesuffix): Rename from avxmodesuffix.
4535 (sseintvecmode): Rename from avxpermvecmode.
4536 (ssedoublevecmode): Rename from ssedoublesizemode.
4537 (ssehalfvecmode): Rename from avxhalfvecmode.
4538 (ssescalarmode): Rename from avxscalarmode.
4539 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4540 templates for ssemodesuffix mode attribute.
4541 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4542 mode attribute.
4543
4544 Adjust RTX patterns globally for renamed mode attributes.
4545
4546 2011-04-27 Jan Hubcika <jh@suse.cz>
4547
4548 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4549 * ipa-inline-analysis.c: Include alloc-pool.h.
4550 (edge_predicate_pool): New.
4551 (trye_predicate_p): New function
4552 (false_predicate_p): New function.
4553 (add_clause): Sanity check that false clauses are "optimized";
4554 never add clauses to predicate that is already known to be false.
4555 (and_predicate): Use flase_predicate_p.
4556 (evaulate_predicate): Rename to ...
4557 (evaluate_predicate): ... this one; update all callers; assert
4558 that false is not listed among possible truths.
4559 (dump_predicate): Use true_predicate_p.
4560 (account_size_time): Use false_predicate_p.
4561 (evaulate_conditions_for_edge): Rename to ...
4562 (evaluate_conditions_for_edge) ... this one.
4563 (edge_set_predicate): New function.
4564 (inline_edge_duplication_hook): Duplicate edge predicates.
4565 (inline_edge_removal_hook): Free edge predicates.
4566 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4567 (dump_inline_summary): Update.
4568 (estimate_function_body_sizes): Set edge predicates.
4569 (estimate_calls_size_and_time): Handle predicates.
4570 (estimate_callee_size_and_time): Update.
4571 (remap_predicate): Add toplev_predicate; update comment.
4572 (remap_edge_predicates): New function.
4573 (inline_merge_summary): Compute toplev predicate; update.
4574 (read_predicate): New function.
4575 (read_inline_edge_summary): Use it.
4576 (inline_read_section): Likewise.
4577 (write_predicate): New function.
4578 (write_inline_edge_summary): Use it.
4579 (inline_write_summary): Likewise.
4580 (inline_free_summary): Free alloc pool and edge summary vec.
4581
4582 2011-04-27 Richard Guenther <rguenther@suse.de>
4583
4584 * tree-ssa-structalias.c (changed_count): Remove.
4585 (changed): Use a bitmap.
4586 (unify_nodes): Adjust.
4587 (do_sd_constraint): Likewise.
4588 (do_ds_constraint): Likewise.
4589 (do_complex_constraint): Likewise.
4590 (solve_graph): Likewise.
4591
4592 2011-04-27 Jan Hubicka <jh@suse.cz>
4593
4594 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4595
4596 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4597
4598 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4599 (avx_vperm2f128_*_operand): Ditto.
4600 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4601 Use avx_vpermilp_parallel in insn condition.
4602 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4603 Use avx_vperm2f128_parallel in insn condition.
4604
4605 2011-04-27 Richard Guenther <rguenther@suse.de>
4606
4607 * Makefile.in (tree-ssa-structalias.o): Remove
4608 gt-tree-ssa-structalias.h dependency.
4609 (GTFILES): Remove tree-ssa-structalias.c.
4610 * tree.c (allocate_decl_uid): New function.
4611 (make_node_stat): Use it.
4612 (copy_node_stat): Likewise.
4613 * tree.h (allocate_decl_uid): Declare.
4614 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4615 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4616 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4617 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4618 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4619 (struct heapvar_map): Likewise.
4620 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4621 heapvar_insert): Likewise.
4622 (make_heapvar_for): Rename to ...
4623 (make_heapvar): ... this. Simplify.
4624 (fake_var_decl_obstack): New global var.
4625 (build_fake_var_decl): New function.
4626 (make_constraint_from_heapvar): Adjust.
4627 (handle_lhs_call): Likewise.
4628 (create_function_info_for): Likewise.
4629 (intra_create_variable_infos): Likewise.
4630 (init_alias_vars): Allocate fake_var_decl_obstack.
4631 (init_alias_heapvars, delete_alias_heapvars): Remove.
4632 (compute_points_to_sets): Do not call init_alias_heapvars.
4633 (ipa_pta_execute): Likewise.
4634 (delete_points_to_sets): Free fake_var_decl_obstack.
4635
4636 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4637
4638 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4639 (si_from_UTItype, si_to_UTItype): New functions.
4640 (__udivmodti4): Use them to implement type-punning.
4641 * config/spu/multi3.c (union qword_TItype): New data type.
4642 (si_from_TItype, si_to_TItype): New functions.
4643 (__multi3): Use them to implement type-punning.
4644
4645 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4646
4647 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4648
4649 2011-04-27 Jan Hubicka <jh@suse.cz>
4650
4651 * ipa-prop.c (function_insertion_hook_holder): New holder.
4652 (ipa_add_new_function): New function.
4653 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4654 Register/deregister holder.
4655
4656 2011-04-27 Richard Guenther <rguenther@suse.de>
4657
4658 PR tree-optimization/48772
4659 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4660
4661 2011-04-27 Richard Guenther <rguenther@suse.de>
4662
4663 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4664 TARGET_MEM_REF handling.
4665
4666 2011-04-27 Nick Clifton <nickc@redhat.com>
4667
4668 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4669 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4670 (REG_CLASS_NAMES): Likewise.
4671 (REG_CLASS_CONTENTS): Likewise.
4672 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4673 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4674 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4675 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4676 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4677 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4678 duplicate register classes.
4679 (frv_class_likely_spilled_p): Likewise.
4680 (frv_register_move_cost): Likewise.
4681
4682 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4683 end of the regno_reg_class array.
4684
4685 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4686
4687 PR c/48742
4688 * c-typeck.c (build_binary_op): Don't wrap arguments if
4689 int_operands is true.
4690
4691 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4692
4693 PR target/48767
4694 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4695 targetm.calls.must_pass_in_stack for void type.
4696
4697 2011-04-26 Jan Hubicka <jh@suse.cz>
4698
4699 * cgraphbuild.c (build_cgraph_edges): Update call
4700 of cgraph_create_edge and cgraph_create_indirect_edge.
4701 * cgraph.c (cgraph_create_edge_including_clones,
4702 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4703 cgraph_update_edges_for_call_stmt_node): Do not take nest
4704 argument; do not initialize call_stmt_size/time.
4705 (dump_cgraph_node): Do not dump nest.
4706 (cgraph_clone_edge): Do not take loop_nest argument;
4707 do not propagate it; do not clone call_stmt_size/time.
4708 (cgraph_clone_node): Likewise.
4709 (cgraph_create_virtual_clone): Update.
4710 * cgraph.h (struct cgraph_edge): Remove
4711 call_stmt_size/call_stmt_time/loop_nest.
4712 (cgraph_create_edge, cgraph_create_indirect_edge,
4713 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4714 prototype.
4715 * tree-emutls.c (gen_emutls_addr): Update.
4716 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4717 loop_nest; handle indirect calls, too.
4718 (clone_inlined_nodes): Do not care about updating inline summaries.
4719 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4720 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4721 stream call_stmt_size/call_stmt_time/loop_nest.
4722 * ipa-inline.c (edge_badness): Update.
4723 (ipa_inline): dump summaries after inlining.
4724 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4725 New.
4726 (inline_edge_summary): New function.
4727 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4728 (inline_edge_removal_hook): Handle edge summaries.
4729 (inline_edge_duplication_hook): New hook.
4730 (inline_summary_alloc): Alloc hooks.
4731 (initialize_growth_caches): Do not register removal hooks.
4732 (free_growth_caches); Do not free removal hook.
4733 (dump_inline_edge_summary): New function.
4734 (dump_inline_summary): Use it.
4735 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4736 (inline_update_callee_summaries): New function.
4737 (inline_merge_summary): Use it.
4738 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4739 (read_inline_edge_summary): New function.
4740 (inline_read_section): Use it.
4741 (write_inline_edge_summary): New function.
4742 (inline_write_summary): Use it.
4743 (inline_free_summary): Free edge new holders.
4744 * tree-inline.c (copy_bb): Update.
4745
4746 2011-04-26 Jason Merrill <jason@redhat.com>
4747
4748 * tree-eh.c (lower_try_finally_switch): Create the label along with
4749 the CASE_LABEL_EXPR.
4750
4751 2011-04-26 David S. Miller <davem@davemloft.net>
4752 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4753
4754 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4755 * configure: Regenerate.
4756
4757 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4758
4759 PR target/48258
4760 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4761 reduction.
4762 (VEC_reduc): New code iterator and splitters for vector reduction.
4763 (VEC_reduc_name): Ditto.
4764 (VEC_reduc_rtx): Ditto.
4765 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4766 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4767
4768 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4769 support for extracting SF on VSX.
4770
4771 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4772 generating xscvspdp.
4773 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4774 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4775 double add, minimum, maximum vector reduction.
4776 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4777 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4778 optimize double vector reduction.
4779 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4780
4781 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4782
4783 * config/fr30/fr30.h (inhibit_libc): Don't define.
4784 * config/m32r/m32r-protos.h: Correct comment.
4785 * config/v850/v850.h (GHS_default_section_names,
4786 GHS_current_section_names): Use tree, not union tree_node *.
4787
4788 2011-04-26 Xinliang David Li <davidxl@google.com>
4789
4790 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4791 * c-family/c-opts.c (c_common_handle_option): Set
4792 warn_maybe_uninitialized.
4793 * opts.c (common_handle_option): Ditto.
4794 * common.opt: New option.
4795 * tree-ssa.c (warn_uninit): Add one more parameter.
4796 (warn_uninitialized_var): Pass warning code.
4797 * tree-flow.h: Interface change.
4798
4799 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4800
4801 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4802 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4803 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4804
4805 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4806
4807 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4808 * config/mips/mips.opt (mmips-tfile): Remove.
4809
4810 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4811 mips-tdump reference to ...
4812 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4813 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4814 reference by Tru64 UNIX.
4815
4816 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4817
4818 PR debug/48768
4819 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4820 is error_mark_node, set value to NULL.
4821
4822 PR tree-optimization/48734
4823 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4824 if return value from maybe_fold_*_comparsions isn't something
4825 the code is prepared to handle.
4826
4827 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4828
4829 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4830 mode check.
4831 (ext_QIreg_nomode_operands): Remove.
4832 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4833 (*andsi_1): Ditto.
4834 (*andhi_1): Ditto.
4835
4836 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4837
4838 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4839
4840 2011-04-26 Richard Guenther <rguenther@suse.de>
4841
4842 * c-typeck.c (build_unary_op): Do not expand array-refs via
4843 pointer arithmetic. Only adjust qualifiers for function types.
4844
4845 2011-04-26 Richard Guenther <rguenther@suse.de>
4846
4847 PR middle-end/48694
4848 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4849 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4850 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4851 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4852
4853 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4854
4855 * doc/extend.texi: Document __underlying_type.
4856
4857 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4858
4859 * config/rs6000/titan.md (automata_option "progress"): Remove.
4860
4861 2011-04-25 Jeff Law <law@redhat.com>
4862
4863 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4864
4865 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4866
4867 * system.h (ENUM_BITFIELD): Remove.
4868
4869 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4870 Eric Botcazou <ebotcazou@adacore.com>
4871
4872 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4873 for STORE_FLAG_VALUE==-1 case.
4874
4875 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4876
4877 PR target/43804
4878 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4879 LEGITIMATE_PIC_OPERAND_P.
4880
4881 2011-04-24 Jan Hubicka <jh@suse.cz>
4882
4883 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4884 WPA hack.
4885 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4886 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4887 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4888 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4889 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4890 Sanity check predicate length.
4891 (remap_predicate): Likewise; sanity check jump functions.
4892 (inline_read_section, inline_write_summary): Sanity check
4893 predicate length.
4894
4895 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4896
4897 PR other/48748
4898 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4899 __is_literal_type, and __is_trivial; update throughout about
4900 possibly cv-qualified void types.
4901
4902 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4903
4904 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4905 testsuite and make it version agnostic.
4906
4907 2011-04-22 Jan Hubicka <jh@suse.cz>
4908
4909 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4910
4911 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4912
4913 PR c/48685
4914 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4915 to VOID_TYPE even around MODIFY_EXPR.
4916
4917 2011-04-22 Mike Stump <mikestump@comcast.net>
4918
4919 * gensupport.c (read_md_rtx): Fix typo in comment.
4920 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4921 comment.
4922
4923 2011-04-22 Jan Hubicka <jh@suse.cz>
4924
4925 * gengtype.c (open_base_files): Add ipa-inline.h include.
4926 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4927 ipa-prop.c; update all uses.
4928 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4929 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4930 merge summary of inlined function into former caller.
4931 * ipa-inline.c (max_benefit): Remove.
4932 (edge_badness): Compensate for removal of benefits.
4933 (update_caller_keys): Use
4934 reset_node_growth_cache/reset_edge_growth_cache.
4935 (update_callee_keys): Likewise.
4936 (update_all_callee_keys): Likewise.
4937 (inline_small_functions): Do not collect max_benefit; do not reset
4938 estimated_growth; call free_growth_caches and initialize_growth_caches.
4939 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4940 struct size_time_entry): New structures.
4941 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4942 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4943 and estimated_growth.
4944 (edge_growth_cache_entry): New structure.
4945 (node_growth_cache, edge_growth_cache): New global vars.
4946 (estimate_growth): Turn into inline.
4947 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4948 initialize_growth_caches, free_growth_caches): Declare.
4949 (estimate_edge_growth): Rewrite.
4950 (estimate_edge_time): Implement as inline cache lookup.
4951 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4952 functions.
4953 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4954 (NUM_CONDITIONS): New constant.
4955 (predicate_conditions): New enum.
4956 (IS_NOT_CONSTANT): New constant.
4957 (edge_removal_hook_holder): New var.
4958 (node_growth_cache, edge_growth_cache): New global vars.
4959 (true_predicate, single_cond_predicate, false_predicate,
4960 not_inlined_predicate, add_condition, add_clause, and_predicates,
4961 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4962 dump_clause, dump_predicate, account_size_time,
4963 evaulate_conditions_for_edge): New functions.
4964 (inline_summary_alloc): Move to heap.
4965 (inline_node_removal_hook): Clear condition and entry vectors.
4966 (inline_edge_removal_hook): New function.
4967 (initialize_growth_caches, free_growth_caches): New function.
4968 (dump_inline_summary): Update.
4969 (edge_execution_predicate): New function.
4970 (will_be_nonconstant_predicate): New function.
4971 (estimate_function_body_sizes): Compute BB and constantness predicates.
4972 (compute_inline_parameters): Do not clear estimated_growth.
4973 (estimate_edge_size_and_time): New function.
4974 (estimate_calls_size_and_time): New function.
4975 (estimate_callee_size_and_time): New function.
4976 (remap_predicate): New function.
4977 (inline_merge_summary): New function.
4978 (do_estimate_edge_time): New function based on...
4979 (estimate_edge_time): ... this one.
4980 (do_estimate_edge_growth): New function.
4981 (do_estimate_growth): New function based on....
4982 (estimate_growth): ... this one.
4983 (inline_analyze_function): Analyze after deciding on jump functions.
4984 (inline_read_section): New function.
4985 (inline_read_summary): Use it.
4986 (inline_write_summary): Write all the new data.
4987 * ipa-prop.c (ipa_get_param_decl_index): Export.
4988 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4989 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4990 Declare.
4991 (ipa_get_lattice): Move here from ipa-cp.c
4992 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4993 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4994 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4995 cgraph_edge_inlinable_p): Remove.
4996 * cgraphunit.c: Include ipainline.h
4997 (cgraph_process_new_functions): Update call of
4998 compute_inline_parameters.
4999
5000 2011-04-22 Richard Guenther <rguenther@suse.de>
5001
5002 * tree.c (build_int_cst): Properly create canonicalized integer
5003 constants.
5004 (build_int_cst_type): Remove scary comments.
5005
5006 2011-04-22 Xinliang David Li <davidxl@google.com>
5007
5008 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5009 by default when -Wno-error is not specified.
5010 * opts-global.c (decode_options): Remove call to
5011 control_warning_options.
5012
5013 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5014
5015 PR tree-optimization/48717
5016 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5017 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5018
5019 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5020
5021 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5022 definition where used.
5023
5024 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5025
5026 PR c/48716
5027 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5028 TREE_STATIC variables declared inside of some OpenMP construct.
5029
5030 2011-04-22 Martin Jambor <mjambor@suse.cz>
5031
5032 PR middle-end/48585
5033 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5034
5035 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5036
5037 PR c/36750
5038 * c-typeck.c (pop_init_level): Do not warn about initializing
5039 with ` = {0}'.
5040
5041 2011-04-22 Alan Modra <amodra@gmail.com>
5042
5043 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5044 when returning call_cookie.
5045 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5046 pointers, to functions with no more vector args than the current
5047 function, and some non-local calls for ABI_V4.
5048 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5049 sibcall_nonlocal_aix64): Combine to ..
5050 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5051 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5052 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5053 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5054 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5055 operand.
5056 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5057 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5058 sibcall_value_symbolic_64): Delete.
5059
5060 2011-04-21 Xinliang David Li <davidxl@google.com>
5061
5062 * cgraph.h: Remove pid.
5063 * cgraph.c: Remove pid.
5064 * value-prof.c (init_node_map): New function.
5065 (del_node_map): New function.
5066 (find_func_by_funcdef_no): New function.
5067 (gimple_ic_transform): Call new function.
5068 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5069 * function.c (get_last_funcdef_no): New function.
5070 * function.h (get_last_funcdef_no): New function.
5071 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5072 to libgcov function.
5073 (tree-profiling): Call node map init and delete function.
5074
5075 2011-04-21 Ian Lance Taylor <iant@google.com>
5076
5077 * godump.c (go_format_type): Use exported Go name for anonymous
5078 field name.
5079
5080 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5081
5082 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5083 Call builtin_function_type_list instead of builtin_function_type.
5084 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5085
5086 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5087
5088 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5089 build_function_type_list instead of build_function_type.
5090 Delete variable `endlink'.
5091
5092 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5093
5094 * config/s390/s390.c (s390_init_builtins): Call
5095 build_function_type_list instead of build_function_type.
5096
5097 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5098
5099 * config/ia64/ia64.c (ia64_init_builtins): Call
5100 build_function_type_list instead of builtin_function_type.
5101
5102 2011-04-21 Easwaran Raman <eraman@google.com>
5103
5104 * cfgexpand.c (stack_var): Remove OFFSET...
5105 (add_stack_var): ...and its reference here...
5106 (expand_stack_vars): ...and here.
5107 (stack_var_cmp): Sort by descending order of size.
5108 (partition_stack_vars): Change heuristic.
5109 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5110 (dump_stack_var_partition): Add newline after each partition.
5111
5112 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5113 Jeff Law <law@redhat.com>
5114
5115 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5116 * gengtype.c (matching_file_name_substitute): Likewise.
5117
5118 2011-04-21 Richard Guenther <rguenther@suse.de>
5119
5120 PR lto/48703
5121 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5122
5123 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5124
5125 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5126
5127 2011-04-21 Richard Guenther <rguenther@suse.de>
5128
5129 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5130 file name.
5131
5132 2011-04-21 Richard Guenther <rguenther@suse.de>
5133
5134 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5135 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5136 Use DECL_P, not SSA_VAR_P.
5137 (ptr_derefs_may_alias_p): Likewise.
5138 (ptr_deref_may_alias_ref_p_1): Likewise.
5139 (decl_refs_may_alias_p): Likewise.
5140 (refs_may_alias_p_1): Likewise.
5141 (ref_maybe_used_by_call_p_1): Likewise.
5142 (call_may_clobber_ref_p_1): Likewise.
5143 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5144 are either MEM_REF or TARGET_MEM_REF.
5145 (indirect_refs_may_alias_p): Likewise.
5146 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5147 for MEM_EXPR of indirect calls.
5148
5149 2011-04-21 Tristan Gingold <gingold@adacore.com>
5150
5151 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5152 (dst_file_info_struct): Remove flen field.
5153 (lookup_filename): Remove code that set flen field.
5154
5155 2011-04-21 Tristan Gingold <gingold@adacore.com>
5156
5157 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5158
5159 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5160
5161 PR target/48708
5162 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5163 vec_extract and vec_concat for non-SSE4_1 targets.
5164
5165 2011-04-21 Richard Guenther <rguenther@suse.de>
5166
5167 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5168 return statements.
5169
5170 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5171
5172 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5173 undefine.
5174 (FILE): Don't undefine.
5175
5176 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5177
5178 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5179 struct rtx_def *.
5180 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5181 struct rtx_def *.
5182 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5183 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5184 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5185 rtx_def *.
5186 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5187 definitions where used.
5188 * config/microblaze/microblaze.h (struct microblaze_args): Use
5189 rtx, not struct rtx_def *.
5190 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5191 rtx_def *.
5192 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5193 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5194 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5195 not struct rtx_def *.
5196 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5197 struct rtx_def *.
5198 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5199 rtx_def *.
5200 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5201
5202 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5203
5204 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5205 operand_equal_p to compare DR_BASE_ADDRESSes.
5206 (vect_check_interleaving): Likewise.
5207
5208 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5209
5210 PR target/46329
5211 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5212 for all Neon struct constants.
5213
5214 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5215
5216 * target.def (legitimate_constant_p): New hook.
5217 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5218 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5219 * doc/tm.texi: Regenerate.
5220 * hooks.h (hook_bool_mode_rtx_true): Declare.
5221 * hooks.c (hook_bool_mode_rtx_true): Define.
5222 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5223 * calls.c (precompute_register_parameters): Replace uses of
5224 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5225 (emit_library_call_value_1): Likewise.
5226 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5227 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5228 * ira-costs.c (scan_one_insn): Likewise.
5229 * recog.c (general_operand, immediate_operand): Likewise.
5230 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5231 * reload1.c (init_eliminable_invariants): Likewise.
5232
5233 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5234 mode argument.
5235 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5236 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5237 argument.
5238 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5239 * config/alpha/predicates.md (input_operand): Update call to
5240 alpha_legitimate_constant_p.
5241
5242 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5243 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5244 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5245 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5246 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5247 (arm_legitimate_constant_p): New functions.
5248 (arm_cannot_force_const_mem): Make static.
5249
5250 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5251
5252 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5253 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5254 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5255 instead of bfin_legitimate_constant_p.
5256 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5257 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5258
5259 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5260
5261 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5262
5263 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5264 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5265 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5266 (frv_legitimate_constant_p): Make static. Add a mode argument.
5267
5268 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5269 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5270 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5271
5272 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5273 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5274 * config/i386/i386.c (legitimate_constant_p): Rename to...
5275 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5276 argument.
5277 (ix86_cannot_force_const_mem): Update accordingly.
5278 (ix86_legitimate_address_p): Likewise.
5279 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5280 * config/i386/i386.md: Update commentary.
5281
5282 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5283 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5284 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5285 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5286
5287 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5288
5289 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5290 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5291 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5292 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5293
5294 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5295 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5296 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5297
5298 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5299 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5300 (m32r_legitimate_constant_p): New function.
5301
5302 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5303 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5304 LEGITIMATE_CONSTANT_P.
5305 (LEGITIMATE_CONSTANT_P): Delete.
5306 * config/m68k/m68k.c (m68k_expand_prologue): Call
5307 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5308 (m68k_legitimate_constant_p): New function.
5309 * config/m68k/m68k.md: Update comments.
5310
5311 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5312 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5313 (mcore_legitimate_constant_p): New function.
5314
5315 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5316 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5317 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5318 Add a mode argument.
5319 (mep_legitimate_address): Update accordingly.
5320 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5321
5322 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5323 Delete.
5324 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5325 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5326 static. Check OP's mode for VOIDmode.
5327 (microblaze_legitimate_constant_p): New function.
5328 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5329
5330 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5331 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5332 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5333 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5334 * config/mips/predicates.md: Update comments.
5335
5336 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5337 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5338 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5339 (mmix_legitimate_constant_p): Make static, return a bool, and take
5340 a mode argument.
5341 (mmix_print_operand_address): Update accordingly.
5342
5343 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5344 Delete.
5345 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5346 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5347 static. Add a mode argument.
5348 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5349
5350 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5351
5352 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5353 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5354 (pa_legitimate_constant_p): New function.
5355
5356 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5357
5358 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5359 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5360 (pdp11_legitimate_constant_p): New function.
5361
5362 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5363 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5364 (rs6000_legitimate_constant_p): New function.
5365
5366 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5367 (rx_legitimate_constant_p): ...this.
5368 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5369 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5370 (rx_legitimate_constant_p): ...this.
5371 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5372 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5373
5374 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5375 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5376 * config/s390/s390.c (legitimate_constant_p): Rename to...
5377 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5378 and add a mode argument.
5379 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5380
5381 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5382
5383 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5384 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5385 (sh_legitimate_constant_p): New function.
5386
5387 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5388 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5389 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5390 (legitimate_constant_p): Rename to...
5391 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5392 argument.
5393 (constant_address_p): Update accordingly.
5394
5395 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5396 argument and return a bool.
5397 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5398 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5399 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5400 (spu_rtx_costs): Update accordingly.
5401 * config/spu/predicates.md (vec_imm_operand): Likewise.
5402
5403 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5404
5405 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5406 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5407 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5408
5409 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5410 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5411 * config/vax/vax.c (legitimate_constant_p): Likewise.
5412
5413 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5414 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5415 (xtensa_legitimate_constant_p): New function.
5416
5417 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5418
5419 * target.def (cannot_force_const_mem): Add a mode argument.
5420 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5421 * doc/tm.texi: Regenerate.
5422 * hooks.h (hook_bool_mode_rtx_false): Declare.
5423 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5424 (hook_bool_mode_const_rtx_true): Likewise.
5425 (hook_bool_mode_rtx_false): New function.
5426 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5427 to be non-VOID. Update call to cannot_force_const_mem.
5428 (find_reloads): Update accordingly.
5429 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5430 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5431 argument.
5432 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5433 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5434 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5435 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5436 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5437 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5438 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5439 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5440 (m68k_cannot_force_const_mem): ...this new function.
5441 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5442 argument.
5443 (mips_const_insns, mips_legitimize_const_move): Update calls.
5444 (mips_secondary_reload_class): Likewise.
5445 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5446 (pa_cannot_force_const_mem): ...this new function.
5447 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5448 (rs6000_cannot_force_const_mem): ...this new function.
5449 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5450 argument.
5451 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5452 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5453 to...
5454 (xtensa_cannot_force_const_mem): ...this new function.
5455
5456 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5457
5458 * config/mips/mips.c (mips16_build_function_stub): Call
5459 build_function_type_list instead of build_function_type.
5460 (mips16_build_call_stub): Likewise.
5461
5462 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5463
5464 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5465 instead of build_function_type.
5466
5467 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5468
5469 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5470 instead of build_function_type.
5471
5472 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5473
5474 PR target/48678
5475 * config/i386/i386.md (insv): Change operand 0 constraint to
5476 "register_operand". Change operand 1 and 2 constraint to
5477 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5478 * config/i386/sse.md (sse4_1_pinsrb): Export.
5479 (sse2_pinsrw): Ditto.
5480 (sse4_1_pinsrd): Ditto.
5481 (sse4_1_pinsrq): Ditto.
5482 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5483 * config/i386/i386.c (ix86_expand_pinsr): New.
5484
5485 2011-04-20 Easwaran Raman <eraman@google.com>
5486
5487 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5488 containing union type only with -fstrict-aliasing.
5489
5490 2011-04-20 Jim Meyering <meyering@redhat.com>
5491
5492 Remove useless if-before-free tests.
5493 * calls.c (expand_call, save_area): Likewise.
5494 * cfgcleanup.c (try_forward_edges): Likewise.
5495 * collect2.c (collect_execute): Likewise.
5496 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5497 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5498 * coverage.c (coverage_checksum_string): Likewise.
5499 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5500 * cselib.c (cselib_init): Likewise.
5501 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5502 (df_set_clean_cfg): Likewise.
5503 * function.c (free_after_compilation): Likewise.
5504 * gcc.c (do_spec_1, main): Likewise.
5505 * gcov.c (create_file_names): Likewise.
5506 * gensupport.c (identify_predicable_attribute): Likewise.
5507 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5508 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5509 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5510 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5511 * ipa-pure-const.c (local_pure_const): Likewise.
5512 * ipa-reference.c (propagate): Likewise.
5513 * ira-costs.c (free_ira_costs): Likewise.
5514 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5515 * matrix-reorg.c (mat_free): Likewise.
5516 * prefix.c (get_key_value): Likewise.
5517 * profile.c (compute_value_histograms): Likewise.
5518 * reload1.c (free_reg_equiv): Likewise.
5519 * sched-deps.c (free_deps): Likewise.
5520 * sel-sched-ir.c (fence_clear): Likewise.
5521 * sese.c (set_rename, if_region_set_false_region): Likewise.
5522 * tree-data-ref.c (free_rdg): Likewise.
5523 * tree-eh.c (lower_try_finally): Likewise.
5524 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5525 * tree-ssa-live.c (delete_var_map): Likewise.
5526 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5527 * tree-ssa-pre.c (phi_trans_add): Likewise.
5528
5529 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5530
5531 PR tree-optimization/48611
5532 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5533 beyond ERT_MUST_NOT_THROW region.
5534
5535 2011-04-20 Catherine Moore <clm@codesourcery.com>
5536
5537 * config/mips/mips.opt (mfix-24k): New.
5538 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5539 * config/mips/mips.md (length): Increase by 4 for stores if
5540 fixing 24K errata.
5541 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5542 all noreorder if fixing 24K errata.
5543 * doc/invoke.texi: Document mfix-24k.
5544
5545 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5546
5547 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5548 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5549
5550 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5551
5552 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5553 (const_ok_for_op): ... to here.
5554
5555 2011-04-20 Kai Tietz <ktietz@redhat.com>
5556
5557 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5558 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5559
5560 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5561
5562 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5563
5564 2011-04-20 Richard Guenther <rguenther@suse.de>
5565
5566 PR tree-optimization/47892
5567 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5568 are if-convertible.
5569
5570 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5571
5572 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5573
5574 2011-04-20 Tristan Gingold <gingold@adacore.com>
5575
5576 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5577
5578 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5579
5580 PR target/18145
5581
5582 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5583 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5584 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5585 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5586 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5587
5588 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5589 New prototype.
5590
5591 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5592 (avr_asm_named_section, avr_asm_output_aligned_common,
5593 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5594 New functions to update...
5595 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5596 (avr_asm_init_sections): Overwrite section callbacks for
5597 data_section, bss_section.
5598 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5599 from here to...
5600 (avr_file_end): ...here.
5601
5602 2011-04-20 Richard Guenther <rguenther@suse.de>
5603
5604 PR middle-end/48695
5605 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5606 objects and types here. Adjust for their offset before comparing.
5607
5608 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5609
5610 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5611 statement per copy.
5612
5613 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5614
5615 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5616 (GIMPLE_H): Include $(INTERNAL_FN_H).
5617 (OBJS-common): Add internal-fn.o.
5618 (internal-fn.o): New rule.
5619 * internal-fn.def: New file.
5620 * internal-fn.h: Likewise.
5621 * internal-fn.c: Likewise.
5622 * gimple.h: Include internal-fn.h.
5623 (GF_CALL_INTERNAL): New gf_mask.
5624 (gimple_statement_call): Put fntype into a union with a new
5625 internal_fn field.
5626 (gimple_build_call_internal): Declare.
5627 (gimple_build_call_internal_vec): Likewise.
5628 (gimple_call_same_target_p): Likewise.
5629 (gimple_call_internal_p): New function.
5630 (gimple_call_internal_fn): Likewise.
5631 (gimple_call_fntype): Return null for internal calls.
5632 (gimple_call_set_fntype): Assert that the function is not internal.
5633 (gimple_call_set_fn): Likewise.
5634 (gimple_call_set_fndecl): Likewise.
5635 (gimple_call_set_internal_fn): New function.
5636 (gimple_call_addr_fndecl): Handle null functions.
5637 (gimple_call_return_type): Likewise null types.
5638 * gimple.c (gimple_build_call_internal_1): New function.
5639 (gimple_build_call_internal): Likewise.
5640 (gimple_build_call_internal_vec): Likewise.
5641 (gimple_call_same_target_p): Likewise.
5642 (gimple_call_flags): Handle calls to internal functions.
5643 (gimple_call_fnspec): New function.
5644 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5645 (gimple_has_side_effects): Handle null functions.
5646 (gimple_rhs_has_side_effects): Likewise.
5647 (gimple_call_copy_skip_args): Handle calls to internal functions.
5648 * cfgexpand.c (expand_call_stmt): Likewise.
5649 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5650 * gimple-fold.c (gimple_fold_call): Handle null functions.
5651 (gimple_fold_stmt_to_constant_1): Don't fold
5652 calls to internal functions.
5653 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5654 functions.
5655 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5656 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5657 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5658 (do_warn_unused_result): Likewise.
5659 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5660 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5661 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5662 the target of a call.
5663 (initialize_hash_element): Update accordingly.
5664 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5665 (iterative_hash_hashable_expr): Handle calls to internal functions.
5666 (print_expr_hash_elt): Likewise.
5667 * tree-ssa-pre.c (can_value_number_call): Likewise.
5668 (eliminate): Handle null functions.
5669 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5670 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5671 (find_func_aliases): Likewise.
5672 * value-prof.c (gimple_ic_transform): Likewise.
5673 (gimple_indirect_call_to_profile): Likewise.
5674 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5675 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5676
5677 2011-04-19 Jan Hubicka <jh@suse.cz>
5678
5679 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5680 * ipa-inline.c (inline_small_functions): Compute summaries first,
5681 populate heap later.
5682
5683 2011-04-19 Jan Hubicka <jh@suse.cz>
5684
5685 * cgraph.h (save_inline_function_body): Remove.
5686 * ipa-inline-transform.c: New file, broke out of...
5687 * ipa-inline.c: ... this one; Update toplevel comment.
5688 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5689 make global.
5690 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5691 (cgraph_mark_inline_edge): Rename to inline_call; move to
5692 ipa-inline-transform.c.
5693 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5694 move to ipa-inline-transform.c
5695 (recursive_inlining, inline_small_functions, flatten_function,
5696 ipa_inline, inline_always_inline_functions,
5697 early_inline_small_functions): Update.
5698 (inline_transform): Move to ipa-inline-transform.c.
5699 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5700 Declare.
5701 * Makefile.in (ipa-inline-transform.o): New file.
5702 * cgraphunit.c (save_inline_function_body): Move to
5703 ipa-inline-transform.c
5704
5705 2011-04-19 DJ Delorie <dj@redhat.com>
5706
5707 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5708 registers if we already know there aren't any.
5709 (m32c_emit_epilogue): Don't emit a barrier here.
5710 (m32c_emit_eh_epilogue): Likewise.
5711 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5712 operands at expand time.
5713 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5714 int" wchar type.
5715 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5716 duplicates. Provide aliases instead.
5717 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5718 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5719 the compiler.
5720
5721 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5722
5723 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5724 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5725 (general_or_i64_p, sparc_register_move_cost): New function.
5726
5727 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5728
5729 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5730 Add lynx, mipssde. Sort table.
5731
5732 2011-04-19 Xinliang David Li <davidxl@google.com>
5733
5734 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5735 not negative.
5736
5737 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5738
5739 PR target/48678
5740 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5741 is a SUBREG with non-MODE_INT mode inside of it.
5742
5743 2011-04-19 Martin Jambor <mjambor@suse.cz>
5744
5745 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5746 also according to actual contants.
5747 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5748 (gimple_fold_call): Use it.
5749 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5750
5751 2011-04-19 Martin Jambor <mjambor@suse.cz>
5752
5753 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5754 non-pointer assignments.
5755
5756 2011-04-19 Martin Jambor <mjambor@suse.cz>
5757
5758 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5759 account anc_offset and otr_type from the indirect edge info.
5760 * ipa-prop.c (get_ancestor_addr_info): New function.
5761 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5762 get_ancestor_addr_info, call it.
5763 (ipa_note_param_call): Do not initialize information about polymorphic
5764 calls, return the indirect call graph edge. Remove the last
5765 parameter, adjust all callers.
5766 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5767 parameters. Initialize polymorphic information in the indirect edge.
5768
5769 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5770
5771 PR lto/48148
5772 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5773 the types if they have different enumeration identifiers.
5774
5775 2011-04-19 Jan Hubicka <jh@suse.cz>
5776
5777 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5778 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5779 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5780 (optimize_function_for_size_p) ... here.
5781
5782 2011-04-19 Richard Guenther <rguenther@suse.de>
5783
5784 PR lto/48207
5785 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5786 langhook.
5787
5788 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5789
5790 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5791 if DECL_NO_INLINE_WARNING_P is set on the function.
5792
5793 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5794
5795 PR fortran/47976
5796 * reload1.c (inc_for_reload): Return void. All callers changed.
5797 (emit_input_reload_insns): Don't try to delete previous output
5798 reloads to a register, or record spill_reg_store for autoincs.
5799
5800 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5801
5802 * gengtype.h: Updated copyright year.
5803 (struct input_file_st): Add inpisplugin field.
5804 (type_fileloc): New function.
5805 * gengtype.c
5806 (write_typed_struct_alloc_def): Add gcc_assert.
5807 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5808 (write_typed_alloc_defns): Don't output for plugin files.
5809 (input_file_by_name): Clear inpisplugin field.
5810 (main): Set inpisplugin field for plugin files.
5811
5812 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5813
5814 * gengtype-state.c (string_eq): New.
5815 (read_state): Use string_eq instead of strcmp when creating the
5816 state_ident_tab.
5817
5818 2011-04-19 Wei Guozhi <carrot@google.com>
5819
5820 PR target/47855
5821 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5822 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5823 linkage.
5824 * config/arm/constraints.md (Uu): New constraint.
5825 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5826
5827 2011-04-19 Tristan Gingold <gingold@adacore.com>
5828
5829 * config.gcc (-*-*-*vms): Added.
5830 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5831 definitions moved.
5832 * config/vms/vms-ld.c: New file.
5833 * config/vms/vms-ar.c: New file.
5834 * config/vms/t-vmsnative: New file.
5835
5836 2011-04-18 Xinliang David Li <davidxl@google.com>
5837
5838 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5839
5840 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5841
5842 PR middle-end/48661
5843 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5844 if TREE_TYPE (v) is non-NULL.
5845
5846 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5847 gimple_get_virt_mehtod_for_binfo.
5848 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5849 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5850 callers.
5851 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5852
5853 2011-04-18 Michael Matz <matz@suse.de>
5854 Steve Ellcey <sje@cup.hp.com>
5855
5856 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5857 use its mode as source mode if it isn't VOIDmode.
5858
5859 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5860
5861 * doc/passes.texi: Fill crossref nodes.
5862
5863 2011-04-18 Jim Meyering <meyering@redhat.com>
5864
5865 Fix doubled-word typos in comments and strings
5866 * config/alpha/vms-unwind.h: s/for for/for/
5867 * config/arm/unwind-arm.h: Likewise.
5868 * config/microblaze/microblaze.c: Likewise.
5869 * config/sh/constraints.md: s/in in/in/
5870 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5871
5872 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5873
5874 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5875 (AVX_FLOAT_MODE_P): Ditto.
5876 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5877 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5878 (AVX_VEC_FLOAT_MODE_P): Ditto.
5879 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5880 (UNSPEC_MASKSTORE): Ditto.
5881 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5882 Merge from <sse>_movmsk<ssemodesuffix> and
5883 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5884 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5885 iterator.
5886 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5887 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5888 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5889
5890 2011-04-18 Jan Hubicka <jh@suse.cz>
5891
5892 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5893
5894 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5895 (want_inline_function_called_once_p): Break out the logic from
5896 ipa_inline.
5897 (edge_badness): Ensure that profile is not misupdated.
5898 (lookup_recursive_calls): Prioritize by call frequencies.
5899 (inline_small_functions): Move program size estimates here;
5900 actually process whole queue even when unit growth has been
5901 met. (to properly compute inline_failed reasons and for the
5902 case unit size decrease.) Revisit comments on recursive inlining.
5903 (ipa_inline): Remove unit summary code; first inline hot calls
5904 of functions called once, cold calls next.
5905 (order, nnodes): Remove unused variables.
5906 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5907 (GTFILES): Remove ipa-inline.c
5908 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5909
5910 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5911
5912 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5913
5914 2011-04-18 Jie Zhang <jie@codesourcery.com>
5915 Richard Earnshaw <rearnsha@arm.com>
5916
5917 * arm.c (neon_builtin_type_bits): Remove.
5918 (typedef enum neon_builtin_mode): New.
5919 (T_MAX): Don't define.
5920 (typedef enum neon_builtin_datum): Remove bits, codes[],
5921 num_vars and base_fcode. Add mode, code and fcode.
5922 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5923 VAR10): Change accordingly.
5924 (neon_builtin_data[]): Change accordingly
5925 (arm_init_neon_builtins): Change accordingly.
5926 (neon_builtin_compare): Remove.
5927 (locate_neon_builtin_icode): Remove.
5928 (arm_expand_neon_builtin): Change accordingly.
5929
5930 * arm.h (enum arm_builtins): Move to ...
5931 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5932
5933 * arm.c (arm_builtin_decl): Declare.
5934 (TARGET_BUILTIN_DECL): Define.
5935 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5936 (arm_builtin_decls[]): New.
5937 (arm_init_neon_builtins): Store builtin declarations in
5938 arm_builtin_decls[].
5939 (arm_init_tls_builtins): Likewise.
5940 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5941 (arm_builtin_decl): New.
5942
5943 2011-04-18 Richard Guenther <rguenther@suse.de>
5944
5945 * tree.c (upper_bound_in_type): Build properly canonicalized
5946 INTEGER_CSTs.
5947 (lower_bound_in_type): Likewise.
5948
5949 2011-04-18 Richard Guenther <rguenther@suse.de>
5950
5951 * gimple.h (gimple_call_addr_fndecl): New function.
5952 (gimple_call_fndecl): Use it.
5953 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5954 for direct calls.
5955 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5956 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5957
5958 2011-04-18 Richard Guenther <rguenther@suse.de>
5959
5960 PR middle-end/48650
5961 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5962
5963 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5964
5965 PR lto/48492
5966 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5967 DECL_IN_CONSTANT_POOL without RTL.
5968
5969 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5970 Ira Rosen <ira.rosen@linaro.org>
5971
5972 PR target/48252
5973 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5974 to match neon_vzip/vuzp/vtrn_internal.
5975 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5976 outputs explicitly dependent on both inputs.
5977 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5978
5979 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5980
5981 PR tree-optimization/48616
5982 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5983 whether the shift is by scalar or vector based on whether all SLP
5984 scalar stmts have the same rhs.
5985
5986 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5987
5988 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5989 memory operands.
5990
5991 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5992
5993 PR target/43700
5994 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5995 registers.
5996
5997 2011-04-17 Jan Hubicka <jh@suse.cz>
5998
5999 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6000 * cgrpahunit.c (cgraph_finalize_function): Do not set
6001 finalized_by_frontend.
6002 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6003 finalized_by_frontend.
6004
6005 2011-04-17 Jan Hubicka <jh@suse.cz>
6006
6007 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6008 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6009 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6010 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6011 method.
6012 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6013 gimple-fold.c
6014 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6015
6016 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6017
6018 PR lto/48538
6019 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6020 is non-null before accessing it.
6021 (input_cgraph): Remove trailing spaces.
6022
6023 2011-04-17 Revital Eres <revital.eres@linaro.org>
6024
6025 * params.def (sms-min-sc): New param flag.
6026 * modulo-sched.c (sms_schedule): Use it.
6027 * doc/invoke.texi (sms-min-sc): Document it.
6028
6029 2011-04-17 Jan Hubicka <jh@suse.cz>
6030
6031 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6032 present, also set gimple_call_set_cannot_inline.
6033 * ipa-inline.c: Update toplevel comment.
6034 (MAX_TIME): Remove.
6035 (cgraph_clone_inlined_nodes): Fix linebreaks.
6036 (cgraph_check_inline_limits): Restructure to ...
6037 (caller_growth_limits): ... this one; be more tolerant
6038 on growth in nested inline chains; add explanatory comment;
6039 fix stack accounting thinko introduced by previous patch.
6040 (cgraph_default_inline_p): Remove.
6041 (report_inline_failed_reason): New function.
6042 (can_inline_edge_p): New function.
6043 (can_early_inline_edge_p): New function.
6044 (leaf_node_p): Move upwards in file.
6045 (want_early_inline_function_p): New function.
6046 (want_inline_small_function_p): New function.
6047 (want_inline_self_recursive_call_p): New function.
6048 (cgraph_edge_badness): Rename to ...
6049 (edge_badness) ... this one; fix linebreaks.
6050 (update_edge_key): Update call of edge_baddness; add
6051 detailed dump about queue updates.
6052 (update_caller_keys): Use can_inline_edge_p and
6053 want_inline_small_function_p.
6054 (cgraph_decide_recursive_inlining): Rename to...
6055 (recursive_inlining): Use can_inline_edge_p and
6056 want_inline_self_recursive_call_p; simplify and remove no longer
6057 valid FIXME.
6058 (cgraph_set_inline_failed): Remove.
6059 (add_new_edges_to_heap): Use can_inline_edge_p and
6060 want_inline_small_function_p.
6061 (cgraph_decide_inlining_of_small_functions): Rename to ...
6062 (inline_small_functions): ... this one; cleanup; use
6063 can/want predicates; cleanup debug ouput; work edges till fibheap
6064 is exhausted and do not stop once unit growth is reached; remove
6065 later loop processing remaining edges.
6066 (cgraph_flatten): Rename to ...
6067 (flatten_function): ... this one; use can_inline_edge_p
6068 and can_early_inline_edge_p predicates.
6069 (cgraph_decide_inlining): Rename to ...
6070 (ipa_inline): ... this one; remove unreachable nodes before
6071 inlining functions called once; simplify the pass.
6072 (cgraph_perform_always_inlining): Rename to ...
6073 (inline_always_inline_functions): ... this one; use
6074 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6075 (cgraph_decide_inlining_incrementally): Rename to ...
6076 (early_inline_small_functions): ... this one; simplify
6077 using new predicates; cleanup; make dumps prettier.
6078 (cgraph_early_inlining): Rename to ...
6079 (early_inliner): newer inline regular functions into always-inlines;
6080 fix updating of call stmt summaries.
6081 (pass_early_inline): Update for new names.
6082 (inline_transform): Fix formating.
6083 (gate_cgraph_decide_inlining): Rename to ...
6084 (pass_ipa_inline): ... this one.
6085 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6086 * ipa-inline-analysis.c (dump_inline_summary): Update.
6087 (compute_inline_parameters): Do not compute disregard_inline_limits;
6088 look for mismatching arguments.
6089 (estimate_growth): Fix handlig of non-trivial self recursion.
6090 (inline_read_summary): Do not read info->disregard_inline_limits.
6091 (inline_write_summary): Do not write info->disregard_inline_limits.
6092 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6093 and move all checks into can_inline_edge_p predicate; re-enable code
6094 comparing optimization levels.
6095 (expand_call_inline): Do not test inline_forbidden_into_p.
6096 * Makefile.in (ipa-inline.o): Update arguments.
6097
6098 2011-04-17 Revital Eres <revital.eres@linaro.org>
6099
6100 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6101
6102 2011-04-17 Revital Eres <revital.eres@linaro.org>
6103
6104 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6105
6106 2011-04-17 Michael Matz <matz@suse.de>
6107
6108 PR tree-optimization/48622
6109 PR lto/48645
6110 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6111 in same order as they're written.
6112
6113 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6114
6115 * config/pa/predicates.md: Reorganize and simplify predicates.
6116 Eliminate duplicate code checks.
6117 (arith_operand): Rename to arith14_operand
6118 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6119 * config/pa/pa.md: Use renamed operands.
6120 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6121 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6122 arith11_operand, adddi3_operand, indexed_memory_operand,
6123 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6124 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6125 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6126 move_dest_operand, move_src_operand, prefetch_cc_operand,
6127 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6128 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6129 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6130 div_operand, int5_operand, movb_comparison_operator,
6131 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6132 arith_double_operand, ireg_operand, lhs_lshift_operand,
6133 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6134 integer_store_memory_operand): Likewise.
6135 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6136 (integer_store_memory_operand, read_only_operand,
6137 function_label_operand, borx_reg_operand,
6138 non_hard_reg_operand): Likewise.
6139 (eq_neq_comparison_operator): Delete unused operator.
6140 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6141 function_label_operand.
6142 (emit_move_sequence): Likewise.
6143
6144 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6145
6146 * config/i386/sse.md (sseunpackmode): New mode attribute.
6147 (ssepackmode): Ditto.
6148 (vec_pack_trunc_<mode>): Macroize expander from
6149 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6150 (vec_unpacks_lo_<mode>): Macroize expander from
6151 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6152 (vec_unpacks_hi_<mode>): Macroize expander from
6153 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6154 (vec_unpacku_lo_<mode>): Macroize expander from
6155 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6156 (vec_unpacku_hi_<mode>): Macroize expander from
6157 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6158 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6159 ix86_expand_sse4_unpack.
6160 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6161
6162 2011-04-16 Jan Hubicka <jh@suse.cz>
6163
6164 * cgraphbuild.c: Include ipa-inline.h.
6165 (reset_inline_failed): Use initialize_inline_failed.
6166 * cgraph.c: Include ipa-inline.h.
6167 (cgraph_create_node_1): Do not initialize estimated_growth.
6168 (initialize_inline_failed): More to ipa-inline-analysis.c
6169 (dump_cgraph_node): Do not dump inline flags.
6170 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6171 and disregard_inline_limits flags.
6172 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6173 time, size, estimated_growth.
6174 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6175 Update.
6176 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6177 DECL_DISREGARD_INLINE_LIMITS.
6178 (cgraph_analyze_function): Do not initialize
6179 node->local.disregard_inline_limits.
6180 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6181 inlinable, versionable and disregard_inline_limits.
6182 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6183 cgraph_check_inline_limits, cgraph_default_inline_p,
6184 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6185 add_new_edges_to_heap): Update.
6186 (cgraph_decide_inlining_of_small_function): Update; set
6187 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6188 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6189 cgraph_decide_inlining_incrementally): Update.
6190 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6191 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6192 time, size and estimated_growth parameters.
6193 (estimate_edge_growth): Update.
6194 (initialize_inline_failed): Declare.
6195 * ipa-split.c: Include ipa-inline.h
6196 (execute_split_functions): Update.
6197 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6198 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6199 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6200 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6201 estimated_growth to INT_MIN.
6202 (inline_node_duplication_hook): Likewise.
6203 (dump_inline_summary): Dump new fields.
6204 (compute_inline_parameters): Update.
6205 (estimate_edge_time, estimate_time_after_inlining,
6206 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6207 inline_write_summary):
6208 (initialize_inline_failed): Move here from cgraph.c.
6209 * tree-sra.c: Include ipa-inline.h.
6210 (ipa_sra_preliminary_function_checks): Update.
6211 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6212 ipa-inline.h.
6213
6214 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6215
6216 * config/i386/sse.md (V16): New mode iterator.
6217 (VI1, VI8): Ditto.
6218 (AVXMODEQI, AVXMODEDI): Remove.
6219 (sse2, sse3): New mode attribute.
6220 (mov<mode>): Use V16 mode iterator.
6221 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6222 (push<mode>1): Use V16 mode iterator.
6223 (movmisalign<mode>): Ditto.
6224 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6225 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6226 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6227 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6228 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6229 avx_movdqu<avxmodesuffix>.
6230 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6231 *avx_movdqu<avxmodesuffix>.
6232 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6233 avx_lddqu<avxmodesuffix>.
6234 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6235 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6236 avx_movnt<AVXMODEDI:mode>.
6237 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6238 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6239
6240 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6241
6242 PR target/48629
6243 * haifa-sched.c (prune_ready_list, schedule_block): Use
6244 sched_pressure_p rather than flag_sched_pressure.
6245
6246 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6247
6248 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6249 cgraph_get_node instead of cgraph_get_create_node.
6250
6251 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6252
6253 * cfgexpand.c (expand_debug_expr): Use
6254 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6255
6256 2011-04-15 Michael Matz <matz@suse.de>
6257
6258 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6259 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6260 * function.c (gimplify_parameters): Ditto.
6261 * gimplify.c (gimplify_vla_decl): Ditto.
6262
6263 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6264 (gimple_call_set_alloca_for_var): New inline function.
6265 (gimple_call_alloca_for_var_p): Ditto.
6266 * gimple.c (gimple_build_call_from_tree): Remember
6267 CALL_ALLOCA_FOR_VAR_P state.
6268 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6269
6270 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6271 calls if they were for VLA objects.
6272
6273 2011-04-15 Martin Jambor <mjambor@suse.cz>
6274
6275 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6276 of ADR_EXPRs.
6277
6278 2011-04-15 Martin Jambor <mjambor@suse.cz>
6279
6280 PR middle-end/48601
6281 * tree-emutls.c (lower_emutls_function_body): Call
6282 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6283 result is non-NULL.
6284
6285 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6286
6287 * c-decl.c (detect_field_duplicates): Call
6288 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6289
6290 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6291
6292 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6293 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6294 * ipa-pure-const.c (check_stmt): Call it.
6295 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6296
6297 2011-04-15 Richard Guenther <rguenther@suse.de>
6298
6299 PR tree-optimization/48290
6300 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6301 Properly decide inhibiting propagation based on the valueized
6302 operand. Do loop-closed SSA form preserving here ...
6303 (init_copy_prop): ... not here.
6304
6305 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6306
6307 PR target/48612
6308 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6309 (*ieee_smax<mode>3): Likewise.
6310
6311 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6312
6313 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6314 Replace match_operand with match_dup for the third operand in
6315 these expanders.
6316
6317 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6318
6319 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6320 to track processing of conditionals. Update all callers.
6321 (try_combine, simplify_if_then_else): Update.
6322
6323 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6324
6325 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6326 -fsched-pressure.
6327
6328 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6329
6330 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6331 instead of match_operand for operand 3.
6332
6333 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6334
6335 * recog.h (insn_operand_data): Add an "allows_mem" field.
6336 * genoutput.c (output_operand_data): Initialize it.
6337 * optabs.c (maybe_legitimize_operand_same_code): New function.
6338 (maybe_legitimize_operand): Use it when matching the original
6339 op->value.
6340
6341 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6342
6343 * gimplify.c: Fix issues in comments throughout.
6344 (voidify_wrapper_expr): Fix long line.
6345 (build_stack_save_restore): Likewise.
6346 (gimplify_loop_expr): Likewise.
6347 (gimplify_compound_lval): Likewise.
6348 (gimplify_init_ctor_eval): Likewise.
6349 (gimplify_modify_expr_rhs): Likewise.
6350 (omp_notice_threadprivate_variable): Likewise.
6351
6352 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6353
6354 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6355 original one if this is not a builtin function.
6356
6357 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6358
6359 PR target/48605
6360 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6361 offset it as needed based on top 2 bits in operands[3], change
6362 MEM mode to SFmode and mask those 2 bits away from operands[3].
6363
6364 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6365
6366 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6367 change from objc_declare_protocols() to objc_declare_protocol().
6368
6369 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6370
6371 * config/i386/sse.md (sse4_1): New mode attribute.
6372 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6373 avx_blend<ssemodesuffix><avxmodesuffix> and
6374 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6375 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6376 avx_blendv<ssemodesuffix><avxmodesuffix> and
6377 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6378 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6379 avx_dp<ssemodesuffix><avxmodesuffix> and
6380 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6381 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6382 (sse4_1_packusdw): Merge with *avx_packusdw.
6383 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6384 (sse4_1_pblendw): Merge with *avx_pblendw.
6385 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6386 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6387 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6388 VF mode iterator.
6389 (sse4_1_round<ssescalarmodesuffix>): Merge with
6390 *avx_round<ssescalarmodesuffix>.
6391 (aesenc): Merge with *avx_aesenc.
6392 (aesenclast): Merge with *avx_aesenclast.
6393 (aesdec): Merge with *avx_aesdec.
6394 (aesdeclast): Merge with *avx_aesdeclast.
6395 (pclmulqdq): Merge with *pclmulqdq.
6396 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6397 New predicate.
6398 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6399
6400 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6401
6402 PR middle-end/48608
6403 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6404 (align_local_variable): This. Update DECL_ALIGN.
6405 (add_stack_var): Updated.
6406 (expand_one_stack_var): Likewise.
6407
6408 2011-04-14 Richard Guenther <rguenther@suse.de>
6409
6410 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6411 Remove.
6412 (dse_initialize_block_local_data, dse_leave_block,
6413 record_voperand_set, get_stmt_uid): Likewise.
6414 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6415 (dse_optimize_stmt): Remove voperand set handling code.
6416 Simplify and improve to handle any kind of killing stmt.
6417 (dse_record_phi): Remove.
6418 (dse_enter_block): Simplify.
6419 (tree_ssa_dse): Likewise.
6420 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6421
6422 2011-04-14 Jan Hubicka <jh@suse.cz>
6423
6424 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6425 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6426 (cgraph_local_info): Remove inline_summary.
6427 * ipa-cp.c: Include ipa-inline.h.
6428 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6429 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6430 accesor.
6431 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6432 (input_overwrite_node): Do not set inline summary.
6433 (input_node): Do not stream inline summary.
6434 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6435 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6436 growth; we do not have inline parameters computed for that anyway.
6437 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6438 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6439 (inline_summary_t): New type and VECtor.
6440 (debug_inline_summary, dump_inline_summaries): Declare.
6441 (inline_summary): Use VOCtor.
6442 (estimate_edge_growth): Kill hack computing call stmt size directly.
6443 * lto-section-in.c (lto_section_name): Add inline section.
6444 * ipa-inline-analysis.c: Include lto-streamer.h
6445 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6446 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6447 (inline_summary_vec): Define.
6448 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6449 dump_inline_summaries): New functions.
6450 (estimate_function_body_sizes): Properly compute size/time of outgoing
6451 calls.
6452 (compute_inline_parameters): Alloc inline_summary; do not compute
6453 size/time of incomming calls.
6454 (estimate_edge_time): Avoid missing time summary hack.
6455 (inline_read_summary): Read inline summary info.
6456 (inline_write_summary): Write inline summary info.
6457 (inline_free_summary): Free all hooks and inline summary vector.
6458 * lto-streamer.h: Add LTO_section_inline_summary section.
6459 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6460 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6461
6462 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6463
6464 * tree-vectorizer.h (vect_strided_store_supported): Add a
6465 HOST_WIDE_INT argument.
6466 (vect_strided_load_supported): Likewise.
6467 (vect_permute_store_chain): Return void.
6468 (vect_transform_strided_load): Likewise.
6469 (vect_permute_load_chain): Delete.
6470 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6471 count argument. Check that the count is a power of two.
6472 (vect_strided_load_supported): Likewise.
6473 (vect_permute_store_chain): Return void. Update after above changes.
6474 Assert that the access is supported.
6475 (vect_permute_load_chain): Likewise.
6476 (vect_transform_strided_load): Return void.
6477 * tree-vect-stmts.c (vectorizable_store): Update calls after
6478 above interface changes.
6479 (vectorizable_load): Likewise.
6480 (vect_analyze_stmt): Don't check for strided powers of two here.
6481
6482 2011-04-14 Richard Guenther <rguenther@suse.de>
6483
6484 PR tree-optimization/48590
6485 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6486 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6487 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6488 BUILT_IN_STACK_SAVE.
6489 * tree-ssa-dce.c (propagate_necessity): Handle
6490 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6491
6492 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6493
6494 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6495 objc_declare_class.
6496
6497 2011-04-14 Richard Guenther <rguenther@suse.de>
6498
6499 * tree.h (get_object_alignment_1): Declare.
6500 * builtins.c (get_object_alignment_1): Split out worker from ...
6501 (get_object_alignment): ... here.
6502 * fold-const.c (get_pointer_modulus_and_residue): Use
6503 get_object_alignment_1.
6504
6505 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6506
6507 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6508 type parameter.
6509 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6510 parameter. Generalise code to handle arrays as well as vectors.
6511 (vect_setup_realignment): Update accordingly.
6512 * tree-vect-stmts.c (vectorizable_store): Likewise.
6513 (vectorizable_load): Likewise.
6514
6515 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6516
6517 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6518 within the per-copy loop.
6519
6520 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6521
6522 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6523 in the dump file.
6524
6525 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6526
6527 * doc/options.texi (Negative): Explicitly mention that the
6528 Negative chain must be circular.
6529
6530 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6531
6532 * function.h (block_chainon): Declare.
6533 * function.c (block_chainon): Define.
6534
6535 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6536 Eric Weddington <eric.weddington@atmel.com>
6537 Georg-Johann Lay <avr@gjlay.de>
6538
6539 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6540 New Includes
6541 (avr_init_builtins, avr_expand_builtin,
6542 avr_expand_delay_cycles, avr_expand_unop_builtin,
6543 avr_expand_binop_builtin ): New functions.
6544 (avr_builtin_id): New enum
6545 (struct avr_builtin_description): New struct
6546 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6547 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6548
6549 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6550 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6551 UNSPECV_DELAY_CYCLES): new enumeration values
6552 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6553 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6554 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6555 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6556 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6557 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6558 "fmulsu"): New insns
6559
6560 * config/avr/avr-c.c: fix line endings
6561 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6562 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6563 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6564 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6565 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6566
6567 * doc/extend.texi (AVR Built-in Functions): New node
6568 (Target Builtins): Add documentation of AVR
6569 built-in functions.
6570
6571 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6572
6573 PR target/44643
6574 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6575 alone. Error if non-const data has attribute progmem.
6576
6577 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6578
6579 * tree.h (struct tree_constructor): Include tree_typed instead of
6580 tree_common.
6581 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6582 TS_TYPED instead of TS_COMMON.
6583
6584 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6585
6586 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6587 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6588 (sse2_psadbw): Merge with *avx_psadbw.
6589 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6590 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6591 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6592 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6593 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6594 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6595 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6596 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6597 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6598 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6599 (ssse3_palignrti): Merge with *avx_palignrti.
6600
6601 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6602
6603 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6604 * tree-ssanames.c (fini_ssanames): VEC_free it.
6605 (make_ssa_name_fn): Update for VECness of free_ssanames.
6606 (release_ssa_name, release_dead_ssa_names): Likewise.
6607 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6608 tree_common.
6609 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6610 TS_TYPED instead of TS_COMMON.
6611
6612 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6613
6614 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6615 statistics_counter_event.
6616 * tree-ssa-copyrename.c (stats): Define.
6617 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6618 statistics_counter_event.
6619 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6620 (bswap_stats, widen_mul_stats): Define.
6621 (insert_reciprocals): Increment rdivs_inserted.
6622 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6623 rfuncs_inserted. Add calls to statistics_counter_event.
6624 (execute_cse_sincos_1): Increment inserted.
6625 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6626 statistics_counter_event.
6627 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6628 of bswap_stats. Add calls to statistics_counter_event.
6629 (convert_mult_to_widen): Increment widen_mults_inserted.
6630 (convert_plusminus_to_widen): Increment maccs_inserted.
6631 (convert_mult_to_fma): Increment fmas_inserted.
6632 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6633 calls to statistics_counter_event.
6634
6635 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6636
6637 PR rtl-optimization/48455
6638 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6639 `temp_costs->mem_cost'.
6640
6641 2011-04-13 Jan Hubicka <jh@suse.cz>
6642
6643 * ipa-inline.h: New file.
6644 * ipa-inline-analysis.c: New file. Broken out of ...
6645 * ipa-inline.c: ... this file; update toplevel comment;
6646 include ipa-inline.h
6647 (inline_summary): Move to ipa-inline.h
6648 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6649 ipa-inline-analysis.c.
6650 (cgraph_estimate_time_after_inlining): Rename to
6651 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6652 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6653 to estimate_edge_growth.
6654 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6655 rename to estimate_size_after_inlining.
6656 (cgraph_mark_inline_edge): Update for new naming convention.
6657 (cgraph_check_inline_limits): Likewise.
6658 (cgraph_edge_badness): Likewise.
6659 (cgraph_decide_recursive_inlining): Likewise.
6660 (cgraph_decide_inlining_of_small_functions): Likewise.
6661 (cgraph_decide_inlining_incrementally): Likewise.
6662 (cgraph_estimate_growth): Rename to estimate_growth; move to
6663 ipa-inline-analysis.c.
6664 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6665 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6666 (compute_inline_parameters): Likewise.
6667 (compute_inline_parameters_for_current): Likewise.
6668 (pass_inline_parameters): Likewise.
6669 (inline_indirect_intraprocedural_analysis): Likewise.
6670 (analyze_function): Rename to inline_analyze_function; likewise.
6671 (add_new_function): Move to ipa-inline-analysis.c.
6672 (inline_generate_summary): Likewise.
6673 (inline_read_summary): Likewise.
6674 (inline_write_summary): Likewise.
6675 * Makefile.in (ipa-inline-analysis.c): New file.
6676
6677 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6678
6679 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6680 * configure: Regenerate.
6681
6682 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6683
6684 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6685 instead of tree_common.
6686 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6687 Likewise.
6688 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6689 TS_TYPED rather than TS_COMMON.
6690 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6691
6692 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6693
6694 PR target/45263
6695 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6696 r20 around calls of __tablejump_elpm__
6697
6698 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6699
6700 PR middle-end/48591
6701 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6702 NULL.
6703 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6704
6705 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6706
6707 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6708 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6709 (cfi_vec): New typedef.
6710 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6711 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6712 (cie_cfi_vec): New static variable.
6713 (cie_cfi_head): Delete.
6714 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6715 declaration changed. Use vector rather than list operations.
6716 (new_cfi): Don't initialize the dw_cfi_next field.
6717 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6718 rather than list operations.
6719 (lookup_cfa): Use vector rather than list operations.
6720 (output_cfis): New argument upto. Accept a cfi_vec rather than
6721 a dw_cfi_ref list head as argument. All callers changed.
6722 Iterate over the vector using upto as a maximum index.
6723 (output_all_cfis): New static function.
6724 (output_fde): Use vector rather than list operations. Use the
6725 new upto argument for output_cfis rather than manipulating a
6726 list.
6727 (dwarf2out_begin_prologue): Change initializations to match
6728 new struct members.
6729 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6730 from the vector length rather than searching for the end of a list.
6731 Use output_all_cfis.
6732 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6733
6734 2011-04-13 Nick Clifton <nickc@redhat.com>
6735
6736 * config/rx/rx.md (movmemsi): Do not use this pattern when
6737 volatile pointers are involved.
6738
6739 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6740
6741 * config/i386/sse.md (pinsrbits): Remove.
6742 (sse2_packsswb): Merge with *avx_packsswb.
6743 (sse2_packssdw): Merge with *avx_packssdw.
6744 (sse2_packuswb): Merge with *avx_packuswb.
6745 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6746 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6747 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6748 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6749 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6750 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6751 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6752 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6753 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6754 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6755 (sse2_loadld): Merge with *avx_loadld.
6756 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6757 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6758 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6759 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6760 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6761
6762 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6763
6764 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6765 calling TREE_CHAIN.
6766 * print-tree.c (print_node): Likewise.
6767 * tree-inline.c (copy_tree_r): Likewise.
6768 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6769 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6770 instead of TS_COMMON.
6771 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6772 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6773 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6774 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6775 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6776 ...and these...
6777 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6778 * tree.h: ...here.
6779 (TREE_CHAIN): Check for a TS_COMMON structure.
6780 (TREE_TYPE): Check for a TS_TYPED structure.
6781
6782 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6783
6784 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6785 cgraph_get_create_node instead of cgraph_node.
6786
6787 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6788
6789 * c-parser.c (c_parser_initelt): Updated call to
6790 objc_build_message_expr.
6791 (c_parser_postfix_expression): Likewise.
6792
6793 2011-04-12 Kai Tietz <ktietz@redhat.com>
6794
6795 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6796 MASK_MS_BITFIELD_LAYOUT bit.
6797
6798 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6799
6800 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6801 assert it is always true.
6802 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6803 moves.
6804
6805 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6806
6807 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6808 compiling Objective-C to be more efficient.
6809
6810 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6811
6812 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6813 argv_copied.
6814
6815 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6816
6817 * recog.h, genoutput.c, optabs.c: Revert last patch.
6818
6819 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6820
6821 PR target/48090
6822 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6823
6824 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6825
6826 * recog.h (insn_operand_data): Add an "allows_mem" field.
6827 * genoutput.c (output_operand_data): Initialize it.
6828 * optabs.c (maybe_legitimize_operand_same_code): New function.
6829 (maybe_legitimize_operand): Use it when matching the original
6830 op->value.
6831
6832 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6833
6834 * genpreds.c (process_define_predicate): Move most processing
6835 to gensupport.c. Continue to validate the expression.
6836 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6837 (process_define_predicate): Move processing to gensupport.c.
6838 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6839 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6840 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6841 argument.
6842 (valid_predicate_name_p): New function, split out from old
6843 genpreds.c:process_define_predicate.
6844 (process_define_predicate): New function, combining code from
6845 old genpreds.c and genrecog.c functions.
6846 (process_rtx): Call it for DEFINE_PREDICATE and
6847 DEFINE_SPECIAL_PREDICATE.
6848
6849 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6850
6851 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6852 size of a '%A' memory reference.
6853 (T_DREG, T_QREG): New neon_builtin_type_bits.
6854 (arm_init_neon_builtins): Assert that the load and store operands
6855 are neon_struct_operands.
6856 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6857 (NEON_ARG_MEMORY): New builtin_arg.
6858 (neon_dereference_pointer): New function.
6859 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6860 Handle NEON_ARG_MEMORY.
6861 (arm_expand_neon_builtin): Update after above interface changes.
6862 Use NEON_ARG_MEMORY for loads and stores.
6863 * config/arm/predicates.md (neon_struct_operand): New predicate.
6864 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6865 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6866 (V_four_elem): Tweak formatting.
6867 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6868 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6869 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6870 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6871 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6872 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6873 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6874 Use %A in the output template.
6875 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6876 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6877 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6878 the width of the memory access. Remove post-increment.
6879 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6880
6881 2011-04-12 Nick Clifton <nickc@redhat.com>
6882
6883 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6884 instruction for interrupt handlers if the target is the basic V850
6885 architecture.
6886 (expand_epilogue): Likewise.
6887
6888 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6889
6890 PR rtl-optimization/48549
6891 * combine.c (propagate_for_debug): Also stop after BB_END of
6892 this_basic_block. Process LAST and just stop processing after it.
6893 (combine_instructions): If last_combined_insn has been deleted,
6894 set last_combined_insn to its PREV_INSN.
6895
6896 2011-04-12 Richard Guenther <rguenther@suse.de>
6897
6898 PR tree-optimization/46076
6899 * gimple.h (struct gimple_statement_call): Add fntype field.
6900 (gimple_call_fntype): Adjust.
6901 (gimple_call_set_fntype): New function.
6902 * gimple.c (gimple_build_call_1): Set the call function type.
6903 * gimplify.c (gimplify_call_expr): Preserve the function
6904 type the frontend used for the call.
6905 (gimplify_modify_expr): Likewise.
6906 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6907 function type.
6908 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6909 function type.
6910 * tree-ssa.c (useless_type_conversion_p): Function pointer
6911 conversions are useless.
6912
6913 2011-04-12 Martin Jambor <mjambor@suse.cz>
6914
6915 * cgraph.h (cgraph_node): Remove function declaration.
6916 (cgraph_create_node): Declare.
6917 (cgraph_get_create_node): Likewise.
6918 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6919 Updated all callers.
6920 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6921 the decl does not already exist. Call cgraph_get_create_node instead
6922 of cgraph_node.
6923 (cgraph_get_create_node): New function.
6924 (cgraph_same_body_alias): Update comment.
6925 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6926 assert it does not return NULL.
6927 (cgraph_update_edges_for_call_stmt): Likewise.
6928 (cgraph_clone_edge): Likewise.
6929 (cgraph_create_virtual_clone): Likewise.
6930 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6931 instead of cgraph_node.
6932 (cgraph_add_new_function): Call cgraph_create_node or
6933 cgraph_get_create_node instead of cgraph_node.
6934 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6935 instead of cgraph_node.
6936 (record_eh_tables): Likewise.
6937 (mark_address): Likewise.
6938 (mark_load): Likewise.
6939 (build_cgraph_edges): Call cgraph_get_create_node instead
6940 of cgraph_node.
6941 (rebuild_cgraph_edges): Likewise.
6942 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6943 instead of cgraph_node.
6944 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6945 cgraph_node.
6946 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6947 cgraph_create_node instead of cgraph_node.
6948 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6949 of cgraph_node.
6950 * lto-cgraph.c (input_node): Likewise.
6951 * lto-streamer-in.c (input_function): Likewise.
6952 * varasm.c (mark_decl_referenced): Likewise.
6953 (assemble_alias): Likewise.
6954
6955 2011-04-12 Martin Jambor <mjambor@suse.cz>
6956
6957 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6958 instead of cgraph_node and assert it does not return NULL.
6959 * lto-streamer-in.c (lto_read_body): Likewise.
6960 * omp-low.c (new_omp_context): Likewise.
6961 (create_task_copyfn): Likewise.
6962 * tree-emutls.c (lower_emutls_function_body): Likewise.
6963 * matrix-reorg.c (transform_allocation_sites): Likewise.
6964
6965 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6966
6967 PR c/48552
6968 * c-typeck.c (build_asm_expr): Error out on attempts to use
6969 void type outputs or inputs for constraints that allow reg or
6970 don't allow memory.
6971
6972 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6973 Richard Earnshaw <rearnsha@arm.com>
6974
6975 PR target/48250
6976 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6977 to use sign-magnitude offsets. Reject unsupported unaligned
6978 cases. Add detailed description in comments.
6979 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6980 condition from TARGET_32BIT to TARGET_ARM.
6981
6982 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6983
6984 * tree.h (struct typed_tree): New.
6985 (struct tree_common): Include it instead of tree_base.
6986 (TREE_TYPE): Update for new location of type field.
6987 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6988 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6989 (union tree_node): Add typed field.
6990 * treestruct.def (TS_TYPED): New.
6991 * lto-streamer.c (check_handled_ts_structures): Handle it.
6992 * tree.c (MARK_TS_TYPED): New macro.
6993 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6994
6995 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6996
6997 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6998 (force_nonfallthru): Do not alter the loop nest if no basic block
6999 was created.
7000
7001 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7002
7003 * config/i386/sse.md (VI): New mode iterator.
7004 (SSEMODEI): Remove.
7005 (AVX256MODEI): Ditto.
7006 (AVXMODEF4P): Ditto.
7007 (avxvecpsmode): Ditto.
7008 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7009 (sse2_andnot<mode>3): New expander.
7010 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7011 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7012 (<any_logic:code><mode>3): Use VI mode iterator.
7013 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7014 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7015 (*andnottf3): Handle AVX three-operand constraints.
7016 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7017
7018 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7019 Robert Millan <rmh@gnu.org>
7020
7021 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7022 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7023 GNU_USER_DYNAMIC_LINKER64): Define.
7024 (REG_NAME): Don't undefine.
7025 (MD_UNWIND_SUPPORT): Undefine.
7026 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7027 (REG_NAME): Don't undefine.
7028 (MD_UNWIND_SUPPORT): Undefine.
7029 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7030
7031 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7032
7033 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7034 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7035
7036 2011-04-11 Xinliang David Li <davidxl@google.com>
7037
7038 * value-profile.c (check_ic_target): New function.
7039 (gimple_ic_transform): Sanity check indirect call target.
7040 * gimple-low.c (gimple_check_call_args): Interface change.
7041 (gimple_check_call_matching_types): New function.
7042 * tree-inline.c (tree_can_inline_p): Call new function.
7043
7044 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7045
7046 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7047 tree-pretty-print.h & realmpfr.h.
7048
7049 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7050
7051 PR middle-end/48464
7052 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7053 (setup_allocno_and_important_classes): Ditto.
7054
7055 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7056
7057 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7058 GNU_USER_DYNAMIC_LINKER.
7059 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7060 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7061 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7062 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7063 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7064 GNU_USER_TARGET_OS_CPP_BUILTINS.
7065 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7066 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7067 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7068 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7069 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7070 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7071 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7072 GNU_USER_TARGET_OS_CPP_BUILTINS.
7073 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7074 GNU_USER_DYNAMIC_LINKER.
7075 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7076 GNU_USER_TARGET_OS_CPP_BUILTINS.
7077 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7078 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7079 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7080 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7081 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7082 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7083 GNU_USER_DYNAMIC_LINKER64): Remove.
7084 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7086 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7087 GNU_USER_DYNAMIC_LINKER.
7088 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7089 GNU_USER_TARGET_OS_CPP_BUILTINS.
7090 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7091 GNU_USER_TARGET_OS_CPP_BUILTINS.
7092 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7093 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7094 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7095 GNU_USER_TARGET_OS_CPP_BUILTINS.
7096 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7097 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7098 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7099 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7100 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7101 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7102 GNU_USER_DYNAMIC_LINKER.
7103 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7104 GNU_USER_TARGET_OS_CPP_BUILTINS.
7105 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7106 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7107 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7108 GNU_USER_DYNAMIC_LINKER.
7109 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7110 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7111 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7112 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7113 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7114 GNU_USER_DYNAMIC_LINKER.
7115 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7116 GNU_USER_DYNAMIC_LINKERN32.
7117 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7118 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7119 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7120 GNU_USER_DYNAMIC_LINKER32.
7121 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7122 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7123 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7124 GNU_USER_DYNAMIC_LINKER.
7125 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7126 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7127 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7128 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7129 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7130 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7131 GNU_USER_DYNAMIC_LINKER32.
7132 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7133 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7134 GNU_USER_DYNAMIC_LINKER.
7135 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7136 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7137 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7138 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7139 GNU_USER_DYNAMIC_LINKER64.
7140 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7141 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7142 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7143 GNU_USER_DYNAMIC_LINKER.
7144 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7145 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7146 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7147 GNU_USER_DYNAMIC_LINKER.
7148 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7149 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7150 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7151 GNU_USER_DYNAMIC_LINKER32.
7152 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7153 GNU_USER_DYNAMIC_LINKER64.
7154 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7155 GNU_USER_DYNAMIC_LINKER64.
7156 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7158 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7159 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7160 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7161
7162 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7163
7164 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7165 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7166 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7167 GNU_USER_DYNAMIC_LINKER.
7168 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7169 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7170 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7171 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7172 GNU_USER_DYNAMIC_LINKER64.
7173 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7174 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7175 GNU_USER_LINK_EMULATION.
7176 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7177 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7178 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7179 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7180 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7181 CPP_SPEC, CC1_SPEC): Remove.
7182 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7183 (GNU_USER_DYNAMIC_LINKER): Define.
7184 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7185 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7186 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7187 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7188 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7189 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7190 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7191 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7192 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7193 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7194 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7195 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7196 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7197 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7198 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7199 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7200 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7201 GNU_USER_DYNAMIC_LINKER.
7202 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7203 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7204 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7205 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7206 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7207 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7208 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7209 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7210 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7211 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7212
7213 2011-04-11 Kai Tietz <ktietz@redhat.com>
7214
7215 PR target/9601
7216 PR target/11772
7217 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7218 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7219 comment.
7220 (ix86_is_msabi_thiscall): Removed.
7221 (ix86_is_type_thiscall): Likewise.
7222 (ix86_get_callcvt): New function.
7223 (ix86_comp_type_attributes): Simplify check.
7224 (ix86_function_regparm): Use ix86_get_callcvt for calling
7225 convention attribute checks.
7226 (ix86_return_pops_args): Likewise.
7227 (ix86_static_chain): Likewise.
7228 (x86_this_parameter): Likewise.
7229 (x86_output_mi_thunk): Likewise.
7230 (ix86_function_type_abi): Optimize check for types without attributes.
7231 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7232 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7233 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7234 by flag-values.
7235 (IX86_BASE_CALLCVT): Helper macro.
7236 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7237 Use ix86_get_callcvt for calling convention attribute checks and avoid
7238 symbol-decoration for stdcall in TARGET_RTD case.
7239 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7240 Likewise.
7241 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7242 for declaration.
7243
7244 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7245
7246 * config/i386/sse.md (VI_128): New mode iterator.
7247 (VI12_128): Rename from SSEMODE12.
7248 (VI14_128): Rename from SSEMODE14.
7249 (VI124_128): New mode iterator.
7250 (VI24_128): Rename from SSEMODE248.
7251 (VI248_128): Rename from SSEMODE248.
7252 (SSEMODE124C8): Remove.
7253 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7254 (*sse2_<plusminus_insn><mode>3): Merge with
7255 *avx_<plusminus_insn><mode>3.
7256 (*mulv8hi3): Merge with *avx_mulv8hi3.
7257 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7258 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7259 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7260 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7261 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7262 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7263 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7264 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7265 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7266 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7267 (*<smaxmin:code>v8hi3): Ditto.
7268 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7269 (*<smaxmin:code>v16qi3): Ditto.
7270 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7271 (*sse2_eq<mode>3): Ditto.
7272 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7273 (*sse2_gt<mode>3): Ditto.
7274 (vcondv2di): Split out of vcond<mode>.
7275 (vconduv2di): Split out of vcondu<mode>.
7276
7277 2011-04-11 Richard Guenther <rguenther@suse.de>
7278
7279 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7280 before calling tree_low_cst.
7281
7282 2011-04-11 Richard Guenther <rguenther@suse.de>
7283
7284 * stor-layout.c (layout_type): Compute all array index size operations
7285 in the original type.
7286 (initialize_sizetypes): Add comment.
7287 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7288
7289 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7290
7291 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7292
7293 2011-04-11 Martin Jambor <mjambor@suse.cz>
7294
7295 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7296 of cgraph_node, handle NULL return value.
7297 (cgraph_global_info): Likewise.
7298 (cgraph_rtl_info): Likewise.
7299 * tree-inline.c (estimate_num_insns): Likewise.
7300 * gimplify.c (unshare_body): Likewise.
7301 (unvisit_body): Likewise.
7302 (gimplify_body): Likewise.
7303 * predict.c (optimize_function_for_size_p): Likewise.
7304 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7305 (call_may_clobber_ref_p_1): Likewise.
7306 * varasm.c (function_section_1): Likewise.
7307 (assemble_start_function): Likewise.
7308
7309 2011-04-11 Martin Jambor <mjambor@suse.cz>
7310
7311 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7312 of cgraph_node.
7313 * final.c (rest_of_clean_state): Likewise.
7314 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7315 * passes.c (pass_init_dump_file): Likewise.
7316 (execute_all_ipa_transforms): Likewise.
7317 (function_called_by_processed_nodes_p): Likewise.
7318 * predict.c (maybe_hot_frequency_p): Likewise.
7319 (probably_never_executed_bb_p): Likewise.
7320 (compute_function_frequency): Likewise.
7321 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7322 (unnest_nesting_tree_1): Likewise.
7323 (lower_nested_functions): Likewise.
7324 * tree-optimize.c (execute_fixup_cfg): Likewise.
7325 (tree_rest_of_compilation): Likewise.
7326 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7327 * tree-sra.c (ipa_early_sra): Likewise.
7328 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7329 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7330 * ipa.c (record_cdtor_fn): Likewise.
7331 * ipa-inline.c (cgraph_early_inlining): Likewise.
7332 (compute_inline_parameters_for_current): Likewise.
7333 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7334 * ipa-pure-const.c (local_pure_const): Likewise.
7335 * ipa-split.c (split_function): Likewise.
7336 (execute_split_functions): Likewise.
7337 * cgraphbuild.c (build_cgraph_edges): Likewise.
7338 (rebuild_cgraph_edges): Likewise.
7339 (cgraph_rebuild_references): Likewise.
7340 (remove_cgraph_callee_edges): Likewise.
7341 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7342 (verify_cgraph_node): Likewise.
7343 (cgraph_analyze_functions): Likewise.
7344 (cgraph_preserve_function_body_p): Likewise.
7345 (save_inline_function_body): Likewise.
7346 (save_inline_function_body): Likewise.
7347 * tree-inline.c (copy_bb): Likewise.
7348 (optimize_inline_calls): Likewise.
7349
7350 2011-04-11 Martin Jambor <mjambor@suse.cz>
7351
7352 PR tree-optimization/48195
7353 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7354 ipa_check_create_edge_args.
7355 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7356 ipa_check_create_edge_args.
7357 * ipa-inline.c (inline_generate_summary): Do not call
7358 ipa_check_create_node_params and ipa_check_create_edge_args.
7359 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7360 ipa_check_create_edge_args.
7361
7362 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7363
7364 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7365 instead of loop.
7366 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7367 * function.c (record_hard_reg_sets): Likewise.
7368 * ira.c (compute_regs_asm_clobbered): Likewise.
7369 * sched-deps.c (sched_analyze_1): Likewise.
7370 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7371
7372 2011-04-09 Xinliang David Li <davidxl@google.com>
7373
7374 PR tree-optimization/PR48484
7375 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7376 has_valid_pred lazily
7377
7378 2011-04-09 Duncan Sands <baldrick@free.fr>
7379
7380 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7381
7382 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7383
7384 * combine.c (combine_validate_cost): Adjust comments. Set registered
7385 cost of I0 to zero at the end, if any.
7386
7387 2011-04-08 Xinliang David Li <davidxl@google.com>
7388
7389 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7390 to insane profile data.
7391
7392 2011-04-08 Xinliang David Li <davidxl@google.com>
7393
7394 * ipa-cp.c (ipcp_update_profiling): Correct
7395 negative scale factor due to insane profile data.
7396
7397 2011-04-08 Xinliang David Li <davidxl@google.com>
7398
7399 * final.c (dump_basic_block_info): New function.
7400 (final): Dump basic block.
7401 (final_scan_insn): Remove old dump.
7402
7403 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7404
7405 PR target/47829
7406 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7407 crtbegin/crtend.
7408
7409 2011-04-08 Michael Matz <matz@suse.de>
7410
7411 PR middle-end/48389
7412 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7413 functions.
7414 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7415 * rtl.h (rebuild_jump_labels_chain): Declare.
7416 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7417 insns inserted on edges.
7418
7419 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7420
7421 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7422 * config/arm/arm-arches.def: New.
7423 * config/arm/arm-opts.h: New.
7424 * config/arm/genopt.sh: New.
7425 * config/arm/arm-tables.opt: New (generated).
7426 * config/arm/arm.c (arm_handle_option, arm_target_help,
7427 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7428 (all_architectures): Get most table contents from arm-arches.def.
7429 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7430 arm_selected_tune here.
7431 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7432 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7433 (march=, mcpu=, mtune=): Use Enum and Var.
7434 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7435 (arm.o): Update dependencies.
7436
7437 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7438
7439 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7440 of header_file.
7441 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7442 (write_typed_alloc_defns): Likewise.
7443 (main): Calls write_typed_alloc_defns with output_header.
7444
7445 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7446
7447 PR inline-asm/48435
7448 * ira-color.c (setup_profitable_hard_regs): Add comments.
7449 Don't take prohibited hard regs into account.
7450 (setup_conflict_profitable_regs): Rename to
7451 get_conflict_profitable_regs.
7452 (check_hard_reg_p): Check prohibited hard regs.
7453
7454 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7455
7456 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7457 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7458 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7459
7460 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7461
7462 PR target/48366
7463 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7464 move from floating point to shift amount register.
7465 (emit_move_sequence): Remove secondary reload support for floating
7466 point to shift amount amount register copies.
7467 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7468 amount register copies.
7469 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7470 register, return false if mode isn't a scalar integer mode.
7471 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7472
7473 2011-04-08 Richard Guenther <rguenther@suse.de>
7474
7475 * gimple.c (gimple_call_flags): Remove kludge.
7476
7477 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7478
7479 * sel-sched.c (sel_region_init): Move call to
7480 sel_setup_region_sched_flags after setup_current_loop_nest.
7481
7482 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7483
7484 PR rtl-optimization/48272
7485 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7486 init_insn_reg_pressure_info. Adjust a caller.
7487 * sched-int.h (init_insn_reg_pressure_info): Declare.
7488 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7489 when sched-pressure is enabled.
7490
7491 2011-04-08 Richard Guenther <rguenther@suse.de>
7492
7493 * gimple.c (gimple_set_modified): Do not queue calls to
7494 MODIFIED_NORETURN_CALLS here ...
7495 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7496
7497 2011-04-08 Richard Guenther <rguenther@suse.de>
7498
7499 PR lto/48467
7500 * toplev.c (lang_dependent_init): Do not open asm_out_file
7501 in WPA mode, nor perform debug machinery initialization.
7502 (finalize): Do not unlink asm_out_file in WPA mode.
7503
7504 2011-04-08 Richard Guenther <rguenther@suse.de>
7505
7506 * gimple.h (gimple_call_fntype): New function.
7507 (gimple_call_return_type): Use it.
7508 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7509 * gimple-low.c (gimple_check_call_args): Likewise.
7510 * gimple.c (gimple_call_flags): Likewise.
7511 (gimple_call_arg_flags): Likewise.
7512 (gimple_call_return_flags): Likewise.
7513 * tree-cfg.c (verify_gimple_call): Likewise.
7514 (do_warn_unused_result): Likewise.
7515 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7516 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7517
7518 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7519
7520 PR rtl-optimization/48235
7521 * sel-sched.c (code_motion_process_successors): Recompute the last
7522 insn in basic block if control flow changed.
7523 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7524 Update condition for ilist_remove.
7525
7526 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7527
7528 PR rtl-optimization/48302
7529 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7530 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7531 it to record added preheader blocks.
7532 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7533 on to sel_add_loop_preheaders.
7534 (sel_region_init): Move call to setup_current_loop_nest after
7535 sel_init_bbs.
7536
7537 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7538
7539 PR target/48273
7540 * cfgloop.h (loop_has_exit_edges): New helper.
7541 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7542 non-clonable.
7543 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7544 that have no exit edges.
7545
7546 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7547
7548 PR rtl-optimization/48442
7549 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7550 all callers. Adjust assert.
7551
7552 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7553
7554 PR tree-optimization/48377
7555 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7556 is_packed to true even for types with smaller TYPE_ALIGN than
7557 TYPE_SIZE.
7558
7559 2011-04-08 Richard Guenther <rguenther@suse.de>
7560
7561 PR bootstrap/48513
7562 * doc/tm.texi: Re-generate.
7563
7564 2011-04-08 Wei Guozhi <carrot@google.com>
7565
7566 PR target/47855
7567 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7568 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7569 * config/arm/arm.md (*push_multi): Change the length computation to
7570 call a C function.
7571
7572 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7573
7574 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7575 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7576 * doc/tm.texi: Regenerate.
7577 * system.h (ASM_OUTPUT_BSS): Poison.
7578 * varasm.c (asm_output_bss): Remove function.
7579 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7580
7581 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7582 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7583 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7584 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7585 Likewise.
7586 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7587 Likewise.
7588 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7589 Likewise.
7590 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7591
7592 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7593
7594 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7595 EnumValue lines.
7596
7597 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7598
7599 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7600 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7601 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7602 OPT_mcpu32.
7603 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7604 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7605 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7606 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7607 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7608 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7609 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7610 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7611 options. Don't map other m68k options manually. Don't handle
7612 old-style options as canonical.
7613 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7614 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7615
7616 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7617
7618 * basic-block.h (force_nonfallthru): Move to...
7619 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7620 (force_nonfallthru): ...here.
7621 * cfghooks.c (force_nonfallthru): New function.
7622 * cfgrtl.c (force_nonfallthru): Rename into...
7623 (rtl_force_nonfallthru): ...this.
7624 (commit_one_edge_insertion): Do not set AUX field.
7625 (commit_edge_insertions): Do not discover new basic blocks.
7626 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7627 (cfg_layout_rtl_cfg_hooks): Likewise.
7628 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7629 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7630 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7631
7632 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7633
7634 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7635 Remove macros.
7636
7637 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7638
7639 * config/i386/sse.md: Update copyright year.
7640 (avxcvtvecmode): Remove.
7641 (sse_movhlps): Merge with *avx_movhlps.
7642 (sse_movlhps): Merge with *avx_movlhps.
7643 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7644 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7645 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7646 (sse_loadhps): Merge with *avx_loadhps.
7647 (sse_storelps): Merge with *avx_storelps.
7648 (sse_loadlps): Merge with *avx_loadlps.
7649 (sse_movss): Merge with *avx_movss.
7650 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7651 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7652 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7653 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7654 (vec_set<mode>_0): Ditto.
7655 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7656 (sse4_1_insertps): Merge with *avx_insertps.
7657 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7658 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7659 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7660 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7661 (sse2_storehpd): Merge with *avx_storehpd.
7662 (sse2_loadhpd): Merge with *avx_loadhpd.
7663 (sse2_loadlpd): Merge with *avx_loadlpd.
7664 (sse2_movsd): Merge with *avx_movsd.
7665 (*vec_concatv2df): Merge with *vec_concatv2df.
7666
7667 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7668
7669 PR debug/48343
7670 * combine.c (combine_instructions): Add last_combined_insn,
7671 update it if insn is after it, pass it to all try_combine calls.
7672 (try_combine): Add last_combined_insn parameter, pass it instead of
7673 i3 to propagate_for_debug.
7674
7675 2011-04-07 Nick Clifton <nickc@redhat.com>
7676
7677 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7678 to handle MDR <-> data register transfers.
7679 (movhi_internal): Likewise.
7680
7681 2011-04-07 Alan Modra <amodra@gmail.com>
7682
7683 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7684 previous stack info.
7685
7686 2011-04-07 Tom de Vries <tom@codesourcery.com>
7687
7688 PR target/43920
7689 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7690 flow_find_cross_jump. Swap variables to implement backward replacement.
7691 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7692
7693 2011-04-07 Tom de Vries <tom@codesourcery.com>
7694
7695 PR target/43920
7696 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7697 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7698 and bb2.
7699 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7700 src1 or src2. Redirect edges to the last basic block. Update
7701 frequency and count on multiple basic blocks in case of fallthru.
7702
7703 2011-04-07 Tom de Vries <tom@codesourcery.com>
7704
7705 PR target/43920
7706 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7707 function.
7708 (old_insns_match_p): Change return type. Replace return false/true
7709 with return dir_none/dir_both. Use can_replace_by.
7710 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7711 direction from dir_p. Register replacement direction in dir, last_dir
7712 and afterlast_dir. Handle new return type of old_insns_match_p using
7713 merge_dir. Return replacement direction in dir_p.
7714 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7715 return type of old_insns_match_p.
7716 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7717 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7718 flow_find_cross_jump.
7719 * basic-block.h (enum replace_direction): New type.
7720 (flow_find_cross_jump): Add parameter to declaration.
7721
7722 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7723
7724 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7725 (AVXMODEDCVTPS2DQ): Ditto.
7726 (VEC_FLOAT_MODE): Ditto.
7727 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7728 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7729 (<any_logic:code><mode>3): Use VF mode iterator.
7730 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7731 Use VF mode iterator.
7732 (copysign<mode>3): Use VF mode iterator.
7733 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7734 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7735 (*<any_logic:code><MODEF:mode>3): Merge with
7736 *avx_<any_logic:code><MODEF:mode>3.
7737 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7738 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7739 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7740 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7741 (sse2_cvtdq2ps): Use %v modifier.
7742 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7743 (avx_cvtps2dq<avxmodesuffix>): Remove.
7744 (sse2_cvtps2dq): Use %v modifier.
7745 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7746 (avx_cvttps2dq<avxmodesuffix>): Remove.
7747 (sse2_cvttps2dq): Use %v modifier.
7748 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7749 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7750 (sse2_cvtsd2siq): Fix insn template.
7751 (sse2_cvtsd2siq_2): Ditto.
7752 (sse2_cvttsd2siq): Ditto.
7753 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7754 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7755
7756 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7757
7758 * gcov-io.c: Use GCC Runtime Library Exception.
7759
7760 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7761
7762 PR debug/48466
7763 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7764 as base_reg whatever register reg has been eliminated to, instead
7765 of hardcoding STACK_POINTER_REGNUM.
7766
7767 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7768
7769 * doc/tm.texi.in: Document C target hooks as separate from general
7770 target hooks.
7771 * doc/tm.texi: Regenerate.
7772 * genhooks.c (struct hook_desc): Add docname field.
7773 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7774 docname field.
7775 (hook_array): Include c-target.def.
7776 (emit_documentation): Use docname field in output.
7777 (emit_init_macros): Take docname argument. Only emit definitions
7778 for hooks matching docname.
7779 (main): Expect additional arguments in all cases. Pass argument
7780 to emit_init_macros.
7781 * target.def: Move initial macro definitions and comments to
7782 target-hooks-macros.h.
7783 (gcc_targetcm): Move to c-family/c-target.def.
7784 * target.h (targetcm): Move declaration to c-family/c-target.h.
7785 * targhooks.c (default_handle_c_option): Move to
7786 c-family/c-opts.c.
7787 * targhooks.h (default_handle_c_option): Move declaration to
7788 c-family/c-common.h.
7789 * target-hooks-macros.h: New file.
7790 * config.gcc (target_has_targetcm): Define and use to add to
7791 c_target_objs and cxx_target_objs.
7792 * config/default-c.c: New file.
7793 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7794 of target.h and target-def.h.
7795 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7796 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7797 darwin_check_cfstring_format_arg): Make static.
7798 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7799 TARGET_STRING_OBJECT_REF_TYPE_P,
7800 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7801 * config/darwin-protos.h (darwin_objc_construct_string,
7802 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7803 declare.
7804 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7805 TARGET_STRING_OBJECT_REF_TYPE_P,
7806 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7807 * config/t-darwin (darwin-c.o): Update dependencies.
7808 * system.h (TARGET_HAS_TARGETCM): Poison.
7809 * Makefile.in (TARGET_H): Update.
7810 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7811 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7812 (default-c.o): New target.
7813 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7814 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7815 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7816 c-target.def.
7817 (build/genhooks.o): Update dependencies.
7818
7819 2011-04-06 Richard Guenther <rguenther@suse.de>
7820
7821 * ipa-inline.c (enum inlining_mode): Remove.
7822 (cgraph_flatten): Use some other token.
7823 (cgraph_edge_early_inlinable_p): New function, split out from ...
7824 (cgraph_perform_always_inlining): New function, split out from ...
7825 (cgraph_decide_inlining_incrementally): ... here.
7826 (cgraph_mark_inline_edge): Adjust.
7827 (cgraph_early_inlining): Re-structure.
7828 (pass_early_inline): Require SSA form.
7829
7830 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7831 Julian Brown <julian@codesourcery.com>
7832 Mark Shinwell <shinwell@codesourcery.com>
7833
7834 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7835 LO_REGS only for Thumb-1.
7836 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7837 be used in short instructions when optimising for size on Thumb-2.
7838
7839 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7840
7841 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7842 associated with user returns to be preserved.
7843
7844 2011-04-06 Tristan Gingold <gingold@adacore.com>
7845
7846 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7847 symbol_queue_size, DBXOUT_DECR_NESTING,
7848 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7849 if XCOFF_DEBUGGING_INFO.
7850
7851 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7852
7853 * config/i386/i386.md (attribute isa): New.
7854 (attribute enabled): New.
7855 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7856 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7857 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7858 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7859 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7860 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7861 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7862 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7863
7864 * config/i386/sse.md (VF): New mode iterator.
7865 (VF1): Ditto.
7866 (VF2): Ditto.
7867 (VF_128): Ditto.
7868 (SSEMODEF4): Remove.
7869 (attribute sse): Handle V8SF and V4DF modes.
7870 (<absneg:code><mode>2): Use VF mode iterator.
7871 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7872 mode iterator.
7873 (<plusminus_insn><mode>3): Use VF mode iterator.
7874 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7875 Use VF mode iterator.
7876 (<sse>_vm<plusminus_insn><mode>3): Merge with
7877 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7878 (mul<mode>3): Use VF mode iterator.
7879 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7880 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7881 mode iterator.
7882 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7883 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7884 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7885 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7886 mode iterator.
7887 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7888 Use VF1 mode iterator.
7889 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7890 (sqrt<VF2:mode>2): New expander.
7891 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7892 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7893 and sqrtv2df2. Use VF mode iterator.
7894 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7895 mode iterator.
7896 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7897 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7898 Use VF1 mode iterator.
7899 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7900 (<smaxmin:code><mode>3): Use VF mode iterator.
7901 (*<smaxmin:code><mode>3_finite): Merge with
7902 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7903 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7904 (<sse>_vm<smaxmin:code><mode>2): Merge with
7905 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7906 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7907 mode iterator.
7908 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7909 mode iterator.
7910 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7911 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7912 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7913 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7914 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7915 VF mode iterator.
7916 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7917 Use VF_128 mode iterator.
7918 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7919 mode iterator.
7920 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7921 VF_128 mode iterator.
7922 (vcond<mode>): Use VF mode iterator.
7923 * config/i386/predicates.md (sse_comparison_operator): Merge with
7924 avx_comparison_float_operator. Do not declare as special_predicate.
7925 * config/i386/i386.c (struct builtin_description): Update for renamed
7926 compare patterns.
7927 (ix86_expand_args_builtin): Ditto.
7928 (ix86_expand_sse_compare_mask): Ditto.
7929
7930 2011-04-06 Richard Guenther <rguenther@suse.de>
7931
7932 * tree-inline.c (estimate_num_insns): For calls simply account
7933 for all passed arguments and a used return value.
7934
7935 2011-04-06 Richard Guenther <rguenther@suse.de>
7936
7937 PR tree-optimization/47663
7938 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7939 call_stmt_time fields.
7940 (cgraph_edge_inlinable_p): Declare.
7941 (cgraph_edge_recursive_p): New inline function.
7942 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7943 (cgraph_clone_edge): Copy it.
7944 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7945 Account for call stmt time.
7946 (cgraph_estimate_time_after_inlining): Take edge argument.
7947 (cgraph_estimate_edge_growth): Account call stmt size.
7948 (cgraph_estimate_size_after_inlining): Take edge argument.
7949 (cgraph_mark_inline_edge): Adjust.
7950 (cgraph_check_inline_limits): Likewise.
7951 (cgraph_recursive_inlining_p): Remove.
7952 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7953 (cgraph_decide_recursive_inlining): Take edge argument and
7954 adjust.
7955 (cgraph_decide_inlining_of_small_functions): Do not avoid
7956 diags for recursive inlining here.
7957 (cgraph_flatten): Adjust.
7958 (cgraph_decide_inlining_incrementally): Likewise.
7959 (estimate_function_body_sizes): Remove call cost handling.
7960 (compute_inline_parameters): Initialize caller edge call costs.
7961 (cgraph_estimate_edge_growth): New function.
7962 (cgraph_estimate_growth): Use it.
7963 (cgraph_edge_badness): Likewise.
7964 (cgraph_check_inline_limits): Take an edge argument.
7965 (cgraph_decide_inlining_of_small_functions): Adjust.
7966 (cgraph_decide_inlining): Likewise.
7967 * tree-inline.c (estimate_num_insns): Only account for call
7968 return value if it is used.
7969 (expand_call_inline): Avoid diagnostics on recursive inline
7970 functions here.
7971 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7972 (input_edge): Input edge call costs.
7973
7974 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7975
7976 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7977
7978 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7979
7980 * doc/invoke.texi (Spec Files): Fix typo.
7981
7982 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7983
7984 * profile.c (branch_prob): Move declaration of local variable. Remove
7985 obsolete ??? comment. Expand the location explicitly instead of using
7986 the LOCATION_FILE and LOCATION_LINE macros.
7987
7988 2011-04-06 Wei Guozhi <carrot@google.com>
7989
7990 PR target/47855
7991 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7992 (arm_cond_branch): Likewise.
7993 (arm_cond_branch_reversed): Likewise.
7994 (arm_jump): Likewise.
7995 (push_multi): Likewise.
7996 * config/arm/constraints.md (Py): New constraint.
7997
7998 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7999
8000 PR bootstrap/48471
8001 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8002 Move these...
8003 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8004 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8005 #ifdef DBX_DEBUGGING_INFO.
8006
8007 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8008
8009 PR bootstrap/48403
8010 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8011 if old and new states differ.
8012
8013 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8014
8015 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8016 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8017 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8018 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8019 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8020 mcfv4e): Use Alias.
8021 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8022 ColdFire options to -mcpu= options.
8023
8024 2011-04-05 Jeff Law <law@redhat.com>
8025
8026 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8027 check if BB is a successor of LOOP->header and return
8028 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8029
8030 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8031
8032 * cprop.c (struct reg_use): Remove.
8033 (reg_use_table): Make an array of RTX.
8034 (find_used_regs, constprop_register, local_cprop_pass,
8035 bypass_block): Simplify users of reg_use_table.
8036 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8037 on one of the uses found by find_used_regs.
8038
8039 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8040
8041 PR bootstrap/48469
8042 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8043 declaration.
8044
8045 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8046
8047 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8048 as an rtx.
8049 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8050
8051 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8052
8053 PR middle-end/48441
8054 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8055
8056 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8057
8058 * combine.c: Include obstack.h.
8059 (struct insn_link): Define.
8060 (uid_log_links): Adjust type.
8061 (FOR_EACH_LOG_LINK): New macro.
8062 (insn_link_obstack): Declare.
8063 (alloc_insn_link): Define.
8064 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8065 type of link variables.
8066 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8067 (try_combine, record_promoted_values, distribute_notes): Likewise.
8068 (distribute_links): Likewise. Tweak prototype.
8069 (clear_log_links): Delete.
8070 (adjust_for_new_dest): Call alloc_insn_link.
8071 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8072
8073 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8074
8075 * gcse.c (modify_mem_list): Convert to an array of VECs.
8076 (canon_modify_mem_list, compute_transp): Tweak formatting.
8077 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8078 (load_killed_in_block_p): Likewise.
8079 (record_last_mem_set_info): Likewise.
8080 (clear_modify_mem_tables): Likewise.
8081
8082 2011-04-05 Tom de Vries <tom@codesourcery.com>
8083
8084 PR middle-end/48461
8085 * function.c (emit_use_return_register_into_block): Only define if
8086 HAVE_return.
8087
8088 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8089
8090 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8091
8092 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8093
8094 * config/rx/rx-opts.h: New.
8095 * config/rx/rx.c (rx_cpu_type): Remove.
8096 (rx_handle_option): Don't assert that global structures are in
8097 use. Access variables via opts pointer. Defer most handling of
8098 OPT_mint_register_. Use error_at.
8099 (rx_option_override): Handle deferred OPT_mint_register_ here.
8100 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8101 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8102 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8103 (rx_cpu_types): New Enum and EnumValue entries.
8104 (mint-register=): Use Defer and use Var accordingly.
8105
8106 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8107
8108 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8109 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8110 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8111 Move these...
8112 (debug_free_queue, debug_nesting, symbol_queue_index):
8113 ...and these...
8114 * dbxout.c: ...to here. Make static.
8115
8116 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8117
8118 * gcse.c (modify_pair): Define. Define a VEC of it.
8119 (canon_modify_mem_list): Convert to an array of VECs.
8120 (free_insn_expr_list_list): Delete.
8121 (clear_modify_mem_tables): Call VEC_free instead.
8122 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8123 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8124 (canon_list_insert, compute_transp): Likewise.
8125
8126 2011-04-05 Tom de Vries <tom@codesourcery.com>
8127
8128 PR target/43920
8129 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8130 for size.
8131
8132 2011-04-05 Tom de Vries <tom@codesourcery.com>
8133
8134 PR target/43920
8135 * function.c (emit_use_return_register_into_block): New function.
8136 (thread_prologue_and_epilogue_insns): Use
8137 emit_use_return_register_into_block.
8138
8139 2011-04-05 Tom de Vries <tom@codesourcery.com>
8140
8141 PR target/43920
8142 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8143 insn.
8144
8145 2011-04-05 Tom de Vries <tom@codesourcery.com>
8146
8147 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8148
8149 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8150
8151 * config/arm/arm.md (define_constants for unspec): Replace with
8152 define_c_enum.
8153 (define_constants for unspecv): Replace with define_c_enum.
8154 * config/arm/neon.md (define_constants for unspec): Replace with
8155 define_c_enum.
8156
8157 2011-04-04 Richard Henderson <rth@redhat.com>
8158
8159 PR bootstrap/48400
8160 * dwarf2out.c (output_line_info): Always emit line info from
8161 at least one section.
8162 (dwarf2out_init): Create text_section_line_info here ...
8163 (set_cur_line_info_table): ... not here.
8164
8165 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8166
8167 PR target/48380
8168 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8169 not called.
8170
8171 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8172
8173 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8174
8175 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8176 (expr_equiv_p): Remove.
8177 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8178 (hash_scan_set): Update call to insert_set_in_table.
8179 (dump_hash_table): Dump <dest, src> pair.
8180 (lookup_set): Simplify. Lookup <dest, src> pair.
8181 (compute_transp): Remove, fold heavily simplified code into...
8182 (compute_local_properties): ...here. Expect COMP and TRANSP
8183 unconditionally.
8184 (find_avail_set): Take set directly from struct expr.
8185 (find_bypass-set): Likewise.
8186 (bypass_block): Likewise.
8187 (cprop_insn): Likewise. Remove redundant INSN_P test.
8188
8189 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8190 checks on form of COND from find_implicit_sets to here.
8191 (find_implicit_sets): Cleanup control flow. Split critical edges
8192 if it exposes implicit sets. Allocate/resize implicit_sets as
8193 necessary.
8194 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8195 changed something. Run df_analyze after find_implicit_sets if any
8196 edges were split. Do not allocate implicit_sets here.
8197
8198 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8199 (gcse_obstack): Renamed to cprop_obstack.
8200 (GNEW, GNEWVEC, GNEWVAR): Remove.
8201 (gmalloc): Remove.
8202 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8203 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8204 (gcse_alloc): Likewise, and rename to cprop_alloc.
8205 (alloc_gcse_men, free_gcse_mem): Remove.
8206 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8207 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8208 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8209
8210 * cprop.c (oprs_not_set_p): Remove.
8211 (mark_set, mark_clobber): Remove.
8212 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8213 (reg_not_set_p): New function.
8214 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8215 (cprop_insn): Likewise.
8216 (cprop_jump): Use FOR_EACH_EDGE.
8217
8218 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8219
8220 PR bootstrap/48403
8221 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8222 (rank_for_schedule): Use scheduled_insns vector instead of
8223 last_scheduled_insn.
8224 (ok_for_early_queue_removal): Likewise.
8225 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8226 we have a dbg_cnt.
8227 (choose_ready): Likewise.
8228 (commit_schedule): Use VEC_iterate.
8229 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8230 a dbg_cnt, use it and ensure the first insn is in the ready list.
8231 (haifa_sched_init): Allocate scheduled_insns.
8232 (sched_extend_ready_list): Don't allocate it; reserve space.
8233 (haifa_sched_finish): Free it.
8234
8235 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8236
8237 * optc-gen.awk: Always remove type from Variable entry before
8238 recording in var_seen.
8239
8240 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8241
8242 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8243 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8244 call to tidy_fallthru_edges.
8245
8246 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8247
8248 * doc/options.texi (ToLower): Document.
8249 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8250 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8251 * opts.h (cl_option): Add cl_tolower field.
8252 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8253 arguments with lowercase strings.
8254 * config/rx/rx.opt (mcpu=): Add ToLower.
8255 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8256 argument.
8257
8258 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8259
8260 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8261
8262 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8263
8264 * config/vax/vax.c: Include reload.h.
8265
8266 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8267
8268 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8269 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8270 (sparc_preferred_reload_class): New function.
8271
8272 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8273
8274 PR debug/48401
8275 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8276 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8277
8278 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8279
8280 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8281 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8282
8283 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8284
8285 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8286 (ASM_OUTPUT_ALIGNED_BSS): Define.
8287
8288 2011-04-03 Michael Matz <matz@suse.de>
8289
8290 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8291 and next_slot members.
8292 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8293 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8294 (lto_streamer_cache_append): Declare.
8295 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8296 unsigned index, remove offset parameter, ensure that we append
8297 or update existing entries.
8298 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8299 parameter, update next_slot for append.
8300 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8301 parameter.
8302 (lto_streamer_cache_insert_at): Likewise.
8303 (lto_streamer_cache_append): New function.
8304 (lto_streamer_cache_lookup): Use unsigned index.
8305 (lto_streamer_cache_get): Likewise.
8306 (lto_record_common_node): Don't test tree_node_can_be_shared.
8307 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8308 (lto_streamer_cache_delete): Don't free offsets member.
8309 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8310 (lto_output_string_with_length): Use lto_output_data_stream.
8311 (lto_output_tree_header): Remove ix parameter, don't write it.
8312 (lto_output_builtin_tree): Likewise.
8313 (lto_write_tree): Adjust callers to above, don't track and write
8314 offset, write unsigned index.
8315 (output_unreferenced_globals): Don't emit all global vars.
8316 (write_global_references): Use unsigned indices.
8317 (lto_output_decl_state_refs): Likewise.
8318 (write_symbol): Likewise.
8319 * lto-streamer-in.c (lto_input_chain): Move earlier.
8320 (input_function): Use unsigned index.
8321 (input_alias_pairs): Don't read and then ignore all global vars.
8322 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8323 don't pass it back, use lto_streamer_cache_append.
8324 (lto_register_var_decl_in_symtab): Use unsigned index.
8325 (lto_register_function_decl_in_symtab): Likewise.
8326 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8327 index.
8328 (lto_get_builtin_tree): Don't read index, use
8329 lto_streamer_cache_append.
8330 (lto_read_tree): Adjust call to lto_materialize_tree.
8331
8332 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8333 don't use function calls in arguments to MIN.
8334
8335 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8336 twice.
8337
8338 * gimple.c (gimple_type_leader_entry): Mark deletable.
8339
8340 2011-04-03 Alan Modra <amodra@gmail.com>
8341
8342 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8343
8344 2011-04-03 Michael Matz <matz@suse.de>
8345
8346 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8347 an integer.
8348 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8349
8350 2011-04-03 Michael Matz <matz@suse.de>
8351
8352 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8353 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8354 without function context.
8355 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8356 current_function_decl and cfun.
8357
8358 2011-04-03 Michael Matz <matz@suse.de>
8359
8360 * tree.c (decl_init_priority_insert): Don't create entry for
8361 default priority.
8362 (decl_fini_priority_insert): Ditto.
8363 (fields_compatible_p, find_compatible_field): Remove.
8364 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8365 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8366
8367 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8368
8369 * combine.c (try_combine): Remove useless local variable.
8370
8371 2011-04-03 Richard Guenther <rguenther@suse.de>
8372 Ira Rosen <ira.rosen@linaro.org>
8373
8374 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8375 non-variable offsets and compare the remaining bases of the two
8376 accesses instead of looking for exact same data-ref.
8377
8378 2011-04-02 Kai Tietz <ktietz@redhat.com>
8379
8380 PR target/48416
8381 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8382
8383 * i386.c (ix86_is_msabi_thiscall): New helper function.
8384 (ix86_is_type_thiscall): New helper function.
8385 (ix86_comp_type_attributes): Handle thiscall for method-functions
8386 special.
8387 (init_cumulative_args): Likewise.
8388 (find_drap_reg): Likewise.
8389 (ix86_static_chain): Likewise.
8390 (x86_this_parameter): Likewise.
8391 (x86_output_mi_thunk): Likewise.
8392
8393 2011-04-01 Olivier Hainque <hainque@adacore.com>
8394 Nicolas Setton <setton@adacore.com>
8395 Eric Botcazou <ebotcazou@adacore.com>
8396
8397 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8398 (add_gnat_descriptive_type_attribute): New function.
8399 (gen_array_type_die): Call it.
8400 (gen_enumeration_type_die): Likewise.
8401 (gen_struct_or_union_type_die): Likewise.
8402 (modified_type_die): Likewise.
8403 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8404 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8405 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8406
8407 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8408
8409 PR bootstrap/48148
8410 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8411 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8412
8413 Revert:
8414 2011-03-17 Richard Guenther <rguenther@suse.de>
8415
8416 PR bootstrap/48148
8417 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8418 origin for decls in other ltrans units.
8419 (input_varpool_node): Likewise.
8420
8421 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8422
8423 PR middle-end/48335
8424 * expr.c (expand_assignment): Handle all possibilities
8425 if TO_RTX is CONCAT.
8426 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8427 (store_split_bit_field): If SUBREG_REG (op0) or
8428 op0 itself has smaller mode than word, return it
8429 for offset 0 and const0_rtx for out-of-bounds stores.
8430 If word is const0_rtx, skip it.
8431
8432 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8433
8434 * config/h8300/h8300.c (print_operand_address): Rename to...
8435 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8436 Call h8300_print_operand and h8300_print_operand_address instead of
8437 print_operand and print_operand_address. Declare.
8438 (print_operand): Renake to...
8439 (h8300_print_operand): ...this. Make static. Adjust comments.
8440 Call h8300_print_operand instead of print_operand. Declare.
8441 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8442 (h8300_register_move_cost): Likewise.
8443 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8444 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8445 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8446 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8447 * config/h8300/h8300-protos.h (print_operand): Delete.
8448 (print_operand_address): Delete.
8449
8450 2011-04-01 Richard Henderson <rth@redhat.com>
8451
8452 PR 48400
8453 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8454 in strict mode before dwarf4. Re-order tests to early out
8455 before switching sections.
8456
8457 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8458
8459 * config/h8300/constraints.md: New file.
8460 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8461 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8462 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8463 * config/h8300/predicates.md (bit_operand): Likewise.
8464 (incdec_operand): Use satisfies_constraint_M and
8465 satisfies_constraint_O. Don't use C code block.
8466 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8467 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8468 (compute_mov_length): Use satisfies_constraint_G.
8469 (fix_bit_operand): Use satisfies_constraint_U.
8470 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8471 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8472 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8473 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8474 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8475 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8476 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8477 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8478 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8479 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8480 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8481 (EXTRA_MEMORY_CONSTRAINT): Delete.
8482
8483 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8484 Michael Meissner <meissner@linux.vnet.ibm.com>
8485
8486 PR target/48262
8487 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8488 operands, as per the specifications.
8489
8490 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8491 (vec_extract_evenv4sf): Ditto.
8492 (vec_extract_evenv8hi): Ditto.
8493 (vec_extract_evenv16qi): Ditto.
8494 (vec_extract_oddv4si): Ditto.
8495
8496 2011-03-31 Mark Wielaard <mjw@redhat.com>
8497
8498 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8499 high_pc attribute if the CU has no associated code. Only output
8500 DW_AT_entry_pc for CU if not generating strict dwarf and
8501 dwarf_version < 4.
8502
8503 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8504
8505 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8506 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8507 out of ...
8508 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8509 * final.c (final_start_function): Call the new function rather
8510 than using a NULL argument for dwarf2out_frame_debug.
8511
8512 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8513 that contains the prologue.
8514
8515 * haifa-sched.c (queue_insn): New arg REASON. All callers
8516 changed. Print it in debugging output.
8517
8518 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8519
8520 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8521 Split most of the code into...
8522 (begin_move_insn): ... here. New function.
8523 (ebb_sched_info): Add a pointer to it.
8524 * haifa-sched.c (scheduled_insns): New static variable.
8525 (sched_extend_ready_list): Allocate it.
8526 (schedule_block): Use it to record the order of scheduled insns.
8527 Perform RTL changes to move insns only after all scheduling
8528 decisions have been made.
8529 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8530 begin_move_insn field.
8531 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8532 * sched-int.h (struct haifa_sched_info): Remove second argument
8533 from begin_schedule_ready hook. Add new member begin_move_insn.
8534 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8535 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8536
8537 * haifa-sched.c (prune_ready_list): New function, broken out of
8538 schedule_block.
8539 (schedule_block): Use it.
8540
8541 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8542
8543 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8544
8545 2011-04-01 Kai Tietz <ktietz@redhat.com>
8546
8547 * config.gcc (*-*-mingw*): Allow as option the
8548 posix threading model.
8549 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8550 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8551 definition.
8552 (CPP_SPEC): Add pthread/no-pthread handling.
8553 (LIB_SPEC): Likewise.
8554 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8555 (LIB_SPEC): Likewise.
8556 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8557 flag to pass -pthread option for shared libgcc build.
8558 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8559 for shared libgcc build.
8560 * config/i386/t-mingw-pthread: New file.
8561 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8562 New define to enable use of library pthread by default.
8563 * config/i386/mingw.opt (pthread): New driver option.
8564 (no-pthread): New driver option.
8565 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8566 * config/i386/mingw-w64.opt: Likewise.
8567
8568 2011-04-01 Gary Funck <gary@intrepid.com>
8569
8570 * c-decl.c (grokdeclarator): Fix formatting.
8571
8572 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8573
8574 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8575 instead of n_operands.
8576 (set_storage_via_setmem): Likewise.
8577 * optabs.c (maybe_gen_insn): Likewise.
8578 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8579 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8580 (mips_expand_builtin_direct): Likewise.
8581 * config/spu/spu.c (expand_builtin_args): Likewise.
8582
8583 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8584
8585 * recog.h (insn_data_d): Add n_generator_args.
8586 * genoutput.c (data): Likewise.
8587 (output_insn_data): Print it.
8588 (max_opno, num_dups): Delete.
8589 (scan_operands): Just fill in "d->operand[...]".
8590 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8591
8592 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8593
8594 * gensupport.h (pattern_stats): New structure.
8595 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8596 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8597 (max_operand_1, max_operand_vec): Delete.
8598 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8599
8600 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8601
8602 * emit-rtl.c (emit_pattern_after_setloc): New function.
8603 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8604 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8605 (emit_pattern_after): New function.
8606 (emit_insn_after, emit_jump_insn_after): Call it.
8607 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8608 (emit_pattern_before_setloc): New function.
8609 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8610 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8611 Likewise.
8612 (emit_pattern_before): New function.
8613 (emit_insn_before, emit_jump_insn_before): Call it.
8614 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8615
8616 2011-03-31 Richard Henderson <rth@redhat.com>
8617
8618 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8619 (dw_separate_line_info_entry): Remove.
8620 (enum dw_line_info_opcode): New.
8621 (dw_line_info_entry): Use it.
8622 (dw_line_info_table, dw_line_info_table_p): New.
8623 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8624 (line_info_table, line_info_label_num): Remove.
8625 (line_info_table_in_use): Remove.
8626 (separate_line_info_table): Remove.
8627 (separate_line_info_table_allocated): Remove.
8628 (separate_line_info_table_in_use): Remove.
8629 (LINE_INFO_TABLE_INCREMENT): Remove.
8630 (line_info_label_num): New.
8631 (cur_line_info_table): New.
8632 (text_section_line_info, cold_text_section_line_info): New.
8633 (separate_line_info): New.
8634 (SEPARATE_LINE_CODE_LABEL): Remove.
8635 (print_dwarf_line_table): Remove.
8636 (debug_dwarf): Don't dump it.
8637 (output_one_line_info_table): New.
8638 (output_line_info): Use it.
8639 (new_line_info_table): New.
8640 (set_cur_line_info_table): New.
8641 (dwarf2out_switch_text_section): Use it.
8642 (dwarf2out_begin_function): Likewise.
8643 (push_dw_line_info_entry): New.
8644 (dwarf2out_source_line): Rewrite for new line info tables.
8645 (dwarf2out_init): Remove dead initailizations.
8646
8647 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8648
8649 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8650 various flags.
8651 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8652 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8653 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8654 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8655 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8656 * opt-functions.awk (flag_init, switch_bit_fields): New.
8657 (switch_flags): Don't handle flags moved to bit-fields. Don't
8658 generate CL_MISSING_OK or CL_SAVE.
8659 * optc-gen.awk: Update to generate bit-field output as well as
8660 flags field.
8661 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8662 bit-field instead of CL_REJECT_DRIVER flag.
8663 * opts-common.c (generate_canonical_option,
8664 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8665 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8666 instead of CL_REJECT_NEGATIVE flag.
8667 * toplev.c (print_switch_values): Use cl_report bit-field instead
8668 of CL_REPORT flag.
8669
8670 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8671
8672 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8673 a zero minimum index only if it is redundant.
8674
8675 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8676
8677 PR rtl-optimization/48381
8678 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8679 instead of ira_class_hard_reg_index for calculating conflicting
8680 hard registers.
8681
8682 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8683
8684 * cprop.c: Clean up hash table building.
8685 (reg_avail_info): Remove.
8686 (oprs_available_p): Remove.
8687 (record_last_reg_set_info): Remove.
8688 (record_last_set_info): Remove.
8689 (reg_available_p): New function.
8690 (gcse_constant_p): Do not treat unfolded conditions as constants.
8691 (make_set_regs_unavailable): New function.
8692 (hash_scan_set): Simplify with new reg_available_p.
8693 (compute_hash_table_work): Traverse insns stream only once.
8694 Do not compute reg_avail_info. Traverse insns in reverse order.
8695 Record implicit sets after recording explicit sets from the block.
8696
8697 2011-03-31 Michael Matz <matz@suse.de>
8698
8699 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8700
8701 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8702
8703 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8704 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8705 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8706 (h8300_mode_dependent_address_p): New function.
8707 (h8300_get_index): Make static.
8708
8709 2011-03-31 Jeff Law <law@redhat.com>
8710
8711 * reload1.c (elimination_effects): Fix typo in recent change.
8712
8713 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8714 typo potentially leading to null pointer dereference.
8715
8716 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8717 (setup_save_areas): Corresponding changes to avoid useless
8718 assignments.
8719
8720 * jump.c (reversed_comparison_code_parts): Avoid successive return
8721 statements when REVERSE_CONDITION is defined.
8722
8723 * expr.c (expand_assignment): Avoid useless assignments.
8724 (expand_expr_real_1): Likewise.
8725 (expand_expr_real_2): Avoid useless statements.
8726
8727 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8728
8729 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8730
8731 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8732 statements.
8733
8734 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8735
8736 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8737
8738 PR target/47109
8739 * doc/tm.texi.in (TARGET_VERSION): Remove.
8740 * doc/tm.texi: Regenerate.
8741 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8742 * collect2.c (main): Don't use TARGET_VERSION.
8743 * mips-tdump.c (main): Don't use TARGET_VERSION.
8744 * mips-tfile.c (main): Don't use TARGET_VERSION.
8745 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8746 * config/rs6000/vxworksae.h: Remove.
8747 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8748 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8749 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8750 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8751 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8752 * config/arm/arm.h (TARGET_VERSION): Remove.
8753 * config/arm/coff.h (TARGET_VERSION): Remove.
8754 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8755 * config/arm/elf.h (TARGET_VERSION): Remove.
8756 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8757 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8758 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8759 * config/arm/pe.h (TARGET_VERSION): Remove.
8760 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8761 * config/arm/semi.h (TARGET_VERSION): Remove.
8762 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8763 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8764 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8765 * config/avr/avr.h (TARGET_VERSION): Remove.
8766 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8767 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8768 * config/frv/frv.h (TARGET_VERSION): Remove.
8769 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8770 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8771 * config/i386/darwin.h (TARGET_VERSION): Remove.
8772 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8773 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8774 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8775 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8776 * config/i386/gnu.h (TARGET_VERSION): Remove.
8777 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8778 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8779 * config/i386/linux.h (TARGET_VERSION): Remove.
8780 * config/i386/linux64.h (TARGET_VERSION): Remove.
8781 * config/i386/lynx.h (TARGET_VERSION): Remove.
8782 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8783 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8784 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8785 * config/i386/netware.h (TARGET_VERSION): Remove.
8786 * config/i386/nto.h (TARGET_VERSION): Remove.
8787 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8788 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8789 * config/ia64/elf.h (TARGET_VERSION): Remove.
8790 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8791 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8792 * config/ia64/linux.h (TARGET_VERSION): Remove.
8793 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8794 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8795 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8796 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8797 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8798 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8799 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8800 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8801 * config/m68k/linux.h (TARGET_VERSION): Remove.
8802 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8803 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8804 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8805 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8806 * config/mep/mep.h (TARGET_VERSION): Remove.
8807 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8808 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8809 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8810 * config/mips/linux.h (TARGET_VERSION): Remove.
8811 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8812 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8813 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8814 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8815 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8816 * config/pa/pa.h (TARGET_VERSION): Remove.
8817 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8818 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8819 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8820 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8821 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8822 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8823 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8824 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8825 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8826 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8827 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8828 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8829 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8830 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8831 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8832 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8833 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8834 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8835 * config/s390/linux.h (TARGET_VERSION): Remove.
8836 * config/s390/s390.h (TARGET_VERSION): Remove.
8837 * config/s390/tpf.h (TARGET_VERSION): Remove.
8838 * config/score/score.h (TARGET_VERSION): Remove.
8839 * config/sh/linux.h (TARGET_VERSION): Remove.
8840 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8841 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8842 * config/sh/sh.h (TARGET_VERSION): Remove.
8843 * config/sh/sh64.h (TARGET_VERSION): Remove.
8844 * config/sh/superh.h (TARGET_VERSION): Remove.
8845 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8846 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8847 * config/sparc/linux.h (TARGET_VERSION): Remove.
8848 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8849 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8850 TARGET_NAME32, TARGET_NAME): Remove.
8851 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8852 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8853 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8854 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8855 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8856 * config/spu/spu.h (TARGET_VERSION): Remove.
8857 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8858 * config/v850/v850.h (TARGET_VERSION): Remove.
8859 * config/vax/linux.h (TARGET_VERSION): Remove.
8860 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8861 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8862 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8863
8864 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8865
8866 PR target/48142
8867 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8868 frame-related from frame-unrelated adjustments to the stack pointer.
8869
8870 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8871
8872 * common.opt (fdebug-types-section): Move earlier.
8873 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8874
8875 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8876
8877 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8878 var.
8879
8880 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8881
8882 * tree.h (CASE_CHAIN): Define.
8883 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8884 (gimple_redirect_edge_and_branch): Likewise.
8885
8886 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8887
8888 PR middle-end/48367
8889 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8890 calculation.
8891
8892 2011-03-30 Jeff Law <law@redhat.com>
8893
8894 * PR bootstrap/48371
8895 * reload1.c (reload): Fix botch in last change.
8896
8897 * reload.h (struct reload): Fix typo introduced in last change.
8898
8899 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8900
8901 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8902 Undocumented. Remove help text.
8903 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8904 -mhard-float.
8905
8906 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8907
8908 * doc/options.texi (NegativeAlias): Document.
8909 (Alias): Mention NegativeAlias.
8910 * opt-functions.awk: Handle NegativeAlias.
8911 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8912 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8913 * opts.h (CL_NEGATIVE_ALIAS): Define.
8914 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8915 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8916 OPT_mspe_.
8917 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8918 Alias entries.
8919 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8920 mno-spe and mno-isel instead of mspe=no and -misel=no.
8921
8922 2011-03-29 Mark Wielaard <mjw@redhat.com>
8923
8924 * common.opt (fdebug-types-section): New flag.
8925 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8926 * dwarf2out.c (use_debug_types): New define.
8927 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8928 (print_die): Guard output of type unit signatures using
8929 use_debug_types.
8930 (build_abbrev_table): Replace assert of dwarf_version >= 4
8931 with assert on use_debug_types.
8932 (size_of_die): Likewise.
8933 (unmark_dies): Likewise.
8934 (value_format): Decide AT_ref_external form on use_debug_types.
8935 (output_die): Replace dwarf_version version check guard with
8936 use_debug_types where appropriate.
8937 (modified_type_die): Likewise.
8938 (gen_reference_type_die): Likewise.
8939 (dwarf2out_start_source_file): Likewise.
8940 (dwarf2out_end_source_file): Likewise.
8941 (prune_unused_types_walk_attribs): Likewise.
8942 (dwarf2out_finish): Likewise.
8943
8944 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8945
8946 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8947
8948 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8949
8950 PR rtl-optimization/48332
8951 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8952 mode of input operand N and modeN to its actual mode.
8953
8954 2011-03-30 Jeff Law <law@redhat.com>
8955
8956 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8957 define accessor macro.
8958 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8959 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8960 (reg_equiv_init): Likewise.
8961 (reg_equivs_size): New variable.
8962 (reg_equiv_init_size): Remove.
8963 (allocate_initial_values): Move prototype to here from....
8964 * integrate.h (allocate_initial_values): Remove prototype.
8965 * integrate.c: Include reload.h.
8966 (allocate_initial_values): Corresponding changes.
8967 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8968 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8969 (update_equiv_regs): Corresponding changes.
8970 (ira): Corresponding changes.
8971 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8972 (push_secondary_reload): Corresponding changes.
8973 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8974 (make_memloc, find_reloads_address): Corresponding changes.
8975 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8976 (find_reloads_address_1): Corresponding changes.
8977 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8978 (refers_to_regno_for_reload_p): Corresponding changes.
8979 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8980 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8981 * reload1.c: Include ggc.h.
8982 (grow_reg_equivs): New function.
8983 (replace_pseudos_in, reload): Corresponding changes.
8984 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8985 (eliminate_regs_1, elimination_effects): Corresponding changes.
8986 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8987 (delete_output_reload): Likewise.
8988 * caller-save.c (mark_referenced_regs): Corresponding changes.
8989 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8990 * frv/predicates.md (frv_load_operand): Corresponding changes.
8991 * microblaze/microblaze.c (double_memory_operand): Corresponding
8992 changes.
8993 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8994 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8995 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8996 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8997 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8998 changes.
8999 * pa/pa.c (emit_move_sequence): Corresponding changes.
9000 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9001
9002 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9003
9004 PR target/47551
9005 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9006 structure modes. Don't check neon_vector_mem_operand for
9007 vector or structure modes.
9008
9009 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9010 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9011
9012 PR target/43590
9013 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9014 operand 1 and reshuffle the operands to match.
9015 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9016
9017 2011-03-30 Christian Schüler <cschueler@gmx.de>
9018
9019 PR driver/48208
9020 * config/c.opt (F): Added 'Driver' to -F option.
9021
9022 PR driver/48260
9023 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9024 handler function.
9025 * config/darwin.opt: Added '-arch' option.
9026
9027 2011-03-30 Nick Clifton <nickc@redhat.com>
9028
9029 * config/rx/rx.md: Add peepholes and patterns to combine
9030 extending loads and simple arithmetic instructions.
9031 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9032 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9033 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9034 modes to use pre-decrement and post-increment addressing.
9035 (rx_is_restricted_memory_address): Add range checking of REG+INT
9036 addresses.
9037 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9038 (rx_memory_move_cost): Adjust cost of stores.
9039 (rx_adjust_insn_length): New function.
9040
9041 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9042
9043 PR c/48305
9044 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9045 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9046 matching arg00/arg01 types.
9047
9048 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9049
9050 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9051 last_location to UNKNOWN_LOCATION.
9052
9053 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9054
9055 PR target/48349
9056 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9057 FLOAT_SSE_REGS.
9058
9059 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9060 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9061
9062 PR bootstrap/48337
9063 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9064 Init(PROCESSOR_V7).
9065 (sparc_cpu): Likewise.
9066 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9067 PROCESSOR_V7.
9068
9069 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9070
9071 PR target/48336
9072 PR middle-end/48342
9073 PR rtl-optimization/48345
9074 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9075 hard regs for given mode from profitable regs when doing secondary
9076 allocation.
9077
9078 2011-03-29 Jeff Law <law@redhat.com>
9079
9080 PR bootstrap/48327
9081 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9082 do_not_duplicate field.
9083 (lookup_redirection_data): Corresponding changes.
9084 (create_duplicates): Always create a template block.
9085 (redirect_edges): Remove code which reused the original block
9086 when it was going to become unreachable code.
9087 (thread_block): Don't set do_not_duplicate field.
9088
9089 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9090
9091 * lto-opts.c (register_user_option_p, lto_register_user_option):
9092 Make type argument unsigned.
9093 * lto-streamer.h (lto_register_user_option): Make type argument
9094 unsigned.
9095 * opth-gen.awk: Make CL_* macros unsigned.
9096 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9097 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9098 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9099 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9100 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9101 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9102 (find_opt): Make lang_mask argument unsigned.
9103
9104 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9105
9106 PR rtl-optimization/48331
9107 PR rtl-optimization/48334
9108 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9109 for any used algorithm.
9110
9111 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9112
9113 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9114 to parent_max.
9115
9116 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9117
9118 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9119 (alpha_option_override): Don't set alpha_sr_alias_set.
9120 (emit_frame_store_1): Use gen_frame_mem rather than calling
9121 set_mem_alias_set.
9122 (alpha_expand_epilogue): Ditto.
9123
9124 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9125
9126 PR tree-optimization/48290
9127 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9128 vectorization, check that relevant phis in the basic block after
9129 the inner loop are really inner loop's exit phis.
9130
9131 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9132
9133 PR debug/48190
9134 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9135 (cached_dw_loc_list_def): New structure.
9136 (cached_dw_loc_list): New typedef.
9137 (cached_dw_loc_list_table): New variable.
9138 (cached_dw_loc_list_table_hash): New function.
9139 (cached_dw_loc_list_table_eq): Likewise.
9140 (add_location_or_const_value_attribute): Take a bool cache_p.
9141 Cache the list when the parameter is true.
9142 (gen_formal_parameter_die): Update caller.
9143 (gen_variable_die): Likewise.
9144 (dwarf2out_finish): Likewise.
9145 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9146 while generating debug info for the decl.
9147 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9148 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9149 (resolve_addr): Cache the result of resolving a chain of
9150 location lists.
9151
9152 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9153
9154 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9155 conflict object hard regset nodes have intersecting hard reg sets.
9156
9157 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9158 after regstat_init_n_sets_and_refs.
9159
9160 * ira.c: Add more comments at the top.
9161 (setup_stack_reg_pressure_class, setup_pressure_classes):
9162 Add comments how we compute the register pressure classes.
9163 (setup_allocno_and_important_classes): Add more comments.
9164 (setup_class_translate_array, reorder_important_classes)
9165 (setup_reg_class_relations): Add comments.
9166
9167 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9168 start of the file.
9169
9170 * ira-color.c: Add 2011 to the Copyright line.
9171 (assign_hard_reg): Add more comments.
9172 (improve_allocation): Ditto.
9173
9174 * ira-costs.c: Add 2011 to the Copyright line.
9175 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9176 comments.
9177 (setup_regno_cost_classes_by_mode): Ditto.
9178
9179 Initial patches from ira-improv branch:
9180
9181 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9182
9183 * ira-build.c (ira_create_object): Remove initialization of
9184 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9185 (ira_create_allocno): Remove initialization of
9186 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9187 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9188 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9189 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9190 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9191 Initialize ALLOCNO_ADD_DATA.
9192 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9193 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9194 ALLOCNO_REG.
9195 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9196 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9197
9198 * ira.c (ira_reallocate): Remove.
9199 (setup_pressure_classes): Call
9200 ira_init_register_move_cost_if_necessary. Use
9201 ira_register_move_cost instead of ira_get_register_move_cost.
9202 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9203 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9204
9205 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9206 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9207 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9208 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9209 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9210 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9211 Fix formatting.
9212 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9213 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9214 (struct allocno_color_data): New.
9215 (allocno_color_data_t): New typedef.
9216 (allocno_color_data): New definition.
9217 (ALLOCNO_COLOR_DATA): New macro.
9218 (struct object_color_data): New.
9219 (object_color_data_t): New typedef.
9220 (object_color_data): New definition.
9221 (OBJECT_COLOR_DATA): New macro.
9222 (update_copy_costs, calculate_allocno_spill_cost): Call
9223 ira_init_register_move_cost_if_necessary. Use
9224 ira_register_move_cost instead of ira_get_register_move_cost.
9225 (move_spill_restore, update_curr_costs): Ditto.
9226 (allocno_spill_priority): Make it inline.
9227 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9228 (struct coalesce_data, coalesce_data_t): New.
9229 (allocno_coalesce_data): New definition.
9230 (ALLOCNO_COALESCE_DATA): New macro.
9231 (merge_allocnos, coalesced_allocno_conflict_p): Use
9232 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9233 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9234 (coalesce_allocnos): Ditto.
9235 (setup_coalesced_allocno_costs_and_nums): Ditto.
9236 (collect_spilled_coalesced_allocnos): Ditto.
9237 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9238 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9239 (coalesce_spill_slots): Ditto.
9240 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9241 free allocno_coalesce_data.
9242
9243 * ira-conflicts.c: Fix formatting.
9244 (process_regs_for_copy): Call
9245 ira_init_register_move_cost_if_necessary. Use
9246 ira_register_move_cost instead of ira_get_register_move_cost.
9247 (build_object_conflicts): Optimize.
9248
9249 * ira-costs.c (record_reg_classes): Optimize. Call
9250 ira_init_register_move_cost_if_necessary. Use
9251 ira_register_move_cost, ira_may_move_in_cost, and
9252 ira_may_move_out_cost instead of ira_get_register_move_cost and
9253 ira_get_may_move_cost.
9254 (record_address_regs): Ditto.
9255 (scan_one_insn): Optimize.
9256 (find_costs_and_classes): Optimize.
9257 (process_bb_node_for_hard_reg_moves): Call
9258 ira_init_register_move_cost_if_necessary. Use
9259 ira_register_move_cost instead of ira_get_register_move_cost.
9260
9261 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9262 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9263 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9264 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9265 definitions.
9266 (ira_initiate_emit_data, ira_finish_emit_data)
9267 (create_new_allocno): New functions.
9268 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9269 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9270 Use ira_register_move_cost instead of ira_get_register_move_cost.
9271
9272 * ira-int.h: Fix some comments.
9273 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9274 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9275 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9276 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9277 add_data.
9278 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9279 bitfield after mode. Make hard_regno a short int. Make
9280 hard_regno short. Remove first_coalesced_allocno and
9281 next_coalesced_allocno. Move mem_optimized_dest_p,
9282 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9283 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9284 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9285 temp, colorable_p. Add new member add_data.
9286 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9287 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9288 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9289 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9290 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9291 (ALLOCNO_ADD_DATA): New macro.
9292 (ira_emit_data_t): New typedef.
9293 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9294 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9295 from struct ira_allocno.
9296 (ALLOCNO_EMIT_DATA): New macro.
9297 (ira_allocno_emit_data, allocno_emit_reg): New.
9298 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9299 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9300 (OBJECT_ADD_DATA): New macro.
9301 (ira_reallocate): Remove.
9302 (ira_initiate_emit_data, ira_finish_emit_data): New.
9303 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9304 (ira_init_register_move_cost_if_necessary): New.
9305 (ira_object_conflict_iter_next): Merge into
9306 ira_object_conflict_iter_cond.
9307 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9308
9309 * ira-live.c (process_single_reg_class_operands): Call
9310 ira_init_register_move_cost_if_necessary. Use
9311 ira_register_move_cost instead of ira_get_register_move_cost.
9312
9313 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9314
9315 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9316
9317 * ira-costs.c: Fix formatting.
9318 (cost_classes, cost_classes_num): Remove.
9319 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9320 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9321 (cost_classes_del, cost_classes_htab): New.
9322 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9323 (initiate_regno_cost_classes, setup_cost_classes): New.
9324 (setup_regno_cost_classes_by_aclass): New.
9325 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9326 (record_reg_classes): Use regno_cost_classes instead of
9327 cost_classes. Move checking opposite operand up.
9328 (record_address_regs): Use regno_cost_classes
9329 instead of cost_classes.
9330 (scan_one_insn): Ditto. Use always general register.
9331 (print_allocno_costs): Use regno_cost_classes instead of
9332 cost_classes.
9333 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9334 (find_costs_and_classes): Set up cost classes for each registers.
9335 Use also their mode for this. Use regno_cost_classes instead of
9336 cost_classes.
9337 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9338 cost_classes.
9339 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9340 (ira_costs, ira_set_pseudo_classes): Call
9341 initiate_regno_cost_classes and finish_regno_cost_classes.
9342
9343 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9344
9345 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9346
9347 * target.def (ira_cover_classes): Remove.
9348
9349 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9350
9351 * doc/tm.texi.in: Ditto.
9352
9353 * ira-conflicts.c: Remove mentioning cover classes from the file.
9354 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9355 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9356
9357 * targhooks.c (default_ira_cover_classes): Remove.
9358
9359 * targhooks.h (default_ira_cover_classes): Ditto.
9360
9361 * haifa-sched.c: Remove mentioning cover classes from the file.
9362 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9363 ira_pressure_classes and ira_pressure_classes_num instead of
9364 ira_reg_class_cover_size and ira_reg_class_cover. Use
9365 sched_regno_pressure_class instead of sched_regno_cover_class.
9366 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9367 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9368
9369 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9370 classes from the file.
9371 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9372 (struct object_hard_regs, struct object_hard_regs_node): New.
9373 (struct ira_object): New members profitable_hard_regs,
9374 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9375 (struct ira_allocno): Rename cover_class to aclass. Rename
9376 cover_class_cost and updated_cover_class_cost to class_cost and
9377 updated_class_cost. Remove splay_removed_p and
9378 left_conflict_size. Add new members colorable_p.
9379 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9380 (ALLOCNO_COLORABLE_P): New macro.
9381 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9382 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9383 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9384 (OBJECT_...): Rename parameter C to O.
9385 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9386 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9387 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9388 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9389 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9390 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9391 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9392 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9393 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9394 x_ira_reg_class_subunion.
9395 (ira_max_memory_move_cost, ira_max_register_move_cost)
9396 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9397 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9398 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9399 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9400 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9401 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9402 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9403 (ira_tune_allocno_costs_and_cover_classes): Rename to
9404 ira_tune_allocno_costs.
9405 (ira_debug_hard_regs_forest): New.
9406 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9407 (ira_object_conflict_iter_next): Fix comments.
9408 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9409 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9410 cover_class to aclass.
9411 (ira_allocate_and_accumulate_costs): Ditto.
9412 (ira_allocate_and_set_or_copy_costs): Ditto.
9413
9414 * opts.c (decode_options): Remove ira_cover_class check.
9415
9416 * ira-color.c: Remove mentioning cover classes from the file. Use
9417 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9418 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9419 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9420 (splay-tree.h): Remove include.
9421 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9422 before copy_freq_compare_func.
9423 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9424 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9425 New definitions.
9426 (hard_regs_roots, hard_regs_node_vec): Ditto.
9427 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9428 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9429 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9430 (create_new_object_hard_regs_node): Ditto.
9431 (add_new_object_hard_regs_node_to_forest): Ditto.
9432 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9433 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9434 Ditto.
9435 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9436 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9437 (remove_unused_object_hard_regs_nodes): Ditto.
9438 (enumerate_object_hard_regs_nodes): Ditto.
9439 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9440 (object_hard_regs_subnode_t): Ditto.
9441 (struct object_hard_regs_subnode): Ditto.
9442 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9443 (setup_object_hard_regs_subnode_index): Ditto.
9444 (get_object_hard_regs_subnodes_num): Ditto.
9445 (form_object_hard_regs_nodes_forest): Ditto.
9446 (finish_object_hard_regs_nodes_tree): Ditto.
9447 (finish_object_hard_regs_nodes_forest): Ditto.
9448 (allocnos_have_intersected_live_ranges_p): Rename to
9449 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9450 (pseudos_have_intersected_live_ranges_p): Rename to
9451 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9452 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9453 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9454 (update_copy_costs): Remove assert. Skip cost update if the hard
9455 reg does not belong the class.
9456 (assign_hard_reg): Process only profitable hard regs.
9457 (uncolorable_allocnos_num): Make it scalar.
9458 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9459 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9460 and ira_reg_class_max_nregs.
9461 (bucket_allocno_compare_func): Check frequency first.
9462 (sort_bucket): Add compare function as a parameter.
9463 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9464 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9465 (push_allocno_to_stack): Rewrite for checking new allocno
9466 colorability.
9467 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9468 (push_only_colorable): Pass new parameter to sort_bucket.
9469 (push_allocno_to_spill): Remove.
9470 (allocno_spill_priority_compare): Make it inline and rewrite.
9471 (splay_tree_allocate, splay_tree_free): Remove.
9472 (allocno_spill_sort_compare): New function.
9473 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9474 build and use splay tree. Choose first allocno in uncolorable
9475 allocno bucket to spill. Remove setting spill cost.
9476 (all_conflicting_hard_regs): Remove.
9477 (setup_allocno_available_regs_num): Check only profitable hard
9478 regs. Print info about hard regs nodes.
9479 (setup_allocno_left_conflicts_size): Remove.
9480 (put_allocno_into_bucket): Don't call
9481 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9482 (improve_allocation): New.
9483 (color_allocnos): Call setup_profitable_hard_regs,
9484 form_object_hard_regs_nodes_forest, improve_allocation,
9485 finish_object_hard_regs_nodes_forest. Setup spill cost.
9486 (print_loop_title): Use pressure classes.
9487 (color_allocnso): Ditto.
9488 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9489 and allocnos_for_spilling.
9490 (ira_sort_regnos_for_alter_reg): Don't setup members
9491 {first,next}_coalesced_allocno.
9492 (color): Remove allocating and freeing removed_splay_allocno_vec.
9493 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9494 prohibited_class_mode_regs.
9495
9496 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9497 formatting.
9498 (update_allocno_pressure_excess_length): Use pressure classes.
9499 (inc_register_pressure, dec_register_pressure): Check for pressure
9500 class.
9501 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9502 pressure class. Use ira_reg_class_nregs instead of
9503 ira_reg_class_max_nregs.
9504 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9505 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9506 (single_reg_class): Use ira_reg_class_nregs instead of
9507 ira_reg_class_max_nregs.
9508 (process_bb_node_lives): Use pressure classes.
9509
9510 * ira-emit.c: Remove mentioning cover classes from the file. Use
9511 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9512 (change_loop): Use pressure classes.
9513 (modify_move_list): Call ira_set_allocno_class instead of
9514 ira_set_allocno_cover_class.
9515
9516 * ira-build.c: Remove mentioning cover classes from the file. Use
9517 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9518 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9519 ALLOCNO_UPDATED_CLASS_COST instead of
9520 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9521 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9522 (ira_create_allocno): Remove initialization of
9523 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9524 ALLOCNO_COLORABLE_P.
9525 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9526 Update conflict regs for the objects.
9527 (create_cap_allocno): Remove assert. Don't propagate
9528 ALLOCNO_AVAILABLE_REGS_NUM.
9529 (ira_free_allocno_costs): New function.
9530 (finish_allocno): Change a part of code into call of
9531 ira_free_allocno_costs.
9532 (low_pressure_loop_node_p): Use pressure classes.
9533 (object_range_compare_func): Don't compare classes.
9534 (setup_min_max_conflict_allocno_ids): Ditto.
9535
9536 * loop-invariant.c: Remove mentioning cover classes from the file.
9537 Use ira_pressure_classes and ira_pressure_classes_num instead of
9538 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9539 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9540 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9541 Use reg_allocno_class instead of reg_cover_class.
9542 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9543 STACK_REG_COVER_CLASS.
9544 (get_regno_cover_class): Rename to get_regno_pressure_class.
9545 (move_loop_invariants): Initialize and finalize regstat.
9546
9547 * ira.c: Remove mentioning cover classes from the file. Add
9548 comments about coloring without cover classes. Use ALLOCNO_CLASS
9549 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9550 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9551 setup_class_subset_and_memory_move_costs.
9552 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9553 (setup_cover_and_important_classes): Rename to
9554 setup_allocno_and_important_classes.
9555 (setup_class_translate_array): New.
9556 (setup_class_translate): Call it for allocno and pressure classes.
9557 (cover_class_order): Rename to allocno_class_order.
9558 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9559 of ira_class_translate.
9560 (reorder_important_classes): Set up ira_important_class_nums.
9561 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9562 (print_class_cover): Rename to print_classes. Add parameter.
9563 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9564 Print pressure classes too.
9565 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9566 setup_reg_subclasses.
9567 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9568 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9569 (setup_prohibited_class_mode_regs): Use
9570 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9571 (clarify_prohibited_class_mode_regs): New function.
9572 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9573 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9574 (ira_init_once): Initialize them.
9575 (free_register_move_costs): Process them.
9576 (ira_init): Move calls of find_reg_classes and
9577 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9578 Call clarify_prohibited_class_mode_regs.
9579 (ira_no_alloc_reg): Remove.
9580 (too_high_register_pressure_p): Use pressure classes.
9581
9582 * sched-deps.c: Remove mentioning cover classes from the file.
9583 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9584 ira_pressure_classes and ira_pressure_classes_num instead of
9585 ira_reg_class_cover_size and ira_reg_class_cover.
9586 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9587 sched_regno_pressure_class instead of sched_regno_cover_class.
9588 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9589 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9590
9591 * ira.h: Add 2010 to Copyright.
9592 (ira_no_alloc_reg): Remove external.
9593 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9594 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9595 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9596 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9597 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9598 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9599 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9600 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9601 x_ira_no_alloc_regs.
9602 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9603 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9604 ira_allocno_classes_num and ira_allocno_classes.
9605 (ira_class_translate): Rename to ira_allocno_class_translate.
9606 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9607 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9608 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9609 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9610 (ira_no_alloc_regs): New.
9611
9612 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9613 classes from the file. Use ALLOCNO_CLASS instead of
9614 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9615 ALLOCNO_COVER_CLASS_COST.
9616 (regno_cover_class): Rename to regno_aclass.
9617 (record_reg_classes): Use ira_reg_class_subunion instead of
9618 ira_reg_class_union.
9619 (record_address_regs): Check overflow.
9620 (scan_one_insn): Ditto.
9621 (print_allocno_costs): Print total mem cost fore regional allocation.
9622 (print_pseudo_costs): Use REG_N_REFS.
9623 (find_costs_and_classes): Use classes intersected with them on the
9624 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9625 ira_reg_class_union. Use ira_allocno_class_translate and
9626 regno_aclass instead of ira_class_translate and regno_cover_class.
9627 Modify code for finding regno_aclass. Setup preferred classes for
9628 the next pass.
9629 (setup_allocno_cover_class_and_costs): Rename to
9630 setup_allocno_class_and_costs. Use regno_aclass instead of
9631 regno_cover_class. Use ira_set_allocno_class instead of
9632 ira_set_allocno_cover_class.
9633 (init_costs, finish_costs): Use regno_aclass instead of
9634 regno_cover_class.
9635 (ira_costs): Use setup_allocno_class_and_costs instead of
9636 setup_allocno_cover_class_and_costs.
9637 (ira_tune_allocno_costs_and_cover_classes): Rename to
9638 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9639 by processing objects. Use ira_reg_class_max_nregs instead of
9640 ira_reg_class_nregs.
9641
9642 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9643
9644 * sched-int.h: Remove mentioning cover classes from the file.
9645 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9646
9647 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9648 classes from the file.
9649 (struct reg_pref): Rename coverclass into allocnoclass.
9650 (reg_cover_class): Rename to reg_allocno_class.
9651
9652 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9653
9654 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9655
9656 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9657
9658 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9659
9660 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9661
9662 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9663
9664 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9665
9666 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9667
9668 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9669
9670 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9671
9672 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9673 (i386_ira_cover_classes): Ditto.
9674
9675 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9676
9677 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9678
9679 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9680
9681 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9682
9683 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9684
9685 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9686
9687 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9688 (mips_ira_cover_classes): Ditto.
9689
9690 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9691
9692 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9693
9694 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9695
9696 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9697
9698 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9699
9700 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9701 (IRA_COVER_CLASSES_VSX): Ditto.
9702
9703 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9704 (rs6000_ira_cover_classes): Ditto.
9705
9706 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9707
9708 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9709
9710 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9711
9712 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9713
9714 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9715
9716 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9717
9718 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9719
9720 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9721
9722 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9723
9724 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9725
9726 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9727
9728 PR debug/48253
9729 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9730 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9731 dw_fde_unlikely_section_end_label, cold_in_std_section,
9732 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9733 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9734 fields.
9735 (output_fde): Use dw_fde_second_{begin,end} if second is
9736 true, otherwise dw_fde_{begin,end}.
9737 (output_call_frame_info): Test dw_fde_second_begin != NULL
9738 instead of dw_fde_switched_sections.
9739 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9740 fields, initialize new fields. Initialize in_std_section
9741 unconditionally from the first partition.
9742 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9743 dw_fde_second_begin is non-NULL.
9744 (dwarf2out_switch_text_section): Stop initializing removed
9745 dw_fde_struct fields, initialize new fields, initialize
9746 also dw_fde_end here. Set dw_fde_switch_cfi even when
9747 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9748 (struct var_loc_list_def): Add last_before_switch field.
9749 (arange_table, arange_table_allocated, arange_table_in_use,
9750 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9751 (size_of_aranges): Count !in_std_section and !second_in_std_section
9752 hunks in fdes, instead of looking at arange_table_in_use.
9753 (output_aranges): Add aranges_length argument, don't call
9754 size_of_aranges here. Instead of using aranges_table*
9755 emit ranges for fdes when !in_std_section resp.
9756 !second_in_std_section.
9757 (dw_loc_list): Break ranges crossing section switch.
9758 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9759 use dw_fde_second_end instead of dw_fde_end as end of last range.
9760 (gen_subprogram_die): Don't call add_arange. Use
9761 dw_fde_{begin,end} for first partition and if switched
9762 section dw_fde_second_{begin,end} for the second.
9763 (var_location_switch_text_section_1,
9764 var_location_switch_text_section): New functions.
9765 (dwarf2out_begin_function): Initialize cold_text_section even
9766 when function_section () isn't text_section.
9767 (prune_unused_types): Don't walk arange_table.
9768 (dwarf2out_finish): Don't needlessly test
9769 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9770 If info_section_emitted, call size_of_aranges and if it indicates
9771 non-empty .debug_aranges, call output_aranges with the computed
9772 size. Stop using removed dw_fde_struct fields, use
9773 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9774 for second.
9775
9776 PR debug/48203
9777 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9778 create ENTRY_VALUE if incoming or address of incoming's MEM
9779 is a hard REG.
9780 * dwarf2out.c (mem_loc_descriptor): Don't emit
9781 DW_OP_GNU_entry_value of DW_OP_fbreg.
9782 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9783 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9784 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9785 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9786 ENTRY_VALUE_EXPs.
9787 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9788 is a REG_P or MEM_P with REG_P address, compute hash directly
9789 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9790 (preserve_only_constants): Don't clear VALUES forwaring
9791 ENTRY_VALUE to some other VALUE.
9792
9793 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9794
9795 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9796 instead of GEN_INT.
9797
9798 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9799
9800 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9801 block before expanding the statement.
9802 (expand_gimple_stmt_1): Likewise. Set them here...
9803 (expand_gimple_stmt): ...and not here. Tidy.
9804 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9805 unknown.
9806
9807 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9808
9809 * Makefile.in: New rule for cprop.o.
9810 * gcse.c: Move constant/copy propagation to cprop.c.
9811 (compute_local_properties): Only handle expression tables.
9812 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9813 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9814 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9815 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9816 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9817 compute_cprop_data, find_used_regs, try_replace_reg,
9818 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9819 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9820 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9821 find_bypass_set, reg_killed_on_edge, bypass_block,
9822 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9823 execute_rtl_cprop, pass_rtl_cprop): Move to...
9824 * cprop.c: ...here. New file, constant/copy propagation for RTL
9825 moved from gcse.c to here with minor cleanups in duplicated code.
9826
9827 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9828
9829 * config/i386/i386.c (flag_opts): Fix a typo in
9830 -mavx256-split-unaligned-store.
9831
9832 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9833
9834 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9835 LIBCALL_VALUE): Remove macros.
9836 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9837 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9838 (h8300_function_value, h8300_libcall_value,
9839 h8300_function_value_regno_p): New functions.
9840
9841 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9842
9843 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9844
9845 2011-03-28 Jeff Law <law@redhat.com>
9846
9847 * tree-ssa-threadupdate.c (redirect_edges): Call
9848 create_edge_and_update_destination_phis as needed.
9849 (create_edge_and_update_destination_phis): Accept new BB argument.
9850 All callers updated.
9851 (thread_block): Do not update the profile when threading around
9852 intermediate blocks.
9853 (thread_single_edge): Likewise.
9854 (determine_bb_domination_status): If BB is not a successor of the
9855 loop header, return NONDOMINATING.
9856 (register_jump_thread): Note when we register a jump thread around
9857 an intermediate block.
9858 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9859 (thread_across_edge): Use it.
9860
9861 2011-03-28 Tristan Gingold <gingold@adacore.com>
9862
9863 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9864 when for_return is 2.
9865
9866 2011-03-28 Jeff Law <law@redhat.com>
9867
9868 * var-tracking.c (canonicalize_values_mark): Delete unused
9869 lhs assignment.
9870 (canonicalize_values_star, set_variable_part): Likewise.
9871 (clobber_variable_part, delete_variable_part): Likewise.
9872
9873 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9874
9875 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9876
9877 2011-03-28 Martin Jambor <mjambor@suse.cz>
9878
9879 * tree-inline.c (expand_call_inline): Do not check that destination
9880 node is analyzed.
9881 (optimize_inline_calls): Assert that destination node is analyzed.
9882 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9883 not call tree_lowering_passes.
9884 * cgraph.h (cgraph_analyze_function): Declare.
9885 * cgraphunit.c (cgraph_analyze_function): Make public.
9886
9887 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9888
9889 * config/sparc/sparc-opts.h: New.
9890 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9891 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9892 (sparc_option_override): Store processor_type enumeration rather
9893 than string in cpu_default. Remove name and enumeration from
9894 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9895 without using sparc_select. Use target_flags_explicit instead of
9896 fpu_option_set.
9897 * config/sparc/sparc.h (enum processor_type): Move to
9898 sparc-opts.h.
9899 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9900 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9901 HeaderInclude entry.
9902 (mcpu=, mtune=): Use Var and Enum.
9903 (sparc_processor_type): New Enum and EnumValue entries.
9904
9905 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9906 Iain Sandoe <iains@gcc.gnu.org>
9907
9908 PR target/48245
9909 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9910
9911 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9912
9913 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9914 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9915 Insert new statements at it in lieu of STMT.
9916 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9917 * tree-vect-stmts.c (vectorizable_store): Likewise.
9918 (vectorizable_load): Likewise.
9919
9920 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9921
9922 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9923 (divtf3): Ditto.
9924 (multf3): Ditto.
9925 (subtf3): Ditto.
9926
9927 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9928
9929 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9930 unaligned 256bit load/store.
9931 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9932 (*avx_movdqu<avxmodesuffix>): Likewise.
9933
9934 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9935
9936 PR target/48288
9937 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9938 * config/pa/pa.md (iordi3): Use new predicate in expander.
9939 (iorsi3): Likewise.
9940
9941 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9942
9943 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9944 FUNCTION_VALUE_REGNO_P): Remove macros.
9945 * config/mips/mips-protos.h (mips_function_value): Remove.
9946 * config/mips/mips.c (mips_function_value): Rename to...
9947 (mips_function_value_1): ... this. Make static. Handle receiving
9948 the function type in 'fn_decl_or_type' argument.
9949 (mips_function_value, mips_libcall_value,
9950 mips_function_value_regno_p): New function.
9951 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9952 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9953
9954 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9955
9956 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9957 and -mavx256-split-unaligned-store.
9958 (ix86_option_override_internal): Split 32-byte AVX unaligned
9959 load/store by default.
9960 (ix86_avx256_split_vector_move_misalign): New.
9961 (ix86_expand_vector_move_misalign): Use it.
9962
9963 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9964 -mavx256-split-unaligned-store.
9965
9966 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9967 256bit load/store. Generate unaligned store on misaligned memory
9968 operand.
9969 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9970 256bit load/store.
9971 (*avx_movdqu<avxmodesuffix>): Likewise.
9972
9973 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9974 -mavx256-split-unaligned-store.
9975
9976 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9977
9978 PR target/38598
9979 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9980 Update commentary.
9981
9982 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9983
9984 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9985 opno arguments with an expand_operand. Use create_input_operand.
9986 (mips_prepare_builtin_target): Delete.
9987 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9988 functions.
9989 (mips_expand_builtin_direct): Use create_output_operand and
9990 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9991 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9992 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9993
9994 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9995
9996 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9997 function.
9998 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9999
10000 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10001
10002 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10003 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10004 basic blocks and call commit_edge_insertions directly.
10005 (fixup_abnormal_edges): Move from here to...
10006 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10007 on the edges and return whether some have actually been inserted.
10008 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10009 compensation code.
10010
10011 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10012
10013 PR rtl-optimization/48144
10014 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10015 (merge_expr_data): ... here.
10016 (av_set_intersect): Rename to av_set_code_motion_filter.
10017 Update all callers. Call merge_history_vect when an expression
10018 is found in both sets.
10019 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10020
10021 2011-03-26 Alan Modra <amodra@gmail.com>
10022
10023 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10024 cmodel medium addresses.
10025 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10026 64-bit gpr loads and stores.
10027 (rs6000_secondary_reload_ppc64): New function.
10028 * config/rs6000/rs6000-protos.h: Declare it.
10029 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10030
10031 2011-03-26 Alan Modra <amodra@gmail.com>
10032
10033 PR target/47487
10034 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10035 GNU Go in traceback table.
10036
10037 2011-03-25 Richard Henderson <rth@redhat.com>
10038
10039 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10040 if there are exactly 6 operands.
10041 (set_storage_via_setmem): Similarly.
10042
10043 2011-03-25 Kai Tietz <ktietz@redhat.com>
10044
10045 * collect2.c (write_c_file_stat): Handle backslash
10046 as right-hand directory separator.
10047 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10048 checking just for slash.
10049 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10050 instead of checking for trailing slash.
10051 * gcc.c (record_temp_file): Use filename_cmp instead
10052 of strcmp.
10053 (do_spec_1): Likewise.
10054 (replace_outfile_spec_function): Likewise.
10055 (is_directory): Use filename_ncmp instead of strncmp.
10056 (print_multilib_info): Likewise.
10057 * gcov.c (find_source): Use filename_cmp instead
10058 instead of strcmp.
10059 (make_gcov_file_name): Fix order of slash/backslash
10060 checks.
10061 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10062 (add_standard_paths): Likewise.
10063 * mips-tfile.c (saber_stop): Handle backslash.
10064 * prefix.c (update_path): Use filename_ncmp instead of
10065 strncmp.
10066 * profile.c (output_location): Use filename_cmp instead
10067 of strcmp.
10068 * read-md.c (handle_toplevel_file): Handle backslash.
10069 * tlink.c (frob_extension): Likewise.
10070 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10071 strcmp.
10072 * tree-dump.c (dequeue_and_dump): Handle backslash.
10073 * tree.c (get_file_function_name): Likewise.
10074 * gengtype.c (read_input_list): Likewise.
10075 (get_file_realbasename): Likewise.
10076 (get_output_file_with_visibility): Use filename_cmp
10077 instead of strcmp.
10078
10079 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10080
10081 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10082 case to VFPv1.
10083
10084 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10085
10086 * fold-const.c (expr_location_or): New function.
10087 (fold_truth_not_expr): Call it.
10088
10089 2011-03-25 Jeff Law <law@redhat.com>
10090
10091 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10092 va_end.
10093 * c-family/c-common.c (def_fn_type): Likewise.
10094 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10095 * emit-rtl.c (gen_rtvec): Likewise.
10096 * lto/lto-lang.c (def_fn_type): Likewise.
10097
10098 2011-03-25 Richard Guenther <rguenther@suse.de>
10099
10100 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10101 also generate copies.
10102 (fini_copy_prop): Handle constant values properly.
10103
10104 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10105
10106 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10107 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10108 (hash_loc_operands, compare_loc_operands): Handle
10109 DW_OP_GNU_entry_value.
10110
10111 2011-03-25 Kai Tietz <ktietz@redhat.com>
10112
10113 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10114 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10115 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10116 comment and use macro TARGET_64BIT_MS_ABI instead.
10117 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10118 and change default behavior for 32-bit MS_ABI.
10119 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10120 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10121 32-bit, too.
10122 (ix86_cfun_abi): Likewise.
10123 (ix86_maybe_switch_abi): Adjust comment.
10124 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10125 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10126 instead of checking for SYSV_ABI.
10127 (ix86_nsaved_sseregs): Likewise.
10128 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10129 to 16 bytes.
10130 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10131 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10132 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10133 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10134 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10135
10136 2011-03-25 Richard Guenther <rguenther@suse.de>
10137
10138 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10139 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10140 (verify_gimple): Remove.
10141 * tree-cfg.c (verify_gimple_call): Merge verification
10142 from verify_stmts.
10143 (verify_gimple_phi): Merge verification from verify_stmts.
10144 (verify_gimple_label): New function.
10145 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10146 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10147 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10148 (verify_stmts): Rename to verify_gimple_in_cfg.
10149 (verify_gimple_in_cfg): New function.
10150 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10151 * tree-ssa.c (verify_ssa): Likewise.
10152 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10153
10154 2011-03-25 Richard Guenther <rguenther@suse.de>
10155
10156 * passes.c (init_optimization_passes): Add FRE pass after
10157 early SRA.
10158
10159 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10160 Andrew Stubbs <ams@codesourcery.com>
10161
10162 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10163 for Cortex-A8.
10164 (arm_movdi_vfp_cortexa8): New pattern.
10165 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10166 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10167 instructions when tuning for Cortex-A8. Set attribute "arch".
10168 * config/arm/arm.md: Move include arm-tune.md up a bit.
10169 (define_attr "arch"): Add "onlya8" and "nota8" values.
10170 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10171
10172 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10173
10174 PR bootstrap/48282
10175 Revert:
10176 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10177
10178 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10179 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10180 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10181 * passes.c (init_optimization_passes): Move
10182 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10183
10184 2011-03-25 Kai Tietz <ktietz@redhat.com>
10185
10186 * c-typeck.c (comptypes_internal): Replace target
10187 hook call of comp_type_attributes by version in tree.c file.
10188 * gimple.c (gimple_types_compatible_p_1): Likewise.
10189 * tree-ssa.c (useless_type_conversion_p): Likewise.
10190 * tree.c (build_type_attribute_qual_variant): Likewise.
10191 (attribute_value_equal): New static helper function.
10192 (comp_type_attributes): New function.
10193 (merge_attributes): Use attribute_value_equal for comparison.
10194 (attribute_list_contained): Likewise.
10195 * tree.h (comp_type_attributes): New prototype.
10196
10197 2011-03-25 Richard Guenther <rguenther@suse.de>
10198
10199 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10200 of complex types at -O0.
10201 (verify_gimple_assign_binary): Likewise.
10202 (verify_gimple_assign_ternary): Likewise.
10203
10204 2011-03-24 Mark Wielaard <mjw@redhat.com>
10205
10206 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10207 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10208
10209 2011-03-24 Mark Wielaard <mjw@redhat.com>
10210
10211 PR debug/48041
10212 * dwarf2out.c (output_abbrev_section): Only write table when
10213 abbrev_die_table_in_use > 1.
10214
10215 2011-02-24 Richard Henderson <rth@redhat.com>
10216
10217 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10218 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10219 (alpha_expand_unaligned_load_words): Use extql.
10220 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10221 (emit_insxl): Handle all modes for consistency.
10222
10223 2011-02-24 Richard Henderson <rth@redhat.com>
10224
10225 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10226 (alpha_expand_unaligned_load): Likewise.
10227 (alpha_expand_unaligned_store): Likewise.
10228 (alpha_expand_unaligned_load_words): Likewise.
10229 (alpha_expand_unaligned_store_words): Likewise.
10230 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10231 (alpha_split_lock_test_and_set_12): Likewise.
10232 (print_operand, alpha_fold_builtin_extxx): Likewise.
10233 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10234 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10235 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10236 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10237 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10238 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10239 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10240 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10241 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10242 (extwl, extll, extql): Similarly.
10243 (inswh, inslh, insqh): Similarly.
10244 (mskbl, mskwl, mskll, mskql): Similarly.
10245 (mskwh, msklh, mskqh): Similarly.
10246
10247 2011-02-24 Richard Henderson <rth@redhat.com>
10248
10249 * config/alpha/alpha.md (attribute isa): Add er, ner.
10250 (attribute enabled): Handle them.
10251 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10252
10253 2011-02-24 Richard Henderson <rth@redhat.com>
10254
10255 * config/alpha/alpha.md (attribute isa): Add vms.
10256 (attribute enabled): Handle it.
10257 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10258 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10259 (*movtf): Rename from *movtf_internal for consistency.
10260 (*movsi): Merge with *movsi_nt_vms.
10261 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10262 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10263 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10264 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10265
10266 2011-02-24 Richard Henderson <rth@redhat.com>
10267
10268 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10269 (extendqisi2, extendhisi2): Likewise.
10270 (extendqidi2): Simplify BWX/non-BWX expansions.
10271 (extendhidi2): Similarly.
10272
10273 2011-02-24 Richard Henderson <rth@redhat.com>
10274
10275 * config/alpha/alpha.md (attribute isa): New.
10276 (attribute enabled): New.
10277 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10278 (zero_extendqisi2, zero_extendqidi2): Similarly.
10279 (zero_extendhisi2, zero_extendhidi2): Similarly.
10280 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10281
10282 2011-02-24 Richard Henderson <rth@redhat.com>
10283
10284 * config/alpha/predicates.md (input_operand): Revert last change;
10285 update comment to mention 32-bit VMS rather than Windows.
10286
10287 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10288
10289 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10290 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10291 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10292 * passes.c (init_optimization_passes): Move
10293 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10294
10295 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10296
10297 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10298
10299 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10300
10301 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10302 correctly.
10303
10304 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10305
10306 PR debug/48204
10307 * simplify-rtx.c (simplify_const_unary_operation): Call
10308 real_convert when changing mode class with FLOAT_EXTEND.
10309
10310 2011-03-24 Nick Clifton <nickc@redhat.com>
10311
10312 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10313 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10314 * config/rx/rx.c (rx_option_override): Set align_jumps,
10315 align_loops and align_labels if not set by the user.
10316 (rx_align_for_label): New function.
10317 (rx_max_skip_for_label): New function.
10318 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10319 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10320 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10321 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10322 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10323
10324 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10325
10326 PR rtl-optimization/48263
10327 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10328 and original commutative_p handling. Use maybe_gen_insn.
10329
10330 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10331
10332 * reload.c (find_reloads_subreg_address): Add address_reloaded
10333 parameter and return true there if the full address has been
10334 reloaded.
10335 (find_reloads_toplev): Pass address_reloaded flag.
10336 (find_reloads_address_1): Don't use address_reloaded parameter.
10337
10338 2011-03-24 Jeff Law <law@redhat.com>
10339
10340 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10341 unused variable "ann".
10342 (remove_unused_locals): Likewise.
10343
10344 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10345 statement.
10346
10347 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10348 after it is freed.
10349
10350 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10351
10352 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10353 for invalid symbolic addresses.
10354 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10355 larl operands.
10356
10357 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10358
10359 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10360 the argument in calls to fold_truth_not_expr.
10361
10362 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10363
10364 * tree.c (record_node_allocation_statistics): New function.
10365 (make_node_stat, copy_node_stat, build_string): Call it.
10366 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10367 (build1_stat, build_omp_clause): Likewise.
10368
10369 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10370
10371 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10372 last commit.
10373
10374 2011-03-24 Richard Guenther <rguenther@suse.de>
10375
10376 PR tree-optimization/48271
10377 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10378 blocks that still exist.
10379
10380 2011-03-24 Richard Guenther <rguenther@suse.de>
10381
10382 PR tree-optimization/48270
10383 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10384 not free datarefs before ddrs.
10385
10386 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10387
10388 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10389 from the address built for a reference with variable offset.
10390
10391 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10392
10393 PR target/48237
10394 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10395 alternatives that can be handled with movq or movabsq insn.
10396 (*movdf_internal): Disable for !TARGET_64BIT.
10397 (*movdf_internal_nointeger): Ditto.
10398 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10399
10400 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10401
10402 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10403 (FUNCTION_ARG_ADVANCE): Likewise.
10404 * tm.texi.in: Change references to them to hook references.
10405 * tm.texi: Regenerate.
10406 * targhooks.c (default_function_arg): Eliminate check for target macro.
10407 (default_function_incoming_arg): Likewise.
10408 (default_function_arg_advance): Likewise.
10409 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10410 (function_arg_advance): Likewise.
10411 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10412
10413 2011-03-24 Richard Guenther <rguenther@suse.de>
10414
10415 PR middle-end/48269
10416 * tree-object-size.c (addr_object_size): Do not double-account
10417 for MEM_REF offsets.
10418
10419 2011-03-24 Diego Novillo <dnovillo@google.com>
10420
10421 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10422 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10423 (lto_input_data_block): Move from lto-opts.c. Make extern.
10424 Update all users.
10425 (lto_input_string): Rename from input_string. Make extern.
10426 Update all users.
10427 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10428 output_string_with_length.
10429 Output 0 to indicate a non-NULL string. Update all callers to
10430 not emit 0.
10431 (lto_output_string): Rename from output_string. Make extern.
10432 Update all users.
10433 (lto_output_decl_state_streams): Make extern.
10434 (lto_output_decl_state_refs): Make extern.
10435 * lto-streamer.h (lto_input_string): Declare.
10436 (lto_input_data_block): Declare.
10437 (lto_output_string): Declare.
10438 (lto_output_string_with_length): Declare.
10439 (lto_output_decl_state_streams): Declare.
10440 (lto_output_decl_state_refs): Declare.
10441
10442 2011-03-24 Richard Guenther <rguenther@suse.de>
10443
10444 PR tree-optimization/46562
10445 * tree.c (build_invariant_address): New function.
10446 * tree.h (build_invariant_address): Declare.
10447 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10448 a renamed function moved ...
10449 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10450 Take valueization callback parameter.
10451 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10452 * gimple-fold.h: New file.
10453 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10454 (ccp_fold, fold_const_aggregate_ref,
10455 fold_ctor_reference, fold_nonarray_ctor_reference,
10456 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10457 get_base_constructor): Move ...
10458 * gimple-fold.c: ... here.
10459 (gimple_fold_stmt_to_constant_1): New function
10460 split out from ccp_fold. Take a valueization callback parameter.
10461 Valueize all operands.
10462 (gimple_fold_stmt_to_constant): New wrapper function.
10463 (fold_const_aggregate_ref_1): New function split out from
10464 fold_const_aggregate_ref. Take a valueization callback parameter.
10465 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10466 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10467 invariant POINTER_PLUS_EXPRs to invariant form.
10468 (vn_valueize): New function.
10469 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10470 * tree-vrp.c (vrp_valueize): New function.
10471 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10472 to fold statements to constants.
10473 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10474 function declarations.
10475 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10476 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10477
10478 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10479
10480 * config/h8300/predicates.md (jump_address_operand): Fix register
10481 mode check.
10482
10483 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10484
10485 * doc/invoke.texi (max-stores-to-sink): Document.
10486 * params.h (MAX_STORES_TO_SINK): Define.
10487 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10488 if either vectorization or if-conversion is disabled.
10489 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10490 tree-vect-data-refs.c vect_equal_offsets.
10491 (dr_equal_offsets_p): New function.
10492 (find_data_references_in_bb): Remove static.
10493 * tree-data-ref.h (find_data_references_in_bb): Declare.
10494 (dr_equal_offsets_p): Likewise.
10495 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10496 (vect_drs_dependent_in_basic_block): Update calls to
10497 vect_equal_offsets.
10498 (vect_check_interleaving): Likewise.
10499 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10500 (cond_if_else_store_replacement): Rename to...
10501 (cond_if_else_store_replacement_1): ... this. Change arguments and
10502 documentation.
10503 (cond_if_else_store_replacement): New function.
10504 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10505 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10506
10507 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10508
10509 PR target/46934
10510 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10511 to subtract lower bound instead of GEN_INT().
10512
10513 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10514
10515 PR other/48179
10516 PR other/48221
10517 PR other/48234
10518 * doc/extend.texi (Alignment): Move section to match order in TOC.
10519 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10520 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10521
10522 2011-03-23 Jeff Law <law@redhat.com>
10523
10524 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10525 before removing the edge.
10526
10527 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10528 it may have been freed by redirect_branch_edge or
10529 redirect_edge_succ_nodup.
10530
10531 2011-03-23 Richard Guenther <rguenther@suse.de>
10532
10533 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10534 (check_va_list_escapes): Likewise.
10535 (check_all_va_list_escapes): Likewise.
10536
10537 2011-03-23 Richard Guenther <rguenther@suse.de>
10538
10539 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10540 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10541 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10542 (alias.o): Likewise.
10543 (ipa-type-escape.o): Remove.
10544 (ipa-struct-reorg.o): Likewise.
10545 (GTFILES): Remove ipa-struct-reorg.c.
10546 * alias.c: Do not include ipa-type-escape.h.
10547 * tree-ssa-alias.c: Likewise.
10548 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10549 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10550 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10551 and ipa-type-escape passes.
10552 * tree-pass.h (pass_ipa_type_escape): Remove.
10553 (pass_ipa_struct_reorg): Likewise.
10554 * ipa-struct-reorg.h: Remove.
10555 * ipa-struct-reorg.c: Likewise.
10556 * ipa-type-escape.h: Likewise.
10557 * ipa-type-escape.c: Likewise.
10558 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10559 (--param struct-reorg-cold-struct-ratio): Likewise.
10560 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10561 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10562 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10563
10564 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10565
10566 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10567 cpu attribute value.
10568 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10569 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10570 * config/s390/s390.c (processor_flags_table): New constant array.
10571 (s390_handle_arch_option): Remove.
10572 (s390_handle_option): Remove s390_handle_arch_option invocations
10573 and OPT_mwarn_framesize_ handling.
10574 (s390_option_override): Remove s390_handle_arch_option invocation.
10575 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10576 warnings.
10577 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10578 * config/s390/s390.opt (s390_tune, s390_arch)
10579 (march=): Replace s390_arch_option enum and values with
10580 processor_type. Set variable name to s390_arch. Set
10581 initialization value.
10582 (mtune=): Replace s390_arch_option with processor_type. Set
10583 variable name to s390_tune. Set initialization value.
10584
10585 2011-03-23 Julian Brown <julian@codesourcery.com>
10586
10587 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10588 accesses which are not naturally aligned.
10589
10590 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10591
10592 PR target/47553
10593 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10594
10595 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10596
10597 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10598 parameter from "int" to "enum insn_code".
10599 (expand_operand_type): New enum.
10600 (expand_operand): New structure.
10601 (create_expand_operand): New function.
10602 (create_fixed_operand, create_output_operand): Likewise
10603 (create_input_operand, create_convert_operand_to): Likewise.
10604 (create_convert_operand_from, create_address_operand): Likewise.
10605 (create_integer_operand): Likewise.
10606 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10607 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10608 (expand_insn, expand_jump_insn): Likewise.
10609 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10610 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10611 (expand_movstr, expand_builtin___clear_cache): Likewise.
10612 (expand_builtin_lock_release): Likewise.
10613 * explow.c (allocate_dynamic_stack_space): Likewise.
10614 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10615 and use the default handling in that case.
10616 * expmed.c (check_predicate_volatile_ok): Delete.
10617 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10618 (emit_cstore): Likewise.
10619 * expr.c (emit_block_move_via_movmem): Likewise.
10620 (set_storage_via_setmem, expand_assignment): Likewise.
10621 (emit_storent_insn, try_casesi): Likewise.
10622 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10623 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10624 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10625 (expand_twoval_unop, expand_twoval_binop): Likewise.
10626 (expand_unop_direct, emit_indirect_jump): Likewise.
10627 (emit_conditional_move, vector_compare_rtx): Likewise.
10628 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10629 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10630 (expand_sync_lock_test_and_set): Likewise.
10631 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10632 (emit_unop_insn): Likewise.
10633 (expand_copysign_absneg): Change icode to an insn_code.
10634 (create_convert_operand_from_type): New function.
10635 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10636 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10637 (expand_insn, expand_jump_insn): Likewise.
10638 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10639 than const_int_operand for operand 2.
10640
10641 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10642
10643 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10644 if possible.
10645
10646 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10647
10648 * emit-rtl.c (emit_pattern_before_noloc): New function.
10649 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10650 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10651 (emit_pattern_after_noloc): New function.
10652 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10653 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10654
10655 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10656
10657 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10658 (__ffsDI2): Likewise.
10659
10660 2011-03-22 Richard Henderson <rth@redhat.com>
10661
10662 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10663 of !TARGET_ABI_OPEN_VMS.
10664 (alpha_trampoline_init, alpha_start_function): Likewise.
10665 (alpha_expand_epilogue, alpha_file_start): Likewise.
10666 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10667 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10668 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10669 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10670 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10671
10672 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10673
10674 * config/s390/s390-opts.h: New.
10675 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10676 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10677 s390_stack_guard): Remove.
10678 (s390_handle_arch_option): Return void. Take enum
10679 s390_arch_option value instead of string and searching array.
10680 (s390_handle_option): Don't assert that global structures are in
10681 use. Access variables via opts pointer. Use error_at. Don't use
10682 sscanf for -mstack-guard= or -mstack-size=. Update call to
10683 s390_handle_arch_option.
10684 (s390_option_override): Update call to s390_handle_arch_option.
10685 (s390_emit_prologue): Use %d format for s390_stack_size in
10686 diagnostic. Use %wd for HOST_WIDE_INT.
10687 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10688 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10689 * config/s390/s390.opt (config/s390/s390-opts.h): New
10690 HeaderInclude entry.
10691 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10692 s390_arch_flags, s390_warn_framesize): New Variable entries.
10693 (s390_arch_option): New Enum and EnumValue entries.
10694 (march=): Use Enum instead of Var.
10695 (mstack-guard=, mstack-size=): Use UInteger and Var.
10696 (mtune=): Use Enum.
10697
10698 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10699
10700 * config/score/score.c (score_handle_option): Don't assert that
10701 global structures are in use. Access target_flags via opts
10702 pointer. Use value of -march= option to determine target_flags
10703 settings.
10704 * config/score/score.opt (march=): Use Enum.
10705 (score_arch): New Enum and EnumValue entries.
10706
10707 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10708
10709 * config/mep/mep.c (option_mtiny_specified): Remove.
10710 (mep_option_override): Move register handling for -mivc2 from
10711 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10712 instead of option_mtiny_specified.
10713 (mep_handle_option): Access target_flags via opts pointer. Don't
10714 assert that global structures are in use. Defer part of -mivc2
10715 handling and move it to mep_option_override.
10716 * config/mep/mep.opt (IVC2): New Mask entry.
10717 (mivc2): Use Var and Defer instead of Mask.
10718
10719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10720
10721 * config/v850/v850-opts.h: New.
10722 * config/v850/v850.c (small_memory): Replace with
10723 small_memory_physical_max array. Make that array static const.
10724 (v850_handle_memory_option): Take integer value of argument. Take
10725 gcc_options pointer, option text and location. Return void.
10726 Update for changes to small memory structures.
10727 (v850_handle_option): Access target_flags via opts pointer. Don't
10728 assert that global structures are in use. Update calls to
10729 v850_handle_memory_option.
10730 (v850_encode_data_area): Update references to small memory settings.
10731 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10732 (enum small_memory_type): Move to v850-opts.h.
10733 * config/v850/v850.opt (config/v850/v850-opts.h): New
10734 HeaderInclude entry.
10735 (small_memory_max): New Variable entry.
10736 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10737 (mtda, mzda): Likewise.
10738
10739 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10740
10741 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10742 pointer. Don't assert that global structures are in use.
10743
10744 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10745
10746 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10747 via opts pointer. Don't assert that global structures are in use.
10748
10749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10750
10751 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10752 (munix=93): Use Var.
10753 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10754 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10755 * config/pa/pa-opts.h: New.
10756 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10757 (pa_handle_option): Don't assert that global structures are in
10758 use. Access target_flags via opts pointer. Don't handle
10759 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10760 OPT_munix_98 here.
10761 (pa_option_override): Handle deferred OPT_mfixed_range_.
10762
10763 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10764
10765 * config/mn10300/mn10300-opts.h: New.
10766 * config/mn10300/mn10300.c (mn10300_processor,
10767 mn10300_tune_string): Remove.
10768 (mn10300_handle_option): Don't assert that global structures are
10769 in use. Access mn10300_processor via opts pointer. Don't handle
10770 OPT_mtune_ here.
10771 * config/mn10300/mn10300.h (enum processor_type): Move to
10772 mn10300-opts.h.
10773 (mn10300_processor): Remove.
10774 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10775 HeaderInclude entry.
10776 (mn10300_processor): New Variable entry.
10777 (mtune=): Use Var.
10778
10779 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10780
10781 * config/microblaze/microblaze.c: Don't include opts.h.
10782 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10783 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10784 (mno-clearbss): Use Var and Warn.
10785
10786 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10787
10788 * config/m32r/m32r-opts.h: New.
10789 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10790 (m32r_handle_option): Don't assert that global structures are in
10791 use. Access target_flags and m32r_cache_flush_func via opts
10792 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10793 OPT_mno_flush_trap here.
10794 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10795 include of m32r-opts.h.
10796 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10797 HeaderInclude entry.
10798 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10799 (mmodel=): Use Enum and Var.
10800 (m32r_model): New Enum and EnumValue entries.
10801 (mno-flush-trap): Use Var.
10802 (msdata=): Use Enum and Var.
10803 (m32r_sdata): New Enum and EnumValue entries.
10804
10805 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10806
10807 * config/m32c/m32c.c: Don't include opts.h.
10808 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10809 m32c_handle_option): Remove.
10810 (m32c_option_override): Check global_options_set.x_target_memregs
10811 instead of target_memregs_set.
10812 * config/m32c/m32c.h (target_memregs): Remove.
10813 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10814 variable.
10815
10816 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10817
10818 * config/iq2000/iq2000-opts.h: New.
10819 * config/iq2000/iq2000.c: Don't include opts.h.
10820 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10821 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10822 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10823 HeaderInclude entry.
10824 (iq2000_tune): New Variable entry.
10825 (march=): Add comment. Use Enum.
10826 (iq2000_arch): New Enum and EnumValue entries.
10827 (mcpu=): Use Enum and Var.
10828 (iq2000_tune): New Enum and EnumValue entries.
10829
10830 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10831
10832 * config/ia64/ia64-opts.h: New.
10833 * config/ia64/ia64.c (ia64_tune): Remove.
10834 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10835 here. Use error_at.
10836 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10837 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10838 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10839 HeaderInclude entry.
10840 (ia64_tune): New Variable entry.
10841 (mfixed-range=): Use Defer and Var.
10842 (mtune=): Use Enum and Var.
10843 (ia64_tune): New Enum and EnumValue entries.
10844
10845 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10846
10847 * config/frv/frv-opts.h: New.
10848 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10849 frv-opts.h.
10850 (frv_cpu_type): Remove.
10851 * config/frv/frv.c: Don't include opts.h.
10852 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10853 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10854 (frv_cpu_type): New Variable entry.
10855 (frv_cpu): New Enum and EnumValue entries.
10856
10857 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10858
10859 * config/cris/cris.c (cris_handle_option): Access target_flags via
10860 opts pointer. Don't assert that global structures are in use.
10861 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10862 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10863
10864 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10865
10866 * config/bfin/bfin-opts.h: New.
10867 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10868 bfin_si_revision, bfin_workarounds): Remove.
10869 (bfin_cpus): Make static const.
10870 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10871 not bfin_lib_id_given.
10872 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10873 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10874 pointer. Use error_at. Don't assert that global structures are in use.
10875 * config/bfin/bfin.h: Include bfin-opts.h.
10876 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10877 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10878 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10879 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10880 entries.
10881
10882 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10883
10884 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10885 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10886 or -msoft-float here.
10887 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10888 -msoft-float and -mhard-float.
10889 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10890 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10891 msoft-float.
10892 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10893 -msoft-float.
10894 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10895 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10896 not mhard-float.
10897 (LIBGCC_SPEC): Don't handle -msoft-float.
10898 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10899 -mhard-float.
10900 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10901 msoft-float.
10902 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10903 -mfloat-abi=*, not -msoft-float and -mhard-float.
10904 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10905 -msoft-float.
10906 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10907 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10908 mhard-float and msoft-float.
10909 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10910 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10911 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10912 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10913 mhard-float.
10914 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10915 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10916 msoft-float.
10917 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10918 not mhard-float.
10919 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10920 not msoft-float.
10921
10922 2011-03-22 Richard Henderson <rth@redhat.com>
10923
10924 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10925 TARGET_ABI_WINDOWS_NT.
10926 (alpha_output_function_end_prologue): Likewise.
10927 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10928 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10929 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10930 (trap, *movsi_nt_vms): Likewise.
10931 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10932 (*tablejump_osf_nt_internal): Remove.
10933 * config/alpha/predicates.md (input_operand): Only test Pmode.
10934
10935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10936
10937 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10938 via opts pointer. Use error_at. Don't assert that global
10939 structures are in use.
10940
10941 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10942
10943 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10944 (ix86_handle_option): Access ix86_isa_flags and
10945 ix86_isa_flags_explicit via opts pointer. Don't assert that
10946 global structures are in use.
10947 (ix86_function_specific_save, ix86_function_specific_restore):
10948 Update ix86_isa_flags_explicit field name.
10949 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10950 (ix86_isa_flags_explicit): Rename TargetSave entry to
10951 x_ix86_isa_flags_explicit.
10952
10953 2011-03-22 Richard Henderson <rth@redhat.com>
10954
10955 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10956 (alpha_option_override, direct_return): Likewise.
10957 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10958 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10959 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10960 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10961 (alpha_expand_epilogue, alpha_end_function): Likewise.
10962 (alpha_init_libfuncs): Likewise.
10963 (struct machine_function): Remove unicosmk members.
10964 (print_operand) ['t']: Remove.
10965 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10966 unicosmk_output_module_name, unicosmk_output_common,
10967 current_section_align, unicosmk_output_text_section_asm_op,
10968 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10969 unicosmk_section_type_flags, unicosmk_unique_section,
10970 unicosmk_asm_named_section, unicosmk_insert_attributes,
10971 unicosmk_output_align, unicosmk_defer_case_vector,
10972 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10973 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10974 unicosmk_output_ssib, unicosmk_add_call_info_word,
10975 unicosmk_extern_head, unicosmk_output_default_externs,
10976 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10977 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10978 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10979 * config/alpha/alpha-protos.h: Update.
10980 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10981 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10982 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10983 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10984 (*mulsi_se, mulvsi3): Likewise.
10985 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10986 (*divmodsi_internal, call, call_value, realign): Likewise.
10987 (moddi3, umoddi3): Likewise; remove duplicate expander.
10988 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10989 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10990 (*movdi_nofix): Remove r/U alternative.
10991 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10992 * config/alpha/constraints.md ("U"): Remove.
10993 * config/alpha/predicates.md (call_operand"): Don't test
10994 TARGET_ABI_UNICOSMK.
10995
10996 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10997
10998 * target.def (handle_option): Take gcc_options and
10999 cl_decoded_option pointers and location_t.
11000 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11001 * doc/tm.texi: Regenerate.
11002 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11003 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11004 * lto-opts.c (lto_reissue_options): Generate option structure for
11005 targetm.handle_option call.
11006 * opts.c (target_handle_option): Update call to
11007 targetm.handle_option. Remove assertions about values now passed
11008 down to hook.
11009 * targhooks.c (default_target_handle_option): New.
11010 * targhooks.h (default_target_handle_option): Declare.
11011 * config/alpha/alpha.c: Include opts.h.
11012 (alpha_handle_option): Update to new hook interface.
11013 * config/arm/arm.c: Include opts.h.
11014 (arm_handle_option): Update to new hook interface.
11015 * config/arm/t-arm (arm.o): Update dependencies.
11016 * config/bfin/bfin.c: Include opts.h.
11017 (bfin_handle_option): Update to new hook interface.
11018 * config/cris/cris.c: Include opts.h.
11019 (cris_handle_option): Update to new hook interface.
11020 * config/frv/frv.c: Include opts.h.
11021 (frv_handle_option): Update to new hook interface.
11022 * config/i386/i386.c: Include opts.h.
11023 (ix86_handle_option): Update to new hook interface.
11024 (ix86_valid_target_attribute_inner_p): Generate option structure
11025 for call to ix86_handle_option.
11026 * config/i386/t-i386 (i386.o): Update dependencies.
11027 * config/ia64/ia64.c: Include opts.h.
11028 (ia64_handle_option): Update to new hook interface.
11029 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11030 * config/iq2000/iq2000.c: Include opts.h.
11031 (iq2000_handle_option): Update to new hook interface.
11032 * config/m32c/m32c.c: Include opts.h.
11033 (m32c_handle_option): Update to new hook interface.
11034 * config/m32r/m32r.c: Include opts.h.
11035 (m32r_handle_option): Update to new hook interface.
11036 * config/m68k/m68k.c: Include opts.h.
11037 (m68k_handle_option): Update to new hook interface.
11038 * config/mep/mep.c: Include opts.h.
11039 (mep_handle_option): Update to new hook interface.
11040 * config/microblaze/microblaze.c: Include opts.h.
11041 (microblaze_handle_option): Update to new hook interface.
11042 * config/mips/mips.c: Include opts.h.
11043 (mips_handle_option): Update to new hook interface.
11044 * config/mn10300/mn10300.c: Include opts.h.
11045 (mn10300_handle_option): Update to new hook interface.
11046 * config/pa/pa.c: Include opts.h.
11047 (pa_handle_option): Update to new hook interface.
11048 * config/pdp11/pdp11.c: Include opts.h.
11049 (pdp11_handle_option): Update to new hook interface.
11050 * config/rs6000/rs6000.c: Include opts.h.
11051 (rs6000_handle_option): Update to new hook interface.
11052 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11053 * config/rx/rx.c: Include opts.h.
11054 (rx_handle_option): Update to new hook interface.
11055 * config/s390/s390.c: Include opts.h.
11056 (s390_handle_option): Update to new hook interface.
11057 * config/score/score.c: Include opts.h.
11058 (score_handle_option): Update to new hook interface.
11059 * config/sh/sh.c: Include opts.h.
11060 (sh_handle_option): Update to new hook interface.
11061 * config/sparc/sparc.c: Include opts.h.
11062 (sparc_handle_option): Update to new hook interface.
11063 * config/v850/v850.c: Include opts.h.
11064 (v850_handle_option): Update to new hook interface.
11065
11066 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11067
11068 * gcc.c (driver_unknown_option_callback): Only permit and save
11069 unknown -Wno- options.
11070 (driver_wrong_lang_callback): Save options directly instead of via
11071 driver_unknown_option_callback.
11072
11073 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11074
11075 * combine.c (simplify_set): Try harder to find the best CC mode when
11076 simplifying a nested COMPARE on the RHS.
11077
11078 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11079
11080 * config/alpha/gnu.h: Remove.
11081 * config/arc: Remove directory.
11082 * config/arm/netbsd.h: Remove.
11083 * config/arm/t-pe: Remove.
11084 * config/crx: Remove directory.
11085 * config/i386/netbsd.h: Remove.
11086 * config/m68hc11: Remove directory.
11087 * config/m68k/uclinux-oldabi.h: Remove.
11088 * config/mcore/mcore-pe.h: Remove.
11089 * config/mcore/t-mcore-pe: Remove.
11090 * config/netbsd-aout.h: Remove.
11091 * config/rs6000/gnu.h: Remove.
11092 * config/sh/sh-symbian.h: Remove.
11093 * config/sh/symbian-base.c: Remove.
11094 * config/sh/symbian-c.c: Remove.
11095 * config/sh/symbian-cxx.c: Remove.
11096 * config/sh/symbian-post.h: Remove.
11097 * config/sh/symbian-pre.h: Remove.
11098 * config/sh/t-symbian: Remove.
11099 * config/svr3.h: Remove.
11100 * config/vax/netbsd.h: Remove.
11101 * config.build: Don't handle i[34567]86-*-pe.
11102 * config.gcc: Remove handling of deprecations for most deprecated
11103 targets.
11104 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11105 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11106 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11107 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11108 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11109 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11110 Remove cases.
11111 * config.host: Don't handle i[34567]86-*-pe.
11112 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11113 (ASM_SPEC32): Don't handle -mcall-gnu.
11114 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11115 -mcall-gnu.
11116 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11117 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11118 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11119 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11120 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11121 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11122 conditional on SYMBIAN.
11123 * configure.ac: Don't handle powerpc*-*-gnu*.
11124 * configure: Regenerate.
11125 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11126 * doc/install-old.texi (m6811, m6812): Don't mention.
11127 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11128 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11129 (m68k-uclinuxoldabi): Don't mention.
11130 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11131 Remove.
11132 (-mcall-gnu): Remove.
11133 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11134 families): Remove constraint documentation.
11135
11136 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11137
11138 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11139 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11140 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11141
11142 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11143
11144 PR target/48226
11145 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11146 vector when peeking at the next token for vector, don't expand the
11147 keywords.
11148
11149 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11150
11151 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11152 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11153 * config/avr/avr.c (init_cumulative_args)
11154 (avr_function_arg_advance): Use it.
11155 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11156 sibcall epilogues.
11157 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11158 (avr_function_ok_for_sibcall): ...this new function.
11159 (avr_lookup_function_attribute1): New static Function.
11160 (avr_naked_function_p, interrupt_function_p)
11161 (signal_function_p, avr_OS_task_function_p)
11162 (avr_OS_main_function_p): Use it.
11163 * config/avr/avr.md ("sibcall", "sibcall_value")
11164 ("sibcall_epilogue"): New expander.
11165 ("*call_insn", "*call_value_insn"): New insn.
11166 ("call_insn", "call_value_insn"): Remove
11167 ("call", "call_value", "epilogue"): Change expander to handle
11168 sibling calls.
11169
11170 2011-03-21 Nick Clifton <nickc@redhat.com>
11171
11172 * doc/invoke.texi (Overall Options): Move closing brace to end of
11173 options list.
11174 (Optimization Options): Add missing @gol.
11175 (Directory Options): Likewise.
11176 (i386 and x86-64 Options): Likewise.
11177 (RS6000 and PowerPC Options): Likewise.
11178 (i386 and x86-64 Windows Options): Likewise.
11179 (V850 Options): Add text missing from descriptions.
11180
11181 2011-03-22 Richard Henderson <rth@redhat.com>
11182
11183 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11184 (avr_incoming_return_addr_rtx): New.
11185 (emit_push_byte): New.
11186 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11187 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11188 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11189 (emit_pop_byte): New.
11190 (expand_epilogue): Use it. Pop frame pointer by bytes.
11191 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11192 (INCOMING_RETURN_ADDR_RTX): New.
11193 (INCOMING_FRAME_SP_OFFSET): New.
11194 (ARG_POINTER_CFA_OFFSET): New.
11195 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11196 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11197 (pophi): Remove.
11198
11199 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11200
11201 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11202
11203 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11204 (FUNCTION_ARG_ADVANCE): Likewise.
11205 * tm.texi.in: Change references to them to hook references.
11206 * tm.texi: Regenerate.
11207 * targhooks.c (default_function_arg): Eliminate check for target
11208 macro.
11209 (default_function_incoming_arg): Likewise.
11210 (default_function_arg_advance): Likewise.
11211 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11212 (function_arg_advance): Likewise.
11213 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11214
11215 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11216
11217 * tree.c (build_call_1): New function.
11218 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11219
11220 2011-03-22 Richard Guenther <rguenther@suse.de>
11221
11222 PR tree-optimization/48228
11223 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11224 for single-arg PHIs.
11225
11226 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11227
11228 PR rtl-optimization/48143
11229 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11230 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11231 sse2_cvtps2pd): Likewise.
11232
11233 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11234
11235 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11236
11237 2011-03-22 Richard Guenther <rguenther@suse.de>
11238
11239 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11240 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11241 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11242 and REALIGN_LOAD_EXPR.
11243 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11244 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11245 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11246 DOT_PROD_EXPR case ...
11247 (expand_expr_real_2): ... here.
11248 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11249 and REALIGN_LOAD_EXPR.
11250 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11251 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11252 (vect_create_epilog_for_reduction): Likewise.
11253 (vectorizable_reduction): Likewise.
11254 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11255 * tree-vect-stmts.c (vectorizable_load): Likewise.
11256
11257 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11258
11259 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11260
11261 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11262
11263 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11264 handling for PLTOFF/GOTOFF.
11265
11266 2011-03-22 Nick Clifton <nickc@redhat.com>
11267
11268 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11269 trailing backslash from the end of the macro definition.
11270
11271 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11272
11273 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11274 and PLT unspecs.
11275
11276 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11277
11278 * expr.h (prepare_operand): Move to...
11279 * optabs.h (prepare_operand): ...here and change the insn code
11280 parameter from "int" to "enum insn_code".
11281 (insn_operand_matches): Declare.
11282 * expr.c (init_expr_target): Use insn_operand_matches.
11283 (compress_float_constant): Likewise.
11284 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11285 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11286 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11287 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11288 Likewise.
11289 (gen_cond_trap): Likewise.
11290 (prepare_operand): Likewise. Change icode to an insn_code.
11291 (insn_operand_matches): New function.
11292 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11293 * reload1.c (gen_reload): Likewise.
11294 * targhooks.c (default_secondary_reload): Likewise.
11295
11296 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11297
11298 * config/alpha/alpha.md (unspec): New define_c_enum.
11299 (unspecv): Ditto.
11300
11301 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11302
11303 PR debug/48214
11304 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11305 between a call and its CALL_ARG_LOCATION note.
11306
11307 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11308
11309 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11310
11311 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11312
11313 PR c/42544
11314 PR c/48197
11315 * c-common.c (shorten_compare): If primopN is first sign-extended
11316 to opN and then zero-extended to result type, set primopN to opN.
11317
11318 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11319
11320 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11321 for barrier handlers.
11322
11323 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11324
11325 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11326 UNSPEC constants to be in the unspec enumeration, and redefine
11327 all UNSPECV constants to be in the unspecv enumeration, so that
11328 dumps print which unspec/unspec_volatile this is.
11329 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11330 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11331 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11332 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11333 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11334
11335 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11336 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11337 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11338 * config/rs6000/sync.md (isync, lwsync): Ditto.
11339
11340 2011-03-21 Richard Guenther <rguenther@suse.de>
11341
11342 * params.def (lto-min-partition): Fix typo.
11343
11344 2011-03-21 Richard Guenther <rguenther@suse.de>
11345
11346 PR c/47939
11347 * c-decl.c (grokdeclarator): Drop to the main variant only
11348 for array types. Drop flag_gen_aux_info check.
11349
11350 2011-03-21 Richard Guenther <rguenther@suse.de>
11351
11352 PR translation/47911
11353 * params.def (lto-partitions): Fix typo.
11354 (lto-min-partition): Fix wording.
11355
11356 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11357
11358 * config/rs6000/t-freebsd: Remove duplication from file.
11359
11360 2011-03-21 Richard Guenther <rguenther@suse.de>
11361
11362 PR middle-end/47661
11363 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11364
11365 2011-03-21 Richard Guenther <rguenther@suse.de>
11366
11367 PR lto/48210
11368 * params.def (lto-partitions): Require at least 1 partition.
11369
11370 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11371
11372 * gthr-solaris.h: Remove.
11373 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11374 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11375 (LIB_SPEC): Likewise.
11376 * config/sol2.opt (threads): Remove.
11377 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11378 (sparc*-*-solaris2*): Likewise.
11379 * configure.ac (enable_threads): Enable solaris support.
11380 * configure: Regenerate.
11381 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11382 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11383 solaris.
11384
11385 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11386
11387 * config.gcc: Obsolete *-*-solaris2.8*.
11388 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11389
11390 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11391
11392 PR bootstrap/48135
11393 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11394 reference. Solaris 8 perl works.
11395
11396 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11397
11398 PR bootstrap/48135
11399 * doc/install.texi (Prerequisites): Move jar etc. up.
11400 Explain support library version requirements.
11401
11402 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11403
11404 PR bootstrap/48135
11405 * doc/install.texi (Prerequisites): Move Perl to build
11406 requirements. Always necessary on Solaris 2 with Sun ld.
11407
11408 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11409
11410 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11411 binutils 2.21.
11412 (Specific, i?86-*-solaris2.[89]): Likewise.
11413 (Specific, i?86-*-solaris2.10): Likewise.
11414 (Specific, mips-sgi-irix6): Likewise.
11415 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11416 Update for binutils 2.21.
11417
11418 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11419
11420 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11421 Allow -fuse-linker-plugin for non-default plugin linker.
11422 * configure: Regenerate.
11423
11424 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11425
11426 PR bootstrap/48167
11427 * gengtype.c (files_rules): Added rule for cp/parser.h.
11428
11429 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11430
11431 PR target/48213
11432 * config/s390/s390.c (s390_delegitimize_address): Don't call
11433 lowpart_subreg if orig_x has BLKmode.
11434
11435 2011-03-21 Kai Tietz <ktietz@redhat.com>
11436
11437 PR target/12171
11438 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11439 * tree.h (attribute_spec): Add new member affects_type_identity.
11440 * attribs.c (empty_attribute_table): Adjust attribute_spec
11441 initializers.
11442 * config/alpha/alpha.c: Likewise.
11443 * config/arc/arc.c: Likewise.
11444 * config/arm/arm.c: Likewise.
11445 * config/avr/avr.c: Likewise.
11446 * config/bfin/bfin.c: Likewise.
11447 * config/crx/crx.c: Likewise.
11448 * config/darwin.h: Likewise.
11449 * config/h8300/h8300.c: Likewise.
11450 * config/i386/cygming.h: Likewise.
11451 * config/i386/i386.c: Likewise.
11452 * config/ia64/ia64.c: Likewise.
11453 * config/m32c/m32c.c: Likewise.
11454 * config/m32r/m32r.c: Likewise.
11455 * config/m68hc11/m68hc11.c: Likewise.
11456 * config/m68k/m68k.c: Likewise.
11457 * config/mcore/mcore.c: Likewise.
11458 * config/mep/mep.c: Likewise.
11459 * config/microblaze/microblaze.c: Likewise.
11460 * config/mips/mips.c: Likewise.
11461 * config/rs6000/rs6000.c: Likewise.
11462 * config/rx/rx.c: Likewise.
11463 * config/sh/sh.c: Likewise.
11464 * config/sol2.h: Likewise.
11465 * config/sparc/sparc.c: Likewise.
11466 * config/spu/spu.c: Likewise.
11467 * config/stormy16/stormy16.c: Likewise.
11468 * config/v850/v850.c: Likewise.
11469
11470 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11471
11472 * simplify-rtx.c (simplify_binary_operation_1): Handle
11473 (xor (and A B) C) case when B and C are both constants.
11474
11475 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11476
11477 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11478
11479 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11480
11481 PR bootstrap/48168
11482 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11483
11484 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11485
11486 PR rtl-optimization/48156
11487 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11488 assume df and df_lr are not NULL.
11489
11490 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11491
11492 PR debug/48023
11493 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11494 between a call and its CALL_ARG_LOCATION note.
11495
11496 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11497
11498 PR debug/48178
11499 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11500 between a call and its corresponding CALL_ARG_LOCATION note.
11501
11502 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11503
11504 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11505 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11506 * haifa-sched.c (setup_ref_regs): Ditto.
11507 * caller-save.c (add_used_regs_1): Ditto.
11508 * dse.c (look_for_hardregs): Ditto.
11509 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11510 * sched-rgn.c (check_live_1): Ditto.
11511
11512 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11513
11514 * c-decl.c (diagnose_mismatched_decls): Give an error for
11515 redefining a typedef with variably modified type.
11516
11517 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11518
11519 * c-decl.c (grokfield): Don't allow typedefs for structures or
11520 unions with no tag by default.
11521 * doc/extend.texi (Unnamed Fields): Update.
11522
11523 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11524
11525 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11526 Rewrite using indirect functions.
11527 (lwp_slwpcb): Ditto.
11528 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11529 (avx_vinsertf128<mode>): Ditto.
11530
11531 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11532
11533 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11534 unspecs.
11535
11536 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11537
11538 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11539 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11540
11541 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11542
11543 PR rtl-optimization/48170
11544 * gcse.c (hoist_code): Remove bogus asserts.
11545
11546 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11547
11548 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11549 computation for prologue/epilogue.
11550
11551 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11552
11553 * Makefile.in (check-consistency): Remove.
11554
11555 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11556
11557 PR debug/48176
11558 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11559 arange_table_in_use is 0, but either text_section_used or
11560 cold_text_section_used is true. Don't call it if
11561 !info_section_emitted.
11562
11563 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11564
11565 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11566 FUNCTION_VALUE_REGNO_P): Remove.
11567 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11568 Remove.
11569 * config/avr/avr.c (avr_ret_register): Make static inline.
11570 (avr_function_value_regno_p): New function.
11571 (avr_libcall_value): Make static. Add 'func' argument.
11572 (avr_function_value): Make static. Rename 'func' argument to
11573 'fn_decl_or_type', forward it to avr_libcall_value. Call
11574 avr_ret_register function instead of RET_REGISTER macro.
11575 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11576
11577 2011-03-18 Jason Merrill <jason@redhat.com>
11578
11579 PR c++/23372
11580 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11581
11582 2011-03-18 Richard Guenther <rguenther@suse.de>
11583
11584 * doc/install.texi (--enable-gold): Remove.
11585 (--with-plugin-ld): Document.
11586 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11587
11588 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11589
11590 PR middle-end/47790
11591 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11592 again after expansion changes.
11593
11594 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11595
11596 * combine.c (try_combine): Do simplification only call of
11597 subst() on i2 even when i1 is present. Update comments.
11598
11599 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11600
11601 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11602 and UNSPEC_PCREL_SYMOFF.
11603
11604 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11605
11606 * config/s390/s390.md: Use define_c_enum for the unspec constant
11607 definitions.
11608
11609 2011-03-18 Richard Henderson <rth@redhat.com>
11610 Jakub Jelinek <jakub@redhat.com>
11611
11612 PR bootstrap/48161
11613 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11614 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11615
11616 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11617
11618 PR middle-end/47725
11619 * combine.c (cant_combine_insn_p): Don't check zero/sign
11620 extended hard registers.
11621
11622 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11623
11624 PR middle-end/47725
11625 * combine.c (cant_combine_insn_p): Check zero/sign extended
11626 hard registers.
11627
11628 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11629
11630 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11631 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11632 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11633 Change return type to bool.
11634 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11635
11636 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11637
11638 PR debug/48163
11639 * var-tracking.c (prepare_call_arguments): If CALL target
11640 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11641 pc instead of looking it up using cselib_lookup and use
11642 Pmode for it if x has VOIDmode.
11643 * dwarf2out.c (gen_subprogram_die): If also both first and
11644 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11645
11646 PR debug/48163
11647 * function.c (assign_parms): For data.passed_pointer parms
11648 use MEM of data.entry_parm instead of data.entry_parm itself
11649 as DECL_INCOMING_RTL.
11650 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11651 also when passed and declared mode is the same, DECL_RTL
11652 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11653 a MEM too.
11654
11655 2011-03-16 Jeff Law <law@redhat.com>
11656
11657 PR rtl-optimization/37273
11658 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11659 handle them like argument loads from stack slots. Do not double
11660 count memory for memory constants and argument loads from stack slots.
11661
11662 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11663
11664 PR debug/48160
11665 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11666
11667 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11668
11669 PR target/48171
11670 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11671
11672 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11673
11674 PR bootstrap/48153
11675 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11676 if dwarf_strict.
11677 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11678 Clear call_arg_locations and call_arg_loc_last always.
11679
11680 PR middle-end/48152
11681 * var-tracking.c (prepare_call_arguments): If argument needs to be
11682 passed by reference, adjust argtype and mode.
11683
11684 2011-03-17 Richard Guenther <rguenther@suse.de>
11685
11686 PR middle-end/48134
11687 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11688 a value make sure to fold the statement.
11689
11690 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11691
11692 PR target/43872
11693 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11694 return condition with !cfun->calls_alloca.
11695
11696 2011-03-17 Richard Guenther <rguenther@suse.de>
11697
11698 PR bootstrap/48148
11699 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11700 origin for decls in other ltrans units.
11701 (input_varpool_node): Likewise.
11702
11703 2011-03-17 Richard Guenther <rguenther@suse.de>
11704
11705 PR middle-end/48165
11706 * tree-object-size.c (compute_object_offset): Properly return
11707 the offset operand of MEM_REFs as sizetype.
11708
11709 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11710
11711 PR rtl-optimization/48141
11712 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11713 * dse.c: Include params.h.
11714 (active_local_stores_len): New variable.
11715 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11716 to NULL.
11717 (record_store, check_mem_read_rtx): Decrease it when removing
11718 from the chain.
11719 (scan_insn): Likewise. Increase it when adding to chain, if it
11720 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11721 set active_local_stores to NULL before the addition.
11722 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11723
11724 PR rtl-optimization/48141
11725 * dse.c (record_store): If no positions are needed in an insn
11726 that cannot be deleted, at least unchain it from active_local_stores.
11727
11728 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11729
11730 PR debug/47510
11731 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11732 (lookup_type_die_strip_naming_typedef): ... here.
11733 (get_context_die): Use it.
11734 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11735 the anonymous struct named by the naming typedef.
11736
11737 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11738
11739 PR target/48154
11740 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11741 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11742
11743 2011-03-16 Jeff Law <law@redhat.com>
11744
11745 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11746 check for operands of conditional. Allow type to be a pointer.
11747
11748 2011-03-16 Richard Guenther <rguenther@suse.de>
11749
11750 PR tree-optimization/48149
11751 * fold-const.c (fold_binary_loc): Fold
11752 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11753
11754 2011-03-16 Richard Guenther <rguenther@suse.de>
11755
11756 PR tree-optimization/26134
11757 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11758 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11759 (non_rewritable_mem_ref_base): Handle complex type component
11760 accesses, constrain offsets for vector and complex extracts
11761 more properly.
11762
11763 2011-03-16 Richard Guenther <rguenther@suse.de>
11764
11765 PR tree-optimization/48146
11766 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11767 operands avoiding the need for renaming.
11768
11769 2011-03-16 Richard Guenther <rguenther@suse.de>
11770
11771 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11772 constant folding. Move MEM_REF canonicalization first.
11773 Rely on fold_const_aggregate_ref for initializer folding.
11774 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11775
11776 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11777
11778 PR middle-end/48136
11779 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11780 arg0/arg1 or their arguments are always fold converted to matching
11781 types.
11782
11783 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11784 to nargs.
11785
11786 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11787
11788 PR lto/46944
11789 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11790 Handle in-tree gold.
11791 (ld_vers): Extract binutils version for gold.
11792 (gcc_cv_ld_hidden): Handle gold here.
11793 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11794 * configure: Regenerate.
11795 * config.in: Regenerate.
11796 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11797 -fuse-linker-plugin otherwise.
11798 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11799 (LINK_COMMAND_SPEC): Use it.
11800 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11801
11802 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11803
11804 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11805 * calls.c: Remove debug.h include.
11806 (emit_call_1): Don't call virtual_call_token debug hook.
11807 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11808 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11809 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11810 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11811 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11812 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11813 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11814 dwarf2out_virtual_call): Remove.
11815 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11816 copy_call_info and virtual_call hooks.
11817 (dwarf2out_init): Don't initialize vcall_insn_table,
11818 debug_dcall_section and debug_vcall_section.
11819 (prune_unused_types): Don't mark nodes from dcall_table.
11820 (dwarf2out_finish): Don't output dcall or vcall tables.
11821 * final.c (final_scan_insn): Don't call direct_call or
11822 virtual_call debug hooks.
11823 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11824 virtual_call_token, copy_call_info and virtual_call hooks.
11825 (debug_nothing_uid): Remove prototype.
11826 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11827 copy_call_info and virtual_call hooks.
11828 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11829 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11830 * debug.c (do_nothing_debug_hooks): Likewise.
11831 (debug_nothing_uid): Remove.
11832 * doc/invoke.texi (-fenable-icf-debug): Remove.
11833 * common.opt (-fenable-icf-debug): Likewise.
11834
11835 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11836 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11837 call's MEM. Handle functions returning aggregate through a hidden
11838 first pointer. For virtual calls add clobbered pc to call arguments
11839 chain.
11840 * dwarf2out.c (gen_subprogram_die): Emit
11841 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11842 can't be emitted.
11843
11844 PR debug/45882
11845 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11846 * rtl.h (ENTRY_VALUE_EXP): Define.
11847 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11848 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11849 * print-rtl.c (print_rtx): Likewise.
11850 * gengtype.c (adjust_field_rtx_def): Likewise.
11851 * var-tracking.c (vt_add_function_parameter): Adjust
11852 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11853 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11854 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11855 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11856 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11857
11858 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11859 Call var_location debug hook even on CALL_INSNs.
11860 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11861 * rtl.def (ENTRY_VALUE): New.
11862 * dwarf2out.c: Include cfglayout.h.
11863 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11864 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11865 (struct call_arg_loc_node): New type.
11866 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11867 tail_call_site_count): New variables.
11868 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11869 DW_TAG_GNU_call_site_parameter.
11870 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11871 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11872 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11873 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11874 and DW_AT_GNU_all_source_call_sites.
11875 (mem_loc_descriptor): Handle ENTRY_VALUE.
11876 (add_src_coords_attributes): Don't add enything if
11877 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11878 (dwarf2out_abstract_function): Save and clear call_arg_location,
11879 call_site_count and tail_call_site_count around dwarf2out_decl call.
11880 (gen_call_site_die): New function.
11881 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11882 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11883 (dwarf2out_function_decl): Clear call_arg_locations,
11884 call_arg_loc_last, set call_site_count and tail_call_site_count
11885 to -1 and free block_map.
11886 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11887 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11888 followed by any real instructions.
11889 (dwarf2out_begin_function): Set call_site_count and
11890 tail_call_site_count to 0.
11891 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11892 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11893 attempt to force a DIE for it and worst case remove the attribute.
11894 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11895 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11896 the decl itself.
11897 * var-tracking.c: Include tm_p.h.
11898 (vt_stack_adjustments): For calls call note_register_arguments.
11899 (argument_reg_set): New variable.
11900 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11901 ensure the VALUE is resolved.
11902 (call_arguments): New variable.
11903 (prepare_call_arguments): New function.
11904 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11905 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11906 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11907 always use the best expression.
11908 (vt_expand_loc): Add ignore_cur_loc argument.
11909 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11910 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11911 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11912 note for all calls.
11913 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11914 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11915 argument. Don't call cselib_preserve_only_values and
11916 cselib_reset_table.
11917 (note_register_arguments): New function.
11918 (vt_initialize): Compute argument_reg_set. Call
11919 vt_add_function_parameters before processing basic blocks instead of
11920 afterwards. For calls call prepare_call_arguments before calling
11921 cselib_process_insn.
11922 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11923 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11924 (var-tracking.o): Depend on $(TM_P_H).
11925 * cfglayout.h (insn_scope): New prototype.
11926 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11927 * cfglayout.c (insn_scope): No longer static.
11928 * insn-notes.def (CALL_ARG_LOCATION): New.
11929 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11930 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11931 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11932 nothing for DECL_EXTERNAL BLOCK_VARS.
11933
11934 2011-03-16 Alan Modra <amodra@gmail.com>
11935
11936 PR target/45844
11937 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11938 create invalid offset address for vsx splat insn.
11939 * config/rs6000/predicates.md (splat_input_operand): New.
11940 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11941
11942 2011-03-15 Xinliang David Li <davidxl@google.com>
11943
11944 PR c/47837
11945 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11946 (normalize_preds): New function.
11947 (is_use_properly_guarded): Normalize def predicates.
11948
11949 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11950
11951 PR target/46788
11952 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11953 in the output template.
11954
11955 2011-03-15 Richard Guenther <rguenther@suse.de>
11956
11957 PR middle-end/47650
11958 * tree-pretty-print.c (dump_function_declaration): Properly
11959 dump unprototyped and varargs function types.
11960
11961 2011-03-15 Richard Guenther <rguenther@suse.de>
11962
11963 PR tree-optimization/13954
11964 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11965 and friends.
11966
11967 2011-03-15 Richard Guenther <rguenther@suse.de>
11968
11969 PR tree-optimization/48037
11970 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11971 selects into BIT_FIELD_REFs.
11972 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11973 vector select.
11974
11975 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11976
11977 PR tree-optimization/48129
11978 * builtins.c (fold_builtin_snprintf): Convert to type of
11979 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11980 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11981
11982 2011-03-15 Richard Guenther <rguenther@suse.de>
11983
11984 PR tree-optimization/41490
11985 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11986 value but with VUSE.
11987 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11988 return statements.
11989 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11990 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11991 * tree-tailcall.c (find_tail_calls): Ignore returns.
11992
11993 2011-03-15 Richard Guenther <rguenther@suse.de>
11994
11995 PR middle-end/48031
11996 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11997 or variable-indexed array accesses when in gimple form.
11998
11999 2011-03-15 Richard Guenther <rguenther@suse.de>
12000
12001 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12002
12003 2011-03-15 Alan Modra <amodra@gmail.com>
12004
12005 PR target/48032
12006 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12007 presume symbol_refs without a symbol_ref_decl are suitably
12008 aligned, nor other trees we may see here. Handle anchor symbols.
12009 (legitimate_constant_pool_address_p): Comment. Add mode param.
12010 Check cmodel=medium addresses. Adjust all calls.
12011 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12012 creating cmodel=medium optimized access to locals.
12013 * config/rs6000/constraints.md (R): Pass QImode to
12014 legitimate_constant_pool_address_p.
12015 * config/rs6000/predicates.md (input_operand): Pass mode to
12016 legitimate_constant_pool_address_p.
12017 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12018 Update prototype.
12019
12020 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12021
12022 PR target/48053
12023 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12024 64-bit constants being loaded into registers other than GPRs such
12025 as loading 0 into a VSX register.
12026
12027 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12028
12029 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12030
12031 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12032
12033 PR middle-end/47917
12034 * builtins.c (fold_builtin_snprintf): New function.
12035 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12036 (fold_builtin_4): Likewise.
12037
12038 PR middle-end/38878
12039 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12040 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12041 and C - X == X also strip nops from +/-/p+ operand.
12042 When optimizing -X == C, fold C to arg0's type.
12043
12044 PR debug/47946
12045 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12046 emit it as add_AT_int instead of add_AT_unsigned.
12047
12048 2011-03-14 Tom Tromey <tromey@redhat.com>
12049
12050 * unwind-dw2.c: Include sys/sdt.h if it exists.
12051 (_Unwind_DebugHook): Use STAP_PROBE2.
12052 * config.in, configure: Rebuild.
12053 * configure.ac: Check for sys/sdt.h.
12054
12055 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12056
12057 * config/i386/i386.md (ROUND_FLOOR): New constant.
12058 (ROUND_CEIL): Ditto.
12059 (ROUND_TRUNC): Ditto.
12060 (ROUND_MXCSR): Ditto.
12061 (ROUND_NO_EXC): Ditto.
12062 (rint<mode>2): Use new defines instead of numerical constants.
12063 (floor<mode>2): Ditto.
12064 (ceil<mode>2): Ditto.
12065 (btrunc<mode>2): Ditto.
12066 * config/i386/i386-builtin-types.def: Define ROUND function type
12067 aliases.
12068 * config/i386/i386.c (enum ix86_builtins): Add
12069 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12070 (struct builtin_description): Add
12071 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12072 (ix86_expand_sse_round): New static function.
12073 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12074 function types.
12075 (ix86_builtin_vectorized_function): Handle
12076 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12077
12078 2011-03-14 Tom Tromey <tromey@redhat.com>
12079
12080 * c-parser.c (c_parser_asm_string_literal): Clear
12081 warn_overlength_strings.
12082
12083 2011-03-14 Tom Tromey <tromey@redhat.com>
12084
12085 * c-parser.c (disable_extension_diagnostics): Save
12086 warn_overlength_strings.
12087 (restore_extension_diagnostics): Restore warn_overlength_strings.
12088
12089 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12090
12091 * BASE-VER: Change to 4.7.0.
12092
12093 2011-03-14 Richard Guenther <rguenther@suse.de>
12094
12095 PR middle-end/48098
12096 * tree.c (build_vector_from_val): Adjust assert to requirements
12097 and reality.
12098
12099 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12100
12101 PR bootstrap/48102
12102 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12103
12104 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12105
12106 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12107 terms of target_flags_explicit. Adjust copyright year.
12108
12109 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12110 * config/rs6000/t-freebsd: New file. Add override for
12111 LIB2FUNCS_EXTRA.
12112
12113 2011-03-13 Chris Demetriou <cgd@google.com>
12114
12115 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12116 (-fno-diagnostics-show-option): this, to reflect current default.
12117 (-Werror=): Update text about -fno-diagnostics-show-option.
12118
12119 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12120
12121 PR target/48053
12122 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12123 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12124 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12125 mode is not V2DImode or V2DFmode.
12126 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12127 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12128 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12129 registers to 0.
12130 (movdi_internal64): Likewise.
12131
12132 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12133
12134 PR tree-optimization/47127
12135 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12136 parameter.
12137 (set_cloog_options): Same.
12138 (scop_to_clast): Same.
12139 (print_clast_stmt): Do not call cloog_state_malloc and
12140 cloog_state_free.
12141 (print_generated_program): Same.
12142 (gloog): Same.
12143 * graphite-clast-to-gimple.h (cloog_state): Declared.
12144 (scop_to_clast): Adjust declaration.
12145 * graphite.c (cloog_state): Defined here.
12146 (graphite_initialize): Call cloog_state_malloc.
12147 (graphite_finalize): Call cloog_state_free.
12148
12149 2011-03-11 Jason Merrill <jason@redhat.com>
12150
12151 * attribs.c (lookup_attribute_spec): Take const_tree.
12152 * tree.h: Adjust.
12153
12154 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12155
12156 * config/sparc/sparc.c (sparc_option_override): Use
12157 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12158
12159 2011-03-11 Richard Guenther <rguenther@suse.de>
12160
12161 PR tree-optimization/48067
12162 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12163 multiplication result will be only used once on the target
12164 stmt.
12165
12166 2011-03-11 Richard Guenther <rguenther@suse.de>
12167
12168 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12169
12170 2011-03-11 Richard Guenther <rguenther@suse.de>
12171
12172 PR lto/48073
12173 * tree.c (find_decls_types_r): Do not walk types only reachable
12174 from IDENTIFIER_NODEs.
12175
12176 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12177
12178 PR middle-end/48044
12179 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12180 all vnode->force_output nodes as needed.
12181
12182 2011-03-11 Jason Merrill <jason@redhat.com>
12183
12184 PR c++/48069
12185 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12186 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12187
12188 2011-03-11 Martin Jambor <mjambor@suse.cz>
12189
12190 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12191 cgraph_node.
12192
12193 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12194
12195 PR tree-optimization/48063
12196 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12197 inline functions called once if !tree_can_inline_p (node->callers).
12198
12199 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12200
12201 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12202 extra_objs.
12203 * config/score/score3.c: Delete.
12204 * config/score/score3.h: Delete.
12205 * config/score/mul-div.S: Delete.
12206 * config/score/sfp-machine.h: Add new file.
12207 * config/score/constraints.md: Add new file.
12208 * config/score/t-score-softfp: Add new file.
12209 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12210 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12211 (score7_extra_constraint): Delete.
12212 (score7_option_override): Remove unused code.
12213 * config/score/score.c: Remove score3 and score5 define and code.
12214 * config/score/score.h: Remove score3 and score5 define and code.
12215 * config/score/score.md: Remove score3 template and unusual insn.
12216 * config/score/score.opt: Remove score3 and score5 options.
12217
12218 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12219
12220 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12221 when _HPUX_SOURCE is defined.
12222 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12223
12224 2011-03-10 Jason Merrill <jason@redhat.com>
12225
12226 PR c++/48029
12227 * stor-layout.c (layout_type): Don't set structural equality
12228 on arrays of incomplete type.
12229 * tree.c (type_hash_eq): Handle comparing them properly.
12230
12231 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12232
12233 PR debug/48043
12234 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12235 result mode matches original rtl mode.
12236
12237 2011-03-10 Nick Clifton <nickc@redhat.com>
12238
12239 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12240 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12241
12242 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12243
12244 PR rtl-optimization/47866
12245 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12246 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12247 if target wasn't scalar.
12248 * function.c (assign_stack_temp_for_type): Assert that neither
12249 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12250 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12251 macro.
12252 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12253
12254 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12255
12256 * config/s390/s390-protos.h (s390_label_align): New prototype.
12257 * config/s390/s390.c (s390_label_align): New function.
12258 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12259
12260 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12261
12262 PR target/47755
12263 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12264 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12265 (output_vec_const_move): Ditto.
12266
12267 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12268
12269 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12270 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12271 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12272 Change 'rclass' argument and result type to reg_class_t.
12273 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12274
12275 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12276
12277 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12278 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12279 (TARGET_MEMORY_MOVE_COST): Define.
12280 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12281
12282 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12283
12284 PR debug/47881
12285 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12286 removed anything.
12287
12288 PR tree-optimization/48022
12289 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12290 for EQ/NE_EXPR.
12291
12292 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12293
12294 PR debug/47991
12295 * var-tracking.c (find_use_val): Return NULL for
12296 cui->sets && cui->store_p BLKmode MEMs.
12297
12298 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12299
12300 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12301 Remove.
12302 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12303 xstormy16_print_operand_address): Remove.
12304 * config/stormy16/stormy16.c (xstormy16_print_operand,
12305 xstormy16_print_operand_address): Make static.
12306 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12307
12308 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12309
12310 PR target/47862
12311 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12312 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12313 before definition.
12314
12315 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12316
12317 PR bootstrap/48000
12318 * cfgloopmanip.c (fix_bb_placements): Return immediately
12319 if FROM is BASE_LOOP's header.
12320
12321 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12322
12323 * gimplify.c (gimplify_function_tree): Fix building calls
12324 to __builtin_return_address.
12325
12326 2011-03-07 Alan Modra <amodra@gmail.com>
12327
12328 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12329 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12330 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12331 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12332 return_mode args.
12333 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12334 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12335 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12336 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12337 * config/rs6000/rs6000.c
12338 (rs6000_elf_end_indicate_exec_stack): Rename to..
12339 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12340 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12341 (rs6000_file_start): ..here.
12342 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12343 file scope variables.
12344 (call_ABI_of_interest): New function.
12345 (init_cumulative_args): Set above vars when function return value
12346 is a float, vector, or small struct.
12347 (rs6000_function_arg_advance_1): Likewise for function args.
12348 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12349 references float args.
12350
12351 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12352
12353 * doc/cfg.texi: Remove "See" before @ref.
12354 * doc/invoke.texi: Likewise.
12355
12356 2011-03-05 Jason Merrill <jason@redhat.com>
12357
12358 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12359
12360 2011-03-05 Anthony Green <green@moxielogic.com>
12361
12362 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12363
12364 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12365
12366 PR rtl-optimization/47899
12367 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12368 to flow_loop_nested_p when moving the loop upward.
12369
12370 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12371
12372 PR target/47719
12373 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12374
12375 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12376
12377 PR tree-optimization/47967
12378 * ipa-cp.c (build_const_val): Return NULL instead of creating
12379 VIEW_CONVERT_EXPR for mismatching sizes.
12380 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12381 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12382 give up on versioning.
12383
12384 2011-03-05 Alan Modra <amodra@gmail.com>
12385
12386 PR target/47986
12387 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12388 full cmodel medium/large lo_sum + high addresses.
12389
12390 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12391
12392 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12393 pool references in UNSPEC_LTREL_OFFSET.
12394
12395 2011-03-04 Jan Hubicka <jh@suse.cz>
12396
12397 PR lto/47497
12398 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12399 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12400 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12401 Add node pointers.
12402 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12403 cgraph_add_thunk): Add node pointers.
12404 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12405 associated to right node.
12406 (input_node): Update use of cgraph_same_body_alias
12407 and cgraph_add_thunk.
12408
12409 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12410
12411 * config/i386/i386.opt (mprefer-avx128): New flag.
12412 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12413 modes when the flag -mprefer-avx128 is on.
12414
12415 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12416
12417 * dwarf2out.c (compare_loc_operands): Fix address handling.
12418
12419 2011-03-04 Alan Modra <amodra@gmail.com>
12420
12421 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12422
12423 2011-03-04 Richard Guenther <rguenther@suse.de>
12424
12425 PR middle-end/47968
12426 * expmed.c (extract_bit_field_1): Prefer vector modes that
12427 vec_extract patterns can handle.
12428
12429 2011-03-04 Richard Guenther <rguenther@suse.de>
12430
12431 PR middle-end/47975
12432 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12433
12434 2011-03-04 Richard Henderson <rth@redhat.com>
12435
12436 * explow.c (emit_stack_save): Remove 'after' parameter.
12437 (emit_stack_restore): Likewise.
12438 * expr.h: Update to match.
12439 * builtins.c, calls.c, stmt.c: Likewise.
12440 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12441 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12442 * function.c (expand_function_end): Insert the emit_stack_save
12443 sequence before parm_birth_insn instead of after.
12444
12445 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12446
12447 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12448 (ssse3_pmaddubsw128): Ditto.
12449 (ssse3_pmaddubsw): Ditto.
12450
12451 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12452
12453 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12454
12455 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12456
12457 PR c/47963
12458 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12459 on TYPE_SIZE_UNIT if it is a DECL.
12460
12461 PR debug/47283
12462 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12463 first operand is not is_gimple_mem_ref_addr, try to fold it.
12464 If the operand still isn't is_gimple_mem_ref_addr, clear
12465 MEM_EXPR on op0.
12466
12467 2011-03-03 Richard Guenther <rguenther@suse.de>
12468
12469 PR middle-end/47283
12470 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12471 match comment.
12472 (refs_may_alias_p_1): For release branches return true if
12473 we are confused by our input.
12474
12475 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12476
12477 * config/s390/s390.c (s390_function_value): Rename to ...
12478 (s390_function_and_libcall_value): ... this.
12479 (s390_function_value): New function.
12480 (s390_libcall_value): New function.
12481 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12482 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12483 target macro definitions.
12484 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12485
12486 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12487
12488 * config/i386/freebsd64.h (CC1_SPEC): Define.
12489 * config/i386/linux64.h (CC1_SPEC): Define.
12490 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12491
12492 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12493
12494 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12495 Remove.
12496 * config/stormy16/stormy16.c: Include reload.h.
12497 (xstormy16_memory_move_cost): New function.
12498 (TARGET_MEMORY_MOVE_COST): Define.
12499
12500 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12501
12502 PR rtl-optimization/47925
12503 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12504 with side effects. Remove the more-specific check for volatile asms.
12505
12506 2011-03-02 Alan Modra <amodra@gmail.com>
12507
12508 PR target/47935
12509 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12510 toc relative addresses for valid offsets.
12511
12512 2011-03-01 Richard Guenther <rguenther@suse.de>
12513
12514 PR tree-optimization/47890
12515 * tree-vect-loop.c (get_initial_def_for_induction): Set
12516 related stmt properly.
12517
12518 2011-03-01 Richard Guenther <rguenther@suse.de>
12519
12520 PR lto/47924
12521 * lto-streamer.c (lto_record_common_node): Also register
12522 the canonical type.
12523
12524 2011-03-01 Richard Guenther <rguenther@suse.de>
12525
12526 PR lto/46911
12527 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12528 Do not stream DECL_ABSTRACT_ORIGIN.
12529 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12530 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12531 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12532 Do not stream DECL_ABSTRACT_ORIGIN.
12533 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12534 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12535
12536 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12537
12538 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12539 FUNCTION_VALUE_REGNO_P): Remove.
12540 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12541 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12542 Add 'outgoing' argument.
12543 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12544 function.
12545 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12546 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12547
12548 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12549
12550 PR debug/28047
12551 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12552 (lookup_filename): Likewise.
12553 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12554
12555 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12556 Jakub Jelinek <jakub@redhat.com>
12557
12558 PR middle-end/47893
12559 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12560 (assign_stack_local_1): Change last argument type to int.
12561 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12562 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12563 don't record padding space into frame_space_list nor use those areas.
12564 (assign_stack_local): Adjust caller.
12565 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12566 of assign_stack_local, pass 0 as last argument.
12567 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12568 callers.
12569
12570 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12571
12572 PR debug/47283
12573 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12574 Use target address_mode and pointer_mode hooks instead of hardcoded
12575 Pmode and ptr_mode. Handle some simple cases of extending if
12576 POINTERS_EXTEND_UNSIGNED < 0.
12577 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12578 Call convert_debug_memory_address.
12579 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12580 convert_debug_memory_address.
12581
12582 PR middle-end/46790
12583 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12584 * configure: Regenerated.
12585 * config.in: Regenerated.
12586 * varasm.c (default_function_section): Return NULL
12587 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12588
12589 2011-02-28 Martin Jambor <mjambor@suse.cz>
12590
12591 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12592 the description to match the printed values.
12593
12594 2011-02-28 Richard Guenther <rguenther@suse.de>
12595
12596 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12597 of the copied scope tree.
12598
12599 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12600
12601 * doc/extend.texi (Function Attributes): Avoid deeply (and
12602 wrongly) nested tables.
12603
12604 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12605
12606 PR middle-end/47903
12607 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12608 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12609 r isn't op0 nor op1.
12610
12611 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12612
12613 * config/avr/avr.md: Remove magic comment for emacs.
12614
12615 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12616
12617 PR target/45261
12618 * config/avr/avr.c (avr_option_override): Use error on bad options.
12619 (avr_help): New function.
12620 (TARGET_HELP): Define.
12621
12622 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12623
12624 PR target/42240
12625 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12626 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12627
12628 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12629
12630 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12631 (ARM Options): Ditto.
12632 (i386 and x86-64 Options): Ditto.
12633 (RX Options): Ditto.
12634 (SPARC Options): Ditto.
12635
12636 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12637
12638 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12639 FreeBSD 6 and later. Generally use cpu generic.
12640
12641 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12642
12643 * doc/cpp.texi: Update copyright years.
12644
12645 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12646
12647 PR target/46898
12648 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12649
12650 2011-02-25 Jon Beniston <jon@beniston.com>
12651
12652 PR target/46898
12653 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12654 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12655 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12656 (lm32_block_move_inline): Add type cast to remove warning.
12657 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12658 (gen_int_relational): Move declarations to start of function.
12659
12660 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12661
12662 PR tree-optimization/45470
12663 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12664 can throw internally only.
12665 * tree-vect-stmts.c (vectorizable_call): Likewise.
12666
12667 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12668
12669 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12670 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12671 * config/stormy16/stormy16-protos.h
12672 (xstormy16_preferred_reload_class): Remove.
12673 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12674 static. Change 'rclass' argument and return type to reg_class_t.
12675 (TARGET_PREFERRED_RELOAD_CLASS,
12676 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12677
12678 2011-02-24 Richard Guenther <rguenther@suse.de>
12679
12680 * lto-streamer-in.c (input_bb): Do not find referenced vars
12681 in debug statements.
12682
12683 2011-02-23 Jason Merrill <jason@redhat.com>
12684
12685 * common.opt (fabi-version): Document v5 and v6.
12686
12687 2011-02-23 Richard Guenther <rguenther@suse.de>
12688
12689 PR tree-optimization/47849
12690 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12691
12692 2011-02-23 Jie Zhang <jie@codesourcery.com>
12693
12694 * opts-common.c (decode_cmdline_option): Print empty string
12695 argument as "" in decoded->orig_option_with_args_text.
12696 * gcc.c (execute): Print empty string argument as ""
12697 in the verbose output.
12698 (do_spec_1): Keep empty string argument.
12699
12700 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12701
12702 * config.gcc: Declare score-* and crx-* obsolete.
12703
12704 2011-02-23 Jie Zhang <jie@codesourcery.com>
12705
12706 PR rtl-optimization/47763
12707 * web.c (web_main): Ignore naked clobber when replacing register.
12708
12709 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12710
12711 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12712 Remove.
12713
12714 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12715
12716 PR doc/47848
12717 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12718
12719 2011-02-22 Mike Stump <mikestump@comcast.net>
12720
12721 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12722 assembler.
12723 * configure: Regenerate.
12724
12725 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12726
12727 PR rtl-optimization/46002
12728 * ira-color.c (update_copy_costs): Change class intersection
12729 test to reg_class_contents[] test of 'hard_regno'.
12730
12731 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12732
12733 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12734 than Driver option.
12735 * config/hpux11.opt (mt): Likewise.
12736 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12737 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12738 * config/vax/elf.opt (mno-asm-pic): Likewise.
12739 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12740
12741 2011-02-21 Mike Stump <mikestump@comcast.net>
12742
12743 PR target/47822
12744 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12745 tree so we can get save the type.
12746 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12747 for CFString instead of trying to use past the end of the builtins.
12748 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12749 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12750 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12751 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12752 Rename to darwin_builtin_cfstring.
12753 (darwin_init_cfstring_builtins): Return the built type.
12754
12755 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12756
12757 PR target/47840
12758 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12759 (_mm256_insert_epi64): Use _mm_insert_epi64.
12760
12761 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12762
12763 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12764 * config/stormy16/stormy16-protos.h
12765 (xstormy16_mode_dependent_address_p): Remove.
12766 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12767 Make static. Change return type to bool. Change argument type to
12768 const_rtx. Remove dead code.
12769 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12770
12771 2011-02-21 Richard Guenther <rguenther@suse.de>
12772
12773 PR lto/47820
12774 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12775 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12776 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12777 TUs context.
12778 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12779 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12780
12781 2011-02-20 Richard Guenther <rguenther@suse.de>
12782
12783 PR lto/47822
12784 * tree.c (free_lang_data_in_decl): Clean builtins from
12785 the TU decl BLOCK_VARS.
12786
12787 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12788
12789 PR debug/47620
12790 PR debug/47630
12791 * haifa-sched.c (fix_tick_ready): Skip tick computation
12792 for debug insns.
12793
12794 2011-02-19 Richard Guenther <rguenther@suse.de>
12795
12796 PR lto/47647
12797 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12798 Remove lazy BLOCK_VARS streaming.
12799 (lto_input_ts_block_tree_pointers): Likewise.
12800 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12801
12802 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12803
12804 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12805
12806 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12807
12808 * config/i386/biarch32.h, config/i386/mach.h,
12809 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12810
12811 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12812
12813 PR target/47800
12814 * config/i386/i386.md (peephole2 for shift and plus): Use
12815 operands[1] original mode in the first insn.
12816
12817 2011-02-18 Mike Stump <mikestump@comcast.net>
12818
12819 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12820
12821 2011-02-18 Jan Hubicka <jh@suse.cz>
12822
12823 PR middle-end/47788
12824 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12825 to zero when the function is not inlinable at all.
12826
12827 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12828
12829 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12830 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12831 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12832 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12833 * config/pa/t-pa64: Likewise.
12834 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12835
12836 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12837
12838 PR driver/47787
12839 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12840
12841 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12842
12843 PR target/47792
12844 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12845
12846 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12847
12848 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12849 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12850 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12851 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12852 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12853 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12854 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12855 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12856 m32r_legitimate_address_p): New functions.
12857 * config/m32r/constraints.md (constraint "S"): Don't use
12858 STORE_PREINC_PREDEC_P.
12859 (constraint "U"): Don't use LOAD_POSTINC_P.
12860
12861 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12862
12863 PR rtl-optimization/46178
12864 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12865 compute ira_hard_regno_cover_class[].
12866
12867 2011-02-18 Richard Guenther <rguenther@suse.de>
12868
12869 PR lto/47798
12870 * lto-streamer.h (lto_global_var_decls): Declare.
12871 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12872 statics for global var processing.
12873
12874 2011-02-18 Richard Guenther <rguenther@suse.de>
12875
12876 PR tree-optimization/47737
12877 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12878 edge dominance check.
12879
12880 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12881
12882 PR debug/47780
12883 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12884 avoid invalid rtx sharing.
12885
12886 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12887
12888 * doc/cpp.texi (Obsolete Features): Add background on the
12889 origin of assertions.
12890
12891 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12892
12893 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12894 objc_abi == 2.
12895 * config/darwin.c (output_objc_section_asm_op): Added support for
12896 ABI v1 and v2.
12897 (is_objc_metadata): New.
12898 (darwin_objc2_section): New.
12899 (darwin_objc1_section): New.
12900 (machopic_select_section): Added support for ABI v1 and v2.
12901 (darwin_emit_objc_zeroed): New.
12902 (darwin_output_aligned_bss): Detect objc metadata and treat it
12903 appropriately.
12904 (darwin_asm_output_aligned_decl_common): Same.
12905 (darwin_asm_output_aligned_decl_local): Same.
12906 * config/darwin-sections.def: Updated for ABI v1 and v2.
12907 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12908 compiling Objective-C code for the NeXT runtime, default to using
12909 ABI version 0 for 32-bit, and version 2 for 64-bit.
12910
12911 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12912
12913 * common.opt (optimize_fast): New Variable.
12914 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12915 instead of local variable ofast.
12916
12917 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12918
12919 * doc/invoke.texi (fobjc-abi-version): Documented.
12920 (fobjc-nilcheck): Documented.
12921 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12922 version.
12923
12924 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12925
12926 PR driver/47390
12927 * common.opt (export-dynamic): New Driver option.
12928 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12929
12930 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12931
12932 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12933
12934 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12935 Jan Hubicka <jh@suse.cz>
12936
12937 PR debug/47106
12938 PR debug/47402
12939 * cfgexpand.c (account_used_vars_for_block): Remove.
12940 (estimated_stack_frame_size): Use referenced vars.
12941 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12942 that were referenced in the original function. Test src_fn
12943 rather than cfun. Drop redundant get_var_ann.
12944 (setup_one_parameter): Drop redundant get_var_ann.
12945 (declare_return_variable): Likewise.
12946 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12947 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12948 * ipa-inline.c (compute_inline_parameters): Do not compute
12949 disregard_inline_limits here.
12950 (compute_inlinable_for_current, pass_inlinable): New.
12951 (pass_inline_parameters): Require PROP_referenced_vars.
12952 * cgraphunit.c (cgraph_process_new_functions): Don't run
12953 compute_inline_parameters explicitly unless function is in SSA form.
12954 (cgraph_analyze_function): Set .disregard_inline_limits.
12955 * tree-sra.c (convert_callers): Compute inliner parameters
12956 only for functions already in SSA form.
12957
12958 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12959
12960 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12961 -mlittle-endian-data.
12962
12963 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12964
12965 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12966 -mno-fpu, not -fpu and -no-fpu.
12967 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12968 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12969
12970 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12971
12972 PR target/43653
12973 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12974 input reload with PLUS RTX.
12975
12976 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12977
12978 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12979 of InverseVar(MDMX).
12980
12981 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12982
12983 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12984 --m4-340.
12985
12986 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12987
12988 * config/mn10300/mn10300.opt (mno-crt0): New.
12989
12990 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12991
12992 * config/m68k/uclinux.opt (static-libc): New Driver option.
12993
12994 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12995
12996 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12997
12998 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12999
13000 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13001 %{muser-extend-enabled}.
13002
13003 2011-02-16 Richard Guenther <rguenther@suse.de>
13004
13005 PR tree-optimization/47738
13006 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13007 the TODO from tree_predictive_commoning.
13008
13009 2011-02-15 Jeff Law <law@redhat.com>
13010
13011 Revert
13012 2011-01-25 Jeff Law <law@redhat.com>
13013
13014 PR rtl-optimization/37273
13015 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13016 handle them like argument loads from stack slots. Do not double
13017 count memory for memory constants and argument loads from stack slots.
13018
13019 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13020
13021 PR middle-end/47725
13022 * combine.c (cant_combine_insn_p): Revert the last change.
13023
13024 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13025
13026 PR target/47755
13027 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13028 mode for vector constants. Remove code that checks for TImode.
13029
13030 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13031
13032 PR debug/47106
13033 PR debug/47402
13034 * cgraph.h (compute_inline_parameters): Return void.
13035 * ipa-inline.c (compute_inline_parameters): Adjust.
13036
13037 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13038
13039 PR debug/47106
13040 PR debug/47402
13041 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13042 rather than decl.
13043 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13044 * ipa-inline.c (compute_inline_parameters): Adjust.
13045
13046 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13047
13048 PR debug/47106
13049 PR debug/47402
13050 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13051 Adjust all users. Pass FN to...
13052 * tree-flow-inline.h (first_referenced_var): ... this. Add
13053 fn argument.
13054 * ipa-struct-reorg.c: Adjust.
13055 * tree-dfa.c: Adjust.
13056 * tree-into-ssa.c: Adjust.
13057 * tree-sra.c: Adjust.
13058 * tree-ssa-alias.c: Adjust.
13059 * tree-ssa-live.c: Adjust.
13060 * tree-ssa.c: Adjust.
13061 * tree-ssanames.c: Adjust.
13062 * tree-tailcall.c: Adjust.
13063
13064 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13065
13066 PR debug/47106
13067 PR debug/47402
13068 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13069 Adjust all callers.
13070 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13071 * tree-flow-inline.h: Adjust.
13072 * gimple-pretty-print.c: Adjust.
13073 * tree-into-ssa.c: Adjust.
13074 * tree-ssa.c: Adjust.
13075 * cfgexpand.c: Adjust.
13076
13077 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13078
13079 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13080 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13081 (EXTRA_CONSTRAINT): Delete.
13082 * config/iq2000/constraints.md: New file.
13083 * config/iq2000/iq2000.md: Include it.
13084 (define_insn ""): Delete.
13085 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13086 unsupported constraint letters from patterns.
13087 (call_value, call_value_internal1): Likewise.
13088 (call_value_multiple_internal1): Likewise.
13089
13090 2011-02-15 Nick Clifton <nickc@redhat.com>
13091
13092 * config/mn10300/mn10300.c: Include tm-constrs.h.
13093 (struct liw_data): New data structure describing an LIW candidate
13094 instruction.
13095 (extract_bundle): Use struct liw_data. Allow small integer
13096 operands for some instructions.
13097 (check_liw_constraints): Use struct liw_data. Remove swapped
13098 parameter. Add comments describing the checks. Fix bug when
13099 assigning the source of liw1 to the source of liw2.
13100 (liw_candidate): Delete. Code moved into extract_bundle.
13101 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13102 before swapping.
13103 * config/mn10300/predicates.md (liw_operand): New predicate.
13104 Allows registers and small integer constants.
13105 * config/mn10300/constraints.md (O): New constraint. Accetps
13106 integers in the range -8 to +7 inclusive.
13107 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13108 for moving a small integer into a register. Give this alternative
13109 LIW attributes.
13110 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13111 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13112 using the J,K,L and M constraints,
13113 (liw): Remove SI mode on second operands to allow for HI and QI
13114 mode values.
13115 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13116 instruction.
13117
13118 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13119
13120 PR middle-end/47725
13121 * combine.c (cant_combine_insn_p): Check zero/sign extended
13122 hard registers.
13123
13124 2011-02-15 Richard Guenther <rguenther@suse.de>
13125
13126 PR tree-optimization/47743
13127 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13128 for a non-type-compatible VN lookup bail out.
13129
13130 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13131
13132 * config/fr30/constraints.md: New file.
13133 * config/fr30/fr30.md: Include it.
13134 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13135 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13136 (EXTRA_CONSTRAINT): Delete.
13137
13138 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13139
13140 * config/frv/constraints.md: New file.
13141 * config/frv/predicates.md: Include it.
13142 * config/frv/frv.c (reg_class_from_letter): Delete.
13143 (frv_option_override): Don't initialize it.
13144 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13145 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13146 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13147 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13148 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13149 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13150 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13151 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13152 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13153 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13154 (REG_CLASS_FROM_CONSTRAINT): Delete.
13155
13156 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13157
13158 PR middle-end/47581
13159 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13160 if frame size is 0 in a leaf function.
13161
13162 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13163
13164 PR pch/14940
13165 * config/alpha/host-osf.c: New file.
13166 * config/alpha/x-osf: New file.
13167 * config.host (alpha*-dec-osf*): Use it.
13168
13169 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13170
13171 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13172 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13173 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13174 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13175 type to const_rtx.
13176 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13177
13178 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13179
13180 * config/stormy16/constraints.md: New file.
13181 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13182 Use satisfies_constraint_Q and satisfies_constraint_R.
13183 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13184 Delete.
13185 (xstormy16_legitiamte_address_p): Declare.
13186 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13187 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13188 (EXTRA_CONSTRAINT): Delete.
13189 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13190 Un-staticize.
13191 (xstormy16_extra_constraint_p): Delete.
13192
13193 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13194
13195 PR tree-optimization/46494
13196 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13197 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13198 (pass_rtl_loop_done): Add TODO_verify_flow.
13199 * fwprop.c (pass_rtl_fwprop): Likewise.
13200 * modulo-sched.c (pass_sms): Likewise.
13201 * tree-ssa-dom.c (pass_dominator): Likewise.
13202 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13203 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13204 (pass_tree_loop_done): Likewise.
13205 * tree-ssa-pre.c (execute_pre): Likewise.
13206 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13207 * tree-ssa-sink.c (pass_sink_code): Likewise.
13208 * tree-vrp.c (pass_vrp): Likewise.
13209
13210 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13211
13212 * config/v850/constraints.md: New file.
13213 * config/v850/v850.md: Include it.
13214 * config/v850/predicates.md (reg_or_0_operand): Use
13215 satisfies_constraint_G.
13216 (special_symbolref_operand): Use satisfies_constraint_K.
13217 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13218 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13219 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13220 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13221 (EXTRA_CONSTRAINT): Delete.
13222 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13223 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13224 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13225
13226 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13227
13228 PR target/47696
13229 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13230 description.
13231
13232 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13233
13234 * config/mcore/constraints.md: New file.
13235 * config/mcore/mcore.md: Include it.
13236 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13237 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13238 (REG_CLASS_FROM_LETTER): Delete.
13239 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13240 insn_const_int_ok_for_constraint.
13241 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13242 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13243 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13244 (EXTRA_CONSTRAINT): Delete.
13245
13246 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13247
13248 PR ada/41929
13249 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13250 (IS_SIGHANDLER): Define.
13251 (sparc64_is_sighandler): New function, split off from
13252 sparc64_fallback_frame_state.
13253 (sparc_is_sighandler): New function, split off from
13254 sparc_fallback_frame_state.
13255 (sparc64_fallback_frame_state): Merge with ...
13256 (sparc_fallback_frame_state): ... this into ...
13257 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13258 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13259 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13260 stack instead of hardcoded offsets.
13261
13262 2011-02-14 Andriy Gapon <avg@freebsd.org>
13263
13264 PR target/45808
13265 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13266
13267 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13268
13269 * configure: Regenerate.
13270
13271 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13272
13273 PR driver/45731
13274 * gcc.c (asm_options): Correct spec matching --target-help.
13275
13276 2011-02-12 Martin Jambor <mjambor@suse.cz>
13277
13278 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13279 to gimple call error.
13280
13281 2011-02-12 Mike Stump <mikestump@comcast.net>
13282
13283 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13284 comments in backslash regions.
13285
13286 2011-02-12 Mike Stump <mikestump@comcast.net>
13287 Jakub Jelinek <jakub@redhat.com>
13288 Iain Sandoe <iains@gcc.gnu.org>
13289
13290 PR target/47324
13291 * dwarf2out.c (output_cfa_loc): When required, apply the
13292 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13293 (output_loc_sequence): Likewise.
13294 (output_loc_operands_raw): Likewise.
13295 (output_loc_sequence_raw): Likewise.
13296 (output_cfa_loc): Likewise.
13297 (output_loc_list): Suppress register number adjustment when
13298 calling output_loc_sequence()
13299 (output_die): Likewise.
13300
13301 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13302
13303 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13304 Remove macros.
13305 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13306 xtensa_memory_move_cost): New functions.
13307 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13308
13309 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13310
13311 PR lto/47225
13312 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13313 in the current directory.
13314 * configure: Rebuilt.
13315
13316 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13317
13318 * config/darwin.c (darwin_override_options): Add a hunk missed
13319 from the commit of r168571. Trim comment line lengths and
13320 correct indents of the preceding block.
13321
13322 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13323
13324 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13325 the switch.
13326
13327 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13328
13329 * common.opt (nostartfiles): New Driver option.
13330
13331 2011-02-11 Xinliang David Li <davidxl@google.com>
13332
13333 PR tree-optimization/47707
13334 * tree-chrec.c (convert_affine_scev): Keep type precision.
13335
13336 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13337
13338 PR tree-optimization/47420
13339 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13340
13341 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13342
13343 PR rtl-optimization/47614
13344 * rtl.h (check_for_inc_dec): Declare.
13345 * dse.c (check_for_inc_dec): Externalize...
13346 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13347 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13348
13349 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13350
13351 PR driver/47678
13352 * gcc.c (main): Do not compile inputs if there were errors in
13353 option handling.
13354 * opts-common.c (read_cmdline_option): Check for wrong language
13355 after other error checks.
13356
13357 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13358
13359 * cgraph.c: Fix comment typos.
13360 * cgraph.h: Likewise.
13361 * cgraphunit.c: Likewise.
13362 * ipa-cp.c: Likewise.
13363 * ipa-inline.c: Likewise.
13364 * ipa-prop.c: Likewise.
13365 * ipa-pure-const.c: Likewise.
13366 * ipa-ref.c: Likewise.
13367 * ipa-reference.c: Likewise.
13368
13369 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13370
13371 PR debug/47684
13372 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13373
13374 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13375
13376 PR testsuite/47400
13377 * doc/sourcebuild.texi (Require Support): Document
13378 dg-require-ascii-locale.
13379
13380 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13381
13382 * doc/lto.texi (Write summary): Fix missing parentheses.
13383
13384 2011-02-10 DJ Delorie <dj@redhat.com>
13385
13386 * config/m32c/m32c.c (m32c_option_override): Disable
13387 -fcombine-stack-adjustments until flag value tracking and compare
13388 optimization can be rewritten.
13389
13390 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13391
13392 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13393 PROCESSOR_POWER7.
13394 (PROCESSOR_DEFAULT64): Likewise.
13395
13396 2011-02-10 Richard Henderson <rth@redhat.com>
13397
13398 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13399 change from 2011-02-03.
13400 * config/rx/rx.c (flags_from_code): Likewise.
13401 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13402 is valid, n/pz otherwise.
13403 (rx_select_cc_mode): Return CCmode if Y is not zero.
13404
13405 2011-02-10 Richard Guenther <rguenther@suse.de>
13406
13407 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13408
13409 2011-02-10 Richard Guenther <rguenther@suse.de>
13410
13411 PR tree-optimization/47677
13412 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13413
13414 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13415
13416 PR target/47665
13417 * combine.c (make_compound_operation): Only change shifts into
13418 multiplication for SCALAR_INT_MODE_P.
13419
13420 2011-02-10 Jie Zhang <jie@codesourcery.com>
13421
13422 PR testsuite/47622
13423 Revert
13424 2011-02-05 Jie Zhang <jie@codesourcery.com>
13425 PR debug/42631
13426 * web.c (entry_register): Don't clobber the number of the
13427 first uninitialized reference in used[].
13428
13429 2011-02-09 Richard Guenther <rguenther@suse.de>
13430
13431 PR tree-optimization/47664
13432 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13433 all edges again.
13434
13435 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13436
13437 PR target/46481
13438 PR target/47032
13439 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13440 PROCESSOR_POWER7.
13441 (PROCESSOR_DEFAULT64): Same.
13442 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13443
13444 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13445
13446 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13447
13448 2011-02-09 Martin Jambor <mjambor@suse.cz>
13449
13450 PR middle-end/45505
13451 * tree-sra.c (struct access): New flags grp_scalar_read and
13452 grp_scalar_write. Changed description of assignment read and write
13453 flags.
13454 (dump_access): Dump new flags, reorder all of them.
13455 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13456 to detect multiple scalar reads.
13457 (analyze_access_subtree): Use the new scalar read write flags instead
13458 of the old flags. Adjusted comments.
13459
13460 2011-02-08 DJ Delorie <dj@redhat.com>
13461
13462 PR target/47548
13463 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13464 patterns.
13465
13466 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13467
13468 * config/m68k/uclinux.opt: New.
13469 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13470
13471 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13472
13473 * config/cris/elf.opt (sim): New Driver option.
13474
13475 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13476
13477 * config/xtensa/elf.opt: New.
13478 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13479
13480 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13481
13482 * config/vax/elf.opt: New.
13483 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13484
13485 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13486
13487 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13488
13489 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13490
13491 * config/gnu-user.opt: New.
13492 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13493 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13494 *-*-uclinux*): Use gnu-user.opt.
13495
13496 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13497
13498 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13499 * config/i386/gnu.h (CPP_SPEC): Likewise.
13500
13501 2011-02-08 Ian Lance Taylor <iant@google.com>
13502
13503 * common.opt (fcx-limited-range): Add SetByCombined flag.
13504 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13505 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13506 (fassociative-math, freciprocal-math): Likewise.
13507 (funsafe-math-optimizations): Likewise.
13508 * opth-gen.awk: Handle SetByCombined.
13509 * optc-gen.awk: Likewise.
13510 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13511 (set_unsafe_math_optimizations_flags): Likewise.
13512 * doc/options.texi (Option properties): Document SetByCombined.
13513
13514 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13515
13516 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13517 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13518 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13519 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13520 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13521
13522 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13523
13524 PR tree-optimization/46834
13525 PR tree-optimization/46994
13526 PR tree-optimization/46995
13527 * graphite-sese-to-poly.c (used_outside_reduction): New.
13528 (detect_commutative_reduction): Call used_outside_reduction.
13529 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13530 translate_scalar_reduction_to_array only when at least one
13531 loop-phi/close-phi tuple has been detected.
13532
13533 2011-02-08 Richard Guenther <rguenther@suse.de>
13534
13535 PR middle-end/47639
13536 * tree-vect-generic.c (expand_vector_operations_1): Update
13537 stmts here ...
13538 (expand_vector_operations): ... not here. Cleanup EH info
13539 and the CFG if required.
13540
13541 2011-02-08 Richard Guenther <rguenther@suse.de>
13542
13543 PR tree-optimization/47641
13544 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13545 require type compatibility.
13546
13547 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13548
13549 * gimple-low.c (lower_function_body): Don't remove the location of
13550 the return statement here.
13551 (lower_gimple_return): Do it here instead but only if the return
13552 statement is actually used twice.
13553
13554 2011-02-08 Richard Guenther <rguenther@suse.de>
13555
13556 PR tree-optimization/47632
13557 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13558 unused up_to_stmt parameter, return whether cfg-cleanup is
13559 necessary, remove EH info properly.
13560 (forward_propagate_into_gimple_cond): Adjust caller.
13561 (forward_propagate_into_cond): Likewise.
13562 (forward_propagate_comparison): Likewise.
13563 (tree_ssa_forward_propagate_single_use_vars): Make
13564 forward_propagate_comparison case similar to the two others.
13565
13566 2011-02-08 Nick Clifton <nickc@redhat.com>
13567
13568 * config/mn10300/mn10300.opt (mliw): New command line option.
13569 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13570 (liw_bundling): New automaton.
13571 (liw): New attribute.
13572 (liw_op): New attribute.
13573 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13574 (movsi_internal): Add LIW attributes.
13575 (andsi3): Likewise.
13576 (iorsi3): Likewise.
13577 (xorsi3): Likewise.
13578 (addsi3): Separate register and immediate alternatives.
13579 Add LIW attributes.
13580 (subsi3): Likewise.
13581 (cmpsi): Likewise.
13582 (aslsi3): Likewise.
13583 (lshrsi3): Likewise.
13584 (ashrsi3): Likewise.
13585 (liw): New pattern.
13586 * config/mn10300/mn10300.c (liw_op_names): New
13587 (mn10300_print_operand): Handle 'W' operand descriptor.
13588 (extract_bundle): New function.
13589 (check_liw_constraints): New function.
13590 (liw_candidate): New function.
13591 (mn10300_bundle_liw): New function.
13592 (mn10300_reorg): New function.
13593 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13594 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13595 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13596 __LIW__ or __NO_LIW__.
13597 * doc/invoke.texi: Describe the -mliw command line option.
13598
13599 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13600
13601 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13602 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13603 pthread_mutex_unlock): Remove.
13604 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13605 * config/pa/t-pa64: Likewise.
13606 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13607 shared libc if not linking against libpthread.
13608 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13609
13610 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13611
13612 PR target/47558
13613 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13614 on 10.6 and later to ensure that we always use the unwinder from
13615 the system. Only add -no_compact_unwind when tarteting darwin
13616 10.6 or later.
13617
13618 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13619
13620 PR target/46997
13621 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13622 (vec_interleave_lowv2sf): Ditto.
13623 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13624 (vec_extract_oddv2sf): Ditto.
13625
13626 2011-02-07 Mike Stump <mikestump@comcast.net>
13627
13628 PR target/42333
13629 Add __ieee_divdc3 entry point.
13630 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13631 entry point.
13632 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13633 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13634 * config/darwin.c (darwin_rename_builtins): Add.
13635 * config/darwin-protos.h (darwin_rename_builtins): Add.
13636
13637 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13638
13639 PR target/47636
13640 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13641 for the condition.
13642
13643 2011-02-07 Mike Stump <mikestump@comcast.net>
13644
13645 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13646
13647 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13648
13649 PR target/47534
13650 * config/avr/libgcc.S (exit): Move .endfunc
13651
13652 2011-02-07 Richard Guenther <rguenther@suse.de>
13653
13654 PR tree-optimization/47615
13655 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13656 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13657 (run_scc_vn): Initialize it.
13658 (visit_reference_op_load): Use it.
13659 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13660
13661 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13662
13663 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13664 DImode trapping arithmetic libfuncs.
13665
13666 2011-02-07 Richard Guenther <rguenther@suse.de>
13667
13668 PR tree-optimization/47621
13669 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13670 two duplicates ...
13671 (execute_update_addresses_taken): ... here. Make it more
13672 conservative in what we accept.
13673
13674 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13675
13676 * config/sparc/freebsd.h (ASM_SPEC): Define.
13677 * config/sparc/vxworks.h (ASM_SPEC): Define.
13678
13679 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13680
13681 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13682
13683 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13684
13685 * doc/invoke.texi: Remove reference to compiler internals from
13686 user documentation.
13687
13688 * reg-notes.def: Remove REG_VALUE_PROFILE.
13689 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13690
13691 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13692
13693 PR middle-end/47610
13694 * varasm.c (default_section_type_flags): If decl is NULL,
13695 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13696
13697 2011-02-05 Jie Zhang <jie@codesourcery.com>
13698
13699 PR debug/42631
13700 * web.c (entry_register): Don't clobber the number of the
13701 first uninitialized reference in used[].
13702
13703 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13704
13705 PR tree-optimization/46194
13706 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13707 (build_classic_dist_vector_1): Do not represent classic distance
13708 vectors when the access functions are variating in different loops.
13709
13710 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13711
13712 * config/mips/iris6.opt: New.
13713 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13714
13715 2011-02-04 Richard Henderson <rth@redhat.com>
13716 Steve Ellcey <sje@cup.hp.com>
13717
13718 PR target/46997
13719 * config/ia64/predicates.md (mux1_brcst_element): New.
13720 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13721 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13722 (ia64_unpack_sign): New.
13723 (ia64_expand_unpack): Rewrite using new routines.
13724 (ia64_expand_widen_sum): Ditto.
13725 (ia64_expand_dot_prod_v8qi): Ditto.
13726 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13727 routines, add endian check.
13728 (pmpy2_even): Rename from pmpy2_r, add endian check.
13729 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13730 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13731 (vec_widen_smult_hi_v4hi): Ditto.
13732 (vec_widen_umult_lo_v4hi): Ditto.
13733 (vec_widen_umult_hi_v4hi): Ditto.
13734 (mulv2si3): Change endian checks.
13735 (sdot_prodv4hi): Rewrite with new calls.
13736 (udot_prodv4hi): New.
13737 (vec_pack_ssat_v4hi): Add endian check.
13738 (vec_pack_usat_v4hi): Ditto.
13739 (vec_pack_ssat_v2si): Ditto.
13740 (max1_even): Rename from max1_r, add endian check.
13741 (max1_odd): Rename from max1_l, add endian check.
13742 (*mux1_rev): Format change.
13743 (*mux1_mix): Ditto.
13744 (*mux1_shuf): Ditto.
13745 (*mux1_alt): Ditto.
13746 (*mux1_brcst_v8qi): Use new predicate.
13747 (vec_extract_evenv8qi): Remove endian check.
13748 (vec_extract_oddv8qi): Ditto.
13749 (vec_interleave_lowv4hi): Format change.
13750 (vec_interleave_highv4hi): Ditto.
13751 (mix2_even): Rename from mix2_r, add endian check.
13752 (mix2_odd): Rename from mux2_l, add endian check.
13753 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13754 (vec_extract_evenodd_helper): Format change.
13755 (vec_extract_evenv4hi): Remove endian check.
13756 (vec_extract_oddv4hi): Remove endian check.
13757 (vec_interleave_lowv2si): Format change.
13758 (vec_interleave_highv2si): Format change.
13759 (vec_initv2si): Remove endian check.
13760 (vecinit_v2si): Add endian check.
13761 (reduc_splus_v2sf): Add endian check.
13762 (reduc_smax_v2sf): Ditto.
13763 (reduc_smin_v2sf): Ditto.
13764 (vec_initv2sf): Remove endian check.
13765 (fpack): Add endian check.
13766 (fswap): Add endian check.
13767 (vec_interleave_highv2sf): Add endian check.
13768 (vec_interleave_lowv2sf): Add endian check.
13769 (fmix_lr): Add endian check.
13770 (vec_setv2sf): Format change.
13771 (*vec_extractv2sf_0_be): Use shift to extract operand.
13772 (*vec_extractv2sf_1_be): New.
13773 (vec_pack_trunc_v4hi): Add endian check.
13774 (vec_pack_trunc_v2si): Format change.
13775
13776 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13777
13778 PR inline-asm/23200
13779 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13780 do bb, locus and block comparison and disallow loads if it is not set.
13781 (stmt_is_replaceable_p): New function.
13782 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13783 callers.
13784 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13785 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13786 SSA_NAME_DEF_STMT.
13787 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13788
13789 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13790
13791 * config/rs6000/xilinx.opt: New.
13792 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13793
13794 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13795
13796 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13797
13798 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13799
13800 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13801 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13802 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13803 secondary_reload_info, xtensa_secondary_reload): Remove.
13804 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13805 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13806 (xtensa_preferred_reload_class): Make static. Change return and
13807 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13808 Use CONST_DOUBLE_P predicate.
13809 (xtensa_preferred_output_reload_class): New function.
13810 (xtensa_secondary_reload): Make static.
13811
13812 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13813
13814 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13815 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13816 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13817
13818 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13819
13820 PR middle-end/31490
13821 * output.h (SECTION_RELRO): Define.
13822 (SECTION_MACH_DEP): Adjust.
13823 (get_variable_section): New prototype.
13824 * varpool.c (varpool_finalize_named_section_flags): New function.
13825 (varpool_assemble_pending_decls): Call it.
13826 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13827 * cgraphunit.c (cgraph_output_in_order): Call
13828 varpool_finalize_named_section_flags.
13829 * varasm.c (get_section): Allow section flags conflicts between
13830 relro and read-only sections if the section hasn't been declared yet.
13831 Set SECTION_OVERRIDE after diagnosing section type conflict.
13832 (get_variable_section): No longer static.
13833 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13834 readonly sections that need relocations.
13835 (decl_readonly_section_1): New function.
13836 (decl_readonly_section): Use it.
13837
13838 Revert:
13839 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13840 Steve Ellcey <sje@cup.hp.com>
13841
13842 PR middle-end/31490
13843 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13844 if section attribute used.
13845
13846 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13847
13848 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13849 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13850 (darwin_init_sections): Remove assertion.
13851
13852 2011-02-03 Nick Clifton <nickc@redhat.com>
13853
13854 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13855 lt and ge.
13856 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13857 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13858 instead of "n" and "pz".
13859 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13860 CC_FLAG_S.
13861
13862 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13863
13864 PR target/47312
13865 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13866 fma, expand FMA_EXPR as fma{,f,l} call.
13867
13868 PR lto/47274
13869 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13870 copy them into a unsigned char variable and pass address of it to
13871 lto_output_data_stream.
13872
13873 PR target/47564
13874 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13875 around backend_init_target and lang_dependent_init_target calls.
13876 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13877 (verify_cgraph_node): Don't call set_cfun here. Use
13878 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13879 Set error_found for incorrectly represented calls to thunks.
13880
13881 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13882
13883 PR debug/43092
13884 PR rtl-optimization/43494
13885 * rtl.h (for_each_inc_dec_fn): New type.
13886 (for_each_inc_dec): Declare.
13887 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13888 (for_each_inc_dec_find_inc_dec): New fn.
13889 (for_each_inc_dec_find_mem): New fn.
13890 (for_each_inc_dec): New fn.
13891 * dse.c (struct insn_size): Remove.
13892 (replace_inc_dec, replace_inc_dec_mem): Remove.
13893 (emit_inc_dec_insn_before): New fn.
13894 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13895 (canon_address): Pass mem modes to cselib_lookup.
13896 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13897 (cselib_lookup_from_insn): Likewise.
13898 (cselib_subst_to_values): Likewise.
13899 * cselib.c (find_slot_memmode): New var.
13900 (cselib_find_slot): New fn. Use it instead of
13901 htab_find_slot_with_hash everywhere.
13902 (entry_and_rtx_equal_p): Use find_slot_memmode.
13903 (autoinc_split): New fn.
13904 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13905 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13906 Deal with autoinc. Special-case recursion into MEMs.
13907 (cselib_hash_rtx): Likewise.
13908 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13909 address and MEM modes.
13910 (cselib_subst_to_values): Add memmode, pass it on.
13911 Deal with autoinc.
13912 (cselib_lookup): Add memmode argument, pass it on.
13913 (cselib_lookup_from_insn): Add memmode.
13914 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13915 (struct cselib_record_autoinc_data): New.
13916 (cselib_record_autoinc_cb): New fn.
13917 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13918 mode to cselib_lookup. Reset autoinced REGs here instead of...
13919 (cselib_process_insn): ... here.
13920 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13921 to cselib_lookup.
13922 (add_uses): Likewise, also to cselib_subst_to_values.
13923 (add_stores): Likewise.
13924 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13925 cselib_subst_to_values.
13926 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13927 * gcse.c (do_local_cprop): Adjusted.
13928 * postreload.c (reload_cse_simplify_set): Adjusted.
13929 (reload_cse_simplify_operands): Adjusted.
13930 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13931
13932 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13933
13934 PR tree-optimization/45122
13935 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13936 unsafe assumptions when there's more than one loop exit.
13937
13938 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13939
13940 PR target/47272
13941 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13942 Document using vector double with the load/store builtins, and
13943 that the load/store builtins always use Altivec instructions.
13944
13945 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13946 to use altivec memory instructions, even on VSX.
13947 (vector_altivec_store_<mode>): Ditto.
13948
13949 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13950 function.
13951
13952 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13953 V2DF, V2DI support to load/store overloaded builtins.
13954
13955 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13956 altivec load/store builtins for V2DF/V2DI types.
13957
13958 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13959 set avoid indexed addresses on power6 if -maltivec.
13960 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13961 vector_altivec_load/vector_altivec_store builtins.
13962 (altivec_expand_st_builtin): Ditto.
13963 (altivec_expand_builtin): Add VSX memory builtins.
13964 (rs6000_init_builtins): Add V2DI types to internal types.
13965 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13966 load/store builtins.
13967 (rs6000_address_for_altivec): Insure memory address is appropriate
13968 for Altivec.
13969
13970 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13971 vec_vsx_ld and vec_vsx_st.
13972 (vsx_store_<mode>): Ditto.
13973
13974 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13975 variables to hold long long types for VSX vector memory builtins.
13976 (RS6000_BTI_unsigned_long_long): Ditto.
13977 (long_long_integer_type_internal_node): Ditti.
13978 (long_long_unsigned_type_internal_node): Ditti.
13979
13980 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13981 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13982 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13983
13984 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13985 short cuts.
13986 (vec_vsx_st): Ditto.
13987
13988 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13989
13990 * config/pa/pa-hpux10.opt: New.
13991 * config/hpux11.opt (pthread): New Driver option.
13992 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13993 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13994
13995 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13996
13997 * config/ia64/vms.opt: New.
13998 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13999
14000 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14001
14002 PR target/47580
14003 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14004 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14005 generator functions.
14006 (vsx_floatuns<VSi><mode>2): Ditto.
14007 (vsx_fix_trunc<mode><VSi>2): Ditto.
14008 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14009
14010 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14011
14012 * config/i386/djgpp.opt (posix): New Driver option.
14013
14014 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14015
14016 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14017 Move to the unsupported targets list.
14018
14019 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14020
14021 PR rtl-optimization/47525
14022 * df-scan.c: Update copyright years.
14023 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14024 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14025
14026 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14027
14028 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14029 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14030 (ASM_OUTPUT_ASCII): Remove.
14031 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14032
14033 2011-02-02 Jeff Law <law@redhat.com>
14034
14035 PR middle-end/47543
14036 * reload.c (find_reloads_address): Handle reg+d address where both
14037 components are invalid by reloading the entire address.
14038
14039 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14040 Richard Guenther <rguenther@suse.de>
14041
14042 PR tree-optimization/40979
14043 PR bootstrap/47044
14044 * passes.c (init_optimization_passes): After LIM call copy_prop
14045 and DCE to clean up.
14046 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14047
14048 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14049
14050 PR tree-optimization/47576
14051 PR tree-optimization/47555
14052 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14053 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14054 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14055 * tree-scalar-evolution.c (follow_ssa_edge): Use
14056 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14057
14058 2011-02-02 Richard Guenther <rguenther@suse.de>
14059
14060 PR tree-optimization/47566
14061 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14062
14063 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14064
14065 PR debug/47106
14066 PR debug/47402
14067 * tree-inline.c (declare_return_variable): Remove unused caller
14068 variable.
14069
14070 PR debug/47106
14071 PR debug/47402
14072 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14073 * cfgexpand.c (account_used_vars_for_block): Use them.
14074 * tree-nrv.c (tree_nrv): Likewise.
14075 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14076 (dump_scope_block): Likewise.
14077 (remove_unused_locals): Likewise.
14078
14079 PR debug/47106
14080 PR debug/47402
14081 * tree-inline.c (declare_return_variable): Add result decl to
14082 local decls only once.
14083 * gimple-low.c (record_vars_into): Mark newly-created variables
14084 as referenced.
14085
14086 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14087
14088 PR debug/47498
14089 PR debug/47501
14090 PR debug/45136
14091 PR debug/45130
14092 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14093 debug insns.
14094 (no_real_insns_p, schedule_block, set_priorities): Drop special
14095 treatment of boundary debug insns.
14096 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14097 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14098 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14099 (BOUNDARY_DEBUG_INSN_P): Likewise.
14100 (SCHEDULE_DEBUG_INSN_P): Likewise.
14101 * sched-rgn.c (init_ready_list): Drop special treatment of
14102 boundary debug insns.
14103 * final.c (rest_of_clean_state): Clear notes' BB.
14104
14105 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14106
14107 * config/openbsd.opt (assert=): New Driver option.
14108
14109 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14110
14111 * config/i386/nto.opt: New.
14112 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14113
14114 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14115
14116 * config/i386/netware.opt: New.
14117 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14118
14119 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14120
14121 * config/interix.opt (posix): New Driver option.
14122
14123 2011-02-01 DJ Delorie <dj@redhat.com>
14124
14125 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14126
14127 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14128 class for A0/A1.
14129
14130 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14131
14132 PR tree-optimization/47561
14133 * toplev.c (process_options): Print the Graphite flags. Add
14134 flag_loop_flatten to the list of options requiring Graphite.
14135
14136 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14137
14138 * config/i386/cygming.opt (posix): New Driver option.
14139
14140 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14141
14142 * config/arm/vxworks.opt: New.
14143 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14144
14145 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14146
14147 * config/alpha/elf.opt: New.
14148 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14149 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14150
14151 2011-02-01 Richard Guenther <rguenther@suse.de>
14152
14153 PR tree-optimization/47559
14154 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14155 store-motion on references that can throw.
14156
14157 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14158
14159 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14160 * tree-pass.h (TDF_CSELIB): New macro.
14161 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14162 cselib_lookup): Check for it rather than for TDF_DETAILS.
14163
14164 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14165
14166 PR driver/47547
14167 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14168 is HOST_BIT_BUCKET.
14169
14170 * opts.c (finish_options): Don't add x_aux_base_name if it is
14171 HOST_BIT_BUCKET.
14172
14173 2011-02-01 Richard Guenther <rguenther@suse.de>
14174
14175 PR tree-optimization/47555
14176 Revert
14177 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14178
14179 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14180
14181 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14182
14183 PR gcc/46692
14184 * config/lm32/t-lm32: Add multilib for all CPU options.
14185
14186 2011-02-01 Richard Guenther <rguenther@suse.de>
14187
14188 PR tree-optimization/47541
14189 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14190 sure to have a field at offset zero.
14191
14192 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14193
14194 * config/arc/arc.opt (EB, EL): New Driver options.
14195
14196 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14197
14198 * config/alpha/osf5.opt: New.
14199 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14200
14201 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14202
14203 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14204
14205 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14206
14207 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14208 -floop-interchange.
14209 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14210 is an alias of -floop-interchange and that it requires the
14211 Graphite infrastructure.
14212 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14213 flag_loop_interchange based on the value of flag_tree_loop_linear.
14214
14215 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14216 Richard Guenther <rguenther@suse.de>
14217
14218 PR tree-optimization/47538
14219 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14220 type instead of r1type, except for comparisons. For right
14221 shifts and comparisons punt if there are mismatches in
14222 sizetype vs. non-sizetype types.
14223
14224 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14225
14226 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14227 avx_runtime.
14228
14229 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14230
14231 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14232 version number.
14233 * configure: Regenerate.
14234
14235 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14236
14237 * configure.ac (gcc_cv_ld_static_option): Define.
14238 (gcc_cv_ld_dynamic_option): Define.
14239 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14240 instead.
14241 (HAVE_LD_STATIC_DYNAMIC): Update message.
14242 (LD_STATIC_OPTION): Define.
14243 (LD_DYNAMIC_OPTION): Define.
14244 * configure: Regenerate.
14245 * config.in: Regenerate.
14246 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14247 HAVE_LD_STATIC_DYNAMIC]: Use them.
14248
14249 2011-01-31 Nick Clifton <nickc@redhat.com>
14250
14251 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14252 registers inside interrupt handlers if the handler is not a leaf
14253 function.
14254
14255 2011-01-31 Nick Clifton <nickc@redhat.com>
14256
14257 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14258 reg_renumber returning an INVALID_REGNUM.
14259
14260 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14261
14262 PR libgcj/44341
14263 * doc/install.texi: Document host options discarded when cross
14264 configuring target libraries.
14265
14266 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14267
14268 Reverted:
14269 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14270 PR debug/45136
14271 PR debug/45130
14272 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14273 debug insns.
14274 (no_real_insns_p, schedule_block, set_priorities): Drop special
14275 treatment of boundary debug insns.
14276 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14277 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14278 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14279 (BOUNDARY_DEBUG_INSN_P): Likewise.
14280 (SCHEDULE_DEBUG_INSN_P): Likewise.
14281 * sched-rgn.c (init_ready_list): Drop special treatment of
14282 boundary debug insns.
14283 * final.c (rest_of_clean-state): Clear notes' BB.
14284
14285 2011-01-31 Alan Modra <amodra@gmail.com>
14286
14287 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14288 toc relative expressions as we do in print_operand_address.
14289
14290 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14291
14292 * doc/extend.texi: Follow spelling conventions.
14293 * doc/invoke.texi: Fix a typo.
14294
14295 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14296
14297 * config/hpux11.opt: New.
14298 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14299 ia64*-*-hpux*): Use hpux11.opt.
14300
14301 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14302
14303 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14304 to tmake_file.
14305
14306 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14307
14308 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14309 support sites.
14310
14311 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14312
14313 * doc/install.texi (Binaries): Remove outdated reference for
14314 Motorola 68HC11/68HC12 downloads.
14315
14316 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14317
14318 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14319 Drepper's paper.
14320
14321 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14322
14323 PR bootstrap/47147
14324 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14325 used by NetBSD.
14326
14327 2011-01-28 Ahmad Sharif <asharif@google.com>
14328
14329 * value-prof.c (check_counter): Corrected error message.
14330
14331 2011-01-29 Jie Zhang <jie@codesourcery.com>
14332
14333 * config/arm/arm.c (arm_legitimize_reload_address): New.
14334 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14335 arm_legitimize_reload_address.
14336 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14337
14338 2011-01-28 Ian Lance Taylor <iant@google.com>
14339
14340 * godump.c (go_define): Ignore macros whose definitions include
14341 two adjacent operands.
14342
14343 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14344
14345 PR target/42894
14346 * varasm.c (force_const_mem): Store copy of x in desc->constant
14347 instead of x itself.
14348 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14349 itself into REG_EQUAL note.
14350
14351 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14352
14353 * config/freebsd.opt (posix, rdynamic): New Driver options.
14354
14355 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14356
14357 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14358 -Bstatic/-Bdynamic.
14359 * configure: Regenerate.
14360
14361 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14362
14363 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14364 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14365
14366 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14367
14368 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14369 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14370 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14371 (s390_preferred_reload_class): Make static. Change return and
14372 'rclass' argument type to reg_class_t.
14373
14374 2011-01-27 Jan Hubicka <jh@suse.cz>
14375
14376 PR middle-end/46949
14377 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14378 (process_function_and_variable_attributes): Check defined weakrefs.
14379
14380 2011-01-27 Martin Jambor <mjambor@suse.cz>
14381
14382 PR tree-optimization/47228
14383 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14384 build_ref_for_offset.
14385
14386 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14387
14388 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14389
14390 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14391
14392 PR rtl-optimization/46856
14393 * postreload.c (reload_combine_recognize_const_pattern): Do not
14394 separate cc0 setter and user on cc0 targets.
14395
14396 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14397
14398 PR c/43082
14399 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14400 passed a VOID_TYPE expression, immediately emit an error and
14401 return error_mark_node.
14402
14403 2011-01-26 Jeff Law <law@redhat.com>
14404
14405 PR rtl-optimization/47464
14406 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14407 rather than may_trap_p as needed.
14408
14409 2011-01-26 DJ Delorie <dj@redhat.com>
14410
14411 PR rtl-optimization/46878
14412 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14413 setter/user dependency as well.
14414
14415 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14416
14417 PR rtl-optimization/44469
14418 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14419 after removing trivially dead basic blocks.
14420
14421 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14422
14423 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14424 * config/frv/frv.h (LINK_SPEC): Likewise.
14425 * config/i386/netware.h (LINK_SPEC): Likewise.
14426 * config/m68k/linux.h (ASM_SPEC): Likewise.
14427 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14428 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14429 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14430 * config/sparc/linux.h (ASM_SPEC): Likewise.
14431 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14432 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14433
14434 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14435
14436 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14437 * config/frv/frv.h (ASM_SPEC): Likewise.
14438 * config/m68k/linux.h (ASM_SPEC): Likewise.
14439 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14440 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14441 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14442 * config/sparc/linux.h (ASM_SPEC): Likewise.
14443 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14444 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14445
14446 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14447
14448 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14449 * config/frv/frv.h (LINK_SPEC): Likewise.
14450 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14451
14452 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14453
14454 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14455 * config/frv/frv.h (ASM_SPEC): Likewise.
14456 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14457 * config/m68k/linux.h (ASM_SPEC): Likewise.
14458 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14459 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14460 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14461 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14462 * config/sparc/linux.h (ASM_SPEC): Likewise.
14463 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14464 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14465 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14466
14467 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14468
14469 PR target/46997
14470 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14471 (*mux2): Ditto.
14472 (vec_extract_evenodd_help): Ditto.
14473 (vec_extract_evenv4hi): Ditto.
14474 (vec_extract_oddv4hi): Ditto.
14475 (vec_interleave_lowv2si): Ditto.
14476 (vec_interleave_highv2si): Ditto.
14477 (vec_extract_evenv2si): Ditto.
14478 (vec_extract_oddv2si: Ditto.
14479 (vec_pack_trunc_v2si): Ditto.
14480
14481 2011-01-22 Jan Hubicka <jh@suse.cz>
14482
14483 PR target/47237
14484 * cgraph.h (cgraph_local_info): New field can_change_signature.
14485 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14486 signature can change.
14487 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14488 can change.
14489 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14490 (cgraph_function_versioning): We can not change signature of functions
14491 that don't allow that.
14492 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14493 (lto_input_node): Likewise.
14494 * ipa-inline.c (compute_inline_parameters): Compute
14495 local.can_change_signature.
14496 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14497 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14498 functions that can not change signature.
14499 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14500 init_cumulative_args): Do not use local calling conventions
14501 for functions that can not change signature.
14502
14503 2011-01-22 Jan Hubicka <jh@suse.cz>
14504
14505 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14506
14507 2011-01-26 Richard Guenther <rguenther@suse.de>
14508
14509 PR tree-optimization/47190
14510 * cgraphunit.c (process_common_attributes): New function.
14511 (process_function_and_variable_attributes): Use it.
14512
14513 2011-01-26 Richard Guenther <rguenther@suse.de>
14514
14515 PR lto/47423
14516 * cgraphbuild.c (record_eh_tables): Record reference to personality
14517 function.
14518
14519 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14520
14521 PR debug/45454
14522 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14523 non-debug insns from moving up.
14524
14525 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14526
14527 PR target/40125
14528 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14529 t-dlldir{,-x} fragment for build and add it to tmake_file.
14530 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14531 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14532 * config/i386/t-dlldir: New file.
14533 (SHLIB_DLLDIR): Define.
14534 * config/i386/t-dlldir-x: New file.
14535 (SHLIB_DLLDIR): Define.
14536 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14537 (SHLIB_INSTALL): Use it.
14538
14539 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14540
14541 PR target/47246
14542 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14543 lower bound of the allowed Thumb-2 coprocessor load/store
14544 index range to -256. Add explaining comment.
14545
14546 2011-01-25 Ian Lance Taylor <iant@google.com>
14547
14548 * godump.c (go_define): Improve lexing of macro expansion to only
14549 accept expressions which match Go spec.
14550
14551 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14552
14553 PR c++/43601
14554 * tree.c (handle_dll_attribute): Handle it.
14555 * doc/extend.texi (@item dllexport): Mention it.
14556 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14557
14558 2011-01-25 Ian Lance Taylor <iant@google.com>
14559
14560 PR tree-optimization/26854
14561 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14562 (decl_jump_unsafe): Move higher in file, with no other change.
14563 (bind): Set has_jump_unsafe_decl if appropriate.
14564 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14565 (check_earlier_gotos): Likewise.
14566 (c_check_switch_jump_warnings): Likewise.
14567
14568 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14569
14570 * doc/invoke.texi (Warning Options): Add missing hyphen.
14571 (-fprofile-dir): Minor grammatical fixes.
14572 (-fbranch-probabilities): Likewise.
14573
14574 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14575
14576 PR debug/45136
14577 PR debug/45130
14578 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14579 debug insns.
14580 (no_real_insns_p, schedule_block, set_priorities): Drop special
14581 treatment of boundary debug insns.
14582 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14583 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14584 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14585 (BOUNDARY_DEBUG_INSN_P): Likewise.
14586 (SCHEDULE_DEBUG_INSN_P): Likewise.
14587 * sched-rgn.c (init_ready_list): Drop special treatment of
14588 boundary debug insns.
14589 * final.c (rest_of_clean-state): Clear notes' BB.
14590
14591 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14592
14593 * Makefile.in (LAMBDA_H): Removed.
14594 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14595 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14596 lambda-trans.o, and tree-loop-linear.o.
14597 (lto-symtab.o): Remove dependence on LAMBDA_H.
14598 (tree-loop-linear.o): Remove rule.
14599 (lambda-mat.o): Same.
14600 (lambda-trans.o): Same.
14601 (lambda-code.o): Same.
14602 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14603 (tree-vect-slp.o): Same.
14604 * hwint.h (gcd): Moved here.
14605 (least_common_multiple): Same.
14606 * lambda-code.c: Removed.
14607 * lambda-mat.c: Removed.
14608 * lambda-trans.c: Removed.
14609 * lambda.h: Removed.
14610 * tree-loop-linear.c: Removed.
14611 * lto-symtab.c: Do not include lambda.h.
14612 * omega.c (gcd): Removed.
14613 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14614 * tree-data-ref.c (print_lambda_vector): Moved here.
14615 (lambda_vector_copy): Same.
14616 (lambda_matrix_copy): Same.
14617 (lambda_matrix_id): Same.
14618 (lambda_vector_first_nz): Same.
14619 (lambda_matrix_row_add): Same.
14620 (lambda_matrix_row_exchange): Same.
14621 (lambda_vector_mult_const): Same.
14622 (lambda_vector_negate): Same.
14623 (lambda_matrix_row_negate): Same.
14624 (lambda_vector_equal): Same.
14625 (lambda_matrix_right_hermite): Same.
14626 * tree-data-ref.h: Do not include lambda.h.
14627 (lambda_vector): Moved here.
14628 (lambda_matrix): Same.
14629 (dependence_level): Same.
14630 (lambda_transform_legal_p): Removed declaration.
14631 (lambda_collect_parameters): Same.
14632 (lambda_compute_access_matrices): Same.
14633 (lambda_vector_gcd): Same.
14634 (lambda_vector_new): Same.
14635 (lambda_vector_clear): Same.
14636 (lambda_vector_lexico_pos): Same.
14637 (lambda_vector_zerop): Same.
14638 (lambda_matrix_new): Same.
14639 * tree-flow.h (least_common_multiple): Removed declaration.
14640 * tree-parloops.c (lambda_trans_matrix): Moved here.
14641 (LTM_MATRIX): Same.
14642 (LTM_ROWSIZE): Same.
14643 (LTM_COLSIZE): Same.
14644 (LTM_DENOMINATOR): Same.
14645 (lambda_trans_matrix_new): Same.
14646 (lambda_matrix_vector_mult): Same.
14647 (lambda_transform_legal_p): Same.
14648 * tree-pass.h (pass_linear_transform): Removed declaration.
14649 * tree-ssa-loop.c (tree_linear_transform): Removed.
14650 (gate_tree_linear_transform): Removed.
14651 (pass_linear_transform): Removed.
14652 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14653 flag_loop_interchange.
14654
14655 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14656
14657 PR tree-optimization/47265
14658 PR tree-optimization/47443
14659 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14660 if name still has some uses.
14661
14662 2011-01-25 Martin Jambor <mjambor@suse.cz>
14663
14664 PR tree-optimization/47382
14665 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14666 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14667
14668 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14669
14670 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14671 sjlj_except_unwind_info.
14672
14673 2011-01-25 Richard Guenther <rguenther@suse.de>
14674
14675 PR tree-optimization/47426
14676 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14677 visible functions results escape.
14678
14679 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14680
14681 PR target/45701
14682 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14683 (arm_get_frame_offsets): Use it.
14684
14685 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14686 Jakub Jelinek <jakub@redhat.com>
14687
14688 PR tree-optimization/47271
14689 * tree-if-conv.c (bb_postdominates_preds): New.
14690 (if_convertible_bb_p): Call bb_postdominates_preds.
14691 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14692 (predicate_scalar_phi): Call bb_postdominates_preds.
14693
14694 2011-01-25 Nick Clifton <nickc@redhat.com>
14695
14696 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14697 * config/rx/rx.c (rx_function_value): Likewise.
14698 (rx_promote_function_mode): Likewise.
14699 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14700 in order to make it legitimate.
14701 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14702 make sure that the first operand is the same as the result register.
14703 (addsi3_unspec): Delete.
14704 (subdi3): Do not accept immediate operands.
14705 (subdi3_internal): Likewise.
14706
14707 2011-01-25 Jeff Law <law@redhat.com>
14708
14709 PR rtl-optimization/37273
14710 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14711 handle them like argument loads from stack slots. Do not double
14712 count memory for memory constants and argument loads from stack slots.
14713
14714 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14715
14716 PR tree-optimization/47427
14717 PR tree-optimization/47428
14718 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14719 coalesce if the new root var would be TREE_READONLY.
14720
14721 2011-01-25 Richard Guenther <rguenther@suse.de>
14722
14723 PR middle-end/47414
14724 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14725 correct type for TBAA.
14726
14727 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14728
14729 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14730 (close_phi_written_to_memory): Call for_each_index with
14731 dr_indices_valid_in_loop.
14732
14733 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14734
14735 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14736 when it is initialized.
14737
14738 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14739
14740 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14741 call to graphite_find_data_references_in_stmt.
14742 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14743 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14744 call to graphite_find_data_references_in_stmt.
14745 (analyze_drs_in_stmts): Same.
14746 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14747 in which the scalar analysis of indices is performed.
14748 (create_data_ref): Same. Update call to dr_analyze_indices.
14749 (find_data_references_in_stmt): Update call to create_data_ref.
14750 (graphite_find_data_references_in_stmt): Same.
14751 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14752 declaration.
14753 (create_data_ref): Same.
14754 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14755 call to create_data_ref.
14756
14757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14758
14759 * graphite-sese-to-poly.c (build_poly_scop): Move
14760 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14761
14762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14763
14764 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14765 VAR_DECL, PARM_DECL, and RESULT_DECL.
14766
14767 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14768
14769 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14770 in a reduction PBB.
14771 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14772 that have already been marked as PBB_IS_REDUCTION.
14773
14774 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14775
14776 * graphite-scop-detection.c (same_close_phi_node): New.
14777 (remove_duplicate_close_phi): New.
14778 (make_close_phi_nodes_unique): New.
14779 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14780
14781 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14782
14783 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14784 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14785 of both data references to be the same.
14786
14787 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14788
14789 * graphite-dependences.c (build_lexicographical_constraint): Remove
14790 the gdim parameter.
14791 (build_lexicographical_constraint): Adjust call to
14792 ppl_powerset_is_empty.
14793 (dependence_polyhedron): Same.
14794 (graphite_legal_transform_dr): Same.
14795 (graphite_carried_dependence_level_k): Same.
14796 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14797 parameter.
14798 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14799
14800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14801
14802 * graphite-sese-to-poly.c
14803 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14804 (close_phi_written_to_memory): New.
14805 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14806 and unshare_expr.
14807
14808 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14809
14810 * doc/install.texi: Update the expected version number of PPL to 0.11.
14811 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14812 #if PPL_VERSION_MINOR < 11.
14813
14814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14815
14816 * graphite-dependences.c: Include graphite-cloog-util.h.
14817 (new_poly_ddr): Inlined into dependence_polyhedron.
14818 (free_poly_ddr): Moved close by new_poly_ddr.
14819 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14820 Early return NULL when ppl_powerset_is_empty returns true.
14821 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14822 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14823 (graphite_legal_transform_dr): Call new_poly_ddr.
14824 (graphite_carried_dependence_level_k): Same.
14825 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14826 (dot_transformed_deps_stmt_1): Removed.
14827 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14828 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14829 (dot_deps_1): Call dot_deps_2.
14830 * Makefile.in (graphite-dependences.o): Add missing dependence on
14831 graphite-cloog-util.h.
14832
14833 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14834
14835 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14836 (build_lexicographical_constraint): Same.
14837 (dependence_polyhedron_1): Same.
14838 (graphite_legal_transform_dr): Same.
14839 (graphite_carried_dependence_level_k): Same.
14840 * graphite-ppl.c (ppl_powerset_is_empty): New.
14841 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14842 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14843
14844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14845
14846 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14847 the "a followed by b" relation and document it.
14848
14849 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14850
14851 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14852 iteration when the bag of constraints is empty.
14853
14854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14855
14856 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14857
14858 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14859
14860 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14861 nest and two loop depths as parameters.
14862 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14863 lst_perfect_nestify.
14864
14865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14866
14867 * graphite-dependences.c (print_pddr): Call
14868 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14869
14870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14871
14872 * graphite-ppl.c (debug_gmp_value): New.
14873 * graphite-ppl.h (debug_gmp_value): Declared.
14874
14875 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14876
14877 * doc/install.texi: Document availability of cloog-0.16.
14878
14879 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14880
14881 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14882 invalid postdominance info.
14883
14884 2011-01-24 Jan Hubicka <jh@suse.cz>
14885
14886 PR c/21659
14887 * doc/extend.texi (weak pragma): Drop claim that it must
14888 appear before definition.
14889 * varasm.c (merge_weak, declare_weak): Only sanity check
14890 that DECL is not output at a time it is declared weak.
14891
14892 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14893
14894 * machmode.def: Fixed comments.
14895
14896 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14897
14898 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14899
14900 2011-01-24 Paul Koning <ni1d@arrl.net>
14901
14902 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14903 WORDS_BIG_ENDIAN.
14904
14905 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14906
14907 PR target/46519
14908 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14909 (block_info): Add scanned and prev.
14910 (move_or_delete_vzeroupper_2): Return if the basic block
14911 has been scanned and the upper 128bit state is unchanged
14912 from the last scan.
14913 (move_or_delete_vzeroupper_1): Return true if the exit
14914 state is changed.
14915 (move_or_delete_vzeroupper): Visit basic blocks using the
14916 work-list based algorithm based on vt_find_locations in
14917 var-tracking.c.
14918
14919 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14920
14921 2011-01-24 Nick Clifton <nickc@redhat.com>
14922
14923 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14924 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14925 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14926 then define __v850e1__.
14927 * doc/invoke.texi: Document -mv850es.
14928
14929 2011-01-24 Richard Henderson <rth@redhat.com>
14930
14931 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14932 compound unordered comparisons.
14933 * config/rx/rx.c (rx_split_fp_compare): Remove.
14934 * config/rx/rx-protos.h: Update.
14935 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14936 (cbranchsf4): Don't call rx_split_fp_compare.
14937 (*cbranchsf4): Use rx_split_cbranch.
14938 (*cmpsf): Don't accept "i" constraint.
14939 (*conditional_branch): Only valid after reload.
14940 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14941
14942 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14943
14944 PR target/47385
14945 * config/rs6000/altivec.md (vector constant splitters): Add
14946 support for creating vector single precision constants if -mvsx is
14947 used and we would create the constant using Altivec primitives.
14948
14949 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14950 Richard Sandiford <rdsandiford@googlemail.com>
14951
14952 PR rtl-optimization/47166
14953 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14954 mechanism for PRE_MODIFY and POST_MODIFY.
14955 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14956 reloadreg.
14957
14958 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14959
14960 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14961
14962 2011-01-22 Jan Hubicka <jh@suse.cz>
14963
14964 PR lto/47333
14965 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14966
14967 2011-01-22 Jan Hubicka <jh@suse.cz>
14968
14969 PR tree-optimization/43884
14970 PR lto/44334
14971 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14972 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14973
14974 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14975
14976 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14977 * config/s390/s390.c (s390_register_move_cost,
14978 s390_memory_move_cost): New.
14979 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14980
14981 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14982
14983 PR middle-end/47401
14984 * except.c (sjlj_assign_call_site_values): Move setting the
14985 crtl->uses_eh_lsda flag to ...
14986 (sjlj_mark_call_sites): ... here.
14987 (sjlj_emit_function_enter): Support NULL dispatch label.
14988 (sjlj_build_landing_pads): In a function with no landing pads
14989 that still has must-not-throw regions, generate code to register
14990 a personality function with empty LSDA.
14991
14992 2011-01-21 Richard Henderson <rth@redhat.com>
14993
14994 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14995
14996 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14997
14998 * compare-elim.c: New file.
14999 * Makefile.in (OBJS-common): Add it.
15000 (compare-elim.o): New.
15001 * common.opt (fcompare-elim): New.
15002 * opts.c (default_options_table): Add OPT_fcompare_elim.
15003 * tree-pass.h (pass_compare_elim_after_reload): New.
15004 * passes.c (init_optimization_passes): Add it.
15005 * recog.h: Protect against re-inclusion.
15006 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15007 * doc/invoke.texi (-fcompare-elim): Document it.
15008 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15009 * doc/tm.texi: Rebuild.
15010
15011 2011-01-22 Nick Clifton <nickc@redhat.com>
15012
15013 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15014 rx_split_fp_compare.
15015
15016 2011-01-22 Nick Clifton <nickc@redhat.com>
15017
15018 * config/rx/rx.md (UNSPEC_CONST): New.
15019 (deallocate_and_return): Wrap the amount popped off the stack in
15020 an UNSPEC_CONST in order to stop it being rejected by
15021 -mmax-constant-size.
15022 (pop_and_return): Add a "(return)" rtx.
15023 (call): Drop the immediate operand.
15024 (call_internal): Likewise.
15025 (call_value): Likewise.
15026 (call_value_internal): Likewise.
15027 (sibcall_internal): Likewise.
15028 (sibcall_value_internal): Likewise.
15029 (sibcall): Likewise. Generate an explicit call using
15030 sibcall_internal.
15031 (sibcall_value): Likewise.
15032 (mov<>): FAIL if a constant operand is not legitimate.
15033 (addsi3_unpsec): New pattern.
15034
15035 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15036 (ok_for_max_constant): New function.
15037 (gen_safe_add): New function.
15038 (rx_expand_prologue): Use gen_safe_add.
15039 (rx_expand_epilogue): Likewise.
15040 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15041 UNSPEC CONSTs.
15042
15043 2011-01-21 Jeff Law <law@redhat.com>
15044
15045 PR tree-optimization/47053
15046 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15047 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15048 statements are deleted.
15049 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15050 is nonempty, then purge dead edges and cleanup the CFG.
15051
15052 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15053
15054 PR debug/47402
15055 Temporarily revert:
15056 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15057 PR debug/47106
15058 * tree-dfa.c (create_var_ann): Mark variable as used.
15059
15060 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15061
15062 PR middle-end/45566
15063 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15064 notes from other section in hot/cold partitioning even if
15065 last_action is -3. Increment call_site_base.
15066
15067 PR rtl-optimization/47366
15068 * fwprop.c (forward_propagate_into): Return bool. If
15069 any changes are made, -fnon-call-exceptions is used and
15070 REG_EH_REGION note is present, call purge_dead_edges
15071 and return true if it purged anything.
15072 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15073 any EH edges were purged.
15074
15075 2011-01-21 Jeff Law <law@redhat.com>
15076
15077 PR rtl-optimization/41619
15078 * caller-save.c (setup_save_areas): Break out code to determine
15079 which hard regs are live across calls by examining the reload chains
15080 so that it is always used.
15081 Eliminate code which checked REG_N_CALLS_CROSSED.
15082
15083 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15084
15085 PR tree-optimization/47355
15086 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15087 NOP has non-debug uses beyond PHIs in new_bb.
15088
15089 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15090
15091 PR debug/47106
15092 * cfgexpand.c (account_used_vars_for_block): Only account vars
15093 that are annotated as used.
15094 (estimated_stack_frame_size): Don't set TREE_USED.
15095 * tree-dfa.c (create_var_ann): Mark variable as used.
15096
15097 2011-01-21 Richard Guenther <rguenther@suse.de>
15098
15099 PR middle-end/47395
15100 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15101
15102 2011-01-21 Richard Guenther <rguenther@suse.de>
15103
15104 PR tree-optimization/47365
15105 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15106 (vn_reference_lookup_pieces): Adjust.
15107 (vn_reference_lookup): Likewise.
15108 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15109 (vn_reference_lookup_3): Only look through kills if in
15110 VN_WALKREWRITE mode.
15111 (vn_reference_lookup_pieces): Adjust.
15112 (vn_reference_lookup): Likewise.
15113 (visit_reference_op_load): Likewise.
15114 (visit_reference_op_store): Likewise.
15115 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15116 (compute_avail): Likewise.
15117 (eliminate): Likewise.
15118
15119 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15120
15121 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15122 DECL_IGNORED_P non-reg vars if they are used.
15123
15124 PR tree-optimization/47391
15125 * varpool.c (const_value_known_p): Return false if
15126 decl is volatile.
15127
15128 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15129
15130 PR bootstrap/47215
15131 * config/i386/i386.c (ix86_local_alignment): Handle
15132 case for va_list_type_node is nil.
15133 (ix86_canonical_va_list_type): Likewise.
15134
15135 2011-01-21 Alan Modra <amodra@gmail.com>
15136
15137 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15138 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15139
15140 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15141
15142 * config/arm/arm.md (define_attr type): Rename f_load
15143 and f_store to f_fpa_load and f_fpa_store. Update.
15144 (write_conflict): Deal with rename fallout.
15145 (*push_fp_multi): Likewise.
15146 * config/arm/fpa.md (f_load): Use f_fpa_load.
15147 (f_store): Use f_fpa_store.
15148 (*movsf_fpa): Likewise.
15149 (*movdf_fpa): Likewise.
15150 (*movxf_fpa): Likewise.
15151 (*thumb2_movsf_fpa): Likewise.
15152 (*thumb2_movdf_fpa): Likewise.
15153 (*thumb2_movxf_fpa): Likewise.
15154 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15155 f_loadd and f_stored.
15156 (*thumb2_movdi_vfp): Likewise.
15157 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15158 (*thumb2_movsi_vfp): Likewise.
15159 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15160 Use f_loads instead of f_load.
15161 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15162
15163 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15164
15165 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15166 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15167 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15168 (xtensa_mode_dependent_address_p): New function.
15169 (constantpool_address_p): Make static. Change return type to bool.
15170 Change argument type to const_rtx. Use CONST_INT_P predicate.
15171
15172 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15173
15174 PR debug/46583
15175 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15176
15177 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15178
15179 PR debug/47283
15180 * cfgexpand.c (expand_debug_expr): Instead of generating
15181 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15182 etc. handling.
15183
15184 2011-01-20 Richard Guenther <rguenther@suse.de>
15185
15186 PR middle-end/47370
15187 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15188 the pointer operand of MEM_REFs.
15189
15190 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15191
15192 PR tree-optimization/46130
15193 * ipa-split.c (consider_split): If return_bb contains non-virtual
15194 PHIs other than for retval or if split_function would not adjust it,
15195 refuse to split.
15196
15197 2011-01-20 Richard Guenther <rguenther@suse.de>
15198
15199 PR tree-optimization/47167
15200 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15201 Revert previous change, only avoid enumeral type changes.
15202
15203 2011-01-19 Mike Stump <mikestump@comcast.net>
15204
15205 * doc/tm.texi.in (BRANCH_COST): Englishify.
15206 * doc/tm.texi (BRANCH_COST): Likewise.
15207
15208 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15209
15210 PR c++/47291
15211 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15212 (gen_scheduled_generic_parms_dies): New functions.
15213 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15214 generation for the end of CU compilation.
15215 (dwarf2out_finish): Generate template parameters DIEs here.
15216
15217 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15218
15219 PR debug/46240
15220 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15221 debug bind stmt on merge edges.
15222
15223 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15224
15225 PR debug/47079
15226 PR debug/46724
15227 * function.c (instantiate_expr): Instantiate incoming rtl of
15228 implicit arguments, and recurse on VALUE_EXPRs.
15229 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15230 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15231
15232 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15233
15234 * c-parser.c (c_parser_for_statement): Initialize
15235 collection_expression.
15236
15237 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15238
15239 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15240
15241 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15242
15243 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15244 (LINK_SHLIB_SPEC): Don't use %(link_path).
15245 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15246
15247 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15248
15249 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15250 (NO_SHARED_LIB_SUPPORT): Remove.
15251 (LINK_SHLIB_SPEC): Remove one conditional definition.
15252
15253 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15254
15255 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15256 %{call_shared}.
15257 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15258 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15259 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15260 %{call_shared} and conditionals on these options not being passed.
15261 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15262 %{call_shared}.
15263
15264 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15265
15266 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15267 simplify.
15268
15269 * ipa-split.c: Spelling fixes.
15270
15271 2011-01-19 Richard Henderson <rth@redhat.com>
15272
15273 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15274 (*mulsi3): Likewise.
15275
15276 * longlong.h [__mn10300__] (count_leading_zeros): New.
15277 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15278 [__mn10300__] (add_ssaaaa, subddmmss): New.
15279 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15280 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15281
15282 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15283
15284 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15285
15286 2011-01-19 Richard Henderson <rth@redhat.com>
15287
15288 * config/mn10300/mn10300.md (addsi3_flags): New.
15289 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15290 (subsi3_flags, subc_internal, subdi3): New.
15291 (subdi3_internal, *subdi3_degenerate): New.
15292 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15293
15294 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15295 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15296 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15297 * config/mn10300/mn10300-protos.h: Update.
15298 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15299 (return_ret): Likewise. Rename from return_internal_regs.
15300 (return_internal): Remove.
15301
15302 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15303 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15304 (mn10300_legitimate_constant_p): Likewise.
15305 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15306 (mn10300_frame_size): New.
15307 (mn10300_expand_prologue): Use it.
15308 (mn10300_expand_epilogue): Likewise.
15309 (mn10300_initial_offset): Likewise.
15310 * config/mn10300/mn10300-protos.h: Update.
15311 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15312 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15313 (prologue, epilogue, return_internal): Tidy output code.
15314 (mn10300_store_multiple_operation, return): Likewise.
15315 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15316 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15317 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15318 (load_pic, am33_load_pic): New.
15319 (mn10300_load_pic0, mn10300_load_pic1): New.
15320
15321 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15322 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15323 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15324 (cc_flags_for_mode, cc_flags_for_code): New.
15325 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15326 overflow flag is not valid. Validate that the flags we need
15327 for the comparison are valid.
15328 (mn10300_output_cmp): Remove.
15329 (mn10300_output_add): New.
15330 (mn10300_select_cc_mode): Use cc_flags_for_code.
15331 (mn10300_split_cbranch): New.
15332 (mn10300_match_ccmode): New.
15333 (mn10300_split_and_operand_count): New.
15334 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15335 to the function.
15336 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15337 (addsi3): ... here. Use mn10300_output_add.
15338 (*addsi3_flags): New.
15339 (*am33_subsi3, *mn10300_subsi3): Merge...
15340 (subsi3): ... here. Use attribute isa.
15341 (*subsi3_flags): New.
15342 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15343 when possible.
15344 (*am33_andsi3, *mn10300_andsi3): Merge...
15345 (andsi3): ... here.
15346 (*andsi3_flags): New.
15347 (andsi3 splitters): New.
15348 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15349 (iorsi3): ... here.
15350 (*iorsi3_flags): New.
15351 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15352 (xorsi3): ... here.
15353 (*xorsi3_flags): New.
15354 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15355 (one_cmplsi2): ... here.
15356 (*one_cmplsi2_flags): New.
15357 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15358 instead of "dax" in constraints. Use mn10300_split_cbranch.
15359 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15360 use matching constraints to eliminate a self-comparison.
15361 (*integer_conditional_branch): Rename from integer_conditional_branch.
15362 Use int_mode_flags to match CC_REG.
15363 (*cbranchsi4_btst, *btstsi): New.
15364 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15365 mn10300_split_cbranch.
15366 (*am33_cmpsf): Rename from am33_cmpsf.
15367 (*float_conditional_branch): Rename from float_conditional_branch.
15368 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15369 (zero_extendqisi2): ... here.
15370 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15371 (zero_extendhisi2): ... here.
15372 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15373 (extendqisi2): ... here.
15374 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15375 (extendhisi2): ... here.
15376 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15377 (ashlsi3): ... here.
15378 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15379 (lshrsi3): ... here.
15380 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15381 (ashrsi3): ... here.
15382 (consecutive add peephole): Remove.
15383 * config/mn10300/predicates.md (label_ref_operand): New.
15384 (int_mode_flags): New.
15385 (CCZN_comparison_operator): New.
15386
15387 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15388 (throughput_42_latency_43): New reservation.
15389 (mulsidi3, umulsidi3): New expanders.
15390 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15391 the MDR register to allocation; separately allocate the low and
15392 high parts of the DImode result.
15393 (umulsidi3_internal): Similarly.
15394 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15395 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15396 (udivsi3, umodsi3): Remove.
15397 (udivmodsi4, divmodsi4): New expanders.
15398 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15399 (*divmodsi4): Simiarly.
15400 (ext_internal): New.
15401
15402 * config/mn10300/constraints.md ("z"): New constraint.
15403 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15404 (FIXED_REGISTERS): Don't fix MDR.
15405 (CALL_USED_REGSITERS): Reformat nicely.
15406 (REG_ALLOC_ORDER): Add MDR.
15407 (enum regclass): Add MDR_REGS.
15408 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15409 (IRA_COVER_CLASSES): Add MDR_REGS.
15410 (REGNO_REG_CLASS): Handle MDR_REG.
15411 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15412 (mn10300_register_move_cost): Likewise.
15413 * config/mn10300/mn10300.md (MDR_REG): New.
15414 (*movsi_internal): Handle moves to/from MDR_REGS.
15415
15416 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15417 POST_MODIFY.
15418 (mn10300_secondary_reload): Tidy combination reload classes.
15419 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15420 addresses for AM33. Allow symbolic offsets for reg+imm.
15421 (mn10300_regno_in_class_p): New.
15422 (mn10300_legitimize_reload_address): New.
15423 * config/mn10300/mn10300.h (enum reg_class): Remove
15424 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15425 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15426 SP_OR_GENERAL_REGS.
15427 (REG_CLASS_NAMES): Update to match.
15428 (REG_CLASS_CONTENTS): Likewise.
15429 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15430 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15431 (REGNO_IN_RANGE_P): Remove.
15432 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15433 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15434 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15435 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15436 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15437 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15438 (REGNO_GENERAL_P): New.
15439 (HAVE_POST_MODIFY_DISP): New.
15440 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15441 (LEGITIMIZE_RELOAD_ADDRESS): New.
15442 * config/mn10300/mn10300-protos.h: Update.
15443
15444 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15445 DATA_REGS for AM33 stack-pointer destination.
15446 (mn10300_preferred_output_reload_class): Likewise.
15447 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15448 into a form appropriate for ...
15449 (TARGET_SECONDARY_RELOAD): New.
15450 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15451 * config/mn10300/mn10300-protos.h: Update.
15452 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15453 reload_insi; use the "A" constraint for the scratch; handle AM33
15454 moves of sp to non-address registers.
15455
15456 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15457 (*movqi_internal): ... here.
15458 (*am33_movhi, *mn10300_movhi): Merge into...
15459 (*movhi_internal): ... here.
15460 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15461 as the source/destination of moves from/to SP.
15462 (movsf): Only allow for AM33-2.
15463 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15464 any integer constant constraint. Only allow for AM33-2. Tidy
15465 all of the alternative outputs.
15466 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15467 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15468 for MN103.
15469 (udivsi3, umodsi3): New patterns for MN103 only.
15470
15471 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15472
15473 * doc/tm.texi.in: Spell out that a lack of register class unions
15474 can lead to ICEs.
15475 * doc/tm.texi: Regenerate.
15476
15477 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15478
15479 PR rtl-optimization/47337
15480 * dce.c (check_argument_store): New function.
15481 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15482
15483 PR tree-optimization/47290
15484 * tree-eh.c (infinite_empty_loop_p): New function.
15485 (cleanup_empty_eh): Use it.
15486
15487 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15488
15489 PR target/46997
15490 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15491 (a64_expand_widen_sum): Ditto.
15492 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15493 (vec_extract_evenodd_help): Ditto.
15494 (vec_extract_evenv4hi): Ditto.
15495 (vec_extract_oddv4hi): Ditto.
15496 (vec_extract_evenv2si): Ditto.
15497 (vec_extract_oddv2si): Ditto.
15498 (vec_extract_evenv2sf): Ditto.
15499 (vec_extract_oddv2sf): Ditto.
15500 (vec_pack_trunc_v4hi: Ditto.
15501 (vec_pack_trunc_v2si): Ditto.
15502 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15503 (vec_interleave_highv8qi): Ditto.
15504 (mix1_r): Ditto.
15505 (vec_extract_oddv8qi): Ditto.
15506 (vec_interleave_lowv4hi): Ditto.
15507 (vec_interleave_highv4hi): Ditto.
15508 (vec_interleave_lowv2si): Ditto.
15509 (vec_interleave_highv2si): Ditto.
15510
15511 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15512
15513 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15514 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15515 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15516 (pa_c_mode_for_suffix): New.
15517 (TARGET_EXPAND_BUILTIN): Define.
15518 (TARGET_C_MODE_FOR_SUFFIX): Define.
15519 (pa_builtins): Define.
15520 (pa_init_builtins): Register __float128 type and init new support
15521 builtins.
15522 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15523 * config/pa/quadlib.c (_U_Qfcopysign): New.
15524
15525 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15526
15527 PR middle-end/46894
15528 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15529 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15530 are defined.
15531
15532 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15533
15534 PR tree-optimization/47179
15535 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15536 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15537
15538 2011-01-18 Richard Guenther <rguenther@suse.de>
15539
15540 PR rtl-optimization/47216
15541 * emit-rtl.c: Include tree-flow.h.
15542 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15543 of replicating it with different semantics.
15544 * Makefile.in (emit-rtl.o): Adjust.
15545
15546 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15547
15548 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15549 (cortex_a9_dp): Handle neon types correctly.
15550
15551 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15552
15553 PR rtl-optimization/47299
15554 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15555 subtarget. Use normal multiplication if both operands are constants.
15556 * expmed.c (expand_widening_mult): Don't try to optimize constant
15557 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15558 before using it.
15559
15560 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15561
15562 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15563 spacing after 'e.g.', typos, comma, hyphenation.
15564
15565 2011-01-17 Richard Henderson <rth@redhat.com>
15566
15567 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15568 (rx_restricted_mem_operand): New.
15569 (rx_shift_operand): Use register_operand.
15570 (rx_source_operand, rx_compare_operand): Likewise.
15571 * config/rx/rx.md (addsi3_flags): New expander.
15572 (adddi3): Rewrite as expander.
15573 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15574 (subsi3_flags): New expander.
15575 (subdi3): Rewrite as expander.
15576 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15577
15578 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15579 (rx_init_builtins): Remove sat builtin.
15580 (rx_expand_builtin): Likewise.
15581 * config/rx/rx.md (ssaddsi3): New.
15582 (*sat): Rename from sat. Represent the CC_REG input.
15583
15584 * config/rx/predicates.md (rshift_operator): New.
15585 * config/rx/rx.c (rx_expand_insv): Remove.
15586 * config/rx/rx-protos.h: Update.
15587 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15588 operand to the canonical position.
15589 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15590 (*bitclr, *bitclr_in_memory): Similarly.
15591 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15592 (insv): Retain the zero_extract in the expansion.
15593
15594 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15595 (bswaphi2, bitinvert, revw): Likewise.
15596
15597 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15598 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15599 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15600 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15601 (bitset, bitset_in_memory): Likewise.
15602 (bitinvert, bitinvert_in_memory): Likewise.
15603 (bitclr, bitclr_in_memory): Likewise.
15604 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15605 (rx_strend, rx_cmpstrn): Likewise.
15606 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15607 (bitop peep2 patterns): Remove.
15608
15609 * config/rx/rx.c (rx_match_ccmode): New.
15610 * config/rx/rx-protos.h: Update.
15611 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15612 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15613 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15614 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15615 (fix_truncsfsi2, floatsisf2): Likewise.
15616 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15617 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15618 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15619 (*subsi3_flags, *xorsi3_flags): New.
15620
15621 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15622
15623 * config/rx/rx.c (rx_print_operand): Remove workaround for
15624 unsplit comparison operations.
15625
15626 * config/rx/rx.md (movsicc): Split after reload.
15627 (*movsicc): Merge *movsieq and *movsine via match_operator.
15628 (*stcc): New pattern.
15629
15630 * config/rx/rx.c (rx_float_compare_mode): Remove.
15631 * config/rx/rx.h (rx_float_compare_mode): Remove.
15632 * config/rx/rx.md (cstoresi4): Split after reload.
15633 (*sccc): New pattern.
15634
15635 * config/rx/predicates.md (label_ref_operand): New.
15636 (rx_z_comparison_operator): New.
15637 (rx_zs_comparison_operator): New.
15638 (rx_fp_comparison_operator): New.
15639 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15640 Validate that the flags are set properly for the comparison.
15641 (rx_gen_cond_branch_template): Remove.
15642 (rx_cc_modes_compatible): Remove.
15643 (mode_from_flags): New.
15644 (flags_from_code): Rename from flags_needed_for_conditional.
15645 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15646 (rx_select_cc_mode): Likewise.
15647 (rx_split_fp_compare): New.
15648 (rx_split_cbranch): New.
15649 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15650 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15651 (*cbranchsf4): Similarly.
15652 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15653 match_operator and rx_split_cbranch.
15654 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15655 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15656 (*cmpsi): Rename from cmpsi.
15657 (*tstsi): Rename from tstsi.
15658 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15659 (*conditional_branch): Rename from conditional_branch.
15660 (*reveresed_conditional_branch): Remove.
15661 (b<code>): Remove expander.
15662 * config/rx/rx-protos.h: Update.
15663
15664 * config/rx/rx.c (rx_compare_redundant): Remove.
15665 * config/rx/rx.md (cmpsi): Don't use it.
15666 * config/rx/rx-protos.h: Update.
15667
15668 * config/rx/rx-modes.def (CC_F): New mode.
15669 * config/rx/rx.c (rx_select_cc_mode): New.
15670 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15671 * config/rx/rx-protos.h: Update.
15672
15673 2011-01-17 Richard Henderson <rth@redhat.com>
15674
15675 * except.c (dump_eh_tree): Fix stray ; after for statement.
15676
15677 2011-01-17 Richard Guenther <rguenther@suse.de>
15678
15679 PR tree-optimization/47313
15680 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15681 handling before copying the body. Properly deal with
15682 by-reference result in SSA form.
15683
15684 2011-01-17 Ian Lance Taylor <iant@google.com>
15685
15686 PR target/47219
15687 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15688 (struct_value_alias_set): Don't define.
15689 (sparc_option_override): Don't set sparc_sr_alias_set and
15690 struct_value_alias_set.
15691 (save_or_restore_regs): Use gen_frame_mem rather than calling
15692 set_mem_alias_set.
15693 (sparc_struct_value_rtx): Likewise.
15694
15695 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15696
15697 PR target/47318
15698 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15699 (_mm_maskstore_pd): Likewise.
15700 (_mm_maskload_ps): Likewise.
15701 (_mm_maskstore_ps): Likewise.
15702 (_mm256_maskload_pd): Change mask to __m256i.
15703 (_mm256_maskstore_pd): Likewise.
15704 (_mm256_maskload_ps): Likewise.
15705 (_mm256_maskstore_ps): Likewise.
15706
15707 * config/i386/i386-builtin-types.def: Updated.
15708 (ix86_expand_special_args_builtin): Likewise.
15709
15710 * config/i386/i386.c (bdesc_special_args): Update
15711 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15712 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15713 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15714 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15715
15716 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15717 Use <avxpermvecmode> on mask register.
15718 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15719
15720 2011-01-17 Olivier Hainque <hainque@adacore.com>
15721 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15722 Eric Botcazou <ebotcazou@adacore.com>
15723
15724 PR target/46655
15725 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15726 if <= USHRT_MAX in 32-bit mode.
15727
15728 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15729
15730 * doc/install.texi (Configuration, Specific): Wrap long
15731 lines in examples. Allow line wrapping in long options
15732 and URLs where beneficial for PDF output.
15733
15734 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15735
15736 * config/mips/mips.c (mips_classify_symbol): Don't return
15737 SYMBOL_PC_RELATIVE for nonlocal labels.
15738
15739 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15740
15741 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15742
15743 2011-01-15 Jan Hubicka <jh@suse.cz>
15744
15745 PR tree-optimization/47276
15746 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15747 declarations as needed.
15748
15749 2011-01-15 Martin Jambor <mjambor@suse.cz>
15750
15751 * common.opt (fdevirtualize): New flag.
15752 * doc/invoke.texi (Option Summary): Document it.
15753 * opts.c (default_options_table): Add devirtualize flag.
15754 * ipa-prop.c (detect_type_change): Return immediately if
15755 devirtualize flag is not set.
15756 (detect_type_change_ssa): Likewise.
15757 (compute_known_type_jump_func): Likewise.
15758 (ipa_analyze_virtual_call_uses): Likewise.
15759
15760 2011-01-14 Martin Jambor <mjambor@suse.cz>
15761
15762 PR tree-optimization/45934
15763 PR tree-optimization/46302
15764 * ipa-prop.c (type_change_info): New type.
15765 (stmt_may_be_vtbl_ptr_store): New function.
15766 (check_stmt_for_type_change): Likewise.
15767 (detect_type_change): Likewise.
15768 (detect_type_change_ssa): Likewise.
15769 (compute_complex_assign_jump_func): Check for dynamic type change.
15770 (compute_complex_ancestor_jump_func): Likewise.
15771 (compute_known_type_jump_func): Likewise.
15772 (compute_scalar_jump_functions): Likewise.
15773 (ipa_analyze_virtual_call_uses): Likewise.
15774 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15775
15776 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15777
15778 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15779 * config/i386/i386.opt (msse5): New Alias.
15780
15781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15782
15783 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15784 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15785 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15786 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15787
15788 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15789
15790 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15791 -mcpu options.
15792 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15793 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15794 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15795 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15796 Likewise.
15797 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15798
15799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15800
15801 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15802
15803 2011-01-14 Mike Stump <mikestump@comcast.net>
15804
15805 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15806 * config/fr30/fr30.md: Likweise
15807 (movsi_push): Likewise.
15808 (movsi_pop): Likewise.
15809 (enter_func): Likewise.
15810 * config/moxie/moxie.md (movsi_push): Likewise.
15811 (movsi_pop): Likewise.
15812
15813 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15814
15815 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15816 %{no_archive} %{exact_version}.
15817 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15818 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15819 %{no_archive} %{exact_version}.
15820 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15821 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15822 * config/mips/vxworks.h: Likewise.
15823
15824 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15825
15826 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15827
15828 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15829
15830 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15831 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15832
15833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15834
15835 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15836 -nodefaultlib.
15837
15838 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15839
15840 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15841 for mcpu not cpu.
15842 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15843 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15844 not cpu.
15845 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15846 Don't handle -shlib.
15847
15848 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15849
15850 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15851 (CC1_SPEC): Don't handle -profile.
15852
15853 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15854
15855 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15856 * config/mips/mips.h (CC1_SPEC): Likewise.
15857
15858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15859
15860 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15861 * config/mips/mips.h (CC1_SPEC): Likewise.
15862
15863 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15864
15865 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15866 * config/m32r/linux.h (LINK_SPEC): Likewise.
15867 * config/mips/linux.h (LINK_SPEC): Likewise.
15868 * config/mips/linux64.h (LINK_SPEC): Likewise.
15869 * config/sparc/linux.h (LINK_SPEC): Likewise.
15870 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15871 LINK_SPEC): Likewise.
15872 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15873
15874 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15875
15876 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15877 %{version:-v}.
15878 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15879
15880 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15881
15882 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15883 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15884
15885 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15886
15887 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15888
15889 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15890
15891 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15892 supports -Bstatic/-Bdynamic.
15893 * configure: Regenerate.
15894
15895 2011-01-14 Jan Hubicka <jh@suse.cz>
15896 Jack Howarth <howarth@bromo.med.uc.edu>
15897
15898 PR target/46037
15899 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15900 when checking debug_info_level. Test write_symbols instead of
15901 debug_hooks->var_location when setting flag_var_tracking_uninit.
15902
15903 2011-01-14 Richard Guenther <rguenther@suse.de>
15904
15905 PR tree-optimization/47179
15906 * target.def (ref_may_alias_errno): New target hook.
15907 * targhooks.h (default_ref_may_alias_errno): Declare.
15908 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15909 (default_ref_may_alias_errno): New function.
15910 * target.h (struct ao_ref_s): Declare.
15911 * tree-ssa-alias.c: Include target.h.
15912 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15913 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15914 (targhooks.o): Likewise.
15915 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15916 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15917
15918 2011-01-14 Richard Guenther <rguenther@suse.de>
15919
15920 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15921
15922 2011-01-14 Richard Guenther <rguenther@suse.de>
15923
15924 PR tree-optimization/47280
15925 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15926 return CFG changes.
15927 (tree_ssa_forward_propagate_single_use_vars): Deal with
15928 CFG changes from associate_plusminus.
15929
15930 2011-01-14 Richard Guenther <rguenther@suse.de>
15931
15932 PR middle-end/47281
15933 Revert
15934 2011-01-11 Richard Guenther <rguenther@suse.de>
15935
15936 PR tree-optimization/46076
15937 * tree-ssa.c (useless_type_conversion_p): Conversions from
15938 unprototyped to empty argument list function types are useless.
15939
15940 2011-01-14 Richard Guenther <rguenther@suse.de>
15941
15942 PR tree-optimization/47286
15943 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15944
15945 2011-01-14 Martin Jambor <mjambor@suse.cz>
15946
15947 PR middle-end/46823
15948 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15949
15950 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15951
15952 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15953 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15954 * config/xtensa/xtensa.c (xtensa_libcall_value,
15955 xtensa_function_value_regno_p): New functions.
15956 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15957
15958 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15959
15960 PR c++/47213
15961 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15962 PE specific hook.
15963 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15964 New function prototype.
15965 * config/i386/winnt.c (i386_pe_assemble_visibility):
15966 Warn only if attribute was specified by user.
15967
15968 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15969
15970 PR target/47251
15971 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15972 floating point.
15973 (floatunsdidf2_fcfidu): Ditto.
15974
15975 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15976
15977 * config/s390/s390.c (print_operand_address): Replace 'error' with
15978 'output_operand_lossage'.
15979 (print_operand): Likewise.
15980
15981 2011-01-13 Jeff Law <law@redhat.com>
15982
15983 PR rtl-optimization/39077
15984 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15985 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15986 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15987 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15988 * gcse.c (prune_insertions_deletions): New function.
15989 (compute_pre_data): Use it.
15990
15991 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15992
15993 PR debug/PR46973
15994 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15995 static function.
15996 (prune_unused_types_mark): Use it.
15997
15998 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15999
16000 PR rtl-optimization/45352
16001 * sel-sched.c: Update copyright years.
16002 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16003 in the advancing loop when we have issued issue_rate insns.
16004
16005 2011-01-12 Richard Henderson <rth@redhat.com>
16006
16007 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16008 (TARGET_MD_ASM_CLOBBERS): New.
16009
16010 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16011 (TARGET_DELEGITIMIZE_ADDRESS): New.
16012
16013 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16014 (clzsi2, *bsch): New patterns.
16015
16016 * config/mn10300/mn10300.md (INT): New mode iterator.
16017 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16018
16019 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16020 flag_split_wide_types.
16021
16022 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16023 (mn10300_trampoline_init): Rewrite without a template, an immediate
16024 load and a direct branch.
16025 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16026
16027 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16028
16029 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16030 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16031 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16032 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16033
16034 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16035
16036 PR debug/47209
16037 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16038 of type.
16039
16040 2011-01-12 Jan Hubicka <jh@suse.cz>
16041
16042 PR driver/47244
16043 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16044 (PLUGIN_COND_CLOSE): New macro.
16045 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16046
16047 2011-01-12 Richard Guenther <rguenther@suse.de>
16048
16049 PR lto/47259
16050 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16051 register variables in a MEM_REF.
16052
16053 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16054
16055 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16056 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16057 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16058 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16059 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16060 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16061 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16062 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16063 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16064 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16065 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16066 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16067 * config/gnu-user.h: New. Copied from linux.h.
16068 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16069 GNU_USER_TARGET_STARTFILE_SPEC.
16070 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16071 GNU_USER_TARGET_ENDFILE_SPEC.
16072 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16073 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16074 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16075 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16076 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16077 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16078 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16079 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16080 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16081 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16082 * config/arm/linux-eabi.h (CC1_SPEC): Use
16083 GNU_USER_TARGET_CC1_SPEC.
16084 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16085 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16086 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16087 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16088 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16089 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16090 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16091 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16092
16093 2011-01-12 Richard Guenther <rguenther@suse.de>
16094
16095 PR other/46946
16096 * doc/invoke.texi (ffast-math): Document it is turned on
16097 with -Ofast.
16098
16099 2011-01-12 Jan Hubicka <jh@suse.cz>
16100
16101 PR tree-optimization/47233
16102 * opts.c (common_handle_option): Disable ipa-reference with profile
16103 feedback.
16104
16105 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16106
16107 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16108 error message.
16109
16110 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16111
16112 * c-parser.c (c_lex_one_token): Updated and reindented some
16113 comments. No changes in code.
16114
16115 2011-01-11 Ian Lance Taylor <iant@google.com>
16116
16117 * godump.c (go_output_var): Don't output the variable if there is
16118 already a type with the same name.
16119
16120 2011-01-11 Ian Lance Taylor <iant@google.com>
16121
16122 * godump.c (go_format_type): Don't generate float80.
16123
16124 2011-01-11 Richard Henderson <rth@redhat.com>
16125
16126 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16127 declaration. Rewrite for both speed and size.
16128 (mn10300_address_cost_1): Remove.
16129 (mn10300_register_move_cost): New.
16130 (mn10300_memory_move_cost): New.
16131 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16132 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16133 extensions, shifts, BSWAP, CLZ.
16134 (mn10300_wide_const_load_uses_clr): Remove.
16135 (TARGET_REGISTER_MOVE_COST): New.
16136 (TARGET_MEMORY_MOVE_COST): New.
16137 * config/mn10300/mn10300-protos.h: Update.
16138 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16139
16140 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16141 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16142 * config/mn10300/mn10300-protos.h: Update.
16143 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16144 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16145 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16146 (*test_int_bitfield, *test_byte_bitfield): Remove.
16147 (*bit_test, *subreg_bit_test): Remove.
16148 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16149
16150 * config/mn10300/constraints.md ("c"): Rename from "A".
16151 ("A", "D"): New constraint letters.
16152 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16153 (fmssf4, fnmasf4, fnmssf4): Likewise.
16154
16155 * config/mn10300/mn10300.md (isa): New attribute.
16156 (enabled): New attribute.
16157
16158 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16159 (abssf2, negsf2): Define only for hardware fp.
16160 (sqrtsf2): Reformat.
16161 (addsf3, subsf3, mulsf3): Merge expander and insn.
16162
16163 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16164 (DEBUGGER_AUTO_OFFSET): Remove.
16165 (DEBUGGER_ARG_OFFSET): Remove.
16166
16167 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16168 Emit register stores with the same offsets as the hardware.
16169 (mn10300_store_multiple_operation): Don't check that the register
16170 save offsets are monotonic.
16171 * config/mn10300/mn10300-protos.h: Update.
16172
16173 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16174
16175 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16176 in terms of the value on the stack, not the MDR register.
16177
16178 2011-01-11 Jan Hubicka <jh@suse.cz>
16179
16180 PR lto/45721
16181 PR lto/45375
16182 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16183 (symbol_alias_set_destroy, symbol_alias_set_contains,
16184 propagate_aliases_backward): Declare.
16185 * lto-streamer-out.c (struct sets): New sturcture.
16186 (trivally_defined_alias): New function.
16187 (output_alias_pair_p): Rewrite.
16188 (output_unreferenced_globals): Fix output of alias pairs.
16189 (produce_symtab): Likewise.
16190 * ipa.c (function_and_variable_visibility): Set weak alias destination
16191 as needed in lto.
16192 * varasm.c (symbol_alias_set_t): Remove.
16193 (symbol_alias_set_destroy): Export.
16194 (propagate_aliases_forward, propagate_aliases_backward): New functions
16195 based on ...
16196 (compute_visible_aliases): ... this one; remove.
16197 (trivially_visible_alias): New
16198 (trivially_defined_alias): New.
16199 (remove_unreachable_alias_pairs): Rewrite.
16200 (finish_aliases_1): Reorganize code checking if alias is defined.
16201 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16202 in LTO mode.
16203
16204 2011-01-11 Richard Guenther <rguenther@suse.de>
16205
16206 PR tree-optimization/46076
16207 * tree-ssa.c (useless_type_conversion_p): Conversions from
16208 unprototyped to empty argument list function types are useless.
16209
16210 2011-01-11 Richard Guenther <rguenther@suse.de>
16211
16212 PR middle-end/45235
16213 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16214 volatile MEMs as MEM_READONLY_P.
16215
16216 2011-01-11 Richard Guenther <rguenther@suse.de>
16217
16218 PR tree-optimization/47239
16219 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16220
16221 2011-01-11 Jeff Law <law@redhat.com>
16222
16223 PR tree-optimization/47086
16224 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16225 IVs from statements that might throw.
16226
16227 2011-01-10 Jan Hubicka <jh@suse.cz>
16228
16229 PR lto/45375
16230 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16231
16232 2011-01-10 Jan Hubicka <jh@suse.cz>
16233
16234 PR lto/45375
16235 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16236 when correcting profile.
16237
16238 2011-01-10 Jan Hubicka <jh@suse.cz>
16239
16240 PR lto/46083
16241 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16242 DECL_FINI_PRIORITY.
16243 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16244 Restore DECL_FINI_PRIORITY.
16245
16246 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16247
16248 * doc/gimple.texi: Fix quoting of multi-word return values in
16249 @deftypefn statements. Ensure presence of return value. Wrap
16250 overlong @deftypefn lines.
16251 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16252 descriptions of removed functions.
16253 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16254 of multi-word return value in @deftypefn statement.
16255
16256 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16257
16258 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16259 (Conditional Expressions, Logical Operators)
16260 (Statement and operand traversals): Do not indent smallexample
16261 code. Fix duplicate function argument in example.
16262
16263 2011-01-10 Jeff Law <law@redhat.com>
16264
16265 PR tree-optimization/47141
16266 * ipa-split.c (split_function): Handle case where we are
16267 returning a value and the return block has a virtual operand phi.
16268
16269 2011-01-10 Jan Hubicka <jh@suse.cz>
16270
16271 PR tree-optimization/47234
16272 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16273 (pass_feedback_split_functions): Declare.
16274 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16275 tree-profile.
16276 * ipa-split.c (gate_split_functions): Update comments; disable
16277 split-functions for profile_arc_flag and branch_probabilities.
16278 (gate_feedback_split_functions): New function.
16279 (execute_feedback_split_functions): New function.
16280 (pass_feedback_split_functions): New global var.
16281
16282 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16283
16284 PR lto/46760
16285 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16286 calling gimple_call_set_cannot_inline.
16287
16288 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16289
16290 * config/darwin-sections.def: Remove unused section.
16291
16292 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16293
16294 PR c++/47218
16295 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16296
16297 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16298
16299 PR objc/47232
16300 * c-parser.c (c_parser_declaration_or_fndef): Improved
16301 error message.
16302
16303 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16304
16305 * config/i386/winnt.c (i386_pe_start_function): Make sure
16306 to switch back to function's section.
16307
16308 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16309
16310 PR gcc/46902
16311 PR testsuite/46912
16312 * plugin.c: Move include of dlfcn.h from here...
16313 * system.h: ... to here.
16314
16315 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16316
16317 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16318 file name.
16319 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16320 two extra empty pages in PDF output.
16321
16322 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16323
16324 PR objc/47078
16325 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16326 for error recovery purposes behave as if it was not specified so
16327 that the default type is usd.
16328
16329 2011-01-07 Jan Hubicka <jh@suse.cz>
16330
16331 PR tree-optmization/46469
16332 * ipa.c (function_and_variable_visibility): Clear needed flags on
16333 nodes with external decls; handle weakrefs merging correctly.
16334
16335 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16336
16337 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16338 not false.
16339
16340 2011-01-07 Jan Hubicka <jh@suse.cz>
16341
16342 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16343 and no longer claim that gold is required for linker plugin.
16344 * configure: Regenerate.
16345 * gcc.c (PLUGIN_COND): New macro.
16346 (LINK_COMMAND_SPEC): Use it.
16347 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16348 * config.in (HAVE_LTO_PLUGIN): New.
16349 * configure.ac (--with-lto-plugin): New parameter; autodetect
16350 HAVE_LTO_PLUGIN.
16351
16352 2011-01-07 Jan Hubicka <jh@suse.cz>
16353
16354 PR tree-optimization/46367
16355 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16356 when we can update original.
16357 (cgraph_mark_inline_edge): Sanity check.
16358 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16359
16360 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16361
16362 * config/spu/spu.h (ASM_COMMENT_START): Define.
16363
16364 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16365
16366 PR driver/42445
16367 * gcc.c (%>S): New.
16368 (SWITCH_KEEP_FOR_GCC): Likewise.
16369 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16370 (do_spec_1): Handle "%>".
16371
16372 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16373
16374 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16375
16376 PR target/47201
16377 * config/i386/i386.c (ix86_delegitimize_address): If
16378 simplify_gen_subreg fails, return orig_x.
16379
16380 PR bootstrap/47187
16381 * value-prof.c (gimple_stringop_fixed_value): Handle
16382 lhs of the call properly.
16383
16384 2011-01-07 Jan Hubicka <jh@suse.cz>
16385
16386 PR lto/45375
16387 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16388
16389 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16390
16391 * target.def (function_switched_text_sections): New hook.
16392 * doc/tm.texi: Regenerated.
16393 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16394 * final.c (default_function_switched_text_sections): New.
16395 (final_scan_insn): Call function_switched_text_sections when a
16396 mid-function section change occurs.
16397 * output.h (default_function_switched_text_sections): Declare.
16398 * config/darwin-protos.h (darwin_function_switched_text_sections):
16399 Likewise.
16400 * config/darwin.c (darwin_function_switched_text_sections): New.
16401 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16402
16403 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16404
16405 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16406 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16407 the secondary code fragment when outputting for DWARF == 2.
16408
16409 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16410
16411 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16412 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16413 Remove.
16414 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16415 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16416
16417 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16418
16419 PR debug/46704
16420 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16421 when it is not empty.
16422
16423 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16424
16425 Bobcat Enablement
16426 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16427 (case ${target}): Add btver1.
16428 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16429 -march=native recognize btver1 processors.
16430 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16431 btver1 def_and_undef
16432 * config/i386/i386.c (struct processor_costs btver1_cost): New
16433 btver1 cost table.
16434 (m_BTVER1): New definition.
16435 (m_AMD_MULTIPLE): Includes m_BTVER1.
16436 (initial_ix86_tune_features): Add btver1 tune.
16437 (processor_target_table): Add btver1 entry.
16438 (static const char *const cpu_names): Add btver1 entry.
16439 (software_prefetching_beneficial_p): Add btver1.
16440 (ix86_option_override_internal): Add btver1 instruction sets.
16441 (ix86_issue_rate): Add btver1.
16442 (ix86_adjust_cost): Add btver1.
16443 * config/i386/i386.h (TARGET_BTVER1): New definition.
16444 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16445 (enum processor_type): Add PROCESSOR_BTVER1.
16446 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16447
16448 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16449
16450 PR target/43309
16451 * config/i386/i386.c (legitimize_tls_address)
16452 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16453 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16454 (tls_initial_exec_64_sun): New pattern.
16455
16456 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16457
16458 * doc/invoke.texi (Overall Options): Improve wording and markup
16459 of the description of -wrapper.
16460
16461 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16462
16463 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16464 rdynamic, threads): New Driver options.
16465
16466 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16467
16468 PR target/38118
16469 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16470 if coming from .tdata.
16471 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16472
16473 2011-01-06 Jan Hubicka <jh@suse.cz>
16474
16475 PR lto/47188
16476 * collect2.c (main): Do not enable LTOmode when plugin is active.
16477
16478 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16479
16480 PR other/45915
16481 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16482 --version output if supported.
16483 * configure: Regenerate.
16484
16485 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16486
16487 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16488 Driver options.
16489
16490 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16491
16492 PR c/47150
16493 * c-convert.c (convert): When converting a complex expression
16494 other than COMPLEX_EXPR to a different complex type, ensure
16495 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16496 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16497 when converting COMPLEX_TYPE.
16498
16499 2011-01-06 Ira Rosen <irar@il.ibm.com>
16500
16501 PR tree-optimization/47139
16502 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16503 only the last reduction value is used outside the loop. Update
16504 documentation.
16505
16506 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16507
16508 * config/rtems.opt: New.
16509 * config.gcc (*-*-rtems*): Use rtems.opt.
16510
16511 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16512
16513 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16514 processors do not support 3DNow instructions.
16515
16516 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16517
16518 * config/spu/spu.c (spu_option_override): Set parameter
16519 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16520
16521 2011-01-05 Jan Hubicka <jh@suse.cz>
16522
16523 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16524 at the command line.
16525
16526 2011-01-05 Martin Jambor <mjambor@suse.cz>
16527
16528 PR lto/47162
16529 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16530 deltas on streamed outgoing edges.
16531 (output_node_opt_summary): Output info for outgoing edges only when
16532 the node is in new parameter set.
16533 (output_cgraph_opt_summary): New parameter set, passed to the two
16534 aforementioned functions. Update its forward declaration and its
16535 callee too.
16536
16537 2011-01-05 Tom Tromey <tromey@redhat.com>
16538
16539 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16540 operator to c_finish_omp_atomic.
16541 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16542 (build_unary_op): Update.
16543 (build_modify_expr): Update.
16544 (build_asm_expr): Update.
16545
16546 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16547
16548 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16549 newly inserted insns.
16550 (pad_bb): Likewise.
16551 (spu_emit_branch_hint): Likewise.
16552 (insert_hbrp_for_ilb_runout): Likewise.
16553 (spu_machine_dependent_reorg): Call df_finish_pass after
16554 schedule_insns returns.
16555
16556 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16557
16558 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16559
16560 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16561
16562 PR tree-optimization/47005
16563 * tree-sra.c (struct access): Add 'non_addressable' bit.
16564 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16565 (decide_one_param_reduction): Return 0 if the parameter is passed by
16566 reference and one of the accesses in the group is non_addressable.
16567
16568 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16569
16570 PR tree-optimization/47056
16571 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16572 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16573 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16574
16575 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16576
16577 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16578 initializer. Skip view conversions from aggregate types.
16579
16580 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16581
16582 PR bootstrap/47055
16583 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16584
16585 2011-01-04 Philipp Thomas <pth@suse.de>
16586
16587 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16588 obvious typo.
16589
16590 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16591
16592 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16593 on empty epilogue sequences.
16594
16595 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16596
16597 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16598 non-static): New Driver options.
16599
16600 2011-01-04 Jie Zhang <jie@codesourcery.com>
16601
16602 PR driver/47137
16603 * gcc.c (default_compilers[]): Set combinable field to 0
16604 for all assembly languages.
16605
16606 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16607
16608 * config/mips/loongson3a.md: New file.
16609 * config/mips/mips.md: Include loongson3a.md.
16610 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16611 TUNE_LOONGSON_3A.
16612
16613 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16614
16615 PR middle-end/47017
16616 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16617 instead of convert_memory_address_addr_space on the base expression.
16618
16619 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16620
16621 * config/spu/spu.c (spu_option_override): Update error text
16622 for bad -march= / -mtune= values.
16623
16624 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16625
16626 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16627 if branch-hint optimization will be performed.
16628
16629 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16630
16631 PR tree-optimization/47148
16632 * ipa-split.c (split_function): Convert arguments to
16633 DECL_ARG_TYPE if possible.
16634
16635 PR tree-optimization/47155
16636 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16637 when computing uns.
16638
16639 PR rtl-optimization/47157
16640 * combine.c (try_combine): If undobuf.other_insn becomes
16641 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16642 and set *new_direct_jump_p too.
16643
16644 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16645
16646 PR tree-optimization/47021
16647 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16648
16649 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16650
16651 * gcc.c (process_command): Update copyright notice dates.
16652 * gcov.c (print_version): Likewise.
16653 * gcov-dump.c (print_version): Likewise.
16654 * mips-tfile.c (main): Likewise.
16655 * mips-tdump.c (main): Likewise.
16656
16657 2011-01-03 Martin Jambor <mjambor@suse.cz>
16658
16659 PR tree-optimization/46801
16660 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16661 aggregate fields start at byte boundary instead of the bit-field flag.
16662
16663 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16664
16665 PR driver/47137
16666 * gcc.c (main): Revert revision 168407.
16667
16668 2011-01-03 Martin Jambor <mjambor@suse.cz>
16669
16670 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16671
16672 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16673
16674 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16675 vector optab to expand vector/scalar shift, update gimple to vector.
16676
16677 2011-01-03 Martin Jambor <mjambor@suse.cz>
16678
16679 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16680 a thunk.
16681
16682 2011-01-03 Martin Jambor <mjambor@suse.cz>
16683
16684 PR tree-optimization/46984
16685 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16686 HOST_WIDE_INT.
16687 (cgraph_create_indirect_edge): Fixed line length.
16688 (cgraph_indirect_call_info): Declare.
16689 (cgraph_make_edge_direct) Update declaration.
16690 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16691 (cgraph_create_indirect_edge): Use it.
16692 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16693 callees.
16694 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16695 the new thunk_delta representation.
16696 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16697 HOST_WIDE_INT.
16698 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16699 (ipa_read_indirect_edge_info): Likewise.
16700 * lto-cgraph.c (output_edge_opt_summary): New function.
16701 (output_node_opt_summary): Call it on all outgoing edges.
16702 (input_edge_opt_summary): New function.
16703 (input_node_opt_summary): Call it on all outgoing edges.
16704
16705 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16706
16707 PR driver/47137
16708 * gcc.c (main): Don't check have_o when settting combine_inputs.
16709
16710 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16711
16712 * regrename.c: Add general comment describing the pass.
16713 (struct du_head): Remove 'length' field.
16714 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16715 (regrename_optimize): Do not sort chains. Rework comments, add others.
16716 Force renaming to the preferred class (if any) in the first pass and do
16717 not consider registers that belong to it in the second pass.
16718 (create_new_chain): Do not set 'length' field.
16719 (scan_rtx_reg): Likewise.
16720
16721 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16722
16723 PR tree-optimization/47140
16724 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16725 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16726 to bit_value_binop.
16727
16728 PR rtl-optimization/47028
16729 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16730 parm_birth_insn instead of at the beginning of first bb.
16731
16732 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16733
16734 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16735 Remove the word "see" before "@pxref".
16736 * doc/rtl.texi: Remove the word "see" before "@pxref".
16737
16738 2011-01-01 Jan Hubicka <jh@suse.cz>
16739
16740 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16741 memory.
16742
16743 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16744
16745 PR target/38662
16746 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16747
16748 \f
16749 Copyright (C) 2011 Free Software Foundation, Inc.
16750
16751 Copying and distribution of this file, with or without modification,
16752 are permitted in any medium without royalty provided the copyright
16753 notice and this notice are preserved.