re PR lto/48954 (ICE: SIGSEGV in bitmap_count_bits (bitmap.c:719) with -O2 -flto...
[gcc.git] / gcc / ChangeLog
1 2011-06-04 Jan Hubicka <jh@suse.cz>
2
3 PR lto/48954
4 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
5
6 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
7
8 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9
10 2011-06-04 Jakub Jelinek <jakub@redhat.com>
11
12 PR target/49281
13 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
14 to be strictly smaller than 1 << shiftcount.
15
16 2011-06-04 Jan Hubicka <jh@suse.cz>
17
18 PR tree-optimize/48929
19 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
20 of empty predicate.
21
22 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
23
24 PR debug/48333
25 * calls.c (emit_call_1): Prefer the __builtin declaration of
26 builtin functions.
27
28 2011-06-03 Diego Novillo <dnovillo@google.com>
29
30 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
31 (lto_input_tree_pointers): Likewise.
32 * lto-streamer-out.c (pack_value_fields): Likewise.
33 (lto_output_tree_pointers): Likewise.
34 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
35 and OPTIMIZATION_NODE.
36
37 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38
39 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
40 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
41 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
42 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
43 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
44 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
45 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
46 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
47 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
48 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
49 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
50 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
51 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
52 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
53 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
54 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
55 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
56 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
57 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
58 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
59 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
60 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
61 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
62 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
63 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
64 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
65 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
66 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
67 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
68 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
69 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
70 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
71 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
72 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
73 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
74 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
75 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
76 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
77 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
78 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
79 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
80 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
81 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
82 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
83 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
84 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
85 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
86 * system.h (MD_UNWIND_SUPPORT): Poison.
87 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
88 * doc/tm.texi: Regenerate.
89 * unwind-dw2.c: Include md-unwind-support.h instead of
90 MD_UNWIND_SUPPORT.
91 * config/ia64/unwind-ia64.c: Likewise.
92 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
93
94 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
95
96 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
97
98 2011-06-03 Richard Henderson <rth@redhat.com>
99 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
100
101 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
102 (sigill_hdlr): Correct insn, insn size.
103 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
104
105 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106
107 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
108 t-slibgcc-dummy.
109 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
110 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
111 * config/mips/t-iris: Remove.
112 * config/mips/t-irix6: New file.
113 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
114
115 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116
117 * Makefile.in (LIB2ADDEHDEP): Remove.
118 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
119 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
120 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
121 * config/t-darwin (LIB2ADDEHDEP): Remove.
122 * config/t-freebsd (LIB2ADDEHDEP): Remove.
123 * config/t-linux (LIB2ADDEHDEP): Remove.
124
125 2011-06-03 Diego Novillo <dnovillo@google.com>
126
127 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
128 (lto_register_var_decl_in_symtab): Likewise.
129 (lto_register_function_decl_in_symtab): Likewise.
130 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
131 logic to uniquify_nodes.
132
133 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
134
135 * config/alpha/t-osf5: Remove.
136 * config/alpha/t-osf-pthread: Remove.
137 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
138 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
139
140 2011-06-03 Julian Brown <julian@codesourcery.com>
141
142 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
143 (strongarm1110): Use strongarm tuning.
144 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
145 field.
146 * config/arm/arm.c (arm_strongarm_tune): New.
147 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
148 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
149 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
150 setting, using previous defaults or 1 for Cortex-A5.
151 (arm_option_override): Set max_insns_skipped from current tuning.
152
153 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
154
155 * doc/install.texi (Options specification): Document --with-specs.
156
157 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
158
159 * config/arm/neon.md (orndi3_neon): Actually split it.
160
161 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
162
163 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
164 * var-tracking.c (reverse_op): Limite recurse depth to 5.
165
166 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
167
168 PR debug/47590
169 * target.def (delay_sched2, delay_vartrack): New.
170 * doc/tm.texi.in: Update.
171 * doc/tm.texi: Rebuild.
172 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
173 * var-tracking.c (gate_handle_var_tracking): Likewise.
174 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
175 (bfin_flag_var_tracking): Drop.
176 (output_file_start): Don't save and override flag_var_tracking.
177 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
178 (bfin_reorg): Test original variables.
179 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
180 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
181 (ia64_flag_var_tracking): Drop.
182 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
183 (ia64_file_start): Don't save and override flag_var_tracking.
184 (ia64_override_options_after_change): Ditto
185 flag_schedule_insns_after_reload.
186 (ia64_reorg): Test original variables.
187 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
188 (picochip_flag_var_tracking): Drop.
189 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
190 (picochip_option_override): Don't save and override
191 flag_schedule_insns_after_reload.
192 (picochip_asm_file_start): Ditto flag_var_tracking.
193 (picochip_reorg): Test original variables.
194 * config/spu/spu.c (spu_flag_var_tracking): Drop.
195 (TARGET_DELAY_VARTRACK): Define.
196 (spu_var_tracking): New.
197 (spu_machine_dependent_reorg): Call it.
198 (asm_file_start): Don't save and override flag_var_tracking.
199
200 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
201
202 PR target/49163
203 * config/sh/predicates.md (general_movsrc_operand): Return 0
204 for memory and memory subreg of which address is an invalid
205 indexed address for QI and HImode.
206 (general_movdst_operand): Likewise.
207
208 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
209
210 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
211 edges only, when there is a non-local label in the function.
212 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
213
214 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
215
216 * config/i386/constraints.md (Y3): New register constraint.
217 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
218 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
219 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
220 *sse2_interleave_lowv2df.
221
222 2011-06-02 Julian Brown <julian@codesourcery.com>
223
224 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
225 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
226 (arm_cortex_a5_tune): New.
227
228 2011-06-02 Julian Brown <julian@codesourcery.com>
229
230 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
231 * config/arm/arm.c (arm_default_branch_cost): New.
232 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
233 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
234 (arm_fa726_tune): Set branch_cost field using
235 arm_default_branch_cost.
236 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
237 current_tune structure.
238 * dojump.c (tm_p.h): Include file.
239
240 2011-06-02 Julian Brown <julian@codesourcery.com>
241
242 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
243 tuning.
244 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
245 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
246 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
247 field.
248 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
249 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
250 (arm_fa726te_tune): Add prefer_constant_pool setting.
251 (arm_v6t2_tune, arm_cortex_tune): New.
252 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
253 prefer_constant_pool setting.
254
255 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
256
257 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
258 switch statement.
259 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
260 (*movdf_internal) <case 6,7,8>: Ditto.
261
262 * config/i386/constraints.md (Y4): New register constraint.
263 * config/i386/sse.md (vec_set<mode>_0): Merge with
264 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
265 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
266 *vec_extractv2di_1_sse.
267 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
268 and *vec_concatv2di_rex64_sse.
269
270 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
271
272 PR target/48807
273 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
274 of cgraph_local_info for null before attempting to use it.
275
276 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
277
278 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
279 (current_function_dynamic_alloc_count): Delete.
280 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
281 (expand_builtin_nonlocal_goto): Remove obsolete comment.
282 (expand_builtin_update_setjmp_buf): Remove dead code.
283 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
284 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
285 support.
286 * function.c (instantiate_virtual_regs): Likewise.
287 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
288 for a block with a single abnormal incoming edge.
289 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
290 (SETJMP_VIA_SAVE_AREA): Delete.
291 * config/sparc/sparc-protos.h (load_got_register): Declare.
292 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
293 (load_got_register): Make global.
294 (sparc_frame_pointer_required): Add 'static'.
295 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
296 (sparc_builtin_setjmp_frame_value): New function.
297 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
298 (save_stack_nonlocal): New expander.
299 (restore_stack_nonlocal): Likewise.
300 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
301 (nonlocal_goto_internal): New insn.
302 (goto_handler_and_restore): Delete.
303 (builtin_setjmp_setup): Likewise.
304 (do_builtin_setjmp_setup): Likewise.
305 (setjmp): Likewise.
306 (builtin_setjmp_receiver): New expander.
307
308 2011-06-01 David Li <davidxl@google.com>
309
310 PR middle-end/49261
311 * tree-pretty-print.c (dump_function_header): Format cleanup.
312
313 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
314
315 PR target/49238
316 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
317 needed when original operands are used for msw_skip comparison.
318
319 2011-06-01 Jakub Jelinek <jakub@redhat.com>
320
321 PR debug/49250
322 * var-tracking.c (add_uses, add_stores): Don't call
323 cselib_subst_to_values on ENTRY_VALUE.
324
325 2011-06-01 Diego Novillo <dnovillo@google.com>
326
327 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
328 output_record_start with LTO_null instead of output_zero.
329 (lto_output_ts_binfo_tree_pointers): Likewise.
330 (lto_output_tree): Likewise.
331 (output_eh_try_list): Likewise.
332 (output_eh_region): Likewise.
333 (output_eh_lp): Likewise.
334 (output_eh_regions): Likewise.
335 (output_bb): Likewise.
336 (output_function): Likewise.
337 (output_unreferenced_globals): Likewise.
338 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
339 instead of NUM_TREE_CODES.
340 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
341 (lto_output_int_in_range): Change << to >> when shifting VAL.
342
343 2011-06-01 Diego Novillo <dnovillo@google.com>
344
345 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
346 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
347
348 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
349
350 PR target/45074
351 * optabs.h (valid_multiword_target_p): Declare.
352 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
353 doing multi-word operations.
354 * optabs.c (expand_binop): Likewise.
355 (expand_doubleword_bswap): Likewise.
356 (expand_absneg_bit): Likewise.
357 (expand_unop): Likewise.
358 (expand_copysign_bit): Likewise.
359 (multiword_target_p): New function.
360
361 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
362
363 PR rtl-optimization/48830
364 PR rtl-optimization/48808
365 PR rtl-optimization/48792
366 * reload.c (push_reload): Check contains_reg_of_mode.
367 * reload1.c (strip_paradoxical_subreg): New function.
368 (gen_reload_chain_without_interm_reg_p): Use it to handle
369 paradoxical subregs.
370 (emit_output_reload_insns, gen_reload): Likewise.
371
372 2011-06-01 David Li <davidxl@google.com>
373
374 * predict.c : Change pass name
375 * ipa.c: Ditto.
376 * dce.c: Ditto.
377 * tree-profile.c: Ditto.
378 * except.c: Ditto.
379
380 2011-06-01 David Li <davidxl@google.com>
381
382 * tree-pretty-print.c (dump_function_header): New function.
383 * final.c (rest_of_clean_state): Use header dumper.
384 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
385 * passes.c (pass_init_dump_file): Use header dumper.
386
387 2011-06-01 Jakub Jelinek <jakub@redhat.com>
388
389 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
390 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
391 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
392 New functions.
393 (mem_loc_descriptor): Use them.
394
395 * var-tracking.c (create_entry_value): New function.
396 (vt_add_function_parameter): Use it.
397
398 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
399
400 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
401 Include <signal.h>, <ucontext.h>.
402 (sigill_caught): Define.
403 (sigill_hdlr): New function.
404 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
405 insns can be executed.
406 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
407 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
408
409 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
410
411 * config/t-slibgcc-darwin: Move to ...
412 * config/t-slibgcc-dummy: ... this. Clarify comments.
413 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
414 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
415 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
416 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
417 Remove i386/t-crtstuff from tmake_file.
418 (i[34567]86-*-solaris2*): Remove t-svr4,
419 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
420 t-slibgcc-dummy.
421 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
422 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
423 sparc/t-crtfm from tmake_file.
424 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
425 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
426 Remove extra_parts.
427 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
428 * config/i386/t-nwld (SHLIB_LINK): Remove.
429 * config/i386/t-rtems-i386: Rename to ...
430 * config/i386/t-rtems: ... this.
431 ($(T)crti.o, $(T)crtn.o): Remove.
432 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
433 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
434 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
435 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
436 EXTRA_MULTILIB_PARTS): Remove.
437 * config/sparc/t-sol2-64: Likewise.
438 * config/sparc/t-sol2: Remove.
439 * config/sparc/t-crtin: Remove.
440 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
441 * config/i386/gmon-sol2.c: Remove.
442 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
443 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
444 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
445 * config/i386/sol2-gc1.asm: Remove.
446 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
447 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
448 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
449 * config/t-slibgcc-sld: Remove.
450
451 2011-06-01 Jakub Jelinek <jakub@redhat.com>
452
453 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
454 base_type_for_mode with op_mode instead of mode.
455
456 2011-06-01 Paul Brook <paul@cpodesourcery.com>
457
458 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
459 Cortex-A15.
460 * config/arm/arm-tune.md: Regenerate.
461 * config/arm/arm-tables.opt: Regenerate.
462 * config/arm/arm.c (FL_DIV): Rename...
463 (FL_THUMB_DIV): ... to this.
464 (FL_ARM_DIV): Define.
465 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
466 (arm_arch_hwdiv): Remove.
467 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
468 (arm_issue_rate): Add cortexr5.
469 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
470 __ARM_ARCH_EXT_IDIV__.
471 (TARGET_IDIV): Define.
472 (arm_arch_hwdiv): Remove.
473 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
474 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
475 (divsi3, udivsi3): New patterns.
476 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
477 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
478
479 2011-06-01 Martin Jambor <mjambor@suse.cz>
480
481 * ipa-utils.c (ipa_dfs_info): New field scc_no.
482 * ipa-utils.c (searchc): Set scc_no.
483
484 2011-06-01 Martin Jambor <mjambor@suse.cz>
485
486 * ipa-utils.c (searchc_env): New field allow_overwritable.
487 (searchc): do not ignore edges to overwritable nodes if indicated
488 by env->allow_overwritable.
489 (ipa_reduced_postorder): Set env.allow_overwritable.
490
491 2011-06-01 Richard Guenther <rguenther@suse.de>
492
493 * tree.c (free_lang_data): Do not reset boolean_type_node nor
494 char_type_node.
495 * lto-streamer.c (lto_record_common_node): Take node pointer,
496 do not register types.
497 (lto_preload_common_nodes): Explicitly skip preloading nodes
498 that differ between frontends.
499
500 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
501
502 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
503 NON_FLOAT_REGS.
504
505 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
506
507 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
508 parameter value for dump. Dump cost on outermost call only.
509 (rs6000_memory_move_cost): Dump cost on outermost call only.
510
511 2011-05-31 Jakub Jelinek <jakub@redhat.com>
512
513 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
514 DW_OP_GNU_convert ops.
515
516 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
517 cselib_preserve_constants.
518 (cselib_lookup_1): If cselib_preserve_constants,
519 a new VALUE is being created for REG and there is a VALUE for the
520 same register in wider mode, add another loc with lowpart SUBREG of
521 the wider VALUE.
522 (cselib_subst_to_values): Handle ENTRY_VALUE.
523 * var-tracking.c (replace_expr_with_values): Return NULL for
524 ENTRY_VALUE too.
525 * dwarf2out.c (convert_descriptor_to_signed): New function.
526 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
527 instead of two shifts.
528 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
529 the right mode if needed.
530 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
531 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
532 convert_descriptor_to_signed.
533 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
534 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
535
536 PR target/48688
537 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
538
539 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
540
541 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
542 of X87MODEI12 and SWI48x instead of SSEMODEI24.
543 (SWI248x): New mode iterator, rename from X87MODEI.
544 (X87MODEI): Remove mode iterator.
545 (X87MODEI12): Ditto.
546 (SSEMODEI24): Ditto.
547
548 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
549
550 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
551 * doc/invoke.texi: Document max-vartrack-expr-depth.
552 * var-tracking.c (EXPR_DEPTH): New.
553 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
554
555 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
556
557 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
558 * config/i386/sse.md: Add n to negated FMA pattern names.
559
560 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
561
562 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
563
564 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
565
566 * gengtype-state.c (read_state_params_structs): Initialize previous.
567
568 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
569
570 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
571 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
572
573 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
574
575 * config/i386/i386.md (*movtf_internal): Avoid allocating general
576 registers. Penalize F*r->o alternative to prevent partial memory
577 stalls. Slightly penalize *roF->*r alternative. Generate SSE
578 CONST_DOUBLE immediates when optimizing function for size. Do not move
579 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
580 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
581 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
582 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
583 alternatives.
584 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
585
586 (fp_register_operand splitters): Use fp_register_operand
587 constraint. Do not use FP_REG_P in insn condition.
588 (any_fp_register_operand splitters): Use any_fp_register_operand
589 constraint. Do not use ANY_FP_REG_P in insn condition.
590
591 2011-05-31 Jan Hubicka <jh@suse.cz>
592
593 * cgraph.h (cgraph_inline_failed_t): Give enum a name
594 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
595 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
596 (lto_output_edge): Use output_enum and var_len_unsigned.
597 (lto_output_varpool_node): Likewise.
598 (input_overwrite_node): Do not take resolution parameter;
599 extract it from a bitpack.
600 (input_node): Do not read resolution; use input_enum and
601 var_len_unsigned.
602 (input_varpool_node): Likewise.
603 (input_edge): Likewise.
604 (input_cgraph_1): Likewise.
605
606 2011-05-31 Richard Guenther <rguenther@suse.de>
607
608 * gimple.c (gimple_register_canonical_type): Do not register
609 any types via gimple_register_type.
610
611 2011-05-31 Jan Hubicka <jh@suse.cz>
612
613 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
614 of thunks.
615
616 2011-05-31 Jakub Jelinek <jakub@redhat.com>
617
618 PR rtl-optimization/49235
619 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
620 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
621
622 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
623
624 PR tree-optimization/49093
625 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
626 data references.
627
628 2011-05-31 Dodji Seketeli <dodji@redhat.com>
629
630 PR debug/49047
631 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
632 for concrete functions containing the code of cloned functions.
633
634 2011-05-31 Richard Guenther <rguenther@suse.de>
635
636 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
637 to ...
638 (forward_propagate_into_comparison_1): ... this.
639 (forward_propagate_comparison): Rename to ...
640 (forward_propagate_into_comparison): ... this. Split out
641 real forward propagation code to ...
642 (forward_propagate_comparison): ... this.
643 (forward_propagate_into_gimple_cond): Remove looping.
644 (forward_propagate_into_cond): Likewise.
645 (simplify_not_neg_expr): Return whether we have done something.
646 (simplify_gimple_switch): Likewise.
647 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
648 (ssa_forward_propagate_and_combine): ... this. Re-structure
649 to do a forward forward-propagation walk on BBs and a backward
650 stmt combining walk on BBs. Consistently re-scan changed statements.
651 (pass_forwprop): Adjust.
652
653 2011-05-30 Ian Lance Taylor <iant@google.com>
654
655 * godump.c (go_format_type): Correct length of name added to
656 obstack for anonymous field.
657
658 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
659
660 PR target/49186
661 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
662 part of the second operand is 0.
663
664 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
665
666 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
667 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
668 to memory for !TARGET_MEMORY_MISMATCH_STALL.
669 (*movdf_internal_rex64): Do not penalize F->r alternative.
670 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
671 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
672 when optimizing function for size. Do not move CONST_DOUBLEs
673 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
674 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
675 SUBREGs. Do not check for MEM_P operands in the insn condition,
676 check for ANY_FP_REGNO_P instead.
677 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
678 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
679 function for speed.
680 * config/i386/i386.c (ix86_option_override_internal): Do not
681 set TARGET_INTEGER_DFMODE_MOVES here.
682
683 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
684
685 PR target/49168
686 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
687
688 2011-05-30 Jakub Jelinek <jakub@redhat.com>
689
690 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
691 DW_TAG_rvalue_reference_type even for
692 -gdwarf-4 -fno-debug-types-section.
693
694 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
695
696 PR tree-optimization/46728
697 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
698 (build_and_insert_binop): New.
699 (gimple_expand_builtin_pow): Reorder args for
700 build_and_insert_call; use build_and_insert_binop; add more
701 optimizations for fractional exponents.
702
703 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
704
705 PR bootstrap/49190
706
707 Revert:
708 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
709
710 * tree.h (struct tree_identifier): Inherit from tree_typed, not
711 tree_common.
712 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
713 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
714 TS_BASE instead of TS_COMMON.
715 * varasm.c (assemble_name): Remove assert.
716
717 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
718
719 * config.gcc: Keep obselete list sorted.
720
721 2011-05-30 Jakub Jelinek <jakub@redhat.com>
722 Eric Botcazou <ebotcazou@adacore.com>
723
724 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
725 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
726 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
727 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
728 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
729
730 2011-05-30 Richard Guenther <rguenther@suse.de>
731
732 * gimple.c (gimple_types_compatible_p_1): Compare record
733 and union type members properly.
734
735 2011-05-30 Richard Guenther <rguenther@suse.de>
736
737 PR tree-optimization/49210
738 * ipa-split.c (split_function): Care for the case where the call
739 result is not trivially convertible to the result holding variable.
740
741 2011-05-30 Richard Guenther <rguenther@suse.de>
742
743 PR tree-optimization/49218
744 * tree-vrp.c (adjust_range_with_scev): Properly check whether
745 overflow occured.
746
747 2011-05-30 Richard Guenther <rguenther@suse.de>
748
749 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
750 New function split out from ...
751 (forward_propagate_into_gimple_cond): ... here. Adjust.
752 (forward_propagate_into_cond): Likewise.
753 (forward_propagate_comparison): Also propagate into
754 comparisons on assignment RHS. Change return value to
755 behave similar to forward_propagate_into_cond.
756 (tree_ssa_forward_propagate_single_use_vars): Handle
757 strict-overflow warnings properly for forward_propagate_comparison.
758
759 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
760
761 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
762 from plugin linker.
763 * configure: Regenerate.
764
765 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
766
767 PR tree-optimization/49199
768 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
769 non-reduction operands are either defined in the loop or by induction.
770
771 2011-05-29 Xinliang David Li <davidxl@google.com>
772
773 * opts-global.c (handle_common_deferred_options): Handle new options.
774 * passes.c (register_one_dump_file): Call register_pass_name.
775 (execute_one_pass): Check explicit enable/disable flag.
776 (passr_hash): New function.
777 (passr_eq): Ditto.
778 (register_pass_name): Ditto.
779 (get_pass_by_name): Ditto.
780 (pass_hash): Ditto.
781 (pass_eq): Ditto.
782 (enable_pass): Ditto.
783 (disable_pass): Ditto.
784 (is_pass_explicitly_enabled_or_disabled): Ditto.
785
786 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
787
788 * config/i386/i386.md (*movoi_internal_avx): Use
789 standard_sse_constant_opcode for alternative 0.
790 (*movti_internal_sse): Ditto.
791 (*movti_internal_rex64): Use standard_sse_constant_opcode for
792 alternative 2.
793 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
794 sselog1 type moves.
795 (*movsi_internal): Ditto.
796 (*movdi_internal): Ditto. Add ssecvt type moves.
797
798 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
799
800 PR target/48830
801 * rtlanal.c (simplify_subreg_regno): Adjust comment.
802
803 2011-05-29 Jakub Jelinek <jakub@redhat.com>
804
805 PR rtl-optimization/49095
806 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
807 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
808
809 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
810
811 PR target/43995
812 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
813 recurse_p argument. Only follow register copies if it is set,
814 and prevent mips_find_pic_call_symbol from recursing.
815 (mips_find_pic_call_symbol): Add a recurse_p argument.
816 Pass it to mips_pic_call_symbol_from_set.
817 (mips_annotate_pic_calls): Update accordingly.
818
819 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
820
821 * emit-rtl.c (try_split): Use a loop to search for
822 NOTE_INSN_CALL_ARG_LOCATIONs.
823
824 2011-05-29 Richard Guenther <rguenther@suse.de>
825
826 PR tree-optimization/49217
827 * ipa-pure-const.c (propagate_pure_const): Fix typos.
828
829 2011-05-28 Jan Hubicka <jh@suse.cz>
830
831 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
832 length.
833 (string_slot_free): Remove
834 (create_output_block): Initialize obstack.
835 (destroy_output_block): Free obstack.
836 (lto_string_index): Add PERSISTENT parameter; do not duplicate
837 the string unless it needs to be added into the hash.
838 (lto_output_string_with_length): Add persistent attribute;
839 handle NULL strings.
840 (lto_output_string): Add PERSISTENT parameter.
841 (output_string_cst, output_identifier): Simplify.
842 (lto_output_location_bitpack): Update.
843 (lto_output_builtin_tree): Update.
844 * lto-streamer.h (struct output_block): Add obstack.
845 (lto_output_string, lto_output_string_with_length): Remove
846 declarations; functions are static now.
847
848 2011-05-28 Jan Hubicka <jh@suse.cz>
849
850 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
851 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
852 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
853 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
854 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
855 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
856 unpack_ts_decl_with_vis_value_fields,
857 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
858 lto_get_builtin_tree): Use enum and variable length i/o.
859 * basic-block.h (profile_status_d): Add PROFILE_LAST.
860 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
861 New functions.
862 (bp_pack_enum, bp_unpack_enum): New macros.
863
864 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
865
866 * genrecog.c: Remove redundant forward declarations.
867
868 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
869
870 * config.gcc: Deprecate mips*-*-openbsd*.
871
872 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
873
874 PR bootstrap/49195
875 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
876 for match_op_dup.
877
878 2011-05-27 Andrew Pinski <pinskia@gmail.com>
879
880 PR middle-end/48981
881 * gengtype.c (vec_prefix_type): New function.
882 (note_def_vec): Use vec_prefix_type and change the length
883 attribute to be based on the prefix.
884 * vec.c: Include coretypes.h before vec.h.
885 (struct vec_prefix): Remove.
886 (vec_gc_p_reserve): Change the offsetof to sizeof.
887 (vec_gc_p_reserve_exact): Likewise.
888 (vec_heap_p_reserve): Likewise.
889 (vec_heap_p_reserve_exact): Likewise.
890 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
891 (vec_stack_p_reserve): Change the offsetof to sizeof.
892 (vec_stack_p_reserve_exact): Likewise.
893 * vec.h (struct vec_prefix): New struct definition.
894 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
895 (VEC_T_GTY(T,B)): Likewise.
896 (DEF_VEC_FUNC_P(T)): Use prefix field.
897 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
898 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
899
900 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
901
902 PR tree-optimization/46728
903 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
904 (powi_as_mults): Add gimple_set_location.
905 (build_and_insert_call): New.
906 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
907 0.5, 0.25, 0.75, 1./3., or 1./6.
908
909 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
910
911 * doc/contrib.texi: Update copyright years.
912 (Contributors): Add Zdenek Sojka.
913
914 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
915
916 * c-decl.c (c_push_function_context): Copy the current statement
917 list stack.
918 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
919 (finish_struct): Call building_stmt_list_p instead of checking
920 cur_stmt_list.
921 * c-parser.c (c_parser_postfix_expression): Likewise.
922 * c-typeck.c (c_end_compound_stmt): Likewise.
923 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
924 * tree-iterator.c (stmt_list_cache): Change to a VEC.
925 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
926 (free_stmt_list): Likewise.
927 * tree.h (struct tree_statement_list): Include typed_tree instead
928 of tree_common.
929 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
930 as TS_TYPED instead of TS_COMMON.
931
932 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
933 Uros Bizjak <ubizjak@gmail.com>
934
935 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
936 (HAVE_AS_IX86_TLSGDPTL): Define.
937 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
938 (HAVE_AS_IX86_TLSLDMPLT): Define.
939 * configure: Regenerate.
940 * config.in: Regenerate.
941 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
942 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
943 TARGET_SUN_TLS, use @tlsgdplt or @plt.
944 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
945 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
946 @tlsldmplt or @plt.
947 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
948
949 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
950
951 * sched-int.h (struct _haifa_deps_insn_data): New members cond
952 and reverse_cond.
953 (INSN_COND, INSN_REVERSE_COND): New macros.
954 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
955 once.
956 (sched_get_condition_with_rev): Cache the results, and look them up
957 if possible.
958 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
959 are clobbered by the current insn.
960 * target.def (exposed_pipline): New sched data hook.
961 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
962 * doc/tm.texi: Regenerate.
963
964 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
965
966 PR tree-optimization/49170
967 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
968 sincos or cexp.
969
970 2011-05-27 Richard Guenther <rguenther@suse.de>
971
972 PR middle-end/49189
973 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
974 of comparisons.
975
976 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
977
978 * haifa-sched.c (sched_scan_info): Remove.
979 (schedule_block): Call sched_extend_luids rather than sched_init_luids
980 with NULL args.
981 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
982 Remove functions.
983 (sched_scan): Remove.
984 (sched_extend_luids): Renamed from luids_extend_insn and no longer
985 static. All callers changed.
986 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
987 static. All callers changed.
988 (sched_init_luids): Remove all arguments except the first. All
989 callers changed. Don't use sched_scan.
990 (haifa_init_h_i_d): Likewise.
991 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
992 manually rather than using sched_init_luids. Likewise with
993 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
994 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
995 rather than sched_init_luids with NULL args.
996 * sel-sched-ir.c (new_insns): Remove variable.
997 (sched_scan): New static function, previously in haifa-sched.c. Remove
998 all arguments but the first two; all callers changed.
999 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1000 rather than sched_init_luids.
1001 (sel_init_bbs): Remove second argument. All callers changed.
1002 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1003 with NULL arguments.
1004 (create_insn_rtx_from_pattern): Likewise.
1005 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1006 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1007 (sched_init_insn_luid, sched_extend_luids): Declare.
1008 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1009 declarations.
1010
1011 2011-05-27 Richard Guenther <rguenther@suse.de>
1012
1013 PR middle-end/49177
1014 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1015 A CMP B ? (T) true : (T) false for non-integral types T again.
1016
1017 2011-05-27 Jan Hubicka <jh@suse.cz>
1018
1019 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1020 so 0 means NULL string.
1021 (lto_output_string_with_length): ... here.
1022 (lto_output_string, output_string_cst, output_identifier): Update
1023 handling of NULL strings.
1024 (lto_output_location_bitpack): New function.
1025 (lto_output_location): Use it.
1026 (lto_output_tree_ref): Use output_record_start.
1027 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1028 len values.
1029 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1030 values by 1.
1031 (input_string_internal): ... here;
1032 (input_string_cst, input_identifier, lto_input_string): Update handling
1033 of NULL strings.
1034 (lto_input_location_bitpack): New function
1035 (lto_input_location): Use it.
1036 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1037 values.
1038 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1039 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1040 (bp_pack_value): Sanity check the value range.
1041 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1042 New functions.
1043 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1044 New functions.
1045
1046 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1047
1048 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1049 call_arg_location instructions down the floor.
1050
1051 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1052
1053 PR rtl-optimization/49154
1054 * ira.c (setup_pressure_classes): Process class without sublcasses
1055 as a candidate for pressure classes.
1056
1057 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1058
1059 PR rtl-optimization/48575
1060 * genrecog.c (position_type): New enum.
1061 (position): New structure.
1062 (decision): Use position structure instead of a string.
1063 (root_pos, peep2_insn_pos_list): New variables.
1064 (next_position, compare_positions): New functions.
1065 (new_decision): Use position structures instead of strings.
1066 (maybe_both_true): Likewise.
1067 (change_state): Likewise.
1068 (write_tree): Likewise.
1069 (make_insn_sequence): Likewise.
1070
1071 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1072
1073 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1074 TS_BASE instead of TS_COMMON.
1075 (find_decls_types_r): Check for TS_TYPED structure before looking at
1076 TREE_TYPE.
1077 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1078 Add chain field.
1079 (BLOCK_CHAIN): Use new chain field.
1080
1081 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1082
1083 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1084 moves expensive on Power7 also.
1085
1086 2011-05-26 Richard Guenther <rguenther@suse.de>
1087
1088 * fold-const.c (fold_unary_loc): Remove bogus code.
1089
1090 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1091
1092 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1093 tree_common.
1094 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1095 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1096 TS_BASE instead of TS_COMMON.
1097 * varasm.c (assemble_name): Remove assert.
1098
1099 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1100
1101 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1102 substituted first.
1103 * libgcc-std.ver: Delete file.
1104
1105 2011-05-26 Richard Guenther <rguenther@suse.de>
1106
1107 PR tree-optimization/48702
1108 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1109 only when we know the base address is within bounds.
1110 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1111 assume the base address of TARGET_MEM_REFs is in bounds.
1112
1113 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114
1115 PR target/49099
1116 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1117 declaration in TARGET_SOLARIS.
1118
1119 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1120
1121 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1122 The instruction is then expanded explicitly.
1123 (supported_compare): Callable instruction.
1124 (compare): Likewise.
1125
1126 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1127
1128 PR c++/49165
1129 * gimplify.c (shortcut_cond_r): Don't special case
1130 COND_EXPRs if they have void type on one of their arms.
1131
1132 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1133
1134 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1135 to reduce duplication, and to achieve a slightly more logical order
1136 of operations.
1137
1138 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1139
1140 PR tree-optimization/49161
1141 * tree-vrp.c (struct case_info): New type.
1142 (compare_case_labels): Sort case_info structs instead of
1143 trees, and not primarily by CASE_LABEL uids but by
1144 label_for_block indexes.
1145 (find_switch_asserts): Put case labels into struct case_info
1146 array instead of TREE_VEC, adjust sorting, compare label_for_block
1147 values instead of CASE_LABELs.
1148
1149 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1150
1151 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1152 ("orndi3_neon"): Likewise.
1153 ("bic<mode>3_neon"): Likewise.
1154
1155 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1156
1157 PR tree-optimization/49038
1158 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1159 Ensure at least one epilogue iteration if required by data
1160 accesses with gaps.
1161 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1162 to mark loops that require peeling for gaps.
1163 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1164 (vect_get_known_peeling_cost): Take peeling for gaps into
1165 account.
1166 (vect_transform_loop): Generate epilogue if required by data
1167 access with gaps.
1168 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1169 loop as requiring an epilogue if there are gaps in the end of
1170 the strided group.
1171
1172 2011-05-25 Ian Lance Taylor <iant@google.com>
1173
1174 * godump.c (go_format_type): Output the first field with a usable
1175 Go type, if any.
1176
1177 2011-05-25 Ian Lance Taylor <iant@google.com>
1178
1179 * godump.c (go_format_type): Check for invalid type names, pointer
1180 target types, and struct field types.
1181
1182 2011-05-25 Jason Merrill <jason@redhat.com>
1183
1184 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1185
1186 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1187
1188 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1189
1190 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1191
1192 * config/i386/i386.md (*movqi_extv_1)): Put back
1193 "register_operand" check in "type" calculation.
1194 (*movqi_extzv_2): Likewise.
1195
1196 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1199
1200 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1201
1202 PR bootstrap/49160
1203 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1204 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1205 __divxc3, __divtc3): Wrap definitions in #ifndef.
1206
1207 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1208
1209 PR target/49142
1210 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1211 "register_operand" check and replace q_regs_operand with
1212 QIreg_operand in "type" calculation.
1213 (*movqi_extv_1): Likewise.
1214 (*movqi_extzv_2_rex64): Likewise.
1215 (*movqi_extzv_2): Likewise.
1216
1217 * config/i386/predicates.md (QIreg_operand): New.
1218
1219 2011-05-25 Richard Guenther <rguenther@suse.de>
1220
1221 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1222 type-based offset disambiguation, streamline MEM_REF and
1223 TARGET_MEM_REF handling.
1224
1225 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1226
1227 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1228 (bdesc_special_args): Add pause intrinsic.
1229
1230 * config/i386/i386.md (UNSPEC_PAUSE): New.
1231 (pause): Likewise.
1232 (*pause): Likewise.
1233 * config/i386/ia32intrin.h (__pause): Likewise.
1234
1235 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1236 pause intrinsic.
1237
1238 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1239
1240 PR tree-optimization/46728
1241 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1242 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1243
1244 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1245
1246 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1247 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1248 instead of TS_COMMON.
1249
1250 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1251
1252 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1253 LIBGCC2_GNU_PREFIX is defined.
1254 (__N): New macro.
1255 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1256 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1257 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1258 __clz_tab): Define using __N.
1259 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1260 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1261 * target.def (libfunc_gnu_prefix): New hook.
1262 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1263 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1264 * doc/tm.texi: Regenerate.
1265 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1266 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1267 account.
1268 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1269 (init_optabs): Likewise for the bswap libfuncs.
1270 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1271 and divide.
1272 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1273 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1274 * libgcc-std.ver: Remove.
1275 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1276 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1277 libgcc-std.ver.
1278 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1279 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1280 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1281 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1282 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1283 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1284 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1285 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1286 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1287 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1288
1289 2011-05-25 Jan Hubicka <jh@suse.cz>
1290
1291 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1292 (lto_output_tree): Use output_record_start.
1293 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1294 (lto_get_pickled_tree): Use input_record_start.
1295 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1296 (lto_value_range_error): New function.
1297 * lto-streamer.h (lto_value_range_error): Declare.
1298 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1299 (lto_output_enum, lto_input_enum): New macros.
1300
1301 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1302
1303 * common.opt (flag_stack_usage_info): New variable.
1304 (-Wstack-usage): New option.
1305 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1306 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1307 <OPT_fstack_usage>: Likewise.
1308 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1309 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1310 of flag_stack_usage.
1311 (emit_library_call_value_1): Likewise.
1312 * explow.c (allocate_dynamic_stack_space): Likewise.
1313 * function.c (instantiate_virtual_regs ): Likewise.
1314 (prepare_function_start): Likewise.
1315 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1316 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1317 * config/arm/arm.c (arm_expand_prologue): Likewise.
1318 (thumb1_expand_prologue): Likewise.
1319 * config/avr/avr.c (expand_prologue): Likewise.
1320 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1321 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1322 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1323 * config/mips/mips.c (mips_expand_prologue): Likewise.
1324 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1325 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1326 * config/s390/s390.c (s390_emit_prologue): Likewise.
1327 * config/sh/sh.c (sh_expand_prologue): Likewise.
1328 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1329 * config/spu/spu.c (spu_expand_prologue): Likewise.
1330
1331 2011-05-25 Richard Guenther <rguenther@suse.de>
1332
1333 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1334 (gimple_canonical_types_compatible_p): Likewise.
1335
1336 2011-05-25 Jan Hubicka <jh@suse.cz>
1337
1338 PR middle-end/49062
1339 * ipa.c (function_and_variable_visibility): Only add to same
1340 comdat group list if DECL_ONE_ONLY.
1341
1342 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1343
1344 PR rtl-optimization/49014
1345 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1346
1347 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1348
1349 PR target/49128
1350 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1351
1352 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1353
1354 PR rtl-optimization/48757
1355 * ira-build.c (loop_with_eh_edge_p): Rename to
1356 loop_with_complex_edge_p, check edges on complexity, make function
1357 conditional.
1358 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1359 conditional.
1360
1361 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1362
1363 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1364 force flag_ira_share_save_slots to 0.
1365
1366 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1367
1368 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1369 (vt_initialize): Set PROLOGUE_BB unconditionally.
1370 Add block comment about CFA_BASE_RTX machinery.
1371 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1372 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1373
1374 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1375
1376 PR objc/48187
1377 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1378 parsing of syntax error in ObjC instance variable lists. In
1379 particular, avoid an infinite loop if there is a stray ']'.
1380 Updated error message.
1381
1382 2011-05-24 Ian Lance Taylor <iant@google.com>
1383
1384 * godump.c (go_define): Don't accept a string immediately after
1385 another operand.
1386
1387 2011-05-24 Ian Lance Taylor <iant@google.com>
1388
1389 * godump.c (struct godump_container): Add invalid_hash field.
1390 (go_format_type): Return false if type is found in invalid_hash.
1391 (go_output_typedef): Add invalid type to invalid_hash.
1392 (go_finish): Create and delete invalid_hash.
1393
1394 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1395
1396 PR tree-optimization/46728
1397 * tree-ssa-math-opts.c (powi_table): New.
1398 (powi_lookup_cost): New.
1399 (powi_cost): New.
1400 (powi_as_mults_1): New.
1401 (powi_as_mults): New.
1402 (gimple_expand_builtin_powi): New.
1403 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1404 (gate_cse_sincos): Remove sincos/cexp restriction.
1405
1406 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1407
1408 PR target/3746
1409 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1410 mips-tdump native.
1411 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1412 * mips-tdump.c: Likewise.
1413
1414 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 PR target/49128
1417 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1418 add -mno-XXX. Handle FMA.
1419
1420 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1421
1422 PR rtl-optimization/48633
1423 * ira-build.c (loop_with_eh_edge_p): New function.
1424 (mark_loops_for_removal): Use it.
1425
1426 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1427
1428 PR rtl-optimization/48971
1429 * ira.c (setup_pressure_classes): Don't check register move cost
1430 for classes with one registers. Don't add pressure class if there
1431 is a pressure class with the same available hard registers.
1432 Check contains_reg_of_mode. Fix a typo in collecting
1433 temp_hard_regset. Ignore hard registers not belonging to a class.
1434
1435 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1436
1437 PR target/49133
1438 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1439
1440 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1441 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1442
1443 PR gcov-profile/48845
1444 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1445
1446 2011-05-24 Richard Guenther <rguenther@suse.de>
1447
1448 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1449 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1450 (gimple_types_compatible_p_1): Adjust.
1451 (iterative_hash_canonical_type): Do not bother about complete vs.
1452 incomplete types.
1453 (gimple_canonical_types_compatible_p): Likewise.
1454
1455 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1456
1457 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1458
1459 2011-05-24 Richard Guenther <rguenther@suse.de>
1460
1461 PR bootstrap/49078
1462 * gimple.c (gimple_register_canonical_type): Revert
1463 previous change.
1464 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1465 does not for a tree for the case where it matters. Cache
1466 pointer-type alias-sets.
1467
1468 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1469
1470 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1471 (OBJS): Remove options.o, opts-common.o and prefix.o.
1472 (OBJS-libcommon-target): New.
1473 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1474 (BACKEND): Include libcommon-target.a.
1475 (MOSTLYCLEANFILES): Include libcommon-target.a.
1476 (libcommon-target.a): New.
1477 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1478 prefix.o.
1479
1480 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1481
1482 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1483 parts of output shared with the driver.
1484 * optc-gen.awk: Don't generate parts of output not shared with the
1485 driver.
1486 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1487 * doc/options.texi (SourcerInclude): Mention options-save.c.
1488 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1489 (OBJS): Add options-save.o.
1490 (options-save.c, options-save.o): New.
1491 (options.o): Update dependencies.
1492 (gcc-options.o): Remove.
1493 (mostlyclean): Remove options-save.c.
1494
1495 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1496
1497 PR debug/49032
1498 * dbxout.c: Include cgraph.h.
1499 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1500 and without value expr, return NULL if no varpool node exists for
1501 it or if it is not needed.
1502 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1503
1504 PR c/49120
1505 * c-decl.c (start_decl): Convert expr to void_type_node.
1506
1507 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1508
1509 PR rtl-optimization/48826
1510 * emit-rtl.c (try_split): When splitting a call that is followed
1511 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1512
1513 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1514
1515 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1516 parameters passed in memory prefer using DECL_INCOMING_RTL over
1517 the pseudos it will be copied into.
1518
1519 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1520
1521 PR target/47315
1522 * config/i386/i386.c (ix86_option_override_internal): Save the
1523 initial options after checking vzeroupper.
1524
1525 2011-05-23 David Li <davidxl@google.com>
1526
1527 PR tree-optimization/48988
1528 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1529 Initialize has_valid_pred for each pred chain.
1530
1531 2011-05-23 Richard Guenther <rguenther@suse.de>
1532
1533 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1534 (iterative_hash_gimple_type): Always hash type names.
1535
1536 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1537
1538 * c-typeck.c (build_function_call_vec): Tweak call to
1539 check_function_arguments.
1540
1541 2011-05-23 Richard Guenther <rguenther@suse.de>
1542
1543 PR tree-optimization/49115
1544 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1545 is not necessarily carried out, do not claim it kills the ref.
1546 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1547
1548 2011-05-23 Richard Guenther <rguenther@suse.de>
1549
1550 PR middle-end/15419
1551 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1552 what pointer types we accept for folding.
1553
1554 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1555
1556 * gthr-gnat.c: Remove.
1557 * gthr-gnat.h: Remove.
1558 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1559 * config/t-freebsd (LIB2ADDEH): Likewise.
1560 * config/t-linux (LIB2ADDEH): Likewise.
1561 * config/t-sol2 (LIB2ADDEH): Likewise.
1562 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1563 * configure.ac (target_thread_file): Remove gnat handling.
1564 * configure: Regenerate.
1565 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1566
1567 2011-05-23 Tristan Gingold <gingold@adacore.com>
1568 Eric Botcazou <ebotcazou@adacore.com>
1569
1570 * gcov.c (create_file_names): If no object directory is specified,
1571 keep the directory of the file.
1572
1573 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574
1575 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1576 * configure: Regenerate.
1577
1578 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1579
1580 PR middle-end/48973
1581 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1582 failed and the comparison has a single bit signed type, use
1583 constm1_rtx instead of const1_rtx for true value.
1584 (do_store_flag): If ops->type is single bit signed type, disable
1585 signel bit test optimization and pass -1 instead of 1 as last
1586 parameter to emit_store_flag_force.
1587
1588 2011-05-23 Tom de Vries <tom@codesourcery.com>
1589
1590 PR target/45098
1591 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1592 function.
1593 (infer_loop_bounds_from_undefined): Use new function.
1594
1595 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1596
1597 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1598 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1599 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1600 and -O0 otherwise.
1601 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1602
1603 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1604
1605 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1606 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1607 returns true.
1608
1609 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1610
1611 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1612
1613 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1614
1615 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1616 UNSPEC_MOVE_PIC pattern.
1617
1618 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1619
1620 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1621 (sparc-*-rtems*): Likewise.
1622 (sparc64-*-elf*): Likewise.
1623 (sparc64-*-rtems*): Likewise.
1624 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1625 * config/sparc/t-crtin: New file.
1626 * config/sparc/t-sol2 (crti.o): Delete rule.
1627 (crtn.o): Likewise.
1628 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1629 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1630 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1631 (ENDFILE_SPEC): Add crtn.o.
1632
1633 2011-05-22 Tom de Vries <tom@codesourcery.com>
1634
1635 PR middle-end/48689
1636 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1637 CODE_CONTAINS_STRUCT (TS_COMMON).
1638
1639 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR middle-end/49029
1642 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1643 only after deciding which mode to use.
1644
1645 2011-05-22 Tom de Vries <tom@codesourcery.com>
1646
1647 PR target/45098
1648 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1649 for call to get_shiftadd_cost.
1650
1651 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1652
1653 PR target/49104
1654 * config/i386/cpuid.h (bit_MMXEXT): New define.
1655
1656 2011-05-22 Nick Clifton <nickc@redhat.com>
1657
1658 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1659 initialisation of non-existant args[2] element. Use args[] array
1660 not arg[] array to pass arguments to build_function_type_list.
1661
1662 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1663
1664 PR tree-optimization/49087
1665 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1666
1667 2011-05-21 Jason Merrill <jason@redhat.com>
1668
1669 PR c++/49092
1670 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1671 static storage duration.
1672
1673 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1674
1675 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1676 frame pointer.
1677
1678 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1679
1680 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1681 false if there are call-saved registers here...
1682 (sparc_can_use_return_insn_p): ...but here instead.
1683 (save_or_restore_regs): Fix thinko.
1684 (sparc_expand_prologue): Use current_function_is_leaf.
1685 (sparc_frame_pointer_required): Likewise.
1686
1687 2011-05-21 Nick Clifton <nickc@redhat.com>
1688
1689 PR target/49098
1690 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1691
1692 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1693
1694 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1695 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1696
1697 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1698
1699 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1700 * optc-gen.awk: Move common code to opt-read.awk.
1701 * opth-gen.awk: Likewise.
1702 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1703
1704 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1705
1706 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1707
1708 2011-05-20 Tom de Vries <tom@codesourcery.com>
1709
1710 PR target/45098
1711 * tree-ssa-loop-ivopts.c: Include expmed.h.
1712 (get_shiftadd_cost): New function.
1713 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1714
1715 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1716
1717 PR bootstrap/49086
1718 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1719 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1720
1721 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1722
1723 * Makefile.in: Update comment referring to $(OBJS-common).
1724
1725 2011-05-20 Ian Lance Taylor <iant@google.com>
1726
1727 * godump.c (go_output_typedef): Put enum constants in the macro
1728 hash table to avoid duplicate Go const definitions.
1729
1730 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1731
1732 * Makefile.in (LIBDEPS): Add libcommon.a.
1733 (LIBS): Likewise.
1734 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1735 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1736 pretty-print.o and version.o.
1737 (OBJS-libcommon): New.
1738 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1739 (BACKEND): Add libcommon.a.
1740 (MOSTLYCLEANFILES): Likewise.
1741 (libcommon.a): New.
1742 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1743 (cpp$(exeext)): Likewise.
1744 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1745 pretty-print.o and input.o.
1746 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1747 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1748 (errors.o): Remove.
1749 (mips-tfile): Don't explicitly use version.o.
1750 (mips-tdump): Likewise.
1751 (gcov.o): Depend on $(DIAGNOSTIC_H).
1752 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1753 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1754 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1755 * gcov-dump.c: Include intl.h and diagnostic.h.
1756 (main): Initialize diagnostics.
1757 * gcov.c: Include diagnostic.h.
1758 (fnotice): Remove.
1759 (main): Initialize diagnostics.
1760 * lto-wrapper.c: Include diagnostic.h.
1761 (main): Initialize diagnostics.
1762
1763 2011-05-20 Michael Matz <matz@suse.de>
1764
1765 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1766
1767 2011-05-20 Michael Matz <matz@suse.de>
1768 Richard Guenther <rguenther@suse.de>
1769
1770 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1771 use lto_streamer_cache_append directly instead of returning a VEC.
1772 (preload_common_node): Remove.
1773 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1774 track seen nodes.
1775 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1776
1777 2011-05-20 Richard Guenther <rguenther@suse.de>
1778
1779 PR tree-optimization/49079
1780 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1781 MEM_REFs correctly for the trailing array access detection.
1782 Special case constants the same way as decls for overall size
1783 constraining.
1784
1785 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1786
1787 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1788 argument expansion.
1789
1790 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1791
1792 PR tree-optimization/49073
1793 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1794 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1795 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1796
1797 2011-05-20 Richard Guenther <rguenther@suse.de>
1798
1799 PR middle-end/48849
1800 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1801 of pointer types the same way the middle-end does.
1802
1803 2011-05-20 Richard Guenther <rguenther@suse.de>
1804
1805 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1806 or pointer-to chains. Delay all fixup to uniquify_nodes.
1807
1808 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1809
1810 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1811 (fma4_fmaddsub): Likewise
1812
1813 2011-05-19 Jan Hubicka <jh@suse.cz>
1814
1815 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1816 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1817 (type_pair_cache): New static var.
1818 (lookup_type_pair): Use fixed sized custom hash; make inline.
1819 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1820 calls of lookup_type_pair.
1821 (print_gimple_types_stats): Remove cache stats.
1822 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1823 and gtc_ob.
1824
1825 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1826
1827 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1828 when TARGET_RDRND is active.
1829 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1830 Generate dummy SImode target register when target is NULL.
1831
1832 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1833
1834 * config/arm/arm-fpus.def: New.
1835 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1836 arm-fpus.def.
1837 * config/arm/arm-tables.opt: Regenerate.
1838 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1839 (arm_option_override): Don't decode FPU name to string here.
1840 * config/arm/arm.opt (mfpu=): Use Enum.
1841 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1842 Update dependencies.
1843
1844 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1845
1846 * collect2.c: Include diagnostic.h.
1847 (fatal_perror, fatal, error, fancy_abort): Remove.
1848 (main): Set progname. Call xmalloc_set_program_name and
1849 diagnostic_initialize.
1850 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1851 scan_libraries, resolve_lib_name): Call fatal_error instead of
1852 fatal and fatal_perror.
1853 * collect2.h (error, fatal, fatal_perror): Don't declare.
1854 * tlink.c: Include diagnostic-core.h.
1855 (recompile_files): Call fatal_error instead of fatal_perror.
1856 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1857 pretty-print.o and input.o.
1858 (collect2.o, tlink.o): Update dependencies.
1859
1860 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1861
1862 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1863
1864 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1865
1866 PR target/40483
1867 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1868 COMDAT group syntax, both SPARC and x86 variants.
1869 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1870 * configure: Regenerate.
1871 * config/sol2.h (TARGET_SOLARIS): Define.
1872 (PUSHSECTION_FORMAT): Remove.
1873 (SECTION_NAME_FORMAT): Define.
1874 * config/sol2.c: Include hashtab.h.
1875 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1876 expansion, using SECTION_NAME_FORMAT.
1877 (solaris_comdat_htab): New variable.
1878 (struct comdat_entry): Define.
1879 (comdat_hash): New function.
1880 (comdat_eq): New function.
1881 (solaris_elf_asm_comdat_section): New function.
1882 (solaris_define_comdat_signature): New function.
1883 (solaris_code_end): New function.
1884 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1885 (solaris_code_end): Declare.
1886 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1887 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1888 solaris_code_end.
1889 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1890 Remove ATTRIBUTE_UNUSED.
1891 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1892 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1893 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1894 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1895 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1896 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1897 (PUSHSECTION_FORMAT): Remove.
1898 (SECTION_NAME_FORMAT): Redefine.
1899
1900 2011-05-19 Kai Tietz <ktietz@redhat.com>
1901
1902 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1903 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1904 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1905
1906 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1907 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1908
1909 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1910
1911 2011-05-19 Richard Guenther <rguenther@suse.de>
1912
1913 PR middle-end/48985
1914 * tree-object-size.c (addr_object_size): If the pointed-to
1915 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1916
1917 2011-05-19 Richard Guenther <rguenther@suse.de>
1918
1919 * gimple.c (gimple_types_compatible_p_1): Compare names of
1920 the types themselves.
1921 (iterative_hash_gimple_type): And hash them that way.
1922 (gimple_register_type_1): If we register a main variant properly
1923 initialize the leader to ourselves.
1924
1925 2011-05-19 Tom de Vries <tom@codesourcery.com>
1926
1927 PR target/45098
1928 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1929 get_loop_invariant_expr_id.
1930 (get_loop_invariant_expr_id): Use get_expr_id.
1931 (parm_decl_cost): New function.
1932 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1933 Improve bound cost estimation. Use different inv_expr_id for elim and
1934 express cases.
1935
1936 2011-05-19 Tom de Vries <tom@codesourcery.com>
1937
1938 PR target/45098
1939 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1940 cost_base.cost == 0.
1941
1942 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1943
1944 PR target/49002
1945 * config/i386/sse.md
1946 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1947 load cast.
1948
1949 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1950
1951 PR tree-optimization/49039
1952 * tree-vrp.c (extract_range_from_binary_expr): For
1953 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1954 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1955
1956 2011-05-18 Tom de Vries <tom@codesourcery.com>
1957
1958 PR target/45098
1959 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1960
1961 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1962
1963 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1964 (*tls_global_dynamic_64): Ditto.
1965 (*tls_local_dynamic_base_32_gnu): Ditto.
1966 (*tls_local_dynamic_base_64): Ditto.
1967 (tls_initial_exec_64_sun): Ditto.
1968
1969 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1970
1971 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1972 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1973 bf592-none.
1974 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1975 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1976 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1977 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1978 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1979 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1980 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1981
1982 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1983
1984 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1985 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1986 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1987 target_thread_pointer, arm_structure_size_boundary, struct
1988 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1989 struct abi_name, arm_all_abis): Remove.
1990 (arm_option_override) Don't process most enumerated option values here.
1991 Don't process target_fpe_name here. Work with integer not string for
1992 structure size boundary; use separate diagnostics for each case.
1993 * config/arm/arm.h (enum float_abi_type, enum
1994 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1995 to arm-opts.h.
1996 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1997 arm_structure_size_boundary): Remove.
1998 * config/arm/arm.opt (mabi=): Use Enum and Init.
1999 (arm_abi_type): New Enum and EnumValue entries.
2000 (mfloat-abi=): Use Enum and Init.
2001 (float_abi_type): New Enum and EnumValue entries.
2002 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2003 (mfp16-format=): Use Enum and Init.
2004 (arm_fp16_format_type): New Enum and EnumValue entries.
2005 (mstructure-size-boundary=): Use UInteger and Init.
2006 (mtp=): Use Enum and Init.
2007 (arm_tp_type): New Enum and EnumValue entries.
2008
2009 2011-05-18 Richard Guenther <rguenther@suse.de>
2010
2011 PR tree-optimization/49018
2012 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2013 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2014 gimple_has_side_effects.
2015
2016 2011-05-18 Richard Guenther <rguenther@suse.de>
2017
2018 * gimple.c (gimple_register_type_1): New function, split out from ...
2019 (gimple_register_type): ... here. Avoid infinite recursion.
2020
2021 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2022
2023 PR tree-optimization/41881
2024 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2025 reduction_chains along with a macro for its access.
2026 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2027 (destroy_loop_vec_info): Free reduction chains.
2028 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2029 (vect_is_slp_reduction): New function.
2030 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2031 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2032 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2033 definition types for reduction chains.
2034 (vect_supported_load_permutation_p): Don't allow permutations for
2035 reduction chains.
2036 (vect_analyze_slp_instance): Support reduction chains.
2037 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2038 (vect_get_constant_vectors): Handle reduction chains.
2039 (vect_schedule_slp_instance): Mark the first statement of the
2040 reduction chain as reduction.
2041
2042 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2043
2044 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2045 names for group elements access.
2046 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2047 reduction chains as well. Remove data reference and interleaving
2048 related words from the fields names.
2049 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2050 elements access.
2051 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2052 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2053 vect_update_interleaving_chain, vect_same_range_drs,
2054 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2055 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2056 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2057 vect_analyze_group_access, vect_analyze_data_ref_access,
2058 vect_create_data_ref_ptr, vect_transform_strided_load,
2059 vect_record_strided_load_vectors): Likewise.
2060 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2061 vect_model_load_cost, vectorizable_store, vectorizable_load,
2062 vect_remove_stores, new_stmt_vec_info): Likewise.
2063 * tree-vect-slp.c (vect_build_slp_tree,
2064 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2065
2066 2011-05-18 Richard Guenther <rguenther@suse.de>
2067
2068 PR middle-end/48989
2069 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2070 operand verification.
2071 (verify_gimple_assign_binary): Likewise.
2072 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2073 to non-1-precision BOOLEAN_TYPEs.
2074
2075 2011-05-18 Tom de Vries <tom@codesourcery.com>
2076
2077 PR target/45098
2078 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2079
2080 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2081
2082 PR tree-optimization/49000
2083 * tree-ssa.c (execute_update_addresses_taken): Call
2084 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2085 be rewritten and decl has been marked for renaming, reset
2086 the debug stmt.
2087
2088 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2089
2090 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2091 enum_opts_set when testing if attributes have set -mfpmath=.
2092
2093 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2094
2095 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2096
2097 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2098
2099 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2100 info->entry with 0
2101 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2102 id.transform_lang_insert_block with NULL.
2103
2104 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2105
2106 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2107 (output_fp_compare): Change args 3 and 4 to bool.
2108 (ix86_expand_call): Change arg 6 to bool.
2109 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2110 (ix86_attr_length_vex_default): Change arg 3 to bool.
2111 * config/i386/i386.md: Update all uses.
2112 * config/i386/i386.c: Ditto.
2113 (ix86_flags_dependent): Change return type to bool.
2114
2115 2011-05-17 Richard Guenther <rguenther@suse.de>
2116
2117 * gimple.c (type_hash_pair_compare): Fix comparison.
2118
2119 2011-05-17 Richard Guenther <rguenther@suse.de>
2120
2121 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2122 case some more, fix final hash value of the non-singleton case.
2123
2124 2011-05-17 Richard Guenther <rguenther@suse.de>
2125
2126 PR bootstrap/49013
2127 Revert
2128 2011-05-16 Richard Guenther <rguenther@suse.de>
2129
2130 * gimple.c (gimple_types_compatible_p_1): Use names of the
2131 type itself, not its main variant.
2132 (iterative_hash_gimple_type): Likewise.
2133
2134 2011-05-17 Richard Guenther <rguenther@suse.de>
2135
2136 * gimple.c (gimple_register_canonical_type): Use the main-variant
2137 leader for computing the canonical type.
2138
2139 2011-05-17 Nick Clifton <nickc@redhat.com>
2140
2141 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2142 moves.
2143
2144 * config/rx/rx.md: Add peephole to remove redundant extensions
2145 after loads.
2146 (bitset_in_memory): Use rx_restricted_mem_operand.
2147 (bitinvert_in_memory): Likewise.
2148 (bitclr_in_memory): Likewise.
2149
2150 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2151 Nick Clifton <nickc@redhat.com>
2152
2153 * config/rx/rx.md: Add peepholes to match a register move followed
2154 by a comparison of the moved register. Replace these with an
2155 addition of zero that does both actions in one instruction.
2156
2157 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2158
2159 PR target/48986
2160 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2161 predicate to allow CONST_INT.
2162 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2163
2164 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2165
2166 * opts-common.c (opt_enum_arg_to_value): New.
2167 * opts.h (opt_enum_arg_to_value): Declare.
2168 * config/i386/i386.opt (fpmath): Remove.
2169 (mfpmath=): Use Enum, Init and Save.
2170 (fpmath_unit): New Enum and EnumValue entries.
2171 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2172 name for function fpmath state.
2173 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2174 * config/i386/i386.c: Include diagnostic.h.
2175 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2176 (ix86_target_string): Take enum fpmath_unit value instead of string.
2177 (ix86_debug_options): Update call to ix86_target_string.
2178 (ix86_option_override_internal): Don't process fpmath strings here.
2179 (x86_function_specific_save, ix86_function_specific_restore):
2180 Don't handle fpmath state specially.
2181 (ix86_function_specific_print): Pass fpmath state to
2182 ix86_target_string instead of printing in this function.
2183 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2184 Handle enum attributes.
2185 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2186 (ix86_valid_target_attribute_tree): Update option_strings
2187 handling. Handle fpmath as enum option.
2188 (ix86_can_inline_p): Update field names for function fpmath state.
2189 (ix86_expand_builtin): Update call to ix86_target_string.
2190 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2191 (ix86_fpmath): Remove.
2192 * config/i386/t-i386 (i386.o): Update dependencies.
2193
2194 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2195
2196 PR preprocessor/48677
2197 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2198 from decoded_options[0], not from itself.
2199
2200 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2201
2202 * config/i386/constraints.md (z): New constraint.
2203 * config/i386/i386.c (c): New mode attribute.
2204 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2205 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2206 constraint for operand 0.
2207 (*call_vzeroupper): Ditto.
2208 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2209 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2210 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2211 Use "lzm" constraint for operand 0.
2212 (*call_pop_vzeroupper): Ditto.
2213 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2214 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2215 constraint for operand 0.
2216 (*sibcall_vzeroupper): Ditto.
2217 (*sibcall_rex64_ms_sysv): Ditto.
2218 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2219 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2220 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2221 (*sibcall_pop_vzeroupper): Ditto.
2222 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2223 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2224 mode iterator. Use "<c>zm" constraint for operand 1.
2225 (*call_value_vzeroupper): Ditto.
2226 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2227 for operand 1.
2228 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2229 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2230 *call_value_pop_1. Use "lzm" constraint for operand 1.
2231 (*call_value_pop_vzeroupper): Ditto.
2232 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2233 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2234 mode iterator. Use "Uz" constraint for operand 1.
2235 (*sibcall_value_vzeroupper): Ditto.
2236 (*sibcall_value_rex64_ms_sysv): Ditto.
2237 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2238 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2239 constraint for operand 1.
2240 (*sibcall_value_pop_vzeroupper): Ditto.
2241 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2242 and "z" constraint for operand 2.
2243 (*tls_global_dynamic_32_gnu): Ditto.
2244 (*tls_local_dynamic_base_32_gnu): Ditto.
2245 (*tls_local_dynamic_base_64): Ditto.
2246 (*tls_local_dynamic_32_once): Ditto.
2247 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2248 Update all callers.
2249 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2250
2251 2011-05-16 Richard Guenther <rguenther@suse.de>
2252
2253 * gimple.c (gimple_types_compatible_p_1): Use names of the
2254 type itself, not its main variant.
2255 (iterative_hash_gimple_type): Likewise.
2256
2257 2011-05-16 Richard Guenther <rguenther@suse.de>
2258
2259 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2260 always visit pointer target and function result and argument types.
2261
2262 2011-05-16 Jason Merrill <jason@redhat.com>
2263
2264 PR c++/48999
2265 * tree-inline.c (copy_statement_list): Put back recursion.
2266
2267 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2268
2269 PR target/27663
2270 PR target/41076
2271 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2272 * config/avr/avr.md ("*ior<mode>qi.byte0",
2273 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2274
2275 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2276
2277 PR target/45099
2278 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2279 register is needed for a function argument.
2280
2281 2011-05-16 Richard Guenther <rguenther@suse.de>
2282
2283 * gimple.c (struct type_hash_pair): New type.
2284 (type_hash_pair_compare): New function.
2285 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2286
2287 2011-05-16 Revital Eres <revital.eres@linaro.org>
2288
2289 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2290
2291 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2292
2293 * config/i386/i386.md (floating point move splitters): Fix
2294 usage of standard_80387_constant_p.
2295 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2296
2297 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2298
2299 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2300
2301 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2302
2303 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2304 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2305 (tree_ssa_lim_finalize): Likewise.
2306
2307 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2308
2309 * config/i386/constraint.md (Yd, Yx): New register constraints.
2310 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2311 Yd conditional register constraint.
2312 (*movtf_internal): Use standard_sse_constant_opcode.
2313 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2314 Yx conditional register constraint.
2315 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2316 Yd conditional register constraint. Use standard_sse_constant_p to
2317 check for valid SSE constants and call standard_sse_constant_opcode to
2318 output SSE insn.
2319 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2320 constants and call standard_sse_constant_opcode to output SSE insn.
2321 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2322 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2323 optimize_size is set.
2324 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2325
2326 2011-05-14 Tobias Burnus <burnus@net-b.de>
2327
2328 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2329
2330 2011-05-13 Martin Jambor <mjambor@suse.cz>
2331
2332 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2333 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2334 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2335 (evaluate_conditions_for_ipcp_clone): Removed.
2336 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2337 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2338 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2339
2340 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2341
2342 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2343 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2344 lieu of MAY_HAVE_DEBUG_STMTS.
2345 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2346 debug statements if !MAY_HAVE_DEBUG_STMTS.
2347
2348 2011-05-13 Martin Thuresson <martint@google.com>
2349
2350 PR gcov-profile/47793
2351 * libgcov.c (gcov_exit): Support relative profile paths.
2352 * doc/invoke.texi (-fprofile-dir): Update for above change.
2353
2354 2011-05-13 Richard Guenther <rguenther@suse.de>
2355
2356 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2357 type-pair caching, do not compare hashes.
2358
2359 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2360
2361 PR middle-end/48965
2362 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2363 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2364
2365 2011-05-13 Kai Tietz <ktietz@redhat.com>
2366
2367 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2368 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2369 compatible type for TRUTH_NOT_EXPR.
2370
2371 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2372
2373 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2374 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2375 can_create_pseudo_p ().
2376
2377 2011-05-13 Richard Guenther <rguenther@suse.de>
2378
2379 PR lto/48978
2380 * gimple.c (iterative_hash_gimple_type): Revert change in
2381 pointer target and function result and argument hashing.
2382
2383 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2384
2385 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2386 (*movxf_internal_nointeger): Ditto.
2387 (*movdf_internal_rex64): Ditto.
2388 (*movdf_internal): Ditto.
2389 (*movdf_internal_nointeger): Ditto.
2390 (*movsf_internal): Ditto.
2391 (sincos splitters): Use can_create_pseudo ().
2392
2393 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2394
2395 * config/i386/i386-opts.h: New.
2396 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2397 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2398 ix86_section_threshold): Remove.
2399 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2400 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2401 OPT_mbranch_cost_.
2402 (ix86_option_override_internal): Don't decode strings for options
2403 other than -march=, -mtune= and -mfpmath=. Don't allow for
2404 __attribute__ uses in remaining diagnostics for options with
2405 string arguments. Don't check for integer arguments being negative.
2406 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2407 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2408 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2409 ix86_branch_cost, ix86_section_threshold): Remove.
2410 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2411 HeaderInclude.
2412 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2413 but not Var.
2414 (masm=): Use Enum and Init.
2415 (asm_dialect): New Enum and EnumValue entries.
2416 (mbranch-cost=): Use UInteger.
2417 (mlarge-data-threshold=): Use UInteger and Init.
2418 (mcmodel=): Use Enum and Init.
2419 (cmodel): New Enum and EnumValue entries.
2420 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2421 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2422 mregparm=): Use UInteger.
2423 (mstringop-strategy=): Use Enum and Init.
2424 (stringop_alg): New Enum and EnumValue entries.
2425 (mtls-dialect=): Use Enum and Init.
2426 (tls_dialect): New Enum and EnumValue entries.
2427 (mabi=): Use Enum and Init.
2428 (calling_abi): New Enum and EnumValue entries.
2429 (mveclibabi=): Use Enum and Init.
2430 (ix86_veclibabi): New Enum and EnumValue entries.
2431
2432 2011-05-13 Nick Clifton <nickc@redhat.com>
2433
2434 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2435 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2436
2437 2011-05-13 Kai Tietz <ktietz@redhat.com>
2438
2439 PR middle-end/48984
2440 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2441 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2442 (gimple_boolify): Check for cast for boolean_type_node instead for
2443 BOOLEAN_TYPE.
2444
2445 2011-05-13 Richard Guenther <rguenther@suse.de>
2446
2447 PR tree-optimization/48172
2448 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2449 multiplying by number of iterations for equal step.
2450 (vect_create_cond_for_alias_checks): Likewise.
2451
2452 2011-05-13 Andreas Schwab <schwab@redhat.com>
2453
2454 * configure.ac: Use AS_HELP_STRING throughout.
2455 * configure: Regenerate.
2456
2457 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2458
2459 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2460 (ix86_emit_restore_regs_using_mov): Likewise.
2461 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2462
2463 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2464
2465 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2466 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2467 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2468 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2469 RTX_OK_FOR_OLO10_P): ...here.
2470 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2471 SYMBOLIC_CONST.
2472
2473 2011-05-12 Kai Tietz <ktietz@redhat.com>
2474
2475 * gimplify.c (gimple_boolify): Re-boolify expression
2476 arguments even if expression type is of kind BOOLEAN_TYPE.
2477 (gimplify_boolean_expr): Removed.
2478 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2479 and XOR. Additional take care that we keep expression's type.
2480 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2481 of TRUTH_AND|OR|XOR_EXPR.
2482
2483 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2484
2485 PR tree-optimization/48975
2486 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2487 on all bbs here and free and clear ifc_bbs at the end.
2488
2489 2011-05-12 Richard Guenther <rguenther@suse.de>
2490
2491 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2492 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2493 until after simple checks.
2494 (gimple_types_compatible_p): Likewise.
2495 (iterative_hash_gimple_type): Always hash pointer targets
2496 and function return and argument types.
2497 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2498 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2499 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2500 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2501 completely in the simple compare section.
2502 (gimple_register_canonical_type): Query the cache again after
2503 registering.
2504
2505 2011-05-12 Richard Guenther <rguenther@suse.de>
2506
2507 PR tree-optimization/48172
2508 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2509 the number of iterations from the segment size calculation.
2510 (vect_create_cond_for_alias_checks): Adjust.
2511
2512 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2513
2514 PR debug/48967
2515 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2516 if validate_subreg fails.
2517
2518 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2519
2520 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2521 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2522 early.
2523
2524 2011-05-12 DJ Delorie <dj@redhat.com>
2525
2526 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2527 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2528 created builtin into rx_builtins array.
2529 (rx_builtin_decl): New function.
2530 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2531
2532 2011-05-12 DJ Delorie <dj@redhat.com>
2533 Nick Clifton <nickc@redhat.com>
2534
2535 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2536 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2537 (rx_is_legitimate_address): Add pre-decrement and post-increment
2538 addressing in HImode and QImode. Fix test for out of range
2539 REG+INT addressing.
2540 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2541 (rx_align_for_label): Test label before extracting its usage count.
2542 (rx_adjust_insn_lengths): Fix selection of insn codes.
2543 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2544
2545 2011-05-11 Jason Merrill <jason@redhat.com>
2546
2547 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2548
2549 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2550
2551 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2552 reindent the subsequent block.
2553
2554 2011-05-11 Satoru Takabayashi <satorux@google.com>
2555 Paul Pluzhnikov <ppluzhnikov@google.com>
2556
2557 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2558 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2559 * config.in: Add LINKER_HASH_STYLE.
2560 * configure.ac: Add --with-linker-hash-style.
2561 * configure: Regenerate.
2562
2563 2011-05-11 Richard Guenther <rguenther@suse.de>
2564
2565 PR middle-end/48964
2566 * gimple.c (iterative_hash_canonical_type): Fix typo.
2567
2568 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2569
2570 * config/i386/i386.c (legitimize_tls_address)
2571 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2572 expanders directly for TARGET_GNU2_TLS. Determine pic and
2573 __tls_get_addr symbol reference here. Update call to
2574 gen_tls_global_dynamic_{32,64} for added arguments.
2575 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2576 expanders directly for TARGET_GNU2_TLS. Determine
2577 __tls_get_addr symbol reference here. Update call to
2578 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2579 unique UNSPEC REG_EQUIV to libcall block.
2580 (ix86_tls_get_addr): Declare static.
2581 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2582 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2583 Do not determine pic and __tls_get_addr symbol reference here. Do not
2584 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2585 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2586 (tls_global_dynamic_64): Add operand 2. Do not determine
2587 __tls_get_addr symbol reference here. Do not call
2588 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2589 (tls_local_dynamic_base64): Ditto for operand 1.
2590
2591 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2592
2593 * function.c (expand_function_start): Initialize stack_check_probe_note
2594 only if the generic stack checking mechanism is used.
2595
2596 2011-05-11 Richard Guenther <rguenther@suse.de>
2597
2598 PR tree-optimization/15256
2599 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2600 (A & B) | C, combine (A op CST1) op CST2.
2601 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2602 visit assigns that have uses.
2603
2604 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2605
2606 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2607 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2608 (unpack_ts_type_common_value_fields): ...this. Update comment.
2609 (unpack_value_fields): Adjust for renaming.
2610 (lto_input_ts_type_tree_pointers): Split into...
2611 (lto_input_ts_type_common_tree_pointer): ...this and...
2612 (lto_input_ts_type_non_common_tree_pointers): ...this.
2613 (lto_input_tree_pointers): Adjust for above split.
2614 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2615 (pack_ts_type_common_value_fields): ...this. Update comment.
2616 (lto_output_ts_type_tree_pointers): Split into...
2617 (lto_output_ts_type_common_tree_pointers): ...this and...
2618 (lto_output_ts_type_non_common_tree_pointers): ...this.
2619 (lto_output_tree_pointers): Adjust for above split.
2620 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2621 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2622 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2623 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2624 Define.
2625 (struct tree_type): Split into...
2626 (struct tree_type_common: ...this and...
2627 (struct tree_type_with_lang_specific): ...this and...
2628 (struct tree_type_non_common): ...this. Adjust accessor macros
2629 accordingly.
2630 (TYPE_VALUES_RAW): Define.
2631 (union tree_node): Update for above changes.
2632 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2633 TS_TYPE_NON_COMMON.
2634 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2635 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2636 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2637 * treestructu.def (TS_TYPE): Remove.
2638 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2639 Define.
2640
2641 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2642
2643 PR debug/48159
2644 * tree-ssa.c (reset_debug_uses): New function.
2645 * tree-flow.h (reset_debug_uses): New prototype.
2646 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2647 * tree-loop-distribution.c (generate_loops_for_partition): Call
2648 reset_debug_uses on the stmts that will be removed. Keep around
2649 all debug stmts, don't count them as bits in partition bitmap.
2650 (generate_builtin): Don't count debug stmts or labels as bits in
2651 partition bitmap.
2652
2653 2011-05-11 Richard Guenther <rguenther@suse.de>
2654
2655 * gimple.c (gimple_type_hash_1): Merge with ...
2656 (gimple_type_hash): ... this.
2657 (gtc_visit): Remove mode parameter and simplify accordingly.
2658 (gimple_types_compatible_p_1): Likewise.
2659 (gimple_types_compatible_p): Likewise.
2660 (iterative_hash_gimple_type): Likewise.
2661 (visit): Likewise.
2662 (gimple_type_eq): Adjust.
2663
2664 2011-05-11 Revital Eres <revital.eres@linaro.org>
2665
2666 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2667 enters the branch create an anti edge in the opposite direction
2668 to prevent the creation of reg-moves.
2669 * modulo-sched.c: Adjust comment to reflect the fact we are
2670 scheduling closing branch.
2671 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2672 (stage_count): New field in struct partial_schedule.
2673 (calculate_stage_count): New function.
2674 (normalize_sched_times): Rename to reset_sched_times and handle
2675 incrementing the sched time of the nodes by a constant value
2676 passed as parameter.
2677 (duplicate_insns_of_cycles): Skip closing branch.
2678 (sms_schedule_by_order): Schedule closing branch.
2679 (ps_insn_find_column): Handle closing branch.
2680 (sms_schedule): Call reset_sched_times and adjust the code to
2681 support scheduling of the closing branch.
2682 (ps_insert_empty_row): Update calls to normalize_sched_times
2683 and rotate_partial_schedule functions.
2684
2685 2011-05-11 Richard Guenther <rguenther@suse.de>
2686
2687 PR middle-end/48953
2688 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2689
2690 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2691
2692 * opts.c (finish_options): Move warning settings from process_options.
2693 * toplev.c (process_options): Move warning settings to finish_options.
2694
2695 2011-05-11 Richard Guenther <rguenther@suse.de>
2696
2697 PR tree-optimization/18041
2698 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2699 (simplify_bitwise_binary): ... this. Handle operand conversions
2700 by applying them to the result instead.
2701 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2702
2703 2011-05-11 Richard Guenther <rguenther@suse.de>
2704
2705 * gimple.c (gimple_canonical_types_compatible_p): Split out
2706 from gimple_types_compatible_p and friends. Do not recurse
2707 to pointed-to types.
2708 (gimple_canonical_type_eq): Use it.
2709 (iterative_hash_canonical_type): Split out from
2710 iterative_hash_gimple_type and friends. Do not recurse
2711 to pointed-to types.
2712 (gimple_canonical_type_hash): Use it, allocate the hash here.
2713
2714 2011-05-11 Revital Eres <revital.eres@linaro.org>
2715
2716 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2717 recognizing doloop.
2718
2719 2011-05-11 Revital Eres <revital.eres@linaro.org>
2720
2721 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2722 instead of PREV_INSN.
2723
2724 2011-05-11 Revital Eres <revital.eres@linaro.org>
2725
2726 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2727 * loop-doloop.c (doloop_condition_get): Likewise.
2728 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2729 (doloop_end): New.
2730 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2731
2732 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2733
2734 * tree.def (CASE_LABEL_EXPR): Add an operand.
2735 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2736
2737 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2738
2739 * c-decl.c (c_override_global_bindings_to_false): Remove.
2740 (global_bindings_p): Don't check
2741 c_override_global_bindings_to_false.
2742 * c-tree.h (c_override_global_bindings_to_false): Remove.
2743 * c-typeck.c (composite_type): Don't set
2744 c_override_global_bindings_to_false.
2745
2746 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2747
2748 PR target/48857, 48495
2749 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2750 (VSX_MODE): Ditto.
2751 (VSX_MOVE_MODE): Ditto.
2752 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2753 VSX vector types. Add V2DImode.
2754 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2755 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2756 (MODES_TIEABLE_P): Ditto.
2757
2758 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2759 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2760 VSX_VECTOR_MODE.
2761 (init_cumulative_args): Ditto.
2762 (rs6000_function_arg_boundary): Ditto.
2763 (rs6000_function_arg_advance_1): Ditto.
2764 (rs6000_function_arg): Ditto.
2765 (rs6000_function_ok_for_sibcall): Ditto.
2766 (emit_frame_save): Ditto.
2767 (rs6000_function_value): Ditto.
2768 (rs6000_libcall_value): Ditto.
2769
2770 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2771
2772 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2773 i386/darwin-lib.h to $libgcc_tm_file.
2774 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2775
2776 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2777
2778 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2779
2780 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2781
2782 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2783 * config/rs6000/rs6000-tables.opt: New file (generated).
2784 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2785 rs6000/rs6000-tables.opt to extra_options.
2786 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2787 * config/rs6000/rs6000.c (rs6000_select): Remove.
2788 (processor_target_table): Move contents to rs6000-cpus.def.
2789 (darwin_rs6000_override_options): Check
2790 global_options_set.x_rs6000_cpu_index instead of
2791 rs6000_select[1].string.
2792 (rs6000_option_override_internal): Likewise.
2793 (rs6000_handle_option): Don't assert that global structures are in
2794 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2795 (rs6000_default_cpu): New variable.
2796 (rs6000_file_start): Set it instead of local default_cpu. Check
2797 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2798 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2799 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2800 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2801 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2802 rs6000_select): Remove.
2803 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2804 Remove.
2805 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2806 * config/rs6000/t-rs6000
2807 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2808 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2809 global_options_set.x_rs6000_cpu_index instead of
2810 rs6000_select[1].string.
2811 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2812 global_options_set.x_rs6000_cpu_index instead of
2813 rs6000_select[1].string.
2814
2815 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2816
2817 * config.gcc (libgcc_tm_file): Define instead of including files
2818 from ../../libgcc/config/ in tm_file.
2819 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2820 * configure: Regenerate.
2821 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2822 libgcc_tm.h, cs-libgcc_tm.h): New.
2823 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2824 (clean): Remove libgcc_tm.h.
2825 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2826 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2827 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2828
2829 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2830
2831 PR target/48896
2832 * config/avr/avr.c (avr_ret_register): Return unsigned int
2833 instead of int.
2834 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2835 it to avr_libcall_value.
2836 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2837 expand_expr.
2838 (avr_expand_binop_builtin): Ditto.
2839 (avr_expand_unop_builtin): Ditto.
2840
2841 2011-05-10 DJ Delorie <dj@redhat.com>
2842
2843 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2844 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2845 * config/rx/rx.c (rx_align_for_label): Add label and
2846 uses_threshold parameters. Do not align when the label is not
2847 used enough.
2848 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2849
2850 2011-05-10 Richard Guenther <rguenther@suse.de>
2851
2852 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2853 a series of conversions and apply foldings similar to what
2854 fold-const does.
2855 (tree_ssa_forward_propagate_single_use_vars): Call it.
2856
2857 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2858
2859 PR tree-optimization/48611
2860 PR tree-optimization/48794
2861 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2862 referenced from RESX or EH_DISPATCH arguments.
2863
2864 PR debug/48928
2865 * dfp.c (decimal_to_decnumber): Handle conversion from
2866 dconst{1,2,m1,half}.
2867
2868 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2869
2870 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2871 for !flag_prefer_avx128.
2872 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2873
2874 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2875
2876 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2877 (fold_ternary_loc): Use expr_location_or.
2878
2879 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2880
2881 PR debug/48853
2882 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2883 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2884 Pmode and mem_mode is not VOIDmode.
2885
2886 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2887
2888 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2889 TYPE_QUAL_RESTRICT): Convert to enum.
2890
2891 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2892
2893 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2894 (const_pow2_1_to_8_operand): Ditto.
2895 (const_pow2_1_to_128_operand): Ditto.
2896 (const_pow2_1_to_32768_operand): Ditto.
2897 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2898 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2899 in insn constraint to check integer value of operand 3.
2900 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2901
2902 (PINSR_MODE): New mode iterator.
2903 (sse2p4_1): New mode attribute.
2904 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2905 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2906 iterator. Use const_int_operand instead of
2907 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2908 exact_log2 in insn constraint to check integer value of operand 3.
2909
2910 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2911
2912 * config/i386/sse.md (blendbits): Remove mode attribute.
2913 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2914 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2915 Check integer value of operand 3 in insn constraint.
2916
2917 2011-05-09 Richard Guenther <rguenther@suse.de>
2918
2919 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2920 for diagnostics.
2921 (lto_symtab_merge): Likewise. Do not register types here.
2922 (lto_symtab_merge_decls_2): Likewise.
2923 (lto_symtab_merge_decls_1): Likewise.
2924 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2925 * gimple.c (enum gtc_mode): Declare.
2926 (gimple_types_compatible_p): Make static.
2927
2928 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2929
2930 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2931 temporary register to match Pmode.
2932
2933 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2934
2935 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2936 and *vec_concatv4si_1_avx.
2937
2938 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2939
2940 PR rtl-optimization/48927
2941 * ira-conflicts.c (commutative_constraint_p): Use
2942 recog_data.alternative_enabled_p to disable alternatives where
2943 "enabled" attribute is false.
2944 (get_dup_num): Ditto.
2945 * ira-lives.c (single_reg_class): Ditto.
2946 (ira_implicitly_set_insn_hard_regs): Ditto.
2947
2948 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2949
2950 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2951 (dataflow_set_preserve_mem_locs): Likewise.
2952
2953 2011-05-09 Philipp Thomas <pth@suse.de>
2954
2955 * config/mep/mep.c (mep_validate_vliw): Syntax description
2956 should not be translated.
2957
2958 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2959
2960 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2961 * config/mips/mips-tables.opt: New file (generated).
2962 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2963 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2964 MIPS_ARCH_OPTION_NATIVE): Define.
2965 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2966 mips-cpus.def.
2967 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2968 mips_parse_cpu): Remove.
2969 (mips_cpu_info_from_opt, mips_default_arch): New.
2970 (mips_handle_option): Don't assert that global structures are in
2971 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2972 (mips_option_override): Use new variables and functions to set
2973 state of these options. Use strcmp to check for individual CPU names.
2974 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2975 definition.
2976 * config/mips/mips.opt (march=): Use ToLower and Enum.
2977 (mips): Use ToLower, Enum and Var.
2978 (mtune=): Use ToLower and Enum.
2979 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2980
2981 2011-05-08 Jan Hubicka <jh@suse.cz>
2982
2983 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2984 Arrange type pairs to be UID ordered.
2985 (gimple_lookup_type_leader): Make inline.
2986
2987 2011-05-09 Nick Clifton <nickc@redhat.com>
2988
2989 PR target/48899
2990 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2991 PROCESSOR_DEFAULT.
2992
2993 PR target/48897
2994 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2995 variable 's'.
2996
2997 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2998
2999 * combine.c (simplify_comparison): Abstract out parts into...
3000 (simplify_compare_const): ... new function.
3001 (try_combine): Generalize parallel arithmetic/compare combining
3002 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3003
3004 2011-05-08 Jan Hubicka <jh@suse.cz>
3005
3006 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3007 (cgraph_create_virtual_clone): Call hooks once virtual clone
3008 is finished.
3009 * cgraph.h (cgraph_clone_node): Update prototype.
3010 * ipa-cp.c (ipcp_estimate_growth): Use
3011 estimate_ipcp_clone_size_and_time.
3012 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3013 * lto-cgraph.c (input_node): Update.
3014 * ipa-inline.c (recursive_inlining): Update.
3015 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3016 (evaluate_conditions_for_known_args): Break out from ...
3017 (evaluate_conditions_for_edge): ... here.
3018 (evaluate_conditions_for_ipcp_clone): New function.
3019 (inline_node_duplication_hook): Update clone summary based
3020 on parameter map.
3021 (estimate_callee_size_and_time): Rename to ...
3022 (estimate_node_size_and_time): take NODE instead of EDGE;
3023 take POSSIBLE_TRUTHS as argument.
3024 (estimate_callee_size_and_time): Update.
3025 (estimate_ipcp_clone_size_and_time): New function.
3026 (do_estimate_edge_time): Update.
3027
3028 2011-05-08 Richard Guenther <rguenther@suse.de>
3029
3030 PR middle-end/48908
3031 PR middle-end/48905
3032 * expmed.c (expand_shift_1): Compute adjusted constant shift
3033 amount manually.
3034
3035 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3036
3037 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3038
3039 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3040
3041 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3042
3043 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3044
3045 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3046
3047 2011-05-07 Jan Hubicka <jh@suse.cz>
3048
3049 * ipa-inline-transform.c (inline_call): Account when program size
3050 decreases.
3051 * ipa-inline.c (relative_time_benefit): New function.
3052 (edge_badness): Reorganize to be power 2 based; fix thinko when
3053 computing badness for negative growth; update comments to match
3054 reality; better dumps.
3055
3056 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3057
3058 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3059 type to bool and adjust comment.
3060 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3061 (fold_mathfn_compare): Remove calls to global_bindings_p.
3062 (fold_inf_compare): Likewise.
3063 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3064 * c-tree.h (global_bindings_p): Adjust prototype.
3065 * c-decl.c (global_bindings_p): Return bool and simplify.
3066
3067 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3068
3069 PR tree-optimization/48837
3070 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3071 when accumulator transformation is performed.
3072
3073 2011-05-06 Jan Hubicka <jh@suse.cz>
3074
3075 * i386.h (ix86_tune_indices): Add
3076 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3077 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3078 * i386.c (initial_ix86_tune_features): Add
3079 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3080 (software_prefetching_beneficial_p): Remove predicate.
3081 (ix86_option_override_internal): Use new macro.
3082
3083 2011-05-06 Jan Hubicka <jh@suse.cz>
3084
3085 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3086
3087 2011-05-06 Jan Hubicka <jh@suse.cz>
3088
3089 * cgraph.c (cgraph_add_thunk): Create real function node instead
3090 of alias node; finalize it and mark needed/reachale; arrange visibility
3091 to be right and add it into the corresponding same comdat group list.
3092 (dump_cgraph_node): Dump thunks.
3093 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3094 cgraph_function_with_gimple_body_p,
3095 cgraph_first_function_with_gimple_body,
3096 cgraph_next_function_with_gimple_body): New functions.
3097 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3098 New macros.
3099 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3100 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3101 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3102 devirtualization when optimizing.
3103 (verify_cgraph_node): Verify thunks.
3104 (cgraph_analyze_function): Analyze thunks.
3105 (cgraph_mark_functions_to_output): Output thunks only in combination
3106 with function they are assigned to.
3107 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3108 alias into normal node.
3109 (assemble_thunks): New functoin.
3110 (cgraph_expand_function): Use it.
3111 * lto-cgraph.c (lto_output_node): Stream thunks.
3112 (input_overwrite_node): Stream in thunks.
3113 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3114 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3115 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3116 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3117 (inline_analyze_function): Do not care about thunk jump functions.
3118 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3119 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3120 cgraph_function_with_gimple_body_p.
3121 * passes.c (do_per_function_toporder): Use
3122 cgraph_function_with_gimple_body_p.
3123 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3124 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3125 (function_called_by_processed_nodes_p): Likewise.
3126
3127 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3128
3129 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3130 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3131 entries.
3132 (mabi=): Replace with separate entries for mabi=altivec,
3133 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3134 mabi=ieeelongdouble and mabi=ibmlongdouble.
3135 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3136 check for -mabi=spe without SPE ABI support here.
3137 (rs6000_handle_option): Replace OPT_mabi_ handling with
3138 OPT_mabi_altivec and OPT_mabi_spe handling.
3139
3140 2011-05-06 Cary Coutant <ccoutant@google.com>
3141
3142 * dwarf2out.c (contains_subprogram_definition): New function.
3143 (should_move_die_to_comdat): Call it.
3144
3145 2011-05-06 Jeff Law <law@redhat.com>
3146
3147 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3148 remove_ctrl_stmt_and_useless_edges.
3149 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3150 (fixup_template_block, thread_single_edge): Likewise.
3151 (mark_threaded_blocks): Use THREAD_TARGET.
3152
3153 2011-05-06 Alan Modra <amodra@gmail.com>
3154
3155 PR target/48900
3156 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3157 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3158
3159 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3160
3161 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3162 constraint modifier to "r".
3163
3164 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3165
3166 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3167 fall through for OPT_mcmodel_.
3168
3169 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3170
3171 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3172 instruction sizes.
3173 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3174
3175 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3176
3177 PR target/47930
3178 * config/arm/arm.opt (marm): Document it.
3179 (mthumb): Reject negative variant.
3180
3181 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3182
3183 PR target/48898
3184 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3185 Fix typo in "ccvt" variable name.
3186
3187 2011-05-06 Tristan Gingold <gingold@adacore.com>
3188
3189 PR target/48895
3190 * config/vms/vms-ar.c (main): Remove cwd variable.
3191
3192 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3193
3194 PR debug/48902
3195 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3196
3197 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3198
3199 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3200 * gimplify.c (gimplify_switch_expr): Likewise.
3201 * omp-low.c (expand_omp_sections): Likewise.
3202 * tree-eh.c (lower_try_finally_switch): Likewise.
3203 (lower_eh_dispatch): Likewise.
3204 * tree.h (build_case_label): Declare.
3205 * tree.c (build_case_label): Define.
3206
3207 2011-05-05 Jason Merrill <jason@redhat.com>
3208
3209 PR c++/40975
3210 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3211 (copy_statement_list): Don't recurse.
3212 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3213 STATEMENT_LIST.
3214
3215 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3216
3217 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3218 through from -mfpu= handling.
3219 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3220
3221 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3222
3223 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3224 POST_MODIFY.
3225
3226 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3227
3228 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3229 for 11.31.
3230 (hppa[12]*-*-hpux11*): Ditto.
3231 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3232 * config/ia64/hpux-unix2003.h: New.
3233 * config/pa/pa-hpux1131.opt: New.
3234 * config/pa/pa-hpux1131.h: New.
3235 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3236 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3237 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3238
3239 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR debug/48853
3242 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3243 instead of mode as 3rd argument to recursive call.
3244 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3245 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3246 VOIDmode.
3247 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3248 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3249 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3250 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3251
3252 2011-05-05 Julian Brown <julian@codesourcery.com>
3253
3254 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3255 parenthesis in D-register case.
3256
3257 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3258
3259 * opt-functions.awk (var_type_struct): Handle Enum options.
3260 * optc-gen.awk: Don't check range of variables of character type.
3261 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3262 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3263 rs6000_sdata_name, rs6000_explicit_options): Remove.
3264 (rs6000_option_override_internal): Check for -malign-power here.
3265 Use global_options_set instead of rs6000_explicit_options.
3266 (rs6000_parse_fpu_option): Remove.
3267 (rs6000_handle_option): Access variables via opts and opts_set
3268 pointers. Use error_at and warning_at. Add fall-through
3269 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3270 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3271 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3272 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3273 here. Don't use rs6000_parse_fpu_option.
3274 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3275 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3276 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3277 (mrecip=): Use Var.
3278 (mspe): Use Var and Save.
3279 (mtraceback=): Use Enum and Var.
3280 (rs6000_traceback_type): New Enum and EnumValue entries.
3281 (mfloat-gprs=): Use Enum, Var and Save.
3282 (rs6000_float_gprs): New Enum and EnumValue entries.
3283 (mlong-double-): use Var and Save.
3284 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3285 (malign-): Use Enum and Var.
3286 (rs6000_alignment_flags): New Enum and EnumValue entries.
3287 (mfpu=): Use Enum.
3288 (fpu_type_t): New Enum and EnumValue entries.
3289 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3290 global_options_set instead of rs6000_explicit_options.
3291 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3292 global_options_set instead of rs6000_explicit_options.
3293 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3294 global_options_set instead of rs6000_explicit_options.
3295 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3296 global_options_set instead of rs6000_explicit_options.
3297 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3298 global_options_set instead of rs6000_explicit_options.
3299 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3300 global_options_set instead of rs6000_explicit_options.
3301 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3302 definition.
3303 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3304 global_options_set instead of rs6000_explicit_options.
3305 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3306 (rs6000_cmodel): New Enum and EnumValue entries.
3307 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3308 global_options_set instead of rs6000_explicit_options.
3309 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3310 (mtls-size=): Use Enum and Var.
3311 (rs6000_tls_size): New Enum and EnumValue entries.
3312
3313 2011-05-05 Michael Matz <matz@suse.de>
3314
3315 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3316 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3317 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3318 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3319 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3320 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3321 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3322 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3323 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3324 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3325 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3326 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3327 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3328 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3329 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3330 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3331
3332 2011-05-05 Richard Guenther <rguenther@suse.de>
3333
3334 * expmed.c (expand_variable_shift): Rename to ...
3335 (expand_shift_1): ... this. Take an expanded shift amount.
3336 For rotates recurse directly not building trees for the shift amount.
3337 (expand_variable_shift): Wrap around expand_shift_1.
3338 (expand_shift): Adjust.
3339
3340 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3341
3342 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3343
3344 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3345
3346 * tree.h (get_pending_sizes): Remove prototype.
3347 (put_pending_size): Likewise.
3348 (put_pending_sizes): Likewise.
3349 * stor-layout.c (pending_sizes): Delete.
3350 (get_pending_sizes): Likewise.
3351 (put_pending_size): Likewise.
3352 (put_pending_sizes): Likewise.
3353 (variable_size): Do not call put_pending_size and tidy up.
3354 * function.h (struct function): Remove dont_save_pending_sizes_p.
3355 * lto-streamer-in.c (input_function): Do not stream it.
3356 * lto-streamer-out.c (output_function): Likewise.
3357 * tree-inline.c (initialize_cfun): Do not copy it.
3358 * c-decl.c (store_parm_decls): Do not set it.
3359 * omp-low.c (create_task_copyfn): Likewise.
3360 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3361
3362 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3363
3364 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3365 conditions.
3366 (*movdf_internal): Ditto.
3367 (*movdf_internal_nointeger): Ditto.
3368 (*movsf_internal): Ditto.
3369
3370 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3371
3372 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3373 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3374 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3375 (c_variable_size): Remove.
3376 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3377 call put_pending_sizes.
3378 (get_parm_info): Add parameter expr. Use it to set
3379 arg_info->pending_sizes.
3380 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3381 get_pending_sizes.
3382 * c-parser.c (c_parser_parms_declarator): Update call to
3383 c_parser_parms_list_declarator.
3384 (c_parser_parms_list_declarator): Take parameter expr. Update
3385 call to push_parm_decl. Update recursive call. Don't call
3386 get_pending_sizes. Update calls to get_parm_info.
3387 (c_parser_objc_method_definition): Update calls to
3388 c_parser_objc_method_decl and objc_start_method_definition.
3389 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3390 (c_parser_objc_method_decl): Add parameter expr. Update call to
3391 grokparm.
3392 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3393 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3394 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3395
3396 2011-05-05 Michael Hope <michael.hope@linaro.org>
3397
3398 PR pch/45979
3399 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3400 __ARM_EABI__ hosts.
3401
3402 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3403
3404 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3405 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3406 (spu_output_mi_thunk): New function.
3407
3408 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3409
3410 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3411 targetm.asm_out.print_operand.
3412 * config/sol2.c: Include target.h.
3413
3414 2011-05-04 Jan Hubicka <jh@suse.cz>
3415
3416 * ipa-inline.c (reset_edge_caches): New function.
3417 (update_caller_keys): Add check_inlinablity_for; do not
3418 reset edge caches; remove now unnecesary loop.
3419 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3420 (update_all_callee_keys): Likewise.
3421 (inline_small_functions): Sanity check cache; update code
3422 recomputing it.
3423
3424 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3425
3426 PR rtl-optimization/47612
3427 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3428 as the last insn of the sequence to be moved.
3429
3430 2011-05-04 Tobias Burnus <burnus@net-b.de>
3431
3432 PR fortran/48864
3433 * doc/invoke.texi (Ofast): Document that it
3434 enables Fortran's -fno-protect-parens.
3435
3436 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3437
3438 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3439
3440 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3441
3442 * stor-layout.c (variable_size): Do not issue errors.
3443
3444 2011-05-04 Richard Guenther <rguenther@suse.de>
3445
3446 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3447 for array-ref indices.
3448 (tree_coverage_counter_addr): Likewise.
3449 (build_fn_info_type): Use size_int for index types.
3450 (build_gcov_info): Likewise.
3451
3452 2011-05-04 Richard Guenther <rguenther@suse.de>
3453
3454 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3455 to build_int_cst.
3456 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3457 for constructor indices.
3458 (push_init_level): Likewise.
3459
3460 2011-05-04 Richard Guenther <rguenther@suse.de>
3461
3462 * explow.c (promote_mode): Move variable declarations before code.
3463
3464 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3465
3466 * tree.h (build_function_type_array): Declare.
3467 (build_varargs_function_type_array): Declare.
3468 (build_function_type_vec, build_varargs_function_type_vec): Define.
3469 * tree.c (build_function_type_array_1): New function.
3470 (build_function_type_array): New function.
3471 (build_varargs_function_type_array): New function.
3472
3473 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3474
3475 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3476 before setting STMT_VINFO_TYPE.
3477
3478 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3479
3480 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3481 instead of spu_pass_by_reference.
3482
3483 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3484
3485 * calls.c (emit_library_call_value_1): Invoke
3486 promote_function_mode hook on libcall arguments.
3487 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3488 argument being NULL.
3489 * targhooks.c (default_promote_function_mode): Lisewise.
3490 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3491 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3492
3493 * doc/tm.texi: Document that TYPE argument might be NULL.
3494
3495 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3496
3497 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3498
3499 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3500
3501 From Bernd Schmidt
3502 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3503
3504 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3505
3506 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3507 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3508 Move ...
3509 * mips-tfile.c: ... here.
3510 Don't include coretypes.h, tm.h, filenames.h.
3511 (saber_stop): Remove definition and all calls.
3512 [__SABER__]: Remove.
3513 (__LINE__): Remove default.
3514 (Size_t, Ptrdiff_t): Remove definitions.
3515 Replace by size_t, ptrdiff_t.
3516 [!MIPS_DEBUGGING_INFO]: Remove.
3517 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3518 (progname): Add const.
3519 (STATIC): Remove.
3520 Replace all uses by static.
3521 (ALIGN_SYMTABLE_OFFSET): Remove default.
3522 * mips-tdump.c: Don't include coretypes.h, tm.h.
3523 Remove !MIPS_IS_STAB guard.
3524 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3525 $(TM_H), filenames.h dependencies.
3526 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3527
3528 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3529
3530 From Jie Zhang
3531 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3532 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3533
3534 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3535
3536 From Bernd Schmidt
3537 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3538 account and save/restore RETS.
3539 (PROFILE_BEFORE_PROLOGUE): Define.
3540 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3541 the push insn to use predecrement.
3542
3543 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3544
3545 From Jie Zhang
3546 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3547
3548 2011-05-04 Nick Clifton <nickc@redhat.com>
3549
3550 * config/mn10300/mn10300.c: Include cfgloop.h.
3551 (DUMP): New macro.
3552 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3553 Lcc or a FLcc insn into the instruction stream.
3554 (mn10300_block_contains_call): New function. Returns true if the
3555 given basic block contains a CALL insn.
3556 (mn10300_loop_contains_call_insn): New function. Returns true if
3557 the given loop contains a CALL insn.
3558 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3559 to use the SETLB and Lcc or FLcc insns.
3560 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3561 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3562 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3563 disable the SETLB optimization.
3564 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3565 __SETLB__ or __NO_SETLB__.
3566 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3567 (movsf_internal): Handle MDR register.
3568 (cmpsi): Make visible.
3569 (setlb): New pattern.
3570 (Lcc): New pattern.
3571 (FLcc): New pattern.
3572
3573 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3574
3575 PR target/48860
3576 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3577 for reg<->xmm moves.
3578 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3579 (vec_concatv2di_rex64_sse): Ditto.
3580 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3581 (*vec_extractv2di_1_rex64): Ditto.
3582
3583 Revert:
3584 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3585
3586 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3587 reg<->xmm moves.
3588 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3589
3590 2011-05-04 Richard Guenther <rguenther@suse.de>
3591
3592 * tree.h (int_const_binop): Remove notrunc argument.
3593 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3594 create integer constants that are properly truncated.
3595 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3596 (const_binop): Remove zero notrunc argument to int_const_binop.
3597 (size_binop_loc): Likewise.
3598 (fold_div_compare): Likewise.
3599 (maybe_canonicalize_comparison_1): Likewise.
3600 (fold_comparison): Likewise.
3601 (fold_binary_loc): Likewise.
3602 (multiple_of_p): Likewise.
3603 * expr.c (store_constructor): Likewise.
3604 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3605 (maybe_fold_stmt_addition): Likewise.
3606 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3607 * stor-layout.c (layout_type): Likewise.
3608 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3609 * tree-sra.c (build_ref_for_offset): Likewise.
3610 (build_user_friendly_ref_for_offset): Likewise.
3611 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3612 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3613 * tree-ssa-loop-niter.c (inverse): Likewise.
3614 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3615 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3616 * tree-switch-conversion.c (check_range): Likewise.
3617 (build_constructors): Likewise.
3618 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3619 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3620 (extract_range_from_assert): Likewise.
3621 (vrp_int_const_binop): Likewise.
3622 (extract_range_from_binary_expr): Likewise.
3623 (extract_range_from_unary_expr): Likewise.
3624 (check_array_ref): Likewise.
3625 (find_case_label_range): Likewise.
3626 (simplify_div_or_mod_using_ranges): Likewise.
3627 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3628 comparing case labels for merging.
3629
3630 2011-05-03 Mark Wielaard <mjw@redhat.com>
3631
3632 * dwarf2out.c (debug_str_hash_forced): Removed.
3633 (gen_label_for_indirect_string): Removed.
3634 (get_debug_string_label): Removed.
3635 (AT_string_form): Generate label directly.
3636 (output_indirect_string): Test indirect_string_node for
3637 DW_FORM_strp instead of checking label and refcount.
3638 (prune_indirect_string): Removed.
3639 (prune_unused_types): Don't check debug_str_hash_forced or
3640 call prune_indirect_string.
3641
3642 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3643
3644 PR other/48093
3645 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3646
3647 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3648
3649 PR debug/47994
3650 PR debug/47919
3651 * combine.c (try_combine): Skip debug insns at m_split tests.
3652
3653 2011-04-26 Mark Wielaard <mjw@redhat.com>
3654
3655 PR42288
3656 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3657 when info_section_emitted.
3658
3659 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3660
3661 * config/mips/mips-opts.h: New.
3662 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3663 to mips-opts.h.
3664 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3665 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3666 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3667 via opts pointer.
3668 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3669 mips-opts.h.
3670 (mips_abi, mips_code_readable): Don't declare.
3671 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3672 (mabi=): Use Enum and Var.
3673 (mips_abi): New Enum and EnumValue entries.
3674 (mcode-readable=): Use Enum and Var.
3675 (mips_code_readable_setting): New Enum and EnumValue entries.
3676 (mr10k-cache-barrier=): Use Enum and Var.
3677 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3678
3679 2011-05-03 Jan Hubicka <jh@suse.cz>
3680
3681 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3682 replace hash by pointer map.
3683 (cgraph_node_set_element_def, cgraph_node_set_element,
3684 const_cgraph_node_set_element, varpool_node_set_element_def,
3685 varpool_node_set_element, const_varpool_node_set_element): Remove.
3686 (free_cgraph_node_set, free_varpool_node_set): New function.
3687 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3688 * tree-emutls.c: Free varpool node set.
3689 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3690 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3691 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3692 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3693 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3694 Move here from ipa.c; implement using pointer_map
3695 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3696 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3697 debug_cgraph_node_set, varpool_node_set_new,
3698 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3699 dump_varpool_node_set, debug_varpool_node_set):
3700 Move to ipa-uitls.c.
3701 * passes.c (ipa_write_summaries): Update.
3702
3703 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3704
3705 From Mike Frysinger:
3706 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3707 bf542/bf544/bf547/bf548/bf549.
3708
3709 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3710
3711 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3712
3713 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3714
3715 From Bernd Schmidt:
3716 * config/bfin/bfin.md (MOVCC): New mode_macro.
3717 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3718 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3719 comments from generated assembly.
3720
3721 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3722
3723 From Bernd Schmidt
3724 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3725 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3726 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3727 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3728 * config/bfin/lib1funcs.asm (___muldi3): New function.
3729
3730 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3731
3732 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3733 build_function_type_list instead of build_function_type.
3734 Rearrange initialization of `args' to do so.
3735
3736 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3737
3738 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3739 instead of build_function_type.
3740
3741 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3742
3743 * config/rs6000/rs6000.c (spe_init_builtins): Call
3744 build_function_type_list instead of build_function_type.
3745 (paired_init_builtins, altivec_init_builtins): Likewise.
3746 (builtin_function_type): Likewise.
3747
3748 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3749
3750 * config/sh/sh.c (sh_media_init_builtins): Call
3751 build_function_type_list instead of build_function_type.
3752
3753 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3754
3755 * config/sparc/sparc.c (sparc_file_end): Call
3756 build_function_type_list instead of build_function_type.
3757
3758 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3759
3760 * config/alpha/alpha.c (alpha_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/xtensa/xtensa.c (xtensa_init_builtins): Call
3766 build_function_type_list instead of build_function_type.
3767
3768 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3769
3770 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3771 build_function_type_list instead of build_function_type.
3772 Delete `endlink' variable.
3773
3774 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3775
3776 * config/avr/avr.c (avr_init_builtins): Call
3777 build_function_type_list instead of build_function_type.
3778
3779 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3780
3781 * config/picochip/picochip.c (picochip_init_builtins): Call
3782 build_function_type_list instead of build_function_type.
3783 Delete `endlink' variable.
3784
3785 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3786
3787 * config/bfin/bfin.c (bfin_init_builtins): Call
3788 build_function_type_list instead of build_function_type.
3789
3790 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3791
3792 From Bernd Schmidt
3793 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3794 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3795
3796 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3797
3798 From Jie Zhang:
3799 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3800 libbffastfp overrides libgcc when -mfast-fp.
3801
3802 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3803
3804 Originally from Bernd Schmidt
3805 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3806 * config/bfin/bfin.c (override_options): Test it and error if
3807 TARGET_FDPIC.
3808
3809 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3810
3811 Originally From Bernd Schmidt
3812 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3813 FD-PIC.
3814
3815 2011-05-03 Jeff Law <law@redhat.com>
3816
3817 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3818 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3819 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3820 than accessing AUX field directly. Free the AUX field before
3821 clearing it.
3822 (thread_block, thread_through_loop_header): Likewise.
3823 (thread_single_edge, mark_threaded_blocks): Likewise.
3824 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3825 (register_jump_thread): Do not attempt to thread to a NULL edge.
3826
3827 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3828
3829 * function.c (init_function_start): Call decide_function_section.
3830 * varasm.c (decide_function_section): New function.
3831 (assemble_start_function): When not using
3832 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3833 or first_function_block_is_cold.
3834 * rtl.h (decide_function_section): Declare.
3835
3836 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3837 Jakub Jelinek <jakub@redhat.com>
3838
3839 PR target/48774
3840 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3841 only succeed if req_mode is the same as set_mode.
3842
3843 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3844
3845 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3846 * genemit.c (gen_exp): Handle RETURN.
3847 * emit-rtl.c (verify_rtx_sharing): Likewise.
3848 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3849 * rtl.c (copy_rtx): RETURN is shared.
3850 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3851 (ret_rtx): New.
3852 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3853 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3854 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3855 * config/cris/cris.c (cris_expand_return): Likewise.
3856 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3857 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3858 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3859 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3860 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3861 Likewise.
3862 * config/v850/v850.c (expand_epilogue): Likewise.
3863 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3864 * config/arm/arm.md (epilogue): Likewise.
3865 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3866 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3867 variable to ret_reg.
3868
3869 2011-05-03 Richard Guenther <rguenther@suse.de>
3870
3871 PR lto/48846
3872 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3873 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3874 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3875
3876 2011-05-03 Richard Guenther <rguenther@suse.de>
3877
3878 * c-decl.c (grokdeclarator): Instead of looking at
3879 TREE_OVERFLOW check if the constant fits in the index type.
3880
3881 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3882
3883 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3884 (vec_store_lanes<mode><mode>): Likewise.
3885
3886 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3887
3888 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3889 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3890 convert_optab_index values.
3891 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3892 * genopinit.c (optabs): Initialize the new optabs.
3893 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3894 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3895 (expand_STORE_LANES): New functions.
3896 * tree.h (build_array_type_nelts): Declare.
3897 * tree.c (build_array_type_nelts): New function.
3898 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3899 (vect_model_load_cost): Likewise.
3900 (vect_store_lanes_supported, vect_load_lanes_supported)
3901 (vect_record_strided_load_vectors): Declare.
3902 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3903 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3904 (vect_transform_strided_load): Split out statement recording into...
3905 (vect_record_strided_load_vectors): ...this new function.
3906 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3907 (write_vector_array, create_array_ref): New functions.
3908 (vect_model_store_cost): Add store_lanes_p argument.
3909 (vect_model_load_cost): Add load_lanes_p argument.
3910 (vectorizable_store): Try to use store-lanes functions for
3911 interleaved stores.
3912 (vectorizable_load): Likewise load-lanes and loads.
3913 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3914 to vect_model_store_cost.
3915 (vect_build_slp_tree): Likewise vect_model_load_cost.
3916
3917 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3918
3919 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3920 * hooks.c (hook_bool_mode_uhwi_false): New function.
3921 * target.def (array_mode_supported_p): New hook.
3922 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3923 * doc/tm.texi: Regenerate.
3924 * stor-layout.c (mode_for_array): New function.
3925 (layout_type): Use it.
3926 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3927 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3928
3929 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3930
3931 PR target/48723
3932 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3933 for -fstack-check if the size to allocate is negative.
3934
3935 2011-05-02 Lawrence Crowl <crowl@google.com>
3936
3937 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3938 (timevar_cond_start): New for starting a timer only when it is not
3939 already running.
3940 (timevar_cond_stop): New for stopping a timer when it was not already
3941 running.
3942
3943 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3944 (timevar_cond_start): New as above.
3945 (timevar_cond_stop): New as above.
3946
3947 * timevar.def: Add start/stop timers for compiler phases,
3948 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3949 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3950 and TV_PHASE_FINALIZE.
3951 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3952 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3953 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3954 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3955 Make unused TV_OVERLOAD into a start/stop timer.
3956
3957 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3958 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3959 to indicate that they are start/stop timers.
3960
3961 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3962 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3963 Move initialization to do_compile.
3964 (do_compile): Add initialization from above.
3965 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3966
3967 * c-decl.c (c_write_global_declarations): Add start/stop of
3968 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3969
3970 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3971 or TV_PARSE_INLINE, as appropriate.
3972 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3973 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3974
3975 2011-05-02 Jason Merrill <jason@redhat.com>
3976
3977 PR c++/40975
3978 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3979
3980 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3981
3982 PR c/35445
3983 * c-decl.c (finish_decl): Only create a composite if the types are
3984 compatible.
3985
3986 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3987
3988 * config/fr30/fr30-protos.h (Mmode): Don't define.
3989 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3990 definition where used.
3991 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3992 define. Expand definitions where used.
3993 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3994 Expand definitions where used.
3995 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3996 rx_function_arg, rx_function_arg_advance,
3997 rx_function_arg_boundary): Expand definitions of those macros.
3998 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3999 definition where used.
4000
4001 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4002
4003 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4004 reg<->xmm moves.
4005 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4006 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4007 with *movv2sf_internal_rex64_avx.
4008 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4009 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4010 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4011 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4012 "vex" in "prefix" attribute calculation.
4013 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4014
4015 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4016
4017 PR target/47951
4018 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4019 inputs match the output.
4020
4021 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4022
4023 PR target/47955
4024 * config/m68k/m68k.c (m68k_expand_prologue): Set
4025 current_function_static_stack_size.
4026
4027 2011-05-02 Jan Hubicka <jh@suse.cz>
4028
4029 * lto-streamer.c (lto_streamer_cache_insert_1,
4030 lto_streamer_cache_lookup, lto_streamer_cache_create,
4031 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4032 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4033
4034 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4035
4036 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4037 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4038 config/m68k/t-opts: New files.
4039 * config/m68k/m68k-tables.opt: New file (generated).
4040 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4041 extra_options and m68k/t-opts to tmake_file.
4042 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4043 (all_isas): Initialize using m68k-isas.def.
4044 (all_microarchs): Initialize using m68k-microarchs.def.
4045 (m68k_find_selection): Remove.
4046 (m68k_handle_option): Don't assert that global structures are in
4047 use. Use error_at. Access variables via opts pointer. Don't
4048 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4049 directly for -m68020-40 and -m68020-60.
4050 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4051 m68k_tune_entry here.
4052 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4053 to m68k-opts.h.
4054 (m68k_library_id_string): Remove declaration.
4055 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4056 (m68k_library_id_string): New Variable.
4057 (march=, mcpu=, mtune=): Use Enum and Var.
4058
4059 2011-05-02 Richard Guenther <rguenther@suse.de>
4060
4061 * varasm.c (output_constructor_regular_field): Compute zero-based
4062 index with double-ints. Make sure to ICE instead of producing
4063 wrong code.
4064 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4065 in asserts. Properly use a signed type.
4066
4067 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4068
4069 * config/i386/sse.md (V): New mode iterator.
4070 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4071 TARGET_SSE2.
4072 (V_256): Rename from AVX256MODE.
4073 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4074 condition to all users.
4075 (VF1): Ditto.
4076 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4077 condition to all users.
4078 (VF_128): Make V4SF mode unconditional.
4079 (VF_256): Rename from AVX256MODEF2P.
4080 (VI4F_128): Rename from SSEMODE4S.
4081 (VI8F_128): Rename from SSEMODE2D.
4082 (VI4F_256): Rename from AVX256MODE8P.
4083 (VI8F_256): Rename from AVX256MODE4P.
4084 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4085 (ssescalarmodesuffix): Remove SF and DF modes.
4086 (SSEMODE124): Remove.
4087 (SSEMODE1248): Ditto.
4088 (SSEMODEF2P): Ditto.
4089 (AVXMODEF2P): Ditto.
4090 (AVXMODEFDP): Ditto.
4091 (AVXMODEFSP): Ditto.
4092 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4093 unconditional.
4094 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4095 unconditional.
4096 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4097 xop_pcmov_<mode>256. Use V mode iterator.
4098
4099 Adjust RTX patterns globally for renamed mode attributes.
4100
4101 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4102
4103 * haifa-sched.c (sched_emit_insn): Emit insn before first
4104 non-scheduled insn. Inform back-end about new insn. Add
4105 new insn to scheduled_insns list.
4106
4107 2011-05-02 Richard Guenther <rguenther@suse.de>
4108
4109 PR tree-optimization/48822
4110 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4111 (process_scc): Indicate which iteration we start.
4112
4113 2011-05-02 Jan Hubicka <jh@suse.cz>
4114
4115 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4116 (lto_section_overrun): New.
4117 * lto-section-out.c (append_block): Rename to ...
4118 (lto_append_block): ... this one; export.
4119 (lto_output_1_stream): Move lto lto-streamer.h
4120 (lto_output_data_stream): Update.
4121 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4122 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4123 functions.
4124
4125 2011-05-02 Richard Guenther <rguenther@suse.de>
4126
4127 * tree.c (tree_code_counts): New global array.
4128 (record_node_allocation_statistics): Count individual tree codes.
4129 (dump_tree_statistics): Dump individual code stats.
4130
4131 2011-05-01 Jan Hubicka <jh@suse.cz>
4132
4133 * ipa-inline.c (caller_growth_limits): Fix thinko when
4134 looking for largest stack frame.
4135 * ipa-inline.h (dump_inline_summary): Declare.
4136 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4137 on stack usage.
4138 (dump_inline_summary): Export.
4139 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4140
4141 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4142
4143 * reginfo.c (memory_move_cost): Change rclass argument type form
4144 'enum reg_class' to reg_class_t.
4145 * reload.h (memory_move_cost): Update prototype.
4146 * postreload.c reload_cse_simplify_set): Change type dclass var to
4147 reg_class_t.
4148 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4149 Update prototype.
4150 (ira_allocate_and_set_costs): Change aclass argument type form
4151 'enum reg_class' to reg_class_t.
4152 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4153 Change aclass argument type to reg_class_t.
4154 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4155 to reg_class_t.
4156 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4157 memory_move_cost call.
4158
4159 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4160 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4161 Change type tmp var to reg_class_t.
4162
4163 2011-04-30 Jan Hubicka <jh@suse.cz>
4164
4165 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4166 inlining into function with flatten attribute.
4167 (want_inline_small_function_p): Be more realistic about inlining
4168 cold calls where callee size grows.
4169
4170 2011-04-30 Jan Hubicka <jh@suse.cz>
4171
4172 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4173 flags.
4174
4175 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4176
4177 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4178 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4179 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4180 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4181 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4182 (print_operand): Rename to...
4183 (sparc_print_operand): ...this. Make static. Adjust
4184 sparc_print_operand function call.
4185 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4186 functions.
4187
4188 2011-04-30 Jan Hubicka <jh@suse.cz>
4189
4190 PR middle-end/48752
4191 * ipa-inline.c (early_inliner): Disable when doing late
4192 addition of function.
4193
4194 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4195
4196 * dwarf2out.c (get_address_mode): New inline.
4197 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4198 if not dwarf_strict emit
4199 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4200 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4201 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4202 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4203 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4204 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4205 mem_loc_descriptor callers.
4206 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4207 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4208 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4209 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4210 (base_types): New variable.
4211 (get_base_type_offset, calc_base_type_die_sizes,
4212 base_type_for_mode, mark_base_types, base_type_cmp,
4213 move_marked_base_types): New functions.
4214 (calc_die_sizes): Assert that die_offset is 0 or equal to
4215 next_die_offset.
4216 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4217 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4218 callers. If not dwarf_strict, call mem_loc_descriptor even for
4219 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4220 (gen_subprogram_die): Don't give up on call site parameters
4221 with non-integral or large integral modes. Adjust
4222 mem_loc_descriptor callers.
4223 (prune_unused_types): Call prune_unused_types_mark on base_types
4224 vector entries.
4225 (resolve_addr): Call mark_base_types.
4226 (dwarf2out_finish): Call move_marked_base_types.
4227
4228 PR tree-optimization/48809
4229 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4230 type.
4231 (gen_inbound_check): Don't compute index_expr - range_min in utype
4232 again, instead reuse SSA_NAME initialized in build_arrays.
4233 Remove two useless gsi_for_stmt calls.
4234
4235 2011-04-29 Jeff Law <law@redhat.com>
4236
4237 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4238
4239 2011-04-29 Martin Jambor <mjambor@suse.cz>
4240
4241 * cgraph.h (cgraph_postorder): Remove declaration.
4242 * ipa-utils.h (ipa_free_postorder_info): Declare.
4243 (ipa_reverse_postorder): Likewise.
4244 * cgraphunit.c: Include ipa-utils.h.
4245 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4246 * ipa-inline.c: Include ipa-utils.h.
4247 (ipa_inline): Update call to ipa_reverse_postorder.
4248 * ipa-pure-const.c (propagate_pure_const): Update call to
4249 ipa_reduced_postorder and ipa_print_order. Call
4250 ipa_free_postorder_info to clean up.
4251 (propagate_nothrow): Likewise.
4252 * ipa-reference.c (propagate): Removed a useless call to
4253 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4254 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4255 * ipa.c: Include ipa-utils.h.
4256 (ipa_profile): Update call to ipa_reverse_postorder.
4257 (cgraph_postorder): Moved to...
4258 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4259 (ipa_utils_print_order): Renamed to ipa_print_order.
4260 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4261 comments.
4262 (ipa_free_postorder_info): New function.
4263 * passes.c: Include ipa-utils.h.
4264 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4265 (ipa_write_summaries): Likewise.
4266 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4267 (cgraphunit.o): Likewise.
4268 (ipa.o): Likewise.
4269 (ipa-inline.o): Likewise.
4270
4271 2011-04-29 Jan Hubicka <jh@suse.cz>
4272
4273 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4274 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4275 * ipa-inline.h (clause_t): Turn into unsigned int.
4276 * ipa-inline-analysis.c (add_clause): Do more simplification.
4277 (and_predicates): Shortcut more cases.
4278 (predicates_equal_p): Move forward; check that clauses are properly
4279 ordered.
4280 (or_predicates): Shortcut more cases.
4281 (edge_execution_predicate): Rewrite as...
4282 (set_cond_stmt_execution_predicate): ... this function; handle
4283 __builtin_constant_p.
4284 (set_switch_stmt_execution_predicate): New .
4285 (compute_bb_predicates): New.
4286 (will_be_nonconstant_predicate): Update TODO.
4287 (estimate_function_body_sizes): Use compute_bb_predicates
4288 and free them later, always try to estimate if stmt is constant.
4289 (estimate_time_after_inlining, estimate_size_after_inlining):
4290 Gracefully handle optimized out edges.
4291 (read_predicate): Fix off by one error.
4292
4293 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4294
4295 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4296
4297 2011-04-27 Xinliang David Li <davidxl@google.com>
4298
4299 * tree-profile.c (init_ic_make_global_vars): Set
4300 tls attribute on ic vars.
4301 * coverage.c (coverage_end_function): Initialize
4302 function_list with zero.
4303
4304 2011-04-29 Richard Guenther <rguenther@suse.de>
4305
4306 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4307 for the type of the result.
4308 (fold_builtin_isascii): Likewise.
4309 (fold_builtin_toascii): Use integer_type_node where appropriate.
4310 (fold_builtin_logb): Likewise.
4311 (fold_builtin_frexp): Likewise.
4312 (fold_builtin_strstr): Likewise.
4313 (fold_builtin_strpbrk): Likewise.
4314 (fold_builtin_fputs): Likewise.
4315 (fold_builtin_sprintf): Likewise.
4316 (fold_builtin_snprintf): Likewise.
4317 (fold_builtin_printf): Likewise.
4318 (do_mpfr_remquo): Use a proper type for the assigned constant.
4319 (do_mpfr_lgamma_r): Likewise.
4320 * dwarf2out.c (resolve_one_addr): Use size_int.
4321 * except.c (init_eh): Likewise.
4322 (assign_filter_values): Use integer_type_node for filter values.
4323 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4324 indices.
4325 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4326 for EH region numbers.
4327 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4328 for the shift amount.
4329
4330 2011-04-29 Richard Guenther <rguenther@suse.de>
4331
4332 * expr.h (expand_shift): Rename to ...
4333 (expand_variable_shift): ... this.
4334 (expand_shift): Take a constant shift amount.
4335 * expmed.c (expand_shift): Rename to ...
4336 (expand_variable_shift): ... this.
4337 (expand_shift): New wrapper around expand_variable_shift.
4338 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4339 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4340 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4341 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4342 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4343 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4344 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4345 emit_store_flag_1, emit_store_flag): Likewise.
4346 * builtins.c (expand_builtin_signbit): Likewise.
4347 * calls.c (load_register_parameters): Likewise.
4348 * function.c (assign_parm_setup_block): Likewise.
4349 * lower-subreg.c (resolve_shift_zext): Likewise.
4350 * optabs.c (widen_bswap, expand_abs_nojump,
4351 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4352 * spu/spu.c (spu_expand_extv): Likewise.
4353 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4354
4355 2011-04-29 Richard Guenther <rguenther@suse.de>
4356
4357 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4358 for the remapped region number.
4359 * predict.c (build_predict_expr): Use integer_type_node for the
4360 predict kind.
4361 * fold-const.c (fold_binary_loc): Use integer_type_node for
4362 the shift amount. Use a proper type for the PLUS_EXPR operand.
4363
4364 2011-04-29 Michael Matz <matz@suse.de>
4365
4366 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4367 other trees that just builtins.
4368 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4369
4370 2011-04-29 Richard Guenther <rguenther@suse.de>
4371
4372 * tree-nested.c (get_trampoline_type): Use size_int.
4373 (get_nl_goto_field): Likewise.
4374 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4375 for all indexes.
4376 (lower_eh_constructs_2): Likewise.
4377 (lower_resx): Likewise.
4378 (lower_eh_dispatch): Likewise.
4379 * tree-mudflap.c (mf_build_string): Use size_int.
4380 (mudflap_register_call): Use integer_type_node for the flag.
4381 (mudflap_enqueue_constant): Use size_int.
4382 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4383 instead of rebuilding it.
4384
4385 2011-04-29 Richard Guenther <rguenther@suse.de>
4386
4387 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4388 Handle OBJ_TYPE_REF.
4389 (find_func_aliases_for_call): Use it more consistently.
4390
4391 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4392
4393 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4394 (rank_for_schedule): Use it.
4395 (schedule_block): Set it.
4396
4397 2011-04-28 David Li <davidxl@google.com>
4398
4399 * tree.c (crc32_string): Use crc32_byte.
4400 (crc32_byte): New function.
4401 * tree.h (crc32_byte): New function.
4402 * gcov.c (read_graph_file): Handle new cfg_cksum.
4403 (read_count_file): Ditto.
4404 * profile.c (instrument_values): Ditto.
4405 (get_exec_counts): Ditto.
4406 (read_profile_edge_counts): Ditto.
4407 (compute_branch_probabilities): Ditto.
4408 (compute_value_histograms): Ditto.
4409 (branch_prob): Ditto.
4410 (end_branch_prob): Ditto.
4411 * coverage.c (read_counts_file): Ditto.
4412 (get_coverage_counts): Ditto.
4413 (tree_coverage_counter_addr): Ditto.
4414 (coverage_checksum_string): Ditto.
4415 (coverage_begin_output): Ditto.
4416 (coverage_end_function): Ditto.
4417 (build_fn_info_type): Ditto.
4418 (build_fn_info_value): Ditto.
4419 * libgcov.c (gcov_exit): Ditto.
4420 * gcov-dump.c (tag_function): Ditto.
4421 (compute_checksum): Remove.
4422
4423 2011-04-29 Alan Modra <amodra@gmail.com>
4424
4425 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4426 unspec plus offset. Tidy macho code.
4427
4428 2011-04-29 Martin Jambor <mjambor@suse.cz>
4429
4430 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4431 node instead of a decl. Update all callers.
4432 * cgraph.h: Update declaration.
4433
4434 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4435
4436 PR tree-optimization/48765
4437 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4438 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4439 to indicate if loop aware SLP is being used. Scan the statements
4440 and update the vectorization factor according to the type of
4441 vectorization before statement analysis.
4442 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4443 pass it to vect_analyze_loop_operations.
4444 (vectorizable_reduction): Set number of copies to 1 in case of pure
4445 SLP statement.
4446 * tree-vect-stmts.c (vectorizable_conversion,
4447 vectorizable_assignment, vectorizable_shift,
4448 vectorizable_operation, vectorizable_type_demotion,
4449 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4450 Likewise.
4451 (vectorizable_condition): Move the check that it is not SLP
4452 vectorization before the number of copies check.
4453 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4454 to vectorize the loop using SLP.
4455
4456 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4457
4458 PR middle-end/48597
4459 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4460 inline asm.
4461
4462 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4463
4464 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4465 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4466 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4467 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4468 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4469 linux*.h headers.
4470 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4471 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4472 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4473 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4474 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4475 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4476 REG_NAME.
4477 * config/i386/linux.h (REG_NAME): Don't define.
4478 * config/i386/linux64.h (REG_NAME): Don't define.
4479 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4480 Undefine before defining.
4481
4482 2011-04-28 Jan Hubicka <jh@suse.cz>
4483
4484 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4485 nonconstant_names array.
4486 (estimate_function_body_sizes): Build nonconstant_names array; handle
4487 BUILT_IN_CONSTANT_P.
4488
4489 2011-04-28 Richard Guenther <rguenther@suse.de>
4490
4491 PR bootstrap/48804
4492 Revert
4493 2011-04-28 Richard Guenther <rguenther@suse.de>
4494
4495 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4496 as late as possible.
4497
4498 2011-04-28 Richard Guenther <rguenther@suse.de>
4499
4500 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4501 (debug_constraint): Do it here.
4502 (dump_constraints): And here.
4503 (rewrite_constraints): And here.
4504 (dump_constraint_edge): Remove.
4505 (dump_constraint_graph): Rewrite to produce DOT output.
4506 (solve_constraints): Build succ graph as late as possible.
4507 Dump constraint graphs before and after solving.
4508
4509 2011-04-28 Richard Guenther <rguenther@suse.de>
4510
4511 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4512 New function split out from ...
4513 (find_func_aliases): ... here. Call it.
4514 (find_func_aliases_for_call): Likewise.
4515
4516 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4517
4518 * internal-fn.h (internal_fn_name_array): Declare.
4519 (internal_fn_flags_array): Likewise.
4520
4521 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4522
4523 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4524 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4525 Move from sse.md.
4526 (ssemodefsuffix): Remove.
4527 (ssevecmodesuffix): New mode attribute.
4528 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4529 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4530 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4531 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4532 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4533 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4534 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4535 ssemodesuffix mode attribute.
4536 (float splitters): Use ssevecmodesuffix mode attribute.
4537 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4538 (sseinsmode): Rename from avxvecmode.
4539 (avxsizesuffix): Rename from avxmodesuffix.
4540 (sseintvecmode): Rename from avxpermvecmode.
4541 (ssedoublevecmode): Rename from ssedoublesizemode.
4542 (ssehalfvecmode): Rename from avxhalfvecmode.
4543 (ssescalarmode): Rename from avxscalarmode.
4544 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4545 templates for ssemodesuffix mode attribute.
4546 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4547 mode attribute.
4548
4549 Adjust RTX patterns globally for renamed mode attributes.
4550
4551 2011-04-27 Jan Hubcika <jh@suse.cz>
4552
4553 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4554 * ipa-inline-analysis.c: Include alloc-pool.h.
4555 (edge_predicate_pool): New.
4556 (trye_predicate_p): New function
4557 (false_predicate_p): New function.
4558 (add_clause): Sanity check that false clauses are "optimized";
4559 never add clauses to predicate that is already known to be false.
4560 (and_predicate): Use flase_predicate_p.
4561 (evaulate_predicate): Rename to ...
4562 (evaluate_predicate): ... this one; update all callers; assert
4563 that false is not listed among possible truths.
4564 (dump_predicate): Use true_predicate_p.
4565 (account_size_time): Use false_predicate_p.
4566 (evaulate_conditions_for_edge): Rename to ...
4567 (evaluate_conditions_for_edge) ... this one.
4568 (edge_set_predicate): New function.
4569 (inline_edge_duplication_hook): Duplicate edge predicates.
4570 (inline_edge_removal_hook): Free edge predicates.
4571 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4572 (dump_inline_summary): Update.
4573 (estimate_function_body_sizes): Set edge predicates.
4574 (estimate_calls_size_and_time): Handle predicates.
4575 (estimate_callee_size_and_time): Update.
4576 (remap_predicate): Add toplev_predicate; update comment.
4577 (remap_edge_predicates): New function.
4578 (inline_merge_summary): Compute toplev predicate; update.
4579 (read_predicate): New function.
4580 (read_inline_edge_summary): Use it.
4581 (inline_read_section): Likewise.
4582 (write_predicate): New function.
4583 (write_inline_edge_summary): Use it.
4584 (inline_write_summary): Likewise.
4585 (inline_free_summary): Free alloc pool and edge summary vec.
4586
4587 2011-04-27 Richard Guenther <rguenther@suse.de>
4588
4589 * tree-ssa-structalias.c (changed_count): Remove.
4590 (changed): Use a bitmap.
4591 (unify_nodes): Adjust.
4592 (do_sd_constraint): Likewise.
4593 (do_ds_constraint): Likewise.
4594 (do_complex_constraint): Likewise.
4595 (solve_graph): Likewise.
4596
4597 2011-04-27 Jan Hubicka <jh@suse.cz>
4598
4599 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4600
4601 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4602
4603 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4604 (avx_vperm2f128_*_operand): Ditto.
4605 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4606 Use avx_vpermilp_parallel in insn condition.
4607 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4608 Use avx_vperm2f128_parallel in insn condition.
4609
4610 2011-04-27 Richard Guenther <rguenther@suse.de>
4611
4612 * Makefile.in (tree-ssa-structalias.o): Remove
4613 gt-tree-ssa-structalias.h dependency.
4614 (GTFILES): Remove tree-ssa-structalias.c.
4615 * tree.c (allocate_decl_uid): New function.
4616 (make_node_stat): Use it.
4617 (copy_node_stat): Likewise.
4618 * tree.h (allocate_decl_uid): Declare.
4619 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4620 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4621 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4622 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4623 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4624 (struct heapvar_map): Likewise.
4625 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4626 heapvar_insert): Likewise.
4627 (make_heapvar_for): Rename to ...
4628 (make_heapvar): ... this. Simplify.
4629 (fake_var_decl_obstack): New global var.
4630 (build_fake_var_decl): New function.
4631 (make_constraint_from_heapvar): Adjust.
4632 (handle_lhs_call): Likewise.
4633 (create_function_info_for): Likewise.
4634 (intra_create_variable_infos): Likewise.
4635 (init_alias_vars): Allocate fake_var_decl_obstack.
4636 (init_alias_heapvars, delete_alias_heapvars): Remove.
4637 (compute_points_to_sets): Do not call init_alias_heapvars.
4638 (ipa_pta_execute): Likewise.
4639 (delete_points_to_sets): Free fake_var_decl_obstack.
4640
4641 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4642
4643 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4644 (si_from_UTItype, si_to_UTItype): New functions.
4645 (__udivmodti4): Use them to implement type-punning.
4646 * config/spu/multi3.c (union qword_TItype): New data type.
4647 (si_from_TItype, si_to_TItype): New functions.
4648 (__multi3): Use them to implement type-punning.
4649
4650 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4651
4652 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4653
4654 2011-04-27 Jan Hubicka <jh@suse.cz>
4655
4656 * ipa-prop.c (function_insertion_hook_holder): New holder.
4657 (ipa_add_new_function): New function.
4658 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4659 Register/deregister holder.
4660
4661 2011-04-27 Richard Guenther <rguenther@suse.de>
4662
4663 PR tree-optimization/48772
4664 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4665
4666 2011-04-27 Richard Guenther <rguenther@suse.de>
4667
4668 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4669 TARGET_MEM_REF handling.
4670
4671 2011-04-27 Nick Clifton <nickc@redhat.com>
4672
4673 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4674 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4675 (REG_CLASS_NAMES): Likewise.
4676 (REG_CLASS_CONTENTS): Likewise.
4677 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4678 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4679 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4680 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4681 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4682 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4683 duplicate register classes.
4684 (frv_class_likely_spilled_p): Likewise.
4685 (frv_register_move_cost): Likewise.
4686
4687 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4688 end of the regno_reg_class array.
4689
4690 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4691
4692 PR c/48742
4693 * c-typeck.c (build_binary_op): Don't wrap arguments if
4694 int_operands is true.
4695
4696 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4697
4698 PR target/48767
4699 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4700 targetm.calls.must_pass_in_stack for void type.
4701
4702 2011-04-26 Jan Hubicka <jh@suse.cz>
4703
4704 * cgraphbuild.c (build_cgraph_edges): Update call
4705 of cgraph_create_edge and cgraph_create_indirect_edge.
4706 * cgraph.c (cgraph_create_edge_including_clones,
4707 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4708 cgraph_update_edges_for_call_stmt_node): Do not take nest
4709 argument; do not initialize call_stmt_size/time.
4710 (dump_cgraph_node): Do not dump nest.
4711 (cgraph_clone_edge): Do not take loop_nest argument;
4712 do not propagate it; do not clone call_stmt_size/time.
4713 (cgraph_clone_node): Likewise.
4714 (cgraph_create_virtual_clone): Update.
4715 * cgraph.h (struct cgraph_edge): Remove
4716 call_stmt_size/call_stmt_time/loop_nest.
4717 (cgraph_create_edge, cgraph_create_indirect_edge,
4718 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4719 prototype.
4720 * tree-emutls.c (gen_emutls_addr): Update.
4721 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4722 loop_nest; handle indirect calls, too.
4723 (clone_inlined_nodes): Do not care about updating inline summaries.
4724 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4725 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4726 stream call_stmt_size/call_stmt_time/loop_nest.
4727 * ipa-inline.c (edge_badness): Update.
4728 (ipa_inline): dump summaries after inlining.
4729 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4730 New.
4731 (inline_edge_summary): New function.
4732 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4733 (inline_edge_removal_hook): Handle edge summaries.
4734 (inline_edge_duplication_hook): New hook.
4735 (inline_summary_alloc): Alloc hooks.
4736 (initialize_growth_caches): Do not register removal hooks.
4737 (free_growth_caches); Do not free removal hook.
4738 (dump_inline_edge_summary): New function.
4739 (dump_inline_summary): Use it.
4740 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4741 (inline_update_callee_summaries): New function.
4742 (inline_merge_summary): Use it.
4743 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4744 (read_inline_edge_summary): New function.
4745 (inline_read_section): Use it.
4746 (write_inline_edge_summary): New function.
4747 (inline_write_summary): Use it.
4748 (inline_free_summary): Free edge new holders.
4749 * tree-inline.c (copy_bb): Update.
4750
4751 2011-04-26 Jason Merrill <jason@redhat.com>
4752
4753 * tree-eh.c (lower_try_finally_switch): Create the label along with
4754 the CASE_LABEL_EXPR.
4755
4756 2011-04-26 David S. Miller <davem@davemloft.net>
4757 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4758
4759 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4760 * configure: Regenerate.
4761
4762 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4763
4764 PR target/48258
4765 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4766 reduction.
4767 (VEC_reduc): New code iterator and splitters for vector reduction.
4768 (VEC_reduc_name): Ditto.
4769 (VEC_reduc_rtx): Ditto.
4770 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4771 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4772
4773 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4774 support for extracting SF on VSX.
4775
4776 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4777 generating xscvspdp.
4778 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4779 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4780 double add, minimum, maximum vector reduction.
4781 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4782 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4783 optimize double vector reduction.
4784 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4785
4786 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4787
4788 * config/fr30/fr30.h (inhibit_libc): Don't define.
4789 * config/m32r/m32r-protos.h: Correct comment.
4790 * config/v850/v850.h (GHS_default_section_names,
4791 GHS_current_section_names): Use tree, not union tree_node *.
4792
4793 2011-04-26 Xinliang David Li <davidxl@google.com>
4794
4795 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4796 * c-family/c-opts.c (c_common_handle_option): Set
4797 warn_maybe_uninitialized.
4798 * opts.c (common_handle_option): Ditto.
4799 * common.opt: New option.
4800 * tree-ssa.c (warn_uninit): Add one more parameter.
4801 (warn_uninitialized_var): Pass warning code.
4802 * tree-flow.h: Interface change.
4803
4804 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4805
4806 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4807 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4808 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4809
4810 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4811
4812 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4813 * config/mips/mips.opt (mmips-tfile): Remove.
4814
4815 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4816 mips-tdump reference to ...
4817 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4818 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4819 reference by Tru64 UNIX.
4820
4821 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4822
4823 PR debug/48768
4824 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4825 is error_mark_node, set value to NULL.
4826
4827 PR tree-optimization/48734
4828 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4829 if return value from maybe_fold_*_comparsions isn't something
4830 the code is prepared to handle.
4831
4832 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4833
4834 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4835 mode check.
4836 (ext_QIreg_nomode_operands): Remove.
4837 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4838 (*andsi_1): Ditto.
4839 (*andhi_1): Ditto.
4840
4841 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4842
4843 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4844
4845 2011-04-26 Richard Guenther <rguenther@suse.de>
4846
4847 * c-typeck.c (build_unary_op): Do not expand array-refs via
4848 pointer arithmetic. Only adjust qualifiers for function types.
4849
4850 2011-04-26 Richard Guenther <rguenther@suse.de>
4851
4852 PR middle-end/48694
4853 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4854 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4855 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4856 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4857
4858 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4859
4860 * doc/extend.texi: Document __underlying_type.
4861
4862 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4863
4864 * config/rs6000/titan.md (automata_option "progress"): Remove.
4865
4866 2011-04-25 Jeff Law <law@redhat.com>
4867
4868 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4869
4870 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4871
4872 * system.h (ENUM_BITFIELD): Remove.
4873
4874 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4875 Eric Botcazou <ebotcazou@adacore.com>
4876
4877 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4878 for STORE_FLAG_VALUE==-1 case.
4879
4880 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4881
4882 PR target/43804
4883 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4884 LEGITIMATE_PIC_OPERAND_P.
4885
4886 2011-04-24 Jan Hubicka <jh@suse.cz>
4887
4888 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4889 WPA hack.
4890 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4891 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4892 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4893 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4894 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4895 Sanity check predicate length.
4896 (remap_predicate): Likewise; sanity check jump functions.
4897 (inline_read_section, inline_write_summary): Sanity check
4898 predicate length.
4899
4900 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4901
4902 PR other/48748
4903 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4904 __is_literal_type, and __is_trivial; update throughout about
4905 possibly cv-qualified void types.
4906
4907 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4908
4909 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4910 testsuite and make it version agnostic.
4911
4912 2011-04-22 Jan Hubicka <jh@suse.cz>
4913
4914 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4915
4916 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4917
4918 PR c/48685
4919 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4920 to VOID_TYPE even around MODIFY_EXPR.
4921
4922 2011-04-22 Mike Stump <mikestump@comcast.net>
4923
4924 * gensupport.c (read_md_rtx): Fix typo in comment.
4925 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4926 comment.
4927
4928 2011-04-22 Jan Hubicka <jh@suse.cz>
4929
4930 * gengtype.c (open_base_files): Add ipa-inline.h include.
4931 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4932 ipa-prop.c; update all uses.
4933 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4934 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4935 merge summary of inlined function into former caller.
4936 * ipa-inline.c (max_benefit): Remove.
4937 (edge_badness): Compensate for removal of benefits.
4938 (update_caller_keys): Use
4939 reset_node_growth_cache/reset_edge_growth_cache.
4940 (update_callee_keys): Likewise.
4941 (update_all_callee_keys): Likewise.
4942 (inline_small_functions): Do not collect max_benefit; do not reset
4943 estimated_growth; call free_growth_caches and initialize_growth_caches.
4944 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4945 struct size_time_entry): New structures.
4946 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4947 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4948 and estimated_growth.
4949 (edge_growth_cache_entry): New structure.
4950 (node_growth_cache, edge_growth_cache): New global vars.
4951 (estimate_growth): Turn into inline.
4952 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4953 initialize_growth_caches, free_growth_caches): Declare.
4954 (estimate_edge_growth): Rewrite.
4955 (estimate_edge_time): Implement as inline cache lookup.
4956 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4957 functions.
4958 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4959 (NUM_CONDITIONS): New constant.
4960 (predicate_conditions): New enum.
4961 (IS_NOT_CONSTANT): New constant.
4962 (edge_removal_hook_holder): New var.
4963 (node_growth_cache, edge_growth_cache): New global vars.
4964 (true_predicate, single_cond_predicate, false_predicate,
4965 not_inlined_predicate, add_condition, add_clause, and_predicates,
4966 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4967 dump_clause, dump_predicate, account_size_time,
4968 evaulate_conditions_for_edge): New functions.
4969 (inline_summary_alloc): Move to heap.
4970 (inline_node_removal_hook): Clear condition and entry vectors.
4971 (inline_edge_removal_hook): New function.
4972 (initialize_growth_caches, free_growth_caches): New function.
4973 (dump_inline_summary): Update.
4974 (edge_execution_predicate): New function.
4975 (will_be_nonconstant_predicate): New function.
4976 (estimate_function_body_sizes): Compute BB and constantness predicates.
4977 (compute_inline_parameters): Do not clear estimated_growth.
4978 (estimate_edge_size_and_time): New function.
4979 (estimate_calls_size_and_time): New function.
4980 (estimate_callee_size_and_time): New function.
4981 (remap_predicate): New function.
4982 (inline_merge_summary): New function.
4983 (do_estimate_edge_time): New function based on...
4984 (estimate_edge_time): ... this one.
4985 (do_estimate_edge_growth): New function.
4986 (do_estimate_growth): New function based on....
4987 (estimate_growth): ... this one.
4988 (inline_analyze_function): Analyze after deciding on jump functions.
4989 (inline_read_section): New function.
4990 (inline_read_summary): Use it.
4991 (inline_write_summary): Write all the new data.
4992 * ipa-prop.c (ipa_get_param_decl_index): Export.
4993 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4994 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4995 Declare.
4996 (ipa_get_lattice): Move here from ipa-cp.c
4997 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4998 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4999 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5000 cgraph_edge_inlinable_p): Remove.
5001 * cgraphunit.c: Include ipainline.h
5002 (cgraph_process_new_functions): Update call of
5003 compute_inline_parameters.
5004
5005 2011-04-22 Richard Guenther <rguenther@suse.de>
5006
5007 * tree.c (build_int_cst): Properly create canonicalized integer
5008 constants.
5009 (build_int_cst_type): Remove scary comments.
5010
5011 2011-04-22 Xinliang David Li <davidxl@google.com>
5012
5013 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5014 by default when -Wno-error is not specified.
5015 * opts-global.c (decode_options): Remove call to
5016 control_warning_options.
5017
5018 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5019
5020 PR tree-optimization/48717
5021 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5022 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5023
5024 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5025
5026 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5027 definition where used.
5028
5029 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5030
5031 PR c/48716
5032 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5033 TREE_STATIC variables declared inside of some OpenMP construct.
5034
5035 2011-04-22 Martin Jambor <mjambor@suse.cz>
5036
5037 PR middle-end/48585
5038 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5039
5040 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5041
5042 PR c/36750
5043 * c-typeck.c (pop_init_level): Do not warn about initializing
5044 with ` = {0}'.
5045
5046 2011-04-22 Alan Modra <amodra@gmail.com>
5047
5048 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5049 when returning call_cookie.
5050 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5051 pointers, to functions with no more vector args than the current
5052 function, and some non-local calls for ABI_V4.
5053 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5054 sibcall_nonlocal_aix64): Combine to ..
5055 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5056 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5057 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5058 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5059 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5060 operand.
5061 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5062 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5063 sibcall_value_symbolic_64): Delete.
5064
5065 2011-04-21 Xinliang David Li <davidxl@google.com>
5066
5067 * cgraph.h: Remove pid.
5068 * cgraph.c: Remove pid.
5069 * value-prof.c (init_node_map): New function.
5070 (del_node_map): New function.
5071 (find_func_by_funcdef_no): New function.
5072 (gimple_ic_transform): Call new function.
5073 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5074 * function.c (get_last_funcdef_no): New function.
5075 * function.h (get_last_funcdef_no): New function.
5076 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5077 to libgcov function.
5078 (tree-profiling): Call node map init and delete function.
5079
5080 2011-04-21 Ian Lance Taylor <iant@google.com>
5081
5082 * godump.c (go_format_type): Use exported Go name for anonymous
5083 field name.
5084
5085 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5086
5087 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5088 Call builtin_function_type_list instead of builtin_function_type.
5089 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5090
5091 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5092
5093 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5094 build_function_type_list instead of build_function_type.
5095 Delete variable `endlink'.
5096
5097 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5098
5099 * config/s390/s390.c (s390_init_builtins): Call
5100 build_function_type_list instead of build_function_type.
5101
5102 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5103
5104 * config/ia64/ia64.c (ia64_init_builtins): Call
5105 build_function_type_list instead of builtin_function_type.
5106
5107 2011-04-21 Easwaran Raman <eraman@google.com>
5108
5109 * cfgexpand.c (stack_var): Remove OFFSET...
5110 (add_stack_var): ...and its reference here...
5111 (expand_stack_vars): ...and here.
5112 (stack_var_cmp): Sort by descending order of size.
5113 (partition_stack_vars): Change heuristic.
5114 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5115 (dump_stack_var_partition): Add newline after each partition.
5116
5117 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5118 Jeff Law <law@redhat.com>
5119
5120 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5121 * gengtype.c (matching_file_name_substitute): Likewise.
5122
5123 2011-04-21 Richard Guenther <rguenther@suse.de>
5124
5125 PR lto/48703
5126 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5127
5128 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5129
5130 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5131
5132 2011-04-21 Richard Guenther <rguenther@suse.de>
5133
5134 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5135 file name.
5136
5137 2011-04-21 Richard Guenther <rguenther@suse.de>
5138
5139 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5140 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5141 Use DECL_P, not SSA_VAR_P.
5142 (ptr_derefs_may_alias_p): Likewise.
5143 (ptr_deref_may_alias_ref_p_1): Likewise.
5144 (decl_refs_may_alias_p): Likewise.
5145 (refs_may_alias_p_1): Likewise.
5146 (ref_maybe_used_by_call_p_1): Likewise.
5147 (call_may_clobber_ref_p_1): Likewise.
5148 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5149 are either MEM_REF or TARGET_MEM_REF.
5150 (indirect_refs_may_alias_p): Likewise.
5151 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5152 for MEM_EXPR of indirect calls.
5153
5154 2011-04-21 Tristan Gingold <gingold@adacore.com>
5155
5156 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5157 (dst_file_info_struct): Remove flen field.
5158 (lookup_filename): Remove code that set flen field.
5159
5160 2011-04-21 Tristan Gingold <gingold@adacore.com>
5161
5162 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5163
5164 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5165
5166 PR target/48708
5167 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5168 vec_extract and vec_concat for non-SSE4_1 targets.
5169
5170 2011-04-21 Richard Guenther <rguenther@suse.de>
5171
5172 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5173 return statements.
5174
5175 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5176
5177 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5178 undefine.
5179 (FILE): Don't undefine.
5180
5181 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5182
5183 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5184 struct rtx_def *.
5185 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5186 struct rtx_def *.
5187 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5188 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5189 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5190 rtx_def *.
5191 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5192 definitions where used.
5193 * config/microblaze/microblaze.h (struct microblaze_args): Use
5194 rtx, not struct rtx_def *.
5195 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5196 rtx_def *.
5197 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5198 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5199 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5200 not struct rtx_def *.
5201 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5202 struct rtx_def *.
5203 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5204 rtx_def *.
5205 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5206
5207 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5208
5209 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5210 operand_equal_p to compare DR_BASE_ADDRESSes.
5211 (vect_check_interleaving): Likewise.
5212
5213 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5214
5215 PR target/46329
5216 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5217 for all Neon struct constants.
5218
5219 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5220
5221 * target.def (legitimate_constant_p): New hook.
5222 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5223 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5224 * doc/tm.texi: Regenerate.
5225 * hooks.h (hook_bool_mode_rtx_true): Declare.
5226 * hooks.c (hook_bool_mode_rtx_true): Define.
5227 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5228 * calls.c (precompute_register_parameters): Replace uses of
5229 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5230 (emit_library_call_value_1): Likewise.
5231 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5232 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5233 * ira-costs.c (scan_one_insn): Likewise.
5234 * recog.c (general_operand, immediate_operand): Likewise.
5235 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5236 * reload1.c (init_eliminable_invariants): Likewise.
5237
5238 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5239 mode argument.
5240 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5241 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5242 argument.
5243 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5244 * config/alpha/predicates.md (input_operand): Update call to
5245 alpha_legitimate_constant_p.
5246
5247 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5248 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5249 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5250 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5251 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5252 (arm_legitimate_constant_p): New functions.
5253 (arm_cannot_force_const_mem): Make static.
5254
5255 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5256
5257 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5258 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5259 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5260 instead of bfin_legitimate_constant_p.
5261 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5262 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5263
5264 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5265
5266 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5267
5268 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5269 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5270 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5271 (frv_legitimate_constant_p): Make static. Add a mode argument.
5272
5273 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5274 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5275 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5276
5277 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5278 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5279 * config/i386/i386.c (legitimate_constant_p): Rename to...
5280 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5281 argument.
5282 (ix86_cannot_force_const_mem): Update accordingly.
5283 (ix86_legitimate_address_p): Likewise.
5284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5285 * config/i386/i386.md: Update commentary.
5286
5287 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5288 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5289 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5290 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5291
5292 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5293
5294 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5295 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5296 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5297 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5298
5299 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5300 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5301 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5302
5303 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5304 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5305 (m32r_legitimate_constant_p): New function.
5306
5307 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5308 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5309 LEGITIMATE_CONSTANT_P.
5310 (LEGITIMATE_CONSTANT_P): Delete.
5311 * config/m68k/m68k.c (m68k_expand_prologue): Call
5312 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5313 (m68k_legitimate_constant_p): New function.
5314 * config/m68k/m68k.md: Update comments.
5315
5316 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5317 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5318 (mcore_legitimate_constant_p): New function.
5319
5320 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5321 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5322 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5323 Add a mode argument.
5324 (mep_legitimate_address): Update accordingly.
5325 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5326
5327 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5328 Delete.
5329 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5330 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5331 static. Check OP's mode for VOIDmode.
5332 (microblaze_legitimate_constant_p): New function.
5333 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5334
5335 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5336 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5337 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5338 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5339 * config/mips/predicates.md: Update comments.
5340
5341 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5342 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5343 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5344 (mmix_legitimate_constant_p): Make static, return a bool, and take
5345 a mode argument.
5346 (mmix_print_operand_address): Update accordingly.
5347
5348 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5349 Delete.
5350 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5351 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5352 static. Add a mode argument.
5353 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5354
5355 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5356
5357 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5358 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5359 (pa_legitimate_constant_p): New function.
5360
5361 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5362
5363 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5364 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5365 (pdp11_legitimate_constant_p): New function.
5366
5367 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5368 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5369 (rs6000_legitimate_constant_p): New function.
5370
5371 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5372 (rx_legitimate_constant_p): ...this.
5373 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5374 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5375 (rx_legitimate_constant_p): ...this.
5376 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5377 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5378
5379 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5380 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5381 * config/s390/s390.c (legitimate_constant_p): Rename to...
5382 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5383 and add a mode argument.
5384 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5385
5386 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5387
5388 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5389 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5390 (sh_legitimate_constant_p): New function.
5391
5392 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5393 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5394 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5395 (legitimate_constant_p): Rename to...
5396 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5397 argument.
5398 (constant_address_p): Update accordingly.
5399
5400 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5401 argument and return a bool.
5402 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5403 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5404 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5405 (spu_rtx_costs): Update accordingly.
5406 * config/spu/predicates.md (vec_imm_operand): Likewise.
5407
5408 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5409
5410 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5411 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5412 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5413
5414 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5415 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5416 * config/vax/vax.c (legitimate_constant_p): Likewise.
5417
5418 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5419 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5420 (xtensa_legitimate_constant_p): New function.
5421
5422 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5423
5424 * target.def (cannot_force_const_mem): Add a mode argument.
5425 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5426 * doc/tm.texi: Regenerate.
5427 * hooks.h (hook_bool_mode_rtx_false): Declare.
5428 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5429 (hook_bool_mode_const_rtx_true): Likewise.
5430 (hook_bool_mode_rtx_false): New function.
5431 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5432 to be non-VOID. Update call to cannot_force_const_mem.
5433 (find_reloads): Update accordingly.
5434 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5435 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5436 argument.
5437 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5438 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5439 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5440 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5441 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5442 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5443 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5444 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5445 (m68k_cannot_force_const_mem): ...this new function.
5446 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5447 argument.
5448 (mips_const_insns, mips_legitimize_const_move): Update calls.
5449 (mips_secondary_reload_class): Likewise.
5450 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5451 (pa_cannot_force_const_mem): ...this new function.
5452 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5453 (rs6000_cannot_force_const_mem): ...this new function.
5454 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5455 argument.
5456 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5457 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5458 to...
5459 (xtensa_cannot_force_const_mem): ...this new function.
5460
5461 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5462
5463 * config/mips/mips.c (mips16_build_function_stub): Call
5464 build_function_type_list instead of build_function_type.
5465 (mips16_build_call_stub): Likewise.
5466
5467 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5468
5469 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5470 instead of build_function_type.
5471
5472 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5473
5474 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5475 instead of build_function_type.
5476
5477 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5478
5479 PR target/48678
5480 * config/i386/i386.md (insv): Change operand 0 constraint to
5481 "register_operand". Change operand 1 and 2 constraint to
5482 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5483 * config/i386/sse.md (sse4_1_pinsrb): Export.
5484 (sse2_pinsrw): Ditto.
5485 (sse4_1_pinsrd): Ditto.
5486 (sse4_1_pinsrq): Ditto.
5487 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5488 * config/i386/i386.c (ix86_expand_pinsr): New.
5489
5490 2011-04-20 Easwaran Raman <eraman@google.com>
5491
5492 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5493 containing union type only with -fstrict-aliasing.
5494
5495 2011-04-20 Jim Meyering <meyering@redhat.com>
5496
5497 Remove useless if-before-free tests.
5498 * calls.c (expand_call, save_area): Likewise.
5499 * cfgcleanup.c (try_forward_edges): Likewise.
5500 * collect2.c (collect_execute): Likewise.
5501 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5502 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5503 * coverage.c (coverage_checksum_string): Likewise.
5504 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5505 * cselib.c (cselib_init): Likewise.
5506 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5507 (df_set_clean_cfg): Likewise.
5508 * function.c (free_after_compilation): Likewise.
5509 * gcc.c (do_spec_1, main): Likewise.
5510 * gcov.c (create_file_names): Likewise.
5511 * gensupport.c (identify_predicable_attribute): Likewise.
5512 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5513 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5514 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5515 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5516 * ipa-pure-const.c (local_pure_const): Likewise.
5517 * ipa-reference.c (propagate): Likewise.
5518 * ira-costs.c (free_ira_costs): Likewise.
5519 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5520 * matrix-reorg.c (mat_free): Likewise.
5521 * prefix.c (get_key_value): Likewise.
5522 * profile.c (compute_value_histograms): Likewise.
5523 * reload1.c (free_reg_equiv): Likewise.
5524 * sched-deps.c (free_deps): Likewise.
5525 * sel-sched-ir.c (fence_clear): Likewise.
5526 * sese.c (set_rename, if_region_set_false_region): Likewise.
5527 * tree-data-ref.c (free_rdg): Likewise.
5528 * tree-eh.c (lower_try_finally): Likewise.
5529 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5530 * tree-ssa-live.c (delete_var_map): Likewise.
5531 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5532 * tree-ssa-pre.c (phi_trans_add): Likewise.
5533
5534 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5535
5536 PR tree-optimization/48611
5537 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5538 beyond ERT_MUST_NOT_THROW region.
5539
5540 2011-04-20 Catherine Moore <clm@codesourcery.com>
5541
5542 * config/mips/mips.opt (mfix-24k): New.
5543 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5544 * config/mips/mips.md (length): Increase by 4 for stores if
5545 fixing 24K errata.
5546 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5547 all noreorder if fixing 24K errata.
5548 * doc/invoke.texi: Document mfix-24k.
5549
5550 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5551
5552 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5553 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5554
5555 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5556
5557 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5558 (const_ok_for_op): ... to here.
5559
5560 2011-04-20 Kai Tietz <ktietz@redhat.com>
5561
5562 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5563 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5564
5565 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5566
5567 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5568
5569 2011-04-20 Richard Guenther <rguenther@suse.de>
5570
5571 PR tree-optimization/47892
5572 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5573 are if-convertible.
5574
5575 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5576
5577 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5578
5579 2011-04-20 Tristan Gingold <gingold@adacore.com>
5580
5581 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5582
5583 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5584
5585 PR target/18145
5586
5587 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5588 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5589 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5590 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5591 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5592
5593 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5594 New prototype.
5595
5596 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5597 (avr_asm_named_section, avr_asm_output_aligned_common,
5598 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5599 New functions to update...
5600 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5601 (avr_asm_init_sections): Overwrite section callbacks for
5602 data_section, bss_section.
5603 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5604 from here to...
5605 (avr_file_end): ...here.
5606
5607 2011-04-20 Richard Guenther <rguenther@suse.de>
5608
5609 PR middle-end/48695
5610 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5611 objects and types here. Adjust for their offset before comparing.
5612
5613 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5614
5615 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5616 statement per copy.
5617
5618 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5619
5620 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5621 (GIMPLE_H): Include $(INTERNAL_FN_H).
5622 (OBJS-common): Add internal-fn.o.
5623 (internal-fn.o): New rule.
5624 * internal-fn.def: New file.
5625 * internal-fn.h: Likewise.
5626 * internal-fn.c: Likewise.
5627 * gimple.h: Include internal-fn.h.
5628 (GF_CALL_INTERNAL): New gf_mask.
5629 (gimple_statement_call): Put fntype into a union with a new
5630 internal_fn field.
5631 (gimple_build_call_internal): Declare.
5632 (gimple_build_call_internal_vec): Likewise.
5633 (gimple_call_same_target_p): Likewise.
5634 (gimple_call_internal_p): New function.
5635 (gimple_call_internal_fn): Likewise.
5636 (gimple_call_fntype): Return null for internal calls.
5637 (gimple_call_set_fntype): Assert that the function is not internal.
5638 (gimple_call_set_fn): Likewise.
5639 (gimple_call_set_fndecl): Likewise.
5640 (gimple_call_set_internal_fn): New function.
5641 (gimple_call_addr_fndecl): Handle null functions.
5642 (gimple_call_return_type): Likewise null types.
5643 * gimple.c (gimple_build_call_internal_1): New function.
5644 (gimple_build_call_internal): Likewise.
5645 (gimple_build_call_internal_vec): Likewise.
5646 (gimple_call_same_target_p): Likewise.
5647 (gimple_call_flags): Handle calls to internal functions.
5648 (gimple_call_fnspec): New function.
5649 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5650 (gimple_has_side_effects): Handle null functions.
5651 (gimple_rhs_has_side_effects): Likewise.
5652 (gimple_call_copy_skip_args): Handle calls to internal functions.
5653 * cfgexpand.c (expand_call_stmt): Likewise.
5654 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5655 * gimple-fold.c (gimple_fold_call): Handle null functions.
5656 (gimple_fold_stmt_to_constant_1): Don't fold
5657 calls to internal functions.
5658 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5659 functions.
5660 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5661 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5662 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5663 (do_warn_unused_result): Likewise.
5664 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5665 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5666 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5667 the target of a call.
5668 (initialize_hash_element): Update accordingly.
5669 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5670 (iterative_hash_hashable_expr): Handle calls to internal functions.
5671 (print_expr_hash_elt): Likewise.
5672 * tree-ssa-pre.c (can_value_number_call): Likewise.
5673 (eliminate): Handle null functions.
5674 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5675 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5676 (find_func_aliases): Likewise.
5677 * value-prof.c (gimple_ic_transform): Likewise.
5678 (gimple_indirect_call_to_profile): Likewise.
5679 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5680 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5681
5682 2011-04-19 Jan Hubicka <jh@suse.cz>
5683
5684 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5685 * ipa-inline.c (inline_small_functions): Compute summaries first,
5686 populate heap later.
5687
5688 2011-04-19 Jan Hubicka <jh@suse.cz>
5689
5690 * cgraph.h (save_inline_function_body): Remove.
5691 * ipa-inline-transform.c: New file, broke out of...
5692 * ipa-inline.c: ... this one; Update toplevel comment.
5693 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5694 make global.
5695 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5696 (cgraph_mark_inline_edge): Rename to inline_call; move to
5697 ipa-inline-transform.c.
5698 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5699 move to ipa-inline-transform.c
5700 (recursive_inlining, inline_small_functions, flatten_function,
5701 ipa_inline, inline_always_inline_functions,
5702 early_inline_small_functions): Update.
5703 (inline_transform): Move to ipa-inline-transform.c.
5704 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5705 Declare.
5706 * Makefile.in (ipa-inline-transform.o): New file.
5707 * cgraphunit.c (save_inline_function_body): Move to
5708 ipa-inline-transform.c
5709
5710 2011-04-19 DJ Delorie <dj@redhat.com>
5711
5712 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5713 registers if we already know there aren't any.
5714 (m32c_emit_epilogue): Don't emit a barrier here.
5715 (m32c_emit_eh_epilogue): Likewise.
5716 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5717 operands at expand time.
5718 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5719 int" wchar type.
5720 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5721 duplicates. Provide aliases instead.
5722 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5723 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5724 the compiler.
5725
5726 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5727
5728 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5729 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5730 (general_or_i64_p, sparc_register_move_cost): New function.
5731
5732 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5733
5734 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5735 Add lynx, mipssde. Sort table.
5736
5737 2011-04-19 Xinliang David Li <davidxl@google.com>
5738
5739 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5740 not negative.
5741
5742 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5743
5744 PR target/48678
5745 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5746 is a SUBREG with non-MODE_INT mode inside of it.
5747
5748 2011-04-19 Martin Jambor <mjambor@suse.cz>
5749
5750 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5751 also according to actual contants.
5752 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5753 (gimple_fold_call): Use it.
5754 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5755
5756 2011-04-19 Martin Jambor <mjambor@suse.cz>
5757
5758 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5759 non-pointer assignments.
5760
5761 2011-04-19 Martin Jambor <mjambor@suse.cz>
5762
5763 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5764 account anc_offset and otr_type from the indirect edge info.
5765 * ipa-prop.c (get_ancestor_addr_info): New function.
5766 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5767 get_ancestor_addr_info, call it.
5768 (ipa_note_param_call): Do not initialize information about polymorphic
5769 calls, return the indirect call graph edge. Remove the last
5770 parameter, adjust all callers.
5771 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5772 parameters. Initialize polymorphic information in the indirect edge.
5773
5774 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5775
5776 PR lto/48148
5777 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5778 the types if they have different enumeration identifiers.
5779
5780 2011-04-19 Jan Hubicka <jh@suse.cz>
5781
5782 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5783 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5784 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5785 (optimize_function_for_size_p) ... here.
5786
5787 2011-04-19 Richard Guenther <rguenther@suse.de>
5788
5789 PR lto/48207
5790 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5791 langhook.
5792
5793 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5794
5795 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5796 if DECL_NO_INLINE_WARNING_P is set on the function.
5797
5798 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5799
5800 PR fortran/47976
5801 * reload1.c (inc_for_reload): Return void. All callers changed.
5802 (emit_input_reload_insns): Don't try to delete previous output
5803 reloads to a register, or record spill_reg_store for autoincs.
5804
5805 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5806
5807 * gengtype.h: Updated copyright year.
5808 (struct input_file_st): Add inpisplugin field.
5809 (type_fileloc): New function.
5810 * gengtype.c
5811 (write_typed_struct_alloc_def): Add gcc_assert.
5812 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5813 (write_typed_alloc_defns): Don't output for plugin files.
5814 (input_file_by_name): Clear inpisplugin field.
5815 (main): Set inpisplugin field for plugin files.
5816
5817 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5818
5819 * gengtype-state.c (string_eq): New.
5820 (read_state): Use string_eq instead of strcmp when creating the
5821 state_ident_tab.
5822
5823 2011-04-19 Wei Guozhi <carrot@google.com>
5824
5825 PR target/47855
5826 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5827 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5828 linkage.
5829 * config/arm/constraints.md (Uu): New constraint.
5830 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5831
5832 2011-04-19 Tristan Gingold <gingold@adacore.com>
5833
5834 * config.gcc (-*-*-*vms): Added.
5835 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5836 definitions moved.
5837 * config/vms/vms-ld.c: New file.
5838 * config/vms/vms-ar.c: New file.
5839 * config/vms/t-vmsnative: New file.
5840
5841 2011-04-18 Xinliang David Li <davidxl@google.com>
5842
5843 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5844
5845 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5846
5847 PR middle-end/48661
5848 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5849 if TREE_TYPE (v) is non-NULL.
5850
5851 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5852 gimple_get_virt_mehtod_for_binfo.
5853 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5854 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5855 callers.
5856 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5857
5858 2011-04-18 Michael Matz <matz@suse.de>
5859 Steve Ellcey <sje@cup.hp.com>
5860
5861 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5862 use its mode as source mode if it isn't VOIDmode.
5863
5864 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5865
5866 * doc/passes.texi: Fill crossref nodes.
5867
5868 2011-04-18 Jim Meyering <meyering@redhat.com>
5869
5870 Fix doubled-word typos in comments and strings
5871 * config/alpha/vms-unwind.h: s/for for/for/
5872 * config/arm/unwind-arm.h: Likewise.
5873 * config/microblaze/microblaze.c: Likewise.
5874 * config/sh/constraints.md: s/in in/in/
5875 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5876
5877 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5878
5879 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5880 (AVX_FLOAT_MODE_P): Ditto.
5881 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5882 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5883 (AVX_VEC_FLOAT_MODE_P): Ditto.
5884 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5885 (UNSPEC_MASKSTORE): Ditto.
5886 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5887 Merge from <sse>_movmsk<ssemodesuffix> and
5888 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5889 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5890 iterator.
5891 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5892 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5893 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5894
5895 2011-04-18 Jan Hubicka <jh@suse.cz>
5896
5897 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5898
5899 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5900 (want_inline_function_called_once_p): Break out the logic from
5901 ipa_inline.
5902 (edge_badness): Ensure that profile is not misupdated.
5903 (lookup_recursive_calls): Prioritize by call frequencies.
5904 (inline_small_functions): Move program size estimates here;
5905 actually process whole queue even when unit growth has been
5906 met. (to properly compute inline_failed reasons and for the
5907 case unit size decrease.) Revisit comments on recursive inlining.
5908 (ipa_inline): Remove unit summary code; first inline hot calls
5909 of functions called once, cold calls next.
5910 (order, nnodes): Remove unused variables.
5911 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5912 (GTFILES): Remove ipa-inline.c
5913 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5914
5915 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5916
5917 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5918
5919 2011-04-18 Jie Zhang <jie@codesourcery.com>
5920 Richard Earnshaw <rearnsha@arm.com>
5921
5922 * arm.c (neon_builtin_type_bits): Remove.
5923 (typedef enum neon_builtin_mode): New.
5924 (T_MAX): Don't define.
5925 (typedef enum neon_builtin_datum): Remove bits, codes[],
5926 num_vars and base_fcode. Add mode, code and fcode.
5927 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5928 VAR10): Change accordingly.
5929 (neon_builtin_data[]): Change accordingly
5930 (arm_init_neon_builtins): Change accordingly.
5931 (neon_builtin_compare): Remove.
5932 (locate_neon_builtin_icode): Remove.
5933 (arm_expand_neon_builtin): Change accordingly.
5934
5935 * arm.h (enum arm_builtins): Move to ...
5936 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5937
5938 * arm.c (arm_builtin_decl): Declare.
5939 (TARGET_BUILTIN_DECL): Define.
5940 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5941 (arm_builtin_decls[]): New.
5942 (arm_init_neon_builtins): Store builtin declarations in
5943 arm_builtin_decls[].
5944 (arm_init_tls_builtins): Likewise.
5945 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5946 (arm_builtin_decl): New.
5947
5948 2011-04-18 Richard Guenther <rguenther@suse.de>
5949
5950 * tree.c (upper_bound_in_type): Build properly canonicalized
5951 INTEGER_CSTs.
5952 (lower_bound_in_type): Likewise.
5953
5954 2011-04-18 Richard Guenther <rguenther@suse.de>
5955
5956 * gimple.h (gimple_call_addr_fndecl): New function.
5957 (gimple_call_fndecl): Use it.
5958 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5959 for direct calls.
5960 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5961 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5962
5963 2011-04-18 Richard Guenther <rguenther@suse.de>
5964
5965 PR middle-end/48650
5966 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5967
5968 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5969
5970 PR lto/48492
5971 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5972 DECL_IN_CONSTANT_POOL without RTL.
5973
5974 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5975 Ira Rosen <ira.rosen@linaro.org>
5976
5977 PR target/48252
5978 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5979 to match neon_vzip/vuzp/vtrn_internal.
5980 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5981 outputs explicitly dependent on both inputs.
5982 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5983
5984 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5985
5986 PR tree-optimization/48616
5987 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5988 whether the shift is by scalar or vector based on whether all SLP
5989 scalar stmts have the same rhs.
5990
5991 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5992
5993 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5994 memory operands.
5995
5996 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5997
5998 PR target/43700
5999 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6000 registers.
6001
6002 2011-04-17 Jan Hubicka <jh@suse.cz>
6003
6004 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6005 * cgrpahunit.c (cgraph_finalize_function): Do not set
6006 finalized_by_frontend.
6007 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6008 finalized_by_frontend.
6009
6010 2011-04-17 Jan Hubicka <jh@suse.cz>
6011
6012 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6013 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6014 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6015 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6016 method.
6017 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6018 gimple-fold.c
6019 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6020
6021 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6022
6023 PR lto/48538
6024 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6025 is non-null before accessing it.
6026 (input_cgraph): Remove trailing spaces.
6027
6028 2011-04-17 Revital Eres <revital.eres@linaro.org>
6029
6030 * params.def (sms-min-sc): New param flag.
6031 * modulo-sched.c (sms_schedule): Use it.
6032 * doc/invoke.texi (sms-min-sc): Document it.
6033
6034 2011-04-17 Jan Hubicka <jh@suse.cz>
6035
6036 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6037 present, also set gimple_call_set_cannot_inline.
6038 * ipa-inline.c: Update toplevel comment.
6039 (MAX_TIME): Remove.
6040 (cgraph_clone_inlined_nodes): Fix linebreaks.
6041 (cgraph_check_inline_limits): Restructure to ...
6042 (caller_growth_limits): ... this one; be more tolerant
6043 on growth in nested inline chains; add explanatory comment;
6044 fix stack accounting thinko introduced by previous patch.
6045 (cgraph_default_inline_p): Remove.
6046 (report_inline_failed_reason): New function.
6047 (can_inline_edge_p): New function.
6048 (can_early_inline_edge_p): New function.
6049 (leaf_node_p): Move upwards in file.
6050 (want_early_inline_function_p): New function.
6051 (want_inline_small_function_p): New function.
6052 (want_inline_self_recursive_call_p): New function.
6053 (cgraph_edge_badness): Rename to ...
6054 (edge_badness) ... this one; fix linebreaks.
6055 (update_edge_key): Update call of edge_baddness; add
6056 detailed dump about queue updates.
6057 (update_caller_keys): Use can_inline_edge_p and
6058 want_inline_small_function_p.
6059 (cgraph_decide_recursive_inlining): Rename to...
6060 (recursive_inlining): Use can_inline_edge_p and
6061 want_inline_self_recursive_call_p; simplify and remove no longer
6062 valid FIXME.
6063 (cgraph_set_inline_failed): Remove.
6064 (add_new_edges_to_heap): Use can_inline_edge_p and
6065 want_inline_small_function_p.
6066 (cgraph_decide_inlining_of_small_functions): Rename to ...
6067 (inline_small_functions): ... this one; cleanup; use
6068 can/want predicates; cleanup debug ouput; work edges till fibheap
6069 is exhausted and do not stop once unit growth is reached; remove
6070 later loop processing remaining edges.
6071 (cgraph_flatten): Rename to ...
6072 (flatten_function): ... this one; use can_inline_edge_p
6073 and can_early_inline_edge_p predicates.
6074 (cgraph_decide_inlining): Rename to ...
6075 (ipa_inline): ... this one; remove unreachable nodes before
6076 inlining functions called once; simplify the pass.
6077 (cgraph_perform_always_inlining): Rename to ...
6078 (inline_always_inline_functions): ... this one; use
6079 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6080 (cgraph_decide_inlining_incrementally): Rename to ...
6081 (early_inline_small_functions): ... this one; simplify
6082 using new predicates; cleanup; make dumps prettier.
6083 (cgraph_early_inlining): Rename to ...
6084 (early_inliner): newer inline regular functions into always-inlines;
6085 fix updating of call stmt summaries.
6086 (pass_early_inline): Update for new names.
6087 (inline_transform): Fix formating.
6088 (gate_cgraph_decide_inlining): Rename to ...
6089 (pass_ipa_inline): ... this one.
6090 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6091 * ipa-inline-analysis.c (dump_inline_summary): Update.
6092 (compute_inline_parameters): Do not compute disregard_inline_limits;
6093 look for mismatching arguments.
6094 (estimate_growth): Fix handlig of non-trivial self recursion.
6095 (inline_read_summary): Do not read info->disregard_inline_limits.
6096 (inline_write_summary): Do not write info->disregard_inline_limits.
6097 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6098 and move all checks into can_inline_edge_p predicate; re-enable code
6099 comparing optimization levels.
6100 (expand_call_inline): Do not test inline_forbidden_into_p.
6101 * Makefile.in (ipa-inline.o): Update arguments.
6102
6103 2011-04-17 Revital Eres <revital.eres@linaro.org>
6104
6105 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6106
6107 2011-04-17 Revital Eres <revital.eres@linaro.org>
6108
6109 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6110
6111 2011-04-17 Michael Matz <matz@suse.de>
6112
6113 PR tree-optimization/48622
6114 PR lto/48645
6115 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6116 in same order as they're written.
6117
6118 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6119
6120 * config/pa/predicates.md: Reorganize and simplify predicates.
6121 Eliminate duplicate code checks.
6122 (arith_operand): Rename to arith14_operand
6123 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6124 * config/pa/pa.md: Use renamed operands.
6125 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6126 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6127 arith11_operand, adddi3_operand, indexed_memory_operand,
6128 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6129 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6130 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6131 move_dest_operand, move_src_operand, prefetch_cc_operand,
6132 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6133 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6134 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6135 div_operand, int5_operand, movb_comparison_operator,
6136 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6137 arith_double_operand, ireg_operand, lhs_lshift_operand,
6138 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6139 integer_store_memory_operand): Likewise.
6140 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6141 (integer_store_memory_operand, read_only_operand,
6142 function_label_operand, borx_reg_operand,
6143 non_hard_reg_operand): Likewise.
6144 (eq_neq_comparison_operator): Delete unused operator.
6145 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6146 function_label_operand.
6147 (emit_move_sequence): Likewise.
6148
6149 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6150
6151 * config/i386/sse.md (sseunpackmode): New mode attribute.
6152 (ssepackmode): Ditto.
6153 (vec_pack_trunc_<mode>): Macroize expander from
6154 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6155 (vec_unpacks_lo_<mode>): Macroize expander from
6156 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6157 (vec_unpacks_hi_<mode>): Macroize expander from
6158 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6159 (vec_unpacku_lo_<mode>): Macroize expander from
6160 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6161 (vec_unpacku_hi_<mode>): Macroize expander from
6162 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6163 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6164 ix86_expand_sse4_unpack.
6165 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6166
6167 2011-04-16 Jan Hubicka <jh@suse.cz>
6168
6169 * cgraphbuild.c: Include ipa-inline.h.
6170 (reset_inline_failed): Use initialize_inline_failed.
6171 * cgraph.c: Include ipa-inline.h.
6172 (cgraph_create_node_1): Do not initialize estimated_growth.
6173 (initialize_inline_failed): More to ipa-inline-analysis.c
6174 (dump_cgraph_node): Do not dump inline flags.
6175 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6176 and disregard_inline_limits flags.
6177 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6178 time, size, estimated_growth.
6179 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6180 Update.
6181 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6182 DECL_DISREGARD_INLINE_LIMITS.
6183 (cgraph_analyze_function): Do not initialize
6184 node->local.disregard_inline_limits.
6185 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6186 inlinable, versionable and disregard_inline_limits.
6187 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6188 cgraph_check_inline_limits, cgraph_default_inline_p,
6189 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6190 add_new_edges_to_heap): Update.
6191 (cgraph_decide_inlining_of_small_function): Update; set
6192 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6193 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6194 cgraph_decide_inlining_incrementally): Update.
6195 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6196 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6197 time, size and estimated_growth parameters.
6198 (estimate_edge_growth): Update.
6199 (initialize_inline_failed): Declare.
6200 * ipa-split.c: Include ipa-inline.h
6201 (execute_split_functions): Update.
6202 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6203 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6204 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6205 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6206 estimated_growth to INT_MIN.
6207 (inline_node_duplication_hook): Likewise.
6208 (dump_inline_summary): Dump new fields.
6209 (compute_inline_parameters): Update.
6210 (estimate_edge_time, estimate_time_after_inlining,
6211 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6212 inline_write_summary):
6213 (initialize_inline_failed): Move here from cgraph.c.
6214 * tree-sra.c: Include ipa-inline.h.
6215 (ipa_sra_preliminary_function_checks): Update.
6216 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6217 ipa-inline.h.
6218
6219 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6220
6221 * config/i386/sse.md (V16): New mode iterator.
6222 (VI1, VI8): Ditto.
6223 (AVXMODEQI, AVXMODEDI): Remove.
6224 (sse2, sse3): New mode attribute.
6225 (mov<mode>): Use V16 mode iterator.
6226 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6227 (push<mode>1): Use V16 mode iterator.
6228 (movmisalign<mode>): Ditto.
6229 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6230 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6231 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6232 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6233 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6234 avx_movdqu<avxmodesuffix>.
6235 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6236 *avx_movdqu<avxmodesuffix>.
6237 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6238 avx_lddqu<avxmodesuffix>.
6239 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6240 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6241 avx_movnt<AVXMODEDI:mode>.
6242 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6243 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6244
6245 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6246
6247 PR target/48629
6248 * haifa-sched.c (prune_ready_list, schedule_block): Use
6249 sched_pressure_p rather than flag_sched_pressure.
6250
6251 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6252
6253 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6254 cgraph_get_node instead of cgraph_get_create_node.
6255
6256 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6257
6258 * cfgexpand.c (expand_debug_expr): Use
6259 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6260
6261 2011-04-15 Michael Matz <matz@suse.de>
6262
6263 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6264 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6265 * function.c (gimplify_parameters): Ditto.
6266 * gimplify.c (gimplify_vla_decl): Ditto.
6267
6268 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6269 (gimple_call_set_alloca_for_var): New inline function.
6270 (gimple_call_alloca_for_var_p): Ditto.
6271 * gimple.c (gimple_build_call_from_tree): Remember
6272 CALL_ALLOCA_FOR_VAR_P state.
6273 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6274
6275 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6276 calls if they were for VLA objects.
6277
6278 2011-04-15 Martin Jambor <mjambor@suse.cz>
6279
6280 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6281 of ADR_EXPRs.
6282
6283 2011-04-15 Martin Jambor <mjambor@suse.cz>
6284
6285 PR middle-end/48601
6286 * tree-emutls.c (lower_emutls_function_body): Call
6287 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6288 result is non-NULL.
6289
6290 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6291
6292 * c-decl.c (detect_field_duplicates): Call
6293 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6294
6295 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6296
6297 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6298 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6299 * ipa-pure-const.c (check_stmt): Call it.
6300 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6301
6302 2011-04-15 Richard Guenther <rguenther@suse.de>
6303
6304 PR tree-optimization/48290
6305 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6306 Properly decide inhibiting propagation based on the valueized
6307 operand. Do loop-closed SSA form preserving here ...
6308 (init_copy_prop): ... not here.
6309
6310 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6311
6312 PR target/48612
6313 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6314 (*ieee_smax<mode>3): Likewise.
6315
6316 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6317
6318 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6319 Replace match_operand with match_dup for the third operand in
6320 these expanders.
6321
6322 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6323
6324 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6325 to track processing of conditionals. Update all callers.
6326 (try_combine, simplify_if_then_else): Update.
6327
6328 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6329
6330 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6331 -fsched-pressure.
6332
6333 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6334
6335 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6336 instead of match_operand for operand 3.
6337
6338 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6339
6340 * recog.h (insn_operand_data): Add an "allows_mem" field.
6341 * genoutput.c (output_operand_data): Initialize it.
6342 * optabs.c (maybe_legitimize_operand_same_code): New function.
6343 (maybe_legitimize_operand): Use it when matching the original
6344 op->value.
6345
6346 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6347
6348 * gimplify.c: Fix issues in comments throughout.
6349 (voidify_wrapper_expr): Fix long line.
6350 (build_stack_save_restore): Likewise.
6351 (gimplify_loop_expr): Likewise.
6352 (gimplify_compound_lval): Likewise.
6353 (gimplify_init_ctor_eval): Likewise.
6354 (gimplify_modify_expr_rhs): Likewise.
6355 (omp_notice_threadprivate_variable): Likewise.
6356
6357 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6358
6359 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6360 original one if this is not a builtin function.
6361
6362 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6363
6364 PR target/48605
6365 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6366 offset it as needed based on top 2 bits in operands[3], change
6367 MEM mode to SFmode and mask those 2 bits away from operands[3].
6368
6369 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6370
6371 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6372 change from objc_declare_protocols() to objc_declare_protocol().
6373
6374 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6375
6376 * config/i386/sse.md (sse4_1): New mode attribute.
6377 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6378 avx_blend<ssemodesuffix><avxmodesuffix> and
6379 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6380 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6381 avx_blendv<ssemodesuffix><avxmodesuffix> and
6382 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6383 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6384 avx_dp<ssemodesuffix><avxmodesuffix> and
6385 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6386 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6387 (sse4_1_packusdw): Merge with *avx_packusdw.
6388 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6389 (sse4_1_pblendw): Merge with *avx_pblendw.
6390 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6391 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6392 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6393 VF mode iterator.
6394 (sse4_1_round<ssescalarmodesuffix>): Merge with
6395 *avx_round<ssescalarmodesuffix>.
6396 (aesenc): Merge with *avx_aesenc.
6397 (aesenclast): Merge with *avx_aesenclast.
6398 (aesdec): Merge with *avx_aesdec.
6399 (aesdeclast): Merge with *avx_aesdeclast.
6400 (pclmulqdq): Merge with *pclmulqdq.
6401 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6402 New predicate.
6403 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6404
6405 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6406
6407 PR middle-end/48608
6408 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6409 (align_local_variable): This. Update DECL_ALIGN.
6410 (add_stack_var): Updated.
6411 (expand_one_stack_var): Likewise.
6412
6413 2011-04-14 Richard Guenther <rguenther@suse.de>
6414
6415 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6416 Remove.
6417 (dse_initialize_block_local_data, dse_leave_block,
6418 record_voperand_set, get_stmt_uid): Likewise.
6419 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6420 (dse_optimize_stmt): Remove voperand set handling code.
6421 Simplify and improve to handle any kind of killing stmt.
6422 (dse_record_phi): Remove.
6423 (dse_enter_block): Simplify.
6424 (tree_ssa_dse): Likewise.
6425 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6426
6427 2011-04-14 Jan Hubicka <jh@suse.cz>
6428
6429 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6430 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6431 (cgraph_local_info): Remove inline_summary.
6432 * ipa-cp.c: Include ipa-inline.h.
6433 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6434 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6435 accesor.
6436 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6437 (input_overwrite_node): Do not set inline summary.
6438 (input_node): Do not stream inline summary.
6439 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6440 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6441 growth; we do not have inline parameters computed for that anyway.
6442 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6443 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6444 (inline_summary_t): New type and VECtor.
6445 (debug_inline_summary, dump_inline_summaries): Declare.
6446 (inline_summary): Use VOCtor.
6447 (estimate_edge_growth): Kill hack computing call stmt size directly.
6448 * lto-section-in.c (lto_section_name): Add inline section.
6449 * ipa-inline-analysis.c: Include lto-streamer.h
6450 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6451 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6452 (inline_summary_vec): Define.
6453 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6454 dump_inline_summaries): New functions.
6455 (estimate_function_body_sizes): Properly compute size/time of outgoing
6456 calls.
6457 (compute_inline_parameters): Alloc inline_summary; do not compute
6458 size/time of incomming calls.
6459 (estimate_edge_time): Avoid missing time summary hack.
6460 (inline_read_summary): Read inline summary info.
6461 (inline_write_summary): Write inline summary info.
6462 (inline_free_summary): Free all hooks and inline summary vector.
6463 * lto-streamer.h: Add LTO_section_inline_summary section.
6464 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6465 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6466
6467 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6468
6469 * tree-vectorizer.h (vect_strided_store_supported): Add a
6470 HOST_WIDE_INT argument.
6471 (vect_strided_load_supported): Likewise.
6472 (vect_permute_store_chain): Return void.
6473 (vect_transform_strided_load): Likewise.
6474 (vect_permute_load_chain): Delete.
6475 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6476 count argument. Check that the count is a power of two.
6477 (vect_strided_load_supported): Likewise.
6478 (vect_permute_store_chain): Return void. Update after above changes.
6479 Assert that the access is supported.
6480 (vect_permute_load_chain): Likewise.
6481 (vect_transform_strided_load): Return void.
6482 * tree-vect-stmts.c (vectorizable_store): Update calls after
6483 above interface changes.
6484 (vectorizable_load): Likewise.
6485 (vect_analyze_stmt): Don't check for strided powers of two here.
6486
6487 2011-04-14 Richard Guenther <rguenther@suse.de>
6488
6489 PR tree-optimization/48590
6490 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6491 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6492 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6493 BUILT_IN_STACK_SAVE.
6494 * tree-ssa-dce.c (propagate_necessity): Handle
6495 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6496
6497 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6498
6499 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6500 objc_declare_class.
6501
6502 2011-04-14 Richard Guenther <rguenther@suse.de>
6503
6504 * tree.h (get_object_alignment_1): Declare.
6505 * builtins.c (get_object_alignment_1): Split out worker from ...
6506 (get_object_alignment): ... here.
6507 * fold-const.c (get_pointer_modulus_and_residue): Use
6508 get_object_alignment_1.
6509
6510 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6511
6512 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6513 type parameter.
6514 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6515 parameter. Generalise code to handle arrays as well as vectors.
6516 (vect_setup_realignment): Update accordingly.
6517 * tree-vect-stmts.c (vectorizable_store): Likewise.
6518 (vectorizable_load): Likewise.
6519
6520 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6521
6522 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6523 within the per-copy loop.
6524
6525 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6526
6527 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6528 in the dump file.
6529
6530 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6531
6532 * doc/options.texi (Negative): Explicitly mention that the
6533 Negative chain must be circular.
6534
6535 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6536
6537 * function.h (block_chainon): Declare.
6538 * function.c (block_chainon): Define.
6539
6540 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6541 Eric Weddington <eric.weddington@atmel.com>
6542 Georg-Johann Lay <avr@gjlay.de>
6543
6544 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6545 New Includes
6546 (avr_init_builtins, avr_expand_builtin,
6547 avr_expand_delay_cycles, avr_expand_unop_builtin,
6548 avr_expand_binop_builtin ): New functions.
6549 (avr_builtin_id): New enum
6550 (struct avr_builtin_description): New struct
6551 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6552 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6553
6554 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6555 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6556 UNSPECV_DELAY_CYCLES): new enumeration values
6557 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6558 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6559 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6560 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6561 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6562 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6563 "fmulsu"): New insns
6564
6565 * config/avr/avr-c.c: fix line endings
6566 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6567 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6568 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6569 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6570 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6571
6572 * doc/extend.texi (AVR Built-in Functions): New node
6573 (Target Builtins): Add documentation of AVR
6574 built-in functions.
6575
6576 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6577
6578 PR target/44643
6579 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6580 alone. Error if non-const data has attribute progmem.
6581
6582 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6583
6584 * tree.h (struct tree_constructor): Include tree_typed instead of
6585 tree_common.
6586 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6587 TS_TYPED instead of TS_COMMON.
6588
6589 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6590
6591 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6592 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6593 (sse2_psadbw): Merge with *avx_psadbw.
6594 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6595 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6596 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6597 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6598 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6599 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6600 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6601 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6602 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6603 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6604 (ssse3_palignrti): Merge with *avx_palignrti.
6605
6606 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6607
6608 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6609 * tree-ssanames.c (fini_ssanames): VEC_free it.
6610 (make_ssa_name_fn): Update for VECness of free_ssanames.
6611 (release_ssa_name, release_dead_ssa_names): Likewise.
6612 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6613 tree_common.
6614 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6615 TS_TYPED instead of TS_COMMON.
6616
6617 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6618
6619 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6620 statistics_counter_event.
6621 * tree-ssa-copyrename.c (stats): Define.
6622 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6623 statistics_counter_event.
6624 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6625 (bswap_stats, widen_mul_stats): Define.
6626 (insert_reciprocals): Increment rdivs_inserted.
6627 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6628 rfuncs_inserted. Add calls to statistics_counter_event.
6629 (execute_cse_sincos_1): Increment inserted.
6630 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6631 statistics_counter_event.
6632 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6633 of bswap_stats. Add calls to statistics_counter_event.
6634 (convert_mult_to_widen): Increment widen_mults_inserted.
6635 (convert_plusminus_to_widen): Increment maccs_inserted.
6636 (convert_mult_to_fma): Increment fmas_inserted.
6637 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6638 calls to statistics_counter_event.
6639
6640 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6641
6642 PR rtl-optimization/48455
6643 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6644 `temp_costs->mem_cost'.
6645
6646 2011-04-13 Jan Hubicka <jh@suse.cz>
6647
6648 * ipa-inline.h: New file.
6649 * ipa-inline-analysis.c: New file. Broken out of ...
6650 * ipa-inline.c: ... this file; update toplevel comment;
6651 include ipa-inline.h
6652 (inline_summary): Move to ipa-inline.h
6653 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6654 ipa-inline-analysis.c.
6655 (cgraph_estimate_time_after_inlining): Rename to
6656 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6657 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6658 to estimate_edge_growth.
6659 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6660 rename to estimate_size_after_inlining.
6661 (cgraph_mark_inline_edge): Update for new naming convention.
6662 (cgraph_check_inline_limits): Likewise.
6663 (cgraph_edge_badness): Likewise.
6664 (cgraph_decide_recursive_inlining): Likewise.
6665 (cgraph_decide_inlining_of_small_functions): Likewise.
6666 (cgraph_decide_inlining_incrementally): Likewise.
6667 (cgraph_estimate_growth): Rename to estimate_growth; move to
6668 ipa-inline-analysis.c.
6669 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6670 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6671 (compute_inline_parameters): Likewise.
6672 (compute_inline_parameters_for_current): Likewise.
6673 (pass_inline_parameters): Likewise.
6674 (inline_indirect_intraprocedural_analysis): Likewise.
6675 (analyze_function): Rename to inline_analyze_function; likewise.
6676 (add_new_function): Move to ipa-inline-analysis.c.
6677 (inline_generate_summary): Likewise.
6678 (inline_read_summary): Likewise.
6679 (inline_write_summary): Likewise.
6680 * Makefile.in (ipa-inline-analysis.c): New file.
6681
6682 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6683
6684 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6685 * configure: Regenerate.
6686
6687 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6688
6689 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6690 instead of tree_common.
6691 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6692 Likewise.
6693 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6694 TS_TYPED rather than TS_COMMON.
6695 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6696
6697 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6698
6699 PR target/45263
6700 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6701 r20 around calls of __tablejump_elpm__
6702
6703 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6704
6705 PR middle-end/48591
6706 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6707 NULL.
6708 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6709
6710 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6711
6712 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6713 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6714 (cfi_vec): New typedef.
6715 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6716 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6717 (cie_cfi_vec): New static variable.
6718 (cie_cfi_head): Delete.
6719 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6720 declaration changed. Use vector rather than list operations.
6721 (new_cfi): Don't initialize the dw_cfi_next field.
6722 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6723 rather than list operations.
6724 (lookup_cfa): Use vector rather than list operations.
6725 (output_cfis): New argument upto. Accept a cfi_vec rather than
6726 a dw_cfi_ref list head as argument. All callers changed.
6727 Iterate over the vector using upto as a maximum index.
6728 (output_all_cfis): New static function.
6729 (output_fde): Use vector rather than list operations. Use the
6730 new upto argument for output_cfis rather than manipulating a
6731 list.
6732 (dwarf2out_begin_prologue): Change initializations to match
6733 new struct members.
6734 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6735 from the vector length rather than searching for the end of a list.
6736 Use output_all_cfis.
6737 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6738
6739 2011-04-13 Nick Clifton <nickc@redhat.com>
6740
6741 * config/rx/rx.md (movmemsi): Do not use this pattern when
6742 volatile pointers are involved.
6743
6744 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6745
6746 * config/i386/sse.md (pinsrbits): Remove.
6747 (sse2_packsswb): Merge with *avx_packsswb.
6748 (sse2_packssdw): Merge with *avx_packssdw.
6749 (sse2_packuswb): Merge with *avx_packuswb.
6750 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6751 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6752 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6753 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6754 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6755 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6756 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6757 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6758 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6759 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6760 (sse2_loadld): Merge with *avx_loadld.
6761 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6762 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6763 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6764 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6765 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6766
6767 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6768
6769 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6770 calling TREE_CHAIN.
6771 * print-tree.c (print_node): Likewise.
6772 * tree-inline.c (copy_tree_r): Likewise.
6773 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6774 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6775 instead of TS_COMMON.
6776 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6777 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6778 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6779 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6780 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6781 ...and these...
6782 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6783 * tree.h: ...here.
6784 (TREE_CHAIN): Check for a TS_COMMON structure.
6785 (TREE_TYPE): Check for a TS_TYPED structure.
6786
6787 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6788
6789 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6790 cgraph_get_create_node instead of cgraph_node.
6791
6792 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6793
6794 * c-parser.c (c_parser_initelt): Updated call to
6795 objc_build_message_expr.
6796 (c_parser_postfix_expression): Likewise.
6797
6798 2011-04-12 Kai Tietz <ktietz@redhat.com>
6799
6800 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6801 MASK_MS_BITFIELD_LAYOUT bit.
6802
6803 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6804
6805 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6806 assert it is always true.
6807 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6808 moves.
6809
6810 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6811
6812 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6813 compiling Objective-C to be more efficient.
6814
6815 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6816
6817 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6818 argv_copied.
6819
6820 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6821
6822 * recog.h, genoutput.c, optabs.c: Revert last patch.
6823
6824 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6825
6826 PR target/48090
6827 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6828
6829 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6830
6831 * recog.h (insn_operand_data): Add an "allows_mem" field.
6832 * genoutput.c (output_operand_data): Initialize it.
6833 * optabs.c (maybe_legitimize_operand_same_code): New function.
6834 (maybe_legitimize_operand): Use it when matching the original
6835 op->value.
6836
6837 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6838
6839 * genpreds.c (process_define_predicate): Move most processing
6840 to gensupport.c. Continue to validate the expression.
6841 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6842 (process_define_predicate): Move processing to gensupport.c.
6843 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6844 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6845 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6846 argument.
6847 (valid_predicate_name_p): New function, split out from old
6848 genpreds.c:process_define_predicate.
6849 (process_define_predicate): New function, combining code from
6850 old genpreds.c and genrecog.c functions.
6851 (process_rtx): Call it for DEFINE_PREDICATE and
6852 DEFINE_SPECIAL_PREDICATE.
6853
6854 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6855
6856 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6857 size of a '%A' memory reference.
6858 (T_DREG, T_QREG): New neon_builtin_type_bits.
6859 (arm_init_neon_builtins): Assert that the load and store operands
6860 are neon_struct_operands.
6861 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6862 (NEON_ARG_MEMORY): New builtin_arg.
6863 (neon_dereference_pointer): New function.
6864 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6865 Handle NEON_ARG_MEMORY.
6866 (arm_expand_neon_builtin): Update after above interface changes.
6867 Use NEON_ARG_MEMORY for loads and stores.
6868 * config/arm/predicates.md (neon_struct_operand): New predicate.
6869 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6870 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6871 (V_four_elem): Tweak formatting.
6872 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6873 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6874 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6875 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6876 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6877 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6878 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6879 Use %A in the output template.
6880 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6881 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6882 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6883 the width of the memory access. Remove post-increment.
6884 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6885
6886 2011-04-12 Nick Clifton <nickc@redhat.com>
6887
6888 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6889 instruction for interrupt handlers if the target is the basic V850
6890 architecture.
6891 (expand_epilogue): Likewise.
6892
6893 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6894
6895 PR rtl-optimization/48549
6896 * combine.c (propagate_for_debug): Also stop after BB_END of
6897 this_basic_block. Process LAST and just stop processing after it.
6898 (combine_instructions): If last_combined_insn has been deleted,
6899 set last_combined_insn to its PREV_INSN.
6900
6901 2011-04-12 Richard Guenther <rguenther@suse.de>
6902
6903 PR tree-optimization/46076
6904 * gimple.h (struct gimple_statement_call): Add fntype field.
6905 (gimple_call_fntype): Adjust.
6906 (gimple_call_set_fntype): New function.
6907 * gimple.c (gimple_build_call_1): Set the call function type.
6908 * gimplify.c (gimplify_call_expr): Preserve the function
6909 type the frontend used for the call.
6910 (gimplify_modify_expr): Likewise.
6911 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6912 function type.
6913 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6914 function type.
6915 * tree-ssa.c (useless_type_conversion_p): Function pointer
6916 conversions are useless.
6917
6918 2011-04-12 Martin Jambor <mjambor@suse.cz>
6919
6920 * cgraph.h (cgraph_node): Remove function declaration.
6921 (cgraph_create_node): Declare.
6922 (cgraph_get_create_node): Likewise.
6923 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6924 Updated all callers.
6925 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6926 the decl does not already exist. Call cgraph_get_create_node instead
6927 of cgraph_node.
6928 (cgraph_get_create_node): New function.
6929 (cgraph_same_body_alias): Update comment.
6930 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6931 assert it does not return NULL.
6932 (cgraph_update_edges_for_call_stmt): Likewise.
6933 (cgraph_clone_edge): Likewise.
6934 (cgraph_create_virtual_clone): Likewise.
6935 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6936 instead of cgraph_node.
6937 (cgraph_add_new_function): Call cgraph_create_node or
6938 cgraph_get_create_node instead of cgraph_node.
6939 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6940 instead of cgraph_node.
6941 (record_eh_tables): Likewise.
6942 (mark_address): Likewise.
6943 (mark_load): Likewise.
6944 (build_cgraph_edges): Call cgraph_get_create_node instead
6945 of cgraph_node.
6946 (rebuild_cgraph_edges): Likewise.
6947 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6948 instead of cgraph_node.
6949 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6950 cgraph_node.
6951 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6952 cgraph_create_node instead of cgraph_node.
6953 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6954 of cgraph_node.
6955 * lto-cgraph.c (input_node): Likewise.
6956 * lto-streamer-in.c (input_function): Likewise.
6957 * varasm.c (mark_decl_referenced): Likewise.
6958 (assemble_alias): Likewise.
6959
6960 2011-04-12 Martin Jambor <mjambor@suse.cz>
6961
6962 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6963 instead of cgraph_node and assert it does not return NULL.
6964 * lto-streamer-in.c (lto_read_body): Likewise.
6965 * omp-low.c (new_omp_context): Likewise.
6966 (create_task_copyfn): Likewise.
6967 * tree-emutls.c (lower_emutls_function_body): Likewise.
6968 * matrix-reorg.c (transform_allocation_sites): Likewise.
6969
6970 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6971
6972 PR c/48552
6973 * c-typeck.c (build_asm_expr): Error out on attempts to use
6974 void type outputs or inputs for constraints that allow reg or
6975 don't allow memory.
6976
6977 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6978 Richard Earnshaw <rearnsha@arm.com>
6979
6980 PR target/48250
6981 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6982 to use sign-magnitude offsets. Reject unsupported unaligned
6983 cases. Add detailed description in comments.
6984 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6985 condition from TARGET_32BIT to TARGET_ARM.
6986
6987 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6988
6989 * tree.h (struct typed_tree): New.
6990 (struct tree_common): Include it instead of tree_base.
6991 (TREE_TYPE): Update for new location of type field.
6992 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6993 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6994 (union tree_node): Add typed field.
6995 * treestruct.def (TS_TYPED): New.
6996 * lto-streamer.c (check_handled_ts_structures): Handle it.
6997 * tree.c (MARK_TS_TYPED): New macro.
6998 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6999
7000 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7001
7002 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7003 (force_nonfallthru): Do not alter the loop nest if no basic block
7004 was created.
7005
7006 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7007
7008 * config/i386/sse.md (VI): New mode iterator.
7009 (SSEMODEI): Remove.
7010 (AVX256MODEI): Ditto.
7011 (AVXMODEF4P): Ditto.
7012 (avxvecpsmode): Ditto.
7013 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7014 (sse2_andnot<mode>3): New expander.
7015 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7016 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7017 (<any_logic:code><mode>3): Use VI mode iterator.
7018 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7019 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7020 (*andnottf3): Handle AVX three-operand constraints.
7021 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7022
7023 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7024 Robert Millan <rmh@gnu.org>
7025
7026 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7027 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7028 GNU_USER_DYNAMIC_LINKER64): Define.
7029 (REG_NAME): Don't undefine.
7030 (MD_UNWIND_SUPPORT): Undefine.
7031 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7032 (REG_NAME): Don't undefine.
7033 (MD_UNWIND_SUPPORT): Undefine.
7034 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7035
7036 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7037
7038 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7039 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7040
7041 2011-04-11 Xinliang David Li <davidxl@google.com>
7042
7043 * value-profile.c (check_ic_target): New function.
7044 (gimple_ic_transform): Sanity check indirect call target.
7045 * gimple-low.c (gimple_check_call_args): Interface change.
7046 (gimple_check_call_matching_types): New function.
7047 * tree-inline.c (tree_can_inline_p): Call new function.
7048
7049 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7050
7051 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7052 tree-pretty-print.h & realmpfr.h.
7053
7054 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7055
7056 PR middle-end/48464
7057 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7058 (setup_allocno_and_important_classes): Ditto.
7059
7060 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7061
7062 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7063 GNU_USER_DYNAMIC_LINKER.
7064 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7066 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7067 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7068 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7069 GNU_USER_TARGET_OS_CPP_BUILTINS.
7070 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7071 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7072 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7073 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7074 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7075 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7076 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7077 GNU_USER_TARGET_OS_CPP_BUILTINS.
7078 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7079 GNU_USER_DYNAMIC_LINKER.
7080 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7081 GNU_USER_TARGET_OS_CPP_BUILTINS.
7082 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7083 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7084 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7086 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7087 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7088 GNU_USER_DYNAMIC_LINKER64): Remove.
7089 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7090 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7091 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7092 GNU_USER_DYNAMIC_LINKER.
7093 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7094 GNU_USER_TARGET_OS_CPP_BUILTINS.
7095 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7096 GNU_USER_TARGET_OS_CPP_BUILTINS.
7097 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7098 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7099 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7100 GNU_USER_TARGET_OS_CPP_BUILTINS.
7101 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7102 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7103 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7104 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7106 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7107 GNU_USER_DYNAMIC_LINKER.
7108 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7109 GNU_USER_TARGET_OS_CPP_BUILTINS.
7110 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7112 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7113 GNU_USER_DYNAMIC_LINKER.
7114 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7115 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7116 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7117 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7118 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7119 GNU_USER_DYNAMIC_LINKER.
7120 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7121 GNU_USER_DYNAMIC_LINKERN32.
7122 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7123 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7124 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7125 GNU_USER_DYNAMIC_LINKER32.
7126 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7127 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7128 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7129 GNU_USER_DYNAMIC_LINKER.
7130 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7131 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7132 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7133 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7134 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7135 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7136 GNU_USER_DYNAMIC_LINKER32.
7137 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7138 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7139 GNU_USER_DYNAMIC_LINKER.
7140 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7141 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7142 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7143 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7144 GNU_USER_DYNAMIC_LINKER64.
7145 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7146 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7147 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7148 GNU_USER_DYNAMIC_LINKER.
7149 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7150 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7151 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7152 GNU_USER_DYNAMIC_LINKER.
7153 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7155 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7156 GNU_USER_DYNAMIC_LINKER32.
7157 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7158 GNU_USER_DYNAMIC_LINKER64.
7159 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7160 GNU_USER_DYNAMIC_LINKER64.
7161 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7162 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7163 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7164 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7165 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7166
7167 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7168
7169 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7170 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7171 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7172 GNU_USER_DYNAMIC_LINKER.
7173 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7174 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7175 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7176 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7177 GNU_USER_DYNAMIC_LINKER64.
7178 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7179 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7180 GNU_USER_LINK_EMULATION.
7181 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7182 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7183 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7184 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7185 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7186 CPP_SPEC, CC1_SPEC): Remove.
7187 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7188 (GNU_USER_DYNAMIC_LINKER): Define.
7189 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7190 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7191 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7192 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7193 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7194 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7195 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7196 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7197 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7198 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7199 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7200 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7201 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7202 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7203 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7204 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7205 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7206 GNU_USER_DYNAMIC_LINKER.
7207 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7208 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7209 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7210 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7211 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7212 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7213 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7214 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7215 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7216 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7217
7218 2011-04-11 Kai Tietz <ktietz@redhat.com>
7219
7220 PR target/9601
7221 PR target/11772
7222 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7223 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7224 comment.
7225 (ix86_is_msabi_thiscall): Removed.
7226 (ix86_is_type_thiscall): Likewise.
7227 (ix86_get_callcvt): New function.
7228 (ix86_comp_type_attributes): Simplify check.
7229 (ix86_function_regparm): Use ix86_get_callcvt for calling
7230 convention attribute checks.
7231 (ix86_return_pops_args): Likewise.
7232 (ix86_static_chain): Likewise.
7233 (x86_this_parameter): Likewise.
7234 (x86_output_mi_thunk): Likewise.
7235 (ix86_function_type_abi): Optimize check for types without attributes.
7236 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7237 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7238 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7239 by flag-values.
7240 (IX86_BASE_CALLCVT): Helper macro.
7241 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7242 Use ix86_get_callcvt for calling convention attribute checks and avoid
7243 symbol-decoration for stdcall in TARGET_RTD case.
7244 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7245 Likewise.
7246 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7247 for declaration.
7248
7249 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7250
7251 * config/i386/sse.md (VI_128): New mode iterator.
7252 (VI12_128): Rename from SSEMODE12.
7253 (VI14_128): Rename from SSEMODE14.
7254 (VI124_128): New mode iterator.
7255 (VI24_128): Rename from SSEMODE248.
7256 (VI248_128): Rename from SSEMODE248.
7257 (SSEMODE124C8): Remove.
7258 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7259 (*sse2_<plusminus_insn><mode>3): Merge with
7260 *avx_<plusminus_insn><mode>3.
7261 (*mulv8hi3): Merge with *avx_mulv8hi3.
7262 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7263 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7264 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7265 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7266 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7267 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7268 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7269 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7270 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7271 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7272 (*<smaxmin:code>v8hi3): Ditto.
7273 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7274 (*<smaxmin:code>v16qi3): Ditto.
7275 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7276 (*sse2_eq<mode>3): Ditto.
7277 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7278 (*sse2_gt<mode>3): Ditto.
7279 (vcondv2di): Split out of vcond<mode>.
7280 (vconduv2di): Split out of vcondu<mode>.
7281
7282 2011-04-11 Richard Guenther <rguenther@suse.de>
7283
7284 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7285 before calling tree_low_cst.
7286
7287 2011-04-11 Richard Guenther <rguenther@suse.de>
7288
7289 * stor-layout.c (layout_type): Compute all array index size operations
7290 in the original type.
7291 (initialize_sizetypes): Add comment.
7292 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7293
7294 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7295
7296 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7297
7298 2011-04-11 Martin Jambor <mjambor@suse.cz>
7299
7300 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7301 of cgraph_node, handle NULL return value.
7302 (cgraph_global_info): Likewise.
7303 (cgraph_rtl_info): Likewise.
7304 * tree-inline.c (estimate_num_insns): Likewise.
7305 * gimplify.c (unshare_body): Likewise.
7306 (unvisit_body): Likewise.
7307 (gimplify_body): Likewise.
7308 * predict.c (optimize_function_for_size_p): Likewise.
7309 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7310 (call_may_clobber_ref_p_1): Likewise.
7311 * varasm.c (function_section_1): Likewise.
7312 (assemble_start_function): Likewise.
7313
7314 2011-04-11 Martin Jambor <mjambor@suse.cz>
7315
7316 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7317 of cgraph_node.
7318 * final.c (rest_of_clean_state): Likewise.
7319 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7320 * passes.c (pass_init_dump_file): Likewise.
7321 (execute_all_ipa_transforms): Likewise.
7322 (function_called_by_processed_nodes_p): Likewise.
7323 * predict.c (maybe_hot_frequency_p): Likewise.
7324 (probably_never_executed_bb_p): Likewise.
7325 (compute_function_frequency): Likewise.
7326 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7327 (unnest_nesting_tree_1): Likewise.
7328 (lower_nested_functions): Likewise.
7329 * tree-optimize.c (execute_fixup_cfg): Likewise.
7330 (tree_rest_of_compilation): Likewise.
7331 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7332 * tree-sra.c (ipa_early_sra): Likewise.
7333 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7334 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7335 * ipa.c (record_cdtor_fn): Likewise.
7336 * ipa-inline.c (cgraph_early_inlining): Likewise.
7337 (compute_inline_parameters_for_current): Likewise.
7338 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7339 * ipa-pure-const.c (local_pure_const): Likewise.
7340 * ipa-split.c (split_function): Likewise.
7341 (execute_split_functions): Likewise.
7342 * cgraphbuild.c (build_cgraph_edges): Likewise.
7343 (rebuild_cgraph_edges): Likewise.
7344 (cgraph_rebuild_references): Likewise.
7345 (remove_cgraph_callee_edges): Likewise.
7346 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7347 (verify_cgraph_node): Likewise.
7348 (cgraph_analyze_functions): Likewise.
7349 (cgraph_preserve_function_body_p): Likewise.
7350 (save_inline_function_body): Likewise.
7351 (save_inline_function_body): Likewise.
7352 * tree-inline.c (copy_bb): Likewise.
7353 (optimize_inline_calls): Likewise.
7354
7355 2011-04-11 Martin Jambor <mjambor@suse.cz>
7356
7357 PR tree-optimization/48195
7358 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7359 ipa_check_create_edge_args.
7360 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7361 ipa_check_create_edge_args.
7362 * ipa-inline.c (inline_generate_summary): Do not call
7363 ipa_check_create_node_params and ipa_check_create_edge_args.
7364 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7365 ipa_check_create_edge_args.
7366
7367 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7368
7369 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7370 instead of loop.
7371 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7372 * function.c (record_hard_reg_sets): Likewise.
7373 * ira.c (compute_regs_asm_clobbered): Likewise.
7374 * sched-deps.c (sched_analyze_1): Likewise.
7375 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7376
7377 2011-04-09 Xinliang David Li <davidxl@google.com>
7378
7379 PR tree-optimization/PR48484
7380 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7381 has_valid_pred lazily
7382
7383 2011-04-09 Duncan Sands <baldrick@free.fr>
7384
7385 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7386
7387 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7388
7389 * combine.c (combine_validate_cost): Adjust comments. Set registered
7390 cost of I0 to zero at the end, if any.
7391
7392 2011-04-08 Xinliang David Li <davidxl@google.com>
7393
7394 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7395 to insane profile data.
7396
7397 2011-04-08 Xinliang David Li <davidxl@google.com>
7398
7399 * ipa-cp.c (ipcp_update_profiling): Correct
7400 negative scale factor due to insane profile data.
7401
7402 2011-04-08 Xinliang David Li <davidxl@google.com>
7403
7404 * final.c (dump_basic_block_info): New function.
7405 (final): Dump basic block.
7406 (final_scan_insn): Remove old dump.
7407
7408 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7409
7410 PR target/47829
7411 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7412 crtbegin/crtend.
7413
7414 2011-04-08 Michael Matz <matz@suse.de>
7415
7416 PR middle-end/48389
7417 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7418 functions.
7419 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7420 * rtl.h (rebuild_jump_labels_chain): Declare.
7421 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7422 insns inserted on edges.
7423
7424 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7425
7426 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7427 * config/arm/arm-arches.def: New.
7428 * config/arm/arm-opts.h: New.
7429 * config/arm/genopt.sh: New.
7430 * config/arm/arm-tables.opt: New (generated).
7431 * config/arm/arm.c (arm_handle_option, arm_target_help,
7432 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7433 (all_architectures): Get most table contents from arm-arches.def.
7434 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7435 arm_selected_tune here.
7436 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7437 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7438 (march=, mcpu=, mtune=): Use Enum and Var.
7439 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7440 (arm.o): Update dependencies.
7441
7442 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7443
7444 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7445 of header_file.
7446 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7447 (write_typed_alloc_defns): Likewise.
7448 (main): Calls write_typed_alloc_defns with output_header.
7449
7450 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7451
7452 PR inline-asm/48435
7453 * ira-color.c (setup_profitable_hard_regs): Add comments.
7454 Don't take prohibited hard regs into account.
7455 (setup_conflict_profitable_regs): Rename to
7456 get_conflict_profitable_regs.
7457 (check_hard_reg_p): Check prohibited hard regs.
7458
7459 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7460
7461 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7462 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7463 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7464
7465 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7466
7467 PR target/48366
7468 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7469 move from floating point to shift amount register.
7470 (emit_move_sequence): Remove secondary reload support for floating
7471 point to shift amount amount register copies.
7472 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7473 amount register copies.
7474 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7475 register, return false if mode isn't a scalar integer mode.
7476 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7477
7478 2011-04-08 Richard Guenther <rguenther@suse.de>
7479
7480 * gimple.c (gimple_call_flags): Remove kludge.
7481
7482 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7483
7484 * sel-sched.c (sel_region_init): Move call to
7485 sel_setup_region_sched_flags after setup_current_loop_nest.
7486
7487 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7488
7489 PR rtl-optimization/48272
7490 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7491 init_insn_reg_pressure_info. Adjust a caller.
7492 * sched-int.h (init_insn_reg_pressure_info): Declare.
7493 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7494 when sched-pressure is enabled.
7495
7496 2011-04-08 Richard Guenther <rguenther@suse.de>
7497
7498 * gimple.c (gimple_set_modified): Do not queue calls to
7499 MODIFIED_NORETURN_CALLS here ...
7500 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7501
7502 2011-04-08 Richard Guenther <rguenther@suse.de>
7503
7504 PR lto/48467
7505 * toplev.c (lang_dependent_init): Do not open asm_out_file
7506 in WPA mode, nor perform debug machinery initialization.
7507 (finalize): Do not unlink asm_out_file in WPA mode.
7508
7509 2011-04-08 Richard Guenther <rguenther@suse.de>
7510
7511 * gimple.h (gimple_call_fntype): New function.
7512 (gimple_call_return_type): Use it.
7513 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7514 * gimple-low.c (gimple_check_call_args): Likewise.
7515 * gimple.c (gimple_call_flags): Likewise.
7516 (gimple_call_arg_flags): Likewise.
7517 (gimple_call_return_flags): Likewise.
7518 * tree-cfg.c (verify_gimple_call): Likewise.
7519 (do_warn_unused_result): Likewise.
7520 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7521 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7522
7523 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7524
7525 PR rtl-optimization/48235
7526 * sel-sched.c (code_motion_process_successors): Recompute the last
7527 insn in basic block if control flow changed.
7528 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7529 Update condition for ilist_remove.
7530
7531 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7532
7533 PR rtl-optimization/48302
7534 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7535 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7536 it to record added preheader blocks.
7537 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7538 on to sel_add_loop_preheaders.
7539 (sel_region_init): Move call to setup_current_loop_nest after
7540 sel_init_bbs.
7541
7542 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7543
7544 PR target/48273
7545 * cfgloop.h (loop_has_exit_edges): New helper.
7546 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7547 non-clonable.
7548 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7549 that have no exit edges.
7550
7551 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7552
7553 PR rtl-optimization/48442
7554 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7555 all callers. Adjust assert.
7556
7557 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7558
7559 PR tree-optimization/48377
7560 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7561 is_packed to true even for types with smaller TYPE_ALIGN than
7562 TYPE_SIZE.
7563
7564 2011-04-08 Richard Guenther <rguenther@suse.de>
7565
7566 PR bootstrap/48513
7567 * doc/tm.texi: Re-generate.
7568
7569 2011-04-08 Wei Guozhi <carrot@google.com>
7570
7571 PR target/47855
7572 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7573 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7574 * config/arm/arm.md (*push_multi): Change the length computation to
7575 call a C function.
7576
7577 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7578
7579 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7580 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7581 * doc/tm.texi: Regenerate.
7582 * system.h (ASM_OUTPUT_BSS): Poison.
7583 * varasm.c (asm_output_bss): Remove function.
7584 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7585
7586 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7587 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7588 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7589 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7590 Likewise.
7591 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7592 Likewise.
7593 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7594 Likewise.
7595 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7596
7597 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7598
7599 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7600 EnumValue lines.
7601
7602 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7603
7604 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7605 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7606 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7607 OPT_mcpu32.
7608 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7609 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7610 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7611 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7612 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7613 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7614 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7615 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7616 options. Don't map other m68k options manually. Don't handle
7617 old-style options as canonical.
7618 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7619 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7620
7621 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7622
7623 * basic-block.h (force_nonfallthru): Move to...
7624 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7625 (force_nonfallthru): ...here.
7626 * cfghooks.c (force_nonfallthru): New function.
7627 * cfgrtl.c (force_nonfallthru): Rename into...
7628 (rtl_force_nonfallthru): ...this.
7629 (commit_one_edge_insertion): Do not set AUX field.
7630 (commit_edge_insertions): Do not discover new basic blocks.
7631 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7632 (cfg_layout_rtl_cfg_hooks): Likewise.
7633 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7634 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7635 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7636
7637 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7638
7639 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7640 Remove macros.
7641
7642 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7643
7644 * config/i386/sse.md: Update copyright year.
7645 (avxcvtvecmode): Remove.
7646 (sse_movhlps): Merge with *avx_movhlps.
7647 (sse_movlhps): Merge with *avx_movlhps.
7648 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7649 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7650 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7651 (sse_loadhps): Merge with *avx_loadhps.
7652 (sse_storelps): Merge with *avx_storelps.
7653 (sse_loadlps): Merge with *avx_loadlps.
7654 (sse_movss): Merge with *avx_movss.
7655 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7656 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7657 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7658 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7659 (vec_set<mode>_0): Ditto.
7660 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7661 (sse4_1_insertps): Merge with *avx_insertps.
7662 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7663 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7664 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7665 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7666 (sse2_storehpd): Merge with *avx_storehpd.
7667 (sse2_loadhpd): Merge with *avx_loadhpd.
7668 (sse2_loadlpd): Merge with *avx_loadlpd.
7669 (sse2_movsd): Merge with *avx_movsd.
7670 (*vec_concatv2df): Merge with *vec_concatv2df.
7671
7672 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7673
7674 PR debug/48343
7675 * combine.c (combine_instructions): Add last_combined_insn,
7676 update it if insn is after it, pass it to all try_combine calls.
7677 (try_combine): Add last_combined_insn parameter, pass it instead of
7678 i3 to propagate_for_debug.
7679
7680 2011-04-07 Nick Clifton <nickc@redhat.com>
7681
7682 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7683 to handle MDR <-> data register transfers.
7684 (movhi_internal): Likewise.
7685
7686 2011-04-07 Alan Modra <amodra@gmail.com>
7687
7688 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7689 previous stack info.
7690
7691 2011-04-07 Tom de Vries <tom@codesourcery.com>
7692
7693 PR target/43920
7694 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7695 flow_find_cross_jump. Swap variables to implement backward replacement.
7696 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7697
7698 2011-04-07 Tom de Vries <tom@codesourcery.com>
7699
7700 PR target/43920
7701 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7702 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7703 and bb2.
7704 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7705 src1 or src2. Redirect edges to the last basic block. Update
7706 frequency and count on multiple basic blocks in case of fallthru.
7707
7708 2011-04-07 Tom de Vries <tom@codesourcery.com>
7709
7710 PR target/43920
7711 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7712 function.
7713 (old_insns_match_p): Change return type. Replace return false/true
7714 with return dir_none/dir_both. Use can_replace_by.
7715 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7716 direction from dir_p. Register replacement direction in dir, last_dir
7717 and afterlast_dir. Handle new return type of old_insns_match_p using
7718 merge_dir. Return replacement direction in dir_p.
7719 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7720 return type of old_insns_match_p.
7721 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7722 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7723 flow_find_cross_jump.
7724 * basic-block.h (enum replace_direction): New type.
7725 (flow_find_cross_jump): Add parameter to declaration.
7726
7727 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7728
7729 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7730 (AVXMODEDCVTPS2DQ): Ditto.
7731 (VEC_FLOAT_MODE): Ditto.
7732 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7733 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7734 (<any_logic:code><mode>3): Use VF mode iterator.
7735 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7736 Use VF mode iterator.
7737 (copysign<mode>3): Use VF mode iterator.
7738 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7739 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7740 (*<any_logic:code><MODEF:mode>3): Merge with
7741 *avx_<any_logic:code><MODEF:mode>3.
7742 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7743 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7744 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7745 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7746 (sse2_cvtdq2ps): Use %v modifier.
7747 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7748 (avx_cvtps2dq<avxmodesuffix>): Remove.
7749 (sse2_cvtps2dq): Use %v modifier.
7750 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7751 (avx_cvttps2dq<avxmodesuffix>): Remove.
7752 (sse2_cvttps2dq): Use %v modifier.
7753 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7754 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7755 (sse2_cvtsd2siq): Fix insn template.
7756 (sse2_cvtsd2siq_2): Ditto.
7757 (sse2_cvttsd2siq): Ditto.
7758 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7759 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7760
7761 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7762
7763 * gcov-io.c: Use GCC Runtime Library Exception.
7764
7765 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7766
7767 PR debug/48466
7768 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7769 as base_reg whatever register reg has been eliminated to, instead
7770 of hardcoding STACK_POINTER_REGNUM.
7771
7772 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7773
7774 * doc/tm.texi.in: Document C target hooks as separate from general
7775 target hooks.
7776 * doc/tm.texi: Regenerate.
7777 * genhooks.c (struct hook_desc): Add docname field.
7778 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7779 docname field.
7780 (hook_array): Include c-target.def.
7781 (emit_documentation): Use docname field in output.
7782 (emit_init_macros): Take docname argument. Only emit definitions
7783 for hooks matching docname.
7784 (main): Expect additional arguments in all cases. Pass argument
7785 to emit_init_macros.
7786 * target.def: Move initial macro definitions and comments to
7787 target-hooks-macros.h.
7788 (gcc_targetcm): Move to c-family/c-target.def.
7789 * target.h (targetcm): Move declaration to c-family/c-target.h.
7790 * targhooks.c (default_handle_c_option): Move to
7791 c-family/c-opts.c.
7792 * targhooks.h (default_handle_c_option): Move declaration to
7793 c-family/c-common.h.
7794 * target-hooks-macros.h: New file.
7795 * config.gcc (target_has_targetcm): Define and use to add to
7796 c_target_objs and cxx_target_objs.
7797 * config/default-c.c: New file.
7798 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7799 of target.h and target-def.h.
7800 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7801 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7802 darwin_check_cfstring_format_arg): Make static.
7803 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7804 TARGET_STRING_OBJECT_REF_TYPE_P,
7805 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7806 * config/darwin-protos.h (darwin_objc_construct_string,
7807 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7808 declare.
7809 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7810 TARGET_STRING_OBJECT_REF_TYPE_P,
7811 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7812 * config/t-darwin (darwin-c.o): Update dependencies.
7813 * system.h (TARGET_HAS_TARGETCM): Poison.
7814 * Makefile.in (TARGET_H): Update.
7815 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7816 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7817 (default-c.o): New target.
7818 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7819 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7820 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7821 c-target.def.
7822 (build/genhooks.o): Update dependencies.
7823
7824 2011-04-06 Richard Guenther <rguenther@suse.de>
7825
7826 * ipa-inline.c (enum inlining_mode): Remove.
7827 (cgraph_flatten): Use some other token.
7828 (cgraph_edge_early_inlinable_p): New function, split out from ...
7829 (cgraph_perform_always_inlining): New function, split out from ...
7830 (cgraph_decide_inlining_incrementally): ... here.
7831 (cgraph_mark_inline_edge): Adjust.
7832 (cgraph_early_inlining): Re-structure.
7833 (pass_early_inline): Require SSA form.
7834
7835 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7836 Julian Brown <julian@codesourcery.com>
7837 Mark Shinwell <shinwell@codesourcery.com>
7838
7839 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7840 LO_REGS only for Thumb-1.
7841 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7842 be used in short instructions when optimising for size on Thumb-2.
7843
7844 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7845
7846 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7847 associated with user returns to be preserved.
7848
7849 2011-04-06 Tristan Gingold <gingold@adacore.com>
7850
7851 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7852 symbol_queue_size, DBXOUT_DECR_NESTING,
7853 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7854 if XCOFF_DEBUGGING_INFO.
7855
7856 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7857
7858 * config/i386/i386.md (attribute isa): New.
7859 (attribute enabled): New.
7860 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7861 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7862 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7863 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7864 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7865 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7866 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7867 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7868
7869 * config/i386/sse.md (VF): New mode iterator.
7870 (VF1): Ditto.
7871 (VF2): Ditto.
7872 (VF_128): Ditto.
7873 (SSEMODEF4): Remove.
7874 (attribute sse): Handle V8SF and V4DF modes.
7875 (<absneg:code><mode>2): Use VF mode iterator.
7876 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7877 mode iterator.
7878 (<plusminus_insn><mode>3): Use VF mode iterator.
7879 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7880 Use VF mode iterator.
7881 (<sse>_vm<plusminus_insn><mode>3): Merge with
7882 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7883 (mul<mode>3): Use VF mode iterator.
7884 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7885 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7886 mode iterator.
7887 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7888 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7889 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7890 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7891 mode iterator.
7892 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7893 Use VF1 mode iterator.
7894 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7895 (sqrt<VF2:mode>2): New expander.
7896 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7897 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7898 and sqrtv2df2. Use VF mode iterator.
7899 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7900 mode iterator.
7901 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7902 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7903 Use VF1 mode iterator.
7904 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7905 (<smaxmin:code><mode>3): Use VF mode iterator.
7906 (*<smaxmin:code><mode>3_finite): Merge with
7907 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7908 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7909 (<sse>_vm<smaxmin:code><mode>2): Merge with
7910 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7911 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7912 mode iterator.
7913 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7914 mode iterator.
7915 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7916 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7917 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7918 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7919 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7920 VF mode iterator.
7921 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7922 Use VF_128 mode iterator.
7923 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7924 mode iterator.
7925 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7926 VF_128 mode iterator.
7927 (vcond<mode>): Use VF mode iterator.
7928 * config/i386/predicates.md (sse_comparison_operator): Merge with
7929 avx_comparison_float_operator. Do not declare as special_predicate.
7930 * config/i386/i386.c (struct builtin_description): Update for renamed
7931 compare patterns.
7932 (ix86_expand_args_builtin): Ditto.
7933 (ix86_expand_sse_compare_mask): Ditto.
7934
7935 2011-04-06 Richard Guenther <rguenther@suse.de>
7936
7937 * tree-inline.c (estimate_num_insns): For calls simply account
7938 for all passed arguments and a used return value.
7939
7940 2011-04-06 Richard Guenther <rguenther@suse.de>
7941
7942 PR tree-optimization/47663
7943 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7944 call_stmt_time fields.
7945 (cgraph_edge_inlinable_p): Declare.
7946 (cgraph_edge_recursive_p): New inline function.
7947 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7948 (cgraph_clone_edge): Copy it.
7949 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7950 Account for call stmt time.
7951 (cgraph_estimate_time_after_inlining): Take edge argument.
7952 (cgraph_estimate_edge_growth): Account call stmt size.
7953 (cgraph_estimate_size_after_inlining): Take edge argument.
7954 (cgraph_mark_inline_edge): Adjust.
7955 (cgraph_check_inline_limits): Likewise.
7956 (cgraph_recursive_inlining_p): Remove.
7957 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7958 (cgraph_decide_recursive_inlining): Take edge argument and
7959 adjust.
7960 (cgraph_decide_inlining_of_small_functions): Do not avoid
7961 diags for recursive inlining here.
7962 (cgraph_flatten): Adjust.
7963 (cgraph_decide_inlining_incrementally): Likewise.
7964 (estimate_function_body_sizes): Remove call cost handling.
7965 (compute_inline_parameters): Initialize caller edge call costs.
7966 (cgraph_estimate_edge_growth): New function.
7967 (cgraph_estimate_growth): Use it.
7968 (cgraph_edge_badness): Likewise.
7969 (cgraph_check_inline_limits): Take an edge argument.
7970 (cgraph_decide_inlining_of_small_functions): Adjust.
7971 (cgraph_decide_inlining): Likewise.
7972 * tree-inline.c (estimate_num_insns): Only account for call
7973 return value if it is used.
7974 (expand_call_inline): Avoid diagnostics on recursive inline
7975 functions here.
7976 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7977 (input_edge): Input edge call costs.
7978
7979 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7980
7981 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7982
7983 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7984
7985 * doc/invoke.texi (Spec Files): Fix typo.
7986
7987 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7988
7989 * profile.c (branch_prob): Move declaration of local variable. Remove
7990 obsolete ??? comment. Expand the location explicitly instead of using
7991 the LOCATION_FILE and LOCATION_LINE macros.
7992
7993 2011-04-06 Wei Guozhi <carrot@google.com>
7994
7995 PR target/47855
7996 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7997 (arm_cond_branch): Likewise.
7998 (arm_cond_branch_reversed): Likewise.
7999 (arm_jump): Likewise.
8000 (push_multi): Likewise.
8001 * config/arm/constraints.md (Py): New constraint.
8002
8003 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8004
8005 PR bootstrap/48471
8006 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8007 Move these...
8008 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8009 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8010 #ifdef DBX_DEBUGGING_INFO.
8011
8012 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8013
8014 PR bootstrap/48403
8015 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8016 if old and new states differ.
8017
8018 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8019
8020 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8021 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8022 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8023 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8024 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8025 mcfv4e): Use Alias.
8026 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8027 ColdFire options to -mcpu= options.
8028
8029 2011-04-05 Jeff Law <law@redhat.com>
8030
8031 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8032 check if BB is a successor of LOOP->header and return
8033 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8034
8035 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8036
8037 * cprop.c (struct reg_use): Remove.
8038 (reg_use_table): Make an array of RTX.
8039 (find_used_regs, constprop_register, local_cprop_pass,
8040 bypass_block): Simplify users of reg_use_table.
8041 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8042 on one of the uses found by find_used_regs.
8043
8044 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8045
8046 PR bootstrap/48469
8047 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8048 declaration.
8049
8050 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8051
8052 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8053 as an rtx.
8054 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8055
8056 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8057
8058 PR middle-end/48441
8059 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8060
8061 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8062
8063 * combine.c: Include obstack.h.
8064 (struct insn_link): Define.
8065 (uid_log_links): Adjust type.
8066 (FOR_EACH_LOG_LINK): New macro.
8067 (insn_link_obstack): Declare.
8068 (alloc_insn_link): Define.
8069 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8070 type of link variables.
8071 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8072 (try_combine, record_promoted_values, distribute_notes): Likewise.
8073 (distribute_links): Likewise. Tweak prototype.
8074 (clear_log_links): Delete.
8075 (adjust_for_new_dest): Call alloc_insn_link.
8076 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8077
8078 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8079
8080 * gcse.c (modify_mem_list): Convert to an array of VECs.
8081 (canon_modify_mem_list, compute_transp): Tweak formatting.
8082 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8083 (load_killed_in_block_p): Likewise.
8084 (record_last_mem_set_info): Likewise.
8085 (clear_modify_mem_tables): Likewise.
8086
8087 2011-04-05 Tom de Vries <tom@codesourcery.com>
8088
8089 PR middle-end/48461
8090 * function.c (emit_use_return_register_into_block): Only define if
8091 HAVE_return.
8092
8093 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8094
8095 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8096
8097 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8098
8099 * config/rx/rx-opts.h: New.
8100 * config/rx/rx.c (rx_cpu_type): Remove.
8101 (rx_handle_option): Don't assert that global structures are in
8102 use. Access variables via opts pointer. Defer most handling of
8103 OPT_mint_register_. Use error_at.
8104 (rx_option_override): Handle deferred OPT_mint_register_ here.
8105 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8106 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8107 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8108 (rx_cpu_types): New Enum and EnumValue entries.
8109 (mint-register=): Use Defer and use Var accordingly.
8110
8111 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8112
8113 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8114 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8115 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8116 Move these...
8117 (debug_free_queue, debug_nesting, symbol_queue_index):
8118 ...and these...
8119 * dbxout.c: ...to here. Make static.
8120
8121 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8122
8123 * gcse.c (modify_pair): Define. Define a VEC of it.
8124 (canon_modify_mem_list): Convert to an array of VECs.
8125 (free_insn_expr_list_list): Delete.
8126 (clear_modify_mem_tables): Call VEC_free instead.
8127 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8128 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8129 (canon_list_insert, compute_transp): Likewise.
8130
8131 2011-04-05 Tom de Vries <tom@codesourcery.com>
8132
8133 PR target/43920
8134 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8135 for size.
8136
8137 2011-04-05 Tom de Vries <tom@codesourcery.com>
8138
8139 PR target/43920
8140 * function.c (emit_use_return_register_into_block): New function.
8141 (thread_prologue_and_epilogue_insns): Use
8142 emit_use_return_register_into_block.
8143
8144 2011-04-05 Tom de Vries <tom@codesourcery.com>
8145
8146 PR target/43920
8147 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8148 insn.
8149
8150 2011-04-05 Tom de Vries <tom@codesourcery.com>
8151
8152 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8153
8154 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8155
8156 * config/arm/arm.md (define_constants for unspec): Replace with
8157 define_c_enum.
8158 (define_constants for unspecv): Replace with define_c_enum.
8159 * config/arm/neon.md (define_constants for unspec): Replace with
8160 define_c_enum.
8161
8162 2011-04-04 Richard Henderson <rth@redhat.com>
8163
8164 PR bootstrap/48400
8165 * dwarf2out.c (output_line_info): Always emit line info from
8166 at least one section.
8167 (dwarf2out_init): Create text_section_line_info here ...
8168 (set_cur_line_info_table): ... not here.
8169
8170 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8171
8172 PR target/48380
8173 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8174 not called.
8175
8176 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8177
8178 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8179
8180 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8181 (expr_equiv_p): Remove.
8182 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8183 (hash_scan_set): Update call to insert_set_in_table.
8184 (dump_hash_table): Dump <dest, src> pair.
8185 (lookup_set): Simplify. Lookup <dest, src> pair.
8186 (compute_transp): Remove, fold heavily simplified code into...
8187 (compute_local_properties): ...here. Expect COMP and TRANSP
8188 unconditionally.
8189 (find_avail_set): Take set directly from struct expr.
8190 (find_bypass-set): Likewise.
8191 (bypass_block): Likewise.
8192 (cprop_insn): Likewise. Remove redundant INSN_P test.
8193
8194 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8195 checks on form of COND from find_implicit_sets to here.
8196 (find_implicit_sets): Cleanup control flow. Split critical edges
8197 if it exposes implicit sets. Allocate/resize implicit_sets as
8198 necessary.
8199 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8200 changed something. Run df_analyze after find_implicit_sets if any
8201 edges were split. Do not allocate implicit_sets here.
8202
8203 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8204 (gcse_obstack): Renamed to cprop_obstack.
8205 (GNEW, GNEWVEC, GNEWVAR): Remove.
8206 (gmalloc): Remove.
8207 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8208 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8209 (gcse_alloc): Likewise, and rename to cprop_alloc.
8210 (alloc_gcse_men, free_gcse_mem): Remove.
8211 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8212 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8213 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8214
8215 * cprop.c (oprs_not_set_p): Remove.
8216 (mark_set, mark_clobber): Remove.
8217 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8218 (reg_not_set_p): New function.
8219 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8220 (cprop_insn): Likewise.
8221 (cprop_jump): Use FOR_EACH_EDGE.
8222
8223 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8224
8225 PR bootstrap/48403
8226 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8227 (rank_for_schedule): Use scheduled_insns vector instead of
8228 last_scheduled_insn.
8229 (ok_for_early_queue_removal): Likewise.
8230 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8231 we have a dbg_cnt.
8232 (choose_ready): Likewise.
8233 (commit_schedule): Use VEC_iterate.
8234 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8235 a dbg_cnt, use it and ensure the first insn is in the ready list.
8236 (haifa_sched_init): Allocate scheduled_insns.
8237 (sched_extend_ready_list): Don't allocate it; reserve space.
8238 (haifa_sched_finish): Free it.
8239
8240 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8241
8242 * optc-gen.awk: Always remove type from Variable entry before
8243 recording in var_seen.
8244
8245 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8246
8247 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8248 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8249 call to tidy_fallthru_edges.
8250
8251 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8252
8253 * doc/options.texi (ToLower): Document.
8254 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8255 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8256 * opts.h (cl_option): Add cl_tolower field.
8257 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8258 arguments with lowercase strings.
8259 * config/rx/rx.opt (mcpu=): Add ToLower.
8260 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8261 argument.
8262
8263 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8264
8265 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8266
8267 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8268
8269 * config/vax/vax.c: Include reload.h.
8270
8271 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8272
8273 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8274 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8275 (sparc_preferred_reload_class): New function.
8276
8277 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8278
8279 PR debug/48401
8280 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8281 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8282
8283 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8284
8285 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8286 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8287
8288 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8289
8290 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8291 (ASM_OUTPUT_ALIGNED_BSS): Define.
8292
8293 2011-04-03 Michael Matz <matz@suse.de>
8294
8295 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8296 and next_slot members.
8297 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8298 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8299 (lto_streamer_cache_append): Declare.
8300 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8301 unsigned index, remove offset parameter, ensure that we append
8302 or update existing entries.
8303 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8304 parameter, update next_slot for append.
8305 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8306 parameter.
8307 (lto_streamer_cache_insert_at): Likewise.
8308 (lto_streamer_cache_append): New function.
8309 (lto_streamer_cache_lookup): Use unsigned index.
8310 (lto_streamer_cache_get): Likewise.
8311 (lto_record_common_node): Don't test tree_node_can_be_shared.
8312 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8313 (lto_streamer_cache_delete): Don't free offsets member.
8314 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8315 (lto_output_string_with_length): Use lto_output_data_stream.
8316 (lto_output_tree_header): Remove ix parameter, don't write it.
8317 (lto_output_builtin_tree): Likewise.
8318 (lto_write_tree): Adjust callers to above, don't track and write
8319 offset, write unsigned index.
8320 (output_unreferenced_globals): Don't emit all global vars.
8321 (write_global_references): Use unsigned indices.
8322 (lto_output_decl_state_refs): Likewise.
8323 (write_symbol): Likewise.
8324 * lto-streamer-in.c (lto_input_chain): Move earlier.
8325 (input_function): Use unsigned index.
8326 (input_alias_pairs): Don't read and then ignore all global vars.
8327 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8328 don't pass it back, use lto_streamer_cache_append.
8329 (lto_register_var_decl_in_symtab): Use unsigned index.
8330 (lto_register_function_decl_in_symtab): Likewise.
8331 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8332 index.
8333 (lto_get_builtin_tree): Don't read index, use
8334 lto_streamer_cache_append.
8335 (lto_read_tree): Adjust call to lto_materialize_tree.
8336
8337 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8338 don't use function calls in arguments to MIN.
8339
8340 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8341 twice.
8342
8343 * gimple.c (gimple_type_leader_entry): Mark deletable.
8344
8345 2011-04-03 Alan Modra <amodra@gmail.com>
8346
8347 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8348
8349 2011-04-03 Michael Matz <matz@suse.de>
8350
8351 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8352 an integer.
8353 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8354
8355 2011-04-03 Michael Matz <matz@suse.de>
8356
8357 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8358 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8359 without function context.
8360 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8361 current_function_decl and cfun.
8362
8363 2011-04-03 Michael Matz <matz@suse.de>
8364
8365 * tree.c (decl_init_priority_insert): Don't create entry for
8366 default priority.
8367 (decl_fini_priority_insert): Ditto.
8368 (fields_compatible_p, find_compatible_field): Remove.
8369 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8370 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8371
8372 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8373
8374 * combine.c (try_combine): Remove useless local variable.
8375
8376 2011-04-03 Richard Guenther <rguenther@suse.de>
8377 Ira Rosen <ira.rosen@linaro.org>
8378
8379 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8380 non-variable offsets and compare the remaining bases of the two
8381 accesses instead of looking for exact same data-ref.
8382
8383 2011-04-02 Kai Tietz <ktietz@redhat.com>
8384
8385 PR target/48416
8386 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8387
8388 * i386.c (ix86_is_msabi_thiscall): New helper function.
8389 (ix86_is_type_thiscall): New helper function.
8390 (ix86_comp_type_attributes): Handle thiscall for method-functions
8391 special.
8392 (init_cumulative_args): Likewise.
8393 (find_drap_reg): Likewise.
8394 (ix86_static_chain): Likewise.
8395 (x86_this_parameter): Likewise.
8396 (x86_output_mi_thunk): Likewise.
8397
8398 2011-04-01 Olivier Hainque <hainque@adacore.com>
8399 Nicolas Setton <setton@adacore.com>
8400 Eric Botcazou <ebotcazou@adacore.com>
8401
8402 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8403 (add_gnat_descriptive_type_attribute): New function.
8404 (gen_array_type_die): Call it.
8405 (gen_enumeration_type_die): Likewise.
8406 (gen_struct_or_union_type_die): Likewise.
8407 (modified_type_die): Likewise.
8408 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8409 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8410 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8411
8412 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8413
8414 PR bootstrap/48148
8415 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8416 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8417
8418 Revert:
8419 2011-03-17 Richard Guenther <rguenther@suse.de>
8420
8421 PR bootstrap/48148
8422 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8423 origin for decls in other ltrans units.
8424 (input_varpool_node): Likewise.
8425
8426 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8427
8428 PR middle-end/48335
8429 * expr.c (expand_assignment): Handle all possibilities
8430 if TO_RTX is CONCAT.
8431 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8432 (store_split_bit_field): If SUBREG_REG (op0) or
8433 op0 itself has smaller mode than word, return it
8434 for offset 0 and const0_rtx for out-of-bounds stores.
8435 If word is const0_rtx, skip it.
8436
8437 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8438
8439 * config/h8300/h8300.c (print_operand_address): Rename to...
8440 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8441 Call h8300_print_operand and h8300_print_operand_address instead of
8442 print_operand and print_operand_address. Declare.
8443 (print_operand): Renake to...
8444 (h8300_print_operand): ...this. Make static. Adjust comments.
8445 Call h8300_print_operand instead of print_operand. Declare.
8446 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8447 (h8300_register_move_cost): Likewise.
8448 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8449 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8450 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8451 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8452 * config/h8300/h8300-protos.h (print_operand): Delete.
8453 (print_operand_address): Delete.
8454
8455 2011-04-01 Richard Henderson <rth@redhat.com>
8456
8457 PR 48400
8458 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8459 in strict mode before dwarf4. Re-order tests to early out
8460 before switching sections.
8461
8462 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8463
8464 * config/h8300/constraints.md: New file.
8465 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8466 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8467 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8468 * config/h8300/predicates.md (bit_operand): Likewise.
8469 (incdec_operand): Use satisfies_constraint_M and
8470 satisfies_constraint_O. Don't use C code block.
8471 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8472 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8473 (compute_mov_length): Use satisfies_constraint_G.
8474 (fix_bit_operand): Use satisfies_constraint_U.
8475 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8476 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8477 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8478 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8479 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8480 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8481 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8482 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8483 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8484 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8485 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8486 (EXTRA_MEMORY_CONSTRAINT): Delete.
8487
8488 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8489 Michael Meissner <meissner@linux.vnet.ibm.com>
8490
8491 PR target/48262
8492 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8493 operands, as per the specifications.
8494
8495 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8496 (vec_extract_evenv4sf): Ditto.
8497 (vec_extract_evenv8hi): Ditto.
8498 (vec_extract_evenv16qi): Ditto.
8499 (vec_extract_oddv4si): Ditto.
8500
8501 2011-03-31 Mark Wielaard <mjw@redhat.com>
8502
8503 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8504 high_pc attribute if the CU has no associated code. Only output
8505 DW_AT_entry_pc for CU if not generating strict dwarf and
8506 dwarf_version < 4.
8507
8508 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8509
8510 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8511 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8512 out of ...
8513 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8514 * final.c (final_start_function): Call the new function rather
8515 than using a NULL argument for dwarf2out_frame_debug.
8516
8517 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8518 that contains the prologue.
8519
8520 * haifa-sched.c (queue_insn): New arg REASON. All callers
8521 changed. Print it in debugging output.
8522
8523 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8524
8525 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8526 Split most of the code into...
8527 (begin_move_insn): ... here. New function.
8528 (ebb_sched_info): Add a pointer to it.
8529 * haifa-sched.c (scheduled_insns): New static variable.
8530 (sched_extend_ready_list): Allocate it.
8531 (schedule_block): Use it to record the order of scheduled insns.
8532 Perform RTL changes to move insns only after all scheduling
8533 decisions have been made.
8534 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8535 begin_move_insn field.
8536 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8537 * sched-int.h (struct haifa_sched_info): Remove second argument
8538 from begin_schedule_ready hook. Add new member begin_move_insn.
8539 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8540 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8541
8542 * haifa-sched.c (prune_ready_list): New function, broken out of
8543 schedule_block.
8544 (schedule_block): Use it.
8545
8546 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8547
8548 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8549
8550 2011-04-01 Kai Tietz <ktietz@redhat.com>
8551
8552 * config.gcc (*-*-mingw*): Allow as option the
8553 posix threading model.
8554 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8555 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8556 definition.
8557 (CPP_SPEC): Add pthread/no-pthread handling.
8558 (LIB_SPEC): Likewise.
8559 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8560 (LIB_SPEC): Likewise.
8561 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8562 flag to pass -pthread option for shared libgcc build.
8563 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8564 for shared libgcc build.
8565 * config/i386/t-mingw-pthread: New file.
8566 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8567 New define to enable use of library pthread by default.
8568 * config/i386/mingw.opt (pthread): New driver option.
8569 (no-pthread): New driver option.
8570 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8571 * config/i386/mingw-w64.opt: Likewise.
8572
8573 2011-04-01 Gary Funck <gary@intrepid.com>
8574
8575 * c-decl.c (grokdeclarator): Fix formatting.
8576
8577 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8578
8579 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8580 instead of n_operands.
8581 (set_storage_via_setmem): Likewise.
8582 * optabs.c (maybe_gen_insn): Likewise.
8583 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8584 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8585 (mips_expand_builtin_direct): Likewise.
8586 * config/spu/spu.c (expand_builtin_args): Likewise.
8587
8588 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8589
8590 * recog.h (insn_data_d): Add n_generator_args.
8591 * genoutput.c (data): Likewise.
8592 (output_insn_data): Print it.
8593 (max_opno, num_dups): Delete.
8594 (scan_operands): Just fill in "d->operand[...]".
8595 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8596
8597 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8598
8599 * gensupport.h (pattern_stats): New structure.
8600 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8601 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8602 (max_operand_1, max_operand_vec): Delete.
8603 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8604
8605 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8606
8607 * emit-rtl.c (emit_pattern_after_setloc): New function.
8608 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8609 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8610 (emit_pattern_after): New function.
8611 (emit_insn_after, emit_jump_insn_after): Call it.
8612 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8613 (emit_pattern_before_setloc): New function.
8614 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8615 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8616 Likewise.
8617 (emit_pattern_before): New function.
8618 (emit_insn_before, emit_jump_insn_before): Call it.
8619 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8620
8621 2011-03-31 Richard Henderson <rth@redhat.com>
8622
8623 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8624 (dw_separate_line_info_entry): Remove.
8625 (enum dw_line_info_opcode): New.
8626 (dw_line_info_entry): Use it.
8627 (dw_line_info_table, dw_line_info_table_p): New.
8628 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8629 (line_info_table, line_info_label_num): Remove.
8630 (line_info_table_in_use): Remove.
8631 (separate_line_info_table): Remove.
8632 (separate_line_info_table_allocated): Remove.
8633 (separate_line_info_table_in_use): Remove.
8634 (LINE_INFO_TABLE_INCREMENT): Remove.
8635 (line_info_label_num): New.
8636 (cur_line_info_table): New.
8637 (text_section_line_info, cold_text_section_line_info): New.
8638 (separate_line_info): New.
8639 (SEPARATE_LINE_CODE_LABEL): Remove.
8640 (print_dwarf_line_table): Remove.
8641 (debug_dwarf): Don't dump it.
8642 (output_one_line_info_table): New.
8643 (output_line_info): Use it.
8644 (new_line_info_table): New.
8645 (set_cur_line_info_table): New.
8646 (dwarf2out_switch_text_section): Use it.
8647 (dwarf2out_begin_function): Likewise.
8648 (push_dw_line_info_entry): New.
8649 (dwarf2out_source_line): Rewrite for new line info tables.
8650 (dwarf2out_init): Remove dead initailizations.
8651
8652 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8653
8654 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8655 various flags.
8656 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8657 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8658 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8659 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8660 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8661 * opt-functions.awk (flag_init, switch_bit_fields): New.
8662 (switch_flags): Don't handle flags moved to bit-fields. Don't
8663 generate CL_MISSING_OK or CL_SAVE.
8664 * optc-gen.awk: Update to generate bit-field output as well as
8665 flags field.
8666 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8667 bit-field instead of CL_REJECT_DRIVER flag.
8668 * opts-common.c (generate_canonical_option,
8669 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8670 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8671 instead of CL_REJECT_NEGATIVE flag.
8672 * toplev.c (print_switch_values): Use cl_report bit-field instead
8673 of CL_REPORT flag.
8674
8675 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8676
8677 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8678 a zero minimum index only if it is redundant.
8679
8680 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8681
8682 PR rtl-optimization/48381
8683 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8684 instead of ira_class_hard_reg_index for calculating conflicting
8685 hard registers.
8686
8687 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8688
8689 * cprop.c: Clean up hash table building.
8690 (reg_avail_info): Remove.
8691 (oprs_available_p): Remove.
8692 (record_last_reg_set_info): Remove.
8693 (record_last_set_info): Remove.
8694 (reg_available_p): New function.
8695 (gcse_constant_p): Do not treat unfolded conditions as constants.
8696 (make_set_regs_unavailable): New function.
8697 (hash_scan_set): Simplify with new reg_available_p.
8698 (compute_hash_table_work): Traverse insns stream only once.
8699 Do not compute reg_avail_info. Traverse insns in reverse order.
8700 Record implicit sets after recording explicit sets from the block.
8701
8702 2011-03-31 Michael Matz <matz@suse.de>
8703
8704 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8705
8706 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8707
8708 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8709 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8710 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8711 (h8300_mode_dependent_address_p): New function.
8712 (h8300_get_index): Make static.
8713
8714 2011-03-31 Jeff Law <law@redhat.com>
8715
8716 * reload1.c (elimination_effects): Fix typo in recent change.
8717
8718 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8719 typo potentially leading to null pointer dereference.
8720
8721 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8722 (setup_save_areas): Corresponding changes to avoid useless
8723 assignments.
8724
8725 * jump.c (reversed_comparison_code_parts): Avoid successive return
8726 statements when REVERSE_CONDITION is defined.
8727
8728 * expr.c (expand_assignment): Avoid useless assignments.
8729 (expand_expr_real_1): Likewise.
8730 (expand_expr_real_2): Avoid useless statements.
8731
8732 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8733
8734 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8735
8736 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8737 statements.
8738
8739 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8740
8741 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8742
8743 PR target/47109
8744 * doc/tm.texi.in (TARGET_VERSION): Remove.
8745 * doc/tm.texi: Regenerate.
8746 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8747 * collect2.c (main): Don't use TARGET_VERSION.
8748 * mips-tdump.c (main): Don't use TARGET_VERSION.
8749 * mips-tfile.c (main): Don't use TARGET_VERSION.
8750 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8751 * config/rs6000/vxworksae.h: Remove.
8752 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8753 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8754 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8755 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8756 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8757 * config/arm/arm.h (TARGET_VERSION): Remove.
8758 * config/arm/coff.h (TARGET_VERSION): Remove.
8759 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8760 * config/arm/elf.h (TARGET_VERSION): Remove.
8761 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8762 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8763 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8764 * config/arm/pe.h (TARGET_VERSION): Remove.
8765 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8766 * config/arm/semi.h (TARGET_VERSION): Remove.
8767 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8768 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8769 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8770 * config/avr/avr.h (TARGET_VERSION): Remove.
8771 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8772 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8773 * config/frv/frv.h (TARGET_VERSION): Remove.
8774 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8775 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8776 * config/i386/darwin.h (TARGET_VERSION): Remove.
8777 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8778 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8779 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8780 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8781 * config/i386/gnu.h (TARGET_VERSION): Remove.
8782 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8783 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8784 * config/i386/linux.h (TARGET_VERSION): Remove.
8785 * config/i386/linux64.h (TARGET_VERSION): Remove.
8786 * config/i386/lynx.h (TARGET_VERSION): Remove.
8787 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8788 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8789 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8790 * config/i386/netware.h (TARGET_VERSION): Remove.
8791 * config/i386/nto.h (TARGET_VERSION): Remove.
8792 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8793 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8794 * config/ia64/elf.h (TARGET_VERSION): Remove.
8795 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8796 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8797 * config/ia64/linux.h (TARGET_VERSION): Remove.
8798 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8799 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8800 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8801 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8802 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8803 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8804 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8805 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8806 * config/m68k/linux.h (TARGET_VERSION): Remove.
8807 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8808 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8809 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8810 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8811 * config/mep/mep.h (TARGET_VERSION): Remove.
8812 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8813 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8814 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8815 * config/mips/linux.h (TARGET_VERSION): Remove.
8816 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8817 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8818 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8819 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8820 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8821 * config/pa/pa.h (TARGET_VERSION): Remove.
8822 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8823 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8824 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8825 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8826 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8827 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8828 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8829 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8830 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8831 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8832 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8833 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8834 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8835 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8836 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8837 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8838 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8839 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8840 * config/s390/linux.h (TARGET_VERSION): Remove.
8841 * config/s390/s390.h (TARGET_VERSION): Remove.
8842 * config/s390/tpf.h (TARGET_VERSION): Remove.
8843 * config/score/score.h (TARGET_VERSION): Remove.
8844 * config/sh/linux.h (TARGET_VERSION): Remove.
8845 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8846 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8847 * config/sh/sh.h (TARGET_VERSION): Remove.
8848 * config/sh/sh64.h (TARGET_VERSION): Remove.
8849 * config/sh/superh.h (TARGET_VERSION): Remove.
8850 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8851 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8852 * config/sparc/linux.h (TARGET_VERSION): Remove.
8853 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8854 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8855 TARGET_NAME32, TARGET_NAME): Remove.
8856 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8857 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8858 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8859 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8860 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8861 * config/spu/spu.h (TARGET_VERSION): Remove.
8862 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8863 * config/v850/v850.h (TARGET_VERSION): Remove.
8864 * config/vax/linux.h (TARGET_VERSION): Remove.
8865 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8866 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8867 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8868
8869 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8870
8871 PR target/48142
8872 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8873 frame-related from frame-unrelated adjustments to the stack pointer.
8874
8875 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8876
8877 * common.opt (fdebug-types-section): Move earlier.
8878 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8879
8880 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8881
8882 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8883 var.
8884
8885 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8886
8887 * tree.h (CASE_CHAIN): Define.
8888 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8889 (gimple_redirect_edge_and_branch): Likewise.
8890
8891 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8892
8893 PR middle-end/48367
8894 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8895 calculation.
8896
8897 2011-03-30 Jeff Law <law@redhat.com>
8898
8899 * PR bootstrap/48371
8900 * reload1.c (reload): Fix botch in last change.
8901
8902 * reload.h (struct reload): Fix typo introduced in last change.
8903
8904 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8905
8906 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8907 Undocumented. Remove help text.
8908 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8909 -mhard-float.
8910
8911 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8912
8913 * doc/options.texi (NegativeAlias): Document.
8914 (Alias): Mention NegativeAlias.
8915 * opt-functions.awk: Handle NegativeAlias.
8916 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8917 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8918 * opts.h (CL_NEGATIVE_ALIAS): Define.
8919 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8920 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8921 OPT_mspe_.
8922 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8923 Alias entries.
8924 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8925 mno-spe and mno-isel instead of mspe=no and -misel=no.
8926
8927 2011-03-29 Mark Wielaard <mjw@redhat.com>
8928
8929 * common.opt (fdebug-types-section): New flag.
8930 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8931 * dwarf2out.c (use_debug_types): New define.
8932 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8933 (print_die): Guard output of type unit signatures using
8934 use_debug_types.
8935 (build_abbrev_table): Replace assert of dwarf_version >= 4
8936 with assert on use_debug_types.
8937 (size_of_die): Likewise.
8938 (unmark_dies): Likewise.
8939 (value_format): Decide AT_ref_external form on use_debug_types.
8940 (output_die): Replace dwarf_version version check guard with
8941 use_debug_types where appropriate.
8942 (modified_type_die): Likewise.
8943 (gen_reference_type_die): Likewise.
8944 (dwarf2out_start_source_file): Likewise.
8945 (dwarf2out_end_source_file): Likewise.
8946 (prune_unused_types_walk_attribs): Likewise.
8947 (dwarf2out_finish): Likewise.
8948
8949 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8950
8951 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8952
8953 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8954
8955 PR rtl-optimization/48332
8956 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8957 mode of input operand N and modeN to its actual mode.
8958
8959 2011-03-30 Jeff Law <law@redhat.com>
8960
8961 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8962 define accessor macro.
8963 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8964 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8965 (reg_equiv_init): Likewise.
8966 (reg_equivs_size): New variable.
8967 (reg_equiv_init_size): Remove.
8968 (allocate_initial_values): Move prototype to here from....
8969 * integrate.h (allocate_initial_values): Remove prototype.
8970 * integrate.c: Include reload.h.
8971 (allocate_initial_values): Corresponding changes.
8972 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8973 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8974 (update_equiv_regs): Corresponding changes.
8975 (ira): Corresponding changes.
8976 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8977 (push_secondary_reload): Corresponding changes.
8978 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8979 (make_memloc, find_reloads_address): Corresponding changes.
8980 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8981 (find_reloads_address_1): Corresponding changes.
8982 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8983 (refers_to_regno_for_reload_p): Corresponding changes.
8984 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8985 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8986 * reload1.c: Include ggc.h.
8987 (grow_reg_equivs): New function.
8988 (replace_pseudos_in, reload): Corresponding changes.
8989 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8990 (eliminate_regs_1, elimination_effects): Corresponding changes.
8991 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8992 (delete_output_reload): Likewise.
8993 * caller-save.c (mark_referenced_regs): Corresponding changes.
8994 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8995 * frv/predicates.md (frv_load_operand): Corresponding changes.
8996 * microblaze/microblaze.c (double_memory_operand): Corresponding
8997 changes.
8998 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8999 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9000 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9001 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9002 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9003 changes.
9004 * pa/pa.c (emit_move_sequence): Corresponding changes.
9005 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9006
9007 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9008
9009 PR target/47551
9010 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9011 structure modes. Don't check neon_vector_mem_operand for
9012 vector or structure modes.
9013
9014 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9015 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9016
9017 PR target/43590
9018 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9019 operand 1 and reshuffle the operands to match.
9020 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9021
9022 2011-03-30 Christian Schüler <cschueler@gmx.de>
9023
9024 PR driver/48208
9025 * config/c.opt (F): Added 'Driver' to -F option.
9026
9027 PR driver/48260
9028 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9029 handler function.
9030 * config/darwin.opt: Added '-arch' option.
9031
9032 2011-03-30 Nick Clifton <nickc@redhat.com>
9033
9034 * config/rx/rx.md: Add peepholes and patterns to combine
9035 extending loads and simple arithmetic instructions.
9036 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9037 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9038 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9039 modes to use pre-decrement and post-increment addressing.
9040 (rx_is_restricted_memory_address): Add range checking of REG+INT
9041 addresses.
9042 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9043 (rx_memory_move_cost): Adjust cost of stores.
9044 (rx_adjust_insn_length): New function.
9045
9046 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9047
9048 PR c/48305
9049 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9050 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9051 matching arg00/arg01 types.
9052
9053 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9054
9055 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9056 last_location to UNKNOWN_LOCATION.
9057
9058 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9059
9060 PR target/48349
9061 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9062 FLOAT_SSE_REGS.
9063
9064 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9065 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9066
9067 PR bootstrap/48337
9068 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9069 Init(PROCESSOR_V7).
9070 (sparc_cpu): Likewise.
9071 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9072 PROCESSOR_V7.
9073
9074 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9075
9076 PR target/48336
9077 PR middle-end/48342
9078 PR rtl-optimization/48345
9079 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9080 hard regs for given mode from profitable regs when doing secondary
9081 allocation.
9082
9083 2011-03-29 Jeff Law <law@redhat.com>
9084
9085 PR bootstrap/48327
9086 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9087 do_not_duplicate field.
9088 (lookup_redirection_data): Corresponding changes.
9089 (create_duplicates): Always create a template block.
9090 (redirect_edges): Remove code which reused the original block
9091 when it was going to become unreachable code.
9092 (thread_block): Don't set do_not_duplicate field.
9093
9094 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9095
9096 * lto-opts.c (register_user_option_p, lto_register_user_option):
9097 Make type argument unsigned.
9098 * lto-streamer.h (lto_register_user_option): Make type argument
9099 unsigned.
9100 * opth-gen.awk: Make CL_* macros unsigned.
9101 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9102 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9103 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9104 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9105 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9106 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9107 (find_opt): Make lang_mask argument unsigned.
9108
9109 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9110
9111 PR rtl-optimization/48331
9112 PR rtl-optimization/48334
9113 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9114 for any used algorithm.
9115
9116 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9117
9118 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9119 to parent_max.
9120
9121 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9122
9123 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9124 (alpha_option_override): Don't set alpha_sr_alias_set.
9125 (emit_frame_store_1): Use gen_frame_mem rather than calling
9126 set_mem_alias_set.
9127 (alpha_expand_epilogue): Ditto.
9128
9129 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9130
9131 PR tree-optimization/48290
9132 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9133 vectorization, check that relevant phis in the basic block after
9134 the inner loop are really inner loop's exit phis.
9135
9136 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9137
9138 PR debug/48190
9139 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9140 (cached_dw_loc_list_def): New structure.
9141 (cached_dw_loc_list): New typedef.
9142 (cached_dw_loc_list_table): New variable.
9143 (cached_dw_loc_list_table_hash): New function.
9144 (cached_dw_loc_list_table_eq): Likewise.
9145 (add_location_or_const_value_attribute): Take a bool cache_p.
9146 Cache the list when the parameter is true.
9147 (gen_formal_parameter_die): Update caller.
9148 (gen_variable_die): Likewise.
9149 (dwarf2out_finish): Likewise.
9150 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9151 while generating debug info for the decl.
9152 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9153 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9154 (resolve_addr): Cache the result of resolving a chain of
9155 location lists.
9156
9157 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9158
9159 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9160 conflict object hard regset nodes have intersecting hard reg sets.
9161
9162 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9163 after regstat_init_n_sets_and_refs.
9164
9165 * ira.c: Add more comments at the top.
9166 (setup_stack_reg_pressure_class, setup_pressure_classes):
9167 Add comments how we compute the register pressure classes.
9168 (setup_allocno_and_important_classes): Add more comments.
9169 (setup_class_translate_array, reorder_important_classes)
9170 (setup_reg_class_relations): Add comments.
9171
9172 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9173 start of the file.
9174
9175 * ira-color.c: Add 2011 to the Copyright line.
9176 (assign_hard_reg): Add more comments.
9177 (improve_allocation): Ditto.
9178
9179 * ira-costs.c: Add 2011 to the Copyright line.
9180 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9181 comments.
9182 (setup_regno_cost_classes_by_mode): Ditto.
9183
9184 Initial patches from ira-improv branch:
9185
9186 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9187
9188 * ira-build.c (ira_create_object): Remove initialization of
9189 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9190 (ira_create_allocno): Remove initialization of
9191 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9192 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9193 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9194 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9195 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9196 Initialize ALLOCNO_ADD_DATA.
9197 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9198 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9199 ALLOCNO_REG.
9200 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9201 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9202
9203 * ira.c (ira_reallocate): Remove.
9204 (setup_pressure_classes): Call
9205 ira_init_register_move_cost_if_necessary. Use
9206 ira_register_move_cost instead of ira_get_register_move_cost.
9207 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9208 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9209
9210 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9211 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9212 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9213 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9214 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9215 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9216 Fix formatting.
9217 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9218 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9219 (struct allocno_color_data): New.
9220 (allocno_color_data_t): New typedef.
9221 (allocno_color_data): New definition.
9222 (ALLOCNO_COLOR_DATA): New macro.
9223 (struct object_color_data): New.
9224 (object_color_data_t): New typedef.
9225 (object_color_data): New definition.
9226 (OBJECT_COLOR_DATA): New macro.
9227 (update_copy_costs, calculate_allocno_spill_cost): Call
9228 ira_init_register_move_cost_if_necessary. Use
9229 ira_register_move_cost instead of ira_get_register_move_cost.
9230 (move_spill_restore, update_curr_costs): Ditto.
9231 (allocno_spill_priority): Make it inline.
9232 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9233 (struct coalesce_data, coalesce_data_t): New.
9234 (allocno_coalesce_data): New definition.
9235 (ALLOCNO_COALESCE_DATA): New macro.
9236 (merge_allocnos, coalesced_allocno_conflict_p): Use
9237 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9238 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9239 (coalesce_allocnos): Ditto.
9240 (setup_coalesced_allocno_costs_and_nums): Ditto.
9241 (collect_spilled_coalesced_allocnos): Ditto.
9242 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9243 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9244 (coalesce_spill_slots): Ditto.
9245 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9246 free allocno_coalesce_data.
9247
9248 * ira-conflicts.c: Fix formatting.
9249 (process_regs_for_copy): Call
9250 ira_init_register_move_cost_if_necessary. Use
9251 ira_register_move_cost instead of ira_get_register_move_cost.
9252 (build_object_conflicts): Optimize.
9253
9254 * ira-costs.c (record_reg_classes): Optimize. Call
9255 ira_init_register_move_cost_if_necessary. Use
9256 ira_register_move_cost, ira_may_move_in_cost, and
9257 ira_may_move_out_cost instead of ira_get_register_move_cost and
9258 ira_get_may_move_cost.
9259 (record_address_regs): Ditto.
9260 (scan_one_insn): Optimize.
9261 (find_costs_and_classes): Optimize.
9262 (process_bb_node_for_hard_reg_moves): Call
9263 ira_init_register_move_cost_if_necessary. Use
9264 ira_register_move_cost instead of ira_get_register_move_cost.
9265
9266 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9267 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9268 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9269 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9270 definitions.
9271 (ira_initiate_emit_data, ira_finish_emit_data)
9272 (create_new_allocno): New functions.
9273 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9274 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9275 Use ira_register_move_cost instead of ira_get_register_move_cost.
9276
9277 * ira-int.h: Fix some comments.
9278 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9279 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9280 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9281 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9282 add_data.
9283 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9284 bitfield after mode. Make hard_regno a short int. Make
9285 hard_regno short. Remove first_coalesced_allocno and
9286 next_coalesced_allocno. Move mem_optimized_dest_p,
9287 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9288 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9289 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9290 temp, colorable_p. Add new member add_data.
9291 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9292 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9293 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9294 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9295 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9296 (ALLOCNO_ADD_DATA): New macro.
9297 (ira_emit_data_t): New typedef.
9298 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9299 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9300 from struct ira_allocno.
9301 (ALLOCNO_EMIT_DATA): New macro.
9302 (ira_allocno_emit_data, allocno_emit_reg): New.
9303 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9304 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9305 (OBJECT_ADD_DATA): New macro.
9306 (ira_reallocate): Remove.
9307 (ira_initiate_emit_data, ira_finish_emit_data): New.
9308 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9309 (ira_init_register_move_cost_if_necessary): New.
9310 (ira_object_conflict_iter_next): Merge into
9311 ira_object_conflict_iter_cond.
9312 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9313
9314 * ira-live.c (process_single_reg_class_operands): Call
9315 ira_init_register_move_cost_if_necessary. Use
9316 ira_register_move_cost instead of ira_get_register_move_cost.
9317
9318 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9319
9320 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9321
9322 * ira-costs.c: Fix formatting.
9323 (cost_classes, cost_classes_num): Remove.
9324 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9325 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9326 (cost_classes_del, cost_classes_htab): New.
9327 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9328 (initiate_regno_cost_classes, setup_cost_classes): New.
9329 (setup_regno_cost_classes_by_aclass): New.
9330 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9331 (record_reg_classes): Use regno_cost_classes instead of
9332 cost_classes. Move checking opposite operand up.
9333 (record_address_regs): Use regno_cost_classes
9334 instead of cost_classes.
9335 (scan_one_insn): Ditto. Use always general register.
9336 (print_allocno_costs): Use regno_cost_classes instead of
9337 cost_classes.
9338 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9339 (find_costs_and_classes): Set up cost classes for each registers.
9340 Use also their mode for this. Use regno_cost_classes instead of
9341 cost_classes.
9342 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9343 cost_classes.
9344 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9345 (ira_costs, ira_set_pseudo_classes): Call
9346 initiate_regno_cost_classes and finish_regno_cost_classes.
9347
9348 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9349
9350 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9351
9352 * target.def (ira_cover_classes): Remove.
9353
9354 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9355
9356 * doc/tm.texi.in: Ditto.
9357
9358 * ira-conflicts.c: Remove mentioning cover classes from the file.
9359 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9360 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9361
9362 * targhooks.c (default_ira_cover_classes): Remove.
9363
9364 * targhooks.h (default_ira_cover_classes): Ditto.
9365
9366 * haifa-sched.c: Remove mentioning cover classes from the file.
9367 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9368 ira_pressure_classes and ira_pressure_classes_num instead of
9369 ira_reg_class_cover_size and ira_reg_class_cover. Use
9370 sched_regno_pressure_class instead of sched_regno_cover_class.
9371 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9372 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9373
9374 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9375 classes from the file.
9376 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9377 (struct object_hard_regs, struct object_hard_regs_node): New.
9378 (struct ira_object): New members profitable_hard_regs,
9379 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9380 (struct ira_allocno): Rename cover_class to aclass. Rename
9381 cover_class_cost and updated_cover_class_cost to class_cost and
9382 updated_class_cost. Remove splay_removed_p and
9383 left_conflict_size. Add new members colorable_p.
9384 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9385 (ALLOCNO_COLORABLE_P): New macro.
9386 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9387 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9388 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9389 (OBJECT_...): Rename parameter C to O.
9390 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9391 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9392 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9393 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9394 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9395 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9396 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9397 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9398 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9399 x_ira_reg_class_subunion.
9400 (ira_max_memory_move_cost, ira_max_register_move_cost)
9401 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9402 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9403 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9404 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9405 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9406 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9407 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9408 (ira_tune_allocno_costs_and_cover_classes): Rename to
9409 ira_tune_allocno_costs.
9410 (ira_debug_hard_regs_forest): New.
9411 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9412 (ira_object_conflict_iter_next): Fix comments.
9413 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9414 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9415 cover_class to aclass.
9416 (ira_allocate_and_accumulate_costs): Ditto.
9417 (ira_allocate_and_set_or_copy_costs): Ditto.
9418
9419 * opts.c (decode_options): Remove ira_cover_class check.
9420
9421 * ira-color.c: Remove mentioning cover classes from the file. Use
9422 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9423 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9424 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9425 (splay-tree.h): Remove include.
9426 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9427 before copy_freq_compare_func.
9428 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9429 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9430 New definitions.
9431 (hard_regs_roots, hard_regs_node_vec): Ditto.
9432 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9433 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9434 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9435 (create_new_object_hard_regs_node): Ditto.
9436 (add_new_object_hard_regs_node_to_forest): Ditto.
9437 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9438 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9439 Ditto.
9440 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9441 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9442 (remove_unused_object_hard_regs_nodes): Ditto.
9443 (enumerate_object_hard_regs_nodes): Ditto.
9444 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9445 (object_hard_regs_subnode_t): Ditto.
9446 (struct object_hard_regs_subnode): Ditto.
9447 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9448 (setup_object_hard_regs_subnode_index): Ditto.
9449 (get_object_hard_regs_subnodes_num): Ditto.
9450 (form_object_hard_regs_nodes_forest): Ditto.
9451 (finish_object_hard_regs_nodes_tree): Ditto.
9452 (finish_object_hard_regs_nodes_forest): Ditto.
9453 (allocnos_have_intersected_live_ranges_p): Rename to
9454 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9455 (pseudos_have_intersected_live_ranges_p): Rename to
9456 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9457 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9458 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9459 (update_copy_costs): Remove assert. Skip cost update if the hard
9460 reg does not belong the class.
9461 (assign_hard_reg): Process only profitable hard regs.
9462 (uncolorable_allocnos_num): Make it scalar.
9463 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9464 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9465 and ira_reg_class_max_nregs.
9466 (bucket_allocno_compare_func): Check frequency first.
9467 (sort_bucket): Add compare function as a parameter.
9468 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9469 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9470 (push_allocno_to_stack): Rewrite for checking new allocno
9471 colorability.
9472 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9473 (push_only_colorable): Pass new parameter to sort_bucket.
9474 (push_allocno_to_spill): Remove.
9475 (allocno_spill_priority_compare): Make it inline and rewrite.
9476 (splay_tree_allocate, splay_tree_free): Remove.
9477 (allocno_spill_sort_compare): New function.
9478 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9479 build and use splay tree. Choose first allocno in uncolorable
9480 allocno bucket to spill. Remove setting spill cost.
9481 (all_conflicting_hard_regs): Remove.
9482 (setup_allocno_available_regs_num): Check only profitable hard
9483 regs. Print info about hard regs nodes.
9484 (setup_allocno_left_conflicts_size): Remove.
9485 (put_allocno_into_bucket): Don't call
9486 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9487 (improve_allocation): New.
9488 (color_allocnos): Call setup_profitable_hard_regs,
9489 form_object_hard_regs_nodes_forest, improve_allocation,
9490 finish_object_hard_regs_nodes_forest. Setup spill cost.
9491 (print_loop_title): Use pressure classes.
9492 (color_allocnso): Ditto.
9493 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9494 and allocnos_for_spilling.
9495 (ira_sort_regnos_for_alter_reg): Don't setup members
9496 {first,next}_coalesced_allocno.
9497 (color): Remove allocating and freeing removed_splay_allocno_vec.
9498 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9499 prohibited_class_mode_regs.
9500
9501 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9502 formatting.
9503 (update_allocno_pressure_excess_length): Use pressure classes.
9504 (inc_register_pressure, dec_register_pressure): Check for pressure
9505 class.
9506 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9507 pressure class. Use ira_reg_class_nregs instead of
9508 ira_reg_class_max_nregs.
9509 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9510 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9511 (single_reg_class): Use ira_reg_class_nregs instead of
9512 ira_reg_class_max_nregs.
9513 (process_bb_node_lives): Use pressure classes.
9514
9515 * ira-emit.c: Remove mentioning cover classes from the file. Use
9516 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9517 (change_loop): Use pressure classes.
9518 (modify_move_list): Call ira_set_allocno_class instead of
9519 ira_set_allocno_cover_class.
9520
9521 * ira-build.c: Remove mentioning cover classes from the file. Use
9522 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9523 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9524 ALLOCNO_UPDATED_CLASS_COST instead of
9525 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9526 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9527 (ira_create_allocno): Remove initialization of
9528 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9529 ALLOCNO_COLORABLE_P.
9530 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9531 Update conflict regs for the objects.
9532 (create_cap_allocno): Remove assert. Don't propagate
9533 ALLOCNO_AVAILABLE_REGS_NUM.
9534 (ira_free_allocno_costs): New function.
9535 (finish_allocno): Change a part of code into call of
9536 ira_free_allocno_costs.
9537 (low_pressure_loop_node_p): Use pressure classes.
9538 (object_range_compare_func): Don't compare classes.
9539 (setup_min_max_conflict_allocno_ids): Ditto.
9540
9541 * loop-invariant.c: Remove mentioning cover classes from the file.
9542 Use ira_pressure_classes and ira_pressure_classes_num instead of
9543 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9544 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9545 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9546 Use reg_allocno_class instead of reg_cover_class.
9547 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9548 STACK_REG_COVER_CLASS.
9549 (get_regno_cover_class): Rename to get_regno_pressure_class.
9550 (move_loop_invariants): Initialize and finalize regstat.
9551
9552 * ira.c: Remove mentioning cover classes from the file. Add
9553 comments about coloring without cover classes. Use ALLOCNO_CLASS
9554 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9555 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9556 setup_class_subset_and_memory_move_costs.
9557 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9558 (setup_cover_and_important_classes): Rename to
9559 setup_allocno_and_important_classes.
9560 (setup_class_translate_array): New.
9561 (setup_class_translate): Call it for allocno and pressure classes.
9562 (cover_class_order): Rename to allocno_class_order.
9563 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9564 of ira_class_translate.
9565 (reorder_important_classes): Set up ira_important_class_nums.
9566 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9567 (print_class_cover): Rename to print_classes. Add parameter.
9568 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9569 Print pressure classes too.
9570 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9571 setup_reg_subclasses.
9572 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9573 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9574 (setup_prohibited_class_mode_regs): Use
9575 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9576 (clarify_prohibited_class_mode_regs): New function.
9577 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9578 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9579 (ira_init_once): Initialize them.
9580 (free_register_move_costs): Process them.
9581 (ira_init): Move calls of find_reg_classes and
9582 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9583 Call clarify_prohibited_class_mode_regs.
9584 (ira_no_alloc_reg): Remove.
9585 (too_high_register_pressure_p): Use pressure classes.
9586
9587 * sched-deps.c: Remove mentioning cover classes from the file.
9588 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9589 ira_pressure_classes and ira_pressure_classes_num instead of
9590 ira_reg_class_cover_size and ira_reg_class_cover.
9591 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9592 sched_regno_pressure_class instead of sched_regno_cover_class.
9593 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9594 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9595
9596 * ira.h: Add 2010 to Copyright.
9597 (ira_no_alloc_reg): Remove external.
9598 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9599 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9600 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9601 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9602 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9603 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9604 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9605 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9606 x_ira_no_alloc_regs.
9607 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9608 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9609 ira_allocno_classes_num and ira_allocno_classes.
9610 (ira_class_translate): Rename to ira_allocno_class_translate.
9611 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9612 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9613 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9614 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9615 (ira_no_alloc_regs): New.
9616
9617 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9618 classes from the file. Use ALLOCNO_CLASS instead of
9619 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9620 ALLOCNO_COVER_CLASS_COST.
9621 (regno_cover_class): Rename to regno_aclass.
9622 (record_reg_classes): Use ira_reg_class_subunion instead of
9623 ira_reg_class_union.
9624 (record_address_regs): Check overflow.
9625 (scan_one_insn): Ditto.
9626 (print_allocno_costs): Print total mem cost fore regional allocation.
9627 (print_pseudo_costs): Use REG_N_REFS.
9628 (find_costs_and_classes): Use classes intersected with them on the
9629 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9630 ira_reg_class_union. Use ira_allocno_class_translate and
9631 regno_aclass instead of ira_class_translate and regno_cover_class.
9632 Modify code for finding regno_aclass. Setup preferred classes for
9633 the next pass.
9634 (setup_allocno_cover_class_and_costs): Rename to
9635 setup_allocno_class_and_costs. Use regno_aclass instead of
9636 regno_cover_class. Use ira_set_allocno_class instead of
9637 ira_set_allocno_cover_class.
9638 (init_costs, finish_costs): Use regno_aclass instead of
9639 regno_cover_class.
9640 (ira_costs): Use setup_allocno_class_and_costs instead of
9641 setup_allocno_cover_class_and_costs.
9642 (ira_tune_allocno_costs_and_cover_classes): Rename to
9643 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9644 by processing objects. Use ira_reg_class_max_nregs instead of
9645 ira_reg_class_nregs.
9646
9647 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9648
9649 * sched-int.h: Remove mentioning cover classes from the file.
9650 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9651
9652 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9653 classes from the file.
9654 (struct reg_pref): Rename coverclass into allocnoclass.
9655 (reg_cover_class): Rename to reg_allocno_class.
9656
9657 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9658
9659 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9660
9661 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9662
9663 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9664
9665 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9666
9667 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9668
9669 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9670
9671 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9672
9673 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9674
9675 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9676
9677 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9678 (i386_ira_cover_classes): Ditto.
9679
9680 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9681
9682 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9683
9684 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9685
9686 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9687
9688 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9689
9690 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9691
9692 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9693 (mips_ira_cover_classes): Ditto.
9694
9695 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9696
9697 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9698
9699 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9700
9701 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9702
9703 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9704
9705 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9706 (IRA_COVER_CLASSES_VSX): Ditto.
9707
9708 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9709 (rs6000_ira_cover_classes): Ditto.
9710
9711 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9712
9713 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9714
9715 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9716
9717 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9718
9719 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9720
9721 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9722
9723 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9724
9725 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9726
9727 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9728
9729 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9730
9731 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9732
9733 PR debug/48253
9734 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9735 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9736 dw_fde_unlikely_section_end_label, cold_in_std_section,
9737 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9738 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9739 fields.
9740 (output_fde): Use dw_fde_second_{begin,end} if second is
9741 true, otherwise dw_fde_{begin,end}.
9742 (output_call_frame_info): Test dw_fde_second_begin != NULL
9743 instead of dw_fde_switched_sections.
9744 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9745 fields, initialize new fields. Initialize in_std_section
9746 unconditionally from the first partition.
9747 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9748 dw_fde_second_begin is non-NULL.
9749 (dwarf2out_switch_text_section): Stop initializing removed
9750 dw_fde_struct fields, initialize new fields, initialize
9751 also dw_fde_end here. Set dw_fde_switch_cfi even when
9752 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9753 (struct var_loc_list_def): Add last_before_switch field.
9754 (arange_table, arange_table_allocated, arange_table_in_use,
9755 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9756 (size_of_aranges): Count !in_std_section and !second_in_std_section
9757 hunks in fdes, instead of looking at arange_table_in_use.
9758 (output_aranges): Add aranges_length argument, don't call
9759 size_of_aranges here. Instead of using aranges_table*
9760 emit ranges for fdes when !in_std_section resp.
9761 !second_in_std_section.
9762 (dw_loc_list): Break ranges crossing section switch.
9763 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9764 use dw_fde_second_end instead of dw_fde_end as end of last range.
9765 (gen_subprogram_die): Don't call add_arange. Use
9766 dw_fde_{begin,end} for first partition and if switched
9767 section dw_fde_second_{begin,end} for the second.
9768 (var_location_switch_text_section_1,
9769 var_location_switch_text_section): New functions.
9770 (dwarf2out_begin_function): Initialize cold_text_section even
9771 when function_section () isn't text_section.
9772 (prune_unused_types): Don't walk arange_table.
9773 (dwarf2out_finish): Don't needlessly test
9774 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9775 If info_section_emitted, call size_of_aranges and if it indicates
9776 non-empty .debug_aranges, call output_aranges with the computed
9777 size. Stop using removed dw_fde_struct fields, use
9778 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9779 for second.
9780
9781 PR debug/48203
9782 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9783 create ENTRY_VALUE if incoming or address of incoming's MEM
9784 is a hard REG.
9785 * dwarf2out.c (mem_loc_descriptor): Don't emit
9786 DW_OP_GNU_entry_value of DW_OP_fbreg.
9787 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9788 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9789 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9790 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9791 ENTRY_VALUE_EXPs.
9792 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9793 is a REG_P or MEM_P with REG_P address, compute hash directly
9794 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9795 (preserve_only_constants): Don't clear VALUES forwaring
9796 ENTRY_VALUE to some other VALUE.
9797
9798 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9799
9800 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9801 instead of GEN_INT.
9802
9803 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9804
9805 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9806 block before expanding the statement.
9807 (expand_gimple_stmt_1): Likewise. Set them here...
9808 (expand_gimple_stmt): ...and not here. Tidy.
9809 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9810 unknown.
9811
9812 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9813
9814 * Makefile.in: New rule for cprop.o.
9815 * gcse.c: Move constant/copy propagation to cprop.c.
9816 (compute_local_properties): Only handle expression tables.
9817 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9818 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9819 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9820 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9821 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9822 compute_cprop_data, find_used_regs, try_replace_reg,
9823 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9824 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9825 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9826 find_bypass_set, reg_killed_on_edge, bypass_block,
9827 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9828 execute_rtl_cprop, pass_rtl_cprop): Move to...
9829 * cprop.c: ...here. New file, constant/copy propagation for RTL
9830 moved from gcse.c to here with minor cleanups in duplicated code.
9831
9832 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9833
9834 * config/i386/i386.c (flag_opts): Fix a typo in
9835 -mavx256-split-unaligned-store.
9836
9837 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9838
9839 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9840 LIBCALL_VALUE): Remove macros.
9841 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9842 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9843 (h8300_function_value, h8300_libcall_value,
9844 h8300_function_value_regno_p): New functions.
9845
9846 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9847
9848 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9849
9850 2011-03-28 Jeff Law <law@redhat.com>
9851
9852 * tree-ssa-threadupdate.c (redirect_edges): Call
9853 create_edge_and_update_destination_phis as needed.
9854 (create_edge_and_update_destination_phis): Accept new BB argument.
9855 All callers updated.
9856 (thread_block): Do not update the profile when threading around
9857 intermediate blocks.
9858 (thread_single_edge): Likewise.
9859 (determine_bb_domination_status): If BB is not a successor of the
9860 loop header, return NONDOMINATING.
9861 (register_jump_thread): Note when we register a jump thread around
9862 an intermediate block.
9863 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9864 (thread_across_edge): Use it.
9865
9866 2011-03-28 Tristan Gingold <gingold@adacore.com>
9867
9868 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9869 when for_return is 2.
9870
9871 2011-03-28 Jeff Law <law@redhat.com>
9872
9873 * var-tracking.c (canonicalize_values_mark): Delete unused
9874 lhs assignment.
9875 (canonicalize_values_star, set_variable_part): Likewise.
9876 (clobber_variable_part, delete_variable_part): Likewise.
9877
9878 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9879
9880 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9881
9882 2011-03-28 Martin Jambor <mjambor@suse.cz>
9883
9884 * tree-inline.c (expand_call_inline): Do not check that destination
9885 node is analyzed.
9886 (optimize_inline_calls): Assert that destination node is analyzed.
9887 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9888 not call tree_lowering_passes.
9889 * cgraph.h (cgraph_analyze_function): Declare.
9890 * cgraphunit.c (cgraph_analyze_function): Make public.
9891
9892 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9893
9894 * config/sparc/sparc-opts.h: New.
9895 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9896 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9897 (sparc_option_override): Store processor_type enumeration rather
9898 than string in cpu_default. Remove name and enumeration from
9899 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9900 without using sparc_select. Use target_flags_explicit instead of
9901 fpu_option_set.
9902 * config/sparc/sparc.h (enum processor_type): Move to
9903 sparc-opts.h.
9904 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9905 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9906 HeaderInclude entry.
9907 (mcpu=, mtune=): Use Var and Enum.
9908 (sparc_processor_type): New Enum and EnumValue entries.
9909
9910 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9911 Iain Sandoe <iains@gcc.gnu.org>
9912
9913 PR target/48245
9914 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9915
9916 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9917
9918 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9919 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9920 Insert new statements at it in lieu of STMT.
9921 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9922 * tree-vect-stmts.c (vectorizable_store): Likewise.
9923 (vectorizable_load): Likewise.
9924
9925 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9926
9927 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9928 (divtf3): Ditto.
9929 (multf3): Ditto.
9930 (subtf3): Ditto.
9931
9932 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9933
9934 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9935 unaligned 256bit load/store.
9936 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9937 (*avx_movdqu<avxmodesuffix>): Likewise.
9938
9939 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9940
9941 PR target/48288
9942 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9943 * config/pa/pa.md (iordi3): Use new predicate in expander.
9944 (iorsi3): Likewise.
9945
9946 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9947
9948 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9949 FUNCTION_VALUE_REGNO_P): Remove macros.
9950 * config/mips/mips-protos.h (mips_function_value): Remove.
9951 * config/mips/mips.c (mips_function_value): Rename to...
9952 (mips_function_value_1): ... this. Make static. Handle receiving
9953 the function type in 'fn_decl_or_type' argument.
9954 (mips_function_value, mips_libcall_value,
9955 mips_function_value_regno_p): New function.
9956 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9957 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9958
9959 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9960
9961 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9962 and -mavx256-split-unaligned-store.
9963 (ix86_option_override_internal): Split 32-byte AVX unaligned
9964 load/store by default.
9965 (ix86_avx256_split_vector_move_misalign): New.
9966 (ix86_expand_vector_move_misalign): Use it.
9967
9968 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9969 -mavx256-split-unaligned-store.
9970
9971 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9972 256bit load/store. Generate unaligned store on misaligned memory
9973 operand.
9974 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9975 256bit load/store.
9976 (*avx_movdqu<avxmodesuffix>): Likewise.
9977
9978 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9979 -mavx256-split-unaligned-store.
9980
9981 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9982
9983 PR target/38598
9984 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9985 Update commentary.
9986
9987 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9988
9989 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9990 opno arguments with an expand_operand. Use create_input_operand.
9991 (mips_prepare_builtin_target): Delete.
9992 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9993 functions.
9994 (mips_expand_builtin_direct): Use create_output_operand and
9995 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9996 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9997 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9998
9999 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10000
10001 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10002 function.
10003 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10004
10005 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10006
10007 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10008 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10009 basic blocks and call commit_edge_insertions directly.
10010 (fixup_abnormal_edges): Move from here to...
10011 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10012 on the edges and return whether some have actually been inserted.
10013 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10014 compensation code.
10015
10016 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10017
10018 PR rtl-optimization/48144
10019 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10020 (merge_expr_data): ... here.
10021 (av_set_intersect): Rename to av_set_code_motion_filter.
10022 Update all callers. Call merge_history_vect when an expression
10023 is found in both sets.
10024 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10025
10026 2011-03-26 Alan Modra <amodra@gmail.com>
10027
10028 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10029 cmodel medium addresses.
10030 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10031 64-bit gpr loads and stores.
10032 (rs6000_secondary_reload_ppc64): New function.
10033 * config/rs6000/rs6000-protos.h: Declare it.
10034 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10035
10036 2011-03-26 Alan Modra <amodra@gmail.com>
10037
10038 PR target/47487
10039 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10040 GNU Go in traceback table.
10041
10042 2011-03-25 Richard Henderson <rth@redhat.com>
10043
10044 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10045 if there are exactly 6 operands.
10046 (set_storage_via_setmem): Similarly.
10047
10048 2011-03-25 Kai Tietz <ktietz@redhat.com>
10049
10050 * collect2.c (write_c_file_stat): Handle backslash
10051 as right-hand directory separator.
10052 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10053 checking just for slash.
10054 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10055 instead of checking for trailing slash.
10056 * gcc.c (record_temp_file): Use filename_cmp instead
10057 of strcmp.
10058 (do_spec_1): Likewise.
10059 (replace_outfile_spec_function): Likewise.
10060 (is_directory): Use filename_ncmp instead of strncmp.
10061 (print_multilib_info): Likewise.
10062 * gcov.c (find_source): Use filename_cmp instead
10063 instead of strcmp.
10064 (make_gcov_file_name): Fix order of slash/backslash
10065 checks.
10066 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10067 (add_standard_paths): Likewise.
10068 * mips-tfile.c (saber_stop): Handle backslash.
10069 * prefix.c (update_path): Use filename_ncmp instead of
10070 strncmp.
10071 * profile.c (output_location): Use filename_cmp instead
10072 of strcmp.
10073 * read-md.c (handle_toplevel_file): Handle backslash.
10074 * tlink.c (frob_extension): Likewise.
10075 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10076 strcmp.
10077 * tree-dump.c (dequeue_and_dump): Handle backslash.
10078 * tree.c (get_file_function_name): Likewise.
10079 * gengtype.c (read_input_list): Likewise.
10080 (get_file_realbasename): Likewise.
10081 (get_output_file_with_visibility): Use filename_cmp
10082 instead of strcmp.
10083
10084 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10085
10086 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10087 case to VFPv1.
10088
10089 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10090
10091 * fold-const.c (expr_location_or): New function.
10092 (fold_truth_not_expr): Call it.
10093
10094 2011-03-25 Jeff Law <law@redhat.com>
10095
10096 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10097 va_end.
10098 * c-family/c-common.c (def_fn_type): Likewise.
10099 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10100 * emit-rtl.c (gen_rtvec): Likewise.
10101 * lto/lto-lang.c (def_fn_type): Likewise.
10102
10103 2011-03-25 Richard Guenther <rguenther@suse.de>
10104
10105 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10106 also generate copies.
10107 (fini_copy_prop): Handle constant values properly.
10108
10109 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10110
10111 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10112 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10113 (hash_loc_operands, compare_loc_operands): Handle
10114 DW_OP_GNU_entry_value.
10115
10116 2011-03-25 Kai Tietz <ktietz@redhat.com>
10117
10118 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10119 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10120 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10121 comment and use macro TARGET_64BIT_MS_ABI instead.
10122 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10123 and change default behavior for 32-bit MS_ABI.
10124 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10125 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10126 32-bit, too.
10127 (ix86_cfun_abi): Likewise.
10128 (ix86_maybe_switch_abi): Adjust comment.
10129 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10130 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10131 instead of checking for SYSV_ABI.
10132 (ix86_nsaved_sseregs): Likewise.
10133 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10134 to 16 bytes.
10135 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10136 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10137 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10138 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10139 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10140
10141 2011-03-25 Richard Guenther <rguenther@suse.de>
10142
10143 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10144 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10145 (verify_gimple): Remove.
10146 * tree-cfg.c (verify_gimple_call): Merge verification
10147 from verify_stmts.
10148 (verify_gimple_phi): Merge verification from verify_stmts.
10149 (verify_gimple_label): New function.
10150 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10151 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10152 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10153 (verify_stmts): Rename to verify_gimple_in_cfg.
10154 (verify_gimple_in_cfg): New function.
10155 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10156 * tree-ssa.c (verify_ssa): Likewise.
10157 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10158
10159 2011-03-25 Richard Guenther <rguenther@suse.de>
10160
10161 * passes.c (init_optimization_passes): Add FRE pass after
10162 early SRA.
10163
10164 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10165 Andrew Stubbs <ams@codesourcery.com>
10166
10167 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10168 for Cortex-A8.
10169 (arm_movdi_vfp_cortexa8): New pattern.
10170 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10171 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10172 instructions when tuning for Cortex-A8. Set attribute "arch".
10173 * config/arm/arm.md: Move include arm-tune.md up a bit.
10174 (define_attr "arch"): Add "onlya8" and "nota8" values.
10175 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10176
10177 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10178
10179 PR bootstrap/48282
10180 Revert:
10181 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10182
10183 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10184 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10185 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10186 * passes.c (init_optimization_passes): Move
10187 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10188
10189 2011-03-25 Kai Tietz <ktietz@redhat.com>
10190
10191 * c-typeck.c (comptypes_internal): Replace target
10192 hook call of comp_type_attributes by version in tree.c file.
10193 * gimple.c (gimple_types_compatible_p_1): Likewise.
10194 * tree-ssa.c (useless_type_conversion_p): Likewise.
10195 * tree.c (build_type_attribute_qual_variant): Likewise.
10196 (attribute_value_equal): New static helper function.
10197 (comp_type_attributes): New function.
10198 (merge_attributes): Use attribute_value_equal for comparison.
10199 (attribute_list_contained): Likewise.
10200 * tree.h (comp_type_attributes): New prototype.
10201
10202 2011-03-25 Richard Guenther <rguenther@suse.de>
10203
10204 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10205 of complex types at -O0.
10206 (verify_gimple_assign_binary): Likewise.
10207 (verify_gimple_assign_ternary): Likewise.
10208
10209 2011-03-24 Mark Wielaard <mjw@redhat.com>
10210
10211 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10212 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10213
10214 2011-03-24 Mark Wielaard <mjw@redhat.com>
10215
10216 PR debug/48041
10217 * dwarf2out.c (output_abbrev_section): Only write table when
10218 abbrev_die_table_in_use > 1.
10219
10220 2011-02-24 Richard Henderson <rth@redhat.com>
10221
10222 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10223 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10224 (alpha_expand_unaligned_load_words): Use extql.
10225 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10226 (emit_insxl): Handle all modes for consistency.
10227
10228 2011-02-24 Richard Henderson <rth@redhat.com>
10229
10230 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10231 (alpha_expand_unaligned_load): Likewise.
10232 (alpha_expand_unaligned_store): Likewise.
10233 (alpha_expand_unaligned_load_words): Likewise.
10234 (alpha_expand_unaligned_store_words): Likewise.
10235 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10236 (alpha_split_lock_test_and_set_12): Likewise.
10237 (print_operand, alpha_fold_builtin_extxx): Likewise.
10238 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10239 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10240 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10241 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10242 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10243 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10244 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10245 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10246 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10247 (extwl, extll, extql): Similarly.
10248 (inswh, inslh, insqh): Similarly.
10249 (mskbl, mskwl, mskll, mskql): Similarly.
10250 (mskwh, msklh, mskqh): Similarly.
10251
10252 2011-02-24 Richard Henderson <rth@redhat.com>
10253
10254 * config/alpha/alpha.md (attribute isa): Add er, ner.
10255 (attribute enabled): Handle them.
10256 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10257
10258 2011-02-24 Richard Henderson <rth@redhat.com>
10259
10260 * config/alpha/alpha.md (attribute isa): Add vms.
10261 (attribute enabled): Handle it.
10262 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10263 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10264 (*movtf): Rename from *movtf_internal for consistency.
10265 (*movsi): Merge with *movsi_nt_vms.
10266 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10267 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10268 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10269 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10270
10271 2011-02-24 Richard Henderson <rth@redhat.com>
10272
10273 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10274 (extendqisi2, extendhisi2): Likewise.
10275 (extendqidi2): Simplify BWX/non-BWX expansions.
10276 (extendhidi2): Similarly.
10277
10278 2011-02-24 Richard Henderson <rth@redhat.com>
10279
10280 * config/alpha/alpha.md (attribute isa): New.
10281 (attribute enabled): New.
10282 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10283 (zero_extendqisi2, zero_extendqidi2): Similarly.
10284 (zero_extendhisi2, zero_extendhidi2): Similarly.
10285 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10286
10287 2011-02-24 Richard Henderson <rth@redhat.com>
10288
10289 * config/alpha/predicates.md (input_operand): Revert last change;
10290 update comment to mention 32-bit VMS rather than Windows.
10291
10292 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10293
10294 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10295 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10296 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10297 * passes.c (init_optimization_passes): Move
10298 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10299
10300 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10301
10302 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10303
10304 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10305
10306 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10307 correctly.
10308
10309 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10310
10311 PR debug/48204
10312 * simplify-rtx.c (simplify_const_unary_operation): Call
10313 real_convert when changing mode class with FLOAT_EXTEND.
10314
10315 2011-03-24 Nick Clifton <nickc@redhat.com>
10316
10317 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10318 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10319 * config/rx/rx.c (rx_option_override): Set align_jumps,
10320 align_loops and align_labels if not set by the user.
10321 (rx_align_for_label): New function.
10322 (rx_max_skip_for_label): New function.
10323 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10324 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10325 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10326 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10327 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10328
10329 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10330
10331 PR rtl-optimization/48263
10332 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10333 and original commutative_p handling. Use maybe_gen_insn.
10334
10335 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10336
10337 * reload.c (find_reloads_subreg_address): Add address_reloaded
10338 parameter and return true there if the full address has been
10339 reloaded.
10340 (find_reloads_toplev): Pass address_reloaded flag.
10341 (find_reloads_address_1): Don't use address_reloaded parameter.
10342
10343 2011-03-24 Jeff Law <law@redhat.com>
10344
10345 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10346 unused variable "ann".
10347 (remove_unused_locals): Likewise.
10348
10349 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10350 statement.
10351
10352 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10353 after it is freed.
10354
10355 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10356
10357 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10358 for invalid symbolic addresses.
10359 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10360 larl operands.
10361
10362 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10363
10364 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10365 the argument in calls to fold_truth_not_expr.
10366
10367 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10368
10369 * tree.c (record_node_allocation_statistics): New function.
10370 (make_node_stat, copy_node_stat, build_string): Call it.
10371 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10372 (build1_stat, build_omp_clause): Likewise.
10373
10374 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10375
10376 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10377 last commit.
10378
10379 2011-03-24 Richard Guenther <rguenther@suse.de>
10380
10381 PR tree-optimization/48271
10382 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10383 blocks that still exist.
10384
10385 2011-03-24 Richard Guenther <rguenther@suse.de>
10386
10387 PR tree-optimization/48270
10388 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10389 not free datarefs before ddrs.
10390
10391 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10392
10393 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10394 from the address built for a reference with variable offset.
10395
10396 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10397
10398 PR target/48237
10399 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10400 alternatives that can be handled with movq or movabsq insn.
10401 (*movdf_internal): Disable for !TARGET_64BIT.
10402 (*movdf_internal_nointeger): Ditto.
10403 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10404
10405 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10406
10407 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10408 (FUNCTION_ARG_ADVANCE): Likewise.
10409 * tm.texi.in: Change references to them to hook references.
10410 * tm.texi: Regenerate.
10411 * targhooks.c (default_function_arg): Eliminate check for target macro.
10412 (default_function_incoming_arg): Likewise.
10413 (default_function_arg_advance): Likewise.
10414 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10415 (function_arg_advance): Likewise.
10416 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10417
10418 2011-03-24 Richard Guenther <rguenther@suse.de>
10419
10420 PR middle-end/48269
10421 * tree-object-size.c (addr_object_size): Do not double-account
10422 for MEM_REF offsets.
10423
10424 2011-03-24 Diego Novillo <dnovillo@google.com>
10425
10426 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10427 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10428 (lto_input_data_block): Move from lto-opts.c. Make extern.
10429 Update all users.
10430 (lto_input_string): Rename from input_string. Make extern.
10431 Update all users.
10432 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10433 output_string_with_length.
10434 Output 0 to indicate a non-NULL string. Update all callers to
10435 not emit 0.
10436 (lto_output_string): Rename from output_string. Make extern.
10437 Update all users.
10438 (lto_output_decl_state_streams): Make extern.
10439 (lto_output_decl_state_refs): Make extern.
10440 * lto-streamer.h (lto_input_string): Declare.
10441 (lto_input_data_block): Declare.
10442 (lto_output_string): Declare.
10443 (lto_output_string_with_length): Declare.
10444 (lto_output_decl_state_streams): Declare.
10445 (lto_output_decl_state_refs): Declare.
10446
10447 2011-03-24 Richard Guenther <rguenther@suse.de>
10448
10449 PR tree-optimization/46562
10450 * tree.c (build_invariant_address): New function.
10451 * tree.h (build_invariant_address): Declare.
10452 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10453 a renamed function moved ...
10454 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10455 Take valueization callback parameter.
10456 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10457 * gimple-fold.h: New file.
10458 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10459 (ccp_fold, fold_const_aggregate_ref,
10460 fold_ctor_reference, fold_nonarray_ctor_reference,
10461 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10462 get_base_constructor): Move ...
10463 * gimple-fold.c: ... here.
10464 (gimple_fold_stmt_to_constant_1): New function
10465 split out from ccp_fold. Take a valueization callback parameter.
10466 Valueize all operands.
10467 (gimple_fold_stmt_to_constant): New wrapper function.
10468 (fold_const_aggregate_ref_1): New function split out from
10469 fold_const_aggregate_ref. Take a valueization callback parameter.
10470 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10471 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10472 invariant POINTER_PLUS_EXPRs to invariant form.
10473 (vn_valueize): New function.
10474 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10475 * tree-vrp.c (vrp_valueize): New function.
10476 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10477 to fold statements to constants.
10478 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10479 function declarations.
10480 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10481 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10482
10483 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10484
10485 * config/h8300/predicates.md (jump_address_operand): Fix register
10486 mode check.
10487
10488 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10489
10490 * doc/invoke.texi (max-stores-to-sink): Document.
10491 * params.h (MAX_STORES_TO_SINK): Define.
10492 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10493 if either vectorization or if-conversion is disabled.
10494 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10495 tree-vect-data-refs.c vect_equal_offsets.
10496 (dr_equal_offsets_p): New function.
10497 (find_data_references_in_bb): Remove static.
10498 * tree-data-ref.h (find_data_references_in_bb): Declare.
10499 (dr_equal_offsets_p): Likewise.
10500 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10501 (vect_drs_dependent_in_basic_block): Update calls to
10502 vect_equal_offsets.
10503 (vect_check_interleaving): Likewise.
10504 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10505 (cond_if_else_store_replacement): Rename to...
10506 (cond_if_else_store_replacement_1): ... this. Change arguments and
10507 documentation.
10508 (cond_if_else_store_replacement): New function.
10509 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10510 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10511
10512 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10513
10514 PR target/46934
10515 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10516 to subtract lower bound instead of GEN_INT().
10517
10518 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10519
10520 PR other/48179
10521 PR other/48221
10522 PR other/48234
10523 * doc/extend.texi (Alignment): Move section to match order in TOC.
10524 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10525 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10526
10527 2011-03-23 Jeff Law <law@redhat.com>
10528
10529 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10530 before removing the edge.
10531
10532 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10533 it may have been freed by redirect_branch_edge or
10534 redirect_edge_succ_nodup.
10535
10536 2011-03-23 Richard Guenther <rguenther@suse.de>
10537
10538 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10539 (check_va_list_escapes): Likewise.
10540 (check_all_va_list_escapes): Likewise.
10541
10542 2011-03-23 Richard Guenther <rguenther@suse.de>
10543
10544 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10545 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10546 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10547 (alias.o): Likewise.
10548 (ipa-type-escape.o): Remove.
10549 (ipa-struct-reorg.o): Likewise.
10550 (GTFILES): Remove ipa-struct-reorg.c.
10551 * alias.c: Do not include ipa-type-escape.h.
10552 * tree-ssa-alias.c: Likewise.
10553 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10554 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10555 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10556 and ipa-type-escape passes.
10557 * tree-pass.h (pass_ipa_type_escape): Remove.
10558 (pass_ipa_struct_reorg): Likewise.
10559 * ipa-struct-reorg.h: Remove.
10560 * ipa-struct-reorg.c: Likewise.
10561 * ipa-type-escape.h: Likewise.
10562 * ipa-type-escape.c: Likewise.
10563 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10564 (--param struct-reorg-cold-struct-ratio): Likewise.
10565 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10566 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10567 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10568
10569 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10570
10571 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10572 cpu attribute value.
10573 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10574 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10575 * config/s390/s390.c (processor_flags_table): New constant array.
10576 (s390_handle_arch_option): Remove.
10577 (s390_handle_option): Remove s390_handle_arch_option invocations
10578 and OPT_mwarn_framesize_ handling.
10579 (s390_option_override): Remove s390_handle_arch_option invocation.
10580 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10581 warnings.
10582 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10583 * config/s390/s390.opt (s390_tune, s390_arch)
10584 (march=): Replace s390_arch_option enum and values with
10585 processor_type. Set variable name to s390_arch. Set
10586 initialization value.
10587 (mtune=): Replace s390_arch_option with processor_type. Set
10588 variable name to s390_tune. Set initialization value.
10589
10590 2011-03-23 Julian Brown <julian@codesourcery.com>
10591
10592 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10593 accesses which are not naturally aligned.
10594
10595 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10596
10597 PR target/47553
10598 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10599
10600 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10601
10602 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10603 parameter from "int" to "enum insn_code".
10604 (expand_operand_type): New enum.
10605 (expand_operand): New structure.
10606 (create_expand_operand): New function.
10607 (create_fixed_operand, create_output_operand): Likewise
10608 (create_input_operand, create_convert_operand_to): Likewise.
10609 (create_convert_operand_from, create_address_operand): Likewise.
10610 (create_integer_operand): Likewise.
10611 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10612 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10613 (expand_insn, expand_jump_insn): Likewise.
10614 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10615 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10616 (expand_movstr, expand_builtin___clear_cache): Likewise.
10617 (expand_builtin_lock_release): Likewise.
10618 * explow.c (allocate_dynamic_stack_space): Likewise.
10619 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10620 and use the default handling in that case.
10621 * expmed.c (check_predicate_volatile_ok): Delete.
10622 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10623 (emit_cstore): Likewise.
10624 * expr.c (emit_block_move_via_movmem): Likewise.
10625 (set_storage_via_setmem, expand_assignment): Likewise.
10626 (emit_storent_insn, try_casesi): Likewise.
10627 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10628 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10629 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10630 (expand_twoval_unop, expand_twoval_binop): Likewise.
10631 (expand_unop_direct, emit_indirect_jump): Likewise.
10632 (emit_conditional_move, vector_compare_rtx): Likewise.
10633 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10634 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10635 (expand_sync_lock_test_and_set): Likewise.
10636 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10637 (emit_unop_insn): Likewise.
10638 (expand_copysign_absneg): Change icode to an insn_code.
10639 (create_convert_operand_from_type): New function.
10640 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10641 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10642 (expand_insn, expand_jump_insn): Likewise.
10643 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10644 than const_int_operand for operand 2.
10645
10646 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10647
10648 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10649 if possible.
10650
10651 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10652
10653 * emit-rtl.c (emit_pattern_before_noloc): New function.
10654 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10655 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10656 (emit_pattern_after_noloc): New function.
10657 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10658 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10659
10660 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10661
10662 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10663 (__ffsDI2): Likewise.
10664
10665 2011-03-22 Richard Henderson <rth@redhat.com>
10666
10667 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10668 of !TARGET_ABI_OPEN_VMS.
10669 (alpha_trampoline_init, alpha_start_function): Likewise.
10670 (alpha_expand_epilogue, alpha_file_start): Likewise.
10671 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10672 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10673 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10674 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10675 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10676
10677 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10678
10679 * config/s390/s390-opts.h: New.
10680 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10681 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10682 s390_stack_guard): Remove.
10683 (s390_handle_arch_option): Return void. Take enum
10684 s390_arch_option value instead of string and searching array.
10685 (s390_handle_option): Don't assert that global structures are in
10686 use. Access variables via opts pointer. Use error_at. Don't use
10687 sscanf for -mstack-guard= or -mstack-size=. Update call to
10688 s390_handle_arch_option.
10689 (s390_option_override): Update call to s390_handle_arch_option.
10690 (s390_emit_prologue): Use %d format for s390_stack_size in
10691 diagnostic. Use %wd for HOST_WIDE_INT.
10692 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10693 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10694 * config/s390/s390.opt (config/s390/s390-opts.h): New
10695 HeaderInclude entry.
10696 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10697 s390_arch_flags, s390_warn_framesize): New Variable entries.
10698 (s390_arch_option): New Enum and EnumValue entries.
10699 (march=): Use Enum instead of Var.
10700 (mstack-guard=, mstack-size=): Use UInteger and Var.
10701 (mtune=): Use Enum.
10702
10703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10704
10705 * config/score/score.c (score_handle_option): Don't assert that
10706 global structures are in use. Access target_flags via opts
10707 pointer. Use value of -march= option to determine target_flags
10708 settings.
10709 * config/score/score.opt (march=): Use Enum.
10710 (score_arch): New Enum and EnumValue entries.
10711
10712 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10713
10714 * config/mep/mep.c (option_mtiny_specified): Remove.
10715 (mep_option_override): Move register handling for -mivc2 from
10716 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10717 instead of option_mtiny_specified.
10718 (mep_handle_option): Access target_flags via opts pointer. Don't
10719 assert that global structures are in use. Defer part of -mivc2
10720 handling and move it to mep_option_override.
10721 * config/mep/mep.opt (IVC2): New Mask entry.
10722 (mivc2): Use Var and Defer instead of Mask.
10723
10724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10725
10726 * config/v850/v850-opts.h: New.
10727 * config/v850/v850.c (small_memory): Replace with
10728 small_memory_physical_max array. Make that array static const.
10729 (v850_handle_memory_option): Take integer value of argument. Take
10730 gcc_options pointer, option text and location. Return void.
10731 Update for changes to small memory structures.
10732 (v850_handle_option): Access target_flags via opts pointer. Don't
10733 assert that global structures are in use. Update calls to
10734 v850_handle_memory_option.
10735 (v850_encode_data_area): Update references to small memory settings.
10736 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10737 (enum small_memory_type): Move to v850-opts.h.
10738 * config/v850/v850.opt (config/v850/v850-opts.h): New
10739 HeaderInclude entry.
10740 (small_memory_max): New Variable entry.
10741 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10742 (mtda, mzda): Likewise.
10743
10744 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10745
10746 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10747 pointer. Don't assert that global structures are in use.
10748
10749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10750
10751 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10752 via opts pointer. Don't assert that global structures are in use.
10753
10754 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10755
10756 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10757 (munix=93): Use Var.
10758 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10759 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10760 * config/pa/pa-opts.h: New.
10761 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10762 (pa_handle_option): Don't assert that global structures are in
10763 use. Access target_flags via opts pointer. Don't handle
10764 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10765 OPT_munix_98 here.
10766 (pa_option_override): Handle deferred OPT_mfixed_range_.
10767
10768 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10769
10770 * config/mn10300/mn10300-opts.h: New.
10771 * config/mn10300/mn10300.c (mn10300_processor,
10772 mn10300_tune_string): Remove.
10773 (mn10300_handle_option): Don't assert that global structures are
10774 in use. Access mn10300_processor via opts pointer. Don't handle
10775 OPT_mtune_ here.
10776 * config/mn10300/mn10300.h (enum processor_type): Move to
10777 mn10300-opts.h.
10778 (mn10300_processor): Remove.
10779 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10780 HeaderInclude entry.
10781 (mn10300_processor): New Variable entry.
10782 (mtune=): Use Var.
10783
10784 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10785
10786 * config/microblaze/microblaze.c: Don't include opts.h.
10787 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10788 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10789 (mno-clearbss): Use Var and Warn.
10790
10791 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10792
10793 * config/m32r/m32r-opts.h: New.
10794 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10795 (m32r_handle_option): Don't assert that global structures are in
10796 use. Access target_flags and m32r_cache_flush_func via opts
10797 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10798 OPT_mno_flush_trap here.
10799 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10800 include of m32r-opts.h.
10801 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10802 HeaderInclude entry.
10803 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10804 (mmodel=): Use Enum and Var.
10805 (m32r_model): New Enum and EnumValue entries.
10806 (mno-flush-trap): Use Var.
10807 (msdata=): Use Enum and Var.
10808 (m32r_sdata): New Enum and EnumValue entries.
10809
10810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10811
10812 * config/m32c/m32c.c: Don't include opts.h.
10813 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10814 m32c_handle_option): Remove.
10815 (m32c_option_override): Check global_options_set.x_target_memregs
10816 instead of target_memregs_set.
10817 * config/m32c/m32c.h (target_memregs): Remove.
10818 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10819 variable.
10820
10821 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10822
10823 * config/iq2000/iq2000-opts.h: New.
10824 * config/iq2000/iq2000.c: Don't include opts.h.
10825 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10826 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10827 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10828 HeaderInclude entry.
10829 (iq2000_tune): New Variable entry.
10830 (march=): Add comment. Use Enum.
10831 (iq2000_arch): New Enum and EnumValue entries.
10832 (mcpu=): Use Enum and Var.
10833 (iq2000_tune): New Enum and EnumValue entries.
10834
10835 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10836
10837 * config/ia64/ia64-opts.h: New.
10838 * config/ia64/ia64.c (ia64_tune): Remove.
10839 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10840 here. Use error_at.
10841 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10842 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10843 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10844 HeaderInclude entry.
10845 (ia64_tune): New Variable entry.
10846 (mfixed-range=): Use Defer and Var.
10847 (mtune=): Use Enum and Var.
10848 (ia64_tune): New Enum and EnumValue entries.
10849
10850 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10851
10852 * config/frv/frv-opts.h: New.
10853 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10854 frv-opts.h.
10855 (frv_cpu_type): Remove.
10856 * config/frv/frv.c: Don't include opts.h.
10857 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10858 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10859 (frv_cpu_type): New Variable entry.
10860 (frv_cpu): New Enum and EnumValue entries.
10861
10862 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10863
10864 * config/cris/cris.c (cris_handle_option): Access target_flags via
10865 opts pointer. Don't assert that global structures are in use.
10866 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10867 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10868
10869 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10870
10871 * config/bfin/bfin-opts.h: New.
10872 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10873 bfin_si_revision, bfin_workarounds): Remove.
10874 (bfin_cpus): Make static const.
10875 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10876 not bfin_lib_id_given.
10877 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10878 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10879 pointer. Use error_at. Don't assert that global structures are in use.
10880 * config/bfin/bfin.h: Include bfin-opts.h.
10881 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10882 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10883 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10884 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10885 entries.
10886
10887 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10888
10889 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10890 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10891 or -msoft-float here.
10892 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10893 -msoft-float and -mhard-float.
10894 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10895 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10896 msoft-float.
10897 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10898 -msoft-float.
10899 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10900 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10901 not mhard-float.
10902 (LIBGCC_SPEC): Don't handle -msoft-float.
10903 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10904 -mhard-float.
10905 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10906 msoft-float.
10907 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10908 -mfloat-abi=*, not -msoft-float and -mhard-float.
10909 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10910 -msoft-float.
10911 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10912 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10913 mhard-float and msoft-float.
10914 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10915 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10916 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10917 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10918 mhard-float.
10919 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10920 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10921 msoft-float.
10922 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10923 not mhard-float.
10924 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10925 not msoft-float.
10926
10927 2011-03-22 Richard Henderson <rth@redhat.com>
10928
10929 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10930 TARGET_ABI_WINDOWS_NT.
10931 (alpha_output_function_end_prologue): Likewise.
10932 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10933 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10934 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10935 (trap, *movsi_nt_vms): Likewise.
10936 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10937 (*tablejump_osf_nt_internal): Remove.
10938 * config/alpha/predicates.md (input_operand): Only test Pmode.
10939
10940 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10941
10942 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10943 via opts pointer. Use error_at. Don't assert that global
10944 structures are in use.
10945
10946 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10947
10948 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10949 (ix86_handle_option): Access ix86_isa_flags and
10950 ix86_isa_flags_explicit via opts pointer. Don't assert that
10951 global structures are in use.
10952 (ix86_function_specific_save, ix86_function_specific_restore):
10953 Update ix86_isa_flags_explicit field name.
10954 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10955 (ix86_isa_flags_explicit): Rename TargetSave entry to
10956 x_ix86_isa_flags_explicit.
10957
10958 2011-03-22 Richard Henderson <rth@redhat.com>
10959
10960 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10961 (alpha_option_override, direct_return): Likewise.
10962 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10963 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10964 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10965 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10966 (alpha_expand_epilogue, alpha_end_function): Likewise.
10967 (alpha_init_libfuncs): Likewise.
10968 (struct machine_function): Remove unicosmk members.
10969 (print_operand) ['t']: Remove.
10970 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10971 unicosmk_output_module_name, unicosmk_output_common,
10972 current_section_align, unicosmk_output_text_section_asm_op,
10973 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10974 unicosmk_section_type_flags, unicosmk_unique_section,
10975 unicosmk_asm_named_section, unicosmk_insert_attributes,
10976 unicosmk_output_align, unicosmk_defer_case_vector,
10977 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10978 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10979 unicosmk_output_ssib, unicosmk_add_call_info_word,
10980 unicosmk_extern_head, unicosmk_output_default_externs,
10981 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10982 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10983 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10984 * config/alpha/alpha-protos.h: Update.
10985 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10986 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10987 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10988 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10989 (*mulsi_se, mulvsi3): Likewise.
10990 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10991 (*divmodsi_internal, call, call_value, realign): Likewise.
10992 (moddi3, umoddi3): Likewise; remove duplicate expander.
10993 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10994 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10995 (*movdi_nofix): Remove r/U alternative.
10996 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10997 * config/alpha/constraints.md ("U"): Remove.
10998 * config/alpha/predicates.md (call_operand"): Don't test
10999 TARGET_ABI_UNICOSMK.
11000
11001 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11002
11003 * target.def (handle_option): Take gcc_options and
11004 cl_decoded_option pointers and location_t.
11005 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11006 * doc/tm.texi: Regenerate.
11007 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11008 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11009 * lto-opts.c (lto_reissue_options): Generate option structure for
11010 targetm.handle_option call.
11011 * opts.c (target_handle_option): Update call to
11012 targetm.handle_option. Remove assertions about values now passed
11013 down to hook.
11014 * targhooks.c (default_target_handle_option): New.
11015 * targhooks.h (default_target_handle_option): Declare.
11016 * config/alpha/alpha.c: Include opts.h.
11017 (alpha_handle_option): Update to new hook interface.
11018 * config/arm/arm.c: Include opts.h.
11019 (arm_handle_option): Update to new hook interface.
11020 * config/arm/t-arm (arm.o): Update dependencies.
11021 * config/bfin/bfin.c: Include opts.h.
11022 (bfin_handle_option): Update to new hook interface.
11023 * config/cris/cris.c: Include opts.h.
11024 (cris_handle_option): Update to new hook interface.
11025 * config/frv/frv.c: Include opts.h.
11026 (frv_handle_option): Update to new hook interface.
11027 * config/i386/i386.c: Include opts.h.
11028 (ix86_handle_option): Update to new hook interface.
11029 (ix86_valid_target_attribute_inner_p): Generate option structure
11030 for call to ix86_handle_option.
11031 * config/i386/t-i386 (i386.o): Update dependencies.
11032 * config/ia64/ia64.c: Include opts.h.
11033 (ia64_handle_option): Update to new hook interface.
11034 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11035 * config/iq2000/iq2000.c: Include opts.h.
11036 (iq2000_handle_option): Update to new hook interface.
11037 * config/m32c/m32c.c: Include opts.h.
11038 (m32c_handle_option): Update to new hook interface.
11039 * config/m32r/m32r.c: Include opts.h.
11040 (m32r_handle_option): Update to new hook interface.
11041 * config/m68k/m68k.c: Include opts.h.
11042 (m68k_handle_option): Update to new hook interface.
11043 * config/mep/mep.c: Include opts.h.
11044 (mep_handle_option): Update to new hook interface.
11045 * config/microblaze/microblaze.c: Include opts.h.
11046 (microblaze_handle_option): Update to new hook interface.
11047 * config/mips/mips.c: Include opts.h.
11048 (mips_handle_option): Update to new hook interface.
11049 * config/mn10300/mn10300.c: Include opts.h.
11050 (mn10300_handle_option): Update to new hook interface.
11051 * config/pa/pa.c: Include opts.h.
11052 (pa_handle_option): Update to new hook interface.
11053 * config/pdp11/pdp11.c: Include opts.h.
11054 (pdp11_handle_option): Update to new hook interface.
11055 * config/rs6000/rs6000.c: Include opts.h.
11056 (rs6000_handle_option): Update to new hook interface.
11057 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11058 * config/rx/rx.c: Include opts.h.
11059 (rx_handle_option): Update to new hook interface.
11060 * config/s390/s390.c: Include opts.h.
11061 (s390_handle_option): Update to new hook interface.
11062 * config/score/score.c: Include opts.h.
11063 (score_handle_option): Update to new hook interface.
11064 * config/sh/sh.c: Include opts.h.
11065 (sh_handle_option): Update to new hook interface.
11066 * config/sparc/sparc.c: Include opts.h.
11067 (sparc_handle_option): Update to new hook interface.
11068 * config/v850/v850.c: Include opts.h.
11069 (v850_handle_option): Update to new hook interface.
11070
11071 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11072
11073 * gcc.c (driver_unknown_option_callback): Only permit and save
11074 unknown -Wno- options.
11075 (driver_wrong_lang_callback): Save options directly instead of via
11076 driver_unknown_option_callback.
11077
11078 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11079
11080 * combine.c (simplify_set): Try harder to find the best CC mode when
11081 simplifying a nested COMPARE on the RHS.
11082
11083 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11084
11085 * config/alpha/gnu.h: Remove.
11086 * config/arc: Remove directory.
11087 * config/arm/netbsd.h: Remove.
11088 * config/arm/t-pe: Remove.
11089 * config/crx: Remove directory.
11090 * config/i386/netbsd.h: Remove.
11091 * config/m68hc11: Remove directory.
11092 * config/m68k/uclinux-oldabi.h: Remove.
11093 * config/mcore/mcore-pe.h: Remove.
11094 * config/mcore/t-mcore-pe: Remove.
11095 * config/netbsd-aout.h: Remove.
11096 * config/rs6000/gnu.h: Remove.
11097 * config/sh/sh-symbian.h: Remove.
11098 * config/sh/symbian-base.c: Remove.
11099 * config/sh/symbian-c.c: Remove.
11100 * config/sh/symbian-cxx.c: Remove.
11101 * config/sh/symbian-post.h: Remove.
11102 * config/sh/symbian-pre.h: Remove.
11103 * config/sh/t-symbian: Remove.
11104 * config/svr3.h: Remove.
11105 * config/vax/netbsd.h: Remove.
11106 * config.build: Don't handle i[34567]86-*-pe.
11107 * config.gcc: Remove handling of deprecations for most deprecated
11108 targets.
11109 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11110 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11111 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11112 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11113 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11114 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11115 Remove cases.
11116 * config.host: Don't handle i[34567]86-*-pe.
11117 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11118 (ASM_SPEC32): Don't handle -mcall-gnu.
11119 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11120 -mcall-gnu.
11121 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11122 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11123 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11124 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11125 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11126 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11127 conditional on SYMBIAN.
11128 * configure.ac: Don't handle powerpc*-*-gnu*.
11129 * configure: Regenerate.
11130 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11131 * doc/install-old.texi (m6811, m6812): Don't mention.
11132 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11133 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11134 (m68k-uclinuxoldabi): Don't mention.
11135 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11136 Remove.
11137 (-mcall-gnu): Remove.
11138 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11139 families): Remove constraint documentation.
11140
11141 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11142
11143 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11144 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11145 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11146
11147 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11148
11149 PR target/48226
11150 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11151 vector when peeking at the next token for vector, don't expand the
11152 keywords.
11153
11154 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11155
11156 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11157 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11158 * config/avr/avr.c (init_cumulative_args)
11159 (avr_function_arg_advance): Use it.
11160 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11161 sibcall epilogues.
11162 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11163 (avr_function_ok_for_sibcall): ...this new function.
11164 (avr_lookup_function_attribute1): New static Function.
11165 (avr_naked_function_p, interrupt_function_p)
11166 (signal_function_p, avr_OS_task_function_p)
11167 (avr_OS_main_function_p): Use it.
11168 * config/avr/avr.md ("sibcall", "sibcall_value")
11169 ("sibcall_epilogue"): New expander.
11170 ("*call_insn", "*call_value_insn"): New insn.
11171 ("call_insn", "call_value_insn"): Remove
11172 ("call", "call_value", "epilogue"): Change expander to handle
11173 sibling calls.
11174
11175 2011-03-21 Nick Clifton <nickc@redhat.com>
11176
11177 * doc/invoke.texi (Overall Options): Move closing brace to end of
11178 options list.
11179 (Optimization Options): Add missing @gol.
11180 (Directory Options): Likewise.
11181 (i386 and x86-64 Options): Likewise.
11182 (RS6000 and PowerPC Options): Likewise.
11183 (i386 and x86-64 Windows Options): Likewise.
11184 (V850 Options): Add text missing from descriptions.
11185
11186 2011-03-22 Richard Henderson <rth@redhat.com>
11187
11188 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11189 (avr_incoming_return_addr_rtx): New.
11190 (emit_push_byte): New.
11191 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11192 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11193 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11194 (emit_pop_byte): New.
11195 (expand_epilogue): Use it. Pop frame pointer by bytes.
11196 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11197 (INCOMING_RETURN_ADDR_RTX): New.
11198 (INCOMING_FRAME_SP_OFFSET): New.
11199 (ARG_POINTER_CFA_OFFSET): New.
11200 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11201 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11202 (pophi): Remove.
11203
11204 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11205
11206 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11207
11208 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11209 (FUNCTION_ARG_ADVANCE): Likewise.
11210 * tm.texi.in: Change references to them to hook references.
11211 * tm.texi: Regenerate.
11212 * targhooks.c (default_function_arg): Eliminate check for target
11213 macro.
11214 (default_function_incoming_arg): Likewise.
11215 (default_function_arg_advance): Likewise.
11216 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11217 (function_arg_advance): Likewise.
11218 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11219
11220 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11221
11222 * tree.c (build_call_1): New function.
11223 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11224
11225 2011-03-22 Richard Guenther <rguenther@suse.de>
11226
11227 PR tree-optimization/48228
11228 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11229 for single-arg PHIs.
11230
11231 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11232
11233 PR rtl-optimization/48143
11234 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11235 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11236 sse2_cvtps2pd): Likewise.
11237
11238 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11239
11240 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11241
11242 2011-03-22 Richard Guenther <rguenther@suse.de>
11243
11244 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11245 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11246 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11247 and REALIGN_LOAD_EXPR.
11248 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11249 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11250 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11251 DOT_PROD_EXPR case ...
11252 (expand_expr_real_2): ... here.
11253 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11254 and REALIGN_LOAD_EXPR.
11255 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11256 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11257 (vect_create_epilog_for_reduction): Likewise.
11258 (vectorizable_reduction): Likewise.
11259 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11260 * tree-vect-stmts.c (vectorizable_load): Likewise.
11261
11262 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11263
11264 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11265
11266 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11267
11268 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11269 handling for PLTOFF/GOTOFF.
11270
11271 2011-03-22 Nick Clifton <nickc@redhat.com>
11272
11273 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11274 trailing backslash from the end of the macro definition.
11275
11276 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11277
11278 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11279 and PLT unspecs.
11280
11281 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11282
11283 * expr.h (prepare_operand): Move to...
11284 * optabs.h (prepare_operand): ...here and change the insn code
11285 parameter from "int" to "enum insn_code".
11286 (insn_operand_matches): Declare.
11287 * expr.c (init_expr_target): Use insn_operand_matches.
11288 (compress_float_constant): Likewise.
11289 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11290 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11291 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11292 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11293 Likewise.
11294 (gen_cond_trap): Likewise.
11295 (prepare_operand): Likewise. Change icode to an insn_code.
11296 (insn_operand_matches): New function.
11297 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11298 * reload1.c (gen_reload): Likewise.
11299 * targhooks.c (default_secondary_reload): Likewise.
11300
11301 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11302
11303 * config/alpha/alpha.md (unspec): New define_c_enum.
11304 (unspecv): Ditto.
11305
11306 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11307
11308 PR debug/48214
11309 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11310 between a call and its CALL_ARG_LOCATION note.
11311
11312 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11313
11314 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11315
11316 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11317
11318 PR c/42544
11319 PR c/48197
11320 * c-common.c (shorten_compare): If primopN is first sign-extended
11321 to opN and then zero-extended to result type, set primopN to opN.
11322
11323 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11324
11325 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11326 for barrier handlers.
11327
11328 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11329
11330 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11331 UNSPEC constants to be in the unspec enumeration, and redefine
11332 all UNSPECV constants to be in the unspecv enumeration, so that
11333 dumps print which unspec/unspec_volatile this is.
11334 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11335 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11336 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11337 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11338 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11339
11340 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11341 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11342 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11343 * config/rs6000/sync.md (isync, lwsync): Ditto.
11344
11345 2011-03-21 Richard Guenther <rguenther@suse.de>
11346
11347 * params.def (lto-min-partition): Fix typo.
11348
11349 2011-03-21 Richard Guenther <rguenther@suse.de>
11350
11351 PR c/47939
11352 * c-decl.c (grokdeclarator): Drop to the main variant only
11353 for array types. Drop flag_gen_aux_info check.
11354
11355 2011-03-21 Richard Guenther <rguenther@suse.de>
11356
11357 PR translation/47911
11358 * params.def (lto-partitions): Fix typo.
11359 (lto-min-partition): Fix wording.
11360
11361 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11362
11363 * config/rs6000/t-freebsd: Remove duplication from file.
11364
11365 2011-03-21 Richard Guenther <rguenther@suse.de>
11366
11367 PR middle-end/47661
11368 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11369
11370 2011-03-21 Richard Guenther <rguenther@suse.de>
11371
11372 PR lto/48210
11373 * params.def (lto-partitions): Require at least 1 partition.
11374
11375 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11376
11377 * gthr-solaris.h: Remove.
11378 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11379 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11380 (LIB_SPEC): Likewise.
11381 * config/sol2.opt (threads): Remove.
11382 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11383 (sparc*-*-solaris2*): Likewise.
11384 * configure.ac (enable_threads): Enable solaris support.
11385 * configure: Regenerate.
11386 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11387 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11388 solaris.
11389
11390 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11391
11392 * config.gcc: Obsolete *-*-solaris2.8*.
11393 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11394
11395 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11396
11397 PR bootstrap/48135
11398 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11399 reference. Solaris 8 perl works.
11400
11401 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11402
11403 PR bootstrap/48135
11404 * doc/install.texi (Prerequisites): Move jar etc. up.
11405 Explain support library version requirements.
11406
11407 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11408
11409 PR bootstrap/48135
11410 * doc/install.texi (Prerequisites): Move Perl to build
11411 requirements. Always necessary on Solaris 2 with Sun ld.
11412
11413 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11414
11415 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11416 binutils 2.21.
11417 (Specific, i?86-*-solaris2.[89]): Likewise.
11418 (Specific, i?86-*-solaris2.10): Likewise.
11419 (Specific, mips-sgi-irix6): Likewise.
11420 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11421 Update for binutils 2.21.
11422
11423 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11424
11425 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11426 Allow -fuse-linker-plugin for non-default plugin linker.
11427 * configure: Regenerate.
11428
11429 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11430
11431 PR bootstrap/48167
11432 * gengtype.c (files_rules): Added rule for cp/parser.h.
11433
11434 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11435
11436 PR target/48213
11437 * config/s390/s390.c (s390_delegitimize_address): Don't call
11438 lowpart_subreg if orig_x has BLKmode.
11439
11440 2011-03-21 Kai Tietz <ktietz@redhat.com>
11441
11442 PR target/12171
11443 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11444 * tree.h (attribute_spec): Add new member affects_type_identity.
11445 * attribs.c (empty_attribute_table): Adjust attribute_spec
11446 initializers.
11447 * config/alpha/alpha.c: Likewise.
11448 * config/arc/arc.c: Likewise.
11449 * config/arm/arm.c: Likewise.
11450 * config/avr/avr.c: Likewise.
11451 * config/bfin/bfin.c: Likewise.
11452 * config/crx/crx.c: Likewise.
11453 * config/darwin.h: Likewise.
11454 * config/h8300/h8300.c: Likewise.
11455 * config/i386/cygming.h: Likewise.
11456 * config/i386/i386.c: Likewise.
11457 * config/ia64/ia64.c: Likewise.
11458 * config/m32c/m32c.c: Likewise.
11459 * config/m32r/m32r.c: Likewise.
11460 * config/m68hc11/m68hc11.c: Likewise.
11461 * config/m68k/m68k.c: Likewise.
11462 * config/mcore/mcore.c: Likewise.
11463 * config/mep/mep.c: Likewise.
11464 * config/microblaze/microblaze.c: Likewise.
11465 * config/mips/mips.c: Likewise.
11466 * config/rs6000/rs6000.c: Likewise.
11467 * config/rx/rx.c: Likewise.
11468 * config/sh/sh.c: Likewise.
11469 * config/sol2.h: Likewise.
11470 * config/sparc/sparc.c: Likewise.
11471 * config/spu/spu.c: Likewise.
11472 * config/stormy16/stormy16.c: Likewise.
11473 * config/v850/v850.c: Likewise.
11474
11475 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11476
11477 * simplify-rtx.c (simplify_binary_operation_1): Handle
11478 (xor (and A B) C) case when B and C are both constants.
11479
11480 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11481
11482 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11483
11484 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11485
11486 PR bootstrap/48168
11487 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11488
11489 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11490
11491 PR rtl-optimization/48156
11492 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11493 assume df and df_lr are not NULL.
11494
11495 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11496
11497 PR debug/48023
11498 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11499 between a call and its CALL_ARG_LOCATION note.
11500
11501 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11502
11503 PR debug/48178
11504 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11505 between a call and its corresponding CALL_ARG_LOCATION note.
11506
11507 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11508
11509 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11510 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11511 * haifa-sched.c (setup_ref_regs): Ditto.
11512 * caller-save.c (add_used_regs_1): Ditto.
11513 * dse.c (look_for_hardregs): Ditto.
11514 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11515 * sched-rgn.c (check_live_1): Ditto.
11516
11517 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11518
11519 * c-decl.c (diagnose_mismatched_decls): Give an error for
11520 redefining a typedef with variably modified type.
11521
11522 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11523
11524 * c-decl.c (grokfield): Don't allow typedefs for structures or
11525 unions with no tag by default.
11526 * doc/extend.texi (Unnamed Fields): Update.
11527
11528 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11529
11530 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11531 Rewrite using indirect functions.
11532 (lwp_slwpcb): Ditto.
11533 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11534 (avx_vinsertf128<mode>): Ditto.
11535
11536 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11537
11538 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11539 unspecs.
11540
11541 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11542
11543 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11544 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11545
11546 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11547
11548 PR rtl-optimization/48170
11549 * gcse.c (hoist_code): Remove bogus asserts.
11550
11551 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11552
11553 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11554 computation for prologue/epilogue.
11555
11556 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11557
11558 * Makefile.in (check-consistency): Remove.
11559
11560 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11561
11562 PR debug/48176
11563 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11564 arange_table_in_use is 0, but either text_section_used or
11565 cold_text_section_used is true. Don't call it if
11566 !info_section_emitted.
11567
11568 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11569
11570 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11571 FUNCTION_VALUE_REGNO_P): Remove.
11572 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11573 Remove.
11574 * config/avr/avr.c (avr_ret_register): Make static inline.
11575 (avr_function_value_regno_p): New function.
11576 (avr_libcall_value): Make static. Add 'func' argument.
11577 (avr_function_value): Make static. Rename 'func' argument to
11578 'fn_decl_or_type', forward it to avr_libcall_value. Call
11579 avr_ret_register function instead of RET_REGISTER macro.
11580 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11581
11582 2011-03-18 Jason Merrill <jason@redhat.com>
11583
11584 PR c++/23372
11585 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11586
11587 2011-03-18 Richard Guenther <rguenther@suse.de>
11588
11589 * doc/install.texi (--enable-gold): Remove.
11590 (--with-plugin-ld): Document.
11591 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11592
11593 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11594
11595 PR middle-end/47790
11596 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11597 again after expansion changes.
11598
11599 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11600
11601 * combine.c (try_combine): Do simplification only call of
11602 subst() on i2 even when i1 is present. Update comments.
11603
11604 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11605
11606 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11607 and UNSPEC_PCREL_SYMOFF.
11608
11609 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11610
11611 * config/s390/s390.md: Use define_c_enum for the unspec constant
11612 definitions.
11613
11614 2011-03-18 Richard Henderson <rth@redhat.com>
11615 Jakub Jelinek <jakub@redhat.com>
11616
11617 PR bootstrap/48161
11618 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11619 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11620
11621 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11622
11623 PR middle-end/47725
11624 * combine.c (cant_combine_insn_p): Don't check zero/sign
11625 extended hard registers.
11626
11627 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11628
11629 PR middle-end/47725
11630 * combine.c (cant_combine_insn_p): Check zero/sign extended
11631 hard registers.
11632
11633 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11634
11635 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11636 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11637 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11638 Change return type to bool.
11639 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11640
11641 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11642
11643 PR debug/48163
11644 * var-tracking.c (prepare_call_arguments): If CALL target
11645 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11646 pc instead of looking it up using cselib_lookup and use
11647 Pmode for it if x has VOIDmode.
11648 * dwarf2out.c (gen_subprogram_die): If also both first and
11649 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11650
11651 PR debug/48163
11652 * function.c (assign_parms): For data.passed_pointer parms
11653 use MEM of data.entry_parm instead of data.entry_parm itself
11654 as DECL_INCOMING_RTL.
11655 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11656 also when passed and declared mode is the same, DECL_RTL
11657 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11658 a MEM too.
11659
11660 2011-03-16 Jeff Law <law@redhat.com>
11661
11662 PR rtl-optimization/37273
11663 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11664 handle them like argument loads from stack slots. Do not double
11665 count memory for memory constants and argument loads from stack slots.
11666
11667 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11668
11669 PR debug/48160
11670 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11671
11672 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11673
11674 PR target/48171
11675 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11676
11677 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11678
11679 PR bootstrap/48153
11680 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11681 if dwarf_strict.
11682 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11683 Clear call_arg_locations and call_arg_loc_last always.
11684
11685 PR middle-end/48152
11686 * var-tracking.c (prepare_call_arguments): If argument needs to be
11687 passed by reference, adjust argtype and mode.
11688
11689 2011-03-17 Richard Guenther <rguenther@suse.de>
11690
11691 PR middle-end/48134
11692 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11693 a value make sure to fold the statement.
11694
11695 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11696
11697 PR target/43872
11698 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11699 return condition with !cfun->calls_alloca.
11700
11701 2011-03-17 Richard Guenther <rguenther@suse.de>
11702
11703 PR bootstrap/48148
11704 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11705 origin for decls in other ltrans units.
11706 (input_varpool_node): Likewise.
11707
11708 2011-03-17 Richard Guenther <rguenther@suse.de>
11709
11710 PR middle-end/48165
11711 * tree-object-size.c (compute_object_offset): Properly return
11712 the offset operand of MEM_REFs as sizetype.
11713
11714 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11715
11716 PR rtl-optimization/48141
11717 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11718 * dse.c: Include params.h.
11719 (active_local_stores_len): New variable.
11720 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11721 to NULL.
11722 (record_store, check_mem_read_rtx): Decrease it when removing
11723 from the chain.
11724 (scan_insn): Likewise. Increase it when adding to chain, if it
11725 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11726 set active_local_stores to NULL before the addition.
11727 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11728
11729 PR rtl-optimization/48141
11730 * dse.c (record_store): If no positions are needed in an insn
11731 that cannot be deleted, at least unchain it from active_local_stores.
11732
11733 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11734
11735 PR debug/47510
11736 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11737 (lookup_type_die_strip_naming_typedef): ... here.
11738 (get_context_die): Use it.
11739 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11740 the anonymous struct named by the naming typedef.
11741
11742 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11743
11744 PR target/48154
11745 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11746 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11747
11748 2011-03-16 Jeff Law <law@redhat.com>
11749
11750 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11751 check for operands of conditional. Allow type to be a pointer.
11752
11753 2011-03-16 Richard Guenther <rguenther@suse.de>
11754
11755 PR tree-optimization/48149
11756 * fold-const.c (fold_binary_loc): Fold
11757 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11758
11759 2011-03-16 Richard Guenther <rguenther@suse.de>
11760
11761 PR tree-optimization/26134
11762 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11763 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11764 (non_rewritable_mem_ref_base): Handle complex type component
11765 accesses, constrain offsets for vector and complex extracts
11766 more properly.
11767
11768 2011-03-16 Richard Guenther <rguenther@suse.de>
11769
11770 PR tree-optimization/48146
11771 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11772 operands avoiding the need for renaming.
11773
11774 2011-03-16 Richard Guenther <rguenther@suse.de>
11775
11776 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11777 constant folding. Move MEM_REF canonicalization first.
11778 Rely on fold_const_aggregate_ref for initializer folding.
11779 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11780
11781 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11782
11783 PR middle-end/48136
11784 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11785 arg0/arg1 or their arguments are always fold converted to matching
11786 types.
11787
11788 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11789 to nargs.
11790
11791 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11792
11793 PR lto/46944
11794 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11795 Handle in-tree gold.
11796 (ld_vers): Extract binutils version for gold.
11797 (gcc_cv_ld_hidden): Handle gold here.
11798 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11799 * configure: Regenerate.
11800 * config.in: Regenerate.
11801 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11802 -fuse-linker-plugin otherwise.
11803 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11804 (LINK_COMMAND_SPEC): Use it.
11805 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11806
11807 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11808
11809 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11810 * calls.c: Remove debug.h include.
11811 (emit_call_1): Don't call virtual_call_token debug hook.
11812 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11813 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11814 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11815 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11816 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11817 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11818 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11819 dwarf2out_virtual_call): Remove.
11820 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11821 copy_call_info and virtual_call hooks.
11822 (dwarf2out_init): Don't initialize vcall_insn_table,
11823 debug_dcall_section and debug_vcall_section.
11824 (prune_unused_types): Don't mark nodes from dcall_table.
11825 (dwarf2out_finish): Don't output dcall or vcall tables.
11826 * final.c (final_scan_insn): Don't call direct_call or
11827 virtual_call debug hooks.
11828 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11829 virtual_call_token, copy_call_info and virtual_call hooks.
11830 (debug_nothing_uid): Remove prototype.
11831 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11832 copy_call_info and virtual_call hooks.
11833 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11834 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11835 * debug.c (do_nothing_debug_hooks): Likewise.
11836 (debug_nothing_uid): Remove.
11837 * doc/invoke.texi (-fenable-icf-debug): Remove.
11838 * common.opt (-fenable-icf-debug): Likewise.
11839
11840 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11841 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11842 call's MEM. Handle functions returning aggregate through a hidden
11843 first pointer. For virtual calls add clobbered pc to call arguments
11844 chain.
11845 * dwarf2out.c (gen_subprogram_die): Emit
11846 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11847 can't be emitted.
11848
11849 PR debug/45882
11850 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11851 * rtl.h (ENTRY_VALUE_EXP): Define.
11852 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11853 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11854 * print-rtl.c (print_rtx): Likewise.
11855 * gengtype.c (adjust_field_rtx_def): Likewise.
11856 * var-tracking.c (vt_add_function_parameter): Adjust
11857 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11858 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11859 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11860 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11861 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11862
11863 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11864 Call var_location debug hook even on CALL_INSNs.
11865 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11866 * rtl.def (ENTRY_VALUE): New.
11867 * dwarf2out.c: Include cfglayout.h.
11868 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11869 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11870 (struct call_arg_loc_node): New type.
11871 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11872 tail_call_site_count): New variables.
11873 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11874 DW_TAG_GNU_call_site_parameter.
11875 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11876 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11877 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11878 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11879 and DW_AT_GNU_all_source_call_sites.
11880 (mem_loc_descriptor): Handle ENTRY_VALUE.
11881 (add_src_coords_attributes): Don't add enything if
11882 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11883 (dwarf2out_abstract_function): Save and clear call_arg_location,
11884 call_site_count and tail_call_site_count around dwarf2out_decl call.
11885 (gen_call_site_die): New function.
11886 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11887 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11888 (dwarf2out_function_decl): Clear call_arg_locations,
11889 call_arg_loc_last, set call_site_count and tail_call_site_count
11890 to -1 and free block_map.
11891 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11892 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11893 followed by any real instructions.
11894 (dwarf2out_begin_function): Set call_site_count and
11895 tail_call_site_count to 0.
11896 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11897 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11898 attempt to force a DIE for it and worst case remove the attribute.
11899 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11900 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11901 the decl itself.
11902 * var-tracking.c: Include tm_p.h.
11903 (vt_stack_adjustments): For calls call note_register_arguments.
11904 (argument_reg_set): New variable.
11905 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11906 ensure the VALUE is resolved.
11907 (call_arguments): New variable.
11908 (prepare_call_arguments): New function.
11909 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11910 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11911 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11912 always use the best expression.
11913 (vt_expand_loc): Add ignore_cur_loc argument.
11914 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11915 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11916 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11917 note for all calls.
11918 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11919 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11920 argument. Don't call cselib_preserve_only_values and
11921 cselib_reset_table.
11922 (note_register_arguments): New function.
11923 (vt_initialize): Compute argument_reg_set. Call
11924 vt_add_function_parameters before processing basic blocks instead of
11925 afterwards. For calls call prepare_call_arguments before calling
11926 cselib_process_insn.
11927 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11928 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11929 (var-tracking.o): Depend on $(TM_P_H).
11930 * cfglayout.h (insn_scope): New prototype.
11931 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11932 * cfglayout.c (insn_scope): No longer static.
11933 * insn-notes.def (CALL_ARG_LOCATION): New.
11934 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11935 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11936 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11937 nothing for DECL_EXTERNAL BLOCK_VARS.
11938
11939 2011-03-16 Alan Modra <amodra@gmail.com>
11940
11941 PR target/45844
11942 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11943 create invalid offset address for vsx splat insn.
11944 * config/rs6000/predicates.md (splat_input_operand): New.
11945 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11946
11947 2011-03-15 Xinliang David Li <davidxl@google.com>
11948
11949 PR c/47837
11950 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11951 (normalize_preds): New function.
11952 (is_use_properly_guarded): Normalize def predicates.
11953
11954 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11955
11956 PR target/46788
11957 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11958 in the output template.
11959
11960 2011-03-15 Richard Guenther <rguenther@suse.de>
11961
11962 PR middle-end/47650
11963 * tree-pretty-print.c (dump_function_declaration): Properly
11964 dump unprototyped and varargs function types.
11965
11966 2011-03-15 Richard Guenther <rguenther@suse.de>
11967
11968 PR tree-optimization/13954
11969 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11970 and friends.
11971
11972 2011-03-15 Richard Guenther <rguenther@suse.de>
11973
11974 PR tree-optimization/48037
11975 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11976 selects into BIT_FIELD_REFs.
11977 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11978 vector select.
11979
11980 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11981
11982 PR tree-optimization/48129
11983 * builtins.c (fold_builtin_snprintf): Convert to type of
11984 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11985 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11986
11987 2011-03-15 Richard Guenther <rguenther@suse.de>
11988
11989 PR tree-optimization/41490
11990 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11991 value but with VUSE.
11992 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11993 return statements.
11994 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11995 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11996 * tree-tailcall.c (find_tail_calls): Ignore returns.
11997
11998 2011-03-15 Richard Guenther <rguenther@suse.de>
11999
12000 PR middle-end/48031
12001 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12002 or variable-indexed array accesses when in gimple form.
12003
12004 2011-03-15 Richard Guenther <rguenther@suse.de>
12005
12006 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12007
12008 2011-03-15 Alan Modra <amodra@gmail.com>
12009
12010 PR target/48032
12011 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12012 presume symbol_refs without a symbol_ref_decl are suitably
12013 aligned, nor other trees we may see here. Handle anchor symbols.
12014 (legitimate_constant_pool_address_p): Comment. Add mode param.
12015 Check cmodel=medium addresses. Adjust all calls.
12016 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12017 creating cmodel=medium optimized access to locals.
12018 * config/rs6000/constraints.md (R): Pass QImode to
12019 legitimate_constant_pool_address_p.
12020 * config/rs6000/predicates.md (input_operand): Pass mode to
12021 legitimate_constant_pool_address_p.
12022 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12023 Update prototype.
12024
12025 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12026
12027 PR target/48053
12028 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12029 64-bit constants being loaded into registers other than GPRs such
12030 as loading 0 into a VSX register.
12031
12032 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12033
12034 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12035
12036 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12037
12038 PR middle-end/47917
12039 * builtins.c (fold_builtin_snprintf): New function.
12040 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12041 (fold_builtin_4): Likewise.
12042
12043 PR middle-end/38878
12044 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12045 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12046 and C - X == X also strip nops from +/-/p+ operand.
12047 When optimizing -X == C, fold C to arg0's type.
12048
12049 PR debug/47946
12050 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12051 emit it as add_AT_int instead of add_AT_unsigned.
12052
12053 2011-03-14 Tom Tromey <tromey@redhat.com>
12054
12055 * unwind-dw2.c: Include sys/sdt.h if it exists.
12056 (_Unwind_DebugHook): Use STAP_PROBE2.
12057 * config.in, configure: Rebuild.
12058 * configure.ac: Check for sys/sdt.h.
12059
12060 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12061
12062 * config/i386/i386.md (ROUND_FLOOR): New constant.
12063 (ROUND_CEIL): Ditto.
12064 (ROUND_TRUNC): Ditto.
12065 (ROUND_MXCSR): Ditto.
12066 (ROUND_NO_EXC): Ditto.
12067 (rint<mode>2): Use new defines instead of numerical constants.
12068 (floor<mode>2): Ditto.
12069 (ceil<mode>2): Ditto.
12070 (btrunc<mode>2): Ditto.
12071 * config/i386/i386-builtin-types.def: Define ROUND function type
12072 aliases.
12073 * config/i386/i386.c (enum ix86_builtins): Add
12074 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12075 (struct builtin_description): Add
12076 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12077 (ix86_expand_sse_round): New static function.
12078 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12079 function types.
12080 (ix86_builtin_vectorized_function): Handle
12081 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12082
12083 2011-03-14 Tom Tromey <tromey@redhat.com>
12084
12085 * c-parser.c (c_parser_asm_string_literal): Clear
12086 warn_overlength_strings.
12087
12088 2011-03-14 Tom Tromey <tromey@redhat.com>
12089
12090 * c-parser.c (disable_extension_diagnostics): Save
12091 warn_overlength_strings.
12092 (restore_extension_diagnostics): Restore warn_overlength_strings.
12093
12094 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12095
12096 * BASE-VER: Change to 4.7.0.
12097
12098 2011-03-14 Richard Guenther <rguenther@suse.de>
12099
12100 PR middle-end/48098
12101 * tree.c (build_vector_from_val): Adjust assert to requirements
12102 and reality.
12103
12104 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12105
12106 PR bootstrap/48102
12107 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12108
12109 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12110
12111 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12112 terms of target_flags_explicit. Adjust copyright year.
12113
12114 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12115 * config/rs6000/t-freebsd: New file. Add override for
12116 LIB2FUNCS_EXTRA.
12117
12118 2011-03-13 Chris Demetriou <cgd@google.com>
12119
12120 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12121 (-fno-diagnostics-show-option): this, to reflect current default.
12122 (-Werror=): Update text about -fno-diagnostics-show-option.
12123
12124 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12125
12126 PR target/48053
12127 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12128 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12129 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12130 mode is not V2DImode or V2DFmode.
12131 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12132 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12133 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12134 registers to 0.
12135 (movdi_internal64): Likewise.
12136
12137 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12138
12139 PR tree-optimization/47127
12140 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12141 parameter.
12142 (set_cloog_options): Same.
12143 (scop_to_clast): Same.
12144 (print_clast_stmt): Do not call cloog_state_malloc and
12145 cloog_state_free.
12146 (print_generated_program): Same.
12147 (gloog): Same.
12148 * graphite-clast-to-gimple.h (cloog_state): Declared.
12149 (scop_to_clast): Adjust declaration.
12150 * graphite.c (cloog_state): Defined here.
12151 (graphite_initialize): Call cloog_state_malloc.
12152 (graphite_finalize): Call cloog_state_free.
12153
12154 2011-03-11 Jason Merrill <jason@redhat.com>
12155
12156 * attribs.c (lookup_attribute_spec): Take const_tree.
12157 * tree.h: Adjust.
12158
12159 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12160
12161 * config/sparc/sparc.c (sparc_option_override): Use
12162 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12163
12164 2011-03-11 Richard Guenther <rguenther@suse.de>
12165
12166 PR tree-optimization/48067
12167 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12168 multiplication result will be only used once on the target
12169 stmt.
12170
12171 2011-03-11 Richard Guenther <rguenther@suse.de>
12172
12173 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12174
12175 2011-03-11 Richard Guenther <rguenther@suse.de>
12176
12177 PR lto/48073
12178 * tree.c (find_decls_types_r): Do not walk types only reachable
12179 from IDENTIFIER_NODEs.
12180
12181 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12182
12183 PR middle-end/48044
12184 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12185 all vnode->force_output nodes as needed.
12186
12187 2011-03-11 Jason Merrill <jason@redhat.com>
12188
12189 PR c++/48069
12190 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12191 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12192
12193 2011-03-11 Martin Jambor <mjambor@suse.cz>
12194
12195 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12196 cgraph_node.
12197
12198 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12199
12200 PR tree-optimization/48063
12201 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12202 inline functions called once if !tree_can_inline_p (node->callers).
12203
12204 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12205
12206 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12207 extra_objs.
12208 * config/score/score3.c: Delete.
12209 * config/score/score3.h: Delete.
12210 * config/score/mul-div.S: Delete.
12211 * config/score/sfp-machine.h: Add new file.
12212 * config/score/constraints.md: Add new file.
12213 * config/score/t-score-softfp: Add new file.
12214 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12215 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12216 (score7_extra_constraint): Delete.
12217 (score7_option_override): Remove unused code.
12218 * config/score/score.c: Remove score3 and score5 define and code.
12219 * config/score/score.h: Remove score3 and score5 define and code.
12220 * config/score/score.md: Remove score3 template and unusual insn.
12221 * config/score/score.opt: Remove score3 and score5 options.
12222
12223 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12224
12225 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12226 when _HPUX_SOURCE is defined.
12227 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12228
12229 2011-03-10 Jason Merrill <jason@redhat.com>
12230
12231 PR c++/48029
12232 * stor-layout.c (layout_type): Don't set structural equality
12233 on arrays of incomplete type.
12234 * tree.c (type_hash_eq): Handle comparing them properly.
12235
12236 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12237
12238 PR debug/48043
12239 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12240 result mode matches original rtl mode.
12241
12242 2011-03-10 Nick Clifton <nickc@redhat.com>
12243
12244 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12245 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12246
12247 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12248
12249 PR rtl-optimization/47866
12250 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12251 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12252 if target wasn't scalar.
12253 * function.c (assign_stack_temp_for_type): Assert that neither
12254 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12255 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12256 macro.
12257 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12258
12259 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12260
12261 * config/s390/s390-protos.h (s390_label_align): New prototype.
12262 * config/s390/s390.c (s390_label_align): New function.
12263 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12264
12265 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12266
12267 PR target/47755
12268 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12269 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12270 (output_vec_const_move): Ditto.
12271
12272 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12273
12274 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12275 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12276 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12277 Change 'rclass' argument and result type to reg_class_t.
12278 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12279
12280 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12281
12282 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12283 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12284 (TARGET_MEMORY_MOVE_COST): Define.
12285 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12286
12287 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12288
12289 PR debug/47881
12290 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12291 removed anything.
12292
12293 PR tree-optimization/48022
12294 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12295 for EQ/NE_EXPR.
12296
12297 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12298
12299 PR debug/47991
12300 * var-tracking.c (find_use_val): Return NULL for
12301 cui->sets && cui->store_p BLKmode MEMs.
12302
12303 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12304
12305 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12306 Remove.
12307 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12308 xstormy16_print_operand_address): Remove.
12309 * config/stormy16/stormy16.c (xstormy16_print_operand,
12310 xstormy16_print_operand_address): Make static.
12311 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12312
12313 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12314
12315 PR target/47862
12316 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12317 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12318 before definition.
12319
12320 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12321
12322 PR bootstrap/48000
12323 * cfgloopmanip.c (fix_bb_placements): Return immediately
12324 if FROM is BASE_LOOP's header.
12325
12326 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12327
12328 * gimplify.c (gimplify_function_tree): Fix building calls
12329 to __builtin_return_address.
12330
12331 2011-03-07 Alan Modra <amodra@gmail.com>
12332
12333 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12334 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12335 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12336 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12337 return_mode args.
12338 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12339 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12340 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12341 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12342 * config/rs6000/rs6000.c
12343 (rs6000_elf_end_indicate_exec_stack): Rename to..
12344 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12345 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12346 (rs6000_file_start): ..here.
12347 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12348 file scope variables.
12349 (call_ABI_of_interest): New function.
12350 (init_cumulative_args): Set above vars when function return value
12351 is a float, vector, or small struct.
12352 (rs6000_function_arg_advance_1): Likewise for function args.
12353 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12354 references float args.
12355
12356 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12357
12358 * doc/cfg.texi: Remove "See" before @ref.
12359 * doc/invoke.texi: Likewise.
12360
12361 2011-03-05 Jason Merrill <jason@redhat.com>
12362
12363 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12364
12365 2011-03-05 Anthony Green <green@moxielogic.com>
12366
12367 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12368
12369 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12370
12371 PR rtl-optimization/47899
12372 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12373 to flow_loop_nested_p when moving the loop upward.
12374
12375 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12376
12377 PR target/47719
12378 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12379
12380 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12381
12382 PR tree-optimization/47967
12383 * ipa-cp.c (build_const_val): Return NULL instead of creating
12384 VIEW_CONVERT_EXPR for mismatching sizes.
12385 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12386 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12387 give up on versioning.
12388
12389 2011-03-05 Alan Modra <amodra@gmail.com>
12390
12391 PR target/47986
12392 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12393 full cmodel medium/large lo_sum + high addresses.
12394
12395 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12396
12397 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12398 pool references in UNSPEC_LTREL_OFFSET.
12399
12400 2011-03-04 Jan Hubicka <jh@suse.cz>
12401
12402 PR lto/47497
12403 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12404 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12405 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12406 Add node pointers.
12407 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12408 cgraph_add_thunk): Add node pointers.
12409 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12410 associated to right node.
12411 (input_node): Update use of cgraph_same_body_alias
12412 and cgraph_add_thunk.
12413
12414 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12415
12416 * config/i386/i386.opt (mprefer-avx128): New flag.
12417 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12418 modes when the flag -mprefer-avx128 is on.
12419
12420 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12421
12422 * dwarf2out.c (compare_loc_operands): Fix address handling.
12423
12424 2011-03-04 Alan Modra <amodra@gmail.com>
12425
12426 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12427
12428 2011-03-04 Richard Guenther <rguenther@suse.de>
12429
12430 PR middle-end/47968
12431 * expmed.c (extract_bit_field_1): Prefer vector modes that
12432 vec_extract patterns can handle.
12433
12434 2011-03-04 Richard Guenther <rguenther@suse.de>
12435
12436 PR middle-end/47975
12437 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12438
12439 2011-03-04 Richard Henderson <rth@redhat.com>
12440
12441 * explow.c (emit_stack_save): Remove 'after' parameter.
12442 (emit_stack_restore): Likewise.
12443 * expr.h: Update to match.
12444 * builtins.c, calls.c, stmt.c: Likewise.
12445 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12446 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12447 * function.c (expand_function_end): Insert the emit_stack_save
12448 sequence before parm_birth_insn instead of after.
12449
12450 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12451
12452 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12453 (ssse3_pmaddubsw128): Ditto.
12454 (ssse3_pmaddubsw): Ditto.
12455
12456 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12457
12458 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12459
12460 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12461
12462 PR c/47963
12463 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12464 on TYPE_SIZE_UNIT if it is a DECL.
12465
12466 PR debug/47283
12467 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12468 first operand is not is_gimple_mem_ref_addr, try to fold it.
12469 If the operand still isn't is_gimple_mem_ref_addr, clear
12470 MEM_EXPR on op0.
12471
12472 2011-03-03 Richard Guenther <rguenther@suse.de>
12473
12474 PR middle-end/47283
12475 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12476 match comment.
12477 (refs_may_alias_p_1): For release branches return true if
12478 we are confused by our input.
12479
12480 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12481
12482 * config/s390/s390.c (s390_function_value): Rename to ...
12483 (s390_function_and_libcall_value): ... this.
12484 (s390_function_value): New function.
12485 (s390_libcall_value): New function.
12486 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12487 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12488 target macro definitions.
12489 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12490
12491 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12492
12493 * config/i386/freebsd64.h (CC1_SPEC): Define.
12494 * config/i386/linux64.h (CC1_SPEC): Define.
12495 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12496
12497 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12498
12499 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12500 Remove.
12501 * config/stormy16/stormy16.c: Include reload.h.
12502 (xstormy16_memory_move_cost): New function.
12503 (TARGET_MEMORY_MOVE_COST): Define.
12504
12505 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12506
12507 PR rtl-optimization/47925
12508 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12509 with side effects. Remove the more-specific check for volatile asms.
12510
12511 2011-03-02 Alan Modra <amodra@gmail.com>
12512
12513 PR target/47935
12514 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12515 toc relative addresses for valid offsets.
12516
12517 2011-03-01 Richard Guenther <rguenther@suse.de>
12518
12519 PR tree-optimization/47890
12520 * tree-vect-loop.c (get_initial_def_for_induction): Set
12521 related stmt properly.
12522
12523 2011-03-01 Richard Guenther <rguenther@suse.de>
12524
12525 PR lto/47924
12526 * lto-streamer.c (lto_record_common_node): Also register
12527 the canonical type.
12528
12529 2011-03-01 Richard Guenther <rguenther@suse.de>
12530
12531 PR lto/46911
12532 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12533 Do not stream DECL_ABSTRACT_ORIGIN.
12534 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12535 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12536 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12537 Do not stream DECL_ABSTRACT_ORIGIN.
12538 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12539 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12540
12541 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12542
12543 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12544 FUNCTION_VALUE_REGNO_P): Remove.
12545 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12546 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12547 Add 'outgoing' argument.
12548 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12549 function.
12550 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12551 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12552
12553 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12554
12555 PR debug/28047
12556 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12557 (lookup_filename): Likewise.
12558 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12559
12560 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12561 Jakub Jelinek <jakub@redhat.com>
12562
12563 PR middle-end/47893
12564 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12565 (assign_stack_local_1): Change last argument type to int.
12566 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12567 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12568 don't record padding space into frame_space_list nor use those areas.
12569 (assign_stack_local): Adjust caller.
12570 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12571 of assign_stack_local, pass 0 as last argument.
12572 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12573 callers.
12574
12575 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12576
12577 PR debug/47283
12578 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12579 Use target address_mode and pointer_mode hooks instead of hardcoded
12580 Pmode and ptr_mode. Handle some simple cases of extending if
12581 POINTERS_EXTEND_UNSIGNED < 0.
12582 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12583 Call convert_debug_memory_address.
12584 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12585 convert_debug_memory_address.
12586
12587 PR middle-end/46790
12588 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12589 * configure: Regenerated.
12590 * config.in: Regenerated.
12591 * varasm.c (default_function_section): Return NULL
12592 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12593
12594 2011-02-28 Martin Jambor <mjambor@suse.cz>
12595
12596 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12597 the description to match the printed values.
12598
12599 2011-02-28 Richard Guenther <rguenther@suse.de>
12600
12601 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12602 of the copied scope tree.
12603
12604 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12605
12606 * doc/extend.texi (Function Attributes): Avoid deeply (and
12607 wrongly) nested tables.
12608
12609 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12610
12611 PR middle-end/47903
12612 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12613 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12614 r isn't op0 nor op1.
12615
12616 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12617
12618 * config/avr/avr.md: Remove magic comment for emacs.
12619
12620 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12621
12622 PR target/45261
12623 * config/avr/avr.c (avr_option_override): Use error on bad options.
12624 (avr_help): New function.
12625 (TARGET_HELP): Define.
12626
12627 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12628
12629 PR target/42240
12630 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12631 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12632
12633 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12634
12635 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12636 (ARM Options): Ditto.
12637 (i386 and x86-64 Options): Ditto.
12638 (RX Options): Ditto.
12639 (SPARC Options): Ditto.
12640
12641 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12642
12643 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12644 FreeBSD 6 and later. Generally use cpu generic.
12645
12646 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12647
12648 * doc/cpp.texi: Update copyright years.
12649
12650 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12651
12652 PR target/46898
12653 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12654
12655 2011-02-25 Jon Beniston <jon@beniston.com>
12656
12657 PR target/46898
12658 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12659 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12660 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12661 (lm32_block_move_inline): Add type cast to remove warning.
12662 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12663 (gen_int_relational): Move declarations to start of function.
12664
12665 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12666
12667 PR tree-optimization/45470
12668 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12669 can throw internally only.
12670 * tree-vect-stmts.c (vectorizable_call): Likewise.
12671
12672 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12673
12674 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12675 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12676 * config/stormy16/stormy16-protos.h
12677 (xstormy16_preferred_reload_class): Remove.
12678 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12679 static. Change 'rclass' argument and return type to reg_class_t.
12680 (TARGET_PREFERRED_RELOAD_CLASS,
12681 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12682
12683 2011-02-24 Richard Guenther <rguenther@suse.de>
12684
12685 * lto-streamer-in.c (input_bb): Do not find referenced vars
12686 in debug statements.
12687
12688 2011-02-23 Jason Merrill <jason@redhat.com>
12689
12690 * common.opt (fabi-version): Document v5 and v6.
12691
12692 2011-02-23 Richard Guenther <rguenther@suse.de>
12693
12694 PR tree-optimization/47849
12695 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12696
12697 2011-02-23 Jie Zhang <jie@codesourcery.com>
12698
12699 * opts-common.c (decode_cmdline_option): Print empty string
12700 argument as "" in decoded->orig_option_with_args_text.
12701 * gcc.c (execute): Print empty string argument as ""
12702 in the verbose output.
12703 (do_spec_1): Keep empty string argument.
12704
12705 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12706
12707 * config.gcc: Declare score-* and crx-* obsolete.
12708
12709 2011-02-23 Jie Zhang <jie@codesourcery.com>
12710
12711 PR rtl-optimization/47763
12712 * web.c (web_main): Ignore naked clobber when replacing register.
12713
12714 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12715
12716 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12717 Remove.
12718
12719 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12720
12721 PR doc/47848
12722 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12723
12724 2011-02-22 Mike Stump <mikestump@comcast.net>
12725
12726 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12727 assembler.
12728 * configure: Regenerate.
12729
12730 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12731
12732 PR rtl-optimization/46002
12733 * ira-color.c (update_copy_costs): Change class intersection
12734 test to reg_class_contents[] test of 'hard_regno'.
12735
12736 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12737
12738 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12739 than Driver option.
12740 * config/hpux11.opt (mt): Likewise.
12741 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12742 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12743 * config/vax/elf.opt (mno-asm-pic): Likewise.
12744 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12745
12746 2011-02-21 Mike Stump <mikestump@comcast.net>
12747
12748 PR target/47822
12749 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12750 tree so we can get save the type.
12751 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12752 for CFString instead of trying to use past the end of the builtins.
12753 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12754 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12755 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12756 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12757 Rename to darwin_builtin_cfstring.
12758 (darwin_init_cfstring_builtins): Return the built type.
12759
12760 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12761
12762 PR target/47840
12763 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12764 (_mm256_insert_epi64): Use _mm_insert_epi64.
12765
12766 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12767
12768 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12769 * config/stormy16/stormy16-protos.h
12770 (xstormy16_mode_dependent_address_p): Remove.
12771 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12772 Make static. Change return type to bool. Change argument type to
12773 const_rtx. Remove dead code.
12774 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12775
12776 2011-02-21 Richard Guenther <rguenther@suse.de>
12777
12778 PR lto/47820
12779 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12780 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12781 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12782 TUs context.
12783 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12784 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12785
12786 2011-02-20 Richard Guenther <rguenther@suse.de>
12787
12788 PR lto/47822
12789 * tree.c (free_lang_data_in_decl): Clean builtins from
12790 the TU decl BLOCK_VARS.
12791
12792 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12793
12794 PR debug/47620
12795 PR debug/47630
12796 * haifa-sched.c (fix_tick_ready): Skip tick computation
12797 for debug insns.
12798
12799 2011-02-19 Richard Guenther <rguenther@suse.de>
12800
12801 PR lto/47647
12802 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12803 Remove lazy BLOCK_VARS streaming.
12804 (lto_input_ts_block_tree_pointers): Likewise.
12805 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12806
12807 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12808
12809 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12810
12811 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12812
12813 * config/i386/biarch32.h, config/i386/mach.h,
12814 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12815
12816 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12817
12818 PR target/47800
12819 * config/i386/i386.md (peephole2 for shift and plus): Use
12820 operands[1] original mode in the first insn.
12821
12822 2011-02-18 Mike Stump <mikestump@comcast.net>
12823
12824 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12825
12826 2011-02-18 Jan Hubicka <jh@suse.cz>
12827
12828 PR middle-end/47788
12829 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12830 to zero when the function is not inlinable at all.
12831
12832 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12833
12834 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12835 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12836 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12837 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12838 * config/pa/t-pa64: Likewise.
12839 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12840
12841 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12842
12843 PR driver/47787
12844 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12845
12846 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12847
12848 PR target/47792
12849 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12850
12851 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12852
12853 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12854 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12855 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12856 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12857 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12858 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12859 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12860 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12861 m32r_legitimate_address_p): New functions.
12862 * config/m32r/constraints.md (constraint "S"): Don't use
12863 STORE_PREINC_PREDEC_P.
12864 (constraint "U"): Don't use LOAD_POSTINC_P.
12865
12866 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12867
12868 PR rtl-optimization/46178
12869 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12870 compute ira_hard_regno_cover_class[].
12871
12872 2011-02-18 Richard Guenther <rguenther@suse.de>
12873
12874 PR lto/47798
12875 * lto-streamer.h (lto_global_var_decls): Declare.
12876 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12877 statics for global var processing.
12878
12879 2011-02-18 Richard Guenther <rguenther@suse.de>
12880
12881 PR tree-optimization/47737
12882 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12883 edge dominance check.
12884
12885 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12886
12887 PR debug/47780
12888 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12889 avoid invalid rtx sharing.
12890
12891 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12892
12893 * doc/cpp.texi (Obsolete Features): Add background on the
12894 origin of assertions.
12895
12896 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12897
12898 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12899 objc_abi == 2.
12900 * config/darwin.c (output_objc_section_asm_op): Added support for
12901 ABI v1 and v2.
12902 (is_objc_metadata): New.
12903 (darwin_objc2_section): New.
12904 (darwin_objc1_section): New.
12905 (machopic_select_section): Added support for ABI v1 and v2.
12906 (darwin_emit_objc_zeroed): New.
12907 (darwin_output_aligned_bss): Detect objc metadata and treat it
12908 appropriately.
12909 (darwin_asm_output_aligned_decl_common): Same.
12910 (darwin_asm_output_aligned_decl_local): Same.
12911 * config/darwin-sections.def: Updated for ABI v1 and v2.
12912 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12913 compiling Objective-C code for the NeXT runtime, default to using
12914 ABI version 0 for 32-bit, and version 2 for 64-bit.
12915
12916 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12917
12918 * common.opt (optimize_fast): New Variable.
12919 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12920 instead of local variable ofast.
12921
12922 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12923
12924 * doc/invoke.texi (fobjc-abi-version): Documented.
12925 (fobjc-nilcheck): Documented.
12926 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12927 version.
12928
12929 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12930
12931 PR driver/47390
12932 * common.opt (export-dynamic): New Driver option.
12933 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12934
12935 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12936
12937 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12938
12939 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12940 Jan Hubicka <jh@suse.cz>
12941
12942 PR debug/47106
12943 PR debug/47402
12944 * cfgexpand.c (account_used_vars_for_block): Remove.
12945 (estimated_stack_frame_size): Use referenced vars.
12946 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12947 that were referenced in the original function. Test src_fn
12948 rather than cfun. Drop redundant get_var_ann.
12949 (setup_one_parameter): Drop redundant get_var_ann.
12950 (declare_return_variable): Likewise.
12951 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12952 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12953 * ipa-inline.c (compute_inline_parameters): Do not compute
12954 disregard_inline_limits here.
12955 (compute_inlinable_for_current, pass_inlinable): New.
12956 (pass_inline_parameters): Require PROP_referenced_vars.
12957 * cgraphunit.c (cgraph_process_new_functions): Don't run
12958 compute_inline_parameters explicitly unless function is in SSA form.
12959 (cgraph_analyze_function): Set .disregard_inline_limits.
12960 * tree-sra.c (convert_callers): Compute inliner parameters
12961 only for functions already in SSA form.
12962
12963 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12964
12965 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12966 -mlittle-endian-data.
12967
12968 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12969
12970 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12971 -mno-fpu, not -fpu and -no-fpu.
12972 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12973 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12974
12975 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12976
12977 PR target/43653
12978 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12979 input reload with PLUS RTX.
12980
12981 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12982
12983 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12984 of InverseVar(MDMX).
12985
12986 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12987
12988 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12989 --m4-340.
12990
12991 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12992
12993 * config/mn10300/mn10300.opt (mno-crt0): New.
12994
12995 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12996
12997 * config/m68k/uclinux.opt (static-libc): New Driver option.
12998
12999 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13000
13001 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13002
13003 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13004
13005 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13006 %{muser-extend-enabled}.
13007
13008 2011-02-16 Richard Guenther <rguenther@suse.de>
13009
13010 PR tree-optimization/47738
13011 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13012 the TODO from tree_predictive_commoning.
13013
13014 2011-02-15 Jeff Law <law@redhat.com>
13015
13016 Revert
13017 2011-01-25 Jeff Law <law@redhat.com>
13018
13019 PR rtl-optimization/37273
13020 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13021 handle them like argument loads from stack slots. Do not double
13022 count memory for memory constants and argument loads from stack slots.
13023
13024 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13025
13026 PR middle-end/47725
13027 * combine.c (cant_combine_insn_p): Revert the last change.
13028
13029 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13030
13031 PR target/47755
13032 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13033 mode for vector constants. Remove code that checks for TImode.
13034
13035 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13036
13037 PR debug/47106
13038 PR debug/47402
13039 * cgraph.h (compute_inline_parameters): Return void.
13040 * ipa-inline.c (compute_inline_parameters): Adjust.
13041
13042 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13043
13044 PR debug/47106
13045 PR debug/47402
13046 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13047 rather than decl.
13048 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13049 * ipa-inline.c (compute_inline_parameters): Adjust.
13050
13051 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13052
13053 PR debug/47106
13054 PR debug/47402
13055 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13056 Adjust all users. Pass FN to...
13057 * tree-flow-inline.h (first_referenced_var): ... this. Add
13058 fn argument.
13059 * ipa-struct-reorg.c: Adjust.
13060 * tree-dfa.c: Adjust.
13061 * tree-into-ssa.c: Adjust.
13062 * tree-sra.c: Adjust.
13063 * tree-ssa-alias.c: Adjust.
13064 * tree-ssa-live.c: Adjust.
13065 * tree-ssa.c: Adjust.
13066 * tree-ssanames.c: Adjust.
13067 * tree-tailcall.c: Adjust.
13068
13069 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13070
13071 PR debug/47106
13072 PR debug/47402
13073 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13074 Adjust all callers.
13075 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13076 * tree-flow-inline.h: Adjust.
13077 * gimple-pretty-print.c: Adjust.
13078 * tree-into-ssa.c: Adjust.
13079 * tree-ssa.c: Adjust.
13080 * cfgexpand.c: Adjust.
13081
13082 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13083
13084 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13085 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13086 (EXTRA_CONSTRAINT): Delete.
13087 * config/iq2000/constraints.md: New file.
13088 * config/iq2000/iq2000.md: Include it.
13089 (define_insn ""): Delete.
13090 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13091 unsupported constraint letters from patterns.
13092 (call_value, call_value_internal1): Likewise.
13093 (call_value_multiple_internal1): Likewise.
13094
13095 2011-02-15 Nick Clifton <nickc@redhat.com>
13096
13097 * config/mn10300/mn10300.c: Include tm-constrs.h.
13098 (struct liw_data): New data structure describing an LIW candidate
13099 instruction.
13100 (extract_bundle): Use struct liw_data. Allow small integer
13101 operands for some instructions.
13102 (check_liw_constraints): Use struct liw_data. Remove swapped
13103 parameter. Add comments describing the checks. Fix bug when
13104 assigning the source of liw1 to the source of liw2.
13105 (liw_candidate): Delete. Code moved into extract_bundle.
13106 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13107 before swapping.
13108 * config/mn10300/predicates.md (liw_operand): New predicate.
13109 Allows registers and small integer constants.
13110 * config/mn10300/constraints.md (O): New constraint. Accetps
13111 integers in the range -8 to +7 inclusive.
13112 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13113 for moving a small integer into a register. Give this alternative
13114 LIW attributes.
13115 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13116 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13117 using the J,K,L and M constraints,
13118 (liw): Remove SI mode on second operands to allow for HI and QI
13119 mode values.
13120 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13121 instruction.
13122
13123 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13124
13125 PR middle-end/47725
13126 * combine.c (cant_combine_insn_p): Check zero/sign extended
13127 hard registers.
13128
13129 2011-02-15 Richard Guenther <rguenther@suse.de>
13130
13131 PR tree-optimization/47743
13132 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13133 for a non-type-compatible VN lookup bail out.
13134
13135 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13136
13137 * config/fr30/constraints.md: New file.
13138 * config/fr30/fr30.md: Include it.
13139 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13140 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13141 (EXTRA_CONSTRAINT): Delete.
13142
13143 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13144
13145 * config/frv/constraints.md: New file.
13146 * config/frv/predicates.md: Include it.
13147 * config/frv/frv.c (reg_class_from_letter): Delete.
13148 (frv_option_override): Don't initialize it.
13149 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13150 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13151 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13152 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13153 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13154 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13155 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13156 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13157 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13158 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13159 (REG_CLASS_FROM_CONSTRAINT): Delete.
13160
13161 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13162
13163 PR middle-end/47581
13164 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13165 if frame size is 0 in a leaf function.
13166
13167 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13168
13169 PR pch/14940
13170 * config/alpha/host-osf.c: New file.
13171 * config/alpha/x-osf: New file.
13172 * config.host (alpha*-dec-osf*): Use it.
13173
13174 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13175
13176 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13177 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13178 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13179 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13180 type to const_rtx.
13181 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13182
13183 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13184
13185 * config/stormy16/constraints.md: New file.
13186 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13187 Use satisfies_constraint_Q and satisfies_constraint_R.
13188 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13189 Delete.
13190 (xstormy16_legitiamte_address_p): Declare.
13191 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13192 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13193 (EXTRA_CONSTRAINT): Delete.
13194 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13195 Un-staticize.
13196 (xstormy16_extra_constraint_p): Delete.
13197
13198 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13199
13200 PR tree-optimization/46494
13201 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13202 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13203 (pass_rtl_loop_done): Add TODO_verify_flow.
13204 * fwprop.c (pass_rtl_fwprop): Likewise.
13205 * modulo-sched.c (pass_sms): Likewise.
13206 * tree-ssa-dom.c (pass_dominator): Likewise.
13207 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13208 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13209 (pass_tree_loop_done): Likewise.
13210 * tree-ssa-pre.c (execute_pre): Likewise.
13211 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13212 * tree-ssa-sink.c (pass_sink_code): Likewise.
13213 * tree-vrp.c (pass_vrp): Likewise.
13214
13215 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13216
13217 * config/v850/constraints.md: New file.
13218 * config/v850/v850.md: Include it.
13219 * config/v850/predicates.md (reg_or_0_operand): Use
13220 satisfies_constraint_G.
13221 (special_symbolref_operand): Use satisfies_constraint_K.
13222 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13223 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13224 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13225 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13226 (EXTRA_CONSTRAINT): Delete.
13227 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13228 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13229 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13230
13231 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13232
13233 PR target/47696
13234 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13235 description.
13236
13237 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13238
13239 * config/mcore/constraints.md: New file.
13240 * config/mcore/mcore.md: Include it.
13241 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13242 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13243 (REG_CLASS_FROM_LETTER): Delete.
13244 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13245 insn_const_int_ok_for_constraint.
13246 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13247 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13248 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13249 (EXTRA_CONSTRAINT): Delete.
13250
13251 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13252
13253 PR ada/41929
13254 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13255 (IS_SIGHANDLER): Define.
13256 (sparc64_is_sighandler): New function, split off from
13257 sparc64_fallback_frame_state.
13258 (sparc_is_sighandler): New function, split off from
13259 sparc_fallback_frame_state.
13260 (sparc64_fallback_frame_state): Merge with ...
13261 (sparc_fallback_frame_state): ... this into ...
13262 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13263 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13264 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13265 stack instead of hardcoded offsets.
13266
13267 2011-02-14 Andriy Gapon <avg@freebsd.org>
13268
13269 PR target/45808
13270 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13271
13272 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13273
13274 * configure: Regenerate.
13275
13276 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13277
13278 PR driver/45731
13279 * gcc.c (asm_options): Correct spec matching --target-help.
13280
13281 2011-02-12 Martin Jambor <mjambor@suse.cz>
13282
13283 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13284 to gimple call error.
13285
13286 2011-02-12 Mike Stump <mikestump@comcast.net>
13287
13288 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13289 comments in backslash regions.
13290
13291 2011-02-12 Mike Stump <mikestump@comcast.net>
13292 Jakub Jelinek <jakub@redhat.com>
13293 Iain Sandoe <iains@gcc.gnu.org>
13294
13295 PR target/47324
13296 * dwarf2out.c (output_cfa_loc): When required, apply the
13297 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13298 (output_loc_sequence): Likewise.
13299 (output_loc_operands_raw): Likewise.
13300 (output_loc_sequence_raw): Likewise.
13301 (output_cfa_loc): Likewise.
13302 (output_loc_list): Suppress register number adjustment when
13303 calling output_loc_sequence()
13304 (output_die): Likewise.
13305
13306 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13307
13308 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13309 Remove macros.
13310 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13311 xtensa_memory_move_cost): New functions.
13312 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13313
13314 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13315
13316 PR lto/47225
13317 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13318 in the current directory.
13319 * configure: Rebuilt.
13320
13321 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13322
13323 * config/darwin.c (darwin_override_options): Add a hunk missed
13324 from the commit of r168571. Trim comment line lengths and
13325 correct indents of the preceding block.
13326
13327 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13328
13329 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13330 the switch.
13331
13332 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13333
13334 * common.opt (nostartfiles): New Driver option.
13335
13336 2011-02-11 Xinliang David Li <davidxl@google.com>
13337
13338 PR tree-optimization/47707
13339 * tree-chrec.c (convert_affine_scev): Keep type precision.
13340
13341 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13342
13343 PR tree-optimization/47420
13344 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13345
13346 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13347
13348 PR rtl-optimization/47614
13349 * rtl.h (check_for_inc_dec): Declare.
13350 * dse.c (check_for_inc_dec): Externalize...
13351 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13352 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13353
13354 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13355
13356 PR driver/47678
13357 * gcc.c (main): Do not compile inputs if there were errors in
13358 option handling.
13359 * opts-common.c (read_cmdline_option): Check for wrong language
13360 after other error checks.
13361
13362 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13363
13364 * cgraph.c: Fix comment typos.
13365 * cgraph.h: Likewise.
13366 * cgraphunit.c: Likewise.
13367 * ipa-cp.c: Likewise.
13368 * ipa-inline.c: Likewise.
13369 * ipa-prop.c: Likewise.
13370 * ipa-pure-const.c: Likewise.
13371 * ipa-ref.c: Likewise.
13372 * ipa-reference.c: Likewise.
13373
13374 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13375
13376 PR debug/47684
13377 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13378
13379 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13380
13381 PR testsuite/47400
13382 * doc/sourcebuild.texi (Require Support): Document
13383 dg-require-ascii-locale.
13384
13385 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13386
13387 * doc/lto.texi (Write summary): Fix missing parentheses.
13388
13389 2011-02-10 DJ Delorie <dj@redhat.com>
13390
13391 * config/m32c/m32c.c (m32c_option_override): Disable
13392 -fcombine-stack-adjustments until flag value tracking and compare
13393 optimization can be rewritten.
13394
13395 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13396
13397 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13398 PROCESSOR_POWER7.
13399 (PROCESSOR_DEFAULT64): Likewise.
13400
13401 2011-02-10 Richard Henderson <rth@redhat.com>
13402
13403 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13404 change from 2011-02-03.
13405 * config/rx/rx.c (flags_from_code): Likewise.
13406 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13407 is valid, n/pz otherwise.
13408 (rx_select_cc_mode): Return CCmode if Y is not zero.
13409
13410 2011-02-10 Richard Guenther <rguenther@suse.de>
13411
13412 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13413
13414 2011-02-10 Richard Guenther <rguenther@suse.de>
13415
13416 PR tree-optimization/47677
13417 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13418
13419 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13420
13421 PR target/47665
13422 * combine.c (make_compound_operation): Only change shifts into
13423 multiplication for SCALAR_INT_MODE_P.
13424
13425 2011-02-10 Jie Zhang <jie@codesourcery.com>
13426
13427 PR testsuite/47622
13428 Revert
13429 2011-02-05 Jie Zhang <jie@codesourcery.com>
13430 PR debug/42631
13431 * web.c (entry_register): Don't clobber the number of the
13432 first uninitialized reference in used[].
13433
13434 2011-02-09 Richard Guenther <rguenther@suse.de>
13435
13436 PR tree-optimization/47664
13437 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13438 all edges again.
13439
13440 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13441
13442 PR target/46481
13443 PR target/47032
13444 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13445 PROCESSOR_POWER7.
13446 (PROCESSOR_DEFAULT64): Same.
13447 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13448
13449 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13450
13451 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13452
13453 2011-02-09 Martin Jambor <mjambor@suse.cz>
13454
13455 PR middle-end/45505
13456 * tree-sra.c (struct access): New flags grp_scalar_read and
13457 grp_scalar_write. Changed description of assignment read and write
13458 flags.
13459 (dump_access): Dump new flags, reorder all of them.
13460 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13461 to detect multiple scalar reads.
13462 (analyze_access_subtree): Use the new scalar read write flags instead
13463 of the old flags. Adjusted comments.
13464
13465 2011-02-08 DJ Delorie <dj@redhat.com>
13466
13467 PR target/47548
13468 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13469 patterns.
13470
13471 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13472
13473 * config/m68k/uclinux.opt: New.
13474 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13475
13476 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13477
13478 * config/cris/elf.opt (sim): New Driver option.
13479
13480 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13481
13482 * config/xtensa/elf.opt: New.
13483 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13484
13485 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13486
13487 * config/vax/elf.opt: New.
13488 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13489
13490 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13491
13492 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13493
13494 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13495
13496 * config/gnu-user.opt: New.
13497 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13498 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13499 *-*-uclinux*): Use gnu-user.opt.
13500
13501 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13502
13503 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13504 * config/i386/gnu.h (CPP_SPEC): Likewise.
13505
13506 2011-02-08 Ian Lance Taylor <iant@google.com>
13507
13508 * common.opt (fcx-limited-range): Add SetByCombined flag.
13509 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13510 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13511 (fassociative-math, freciprocal-math): Likewise.
13512 (funsafe-math-optimizations): Likewise.
13513 * opth-gen.awk: Handle SetByCombined.
13514 * optc-gen.awk: Likewise.
13515 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13516 (set_unsafe_math_optimizations_flags): Likewise.
13517 * doc/options.texi (Option properties): Document SetByCombined.
13518
13519 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13520
13521 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13522 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13523 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13524 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13525 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13526
13527 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13528
13529 PR tree-optimization/46834
13530 PR tree-optimization/46994
13531 PR tree-optimization/46995
13532 * graphite-sese-to-poly.c (used_outside_reduction): New.
13533 (detect_commutative_reduction): Call used_outside_reduction.
13534 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13535 translate_scalar_reduction_to_array only when at least one
13536 loop-phi/close-phi tuple has been detected.
13537
13538 2011-02-08 Richard Guenther <rguenther@suse.de>
13539
13540 PR middle-end/47639
13541 * tree-vect-generic.c (expand_vector_operations_1): Update
13542 stmts here ...
13543 (expand_vector_operations): ... not here. Cleanup EH info
13544 and the CFG if required.
13545
13546 2011-02-08 Richard Guenther <rguenther@suse.de>
13547
13548 PR tree-optimization/47641
13549 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13550 require type compatibility.
13551
13552 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13553
13554 * gimple-low.c (lower_function_body): Don't remove the location of
13555 the return statement here.
13556 (lower_gimple_return): Do it here instead but only if the return
13557 statement is actually used twice.
13558
13559 2011-02-08 Richard Guenther <rguenther@suse.de>
13560
13561 PR tree-optimization/47632
13562 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13563 unused up_to_stmt parameter, return whether cfg-cleanup is
13564 necessary, remove EH info properly.
13565 (forward_propagate_into_gimple_cond): Adjust caller.
13566 (forward_propagate_into_cond): Likewise.
13567 (forward_propagate_comparison): Likewise.
13568 (tree_ssa_forward_propagate_single_use_vars): Make
13569 forward_propagate_comparison case similar to the two others.
13570
13571 2011-02-08 Nick Clifton <nickc@redhat.com>
13572
13573 * config/mn10300/mn10300.opt (mliw): New command line option.
13574 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13575 (liw_bundling): New automaton.
13576 (liw): New attribute.
13577 (liw_op): New attribute.
13578 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13579 (movsi_internal): Add LIW attributes.
13580 (andsi3): Likewise.
13581 (iorsi3): Likewise.
13582 (xorsi3): Likewise.
13583 (addsi3): Separate register and immediate alternatives.
13584 Add LIW attributes.
13585 (subsi3): Likewise.
13586 (cmpsi): Likewise.
13587 (aslsi3): Likewise.
13588 (lshrsi3): Likewise.
13589 (ashrsi3): Likewise.
13590 (liw): New pattern.
13591 * config/mn10300/mn10300.c (liw_op_names): New
13592 (mn10300_print_operand): Handle 'W' operand descriptor.
13593 (extract_bundle): New function.
13594 (check_liw_constraints): New function.
13595 (liw_candidate): New function.
13596 (mn10300_bundle_liw): New function.
13597 (mn10300_reorg): New function.
13598 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13599 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13600 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13601 __LIW__ or __NO_LIW__.
13602 * doc/invoke.texi: Describe the -mliw command line option.
13603
13604 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13605
13606 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13607 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13608 pthread_mutex_unlock): Remove.
13609 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13610 * config/pa/t-pa64: Likewise.
13611 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13612 shared libc if not linking against libpthread.
13613 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13614
13615 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13616
13617 PR target/47558
13618 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13619 on 10.6 and later to ensure that we always use the unwinder from
13620 the system. Only add -no_compact_unwind when tarteting darwin
13621 10.6 or later.
13622
13623 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13624
13625 PR target/46997
13626 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13627 (vec_interleave_lowv2sf): Ditto.
13628 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13629 (vec_extract_oddv2sf): Ditto.
13630
13631 2011-02-07 Mike Stump <mikestump@comcast.net>
13632
13633 PR target/42333
13634 Add __ieee_divdc3 entry point.
13635 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13636 entry point.
13637 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13638 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13639 * config/darwin.c (darwin_rename_builtins): Add.
13640 * config/darwin-protos.h (darwin_rename_builtins): Add.
13641
13642 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13643
13644 PR target/47636
13645 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13646 for the condition.
13647
13648 2011-02-07 Mike Stump <mikestump@comcast.net>
13649
13650 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13651
13652 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13653
13654 PR target/47534
13655 * config/avr/libgcc.S (exit): Move .endfunc
13656
13657 2011-02-07 Richard Guenther <rguenther@suse.de>
13658
13659 PR tree-optimization/47615
13660 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13661 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13662 (run_scc_vn): Initialize it.
13663 (visit_reference_op_load): Use it.
13664 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13665
13666 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13667
13668 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13669 DImode trapping arithmetic libfuncs.
13670
13671 2011-02-07 Richard Guenther <rguenther@suse.de>
13672
13673 PR tree-optimization/47621
13674 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13675 two duplicates ...
13676 (execute_update_addresses_taken): ... here. Make it more
13677 conservative in what we accept.
13678
13679 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13680
13681 * config/sparc/freebsd.h (ASM_SPEC): Define.
13682 * config/sparc/vxworks.h (ASM_SPEC): Define.
13683
13684 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13685
13686 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13687
13688 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13689
13690 * doc/invoke.texi: Remove reference to compiler internals from
13691 user documentation.
13692
13693 * reg-notes.def: Remove REG_VALUE_PROFILE.
13694 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13695
13696 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13697
13698 PR middle-end/47610
13699 * varasm.c (default_section_type_flags): If decl is NULL,
13700 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13701
13702 2011-02-05 Jie Zhang <jie@codesourcery.com>
13703
13704 PR debug/42631
13705 * web.c (entry_register): Don't clobber the number of the
13706 first uninitialized reference in used[].
13707
13708 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13709
13710 PR tree-optimization/46194
13711 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13712 (build_classic_dist_vector_1): Do not represent classic distance
13713 vectors when the access functions are variating in different loops.
13714
13715 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13716
13717 * config/mips/iris6.opt: New.
13718 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13719
13720 2011-02-04 Richard Henderson <rth@redhat.com>
13721 Steve Ellcey <sje@cup.hp.com>
13722
13723 PR target/46997
13724 * config/ia64/predicates.md (mux1_brcst_element): New.
13725 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13726 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13727 (ia64_unpack_sign): New.
13728 (ia64_expand_unpack): Rewrite using new routines.
13729 (ia64_expand_widen_sum): Ditto.
13730 (ia64_expand_dot_prod_v8qi): Ditto.
13731 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13732 routines, add endian check.
13733 (pmpy2_even): Rename from pmpy2_r, add endian check.
13734 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13735 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13736 (vec_widen_smult_hi_v4hi): Ditto.
13737 (vec_widen_umult_lo_v4hi): Ditto.
13738 (vec_widen_umult_hi_v4hi): Ditto.
13739 (mulv2si3): Change endian checks.
13740 (sdot_prodv4hi): Rewrite with new calls.
13741 (udot_prodv4hi): New.
13742 (vec_pack_ssat_v4hi): Add endian check.
13743 (vec_pack_usat_v4hi): Ditto.
13744 (vec_pack_ssat_v2si): Ditto.
13745 (max1_even): Rename from max1_r, add endian check.
13746 (max1_odd): Rename from max1_l, add endian check.
13747 (*mux1_rev): Format change.
13748 (*mux1_mix): Ditto.
13749 (*mux1_shuf): Ditto.
13750 (*mux1_alt): Ditto.
13751 (*mux1_brcst_v8qi): Use new predicate.
13752 (vec_extract_evenv8qi): Remove endian check.
13753 (vec_extract_oddv8qi): Ditto.
13754 (vec_interleave_lowv4hi): Format change.
13755 (vec_interleave_highv4hi): Ditto.
13756 (mix2_even): Rename from mix2_r, add endian check.
13757 (mix2_odd): Rename from mux2_l, add endian check.
13758 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13759 (vec_extract_evenodd_helper): Format change.
13760 (vec_extract_evenv4hi): Remove endian check.
13761 (vec_extract_oddv4hi): Remove endian check.
13762 (vec_interleave_lowv2si): Format change.
13763 (vec_interleave_highv2si): Format change.
13764 (vec_initv2si): Remove endian check.
13765 (vecinit_v2si): Add endian check.
13766 (reduc_splus_v2sf): Add endian check.
13767 (reduc_smax_v2sf): Ditto.
13768 (reduc_smin_v2sf): Ditto.
13769 (vec_initv2sf): Remove endian check.
13770 (fpack): Add endian check.
13771 (fswap): Add endian check.
13772 (vec_interleave_highv2sf): Add endian check.
13773 (vec_interleave_lowv2sf): Add endian check.
13774 (fmix_lr): Add endian check.
13775 (vec_setv2sf): Format change.
13776 (*vec_extractv2sf_0_be): Use shift to extract operand.
13777 (*vec_extractv2sf_1_be): New.
13778 (vec_pack_trunc_v4hi): Add endian check.
13779 (vec_pack_trunc_v2si): Format change.
13780
13781 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13782
13783 PR inline-asm/23200
13784 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13785 do bb, locus and block comparison and disallow loads if it is not set.
13786 (stmt_is_replaceable_p): New function.
13787 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13788 callers.
13789 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13790 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13791 SSA_NAME_DEF_STMT.
13792 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13793
13794 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13795
13796 * config/rs6000/xilinx.opt: New.
13797 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13798
13799 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13800
13801 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13802
13803 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13804
13805 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13806 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13807 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13808 secondary_reload_info, xtensa_secondary_reload): Remove.
13809 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13810 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13811 (xtensa_preferred_reload_class): Make static. Change return and
13812 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13813 Use CONST_DOUBLE_P predicate.
13814 (xtensa_preferred_output_reload_class): New function.
13815 (xtensa_secondary_reload): Make static.
13816
13817 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13818
13819 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13820 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13821 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13822
13823 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13824
13825 PR middle-end/31490
13826 * output.h (SECTION_RELRO): Define.
13827 (SECTION_MACH_DEP): Adjust.
13828 (get_variable_section): New prototype.
13829 * varpool.c (varpool_finalize_named_section_flags): New function.
13830 (varpool_assemble_pending_decls): Call it.
13831 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13832 * cgraphunit.c (cgraph_output_in_order): Call
13833 varpool_finalize_named_section_flags.
13834 * varasm.c (get_section): Allow section flags conflicts between
13835 relro and read-only sections if the section hasn't been declared yet.
13836 Set SECTION_OVERRIDE after diagnosing section type conflict.
13837 (get_variable_section): No longer static.
13838 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13839 readonly sections that need relocations.
13840 (decl_readonly_section_1): New function.
13841 (decl_readonly_section): Use it.
13842
13843 Revert:
13844 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13845 Steve Ellcey <sje@cup.hp.com>
13846
13847 PR middle-end/31490
13848 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13849 if section attribute used.
13850
13851 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13852
13853 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13854 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13855 (darwin_init_sections): Remove assertion.
13856
13857 2011-02-03 Nick Clifton <nickc@redhat.com>
13858
13859 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13860 lt and ge.
13861 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13862 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13863 instead of "n" and "pz".
13864 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13865 CC_FLAG_S.
13866
13867 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13868
13869 PR target/47312
13870 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13871 fma, expand FMA_EXPR as fma{,f,l} call.
13872
13873 PR lto/47274
13874 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13875 copy them into a unsigned char variable and pass address of it to
13876 lto_output_data_stream.
13877
13878 PR target/47564
13879 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13880 around backend_init_target and lang_dependent_init_target calls.
13881 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13882 (verify_cgraph_node): Don't call set_cfun here. Use
13883 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13884 Set error_found for incorrectly represented calls to thunks.
13885
13886 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13887
13888 PR debug/43092
13889 PR rtl-optimization/43494
13890 * rtl.h (for_each_inc_dec_fn): New type.
13891 (for_each_inc_dec): Declare.
13892 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13893 (for_each_inc_dec_find_inc_dec): New fn.
13894 (for_each_inc_dec_find_mem): New fn.
13895 (for_each_inc_dec): New fn.
13896 * dse.c (struct insn_size): Remove.
13897 (replace_inc_dec, replace_inc_dec_mem): Remove.
13898 (emit_inc_dec_insn_before): New fn.
13899 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13900 (canon_address): Pass mem modes to cselib_lookup.
13901 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13902 (cselib_lookup_from_insn): Likewise.
13903 (cselib_subst_to_values): Likewise.
13904 * cselib.c (find_slot_memmode): New var.
13905 (cselib_find_slot): New fn. Use it instead of
13906 htab_find_slot_with_hash everywhere.
13907 (entry_and_rtx_equal_p): Use find_slot_memmode.
13908 (autoinc_split): New fn.
13909 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13910 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13911 Deal with autoinc. Special-case recursion into MEMs.
13912 (cselib_hash_rtx): Likewise.
13913 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13914 address and MEM modes.
13915 (cselib_subst_to_values): Add memmode, pass it on.
13916 Deal with autoinc.
13917 (cselib_lookup): Add memmode argument, pass it on.
13918 (cselib_lookup_from_insn): Add memmode.
13919 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13920 (struct cselib_record_autoinc_data): New.
13921 (cselib_record_autoinc_cb): New fn.
13922 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13923 mode to cselib_lookup. Reset autoinced REGs here instead of...
13924 (cselib_process_insn): ... here.
13925 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13926 to cselib_lookup.
13927 (add_uses): Likewise, also to cselib_subst_to_values.
13928 (add_stores): Likewise.
13929 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13930 cselib_subst_to_values.
13931 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13932 * gcse.c (do_local_cprop): Adjusted.
13933 * postreload.c (reload_cse_simplify_set): Adjusted.
13934 (reload_cse_simplify_operands): Adjusted.
13935 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13936
13937 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13938
13939 PR tree-optimization/45122
13940 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13941 unsafe assumptions when there's more than one loop exit.
13942
13943 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13944
13945 PR target/47272
13946 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13947 Document using vector double with the load/store builtins, and
13948 that the load/store builtins always use Altivec instructions.
13949
13950 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13951 to use altivec memory instructions, even on VSX.
13952 (vector_altivec_store_<mode>): Ditto.
13953
13954 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13955 function.
13956
13957 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13958 V2DF, V2DI support to load/store overloaded builtins.
13959
13960 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13961 altivec load/store builtins for V2DF/V2DI types.
13962
13963 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13964 set avoid indexed addresses on power6 if -maltivec.
13965 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13966 vector_altivec_load/vector_altivec_store builtins.
13967 (altivec_expand_st_builtin): Ditto.
13968 (altivec_expand_builtin): Add VSX memory builtins.
13969 (rs6000_init_builtins): Add V2DI types to internal types.
13970 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13971 load/store builtins.
13972 (rs6000_address_for_altivec): Insure memory address is appropriate
13973 for Altivec.
13974
13975 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13976 vec_vsx_ld and vec_vsx_st.
13977 (vsx_store_<mode>): Ditto.
13978
13979 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13980 variables to hold long long types for VSX vector memory builtins.
13981 (RS6000_BTI_unsigned_long_long): Ditto.
13982 (long_long_integer_type_internal_node): Ditti.
13983 (long_long_unsigned_type_internal_node): Ditti.
13984
13985 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13986 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13987 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13988
13989 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13990 short cuts.
13991 (vec_vsx_st): Ditto.
13992
13993 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13994
13995 * config/pa/pa-hpux10.opt: New.
13996 * config/hpux11.opt (pthread): New Driver option.
13997 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13998 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13999
14000 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14001
14002 * config/ia64/vms.opt: New.
14003 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14004
14005 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14006
14007 PR target/47580
14008 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14009 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14010 generator functions.
14011 (vsx_floatuns<VSi><mode>2): Ditto.
14012 (vsx_fix_trunc<mode><VSi>2): Ditto.
14013 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14014
14015 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14016
14017 * config/i386/djgpp.opt (posix): New Driver option.
14018
14019 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14020
14021 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14022 Move to the unsupported targets list.
14023
14024 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14025
14026 PR rtl-optimization/47525
14027 * df-scan.c: Update copyright years.
14028 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14029 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14030
14031 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14032
14033 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14034 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14035 (ASM_OUTPUT_ASCII): Remove.
14036 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14037
14038 2011-02-02 Jeff Law <law@redhat.com>
14039
14040 PR middle-end/47543
14041 * reload.c (find_reloads_address): Handle reg+d address where both
14042 components are invalid by reloading the entire address.
14043
14044 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14045 Richard Guenther <rguenther@suse.de>
14046
14047 PR tree-optimization/40979
14048 PR bootstrap/47044
14049 * passes.c (init_optimization_passes): After LIM call copy_prop
14050 and DCE to clean up.
14051 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14052
14053 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14054
14055 PR tree-optimization/47576
14056 PR tree-optimization/47555
14057 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14058 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14059 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14060 * tree-scalar-evolution.c (follow_ssa_edge): Use
14061 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14062
14063 2011-02-02 Richard Guenther <rguenther@suse.de>
14064
14065 PR tree-optimization/47566
14066 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14067
14068 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14069
14070 PR debug/47106
14071 PR debug/47402
14072 * tree-inline.c (declare_return_variable): Remove unused caller
14073 variable.
14074
14075 PR debug/47106
14076 PR debug/47402
14077 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14078 * cfgexpand.c (account_used_vars_for_block): Use them.
14079 * tree-nrv.c (tree_nrv): Likewise.
14080 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14081 (dump_scope_block): Likewise.
14082 (remove_unused_locals): Likewise.
14083
14084 PR debug/47106
14085 PR debug/47402
14086 * tree-inline.c (declare_return_variable): Add result decl to
14087 local decls only once.
14088 * gimple-low.c (record_vars_into): Mark newly-created variables
14089 as referenced.
14090
14091 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14092
14093 PR debug/47498
14094 PR debug/47501
14095 PR debug/45136
14096 PR debug/45130
14097 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14098 debug insns.
14099 (no_real_insns_p, schedule_block, set_priorities): Drop special
14100 treatment of boundary debug insns.
14101 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14102 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14103 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14104 (BOUNDARY_DEBUG_INSN_P): Likewise.
14105 (SCHEDULE_DEBUG_INSN_P): Likewise.
14106 * sched-rgn.c (init_ready_list): Drop special treatment of
14107 boundary debug insns.
14108 * final.c (rest_of_clean_state): Clear notes' BB.
14109
14110 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14111
14112 * config/openbsd.opt (assert=): New Driver option.
14113
14114 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14115
14116 * config/i386/nto.opt: New.
14117 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14118
14119 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14120
14121 * config/i386/netware.opt: New.
14122 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14123
14124 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14125
14126 * config/interix.opt (posix): New Driver option.
14127
14128 2011-02-01 DJ Delorie <dj@redhat.com>
14129
14130 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14131
14132 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14133 class for A0/A1.
14134
14135 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14136
14137 PR tree-optimization/47561
14138 * toplev.c (process_options): Print the Graphite flags. Add
14139 flag_loop_flatten to the list of options requiring Graphite.
14140
14141 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14142
14143 * config/i386/cygming.opt (posix): New Driver option.
14144
14145 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14146
14147 * config/arm/vxworks.opt: New.
14148 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14149
14150 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14151
14152 * config/alpha/elf.opt: New.
14153 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14154 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14155
14156 2011-02-01 Richard Guenther <rguenther@suse.de>
14157
14158 PR tree-optimization/47559
14159 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14160 store-motion on references that can throw.
14161
14162 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14163
14164 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14165 * tree-pass.h (TDF_CSELIB): New macro.
14166 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14167 cselib_lookup): Check for it rather than for TDF_DETAILS.
14168
14169 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14170
14171 PR driver/47547
14172 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14173 is HOST_BIT_BUCKET.
14174
14175 * opts.c (finish_options): Don't add x_aux_base_name if it is
14176 HOST_BIT_BUCKET.
14177
14178 2011-02-01 Richard Guenther <rguenther@suse.de>
14179
14180 PR tree-optimization/47555
14181 Revert
14182 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14183
14184 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14185
14186 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14187
14188 PR gcc/46692
14189 * config/lm32/t-lm32: Add multilib for all CPU options.
14190
14191 2011-02-01 Richard Guenther <rguenther@suse.de>
14192
14193 PR tree-optimization/47541
14194 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14195 sure to have a field at offset zero.
14196
14197 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14198
14199 * config/arc/arc.opt (EB, EL): New Driver options.
14200
14201 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14202
14203 * config/alpha/osf5.opt: New.
14204 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14205
14206 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14207
14208 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14209
14210 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14211
14212 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14213 -floop-interchange.
14214 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14215 is an alias of -floop-interchange and that it requires the
14216 Graphite infrastructure.
14217 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14218 flag_loop_interchange based on the value of flag_tree_loop_linear.
14219
14220 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14221 Richard Guenther <rguenther@suse.de>
14222
14223 PR tree-optimization/47538
14224 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14225 type instead of r1type, except for comparisons. For right
14226 shifts and comparisons punt if there are mismatches in
14227 sizetype vs. non-sizetype types.
14228
14229 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14230
14231 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14232 avx_runtime.
14233
14234 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14235
14236 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14237 version number.
14238 * configure: Regenerate.
14239
14240 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14241
14242 * configure.ac (gcc_cv_ld_static_option): Define.
14243 (gcc_cv_ld_dynamic_option): Define.
14244 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14245 instead.
14246 (HAVE_LD_STATIC_DYNAMIC): Update message.
14247 (LD_STATIC_OPTION): Define.
14248 (LD_DYNAMIC_OPTION): Define.
14249 * configure: Regenerate.
14250 * config.in: Regenerate.
14251 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14252 HAVE_LD_STATIC_DYNAMIC]: Use them.
14253
14254 2011-01-31 Nick Clifton <nickc@redhat.com>
14255
14256 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14257 registers inside interrupt handlers if the handler is not a leaf
14258 function.
14259
14260 2011-01-31 Nick Clifton <nickc@redhat.com>
14261
14262 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14263 reg_renumber returning an INVALID_REGNUM.
14264
14265 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14266
14267 PR libgcj/44341
14268 * doc/install.texi: Document host options discarded when cross
14269 configuring target libraries.
14270
14271 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14272
14273 Reverted:
14274 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14275 PR debug/45136
14276 PR debug/45130
14277 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14278 debug insns.
14279 (no_real_insns_p, schedule_block, set_priorities): Drop special
14280 treatment of boundary debug insns.
14281 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14282 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14283 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14284 (BOUNDARY_DEBUG_INSN_P): Likewise.
14285 (SCHEDULE_DEBUG_INSN_P): Likewise.
14286 * sched-rgn.c (init_ready_list): Drop special treatment of
14287 boundary debug insns.
14288 * final.c (rest_of_clean-state): Clear notes' BB.
14289
14290 2011-01-31 Alan Modra <amodra@gmail.com>
14291
14292 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14293 toc relative expressions as we do in print_operand_address.
14294
14295 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14296
14297 * doc/extend.texi: Follow spelling conventions.
14298 * doc/invoke.texi: Fix a typo.
14299
14300 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14301
14302 * config/hpux11.opt: New.
14303 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14304 ia64*-*-hpux*): Use hpux11.opt.
14305
14306 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14307
14308 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14309 to tmake_file.
14310
14311 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14312
14313 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14314 support sites.
14315
14316 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14317
14318 * doc/install.texi (Binaries): Remove outdated reference for
14319 Motorola 68HC11/68HC12 downloads.
14320
14321 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14322
14323 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14324 Drepper's paper.
14325
14326 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14327
14328 PR bootstrap/47147
14329 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14330 used by NetBSD.
14331
14332 2011-01-28 Ahmad Sharif <asharif@google.com>
14333
14334 * value-prof.c (check_counter): Corrected error message.
14335
14336 2011-01-29 Jie Zhang <jie@codesourcery.com>
14337
14338 * config/arm/arm.c (arm_legitimize_reload_address): New.
14339 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14340 arm_legitimize_reload_address.
14341 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14342
14343 2011-01-28 Ian Lance Taylor <iant@google.com>
14344
14345 * godump.c (go_define): Ignore macros whose definitions include
14346 two adjacent operands.
14347
14348 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14349
14350 PR target/42894
14351 * varasm.c (force_const_mem): Store copy of x in desc->constant
14352 instead of x itself.
14353 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14354 itself into REG_EQUAL note.
14355
14356 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14357
14358 * config/freebsd.opt (posix, rdynamic): New Driver options.
14359
14360 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14361
14362 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14363 -Bstatic/-Bdynamic.
14364 * configure: Regenerate.
14365
14366 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14367
14368 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14369 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14370
14371 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14372
14373 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14374 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14375 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14376 (s390_preferred_reload_class): Make static. Change return and
14377 'rclass' argument type to reg_class_t.
14378
14379 2011-01-27 Jan Hubicka <jh@suse.cz>
14380
14381 PR middle-end/46949
14382 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14383 (process_function_and_variable_attributes): Check defined weakrefs.
14384
14385 2011-01-27 Martin Jambor <mjambor@suse.cz>
14386
14387 PR tree-optimization/47228
14388 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14389 build_ref_for_offset.
14390
14391 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14392
14393 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14394
14395 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14396
14397 PR rtl-optimization/46856
14398 * postreload.c (reload_combine_recognize_const_pattern): Do not
14399 separate cc0 setter and user on cc0 targets.
14400
14401 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14402
14403 PR c/43082
14404 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14405 passed a VOID_TYPE expression, immediately emit an error and
14406 return error_mark_node.
14407
14408 2011-01-26 Jeff Law <law@redhat.com>
14409
14410 PR rtl-optimization/47464
14411 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14412 rather than may_trap_p as needed.
14413
14414 2011-01-26 DJ Delorie <dj@redhat.com>
14415
14416 PR rtl-optimization/46878
14417 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14418 setter/user dependency as well.
14419
14420 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14421
14422 PR rtl-optimization/44469
14423 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14424 after removing trivially dead basic blocks.
14425
14426 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14427
14428 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14429 * config/frv/frv.h (LINK_SPEC): Likewise.
14430 * config/i386/netware.h (LINK_SPEC): Likewise.
14431 * config/m68k/linux.h (ASM_SPEC): Likewise.
14432 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14433 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14434 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14435 * config/sparc/linux.h (ASM_SPEC): Likewise.
14436 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14437 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14438
14439 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14440
14441 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14442 * config/frv/frv.h (ASM_SPEC): Likewise.
14443 * config/m68k/linux.h (ASM_SPEC): Likewise.
14444 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14445 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14446 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14447 * config/sparc/linux.h (ASM_SPEC): Likewise.
14448 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14449 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14450
14451 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14452
14453 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14454 * config/frv/frv.h (LINK_SPEC): Likewise.
14455 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14456
14457 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14458
14459 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14460 * config/frv/frv.h (ASM_SPEC): Likewise.
14461 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14462 * config/m68k/linux.h (ASM_SPEC): Likewise.
14463 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14464 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14465 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14466 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14467 * config/sparc/linux.h (ASM_SPEC): Likewise.
14468 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14469 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14470 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14471
14472 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14473
14474 PR target/46997
14475 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14476 (*mux2): Ditto.
14477 (vec_extract_evenodd_help): Ditto.
14478 (vec_extract_evenv4hi): Ditto.
14479 (vec_extract_oddv4hi): Ditto.
14480 (vec_interleave_lowv2si): Ditto.
14481 (vec_interleave_highv2si): Ditto.
14482 (vec_extract_evenv2si): Ditto.
14483 (vec_extract_oddv2si: Ditto.
14484 (vec_pack_trunc_v2si): Ditto.
14485
14486 2011-01-22 Jan Hubicka <jh@suse.cz>
14487
14488 PR target/47237
14489 * cgraph.h (cgraph_local_info): New field can_change_signature.
14490 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14491 signature can change.
14492 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14493 can change.
14494 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14495 (cgraph_function_versioning): We can not change signature of functions
14496 that don't allow that.
14497 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14498 (lto_input_node): Likewise.
14499 * ipa-inline.c (compute_inline_parameters): Compute
14500 local.can_change_signature.
14501 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14502 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14503 functions that can not change signature.
14504 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14505 init_cumulative_args): Do not use local calling conventions
14506 for functions that can not change signature.
14507
14508 2011-01-22 Jan Hubicka <jh@suse.cz>
14509
14510 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14511
14512 2011-01-26 Richard Guenther <rguenther@suse.de>
14513
14514 PR tree-optimization/47190
14515 * cgraphunit.c (process_common_attributes): New function.
14516 (process_function_and_variable_attributes): Use it.
14517
14518 2011-01-26 Richard Guenther <rguenther@suse.de>
14519
14520 PR lto/47423
14521 * cgraphbuild.c (record_eh_tables): Record reference to personality
14522 function.
14523
14524 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14525
14526 PR debug/45454
14527 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14528 non-debug insns from moving up.
14529
14530 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14531
14532 PR target/40125
14533 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14534 t-dlldir{,-x} fragment for build and add it to tmake_file.
14535 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14536 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14537 * config/i386/t-dlldir: New file.
14538 (SHLIB_DLLDIR): Define.
14539 * config/i386/t-dlldir-x: New file.
14540 (SHLIB_DLLDIR): Define.
14541 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14542 (SHLIB_INSTALL): Use it.
14543
14544 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14545
14546 PR target/47246
14547 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14548 lower bound of the allowed Thumb-2 coprocessor load/store
14549 index range to -256. Add explaining comment.
14550
14551 2011-01-25 Ian Lance Taylor <iant@google.com>
14552
14553 * godump.c (go_define): Improve lexing of macro expansion to only
14554 accept expressions which match Go spec.
14555
14556 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14557
14558 PR c++/43601
14559 * tree.c (handle_dll_attribute): Handle it.
14560 * doc/extend.texi (@item dllexport): Mention it.
14561 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14562
14563 2011-01-25 Ian Lance Taylor <iant@google.com>
14564
14565 PR tree-optimization/26854
14566 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14567 (decl_jump_unsafe): Move higher in file, with no other change.
14568 (bind): Set has_jump_unsafe_decl if appropriate.
14569 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14570 (check_earlier_gotos): Likewise.
14571 (c_check_switch_jump_warnings): Likewise.
14572
14573 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14574
14575 * doc/invoke.texi (Warning Options): Add missing hyphen.
14576 (-fprofile-dir): Minor grammatical fixes.
14577 (-fbranch-probabilities): Likewise.
14578
14579 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14580
14581 PR debug/45136
14582 PR debug/45130
14583 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14584 debug insns.
14585 (no_real_insns_p, schedule_block, set_priorities): Drop special
14586 treatment of boundary debug insns.
14587 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14588 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14589 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14590 (BOUNDARY_DEBUG_INSN_P): Likewise.
14591 (SCHEDULE_DEBUG_INSN_P): Likewise.
14592 * sched-rgn.c (init_ready_list): Drop special treatment of
14593 boundary debug insns.
14594 * final.c (rest_of_clean-state): Clear notes' BB.
14595
14596 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14597
14598 * Makefile.in (LAMBDA_H): Removed.
14599 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14600 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14601 lambda-trans.o, and tree-loop-linear.o.
14602 (lto-symtab.o): Remove dependence on LAMBDA_H.
14603 (tree-loop-linear.o): Remove rule.
14604 (lambda-mat.o): Same.
14605 (lambda-trans.o): Same.
14606 (lambda-code.o): Same.
14607 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14608 (tree-vect-slp.o): Same.
14609 * hwint.h (gcd): Moved here.
14610 (least_common_multiple): Same.
14611 * lambda-code.c: Removed.
14612 * lambda-mat.c: Removed.
14613 * lambda-trans.c: Removed.
14614 * lambda.h: Removed.
14615 * tree-loop-linear.c: Removed.
14616 * lto-symtab.c: Do not include lambda.h.
14617 * omega.c (gcd): Removed.
14618 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14619 * tree-data-ref.c (print_lambda_vector): Moved here.
14620 (lambda_vector_copy): Same.
14621 (lambda_matrix_copy): Same.
14622 (lambda_matrix_id): Same.
14623 (lambda_vector_first_nz): Same.
14624 (lambda_matrix_row_add): Same.
14625 (lambda_matrix_row_exchange): Same.
14626 (lambda_vector_mult_const): Same.
14627 (lambda_vector_negate): Same.
14628 (lambda_matrix_row_negate): Same.
14629 (lambda_vector_equal): Same.
14630 (lambda_matrix_right_hermite): Same.
14631 * tree-data-ref.h: Do not include lambda.h.
14632 (lambda_vector): Moved here.
14633 (lambda_matrix): Same.
14634 (dependence_level): Same.
14635 (lambda_transform_legal_p): Removed declaration.
14636 (lambda_collect_parameters): Same.
14637 (lambda_compute_access_matrices): Same.
14638 (lambda_vector_gcd): Same.
14639 (lambda_vector_new): Same.
14640 (lambda_vector_clear): Same.
14641 (lambda_vector_lexico_pos): Same.
14642 (lambda_vector_zerop): Same.
14643 (lambda_matrix_new): Same.
14644 * tree-flow.h (least_common_multiple): Removed declaration.
14645 * tree-parloops.c (lambda_trans_matrix): Moved here.
14646 (LTM_MATRIX): Same.
14647 (LTM_ROWSIZE): Same.
14648 (LTM_COLSIZE): Same.
14649 (LTM_DENOMINATOR): Same.
14650 (lambda_trans_matrix_new): Same.
14651 (lambda_matrix_vector_mult): Same.
14652 (lambda_transform_legal_p): Same.
14653 * tree-pass.h (pass_linear_transform): Removed declaration.
14654 * tree-ssa-loop.c (tree_linear_transform): Removed.
14655 (gate_tree_linear_transform): Removed.
14656 (pass_linear_transform): Removed.
14657 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14658 flag_loop_interchange.
14659
14660 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR tree-optimization/47265
14663 PR tree-optimization/47443
14664 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14665 if name still has some uses.
14666
14667 2011-01-25 Martin Jambor <mjambor@suse.cz>
14668
14669 PR tree-optimization/47382
14670 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14671 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14672
14673 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14674
14675 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14676 sjlj_except_unwind_info.
14677
14678 2011-01-25 Richard Guenther <rguenther@suse.de>
14679
14680 PR tree-optimization/47426
14681 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14682 visible functions results escape.
14683
14684 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14685
14686 PR target/45701
14687 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14688 (arm_get_frame_offsets): Use it.
14689
14690 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14691 Jakub Jelinek <jakub@redhat.com>
14692
14693 PR tree-optimization/47271
14694 * tree-if-conv.c (bb_postdominates_preds): New.
14695 (if_convertible_bb_p): Call bb_postdominates_preds.
14696 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14697 (predicate_scalar_phi): Call bb_postdominates_preds.
14698
14699 2011-01-25 Nick Clifton <nickc@redhat.com>
14700
14701 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14702 * config/rx/rx.c (rx_function_value): Likewise.
14703 (rx_promote_function_mode): Likewise.
14704 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14705 in order to make it legitimate.
14706 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14707 make sure that the first operand is the same as the result register.
14708 (addsi3_unspec): Delete.
14709 (subdi3): Do not accept immediate operands.
14710 (subdi3_internal): Likewise.
14711
14712 2011-01-25 Jeff Law <law@redhat.com>
14713
14714 PR rtl-optimization/37273
14715 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14716 handle them like argument loads from stack slots. Do not double
14717 count memory for memory constants and argument loads from stack slots.
14718
14719 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14720
14721 PR tree-optimization/47427
14722 PR tree-optimization/47428
14723 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14724 coalesce if the new root var would be TREE_READONLY.
14725
14726 2011-01-25 Richard Guenther <rguenther@suse.de>
14727
14728 PR middle-end/47414
14729 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14730 correct type for TBAA.
14731
14732 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14733
14734 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14735 (close_phi_written_to_memory): Call for_each_index with
14736 dr_indices_valid_in_loop.
14737
14738 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14739
14740 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14741 when it is initialized.
14742
14743 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14744
14745 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14746 call to graphite_find_data_references_in_stmt.
14747 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14748 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14749 call to graphite_find_data_references_in_stmt.
14750 (analyze_drs_in_stmts): Same.
14751 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14752 in which the scalar analysis of indices is performed.
14753 (create_data_ref): Same. Update call to dr_analyze_indices.
14754 (find_data_references_in_stmt): Update call to create_data_ref.
14755 (graphite_find_data_references_in_stmt): Same.
14756 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14757 declaration.
14758 (create_data_ref): Same.
14759 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14760 call to create_data_ref.
14761
14762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14763
14764 * graphite-sese-to-poly.c (build_poly_scop): Move
14765 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14766
14767 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14768
14769 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14770 VAR_DECL, PARM_DECL, and RESULT_DECL.
14771
14772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14773
14774 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14775 in a reduction PBB.
14776 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14777 that have already been marked as PBB_IS_REDUCTION.
14778
14779 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14780
14781 * graphite-scop-detection.c (same_close_phi_node): New.
14782 (remove_duplicate_close_phi): New.
14783 (make_close_phi_nodes_unique): New.
14784 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14785
14786 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14787
14788 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14789 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14790 of both data references to be the same.
14791
14792 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14793
14794 * graphite-dependences.c (build_lexicographical_constraint): Remove
14795 the gdim parameter.
14796 (build_lexicographical_constraint): Adjust call to
14797 ppl_powerset_is_empty.
14798 (dependence_polyhedron): Same.
14799 (graphite_legal_transform_dr): Same.
14800 (graphite_carried_dependence_level_k): Same.
14801 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14802 parameter.
14803 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14804
14805 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14806
14807 * graphite-sese-to-poly.c
14808 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14809 (close_phi_written_to_memory): New.
14810 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14811 and unshare_expr.
14812
14813 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14814
14815 * doc/install.texi: Update the expected version number of PPL to 0.11.
14816 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14817 #if PPL_VERSION_MINOR < 11.
14818
14819 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14820
14821 * graphite-dependences.c: Include graphite-cloog-util.h.
14822 (new_poly_ddr): Inlined into dependence_polyhedron.
14823 (free_poly_ddr): Moved close by new_poly_ddr.
14824 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14825 Early return NULL when ppl_powerset_is_empty returns true.
14826 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14827 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14828 (graphite_legal_transform_dr): Call new_poly_ddr.
14829 (graphite_carried_dependence_level_k): Same.
14830 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14831 (dot_transformed_deps_stmt_1): Removed.
14832 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14833 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14834 (dot_deps_1): Call dot_deps_2.
14835 * Makefile.in (graphite-dependences.o): Add missing dependence on
14836 graphite-cloog-util.h.
14837
14838 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14839
14840 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14841 (build_lexicographical_constraint): Same.
14842 (dependence_polyhedron_1): Same.
14843 (graphite_legal_transform_dr): Same.
14844 (graphite_carried_dependence_level_k): Same.
14845 * graphite-ppl.c (ppl_powerset_is_empty): New.
14846 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14847 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14848
14849 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14850
14851 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14852 the "a followed by b" relation and document it.
14853
14854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14855
14856 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14857 iteration when the bag of constraints is empty.
14858
14859 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14860
14861 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14862
14863 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14864
14865 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14866 nest and two loop depths as parameters.
14867 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14868 lst_perfect_nestify.
14869
14870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14871
14872 * graphite-dependences.c (print_pddr): Call
14873 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14874
14875 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14876
14877 * graphite-ppl.c (debug_gmp_value): New.
14878 * graphite-ppl.h (debug_gmp_value): Declared.
14879
14880 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14881
14882 * doc/install.texi: Document availability of cloog-0.16.
14883
14884 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14885
14886 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14887 invalid postdominance info.
14888
14889 2011-01-24 Jan Hubicka <jh@suse.cz>
14890
14891 PR c/21659
14892 * doc/extend.texi (weak pragma): Drop claim that it must
14893 appear before definition.
14894 * varasm.c (merge_weak, declare_weak): Only sanity check
14895 that DECL is not output at a time it is declared weak.
14896
14897 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14898
14899 * machmode.def: Fixed comments.
14900
14901 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14902
14903 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14904
14905 2011-01-24 Paul Koning <ni1d@arrl.net>
14906
14907 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14908 WORDS_BIG_ENDIAN.
14909
14910 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14911
14912 PR target/46519
14913 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14914 (block_info): Add scanned and prev.
14915 (move_or_delete_vzeroupper_2): Return if the basic block
14916 has been scanned and the upper 128bit state is unchanged
14917 from the last scan.
14918 (move_or_delete_vzeroupper_1): Return true if the exit
14919 state is changed.
14920 (move_or_delete_vzeroupper): Visit basic blocks using the
14921 work-list based algorithm based on vt_find_locations in
14922 var-tracking.c.
14923
14924 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14925
14926 2011-01-24 Nick Clifton <nickc@redhat.com>
14927
14928 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14929 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14930 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14931 then define __v850e1__.
14932 * doc/invoke.texi: Document -mv850es.
14933
14934 2011-01-24 Richard Henderson <rth@redhat.com>
14935
14936 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14937 compound unordered comparisons.
14938 * config/rx/rx.c (rx_split_fp_compare): Remove.
14939 * config/rx/rx-protos.h: Update.
14940 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14941 (cbranchsf4): Don't call rx_split_fp_compare.
14942 (*cbranchsf4): Use rx_split_cbranch.
14943 (*cmpsf): Don't accept "i" constraint.
14944 (*conditional_branch): Only valid after reload.
14945 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14946
14947 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14948
14949 PR target/47385
14950 * config/rs6000/altivec.md (vector constant splitters): Add
14951 support for creating vector single precision constants if -mvsx is
14952 used and we would create the constant using Altivec primitives.
14953
14954 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14955 Richard Sandiford <rdsandiford@googlemail.com>
14956
14957 PR rtl-optimization/47166
14958 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14959 mechanism for PRE_MODIFY and POST_MODIFY.
14960 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14961 reloadreg.
14962
14963 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14964
14965 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14966
14967 2011-01-22 Jan Hubicka <jh@suse.cz>
14968
14969 PR lto/47333
14970 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14971
14972 2011-01-22 Jan Hubicka <jh@suse.cz>
14973
14974 PR tree-optimization/43884
14975 PR lto/44334
14976 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14977 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14978
14979 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14980
14981 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14982 * config/s390/s390.c (s390_register_move_cost,
14983 s390_memory_move_cost): New.
14984 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14985
14986 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14987
14988 PR middle-end/47401
14989 * except.c (sjlj_assign_call_site_values): Move setting the
14990 crtl->uses_eh_lsda flag to ...
14991 (sjlj_mark_call_sites): ... here.
14992 (sjlj_emit_function_enter): Support NULL dispatch label.
14993 (sjlj_build_landing_pads): In a function with no landing pads
14994 that still has must-not-throw regions, generate code to register
14995 a personality function with empty LSDA.
14996
14997 2011-01-21 Richard Henderson <rth@redhat.com>
14998
14999 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15000
15001 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15002
15003 * compare-elim.c: New file.
15004 * Makefile.in (OBJS-common): Add it.
15005 (compare-elim.o): New.
15006 * common.opt (fcompare-elim): New.
15007 * opts.c (default_options_table): Add OPT_fcompare_elim.
15008 * tree-pass.h (pass_compare_elim_after_reload): New.
15009 * passes.c (init_optimization_passes): Add it.
15010 * recog.h: Protect against re-inclusion.
15011 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15012 * doc/invoke.texi (-fcompare-elim): Document it.
15013 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15014 * doc/tm.texi: Rebuild.
15015
15016 2011-01-22 Nick Clifton <nickc@redhat.com>
15017
15018 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15019 rx_split_fp_compare.
15020
15021 2011-01-22 Nick Clifton <nickc@redhat.com>
15022
15023 * config/rx/rx.md (UNSPEC_CONST): New.
15024 (deallocate_and_return): Wrap the amount popped off the stack in
15025 an UNSPEC_CONST in order to stop it being rejected by
15026 -mmax-constant-size.
15027 (pop_and_return): Add a "(return)" rtx.
15028 (call): Drop the immediate operand.
15029 (call_internal): Likewise.
15030 (call_value): Likewise.
15031 (call_value_internal): Likewise.
15032 (sibcall_internal): Likewise.
15033 (sibcall_value_internal): Likewise.
15034 (sibcall): Likewise. Generate an explicit call using
15035 sibcall_internal.
15036 (sibcall_value): Likewise.
15037 (mov<>): FAIL if a constant operand is not legitimate.
15038 (addsi3_unpsec): New pattern.
15039
15040 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15041 (ok_for_max_constant): New function.
15042 (gen_safe_add): New function.
15043 (rx_expand_prologue): Use gen_safe_add.
15044 (rx_expand_epilogue): Likewise.
15045 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15046 UNSPEC CONSTs.
15047
15048 2011-01-21 Jeff Law <law@redhat.com>
15049
15050 PR tree-optimization/47053
15051 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15052 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15053 statements are deleted.
15054 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15055 is nonempty, then purge dead edges and cleanup the CFG.
15056
15057 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15058
15059 PR debug/47402
15060 Temporarily revert:
15061 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15062 PR debug/47106
15063 * tree-dfa.c (create_var_ann): Mark variable as used.
15064
15065 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15066
15067 PR middle-end/45566
15068 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15069 notes from other section in hot/cold partitioning even if
15070 last_action is -3. Increment call_site_base.
15071
15072 PR rtl-optimization/47366
15073 * fwprop.c (forward_propagate_into): Return bool. If
15074 any changes are made, -fnon-call-exceptions is used and
15075 REG_EH_REGION note is present, call purge_dead_edges
15076 and return true if it purged anything.
15077 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15078 any EH edges were purged.
15079
15080 2011-01-21 Jeff Law <law@redhat.com>
15081
15082 PR rtl-optimization/41619
15083 * caller-save.c (setup_save_areas): Break out code to determine
15084 which hard regs are live across calls by examining the reload chains
15085 so that it is always used.
15086 Eliminate code which checked REG_N_CALLS_CROSSED.
15087
15088 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15089
15090 PR tree-optimization/47355
15091 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15092 NOP has non-debug uses beyond PHIs in new_bb.
15093
15094 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15095
15096 PR debug/47106
15097 * cfgexpand.c (account_used_vars_for_block): Only account vars
15098 that are annotated as used.
15099 (estimated_stack_frame_size): Don't set TREE_USED.
15100 * tree-dfa.c (create_var_ann): Mark variable as used.
15101
15102 2011-01-21 Richard Guenther <rguenther@suse.de>
15103
15104 PR middle-end/47395
15105 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15106
15107 2011-01-21 Richard Guenther <rguenther@suse.de>
15108
15109 PR tree-optimization/47365
15110 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15111 (vn_reference_lookup_pieces): Adjust.
15112 (vn_reference_lookup): Likewise.
15113 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15114 (vn_reference_lookup_3): Only look through kills if in
15115 VN_WALKREWRITE mode.
15116 (vn_reference_lookup_pieces): Adjust.
15117 (vn_reference_lookup): Likewise.
15118 (visit_reference_op_load): Likewise.
15119 (visit_reference_op_store): Likewise.
15120 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15121 (compute_avail): Likewise.
15122 (eliminate): Likewise.
15123
15124 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15125
15126 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15127 DECL_IGNORED_P non-reg vars if they are used.
15128
15129 PR tree-optimization/47391
15130 * varpool.c (const_value_known_p): Return false if
15131 decl is volatile.
15132
15133 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15134
15135 PR bootstrap/47215
15136 * config/i386/i386.c (ix86_local_alignment): Handle
15137 case for va_list_type_node is nil.
15138 (ix86_canonical_va_list_type): Likewise.
15139
15140 2011-01-21 Alan Modra <amodra@gmail.com>
15141
15142 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15143 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15144
15145 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15146
15147 * config/arm/arm.md (define_attr type): Rename f_load
15148 and f_store to f_fpa_load and f_fpa_store. Update.
15149 (write_conflict): Deal with rename fallout.
15150 (*push_fp_multi): Likewise.
15151 * config/arm/fpa.md (f_load): Use f_fpa_load.
15152 (f_store): Use f_fpa_store.
15153 (*movsf_fpa): Likewise.
15154 (*movdf_fpa): Likewise.
15155 (*movxf_fpa): Likewise.
15156 (*thumb2_movsf_fpa): Likewise.
15157 (*thumb2_movdf_fpa): Likewise.
15158 (*thumb2_movxf_fpa): Likewise.
15159 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15160 f_loadd and f_stored.
15161 (*thumb2_movdi_vfp): Likewise.
15162 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15163 (*thumb2_movsi_vfp): Likewise.
15164 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15165 Use f_loads instead of f_load.
15166 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15167
15168 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15169
15170 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15171 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15172 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15173 (xtensa_mode_dependent_address_p): New function.
15174 (constantpool_address_p): Make static. Change return type to bool.
15175 Change argument type to const_rtx. Use CONST_INT_P predicate.
15176
15177 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15178
15179 PR debug/46583
15180 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15181
15182 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15183
15184 PR debug/47283
15185 * cfgexpand.c (expand_debug_expr): Instead of generating
15186 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15187 etc. handling.
15188
15189 2011-01-20 Richard Guenther <rguenther@suse.de>
15190
15191 PR middle-end/47370
15192 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15193 the pointer operand of MEM_REFs.
15194
15195 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15196
15197 PR tree-optimization/46130
15198 * ipa-split.c (consider_split): If return_bb contains non-virtual
15199 PHIs other than for retval or if split_function would not adjust it,
15200 refuse to split.
15201
15202 2011-01-20 Richard Guenther <rguenther@suse.de>
15203
15204 PR tree-optimization/47167
15205 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15206 Revert previous change, only avoid enumeral type changes.
15207
15208 2011-01-19 Mike Stump <mikestump@comcast.net>
15209
15210 * doc/tm.texi.in (BRANCH_COST): Englishify.
15211 * doc/tm.texi (BRANCH_COST): Likewise.
15212
15213 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15214
15215 PR c++/47291
15216 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15217 (gen_scheduled_generic_parms_dies): New functions.
15218 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15219 generation for the end of CU compilation.
15220 (dwarf2out_finish): Generate template parameters DIEs here.
15221
15222 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15223
15224 PR debug/46240
15225 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15226 debug bind stmt on merge edges.
15227
15228 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15229
15230 PR debug/47079
15231 PR debug/46724
15232 * function.c (instantiate_expr): Instantiate incoming rtl of
15233 implicit arguments, and recurse on VALUE_EXPRs.
15234 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15235 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15236
15237 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15238
15239 * c-parser.c (c_parser_for_statement): Initialize
15240 collection_expression.
15241
15242 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15243
15244 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15245
15246 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15247
15248 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15249 (LINK_SHLIB_SPEC): Don't use %(link_path).
15250 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15251
15252 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15253
15254 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15255 (NO_SHARED_LIB_SUPPORT): Remove.
15256 (LINK_SHLIB_SPEC): Remove one conditional definition.
15257
15258 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15259
15260 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15261 %{call_shared}.
15262 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15263 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15264 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15265 %{call_shared} and conditionals on these options not being passed.
15266 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15267 %{call_shared}.
15268
15269 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15270
15271 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15272 simplify.
15273
15274 * ipa-split.c: Spelling fixes.
15275
15276 2011-01-19 Richard Henderson <rth@redhat.com>
15277
15278 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15279 (*mulsi3): Likewise.
15280
15281 * longlong.h [__mn10300__] (count_leading_zeros): New.
15282 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15283 [__mn10300__] (add_ssaaaa, subddmmss): New.
15284 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15285 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15286
15287 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15288
15289 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15290
15291 2011-01-19 Richard Henderson <rth@redhat.com>
15292
15293 * config/mn10300/mn10300.md (addsi3_flags): New.
15294 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15295 (subsi3_flags, subc_internal, subdi3): New.
15296 (subdi3_internal, *subdi3_degenerate): New.
15297 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15298
15299 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15300 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15301 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15302 * config/mn10300/mn10300-protos.h: Update.
15303 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15304 (return_ret): Likewise. Rename from return_internal_regs.
15305 (return_internal): Remove.
15306
15307 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15308 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15309 (mn10300_legitimate_constant_p): Likewise.
15310 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15311 (mn10300_frame_size): New.
15312 (mn10300_expand_prologue): Use it.
15313 (mn10300_expand_epilogue): Likewise.
15314 (mn10300_initial_offset): Likewise.
15315 * config/mn10300/mn10300-protos.h: Update.
15316 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15317 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15318 (prologue, epilogue, return_internal): Tidy output code.
15319 (mn10300_store_multiple_operation, return): Likewise.
15320 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15321 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15322 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15323 (load_pic, am33_load_pic): New.
15324 (mn10300_load_pic0, mn10300_load_pic1): New.
15325
15326 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15327 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15328 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15329 (cc_flags_for_mode, cc_flags_for_code): New.
15330 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15331 overflow flag is not valid. Validate that the flags we need
15332 for the comparison are valid.
15333 (mn10300_output_cmp): Remove.
15334 (mn10300_output_add): New.
15335 (mn10300_select_cc_mode): Use cc_flags_for_code.
15336 (mn10300_split_cbranch): New.
15337 (mn10300_match_ccmode): New.
15338 (mn10300_split_and_operand_count): New.
15339 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15340 to the function.
15341 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15342 (addsi3): ... here. Use mn10300_output_add.
15343 (*addsi3_flags): New.
15344 (*am33_subsi3, *mn10300_subsi3): Merge...
15345 (subsi3): ... here. Use attribute isa.
15346 (*subsi3_flags): New.
15347 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15348 when possible.
15349 (*am33_andsi3, *mn10300_andsi3): Merge...
15350 (andsi3): ... here.
15351 (*andsi3_flags): New.
15352 (andsi3 splitters): New.
15353 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15354 (iorsi3): ... here.
15355 (*iorsi3_flags): New.
15356 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15357 (xorsi3): ... here.
15358 (*xorsi3_flags): New.
15359 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15360 (one_cmplsi2): ... here.
15361 (*one_cmplsi2_flags): New.
15362 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15363 instead of "dax" in constraints. Use mn10300_split_cbranch.
15364 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15365 use matching constraints to eliminate a self-comparison.
15366 (*integer_conditional_branch): Rename from integer_conditional_branch.
15367 Use int_mode_flags to match CC_REG.
15368 (*cbranchsi4_btst, *btstsi): New.
15369 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15370 mn10300_split_cbranch.
15371 (*am33_cmpsf): Rename from am33_cmpsf.
15372 (*float_conditional_branch): Rename from float_conditional_branch.
15373 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15374 (zero_extendqisi2): ... here.
15375 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15376 (zero_extendhisi2): ... here.
15377 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15378 (extendqisi2): ... here.
15379 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15380 (extendhisi2): ... here.
15381 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15382 (ashlsi3): ... here.
15383 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15384 (lshrsi3): ... here.
15385 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15386 (ashrsi3): ... here.
15387 (consecutive add peephole): Remove.
15388 * config/mn10300/predicates.md (label_ref_operand): New.
15389 (int_mode_flags): New.
15390 (CCZN_comparison_operator): New.
15391
15392 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15393 (throughput_42_latency_43): New reservation.
15394 (mulsidi3, umulsidi3): New expanders.
15395 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15396 the MDR register to allocation; separately allocate the low and
15397 high parts of the DImode result.
15398 (umulsidi3_internal): Similarly.
15399 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15400 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15401 (udivsi3, umodsi3): Remove.
15402 (udivmodsi4, divmodsi4): New expanders.
15403 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15404 (*divmodsi4): Simiarly.
15405 (ext_internal): New.
15406
15407 * config/mn10300/constraints.md ("z"): New constraint.
15408 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15409 (FIXED_REGISTERS): Don't fix MDR.
15410 (CALL_USED_REGSITERS): Reformat nicely.
15411 (REG_ALLOC_ORDER): Add MDR.
15412 (enum regclass): Add MDR_REGS.
15413 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15414 (IRA_COVER_CLASSES): Add MDR_REGS.
15415 (REGNO_REG_CLASS): Handle MDR_REG.
15416 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15417 (mn10300_register_move_cost): Likewise.
15418 * config/mn10300/mn10300.md (MDR_REG): New.
15419 (*movsi_internal): Handle moves to/from MDR_REGS.
15420
15421 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15422 POST_MODIFY.
15423 (mn10300_secondary_reload): Tidy combination reload classes.
15424 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15425 addresses for AM33. Allow symbolic offsets for reg+imm.
15426 (mn10300_regno_in_class_p): New.
15427 (mn10300_legitimize_reload_address): New.
15428 * config/mn10300/mn10300.h (enum reg_class): Remove
15429 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15430 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15431 SP_OR_GENERAL_REGS.
15432 (REG_CLASS_NAMES): Update to match.
15433 (REG_CLASS_CONTENTS): Likewise.
15434 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15435 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15436 (REGNO_IN_RANGE_P): Remove.
15437 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15438 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15439 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15440 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15441 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15442 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15443 (REGNO_GENERAL_P): New.
15444 (HAVE_POST_MODIFY_DISP): New.
15445 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15446 (LEGITIMIZE_RELOAD_ADDRESS): New.
15447 * config/mn10300/mn10300-protos.h: Update.
15448
15449 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15450 DATA_REGS for AM33 stack-pointer destination.
15451 (mn10300_preferred_output_reload_class): Likewise.
15452 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15453 into a form appropriate for ...
15454 (TARGET_SECONDARY_RELOAD): New.
15455 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15456 * config/mn10300/mn10300-protos.h: Update.
15457 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15458 reload_insi; use the "A" constraint for the scratch; handle AM33
15459 moves of sp to non-address registers.
15460
15461 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15462 (*movqi_internal): ... here.
15463 (*am33_movhi, *mn10300_movhi): Merge into...
15464 (*movhi_internal): ... here.
15465 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15466 as the source/destination of moves from/to SP.
15467 (movsf): Only allow for AM33-2.
15468 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15469 any integer constant constraint. Only allow for AM33-2. Tidy
15470 all of the alternative outputs.
15471 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15472 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15473 for MN103.
15474 (udivsi3, umodsi3): New patterns for MN103 only.
15475
15476 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15477
15478 * doc/tm.texi.in: Spell out that a lack of register class unions
15479 can lead to ICEs.
15480 * doc/tm.texi: Regenerate.
15481
15482 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15483
15484 PR rtl-optimization/47337
15485 * dce.c (check_argument_store): New function.
15486 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15487
15488 PR tree-optimization/47290
15489 * tree-eh.c (infinite_empty_loop_p): New function.
15490 (cleanup_empty_eh): Use it.
15491
15492 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15493
15494 PR target/46997
15495 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15496 (a64_expand_widen_sum): Ditto.
15497 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15498 (vec_extract_evenodd_help): Ditto.
15499 (vec_extract_evenv4hi): Ditto.
15500 (vec_extract_oddv4hi): Ditto.
15501 (vec_extract_evenv2si): Ditto.
15502 (vec_extract_oddv2si): Ditto.
15503 (vec_extract_evenv2sf): Ditto.
15504 (vec_extract_oddv2sf): Ditto.
15505 (vec_pack_trunc_v4hi: Ditto.
15506 (vec_pack_trunc_v2si): Ditto.
15507 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15508 (vec_interleave_highv8qi): Ditto.
15509 (mix1_r): Ditto.
15510 (vec_extract_oddv8qi): Ditto.
15511 (vec_interleave_lowv4hi): Ditto.
15512 (vec_interleave_highv4hi): Ditto.
15513 (vec_interleave_lowv2si): Ditto.
15514 (vec_interleave_highv2si): Ditto.
15515
15516 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15517
15518 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15519 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15520 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15521 (pa_c_mode_for_suffix): New.
15522 (TARGET_EXPAND_BUILTIN): Define.
15523 (TARGET_C_MODE_FOR_SUFFIX): Define.
15524 (pa_builtins): Define.
15525 (pa_init_builtins): Register __float128 type and init new support
15526 builtins.
15527 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15528 * config/pa/quadlib.c (_U_Qfcopysign): New.
15529
15530 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15531
15532 PR middle-end/46894
15533 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15534 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15535 are defined.
15536
15537 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15538
15539 PR tree-optimization/47179
15540 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15541 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15542
15543 2011-01-18 Richard Guenther <rguenther@suse.de>
15544
15545 PR rtl-optimization/47216
15546 * emit-rtl.c: Include tree-flow.h.
15547 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15548 of replicating it with different semantics.
15549 * Makefile.in (emit-rtl.o): Adjust.
15550
15551 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15552
15553 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15554 (cortex_a9_dp): Handle neon types correctly.
15555
15556 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15557
15558 PR rtl-optimization/47299
15559 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15560 subtarget. Use normal multiplication if both operands are constants.
15561 * expmed.c (expand_widening_mult): Don't try to optimize constant
15562 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15563 before using it.
15564
15565 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15566
15567 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15568 spacing after 'e.g.', typos, comma, hyphenation.
15569
15570 2011-01-17 Richard Henderson <rth@redhat.com>
15571
15572 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15573 (rx_restricted_mem_operand): New.
15574 (rx_shift_operand): Use register_operand.
15575 (rx_source_operand, rx_compare_operand): Likewise.
15576 * config/rx/rx.md (addsi3_flags): New expander.
15577 (adddi3): Rewrite as expander.
15578 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15579 (subsi3_flags): New expander.
15580 (subdi3): Rewrite as expander.
15581 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15582
15583 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15584 (rx_init_builtins): Remove sat builtin.
15585 (rx_expand_builtin): Likewise.
15586 * config/rx/rx.md (ssaddsi3): New.
15587 (*sat): Rename from sat. Represent the CC_REG input.
15588
15589 * config/rx/predicates.md (rshift_operator): New.
15590 * config/rx/rx.c (rx_expand_insv): Remove.
15591 * config/rx/rx-protos.h: Update.
15592 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15593 operand to the canonical position.
15594 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15595 (*bitclr, *bitclr_in_memory): Similarly.
15596 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15597 (insv): Retain the zero_extract in the expansion.
15598
15599 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15600 (bswaphi2, bitinvert, revw): Likewise.
15601
15602 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15603 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15604 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15605 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15606 (bitset, bitset_in_memory): Likewise.
15607 (bitinvert, bitinvert_in_memory): Likewise.
15608 (bitclr, bitclr_in_memory): Likewise.
15609 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15610 (rx_strend, rx_cmpstrn): Likewise.
15611 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15612 (bitop peep2 patterns): Remove.
15613
15614 * config/rx/rx.c (rx_match_ccmode): New.
15615 * config/rx/rx-protos.h: Update.
15616 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15617 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15618 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15619 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15620 (fix_truncsfsi2, floatsisf2): Likewise.
15621 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15622 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15623 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15624 (*subsi3_flags, *xorsi3_flags): New.
15625
15626 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15627
15628 * config/rx/rx.c (rx_print_operand): Remove workaround for
15629 unsplit comparison operations.
15630
15631 * config/rx/rx.md (movsicc): Split after reload.
15632 (*movsicc): Merge *movsieq and *movsine via match_operator.
15633 (*stcc): New pattern.
15634
15635 * config/rx/rx.c (rx_float_compare_mode): Remove.
15636 * config/rx/rx.h (rx_float_compare_mode): Remove.
15637 * config/rx/rx.md (cstoresi4): Split after reload.
15638 (*sccc): New pattern.
15639
15640 * config/rx/predicates.md (label_ref_operand): New.
15641 (rx_z_comparison_operator): New.
15642 (rx_zs_comparison_operator): New.
15643 (rx_fp_comparison_operator): New.
15644 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15645 Validate that the flags are set properly for the comparison.
15646 (rx_gen_cond_branch_template): Remove.
15647 (rx_cc_modes_compatible): Remove.
15648 (mode_from_flags): New.
15649 (flags_from_code): Rename from flags_needed_for_conditional.
15650 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15651 (rx_select_cc_mode): Likewise.
15652 (rx_split_fp_compare): New.
15653 (rx_split_cbranch): New.
15654 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15655 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15656 (*cbranchsf4): Similarly.
15657 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15658 match_operator and rx_split_cbranch.
15659 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15660 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15661 (*cmpsi): Rename from cmpsi.
15662 (*tstsi): Rename from tstsi.
15663 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15664 (*conditional_branch): Rename from conditional_branch.
15665 (*reveresed_conditional_branch): Remove.
15666 (b<code>): Remove expander.
15667 * config/rx/rx-protos.h: Update.
15668
15669 * config/rx/rx.c (rx_compare_redundant): Remove.
15670 * config/rx/rx.md (cmpsi): Don't use it.
15671 * config/rx/rx-protos.h: Update.
15672
15673 * config/rx/rx-modes.def (CC_F): New mode.
15674 * config/rx/rx.c (rx_select_cc_mode): New.
15675 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15676 * config/rx/rx-protos.h: Update.
15677
15678 2011-01-17 Richard Henderson <rth@redhat.com>
15679
15680 * except.c (dump_eh_tree): Fix stray ; after for statement.
15681
15682 2011-01-17 Richard Guenther <rguenther@suse.de>
15683
15684 PR tree-optimization/47313
15685 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15686 handling before copying the body. Properly deal with
15687 by-reference result in SSA form.
15688
15689 2011-01-17 Ian Lance Taylor <iant@google.com>
15690
15691 PR target/47219
15692 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15693 (struct_value_alias_set): Don't define.
15694 (sparc_option_override): Don't set sparc_sr_alias_set and
15695 struct_value_alias_set.
15696 (save_or_restore_regs): Use gen_frame_mem rather than calling
15697 set_mem_alias_set.
15698 (sparc_struct_value_rtx): Likewise.
15699
15700 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15701
15702 PR target/47318
15703 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15704 (_mm_maskstore_pd): Likewise.
15705 (_mm_maskload_ps): Likewise.
15706 (_mm_maskstore_ps): Likewise.
15707 (_mm256_maskload_pd): Change mask to __m256i.
15708 (_mm256_maskstore_pd): Likewise.
15709 (_mm256_maskload_ps): Likewise.
15710 (_mm256_maskstore_ps): Likewise.
15711
15712 * config/i386/i386-builtin-types.def: Updated.
15713 (ix86_expand_special_args_builtin): Likewise.
15714
15715 * config/i386/i386.c (bdesc_special_args): Update
15716 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15717 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15718 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15719 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15720
15721 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15722 Use <avxpermvecmode> on mask register.
15723 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15724
15725 2011-01-17 Olivier Hainque <hainque@adacore.com>
15726 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15727 Eric Botcazou <ebotcazou@adacore.com>
15728
15729 PR target/46655
15730 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15731 if <= USHRT_MAX in 32-bit mode.
15732
15733 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15734
15735 * doc/install.texi (Configuration, Specific): Wrap long
15736 lines in examples. Allow line wrapping in long options
15737 and URLs where beneficial for PDF output.
15738
15739 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15740
15741 * config/mips/mips.c (mips_classify_symbol): Don't return
15742 SYMBOL_PC_RELATIVE for nonlocal labels.
15743
15744 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15745
15746 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15747
15748 2011-01-15 Jan Hubicka <jh@suse.cz>
15749
15750 PR tree-optimization/47276
15751 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15752 declarations as needed.
15753
15754 2011-01-15 Martin Jambor <mjambor@suse.cz>
15755
15756 * common.opt (fdevirtualize): New flag.
15757 * doc/invoke.texi (Option Summary): Document it.
15758 * opts.c (default_options_table): Add devirtualize flag.
15759 * ipa-prop.c (detect_type_change): Return immediately if
15760 devirtualize flag is not set.
15761 (detect_type_change_ssa): Likewise.
15762 (compute_known_type_jump_func): Likewise.
15763 (ipa_analyze_virtual_call_uses): Likewise.
15764
15765 2011-01-14 Martin Jambor <mjambor@suse.cz>
15766
15767 PR tree-optimization/45934
15768 PR tree-optimization/46302
15769 * ipa-prop.c (type_change_info): New type.
15770 (stmt_may_be_vtbl_ptr_store): New function.
15771 (check_stmt_for_type_change): Likewise.
15772 (detect_type_change): Likewise.
15773 (detect_type_change_ssa): Likewise.
15774 (compute_complex_assign_jump_func): Check for dynamic type change.
15775 (compute_complex_ancestor_jump_func): Likewise.
15776 (compute_known_type_jump_func): Likewise.
15777 (compute_scalar_jump_functions): Likewise.
15778 (ipa_analyze_virtual_call_uses): Likewise.
15779 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15780
15781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15782
15783 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15784 * config/i386/i386.opt (msse5): New Alias.
15785
15786 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15787
15788 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15789 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15790 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15791 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15792
15793 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15794
15795 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15796 -mcpu options.
15797 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15798 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15799 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15800 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15801 Likewise.
15802 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15803
15804 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15805
15806 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15807
15808 2011-01-14 Mike Stump <mikestump@comcast.net>
15809
15810 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15811 * config/fr30/fr30.md: Likweise
15812 (movsi_push): Likewise.
15813 (movsi_pop): Likewise.
15814 (enter_func): Likewise.
15815 * config/moxie/moxie.md (movsi_push): Likewise.
15816 (movsi_pop): Likewise.
15817
15818 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15819
15820 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15821 %{no_archive} %{exact_version}.
15822 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15823 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15824 %{no_archive} %{exact_version}.
15825 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15826 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15827 * config/mips/vxworks.h: Likewise.
15828
15829 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15830
15831 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15832
15833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15834
15835 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15836 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15837
15838 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15839
15840 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15841 -nodefaultlib.
15842
15843 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15844
15845 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15846 for mcpu not cpu.
15847 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15848 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15849 not cpu.
15850 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15851 Don't handle -shlib.
15852
15853 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15854
15855 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15856 (CC1_SPEC): Don't handle -profile.
15857
15858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15859
15860 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15861 * config/mips/mips.h (CC1_SPEC): Likewise.
15862
15863 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15864
15865 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15866 * config/mips/mips.h (CC1_SPEC): Likewise.
15867
15868 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15869
15870 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15871 * config/m32r/linux.h (LINK_SPEC): Likewise.
15872 * config/mips/linux.h (LINK_SPEC): Likewise.
15873 * config/mips/linux64.h (LINK_SPEC): Likewise.
15874 * config/sparc/linux.h (LINK_SPEC): Likewise.
15875 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15876 LINK_SPEC): Likewise.
15877 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15878
15879 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15880
15881 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15882 %{version:-v}.
15883 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15884
15885 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15886
15887 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15888 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15889
15890 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15891
15892 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15893
15894 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15895
15896 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15897 supports -Bstatic/-Bdynamic.
15898 * configure: Regenerate.
15899
15900 2011-01-14 Jan Hubicka <jh@suse.cz>
15901 Jack Howarth <howarth@bromo.med.uc.edu>
15902
15903 PR target/46037
15904 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15905 when checking debug_info_level. Test write_symbols instead of
15906 debug_hooks->var_location when setting flag_var_tracking_uninit.
15907
15908 2011-01-14 Richard Guenther <rguenther@suse.de>
15909
15910 PR tree-optimization/47179
15911 * target.def (ref_may_alias_errno): New target hook.
15912 * targhooks.h (default_ref_may_alias_errno): Declare.
15913 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15914 (default_ref_may_alias_errno): New function.
15915 * target.h (struct ao_ref_s): Declare.
15916 * tree-ssa-alias.c: Include target.h.
15917 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15918 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15919 (targhooks.o): Likewise.
15920 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15921 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15922
15923 2011-01-14 Richard Guenther <rguenther@suse.de>
15924
15925 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15926
15927 2011-01-14 Richard Guenther <rguenther@suse.de>
15928
15929 PR tree-optimization/47280
15930 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15931 return CFG changes.
15932 (tree_ssa_forward_propagate_single_use_vars): Deal with
15933 CFG changes from associate_plusminus.
15934
15935 2011-01-14 Richard Guenther <rguenther@suse.de>
15936
15937 PR middle-end/47281
15938 Revert
15939 2011-01-11 Richard Guenther <rguenther@suse.de>
15940
15941 PR tree-optimization/46076
15942 * tree-ssa.c (useless_type_conversion_p): Conversions from
15943 unprototyped to empty argument list function types are useless.
15944
15945 2011-01-14 Richard Guenther <rguenther@suse.de>
15946
15947 PR tree-optimization/47286
15948 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15949
15950 2011-01-14 Martin Jambor <mjambor@suse.cz>
15951
15952 PR middle-end/46823
15953 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15954
15955 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15956
15957 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15958 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15959 * config/xtensa/xtensa.c (xtensa_libcall_value,
15960 xtensa_function_value_regno_p): New functions.
15961 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15962
15963 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15964
15965 PR c++/47213
15966 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15967 PE specific hook.
15968 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15969 New function prototype.
15970 * config/i386/winnt.c (i386_pe_assemble_visibility):
15971 Warn only if attribute was specified by user.
15972
15973 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15974
15975 PR target/47251
15976 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15977 floating point.
15978 (floatunsdidf2_fcfidu): Ditto.
15979
15980 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15981
15982 * config/s390/s390.c (print_operand_address): Replace 'error' with
15983 'output_operand_lossage'.
15984 (print_operand): Likewise.
15985
15986 2011-01-13 Jeff Law <law@redhat.com>
15987
15988 PR rtl-optimization/39077
15989 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15990 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15991 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15992 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15993 * gcse.c (prune_insertions_deletions): New function.
15994 (compute_pre_data): Use it.
15995
15996 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15997
15998 PR debug/PR46973
15999 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16000 static function.
16001 (prune_unused_types_mark): Use it.
16002
16003 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16004
16005 PR rtl-optimization/45352
16006 * sel-sched.c: Update copyright years.
16007 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16008 in the advancing loop when we have issued issue_rate insns.
16009
16010 2011-01-12 Richard Henderson <rth@redhat.com>
16011
16012 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16013 (TARGET_MD_ASM_CLOBBERS): New.
16014
16015 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16016 (TARGET_DELEGITIMIZE_ADDRESS): New.
16017
16018 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16019 (clzsi2, *bsch): New patterns.
16020
16021 * config/mn10300/mn10300.md (INT): New mode iterator.
16022 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16023
16024 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16025 flag_split_wide_types.
16026
16027 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16028 (mn10300_trampoline_init): Rewrite without a template, an immediate
16029 load and a direct branch.
16030 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16031
16032 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16033
16034 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16035 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16036 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16037 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16038
16039 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16040
16041 PR debug/47209
16042 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16043 of type.
16044
16045 2011-01-12 Jan Hubicka <jh@suse.cz>
16046
16047 PR driver/47244
16048 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16049 (PLUGIN_COND_CLOSE): New macro.
16050 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16051
16052 2011-01-12 Richard Guenther <rguenther@suse.de>
16053
16054 PR lto/47259
16055 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16056 register variables in a MEM_REF.
16057
16058 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16059
16060 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16061 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16062 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16063 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16064 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16065 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16066 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16067 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16068 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16069 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16070 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16071 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16072 * config/gnu-user.h: New. Copied from linux.h.
16073 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16074 GNU_USER_TARGET_STARTFILE_SPEC.
16075 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16076 GNU_USER_TARGET_ENDFILE_SPEC.
16077 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16078 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16079 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16080 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16081 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16082 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16083 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16084 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16085 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16086 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16087 * config/arm/linux-eabi.h (CC1_SPEC): Use
16088 GNU_USER_TARGET_CC1_SPEC.
16089 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16090 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16091 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16092 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16093 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16094 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16095 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16096 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16097
16098 2011-01-12 Richard Guenther <rguenther@suse.de>
16099
16100 PR other/46946
16101 * doc/invoke.texi (ffast-math): Document it is turned on
16102 with -Ofast.
16103
16104 2011-01-12 Jan Hubicka <jh@suse.cz>
16105
16106 PR tree-optimization/47233
16107 * opts.c (common_handle_option): Disable ipa-reference with profile
16108 feedback.
16109
16110 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16111
16112 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16113 error message.
16114
16115 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16116
16117 * c-parser.c (c_lex_one_token): Updated and reindented some
16118 comments. No changes in code.
16119
16120 2011-01-11 Ian Lance Taylor <iant@google.com>
16121
16122 * godump.c (go_output_var): Don't output the variable if there is
16123 already a type with the same name.
16124
16125 2011-01-11 Ian Lance Taylor <iant@google.com>
16126
16127 * godump.c (go_format_type): Don't generate float80.
16128
16129 2011-01-11 Richard Henderson <rth@redhat.com>
16130
16131 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16132 declaration. Rewrite for both speed and size.
16133 (mn10300_address_cost_1): Remove.
16134 (mn10300_register_move_cost): New.
16135 (mn10300_memory_move_cost): New.
16136 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16137 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16138 extensions, shifts, BSWAP, CLZ.
16139 (mn10300_wide_const_load_uses_clr): Remove.
16140 (TARGET_REGISTER_MOVE_COST): New.
16141 (TARGET_MEMORY_MOVE_COST): New.
16142 * config/mn10300/mn10300-protos.h: Update.
16143 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16144
16145 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16146 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16147 * config/mn10300/mn10300-protos.h: Update.
16148 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16149 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16150 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16151 (*test_int_bitfield, *test_byte_bitfield): Remove.
16152 (*bit_test, *subreg_bit_test): Remove.
16153 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16154
16155 * config/mn10300/constraints.md ("c"): Rename from "A".
16156 ("A", "D"): New constraint letters.
16157 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16158 (fmssf4, fnmasf4, fnmssf4): Likewise.
16159
16160 * config/mn10300/mn10300.md (isa): New attribute.
16161 (enabled): New attribute.
16162
16163 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16164 (abssf2, negsf2): Define only for hardware fp.
16165 (sqrtsf2): Reformat.
16166 (addsf3, subsf3, mulsf3): Merge expander and insn.
16167
16168 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16169 (DEBUGGER_AUTO_OFFSET): Remove.
16170 (DEBUGGER_ARG_OFFSET): Remove.
16171
16172 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16173 Emit register stores with the same offsets as the hardware.
16174 (mn10300_store_multiple_operation): Don't check that the register
16175 save offsets are monotonic.
16176 * config/mn10300/mn10300-protos.h: Update.
16177
16178 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16179
16180 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16181 in terms of the value on the stack, not the MDR register.
16182
16183 2011-01-11 Jan Hubicka <jh@suse.cz>
16184
16185 PR lto/45721
16186 PR lto/45375
16187 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16188 (symbol_alias_set_destroy, symbol_alias_set_contains,
16189 propagate_aliases_backward): Declare.
16190 * lto-streamer-out.c (struct sets): New sturcture.
16191 (trivally_defined_alias): New function.
16192 (output_alias_pair_p): Rewrite.
16193 (output_unreferenced_globals): Fix output of alias pairs.
16194 (produce_symtab): Likewise.
16195 * ipa.c (function_and_variable_visibility): Set weak alias destination
16196 as needed in lto.
16197 * varasm.c (symbol_alias_set_t): Remove.
16198 (symbol_alias_set_destroy): Export.
16199 (propagate_aliases_forward, propagate_aliases_backward): New functions
16200 based on ...
16201 (compute_visible_aliases): ... this one; remove.
16202 (trivially_visible_alias): New
16203 (trivially_defined_alias): New.
16204 (remove_unreachable_alias_pairs): Rewrite.
16205 (finish_aliases_1): Reorganize code checking if alias is defined.
16206 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16207 in LTO mode.
16208
16209 2011-01-11 Richard Guenther <rguenther@suse.de>
16210
16211 PR tree-optimization/46076
16212 * tree-ssa.c (useless_type_conversion_p): Conversions from
16213 unprototyped to empty argument list function types are useless.
16214
16215 2011-01-11 Richard Guenther <rguenther@suse.de>
16216
16217 PR middle-end/45235
16218 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16219 volatile MEMs as MEM_READONLY_P.
16220
16221 2011-01-11 Richard Guenther <rguenther@suse.de>
16222
16223 PR tree-optimization/47239
16224 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16225
16226 2011-01-11 Jeff Law <law@redhat.com>
16227
16228 PR tree-optimization/47086
16229 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16230 IVs from statements that might throw.
16231
16232 2011-01-10 Jan Hubicka <jh@suse.cz>
16233
16234 PR lto/45375
16235 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16236
16237 2011-01-10 Jan Hubicka <jh@suse.cz>
16238
16239 PR lto/45375
16240 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16241 when correcting profile.
16242
16243 2011-01-10 Jan Hubicka <jh@suse.cz>
16244
16245 PR lto/46083
16246 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16247 DECL_FINI_PRIORITY.
16248 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16249 Restore DECL_FINI_PRIORITY.
16250
16251 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16252
16253 * doc/gimple.texi: Fix quoting of multi-word return values in
16254 @deftypefn statements. Ensure presence of return value. Wrap
16255 overlong @deftypefn lines.
16256 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16257 descriptions of removed functions.
16258 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16259 of multi-word return value in @deftypefn statement.
16260
16261 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16262
16263 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16264 (Conditional Expressions, Logical Operators)
16265 (Statement and operand traversals): Do not indent smallexample
16266 code. Fix duplicate function argument in example.
16267
16268 2011-01-10 Jeff Law <law@redhat.com>
16269
16270 PR tree-optimization/47141
16271 * ipa-split.c (split_function): Handle case where we are
16272 returning a value and the return block has a virtual operand phi.
16273
16274 2011-01-10 Jan Hubicka <jh@suse.cz>
16275
16276 PR tree-optimization/47234
16277 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16278 (pass_feedback_split_functions): Declare.
16279 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16280 tree-profile.
16281 * ipa-split.c (gate_split_functions): Update comments; disable
16282 split-functions for profile_arc_flag and branch_probabilities.
16283 (gate_feedback_split_functions): New function.
16284 (execute_feedback_split_functions): New function.
16285 (pass_feedback_split_functions): New global var.
16286
16287 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16288
16289 PR lto/46760
16290 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16291 calling gimple_call_set_cannot_inline.
16292
16293 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16294
16295 * config/darwin-sections.def: Remove unused section.
16296
16297 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16298
16299 PR c++/47218
16300 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16301
16302 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16303
16304 PR objc/47232
16305 * c-parser.c (c_parser_declaration_or_fndef): Improved
16306 error message.
16307
16308 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16309
16310 * config/i386/winnt.c (i386_pe_start_function): Make sure
16311 to switch back to function's section.
16312
16313 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16314
16315 PR gcc/46902
16316 PR testsuite/46912
16317 * plugin.c: Move include of dlfcn.h from here...
16318 * system.h: ... to here.
16319
16320 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16321
16322 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16323 file name.
16324 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16325 two extra empty pages in PDF output.
16326
16327 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16328
16329 PR objc/47078
16330 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16331 for error recovery purposes behave as if it was not specified so
16332 that the default type is usd.
16333
16334 2011-01-07 Jan Hubicka <jh@suse.cz>
16335
16336 PR tree-optmization/46469
16337 * ipa.c (function_and_variable_visibility): Clear needed flags on
16338 nodes with external decls; handle weakrefs merging correctly.
16339
16340 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16341
16342 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16343 not false.
16344
16345 2011-01-07 Jan Hubicka <jh@suse.cz>
16346
16347 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16348 and no longer claim that gold is required for linker plugin.
16349 * configure: Regenerate.
16350 * gcc.c (PLUGIN_COND): New macro.
16351 (LINK_COMMAND_SPEC): Use it.
16352 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16353 * config.in (HAVE_LTO_PLUGIN): New.
16354 * configure.ac (--with-lto-plugin): New parameter; autodetect
16355 HAVE_LTO_PLUGIN.
16356
16357 2011-01-07 Jan Hubicka <jh@suse.cz>
16358
16359 PR tree-optimization/46367
16360 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16361 when we can update original.
16362 (cgraph_mark_inline_edge): Sanity check.
16363 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16364
16365 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16366
16367 * config/spu/spu.h (ASM_COMMENT_START): Define.
16368
16369 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16370
16371 PR driver/42445
16372 * gcc.c (%>S): New.
16373 (SWITCH_KEEP_FOR_GCC): Likewise.
16374 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16375 (do_spec_1): Handle "%>".
16376
16377 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16378
16379 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16380
16381 PR target/47201
16382 * config/i386/i386.c (ix86_delegitimize_address): If
16383 simplify_gen_subreg fails, return orig_x.
16384
16385 PR bootstrap/47187
16386 * value-prof.c (gimple_stringop_fixed_value): Handle
16387 lhs of the call properly.
16388
16389 2011-01-07 Jan Hubicka <jh@suse.cz>
16390
16391 PR lto/45375
16392 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16393
16394 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16395
16396 * target.def (function_switched_text_sections): New hook.
16397 * doc/tm.texi: Regenerated.
16398 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16399 * final.c (default_function_switched_text_sections): New.
16400 (final_scan_insn): Call function_switched_text_sections when a
16401 mid-function section change occurs.
16402 * output.h (default_function_switched_text_sections): Declare.
16403 * config/darwin-protos.h (darwin_function_switched_text_sections):
16404 Likewise.
16405 * config/darwin.c (darwin_function_switched_text_sections): New.
16406 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16407
16408 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16409
16410 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16411 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16412 the secondary code fragment when outputting for DWARF == 2.
16413
16414 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16415
16416 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16417 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16418 Remove.
16419 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16420 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16421
16422 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16423
16424 PR debug/46704
16425 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16426 when it is not empty.
16427
16428 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16429
16430 Bobcat Enablement
16431 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16432 (case ${target}): Add btver1.
16433 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16434 -march=native recognize btver1 processors.
16435 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16436 btver1 def_and_undef
16437 * config/i386/i386.c (struct processor_costs btver1_cost): New
16438 btver1 cost table.
16439 (m_BTVER1): New definition.
16440 (m_AMD_MULTIPLE): Includes m_BTVER1.
16441 (initial_ix86_tune_features): Add btver1 tune.
16442 (processor_target_table): Add btver1 entry.
16443 (static const char *const cpu_names): Add btver1 entry.
16444 (software_prefetching_beneficial_p): Add btver1.
16445 (ix86_option_override_internal): Add btver1 instruction sets.
16446 (ix86_issue_rate): Add btver1.
16447 (ix86_adjust_cost): Add btver1.
16448 * config/i386/i386.h (TARGET_BTVER1): New definition.
16449 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16450 (enum processor_type): Add PROCESSOR_BTVER1.
16451 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16452
16453 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16454
16455 PR target/43309
16456 * config/i386/i386.c (legitimize_tls_address)
16457 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16458 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16459 (tls_initial_exec_64_sun): New pattern.
16460
16461 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16462
16463 * doc/invoke.texi (Overall Options): Improve wording and markup
16464 of the description of -wrapper.
16465
16466 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16467
16468 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16469 rdynamic, threads): New Driver options.
16470
16471 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16472
16473 PR target/38118
16474 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16475 if coming from .tdata.
16476 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16477
16478 2011-01-06 Jan Hubicka <jh@suse.cz>
16479
16480 PR lto/47188
16481 * collect2.c (main): Do not enable LTOmode when plugin is active.
16482
16483 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16484
16485 PR other/45915
16486 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16487 --version output if supported.
16488 * configure: Regenerate.
16489
16490 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16491
16492 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16493 Driver options.
16494
16495 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16496
16497 PR c/47150
16498 * c-convert.c (convert): When converting a complex expression
16499 other than COMPLEX_EXPR to a different complex type, ensure
16500 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16501 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16502 when converting COMPLEX_TYPE.
16503
16504 2011-01-06 Ira Rosen <irar@il.ibm.com>
16505
16506 PR tree-optimization/47139
16507 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16508 only the last reduction value is used outside the loop. Update
16509 documentation.
16510
16511 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16512
16513 * config/rtems.opt: New.
16514 * config.gcc (*-*-rtems*): Use rtems.opt.
16515
16516 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16517
16518 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16519 processors do not support 3DNow instructions.
16520
16521 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16522
16523 * config/spu/spu.c (spu_option_override): Set parameter
16524 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16525
16526 2011-01-05 Jan Hubicka <jh@suse.cz>
16527
16528 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16529 at the command line.
16530
16531 2011-01-05 Martin Jambor <mjambor@suse.cz>
16532
16533 PR lto/47162
16534 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16535 deltas on streamed outgoing edges.
16536 (output_node_opt_summary): Output info for outgoing edges only when
16537 the node is in new parameter set.
16538 (output_cgraph_opt_summary): New parameter set, passed to the two
16539 aforementioned functions. Update its forward declaration and its
16540 callee too.
16541
16542 2011-01-05 Tom Tromey <tromey@redhat.com>
16543
16544 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16545 operator to c_finish_omp_atomic.
16546 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16547 (build_unary_op): Update.
16548 (build_modify_expr): Update.
16549 (build_asm_expr): Update.
16550
16551 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16552
16553 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16554 newly inserted insns.
16555 (pad_bb): Likewise.
16556 (spu_emit_branch_hint): Likewise.
16557 (insert_hbrp_for_ilb_runout): Likewise.
16558 (spu_machine_dependent_reorg): Call df_finish_pass after
16559 schedule_insns returns.
16560
16561 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16562
16563 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16564
16565 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16566
16567 PR tree-optimization/47005
16568 * tree-sra.c (struct access): Add 'non_addressable' bit.
16569 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16570 (decide_one_param_reduction): Return 0 if the parameter is passed by
16571 reference and one of the accesses in the group is non_addressable.
16572
16573 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16574
16575 PR tree-optimization/47056
16576 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16577 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16578 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16579
16580 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16581
16582 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16583 initializer. Skip view conversions from aggregate types.
16584
16585 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16586
16587 PR bootstrap/47055
16588 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16589
16590 2011-01-04 Philipp Thomas <pth@suse.de>
16591
16592 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16593 obvious typo.
16594
16595 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16596
16597 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16598 on empty epilogue sequences.
16599
16600 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16601
16602 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16603 non-static): New Driver options.
16604
16605 2011-01-04 Jie Zhang <jie@codesourcery.com>
16606
16607 PR driver/47137
16608 * gcc.c (default_compilers[]): Set combinable field to 0
16609 for all assembly languages.
16610
16611 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16612
16613 * config/mips/loongson3a.md: New file.
16614 * config/mips/mips.md: Include loongson3a.md.
16615 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16616 TUNE_LOONGSON_3A.
16617
16618 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16619
16620 PR middle-end/47017
16621 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16622 instead of convert_memory_address_addr_space on the base expression.
16623
16624 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16625
16626 * config/spu/spu.c (spu_option_override): Update error text
16627 for bad -march= / -mtune= values.
16628
16629 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16630
16631 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16632 if branch-hint optimization will be performed.
16633
16634 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16635
16636 PR tree-optimization/47148
16637 * ipa-split.c (split_function): Convert arguments to
16638 DECL_ARG_TYPE if possible.
16639
16640 PR tree-optimization/47155
16641 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16642 when computing uns.
16643
16644 PR rtl-optimization/47157
16645 * combine.c (try_combine): If undobuf.other_insn becomes
16646 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16647 and set *new_direct_jump_p too.
16648
16649 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16650
16651 PR tree-optimization/47021
16652 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16653
16654 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16655
16656 * gcc.c (process_command): Update copyright notice dates.
16657 * gcov.c (print_version): Likewise.
16658 * gcov-dump.c (print_version): Likewise.
16659 * mips-tfile.c (main): Likewise.
16660 * mips-tdump.c (main): Likewise.
16661
16662 2011-01-03 Martin Jambor <mjambor@suse.cz>
16663
16664 PR tree-optimization/46801
16665 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16666 aggregate fields start at byte boundary instead of the bit-field flag.
16667
16668 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16669
16670 PR driver/47137
16671 * gcc.c (main): Revert revision 168407.
16672
16673 2011-01-03 Martin Jambor <mjambor@suse.cz>
16674
16675 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16676
16677 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16678
16679 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16680 vector optab to expand vector/scalar shift, update gimple to vector.
16681
16682 2011-01-03 Martin Jambor <mjambor@suse.cz>
16683
16684 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16685 a thunk.
16686
16687 2011-01-03 Martin Jambor <mjambor@suse.cz>
16688
16689 PR tree-optimization/46984
16690 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16691 HOST_WIDE_INT.
16692 (cgraph_create_indirect_edge): Fixed line length.
16693 (cgraph_indirect_call_info): Declare.
16694 (cgraph_make_edge_direct) Update declaration.
16695 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16696 (cgraph_create_indirect_edge): Use it.
16697 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16698 callees.
16699 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16700 the new thunk_delta representation.
16701 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16702 HOST_WIDE_INT.
16703 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16704 (ipa_read_indirect_edge_info): Likewise.
16705 * lto-cgraph.c (output_edge_opt_summary): New function.
16706 (output_node_opt_summary): Call it on all outgoing edges.
16707 (input_edge_opt_summary): New function.
16708 (input_node_opt_summary): Call it on all outgoing edges.
16709
16710 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16711
16712 PR driver/47137
16713 * gcc.c (main): Don't check have_o when settting combine_inputs.
16714
16715 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16716
16717 * regrename.c: Add general comment describing the pass.
16718 (struct du_head): Remove 'length' field.
16719 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16720 (regrename_optimize): Do not sort chains. Rework comments, add others.
16721 Force renaming to the preferred class (if any) in the first pass and do
16722 not consider registers that belong to it in the second pass.
16723 (create_new_chain): Do not set 'length' field.
16724 (scan_rtx_reg): Likewise.
16725
16726 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16727
16728 PR tree-optimization/47140
16729 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16730 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16731 to bit_value_binop.
16732
16733 PR rtl-optimization/47028
16734 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16735 parm_birth_insn instead of at the beginning of first bb.
16736
16737 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16738
16739 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16740 Remove the word "see" before "@pxref".
16741 * doc/rtl.texi: Remove the word "see" before "@pxref".
16742
16743 2011-01-01 Jan Hubicka <jh@suse.cz>
16744
16745 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16746 memory.
16747
16748 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16749
16750 PR target/38662
16751 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16752
16753 \f
16754 Copyright (C) 2011 Free Software Foundation, Inc.
16755
16756 Copying and distribution of this file, with or without modification,
16757 are permitted in any medium without royalty provided the copyright
16758 notice and this notice are preserved.