2831dabdf7f09d4b144e8f77429799bd9427d14f
[gcc.git] / gcc / ChangeLog
1 2011-06-03 Richard Henderson <rth@redhat.com>
2 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3
4 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5 (sigill_hdlr): Correct insn, insn size.
6 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
7
8 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9
10 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11 t-slibgcc-dummy.
12 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
14 * config/mips/t-iris: Remove.
15 * config/mips/t-irix6: New file.
16 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
17
18 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19
20 * Makefile.in (LIB2ADDEHDEP): Remove.
21 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
22 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
23 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
24 * config/t-darwin (LIB2ADDEHDEP): Remove.
25 * config/t-freebsd (LIB2ADDEHDEP): Remove.
26 * config/t-linux (LIB2ADDEHDEP): Remove.
27
28 2011-06-03 Diego Novillo <dnovillo@google.com>
29
30 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
31 (lto_register_var_decl_in_symtab): Likewise.
32 (lto_register_function_decl_in_symtab): Likewise.
33 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
34 logic to uniquify_nodes.
35
36 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37
38 * config/alpha/t-osf5: Remove.
39 * config/alpha/t-osf-pthread: Remove.
40 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
41 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
42
43 2011-06-03 Julian Brown <julian@codesourcery.com>
44
45 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
46 (strongarm1110): Use strongarm tuning.
47 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
48 field.
49 * config/arm/arm.c (arm_strongarm_tune): New.
50 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
51 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
52 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
53 setting, using previous defaults or 1 for Cortex-A5.
54 (arm_option_override): Set max_insns_skipped from current tuning.
55
56 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
57
58 * doc/install.texi (Options specification): Document --with-specs.
59
60 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
61
62 * config/arm/neon.md (orndi3_neon): Actually split it.
63
64 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
65
66 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
67 * var-tracking.c (reverse_op): Limite recurse depth to 5.
68
69 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
70
71 PR debug/47590
72 * target.def (delay_sched2, delay_vartrack): New.
73 * doc/tm.texi.in: Update.
74 * doc/tm.texi: Rebuild.
75 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
76 * var-tracking.c (gate_handle_var_tracking): Likewise.
77 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
78 (bfin_flag_var_tracking): Drop.
79 (output_file_start): Don't save and override flag_var_tracking.
80 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
81 (bfin_reorg): Test original variables.
82 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
83 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
84 (ia64_flag_var_tracking): Drop.
85 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
86 (ia64_file_start): Don't save and override flag_var_tracking.
87 (ia64_override_options_after_change): Ditto
88 flag_schedule_insns_after_reload.
89 (ia64_reorg): Test original variables.
90 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
91 (picochip_flag_var_tracking): Drop.
92 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
93 (picochip_option_override): Don't save and override
94 flag_schedule_insns_after_reload.
95 (picochip_asm_file_start): Ditto flag_var_tracking.
96 (picochip_reorg): Test original variables.
97 * config/spu/spu.c (spu_flag_var_tracking): Drop.
98 (TARGET_DELAY_VARTRACK): Define.
99 (spu_var_tracking): New.
100 (spu_machine_dependent_reorg): Call it.
101 (asm_file_start): Don't save and override flag_var_tracking.
102
103 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
104
105 PR target/49163
106 * config/sh/predicates.md (general_movsrc_operand): Return 0
107 for memory and memory subreg of which address is an invalid
108 indexed address for QI and HImode.
109 (general_movdst_operand): Likewise.
110
111 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
112
113 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
114 edges only, when there is a non-local label in the function.
115 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
116
117 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
118
119 * config/i386/constraints.md (Y3): New register constraint.
120 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
121 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
122 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
123 *sse2_interleave_lowv2df.
124
125 2011-06-02 Julian Brown <julian@codesourcery.com>
126
127 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
128 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
129 (arm_cortex_a5_tune): New.
130
131 2011-06-02 Julian Brown <julian@codesourcery.com>
132
133 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
134 * config/arm/arm.c (arm_default_branch_cost): New.
135 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
136 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
137 (arm_fa726_tune): Set branch_cost field using
138 arm_default_branch_cost.
139 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
140 current_tune structure.
141 * dojump.c (tm_p.h): Include file.
142
143 2011-06-02 Julian Brown <julian@codesourcery.com>
144
145 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
146 tuning.
147 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
148 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
149 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
150 field.
151 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
152 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
153 (arm_fa726te_tune): Add prefer_constant_pool setting.
154 (arm_v6t2_tune, arm_cortex_tune): New.
155 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
156 prefer_constant_pool setting.
157
158 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
159
160 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
161 switch statement.
162 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
163 (*movdf_internal) <case 6,7,8>: Ditto.
164
165 * config/i386/constraints.md (Y4): New register constraint.
166 * config/i386/sse.md (vec_set<mode>_0): Merge with
167 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
168 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
169 *vec_extractv2di_1_sse.
170 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
171 and *vec_concatv2di_rex64_sse.
172
173 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
174
175 PR target/48807
176 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
177 of cgraph_local_info for null before attempting to use it.
178
179 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
180
181 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
182 (current_function_dynamic_alloc_count): Delete.
183 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
184 (expand_builtin_nonlocal_goto): Remove obsolete comment.
185 (expand_builtin_update_setjmp_buf): Remove dead code.
186 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
187 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
188 support.
189 * function.c (instantiate_virtual_regs): Likewise.
190 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
191 for a block with a single abnormal incoming edge.
192 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
193 (SETJMP_VIA_SAVE_AREA): Delete.
194 * config/sparc/sparc-protos.h (load_got_register): Declare.
195 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
196 (load_got_register): Make global.
197 (sparc_frame_pointer_required): Add 'static'.
198 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
199 (sparc_builtin_setjmp_frame_value): New function.
200 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
201 (save_stack_nonlocal): New expander.
202 (restore_stack_nonlocal): Likewise.
203 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
204 (nonlocal_goto_internal): New insn.
205 (goto_handler_and_restore): Delete.
206 (builtin_setjmp_setup): Likewise.
207 (do_builtin_setjmp_setup): Likewise.
208 (setjmp): Likewise.
209 (builtin_setjmp_receiver): New expander.
210
211 2011-06-01 David Li <davidxl@google.com>
212
213 PR middle-end/49261
214 * tree-pretty-print.c (dump_function_header): Format cleanup.
215
216 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
217
218 PR target/49238
219 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
220 needed when original operands are used for msw_skip comparison.
221
222 2011-06-01 Jakub Jelinek <jakub@redhat.com>
223
224 PR debug/49250
225 * var-tracking.c (add_uses, add_stores): Don't call
226 cselib_subst_to_values on ENTRY_VALUE.
227
228 2011-06-01 Diego Novillo <dnovillo@google.com>
229
230 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
231 output_record_start with LTO_null instead of output_zero.
232 (lto_output_ts_binfo_tree_pointers): Likewise.
233 (lto_output_tree): Likewise.
234 (output_eh_try_list): Likewise.
235 (output_eh_region): Likewise.
236 (output_eh_lp): Likewise.
237 (output_eh_regions): Likewise.
238 (output_bb): Likewise.
239 (output_function): Likewise.
240 (output_unreferenced_globals): Likewise.
241 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
242 instead of NUM_TREE_CODES.
243 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
244 (lto_output_int_in_range): Change << to >> when shifting VAL.
245
246 2011-06-01 Diego Novillo <dnovillo@google.com>
247
248 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
249 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
250
251 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
252
253 PR target/45074
254 * optabs.h (valid_multiword_target_p): Declare.
255 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
256 doing multi-word operations.
257 * optabs.c (expand_binop): Likewise.
258 (expand_doubleword_bswap): Likewise.
259 (expand_absneg_bit): Likewise.
260 (expand_unop): Likewise.
261 (expand_copysign_bit): Likewise.
262 (multiword_target_p): New function.
263
264 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
265
266 PR rtl-optimization/48830
267 PR rtl-optimization/48808
268 PR rtl-optimization/48792
269 * reload.c (push_reload): Check contains_reg_of_mode.
270 * reload1.c (strip_paradoxical_subreg): New function.
271 (gen_reload_chain_without_interm_reg_p): Use it to handle
272 paradoxical subregs.
273 (emit_output_reload_insns, gen_reload): Likewise.
274
275 2011-06-01 David Li <davidxl@google.com>
276
277 * predict.c : Change pass name
278 * ipa.c: Ditto.
279 * dce.c: Ditto.
280 * tree-profile.c: Ditto.
281 * except.c: Ditto.
282
283 2011-06-01 David Li <davidxl@google.com>
284
285 * tree-pretty-print.c (dump_function_header): New function.
286 * final.c (rest_of_clean_state): Use header dumper.
287 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
288 * passes.c (pass_init_dump_file): Use header dumper.
289
290 2011-06-01 Jakub Jelinek <jakub@redhat.com>
291
292 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
293 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
294 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
295 New functions.
296 (mem_loc_descriptor): Use them.
297
298 * var-tracking.c (create_entry_value): New function.
299 (vt_add_function_parameter): Use it.
300
301 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
302
303 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
304 Include <signal.h>, <ucontext.h>.
305 (sigill_caught): Define.
306 (sigill_hdlr): New function.
307 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
308 insns can be executed.
309 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
310 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
311
312 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
313
314 * config/t-slibgcc-darwin: Move to ...
315 * config/t-slibgcc-dummy: ... this. Clarify comments.
316 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
317 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
318 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
319 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
320 Remove i386/t-crtstuff from tmake_file.
321 (i[34567]86-*-solaris2*): Remove t-svr4,
322 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
323 t-slibgcc-dummy.
324 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
325 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
326 sparc/t-crtfm from tmake_file.
327 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
328 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
329 Remove extra_parts.
330 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
331 * config/i386/t-nwld (SHLIB_LINK): Remove.
332 * config/i386/t-rtems-i386: Rename to ...
333 * config/i386/t-rtems: ... this.
334 ($(T)crti.o, $(T)crtn.o): Remove.
335 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
336 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
337 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
338 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
339 EXTRA_MULTILIB_PARTS): Remove.
340 * config/sparc/t-sol2-64: Likewise.
341 * config/sparc/t-sol2: Remove.
342 * config/sparc/t-crtin: Remove.
343 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
344 * config/i386/gmon-sol2.c: Remove.
345 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
346 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
347 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
348 * config/i386/sol2-gc1.asm: Remove.
349 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
350 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
351 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
352 * config/t-slibgcc-sld: Remove.
353
354 2011-06-01 Jakub Jelinek <jakub@redhat.com>
355
356 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
357 base_type_for_mode with op_mode instead of mode.
358
359 2011-06-01 Paul Brook <paul@cpodesourcery.com>
360
361 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
362 Cortex-A15.
363 * config/arm/arm-tune.md: Regenerate.
364 * config/arm/arm-tables.opt: Regenerate.
365 * config/arm/arm.c (FL_DIV): Rename...
366 (FL_THUMB_DIV): ... to this.
367 (FL_ARM_DIV): Define.
368 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
369 (arm_arch_hwdiv): Remove.
370 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
371 (arm_issue_rate): Add cortexr5.
372 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
373 __ARM_ARCH_EXT_IDIV__.
374 (TARGET_IDIV): Define.
375 (arm_arch_hwdiv): Remove.
376 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
377 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
378 (divsi3, udivsi3): New patterns.
379 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
380 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
381
382 2011-06-01 Martin Jambor <mjambor@suse.cz>
383
384 * ipa-utils.c (ipa_dfs_info): New field scc_no.
385 * ipa-utils.c (searchc): Set scc_no.
386
387 2011-06-01 Martin Jambor <mjambor@suse.cz>
388
389 * ipa-utils.c (searchc_env): New field allow_overwritable.
390 (searchc): do not ignore edges to overwritable nodes if indicated
391 by env->allow_overwritable.
392 (ipa_reduced_postorder): Set env.allow_overwritable.
393
394 2011-06-01 Richard Guenther <rguenther@suse.de>
395
396 * tree.c (free_lang_data): Do not reset boolean_type_node nor
397 char_type_node.
398 * lto-streamer.c (lto_record_common_node): Take node pointer,
399 do not register types.
400 (lto_preload_common_nodes): Explicitly skip preloading nodes
401 that differ between frontends.
402
403 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
404
405 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
406 NON_FLOAT_REGS.
407
408 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
409
410 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
411 parameter value for dump. Dump cost on outermost call only.
412 (rs6000_memory_move_cost): Dump cost on outermost call only.
413
414 2011-05-31 Jakub Jelinek <jakub@redhat.com>
415
416 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
417 DW_OP_GNU_convert ops.
418
419 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
420 cselib_preserve_constants.
421 (cselib_lookup_1): If cselib_preserve_constants,
422 a new VALUE is being created for REG and there is a VALUE for the
423 same register in wider mode, add another loc with lowpart SUBREG of
424 the wider VALUE.
425 (cselib_subst_to_values): Handle ENTRY_VALUE.
426 * var-tracking.c (replace_expr_with_values): Return NULL for
427 ENTRY_VALUE too.
428 * dwarf2out.c (convert_descriptor_to_signed): New function.
429 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
430 instead of two shifts.
431 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
432 the right mode if needed.
433 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
434 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
435 convert_descriptor_to_signed.
436 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
437 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
438
439 PR target/48688
440 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
441
442 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
443
444 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
445 of X87MODEI12 and SWI48x instead of SSEMODEI24.
446 (SWI248x): New mode iterator, rename from X87MODEI.
447 (X87MODEI): Remove mode iterator.
448 (X87MODEI12): Ditto.
449 (SSEMODEI24): Ditto.
450
451 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
452
453 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
454 * doc/invoke.texi: Document max-vartrack-expr-depth.
455 * var-tracking.c (EXPR_DEPTH): New.
456 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
457
458 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
459
460 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
461 * config/i386/sse.md: Add n to negated FMA pattern names.
462
463 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
464
465 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
466
467 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
468
469 * gengtype-state.c (read_state_params_structs): Initialize previous.
470
471 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
472
473 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
474 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
475
476 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
477
478 * config/i386/i386.md (*movtf_internal): Avoid allocating general
479 registers. Penalize F*r->o alternative to prevent partial memory
480 stalls. Slightly penalize *roF->*r alternative. Generate SSE
481 CONST_DOUBLE immediates when optimizing function for size. Do not move
482 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
483 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
484 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
485 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
486 alternatives.
487 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
488
489 (fp_register_operand splitters): Use fp_register_operand
490 constraint. Do not use FP_REG_P in insn condition.
491 (any_fp_register_operand splitters): Use any_fp_register_operand
492 constraint. Do not use ANY_FP_REG_P in insn condition.
493
494 2011-05-31 Jan Hubicka <jh@suse.cz>
495
496 * cgraph.h (cgraph_inline_failed_t): Give enum a name
497 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
498 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
499 (lto_output_edge): Use output_enum and var_len_unsigned.
500 (lto_output_varpool_node): Likewise.
501 (input_overwrite_node): Do not take resolution parameter;
502 extract it from a bitpack.
503 (input_node): Do not read resolution; use input_enum and
504 var_len_unsigned.
505 (input_varpool_node): Likewise.
506 (input_edge): Likewise.
507 (input_cgraph_1): Likewise.
508
509 2011-05-31 Richard Guenther <rguenther@suse.de>
510
511 * gimple.c (gimple_register_canonical_type): Do not register
512 any types via gimple_register_type.
513
514 2011-05-31 Jan Hubicka <jh@suse.cz>
515
516 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
517 of thunks.
518
519 2011-05-31 Jakub Jelinek <jakub@redhat.com>
520
521 PR rtl-optimization/49235
522 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
523 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
524
525 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
526
527 PR tree-optimization/49093
528 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
529 data references.
530
531 2011-05-31 Dodji Seketeli <dodji@redhat.com>
532
533 PR debug/49047
534 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
535 for concrete functions containing the code of cloned functions.
536
537 2011-05-31 Richard Guenther <rguenther@suse.de>
538
539 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
540 to ...
541 (forward_propagate_into_comparison_1): ... this.
542 (forward_propagate_comparison): Rename to ...
543 (forward_propagate_into_comparison): ... this. Split out
544 real forward propagation code to ...
545 (forward_propagate_comparison): ... this.
546 (forward_propagate_into_gimple_cond): Remove looping.
547 (forward_propagate_into_cond): Likewise.
548 (simplify_not_neg_expr): Return whether we have done something.
549 (simplify_gimple_switch): Likewise.
550 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
551 (ssa_forward_propagate_and_combine): ... this. Re-structure
552 to do a forward forward-propagation walk on BBs and a backward
553 stmt combining walk on BBs. Consistently re-scan changed statements.
554 (pass_forwprop): Adjust.
555
556 2011-05-30 Ian Lance Taylor <iant@google.com>
557
558 * godump.c (go_format_type): Correct length of name added to
559 obstack for anonymous field.
560
561 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
562
563 PR target/49186
564 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
565 part of the second operand is 0.
566
567 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
568
569 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
570 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
571 to memory for !TARGET_MEMORY_MISMATCH_STALL.
572 (*movdf_internal_rex64): Do not penalize F->r alternative.
573 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
574 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
575 when optimizing function for size. Do not move CONST_DOUBLEs
576 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
577 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
578 SUBREGs. Do not check for MEM_P operands in the insn condition,
579 check for ANY_FP_REGNO_P instead.
580 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
581 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
582 function for speed.
583 * config/i386/i386.c (ix86_option_override_internal): Do not
584 set TARGET_INTEGER_DFMODE_MOVES here.
585
586 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
587
588 PR target/49168
589 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
590
591 2011-05-30 Jakub Jelinek <jakub@redhat.com>
592
593 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
594 DW_TAG_rvalue_reference_type even for
595 -gdwarf-4 -fno-debug-types-section.
596
597 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
598
599 PR tree-optimization/46728
600 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
601 (build_and_insert_binop): New.
602 (gimple_expand_builtin_pow): Reorder args for
603 build_and_insert_call; use build_and_insert_binop; add more
604 optimizations for fractional exponents.
605
606 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
607
608 PR bootstrap/49190
609
610 Revert:
611 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
612
613 * tree.h (struct tree_identifier): Inherit from tree_typed, not
614 tree_common.
615 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
616 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
617 TS_BASE instead of TS_COMMON.
618 * varasm.c (assemble_name): Remove assert.
619
620 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
621
622 * config.gcc: Keep obselete list sorted.
623
624 2011-05-30 Jakub Jelinek <jakub@redhat.com>
625 Eric Botcazou <ebotcazou@adacore.com>
626
627 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
628 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
629 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
630 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
631 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
632
633 2011-05-30 Richard Guenther <rguenther@suse.de>
634
635 * gimple.c (gimple_types_compatible_p_1): Compare record
636 and union type members properly.
637
638 2011-05-30 Richard Guenther <rguenther@suse.de>
639
640 PR tree-optimization/49210
641 * ipa-split.c (split_function): Care for the case where the call
642 result is not trivially convertible to the result holding variable.
643
644 2011-05-30 Richard Guenther <rguenther@suse.de>
645
646 PR tree-optimization/49218
647 * tree-vrp.c (adjust_range_with_scev): Properly check whether
648 overflow occured.
649
650 2011-05-30 Richard Guenther <rguenther@suse.de>
651
652 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
653 New function split out from ...
654 (forward_propagate_into_gimple_cond): ... here. Adjust.
655 (forward_propagate_into_cond): Likewise.
656 (forward_propagate_comparison): Also propagate into
657 comparisons on assignment RHS. Change return value to
658 behave similar to forward_propagate_into_cond.
659 (tree_ssa_forward_propagate_single_use_vars): Handle
660 strict-overflow warnings properly for forward_propagate_comparison.
661
662 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
663
664 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
665 from plugin linker.
666 * configure: Regenerate.
667
668 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
669
670 PR tree-optimization/49199
671 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
672 non-reduction operands are either defined in the loop or by induction.
673
674 2011-05-29 Xinliang David Li <davidxl@google.com>
675
676 * opts-global.c (handle_common_deferred_options): Handle new options.
677 * passes.c (register_one_dump_file): Call register_pass_name.
678 (execute_one_pass): Check explicit enable/disable flag.
679 (passr_hash): New function.
680 (passr_eq): Ditto.
681 (register_pass_name): Ditto.
682 (get_pass_by_name): Ditto.
683 (pass_hash): Ditto.
684 (pass_eq): Ditto.
685 (enable_pass): Ditto.
686 (disable_pass): Ditto.
687 (is_pass_explicitly_enabled_or_disabled): Ditto.
688
689 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
690
691 * config/i386/i386.md (*movoi_internal_avx): Use
692 standard_sse_constant_opcode for alternative 0.
693 (*movti_internal_sse): Ditto.
694 (*movti_internal_rex64): Use standard_sse_constant_opcode for
695 alternative 2.
696 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
697 sselog1 type moves.
698 (*movsi_internal): Ditto.
699 (*movdi_internal): Ditto. Add ssecvt type moves.
700
701 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
702
703 PR target/48830
704 * rtlanal.c (simplify_subreg_regno): Adjust comment.
705
706 2011-05-29 Jakub Jelinek <jakub@redhat.com>
707
708 PR rtl-optimization/49095
709 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
710 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
711
712 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
713
714 PR target/43995
715 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
716 recurse_p argument. Only follow register copies if it is set,
717 and prevent mips_find_pic_call_symbol from recursing.
718 (mips_find_pic_call_symbol): Add a recurse_p argument.
719 Pass it to mips_pic_call_symbol_from_set.
720 (mips_annotate_pic_calls): Update accordingly.
721
722 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
723
724 * emit-rtl.c (try_split): Use a loop to search for
725 NOTE_INSN_CALL_ARG_LOCATIONs.
726
727 2011-05-29 Richard Guenther <rguenther@suse.de>
728
729 PR tree-optimization/49217
730 * ipa-pure-const.c (propagate_pure_const): Fix typos.
731
732 2011-05-28 Jan Hubicka <jh@suse.cz>
733
734 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
735 length.
736 (string_slot_free): Remove
737 (create_output_block): Initialize obstack.
738 (destroy_output_block): Free obstack.
739 (lto_string_index): Add PERSISTENT parameter; do not duplicate
740 the string unless it needs to be added into the hash.
741 (lto_output_string_with_length): Add persistent attribute;
742 handle NULL strings.
743 (lto_output_string): Add PERSISTENT parameter.
744 (output_string_cst, output_identifier): Simplify.
745 (lto_output_location_bitpack): Update.
746 (lto_output_builtin_tree): Update.
747 * lto-streamer.h (struct output_block): Add obstack.
748 (lto_output_string, lto_output_string_with_length): Remove
749 declarations; functions are static now.
750
751 2011-05-28 Jan Hubicka <jh@suse.cz>
752
753 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
754 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
755 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
756 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
757 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
758 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
759 unpack_ts_decl_with_vis_value_fields,
760 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
761 lto_get_builtin_tree): Use enum and variable length i/o.
762 * basic-block.h (profile_status_d): Add PROFILE_LAST.
763 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
764 New functions.
765 (bp_pack_enum, bp_unpack_enum): New macros.
766
767 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
768
769 * genrecog.c: Remove redundant forward declarations.
770
771 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
772
773 * config.gcc: Deprecate mips*-*-openbsd*.
774
775 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
776
777 PR bootstrap/49195
778 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
779 for match_op_dup.
780
781 2011-05-27 Andrew Pinski <pinskia@gmail.com>
782
783 PR middle-end/48981
784 * gengtype.c (vec_prefix_type): New function.
785 (note_def_vec): Use vec_prefix_type and change the length
786 attribute to be based on the prefix.
787 * vec.c: Include coretypes.h before vec.h.
788 (struct vec_prefix): Remove.
789 (vec_gc_p_reserve): Change the offsetof to sizeof.
790 (vec_gc_p_reserve_exact): Likewise.
791 (vec_heap_p_reserve): Likewise.
792 (vec_heap_p_reserve_exact): Likewise.
793 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
794 (vec_stack_p_reserve): Change the offsetof to sizeof.
795 (vec_stack_p_reserve_exact): Likewise.
796 * vec.h (struct vec_prefix): New struct definition.
797 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
798 (VEC_T_GTY(T,B)): Likewise.
799 (DEF_VEC_FUNC_P(T)): Use prefix field.
800 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
801 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
802
803 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
804
805 PR tree-optimization/46728
806 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
807 (powi_as_mults): Add gimple_set_location.
808 (build_and_insert_call): New.
809 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
810 0.5, 0.25, 0.75, 1./3., or 1./6.
811
812 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
813
814 * doc/contrib.texi: Update copyright years.
815 (Contributors): Add Zdenek Sojka.
816
817 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
818
819 * c-decl.c (c_push_function_context): Copy the current statement
820 list stack.
821 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
822 (finish_struct): Call building_stmt_list_p instead of checking
823 cur_stmt_list.
824 * c-parser.c (c_parser_postfix_expression): Likewise.
825 * c-typeck.c (c_end_compound_stmt): Likewise.
826 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
827 * tree-iterator.c (stmt_list_cache): Change to a VEC.
828 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
829 (free_stmt_list): Likewise.
830 * tree.h (struct tree_statement_list): Include typed_tree instead
831 of tree_common.
832 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
833 as TS_TYPED instead of TS_COMMON.
834
835 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
836 Uros Bizjak <ubizjak@gmail.com>
837
838 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
839 (HAVE_AS_IX86_TLSGDPTL): Define.
840 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
841 (HAVE_AS_IX86_TLSLDMPLT): Define.
842 * configure: Regenerate.
843 * config.in: Regenerate.
844 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
845 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
846 TARGET_SUN_TLS, use @tlsgdplt or @plt.
847 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
848 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
849 @tlsldmplt or @plt.
850 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
851
852 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
853
854 * sched-int.h (struct _haifa_deps_insn_data): New members cond
855 and reverse_cond.
856 (INSN_COND, INSN_REVERSE_COND): New macros.
857 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
858 once.
859 (sched_get_condition_with_rev): Cache the results, and look them up
860 if possible.
861 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
862 are clobbered by the current insn.
863 * target.def (exposed_pipline): New sched data hook.
864 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
865 * doc/tm.texi: Regenerate.
866
867 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
868
869 PR tree-optimization/49170
870 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
871 sincos or cexp.
872
873 2011-05-27 Richard Guenther <rguenther@suse.de>
874
875 PR middle-end/49189
876 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
877 of comparisons.
878
879 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
880
881 * haifa-sched.c (sched_scan_info): Remove.
882 (schedule_block): Call sched_extend_luids rather than sched_init_luids
883 with NULL args.
884 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
885 Remove functions.
886 (sched_scan): Remove.
887 (sched_extend_luids): Renamed from luids_extend_insn and no longer
888 static. All callers changed.
889 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
890 static. All callers changed.
891 (sched_init_luids): Remove all arguments except the first. All
892 callers changed. Don't use sched_scan.
893 (haifa_init_h_i_d): Likewise.
894 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
895 manually rather than using sched_init_luids. Likewise with
896 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
897 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
898 rather than sched_init_luids with NULL args.
899 * sel-sched-ir.c (new_insns): Remove variable.
900 (sched_scan): New static function, previously in haifa-sched.c. Remove
901 all arguments but the first two; all callers changed.
902 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
903 rather than sched_init_luids.
904 (sel_init_bbs): Remove second argument. All callers changed.
905 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
906 with NULL arguments.
907 (create_insn_rtx_from_pattern): Likewise.
908 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
909 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
910 (sched_init_insn_luid, sched_extend_luids): Declare.
911 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
912 declarations.
913
914 2011-05-27 Richard Guenther <rguenther@suse.de>
915
916 PR middle-end/49177
917 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
918 A CMP B ? (T) true : (T) false for non-integral types T again.
919
920 2011-05-27 Jan Hubicka <jh@suse.cz>
921
922 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
923 so 0 means NULL string.
924 (lto_output_string_with_length): ... here.
925 (lto_output_string, output_string_cst, output_identifier): Update
926 handling of NULL strings.
927 (lto_output_location_bitpack): New function.
928 (lto_output_location): Use it.
929 (lto_output_tree_ref): Use output_record_start.
930 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
931 len values.
932 * lto-streamer-in.c (string_for_index): Break out from ...; offset
933 values by 1.
934 (input_string_internal): ... here;
935 (input_string_cst, input_identifier, lto_input_string): Update handling
936 of NULL strings.
937 (lto_input_location_bitpack): New function
938 (lto_input_location): Use it.
939 (unpack_ts_type_common_value_fields): Pack align & alias in var len
940 values.
941 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
942 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
943 (bp_pack_value): Sanity check the value range.
944 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
945 New functions.
946 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
947 New functions.
948
949 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
950
951 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
952 call_arg_location instructions down the floor.
953
954 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
955
956 PR rtl-optimization/49154
957 * ira.c (setup_pressure_classes): Process class without sublcasses
958 as a candidate for pressure classes.
959
960 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
961
962 PR rtl-optimization/48575
963 * genrecog.c (position_type): New enum.
964 (position): New structure.
965 (decision): Use position structure instead of a string.
966 (root_pos, peep2_insn_pos_list): New variables.
967 (next_position, compare_positions): New functions.
968 (new_decision): Use position structures instead of strings.
969 (maybe_both_true): Likewise.
970 (change_state): Likewise.
971 (write_tree): Likewise.
972 (make_insn_sequence): Likewise.
973
974 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
975
976 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
977 TS_BASE instead of TS_COMMON.
978 (find_decls_types_r): Check for TS_TYPED structure before looking at
979 TREE_TYPE.
980 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
981 Add chain field.
982 (BLOCK_CHAIN): Use new chain field.
983
984 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
985
986 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
987 moves expensive on Power7 also.
988
989 2011-05-26 Richard Guenther <rguenther@suse.de>
990
991 * fold-const.c (fold_unary_loc): Remove bogus code.
992
993 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
994
995 * tree.h (struct tree_identifier): Inherit from tree_typed, not
996 tree_common.
997 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
998 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
999 TS_BASE instead of TS_COMMON.
1000 * varasm.c (assemble_name): Remove assert.
1001
1002 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1003
1004 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1005 substituted first.
1006 * libgcc-std.ver: Delete file.
1007
1008 2011-05-26 Richard Guenther <rguenther@suse.de>
1009
1010 PR tree-optimization/48702
1011 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1012 only when we know the base address is within bounds.
1013 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1014 assume the base address of TARGET_MEM_REFs is in bounds.
1015
1016 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1017
1018 PR target/49099
1019 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1020 declaration in TARGET_SOLARIS.
1021
1022 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1023
1024 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1025 The instruction is then expanded explicitly.
1026 (supported_compare): Callable instruction.
1027 (compare): Likewise.
1028
1029 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1030
1031 PR c++/49165
1032 * gimplify.c (shortcut_cond_r): Don't special case
1033 COND_EXPRs if they have void type on one of their arms.
1034
1035 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1036
1037 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1038 to reduce duplication, and to achieve a slightly more logical order
1039 of operations.
1040
1041 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1042
1043 PR tree-optimization/49161
1044 * tree-vrp.c (struct case_info): New type.
1045 (compare_case_labels): Sort case_info structs instead of
1046 trees, and not primarily by CASE_LABEL uids but by
1047 label_for_block indexes.
1048 (find_switch_asserts): Put case labels into struct case_info
1049 array instead of TREE_VEC, adjust sorting, compare label_for_block
1050 values instead of CASE_LABELs.
1051
1052 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1053
1054 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1055 ("orndi3_neon"): Likewise.
1056 ("bic<mode>3_neon"): Likewise.
1057
1058 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1059
1060 PR tree-optimization/49038
1061 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1062 Ensure at least one epilogue iteration if required by data
1063 accesses with gaps.
1064 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1065 to mark loops that require peeling for gaps.
1066 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1067 (vect_get_known_peeling_cost): Take peeling for gaps into
1068 account.
1069 (vect_transform_loop): Generate epilogue if required by data
1070 access with gaps.
1071 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1072 loop as requiring an epilogue if there are gaps in the end of
1073 the strided group.
1074
1075 2011-05-25 Ian Lance Taylor <iant@google.com>
1076
1077 * godump.c (go_format_type): Output the first field with a usable
1078 Go type, if any.
1079
1080 2011-05-25 Ian Lance Taylor <iant@google.com>
1081
1082 * godump.c (go_format_type): Check for invalid type names, pointer
1083 target types, and struct field types.
1084
1085 2011-05-25 Jason Merrill <jason@redhat.com>
1086
1087 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1088
1089 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1090
1091 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1092
1093 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * config/i386/i386.md (*movqi_extv_1)): Put back
1096 "register_operand" check in "type" calculation.
1097 (*movqi_extzv_2): Likewise.
1098
1099 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1100
1101 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1102
1103 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1104
1105 PR bootstrap/49160
1106 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1107 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1108 __divxc3, __divtc3): Wrap definitions in #ifndef.
1109
1110 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1111
1112 PR target/49142
1113 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1114 "register_operand" check and replace q_regs_operand with
1115 QIreg_operand in "type" calculation.
1116 (*movqi_extv_1): Likewise.
1117 (*movqi_extzv_2_rex64): Likewise.
1118 (*movqi_extzv_2): Likewise.
1119
1120 * config/i386/predicates.md (QIreg_operand): New.
1121
1122 2011-05-25 Richard Guenther <rguenther@suse.de>
1123
1124 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1125 type-based offset disambiguation, streamline MEM_REF and
1126 TARGET_MEM_REF handling.
1127
1128 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1129
1130 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1131 (bdesc_special_args): Add pause intrinsic.
1132
1133 * config/i386/i386.md (UNSPEC_PAUSE): New.
1134 (pause): Likewise.
1135 (*pause): Likewise.
1136 * config/i386/ia32intrin.h (__pause): Likewise.
1137
1138 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1139 pause intrinsic.
1140
1141 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1142
1143 PR tree-optimization/46728
1144 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1145 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1146
1147 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1148
1149 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1150 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1151 instead of TS_COMMON.
1152
1153 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1154
1155 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1156 LIBGCC2_GNU_PREFIX is defined.
1157 (__N): New macro.
1158 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1159 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1160 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1161 __clz_tab): Define using __N.
1162 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1163 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1164 * target.def (libfunc_gnu_prefix): New hook.
1165 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1166 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1167 * doc/tm.texi: Regenerate.
1168 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1169 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1170 account.
1171 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1172 (init_optabs): Likewise for the bswap libfuncs.
1173 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1174 and divide.
1175 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1176 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1177 * libgcc-std.ver: Remove.
1178 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1179 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1180 libgcc-std.ver.
1181 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1182 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1183 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1184 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1185 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1186 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1187 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1188 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1189 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1190 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1191
1192 2011-05-25 Jan Hubicka <jh@suse.cz>
1193
1194 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1195 (lto_output_tree): Use output_record_start.
1196 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1197 (lto_get_pickled_tree): Use input_record_start.
1198 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1199 (lto_value_range_error): New function.
1200 * lto-streamer.h (lto_value_range_error): Declare.
1201 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1202 (lto_output_enum, lto_input_enum): New macros.
1203
1204 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1205
1206 * common.opt (flag_stack_usage_info): New variable.
1207 (-Wstack-usage): New option.
1208 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1209 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1210 <OPT_fstack_usage>: Likewise.
1211 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1212 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1213 of flag_stack_usage.
1214 (emit_library_call_value_1): Likewise.
1215 * explow.c (allocate_dynamic_stack_space): Likewise.
1216 * function.c (instantiate_virtual_regs ): Likewise.
1217 (prepare_function_start): Likewise.
1218 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1219 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1220 * config/arm/arm.c (arm_expand_prologue): Likewise.
1221 (thumb1_expand_prologue): Likewise.
1222 * config/avr/avr.c (expand_prologue): Likewise.
1223 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1224 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1225 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1226 * config/mips/mips.c (mips_expand_prologue): Likewise.
1227 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1228 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1229 * config/s390/s390.c (s390_emit_prologue): Likewise.
1230 * config/sh/sh.c (sh_expand_prologue): Likewise.
1231 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1232 * config/spu/spu.c (spu_expand_prologue): Likewise.
1233
1234 2011-05-25 Richard Guenther <rguenther@suse.de>
1235
1236 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1237 (gimple_canonical_types_compatible_p): Likewise.
1238
1239 2011-05-25 Jan Hubicka <jh@suse.cz>
1240
1241 PR middle-end/49062
1242 * ipa.c (function_and_variable_visibility): Only add to same
1243 comdat group list if DECL_ONE_ONLY.
1244
1245 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1246
1247 PR rtl-optimization/49014
1248 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1249
1250 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR target/49128
1253 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1254
1255 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1256
1257 PR rtl-optimization/48757
1258 * ira-build.c (loop_with_eh_edge_p): Rename to
1259 loop_with_complex_edge_p, check edges on complexity, make function
1260 conditional.
1261 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1262 conditional.
1263
1264 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1265
1266 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1267 force flag_ira_share_save_slots to 0.
1268
1269 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1270
1271 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1272 (vt_initialize): Set PROLOGUE_BB unconditionally.
1273 Add block comment about CFA_BASE_RTX machinery.
1274 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1275 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1276
1277 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1278
1279 PR objc/48187
1280 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1281 parsing of syntax error in ObjC instance variable lists. In
1282 particular, avoid an infinite loop if there is a stray ']'.
1283 Updated error message.
1284
1285 2011-05-24 Ian Lance Taylor <iant@google.com>
1286
1287 * godump.c (go_define): Don't accept a string immediately after
1288 another operand.
1289
1290 2011-05-24 Ian Lance Taylor <iant@google.com>
1291
1292 * godump.c (struct godump_container): Add invalid_hash field.
1293 (go_format_type): Return false if type is found in invalid_hash.
1294 (go_output_typedef): Add invalid type to invalid_hash.
1295 (go_finish): Create and delete invalid_hash.
1296
1297 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1298
1299 PR tree-optimization/46728
1300 * tree-ssa-math-opts.c (powi_table): New.
1301 (powi_lookup_cost): New.
1302 (powi_cost): New.
1303 (powi_as_mults_1): New.
1304 (powi_as_mults): New.
1305 (gimple_expand_builtin_powi): New.
1306 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1307 (gate_cse_sincos): Remove sincos/cexp restriction.
1308
1309 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1310
1311 PR target/3746
1312 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1313 mips-tdump native.
1314 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1315 * mips-tdump.c: Likewise.
1316
1317 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1318
1319 PR target/49128
1320 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1321 add -mno-XXX. Handle FMA.
1322
1323 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1324
1325 PR rtl-optimization/48633
1326 * ira-build.c (loop_with_eh_edge_p): New function.
1327 (mark_loops_for_removal): Use it.
1328
1329 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1330
1331 PR rtl-optimization/48971
1332 * ira.c (setup_pressure_classes): Don't check register move cost
1333 for classes with one registers. Don't add pressure class if there
1334 is a pressure class with the same available hard registers.
1335 Check contains_reg_of_mode. Fix a typo in collecting
1336 temp_hard_regset. Ignore hard registers not belonging to a class.
1337
1338 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1339
1340 PR target/49133
1341 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1342
1343 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1344 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345
1346 PR gcov-profile/48845
1347 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1348
1349 2011-05-24 Richard Guenther <rguenther@suse.de>
1350
1351 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1352 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1353 (gimple_types_compatible_p_1): Adjust.
1354 (iterative_hash_canonical_type): Do not bother about complete vs.
1355 incomplete types.
1356 (gimple_canonical_types_compatible_p): Likewise.
1357
1358 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1359
1360 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1361
1362 2011-05-24 Richard Guenther <rguenther@suse.de>
1363
1364 PR bootstrap/49078
1365 * gimple.c (gimple_register_canonical_type): Revert
1366 previous change.
1367 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1368 does not for a tree for the case where it matters. Cache
1369 pointer-type alias-sets.
1370
1371 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1372
1373 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1374 (OBJS): Remove options.o, opts-common.o and prefix.o.
1375 (OBJS-libcommon-target): New.
1376 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1377 (BACKEND): Include libcommon-target.a.
1378 (MOSTLYCLEANFILES): Include libcommon-target.a.
1379 (libcommon-target.a): New.
1380 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1381 prefix.o.
1382
1383 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1384
1385 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1386 parts of output shared with the driver.
1387 * optc-gen.awk: Don't generate parts of output not shared with the
1388 driver.
1389 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1390 * doc/options.texi (SourcerInclude): Mention options-save.c.
1391 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1392 (OBJS): Add options-save.o.
1393 (options-save.c, options-save.o): New.
1394 (options.o): Update dependencies.
1395 (gcc-options.o): Remove.
1396 (mostlyclean): Remove options-save.c.
1397
1398 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR debug/49032
1401 * dbxout.c: Include cgraph.h.
1402 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1403 and without value expr, return NULL if no varpool node exists for
1404 it or if it is not needed.
1405 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1406
1407 PR c/49120
1408 * c-decl.c (start_decl): Convert expr to void_type_node.
1409
1410 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1411
1412 PR rtl-optimization/48826
1413 * emit-rtl.c (try_split): When splitting a call that is followed
1414 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1415
1416 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1417
1418 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1419 parameters passed in memory prefer using DECL_INCOMING_RTL over
1420 the pseudos it will be copied into.
1421
1422 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1423
1424 PR target/47315
1425 * config/i386/i386.c (ix86_option_override_internal): Save the
1426 initial options after checking vzeroupper.
1427
1428 2011-05-23 David Li <davidxl@google.com>
1429
1430 PR tree-optimization/48988
1431 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1432 Initialize has_valid_pred for each pred chain.
1433
1434 2011-05-23 Richard Guenther <rguenther@suse.de>
1435
1436 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1437 (iterative_hash_gimple_type): Always hash type names.
1438
1439 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1440
1441 * c-typeck.c (build_function_call_vec): Tweak call to
1442 check_function_arguments.
1443
1444 2011-05-23 Richard Guenther <rguenther@suse.de>
1445
1446 PR tree-optimization/49115
1447 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1448 is not necessarily carried out, do not claim it kills the ref.
1449 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1450
1451 2011-05-23 Richard Guenther <rguenther@suse.de>
1452
1453 PR middle-end/15419
1454 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1455 what pointer types we accept for folding.
1456
1457 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1458
1459 * gthr-gnat.c: Remove.
1460 * gthr-gnat.h: Remove.
1461 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1462 * config/t-freebsd (LIB2ADDEH): Likewise.
1463 * config/t-linux (LIB2ADDEH): Likewise.
1464 * config/t-sol2 (LIB2ADDEH): Likewise.
1465 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1466 * configure.ac (target_thread_file): Remove gnat handling.
1467 * configure: Regenerate.
1468 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1469
1470 2011-05-23 Tristan Gingold <gingold@adacore.com>
1471 Eric Botcazou <ebotcazou@adacore.com>
1472
1473 * gcov.c (create_file_names): If no object directory is specified,
1474 keep the directory of the file.
1475
1476 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1477
1478 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1479 * configure: Regenerate.
1480
1481 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1482
1483 PR middle-end/48973
1484 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1485 failed and the comparison has a single bit signed type, use
1486 constm1_rtx instead of const1_rtx for true value.
1487 (do_store_flag): If ops->type is single bit signed type, disable
1488 signel bit test optimization and pass -1 instead of 1 as last
1489 parameter to emit_store_flag_force.
1490
1491 2011-05-23 Tom de Vries <tom@codesourcery.com>
1492
1493 PR target/45098
1494 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1495 function.
1496 (infer_loop_bounds_from_undefined): Use new function.
1497
1498 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1499
1500 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1501 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1502 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1503 and -O0 otherwise.
1504 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1505
1506 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1507
1508 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1509 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1510 returns true.
1511
1512 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1513
1514 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1515
1516 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1517
1518 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1519 UNSPEC_MOVE_PIC pattern.
1520
1521 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1522
1523 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1524 (sparc-*-rtems*): Likewise.
1525 (sparc64-*-elf*): Likewise.
1526 (sparc64-*-rtems*): Likewise.
1527 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1528 * config/sparc/t-crtin: New file.
1529 * config/sparc/t-sol2 (crti.o): Delete rule.
1530 (crtn.o): Likewise.
1531 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1532 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1533 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1534 (ENDFILE_SPEC): Add crtn.o.
1535
1536 2011-05-22 Tom de Vries <tom@codesourcery.com>
1537
1538 PR middle-end/48689
1539 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1540 CODE_CONTAINS_STRUCT (TS_COMMON).
1541
1542 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1543
1544 PR middle-end/49029
1545 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1546 only after deciding which mode to use.
1547
1548 2011-05-22 Tom de Vries <tom@codesourcery.com>
1549
1550 PR target/45098
1551 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1552 for call to get_shiftadd_cost.
1553
1554 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1555
1556 PR target/49104
1557 * config/i386/cpuid.h (bit_MMXEXT): New define.
1558
1559 2011-05-22 Nick Clifton <nickc@redhat.com>
1560
1561 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1562 initialisation of non-existant args[2] element. Use args[] array
1563 not arg[] array to pass arguments to build_function_type_list.
1564
1565 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1566
1567 PR tree-optimization/49087
1568 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1569
1570 2011-05-21 Jason Merrill <jason@redhat.com>
1571
1572 PR c++/49092
1573 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1574 static storage duration.
1575
1576 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1577
1578 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1579 frame pointer.
1580
1581 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1582
1583 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1584 false if there are call-saved registers here...
1585 (sparc_can_use_return_insn_p): ...but here instead.
1586 (save_or_restore_regs): Fix thinko.
1587 (sparc_expand_prologue): Use current_function_is_leaf.
1588 (sparc_frame_pointer_required): Likewise.
1589
1590 2011-05-21 Nick Clifton <nickc@redhat.com>
1591
1592 PR target/49098
1593 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1594
1595 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1596
1597 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1598 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1599
1600 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1601
1602 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1603 * optc-gen.awk: Move common code to opt-read.awk.
1604 * opth-gen.awk: Likewise.
1605 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1606
1607 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1608
1609 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1610
1611 2011-05-20 Tom de Vries <tom@codesourcery.com>
1612
1613 PR target/45098
1614 * tree-ssa-loop-ivopts.c: Include expmed.h.
1615 (get_shiftadd_cost): New function.
1616 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1617
1618 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1619
1620 PR bootstrap/49086
1621 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1622 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1623
1624 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1625
1626 * Makefile.in: Update comment referring to $(OBJS-common).
1627
1628 2011-05-20 Ian Lance Taylor <iant@google.com>
1629
1630 * godump.c (go_output_typedef): Put enum constants in the macro
1631 hash table to avoid duplicate Go const definitions.
1632
1633 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1634
1635 * Makefile.in (LIBDEPS): Add libcommon.a.
1636 (LIBS): Likewise.
1637 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1638 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1639 pretty-print.o and version.o.
1640 (OBJS-libcommon): New.
1641 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1642 (BACKEND): Add libcommon.a.
1643 (MOSTLYCLEANFILES): Likewise.
1644 (libcommon.a): New.
1645 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1646 (cpp$(exeext)): Likewise.
1647 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1648 pretty-print.o and input.o.
1649 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1650 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1651 (errors.o): Remove.
1652 (mips-tfile): Don't explicitly use version.o.
1653 (mips-tdump): Likewise.
1654 (gcov.o): Depend on $(DIAGNOSTIC_H).
1655 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1656 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1657 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1658 * gcov-dump.c: Include intl.h and diagnostic.h.
1659 (main): Initialize diagnostics.
1660 * gcov.c: Include diagnostic.h.
1661 (fnotice): Remove.
1662 (main): Initialize diagnostics.
1663 * lto-wrapper.c: Include diagnostic.h.
1664 (main): Initialize diagnostics.
1665
1666 2011-05-20 Michael Matz <matz@suse.de>
1667
1668 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1669
1670 2011-05-20 Michael Matz <matz@suse.de>
1671 Richard Guenther <rguenther@suse.de>
1672
1673 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1674 use lto_streamer_cache_append directly instead of returning a VEC.
1675 (preload_common_node): Remove.
1676 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1677 track seen nodes.
1678 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1679
1680 2011-05-20 Richard Guenther <rguenther@suse.de>
1681
1682 PR tree-optimization/49079
1683 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1684 MEM_REFs correctly for the trailing array access detection.
1685 Special case constants the same way as decls for overall size
1686 constraining.
1687
1688 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1689
1690 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1691 argument expansion.
1692
1693 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1694
1695 PR tree-optimization/49073
1696 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1697 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1698 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1699
1700 2011-05-20 Richard Guenther <rguenther@suse.de>
1701
1702 PR middle-end/48849
1703 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1704 of pointer types the same way the middle-end does.
1705
1706 2011-05-20 Richard Guenther <rguenther@suse.de>
1707
1708 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1709 or pointer-to chains. Delay all fixup to uniquify_nodes.
1710
1711 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1712
1713 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1714 (fma4_fmaddsub): Likewise
1715
1716 2011-05-19 Jan Hubicka <jh@suse.cz>
1717
1718 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1719 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1720 (type_pair_cache): New static var.
1721 (lookup_type_pair): Use fixed sized custom hash; make inline.
1722 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1723 calls of lookup_type_pair.
1724 (print_gimple_types_stats): Remove cache stats.
1725 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1726 and gtc_ob.
1727
1728 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1729
1730 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1731 when TARGET_RDRND is active.
1732 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1733 Generate dummy SImode target register when target is NULL.
1734
1735 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1736
1737 * config/arm/arm-fpus.def: New.
1738 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1739 arm-fpus.def.
1740 * config/arm/arm-tables.opt: Regenerate.
1741 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1742 (arm_option_override): Don't decode FPU name to string here.
1743 * config/arm/arm.opt (mfpu=): Use Enum.
1744 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1745 Update dependencies.
1746
1747 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1748
1749 * collect2.c: Include diagnostic.h.
1750 (fatal_perror, fatal, error, fancy_abort): Remove.
1751 (main): Set progname. Call xmalloc_set_program_name and
1752 diagnostic_initialize.
1753 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1754 scan_libraries, resolve_lib_name): Call fatal_error instead of
1755 fatal and fatal_perror.
1756 * collect2.h (error, fatal, fatal_perror): Don't declare.
1757 * tlink.c: Include diagnostic-core.h.
1758 (recompile_files): Call fatal_error instead of fatal_perror.
1759 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1760 pretty-print.o and input.o.
1761 (collect2.o, tlink.o): Update dependencies.
1762
1763 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1764
1765 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1766
1767 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1768
1769 PR target/40483
1770 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1771 COMDAT group syntax, both SPARC and x86 variants.
1772 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1773 * configure: Regenerate.
1774 * config/sol2.h (TARGET_SOLARIS): Define.
1775 (PUSHSECTION_FORMAT): Remove.
1776 (SECTION_NAME_FORMAT): Define.
1777 * config/sol2.c: Include hashtab.h.
1778 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1779 expansion, using SECTION_NAME_FORMAT.
1780 (solaris_comdat_htab): New variable.
1781 (struct comdat_entry): Define.
1782 (comdat_hash): New function.
1783 (comdat_eq): New function.
1784 (solaris_elf_asm_comdat_section): New function.
1785 (solaris_define_comdat_signature): New function.
1786 (solaris_code_end): New function.
1787 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1788 (solaris_code_end): Declare.
1789 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1790 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1791 solaris_code_end.
1792 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1793 Remove ATTRIBUTE_UNUSED.
1794 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1795 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1796 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1797 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1798 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1799 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1800 (PUSHSECTION_FORMAT): Remove.
1801 (SECTION_NAME_FORMAT): Redefine.
1802
1803 2011-05-19 Kai Tietz <ktietz@redhat.com>
1804
1805 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1806 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1807 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1808
1809 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1810 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1811
1812 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1813
1814 2011-05-19 Richard Guenther <rguenther@suse.de>
1815
1816 PR middle-end/48985
1817 * tree-object-size.c (addr_object_size): If the pointed-to
1818 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1819
1820 2011-05-19 Richard Guenther <rguenther@suse.de>
1821
1822 * gimple.c (gimple_types_compatible_p_1): Compare names of
1823 the types themselves.
1824 (iterative_hash_gimple_type): And hash them that way.
1825 (gimple_register_type_1): If we register a main variant properly
1826 initialize the leader to ourselves.
1827
1828 2011-05-19 Tom de Vries <tom@codesourcery.com>
1829
1830 PR target/45098
1831 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1832 get_loop_invariant_expr_id.
1833 (get_loop_invariant_expr_id): Use get_expr_id.
1834 (parm_decl_cost): New function.
1835 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1836 Improve bound cost estimation. Use different inv_expr_id for elim and
1837 express cases.
1838
1839 2011-05-19 Tom de Vries <tom@codesourcery.com>
1840
1841 PR target/45098
1842 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1843 cost_base.cost == 0.
1844
1845 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1846
1847 PR target/49002
1848 * config/i386/sse.md
1849 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1850 load cast.
1851
1852 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1853
1854 PR tree-optimization/49039
1855 * tree-vrp.c (extract_range_from_binary_expr): For
1856 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1857 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1858
1859 2011-05-18 Tom de Vries <tom@codesourcery.com>
1860
1861 PR target/45098
1862 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1863
1864 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1865
1866 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1867 (*tls_global_dynamic_64): Ditto.
1868 (*tls_local_dynamic_base_32_gnu): Ditto.
1869 (*tls_local_dynamic_base_64): Ditto.
1870 (tls_initial_exec_64_sun): Ditto.
1871
1872 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1873
1874 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1875 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1876 bf592-none.
1877 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1878 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1879 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1880 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1881 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1882 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1883 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1884
1885 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1886
1887 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1888 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1889 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1890 target_thread_pointer, arm_structure_size_boundary, struct
1891 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1892 struct abi_name, arm_all_abis): Remove.
1893 (arm_option_override) Don't process most enumerated option values here.
1894 Don't process target_fpe_name here. Work with integer not string for
1895 structure size boundary; use separate diagnostics for each case.
1896 * config/arm/arm.h (enum float_abi_type, enum
1897 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1898 to arm-opts.h.
1899 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1900 arm_structure_size_boundary): Remove.
1901 * config/arm/arm.opt (mabi=): Use Enum and Init.
1902 (arm_abi_type): New Enum and EnumValue entries.
1903 (mfloat-abi=): Use Enum and Init.
1904 (float_abi_type): New Enum and EnumValue entries.
1905 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1906 (mfp16-format=): Use Enum and Init.
1907 (arm_fp16_format_type): New Enum and EnumValue entries.
1908 (mstructure-size-boundary=): Use UInteger and Init.
1909 (mtp=): Use Enum and Init.
1910 (arm_tp_type): New Enum and EnumValue entries.
1911
1912 2011-05-18 Richard Guenther <rguenther@suse.de>
1913
1914 PR tree-optimization/49018
1915 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1916 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1917 gimple_has_side_effects.
1918
1919 2011-05-18 Richard Guenther <rguenther@suse.de>
1920
1921 * gimple.c (gimple_register_type_1): New function, split out from ...
1922 (gimple_register_type): ... here. Avoid infinite recursion.
1923
1924 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1925
1926 PR tree-optimization/41881
1927 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1928 reduction_chains along with a macro for its access.
1929 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1930 (destroy_loop_vec_info): Free reduction chains.
1931 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1932 (vect_is_slp_reduction): New function.
1933 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1934 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1935 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1936 definition types for reduction chains.
1937 (vect_supported_load_permutation_p): Don't allow permutations for
1938 reduction chains.
1939 (vect_analyze_slp_instance): Support reduction chains.
1940 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1941 (vect_get_constant_vectors): Handle reduction chains.
1942 (vect_schedule_slp_instance): Mark the first statement of the
1943 reduction chain as reduction.
1944
1945 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1946
1947 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1948 names for group elements access.
1949 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1950 reduction chains as well. Remove data reference and interleaving
1951 related words from the fields names.
1952 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1953 elements access.
1954 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1955 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1956 vect_update_interleaving_chain, vect_same_range_drs,
1957 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1958 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1959 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1960 vect_analyze_group_access, vect_analyze_data_ref_access,
1961 vect_create_data_ref_ptr, vect_transform_strided_load,
1962 vect_record_strided_load_vectors): Likewise.
1963 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1964 vect_model_load_cost, vectorizable_store, vectorizable_load,
1965 vect_remove_stores, new_stmt_vec_info): Likewise.
1966 * tree-vect-slp.c (vect_build_slp_tree,
1967 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1968
1969 2011-05-18 Richard Guenther <rguenther@suse.de>
1970
1971 PR middle-end/48989
1972 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1973 operand verification.
1974 (verify_gimple_assign_binary): Likewise.
1975 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1976 to non-1-precision BOOLEAN_TYPEs.
1977
1978 2011-05-18 Tom de Vries <tom@codesourcery.com>
1979
1980 PR target/45098
1981 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1982
1983 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1984
1985 PR tree-optimization/49000
1986 * tree-ssa.c (execute_update_addresses_taken): Call
1987 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1988 be rewritten and decl has been marked for renaming, reset
1989 the debug stmt.
1990
1991 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1992
1993 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1994 enum_opts_set when testing if attributes have set -mfpmath=.
1995
1996 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1997
1998 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1999
2000 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2001
2002 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2003 info->entry with 0
2004 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2005 id.transform_lang_insert_block with NULL.
2006
2007 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2008
2009 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2010 (output_fp_compare): Change args 3 and 4 to bool.
2011 (ix86_expand_call): Change arg 6 to bool.
2012 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2013 (ix86_attr_length_vex_default): Change arg 3 to bool.
2014 * config/i386/i386.md: Update all uses.
2015 * config/i386/i386.c: Ditto.
2016 (ix86_flags_dependent): Change return type to bool.
2017
2018 2011-05-17 Richard Guenther <rguenther@suse.de>
2019
2020 * gimple.c (type_hash_pair_compare): Fix comparison.
2021
2022 2011-05-17 Richard Guenther <rguenther@suse.de>
2023
2024 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2025 case some more, fix final hash value of the non-singleton case.
2026
2027 2011-05-17 Richard Guenther <rguenther@suse.de>
2028
2029 PR bootstrap/49013
2030 Revert
2031 2011-05-16 Richard Guenther <rguenther@suse.de>
2032
2033 * gimple.c (gimple_types_compatible_p_1): Use names of the
2034 type itself, not its main variant.
2035 (iterative_hash_gimple_type): Likewise.
2036
2037 2011-05-17 Richard Guenther <rguenther@suse.de>
2038
2039 * gimple.c (gimple_register_canonical_type): Use the main-variant
2040 leader for computing the canonical type.
2041
2042 2011-05-17 Nick Clifton <nickc@redhat.com>
2043
2044 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2045 moves.
2046
2047 * config/rx/rx.md: Add peephole to remove redundant extensions
2048 after loads.
2049 (bitset_in_memory): Use rx_restricted_mem_operand.
2050 (bitinvert_in_memory): Likewise.
2051 (bitclr_in_memory): Likewise.
2052
2053 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2054 Nick Clifton <nickc@redhat.com>
2055
2056 * config/rx/rx.md: Add peepholes to match a register move followed
2057 by a comparison of the moved register. Replace these with an
2058 addition of zero that does both actions in one instruction.
2059
2060 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2061
2062 PR target/48986
2063 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2064 predicate to allow CONST_INT.
2065 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2066
2067 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2068
2069 * opts-common.c (opt_enum_arg_to_value): New.
2070 * opts.h (opt_enum_arg_to_value): Declare.
2071 * config/i386/i386.opt (fpmath): Remove.
2072 (mfpmath=): Use Enum, Init and Save.
2073 (fpmath_unit): New Enum and EnumValue entries.
2074 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2075 name for function fpmath state.
2076 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2077 * config/i386/i386.c: Include diagnostic.h.
2078 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2079 (ix86_target_string): Take enum fpmath_unit value instead of string.
2080 (ix86_debug_options): Update call to ix86_target_string.
2081 (ix86_option_override_internal): Don't process fpmath strings here.
2082 (x86_function_specific_save, ix86_function_specific_restore):
2083 Don't handle fpmath state specially.
2084 (ix86_function_specific_print): Pass fpmath state to
2085 ix86_target_string instead of printing in this function.
2086 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2087 Handle enum attributes.
2088 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2089 (ix86_valid_target_attribute_tree): Update option_strings
2090 handling. Handle fpmath as enum option.
2091 (ix86_can_inline_p): Update field names for function fpmath state.
2092 (ix86_expand_builtin): Update call to ix86_target_string.
2093 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2094 (ix86_fpmath): Remove.
2095 * config/i386/t-i386 (i386.o): Update dependencies.
2096
2097 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2098
2099 PR preprocessor/48677
2100 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2101 from decoded_options[0], not from itself.
2102
2103 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2104
2105 * config/i386/constraints.md (z): New constraint.
2106 * config/i386/i386.c (c): New mode attribute.
2107 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2108 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2109 constraint for operand 0.
2110 (*call_vzeroupper): Ditto.
2111 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2112 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2113 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2114 Use "lzm" constraint for operand 0.
2115 (*call_pop_vzeroupper): Ditto.
2116 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2117 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2118 constraint for operand 0.
2119 (*sibcall_vzeroupper): Ditto.
2120 (*sibcall_rex64_ms_sysv): Ditto.
2121 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2122 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2123 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2124 (*sibcall_pop_vzeroupper): Ditto.
2125 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2126 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2127 mode iterator. Use "<c>zm" constraint for operand 1.
2128 (*call_value_vzeroupper): Ditto.
2129 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2130 for operand 1.
2131 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2132 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2133 *call_value_pop_1. Use "lzm" constraint for operand 1.
2134 (*call_value_pop_vzeroupper): Ditto.
2135 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2136 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2137 mode iterator. Use "Uz" constraint for operand 1.
2138 (*sibcall_value_vzeroupper): Ditto.
2139 (*sibcall_value_rex64_ms_sysv): Ditto.
2140 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2141 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2142 constraint for operand 1.
2143 (*sibcall_value_pop_vzeroupper): Ditto.
2144 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2145 and "z" constraint for operand 2.
2146 (*tls_global_dynamic_32_gnu): Ditto.
2147 (*tls_local_dynamic_base_32_gnu): Ditto.
2148 (*tls_local_dynamic_base_64): Ditto.
2149 (*tls_local_dynamic_32_once): Ditto.
2150 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2151 Update all callers.
2152 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2153
2154 2011-05-16 Richard Guenther <rguenther@suse.de>
2155
2156 * gimple.c (gimple_types_compatible_p_1): Use names of the
2157 type itself, not its main variant.
2158 (iterative_hash_gimple_type): Likewise.
2159
2160 2011-05-16 Richard Guenther <rguenther@suse.de>
2161
2162 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2163 always visit pointer target and function result and argument types.
2164
2165 2011-05-16 Jason Merrill <jason@redhat.com>
2166
2167 PR c++/48999
2168 * tree-inline.c (copy_statement_list): Put back recursion.
2169
2170 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2171
2172 PR target/27663
2173 PR target/41076
2174 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2175 * config/avr/avr.md ("*ior<mode>qi.byte0",
2176 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2177
2178 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2179
2180 PR target/45099
2181 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2182 register is needed for a function argument.
2183
2184 2011-05-16 Richard Guenther <rguenther@suse.de>
2185
2186 * gimple.c (struct type_hash_pair): New type.
2187 (type_hash_pair_compare): New function.
2188 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2189
2190 2011-05-16 Revital Eres <revital.eres@linaro.org>
2191
2192 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2193
2194 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2195
2196 * config/i386/i386.md (floating point move splitters): Fix
2197 usage of standard_80387_constant_p.
2198 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2199
2200 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2201
2202 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2203
2204 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2205
2206 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2207 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2208 (tree_ssa_lim_finalize): Likewise.
2209
2210 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2211
2212 * config/i386/constraint.md (Yd, Yx): New register constraints.
2213 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2214 Yd conditional register constraint.
2215 (*movtf_internal): Use standard_sse_constant_opcode.
2216 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2217 Yx conditional register constraint.
2218 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2219 Yd conditional register constraint. Use standard_sse_constant_p to
2220 check for valid SSE constants and call standard_sse_constant_opcode to
2221 output SSE insn.
2222 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2223 constants and call standard_sse_constant_opcode to output SSE insn.
2224 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2225 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2226 optimize_size is set.
2227 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2228
2229 2011-05-14 Tobias Burnus <burnus@net-b.de>
2230
2231 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2232
2233 2011-05-13 Martin Jambor <mjambor@suse.cz>
2234
2235 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2236 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2237 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2238 (evaluate_conditions_for_ipcp_clone): Removed.
2239 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2240 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2241 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2242
2243 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2244
2245 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2246 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2247 lieu of MAY_HAVE_DEBUG_STMTS.
2248 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2249 debug statements if !MAY_HAVE_DEBUG_STMTS.
2250
2251 2011-05-13 Martin Thuresson <martint@google.com>
2252
2253 PR gcov-profile/47793
2254 * libgcov.c (gcov_exit): Support relative profile paths.
2255 * doc/invoke.texi (-fprofile-dir): Update for above change.
2256
2257 2011-05-13 Richard Guenther <rguenther@suse.de>
2258
2259 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2260 type-pair caching, do not compare hashes.
2261
2262 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2263
2264 PR middle-end/48965
2265 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2266 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2267
2268 2011-05-13 Kai Tietz <ktietz@redhat.com>
2269
2270 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2271 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2272 compatible type for TRUTH_NOT_EXPR.
2273
2274 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2275
2276 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2277 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2278 can_create_pseudo_p ().
2279
2280 2011-05-13 Richard Guenther <rguenther@suse.de>
2281
2282 PR lto/48978
2283 * gimple.c (iterative_hash_gimple_type): Revert change in
2284 pointer target and function result and argument hashing.
2285
2286 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2287
2288 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2289 (*movxf_internal_nointeger): Ditto.
2290 (*movdf_internal_rex64): Ditto.
2291 (*movdf_internal): Ditto.
2292 (*movdf_internal_nointeger): Ditto.
2293 (*movsf_internal): Ditto.
2294 (sincos splitters): Use can_create_pseudo ().
2295
2296 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2297
2298 * config/i386/i386-opts.h: New.
2299 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2300 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2301 ix86_section_threshold): Remove.
2302 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2303 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2304 OPT_mbranch_cost_.
2305 (ix86_option_override_internal): Don't decode strings for options
2306 other than -march=, -mtune= and -mfpmath=. Don't allow for
2307 __attribute__ uses in remaining diagnostics for options with
2308 string arguments. Don't check for integer arguments being negative.
2309 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2310 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2311 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2312 ix86_branch_cost, ix86_section_threshold): Remove.
2313 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2314 HeaderInclude.
2315 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2316 but not Var.
2317 (masm=): Use Enum and Init.
2318 (asm_dialect): New Enum and EnumValue entries.
2319 (mbranch-cost=): Use UInteger.
2320 (mlarge-data-threshold=): Use UInteger and Init.
2321 (mcmodel=): Use Enum and Init.
2322 (cmodel): New Enum and EnumValue entries.
2323 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2324 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2325 mregparm=): Use UInteger.
2326 (mstringop-strategy=): Use Enum and Init.
2327 (stringop_alg): New Enum and EnumValue entries.
2328 (mtls-dialect=): Use Enum and Init.
2329 (tls_dialect): New Enum and EnumValue entries.
2330 (mabi=): Use Enum and Init.
2331 (calling_abi): New Enum and EnumValue entries.
2332 (mveclibabi=): Use Enum and Init.
2333 (ix86_veclibabi): New Enum and EnumValue entries.
2334
2335 2011-05-13 Nick Clifton <nickc@redhat.com>
2336
2337 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2338 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2339
2340 2011-05-13 Kai Tietz <ktietz@redhat.com>
2341
2342 PR middle-end/48984
2343 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2344 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2345 (gimple_boolify): Check for cast for boolean_type_node instead for
2346 BOOLEAN_TYPE.
2347
2348 2011-05-13 Richard Guenther <rguenther@suse.de>
2349
2350 PR tree-optimization/48172
2351 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2352 multiplying by number of iterations for equal step.
2353 (vect_create_cond_for_alias_checks): Likewise.
2354
2355 2011-05-13 Andreas Schwab <schwab@redhat.com>
2356
2357 * configure.ac: Use AS_HELP_STRING throughout.
2358 * configure: Regenerate.
2359
2360 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2361
2362 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2363 (ix86_emit_restore_regs_using_mov): Likewise.
2364 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2365
2366 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2367
2368 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2369 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2370 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2371 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2372 RTX_OK_FOR_OLO10_P): ...here.
2373 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2374 SYMBOLIC_CONST.
2375
2376 2011-05-12 Kai Tietz <ktietz@redhat.com>
2377
2378 * gimplify.c (gimple_boolify): Re-boolify expression
2379 arguments even if expression type is of kind BOOLEAN_TYPE.
2380 (gimplify_boolean_expr): Removed.
2381 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2382 and XOR. Additional take care that we keep expression's type.
2383 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2384 of TRUTH_AND|OR|XOR_EXPR.
2385
2386 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2387
2388 PR tree-optimization/48975
2389 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2390 on all bbs here and free and clear ifc_bbs at the end.
2391
2392 2011-05-12 Richard Guenther <rguenther@suse.de>
2393
2394 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2395 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2396 until after simple checks.
2397 (gimple_types_compatible_p): Likewise.
2398 (iterative_hash_gimple_type): Always hash pointer targets
2399 and function return and argument types.
2400 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2401 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2402 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2403 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2404 completely in the simple compare section.
2405 (gimple_register_canonical_type): Query the cache again after
2406 registering.
2407
2408 2011-05-12 Richard Guenther <rguenther@suse.de>
2409
2410 PR tree-optimization/48172
2411 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2412 the number of iterations from the segment size calculation.
2413 (vect_create_cond_for_alias_checks): Adjust.
2414
2415 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2416
2417 PR debug/48967
2418 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2419 if validate_subreg fails.
2420
2421 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2422
2423 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2424 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2425 early.
2426
2427 2011-05-12 DJ Delorie <dj@redhat.com>
2428
2429 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2430 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2431 created builtin into rx_builtins array.
2432 (rx_builtin_decl): New function.
2433 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2434
2435 2011-05-12 DJ Delorie <dj@redhat.com>
2436 Nick Clifton <nickc@redhat.com>
2437
2438 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2439 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2440 (rx_is_legitimate_address): Add pre-decrement and post-increment
2441 addressing in HImode and QImode. Fix test for out of range
2442 REG+INT addressing.
2443 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2444 (rx_align_for_label): Test label before extracting its usage count.
2445 (rx_adjust_insn_lengths): Fix selection of insn codes.
2446 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2447
2448 2011-05-11 Jason Merrill <jason@redhat.com>
2449
2450 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2451
2452 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2453
2454 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2455 reindent the subsequent block.
2456
2457 2011-05-11 Satoru Takabayashi <satorux@google.com>
2458 Paul Pluzhnikov <ppluzhnikov@google.com>
2459
2460 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2461 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2462 * config.in: Add LINKER_HASH_STYLE.
2463 * configure.ac: Add --with-linker-hash-style.
2464 * configure: Regenerate.
2465
2466 2011-05-11 Richard Guenther <rguenther@suse.de>
2467
2468 PR middle-end/48964
2469 * gimple.c (iterative_hash_canonical_type): Fix typo.
2470
2471 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2472
2473 * config/i386/i386.c (legitimize_tls_address)
2474 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2475 expanders directly for TARGET_GNU2_TLS. Determine pic and
2476 __tls_get_addr symbol reference here. Update call to
2477 gen_tls_global_dynamic_{32,64} for added arguments.
2478 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2479 expanders directly for TARGET_GNU2_TLS. Determine
2480 __tls_get_addr symbol reference here. Update call to
2481 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2482 unique UNSPEC REG_EQUIV to libcall block.
2483 (ix86_tls_get_addr): Declare static.
2484 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2485 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2486 Do not determine pic and __tls_get_addr symbol reference here. Do not
2487 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2488 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2489 (tls_global_dynamic_64): Add operand 2. Do not determine
2490 __tls_get_addr symbol reference here. Do not call
2491 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2492 (tls_local_dynamic_base64): Ditto for operand 1.
2493
2494 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2495
2496 * function.c (expand_function_start): Initialize stack_check_probe_note
2497 only if the generic stack checking mechanism is used.
2498
2499 2011-05-11 Richard Guenther <rguenther@suse.de>
2500
2501 PR tree-optimization/15256
2502 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2503 (A & B) | C, combine (A op CST1) op CST2.
2504 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2505 visit assigns that have uses.
2506
2507 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2508
2509 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2510 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2511 (unpack_ts_type_common_value_fields): ...this. Update comment.
2512 (unpack_value_fields): Adjust for renaming.
2513 (lto_input_ts_type_tree_pointers): Split into...
2514 (lto_input_ts_type_common_tree_pointer): ...this and...
2515 (lto_input_ts_type_non_common_tree_pointers): ...this.
2516 (lto_input_tree_pointers): Adjust for above split.
2517 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2518 (pack_ts_type_common_value_fields): ...this. Update comment.
2519 (lto_output_ts_type_tree_pointers): Split into...
2520 (lto_output_ts_type_common_tree_pointers): ...this and...
2521 (lto_output_ts_type_non_common_tree_pointers): ...this.
2522 (lto_output_tree_pointers): Adjust for above split.
2523 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2524 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2525 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2526 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2527 Define.
2528 (struct tree_type): Split into...
2529 (struct tree_type_common: ...this and...
2530 (struct tree_type_with_lang_specific): ...this and...
2531 (struct tree_type_non_common): ...this. Adjust accessor macros
2532 accordingly.
2533 (TYPE_VALUES_RAW): Define.
2534 (union tree_node): Update for above changes.
2535 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2536 TS_TYPE_NON_COMMON.
2537 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2538 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2539 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2540 * treestructu.def (TS_TYPE): Remove.
2541 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2542 Define.
2543
2544 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2545
2546 PR debug/48159
2547 * tree-ssa.c (reset_debug_uses): New function.
2548 * tree-flow.h (reset_debug_uses): New prototype.
2549 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2550 * tree-loop-distribution.c (generate_loops_for_partition): Call
2551 reset_debug_uses on the stmts that will be removed. Keep around
2552 all debug stmts, don't count them as bits in partition bitmap.
2553 (generate_builtin): Don't count debug stmts or labels as bits in
2554 partition bitmap.
2555
2556 2011-05-11 Richard Guenther <rguenther@suse.de>
2557
2558 * gimple.c (gimple_type_hash_1): Merge with ...
2559 (gimple_type_hash): ... this.
2560 (gtc_visit): Remove mode parameter and simplify accordingly.
2561 (gimple_types_compatible_p_1): Likewise.
2562 (gimple_types_compatible_p): Likewise.
2563 (iterative_hash_gimple_type): Likewise.
2564 (visit): Likewise.
2565 (gimple_type_eq): Adjust.
2566
2567 2011-05-11 Revital Eres <revital.eres@linaro.org>
2568
2569 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2570 enters the branch create an anti edge in the opposite direction
2571 to prevent the creation of reg-moves.
2572 * modulo-sched.c: Adjust comment to reflect the fact we are
2573 scheduling closing branch.
2574 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2575 (stage_count): New field in struct partial_schedule.
2576 (calculate_stage_count): New function.
2577 (normalize_sched_times): Rename to reset_sched_times and handle
2578 incrementing the sched time of the nodes by a constant value
2579 passed as parameter.
2580 (duplicate_insns_of_cycles): Skip closing branch.
2581 (sms_schedule_by_order): Schedule closing branch.
2582 (ps_insn_find_column): Handle closing branch.
2583 (sms_schedule): Call reset_sched_times and adjust the code to
2584 support scheduling of the closing branch.
2585 (ps_insert_empty_row): Update calls to normalize_sched_times
2586 and rotate_partial_schedule functions.
2587
2588 2011-05-11 Richard Guenther <rguenther@suse.de>
2589
2590 PR middle-end/48953
2591 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2592
2593 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2594
2595 * opts.c (finish_options): Move warning settings from process_options.
2596 * toplev.c (process_options): Move warning settings to finish_options.
2597
2598 2011-05-11 Richard Guenther <rguenther@suse.de>
2599
2600 PR tree-optimization/18041
2601 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2602 (simplify_bitwise_binary): ... this. Handle operand conversions
2603 by applying them to the result instead.
2604 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2605
2606 2011-05-11 Richard Guenther <rguenther@suse.de>
2607
2608 * gimple.c (gimple_canonical_types_compatible_p): Split out
2609 from gimple_types_compatible_p and friends. Do not recurse
2610 to pointed-to types.
2611 (gimple_canonical_type_eq): Use it.
2612 (iterative_hash_canonical_type): Split out from
2613 iterative_hash_gimple_type and friends. Do not recurse
2614 to pointed-to types.
2615 (gimple_canonical_type_hash): Use it, allocate the hash here.
2616
2617 2011-05-11 Revital Eres <revital.eres@linaro.org>
2618
2619 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2620 recognizing doloop.
2621
2622 2011-05-11 Revital Eres <revital.eres@linaro.org>
2623
2624 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2625 instead of PREV_INSN.
2626
2627 2011-05-11 Revital Eres <revital.eres@linaro.org>
2628
2629 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2630 * loop-doloop.c (doloop_condition_get): Likewise.
2631 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2632 (doloop_end): New.
2633 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2634
2635 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2636
2637 * tree.def (CASE_LABEL_EXPR): Add an operand.
2638 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2639
2640 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2641
2642 * c-decl.c (c_override_global_bindings_to_false): Remove.
2643 (global_bindings_p): Don't check
2644 c_override_global_bindings_to_false.
2645 * c-tree.h (c_override_global_bindings_to_false): Remove.
2646 * c-typeck.c (composite_type): Don't set
2647 c_override_global_bindings_to_false.
2648
2649 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2650
2651 PR target/48857, 48495
2652 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2653 (VSX_MODE): Ditto.
2654 (VSX_MOVE_MODE): Ditto.
2655 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2656 VSX vector types. Add V2DImode.
2657 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2658 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2659 (MODES_TIEABLE_P): Ditto.
2660
2661 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2662 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2663 VSX_VECTOR_MODE.
2664 (init_cumulative_args): Ditto.
2665 (rs6000_function_arg_boundary): Ditto.
2666 (rs6000_function_arg_advance_1): Ditto.
2667 (rs6000_function_arg): Ditto.
2668 (rs6000_function_ok_for_sibcall): Ditto.
2669 (emit_frame_save): Ditto.
2670 (rs6000_function_value): Ditto.
2671 (rs6000_libcall_value): Ditto.
2672
2673 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2674
2675 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2676 i386/darwin-lib.h to $libgcc_tm_file.
2677 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2678
2679 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2680
2681 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2682
2683 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2684
2685 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2686 * config/rs6000/rs6000-tables.opt: New file (generated).
2687 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2688 rs6000/rs6000-tables.opt to extra_options.
2689 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2690 * config/rs6000/rs6000.c (rs6000_select): Remove.
2691 (processor_target_table): Move contents to rs6000-cpus.def.
2692 (darwin_rs6000_override_options): Check
2693 global_options_set.x_rs6000_cpu_index instead of
2694 rs6000_select[1].string.
2695 (rs6000_option_override_internal): Likewise.
2696 (rs6000_handle_option): Don't assert that global structures are in
2697 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2698 (rs6000_default_cpu): New variable.
2699 (rs6000_file_start): Set it instead of local default_cpu. Check
2700 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2701 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2702 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2703 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2704 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2705 rs6000_select): Remove.
2706 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2707 Remove.
2708 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2709 * config/rs6000/t-rs6000
2710 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2711 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2712 global_options_set.x_rs6000_cpu_index instead of
2713 rs6000_select[1].string.
2714 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2715 global_options_set.x_rs6000_cpu_index instead of
2716 rs6000_select[1].string.
2717
2718 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2719
2720 * config.gcc (libgcc_tm_file): Define instead of including files
2721 from ../../libgcc/config/ in tm_file.
2722 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2723 * configure: Regenerate.
2724 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2725 libgcc_tm.h, cs-libgcc_tm.h): New.
2726 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2727 (clean): Remove libgcc_tm.h.
2728 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2729 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2730 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2731
2732 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2733
2734 PR target/48896
2735 * config/avr/avr.c (avr_ret_register): Return unsigned int
2736 instead of int.
2737 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2738 it to avr_libcall_value.
2739 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2740 expand_expr.
2741 (avr_expand_binop_builtin): Ditto.
2742 (avr_expand_unop_builtin): Ditto.
2743
2744 2011-05-10 DJ Delorie <dj@redhat.com>
2745
2746 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2747 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2748 * config/rx/rx.c (rx_align_for_label): Add label and
2749 uses_threshold parameters. Do not align when the label is not
2750 used enough.
2751 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2752
2753 2011-05-10 Richard Guenther <rguenther@suse.de>
2754
2755 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2756 a series of conversions and apply foldings similar to what
2757 fold-const does.
2758 (tree_ssa_forward_propagate_single_use_vars): Call it.
2759
2760 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2761
2762 PR tree-optimization/48611
2763 PR tree-optimization/48794
2764 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2765 referenced from RESX or EH_DISPATCH arguments.
2766
2767 PR debug/48928
2768 * dfp.c (decimal_to_decnumber): Handle conversion from
2769 dconst{1,2,m1,half}.
2770
2771 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2772
2773 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2774 for !flag_prefer_avx128.
2775 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2776
2777 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2778
2779 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2780 (fold_ternary_loc): Use expr_location_or.
2781
2782 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2783
2784 PR debug/48853
2785 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2786 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2787 Pmode and mem_mode is not VOIDmode.
2788
2789 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2790
2791 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2792 TYPE_QUAL_RESTRICT): Convert to enum.
2793
2794 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2795
2796 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2797 (const_pow2_1_to_8_operand): Ditto.
2798 (const_pow2_1_to_128_operand): Ditto.
2799 (const_pow2_1_to_32768_operand): Ditto.
2800 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2801 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2802 in insn constraint to check integer value of operand 3.
2803 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2804
2805 (PINSR_MODE): New mode iterator.
2806 (sse2p4_1): New mode attribute.
2807 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2808 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2809 iterator. Use const_int_operand instead of
2810 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2811 exact_log2 in insn constraint to check integer value of operand 3.
2812
2813 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2814
2815 * config/i386/sse.md (blendbits): Remove mode attribute.
2816 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2817 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2818 Check integer value of operand 3 in insn constraint.
2819
2820 2011-05-09 Richard Guenther <rguenther@suse.de>
2821
2822 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2823 for diagnostics.
2824 (lto_symtab_merge): Likewise. Do not register types here.
2825 (lto_symtab_merge_decls_2): Likewise.
2826 (lto_symtab_merge_decls_1): Likewise.
2827 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2828 * gimple.c (enum gtc_mode): Declare.
2829 (gimple_types_compatible_p): Make static.
2830
2831 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2832
2833 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2834 temporary register to match Pmode.
2835
2836 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2837
2838 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2839 and *vec_concatv4si_1_avx.
2840
2841 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2842
2843 PR rtl-optimization/48927
2844 * ira-conflicts.c (commutative_constraint_p): Use
2845 recog_data.alternative_enabled_p to disable alternatives where
2846 "enabled" attribute is false.
2847 (get_dup_num): Ditto.
2848 * ira-lives.c (single_reg_class): Ditto.
2849 (ira_implicitly_set_insn_hard_regs): Ditto.
2850
2851 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2852
2853 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2854 (dataflow_set_preserve_mem_locs): Likewise.
2855
2856 2011-05-09 Philipp Thomas <pth@suse.de>
2857
2858 * config/mep/mep.c (mep_validate_vliw): Syntax description
2859 should not be translated.
2860
2861 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2862
2863 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2864 * config/mips/mips-tables.opt: New file (generated).
2865 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2866 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2867 MIPS_ARCH_OPTION_NATIVE): Define.
2868 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2869 mips-cpus.def.
2870 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2871 mips_parse_cpu): Remove.
2872 (mips_cpu_info_from_opt, mips_default_arch): New.
2873 (mips_handle_option): Don't assert that global structures are in
2874 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2875 (mips_option_override): Use new variables and functions to set
2876 state of these options. Use strcmp to check for individual CPU names.
2877 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2878 definition.
2879 * config/mips/mips.opt (march=): Use ToLower and Enum.
2880 (mips): Use ToLower, Enum and Var.
2881 (mtune=): Use ToLower and Enum.
2882 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2883
2884 2011-05-08 Jan Hubicka <jh@suse.cz>
2885
2886 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2887 Arrange type pairs to be UID ordered.
2888 (gimple_lookup_type_leader): Make inline.
2889
2890 2011-05-09 Nick Clifton <nickc@redhat.com>
2891
2892 PR target/48899
2893 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2894 PROCESSOR_DEFAULT.
2895
2896 PR target/48897
2897 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2898 variable 's'.
2899
2900 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2901
2902 * combine.c (simplify_comparison): Abstract out parts into...
2903 (simplify_compare_const): ... new function.
2904 (try_combine): Generalize parallel arithmetic/compare combining
2905 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2906
2907 2011-05-08 Jan Hubicka <jh@suse.cz>
2908
2909 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2910 (cgraph_create_virtual_clone): Call hooks once virtual clone
2911 is finished.
2912 * cgraph.h (cgraph_clone_node): Update prototype.
2913 * ipa-cp.c (ipcp_estimate_growth): Use
2914 estimate_ipcp_clone_size_and_time.
2915 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2916 * lto-cgraph.c (input_node): Update.
2917 * ipa-inline.c (recursive_inlining): Update.
2918 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2919 (evaluate_conditions_for_known_args): Break out from ...
2920 (evaluate_conditions_for_edge): ... here.
2921 (evaluate_conditions_for_ipcp_clone): New function.
2922 (inline_node_duplication_hook): Update clone summary based
2923 on parameter map.
2924 (estimate_callee_size_and_time): Rename to ...
2925 (estimate_node_size_and_time): take NODE instead of EDGE;
2926 take POSSIBLE_TRUTHS as argument.
2927 (estimate_callee_size_and_time): Update.
2928 (estimate_ipcp_clone_size_and_time): New function.
2929 (do_estimate_edge_time): Update.
2930
2931 2011-05-08 Richard Guenther <rguenther@suse.de>
2932
2933 PR middle-end/48908
2934 PR middle-end/48905
2935 * expmed.c (expand_shift_1): Compute adjusted constant shift
2936 amount manually.
2937
2938 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2939
2940 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2941
2942 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2943
2944 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2945
2946 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2947
2948 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2949
2950 2011-05-07 Jan Hubicka <jh@suse.cz>
2951
2952 * ipa-inline-transform.c (inline_call): Account when program size
2953 decreases.
2954 * ipa-inline.c (relative_time_benefit): New function.
2955 (edge_badness): Reorganize to be power 2 based; fix thinko when
2956 computing badness for negative growth; update comments to match
2957 reality; better dumps.
2958
2959 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2960
2961 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2962 type to bool and adjust comment.
2963 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2964 (fold_mathfn_compare): Remove calls to global_bindings_p.
2965 (fold_inf_compare): Likewise.
2966 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2967 * c-tree.h (global_bindings_p): Adjust prototype.
2968 * c-decl.c (global_bindings_p): Return bool and simplify.
2969
2970 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2971
2972 PR tree-optimization/48837
2973 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2974 when accumulator transformation is performed.
2975
2976 2011-05-06 Jan Hubicka <jh@suse.cz>
2977
2978 * i386.h (ix86_tune_indices): Add
2979 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2980 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2981 * i386.c (initial_ix86_tune_features): Add
2982 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2983 (software_prefetching_beneficial_p): Remove predicate.
2984 (ix86_option_override_internal): Use new macro.
2985
2986 2011-05-06 Jan Hubicka <jh@suse.cz>
2987
2988 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2989
2990 2011-05-06 Jan Hubicka <jh@suse.cz>
2991
2992 * cgraph.c (cgraph_add_thunk): Create real function node instead
2993 of alias node; finalize it and mark needed/reachale; arrange visibility
2994 to be right and add it into the corresponding same comdat group list.
2995 (dump_cgraph_node): Dump thunks.
2996 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2997 cgraph_function_with_gimple_body_p,
2998 cgraph_first_function_with_gimple_body,
2999 cgraph_next_function_with_gimple_body): New functions.
3000 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3001 New macros.
3002 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3003 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3004 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3005 devirtualization when optimizing.
3006 (verify_cgraph_node): Verify thunks.
3007 (cgraph_analyze_function): Analyze thunks.
3008 (cgraph_mark_functions_to_output): Output thunks only in combination
3009 with function they are assigned to.
3010 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3011 alias into normal node.
3012 (assemble_thunks): New functoin.
3013 (cgraph_expand_function): Use it.
3014 * lto-cgraph.c (lto_output_node): Stream thunks.
3015 (input_overwrite_node): Stream in thunks.
3016 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3017 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3018 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3019 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3020 (inline_analyze_function): Do not care about thunk jump functions.
3021 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3022 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3023 cgraph_function_with_gimple_body_p.
3024 * passes.c (do_per_function_toporder): Use
3025 cgraph_function_with_gimple_body_p.
3026 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3027 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3028 (function_called_by_processed_nodes_p): Likewise.
3029
3030 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3031
3032 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3033 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3034 entries.
3035 (mabi=): Replace with separate entries for mabi=altivec,
3036 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3037 mabi=ieeelongdouble and mabi=ibmlongdouble.
3038 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3039 check for -mabi=spe without SPE ABI support here.
3040 (rs6000_handle_option): Replace OPT_mabi_ handling with
3041 OPT_mabi_altivec and OPT_mabi_spe handling.
3042
3043 2011-05-06 Cary Coutant <ccoutant@google.com>
3044
3045 * dwarf2out.c (contains_subprogram_definition): New function.
3046 (should_move_die_to_comdat): Call it.
3047
3048 2011-05-06 Jeff Law <law@redhat.com>
3049
3050 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3051 remove_ctrl_stmt_and_useless_edges.
3052 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3053 (fixup_template_block, thread_single_edge): Likewise.
3054 (mark_threaded_blocks): Use THREAD_TARGET.
3055
3056 2011-05-06 Alan Modra <amodra@gmail.com>
3057
3058 PR target/48900
3059 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3060 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3061
3062 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3063
3064 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3065 constraint modifier to "r".
3066
3067 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3068
3069 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3070 fall through for OPT_mcmodel_.
3071
3072 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3073
3074 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3075 instruction sizes.
3076 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3077
3078 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3079
3080 PR target/47930
3081 * config/arm/arm.opt (marm): Document it.
3082 (mthumb): Reject negative variant.
3083
3084 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3085
3086 PR target/48898
3087 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3088 Fix typo in "ccvt" variable name.
3089
3090 2011-05-06 Tristan Gingold <gingold@adacore.com>
3091
3092 PR target/48895
3093 * config/vms/vms-ar.c (main): Remove cwd variable.
3094
3095 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3096
3097 PR debug/48902
3098 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3099
3100 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3101
3102 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3103 * gimplify.c (gimplify_switch_expr): Likewise.
3104 * omp-low.c (expand_omp_sections): Likewise.
3105 * tree-eh.c (lower_try_finally_switch): Likewise.
3106 (lower_eh_dispatch): Likewise.
3107 * tree.h (build_case_label): Declare.
3108 * tree.c (build_case_label): Define.
3109
3110 2011-05-05 Jason Merrill <jason@redhat.com>
3111
3112 PR c++/40975
3113 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3114 (copy_statement_list): Don't recurse.
3115 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3116 STATEMENT_LIST.
3117
3118 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3119
3120 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3121 through from -mfpu= handling.
3122 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3123
3124 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3125
3126 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3127 POST_MODIFY.
3128
3129 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3130
3131 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3132 for 11.31.
3133 (hppa[12]*-*-hpux11*): Ditto.
3134 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3135 * config/ia64/hpux-unix2003.h: New.
3136 * config/pa/pa-hpux1131.opt: New.
3137 * config/pa/pa-hpux1131.h: New.
3138 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3139 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3140 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3141
3142 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3143
3144 PR debug/48853
3145 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3146 instead of mode as 3rd argument to recursive call.
3147 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3148 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3149 VOIDmode.
3150 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3151 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3152 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3153 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3154
3155 2011-05-05 Julian Brown <julian@codesourcery.com>
3156
3157 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3158 parenthesis in D-register case.
3159
3160 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3161
3162 * opt-functions.awk (var_type_struct): Handle Enum options.
3163 * optc-gen.awk: Don't check range of variables of character type.
3164 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3165 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3166 rs6000_sdata_name, rs6000_explicit_options): Remove.
3167 (rs6000_option_override_internal): Check for -malign-power here.
3168 Use global_options_set instead of rs6000_explicit_options.
3169 (rs6000_parse_fpu_option): Remove.
3170 (rs6000_handle_option): Access variables via opts and opts_set
3171 pointers. Use error_at and warning_at. Add fall-through
3172 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3173 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3174 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3175 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3176 here. Don't use rs6000_parse_fpu_option.
3177 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3178 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3179 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3180 (mrecip=): Use Var.
3181 (mspe): Use Var and Save.
3182 (mtraceback=): Use Enum and Var.
3183 (rs6000_traceback_type): New Enum and EnumValue entries.
3184 (mfloat-gprs=): Use Enum, Var and Save.
3185 (rs6000_float_gprs): New Enum and EnumValue entries.
3186 (mlong-double-): use Var and Save.
3187 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3188 (malign-): Use Enum and Var.
3189 (rs6000_alignment_flags): New Enum and EnumValue entries.
3190 (mfpu=): Use Enum.
3191 (fpu_type_t): New Enum and EnumValue entries.
3192 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3193 global_options_set instead of rs6000_explicit_options.
3194 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3195 global_options_set instead of rs6000_explicit_options.
3196 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3197 global_options_set instead of rs6000_explicit_options.
3198 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3199 global_options_set instead of rs6000_explicit_options.
3200 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3201 global_options_set instead of rs6000_explicit_options.
3202 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3203 global_options_set instead of rs6000_explicit_options.
3204 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3205 definition.
3206 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3207 global_options_set instead of rs6000_explicit_options.
3208 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3209 (rs6000_cmodel): New Enum and EnumValue entries.
3210 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3211 global_options_set instead of rs6000_explicit_options.
3212 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3213 (mtls-size=): Use Enum and Var.
3214 (rs6000_tls_size): New Enum and EnumValue entries.
3215
3216 2011-05-05 Michael Matz <matz@suse.de>
3217
3218 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3219 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3220 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3221 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3222 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3223 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3224 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3225 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3226 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3227 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3228 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3229 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3230 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3231 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3232 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3233 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3234
3235 2011-05-05 Richard Guenther <rguenther@suse.de>
3236
3237 * expmed.c (expand_variable_shift): Rename to ...
3238 (expand_shift_1): ... this. Take an expanded shift amount.
3239 For rotates recurse directly not building trees for the shift amount.
3240 (expand_variable_shift): Wrap around expand_shift_1.
3241 (expand_shift): Adjust.
3242
3243 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3244
3245 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3246
3247 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3248
3249 * tree.h (get_pending_sizes): Remove prototype.
3250 (put_pending_size): Likewise.
3251 (put_pending_sizes): Likewise.
3252 * stor-layout.c (pending_sizes): Delete.
3253 (get_pending_sizes): Likewise.
3254 (put_pending_size): Likewise.
3255 (put_pending_sizes): Likewise.
3256 (variable_size): Do not call put_pending_size and tidy up.
3257 * function.h (struct function): Remove dont_save_pending_sizes_p.
3258 * lto-streamer-in.c (input_function): Do not stream it.
3259 * lto-streamer-out.c (output_function): Likewise.
3260 * tree-inline.c (initialize_cfun): Do not copy it.
3261 * c-decl.c (store_parm_decls): Do not set it.
3262 * omp-low.c (create_task_copyfn): Likewise.
3263 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3264
3265 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3266
3267 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3268 conditions.
3269 (*movdf_internal): Ditto.
3270 (*movdf_internal_nointeger): Ditto.
3271 (*movsf_internal): Ditto.
3272
3273 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3274
3275 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3276 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3277 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3278 (c_variable_size): Remove.
3279 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3280 call put_pending_sizes.
3281 (get_parm_info): Add parameter expr. Use it to set
3282 arg_info->pending_sizes.
3283 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3284 get_pending_sizes.
3285 * c-parser.c (c_parser_parms_declarator): Update call to
3286 c_parser_parms_list_declarator.
3287 (c_parser_parms_list_declarator): Take parameter expr. Update
3288 call to push_parm_decl. Update recursive call. Don't call
3289 get_pending_sizes. Update calls to get_parm_info.
3290 (c_parser_objc_method_definition): Update calls to
3291 c_parser_objc_method_decl and objc_start_method_definition.
3292 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3293 (c_parser_objc_method_decl): Add parameter expr. Update call to
3294 grokparm.
3295 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3296 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3297 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3298
3299 2011-05-05 Michael Hope <michael.hope@linaro.org>
3300
3301 PR pch/45979
3302 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3303 __ARM_EABI__ hosts.
3304
3305 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3306
3307 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3308 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3309 (spu_output_mi_thunk): New function.
3310
3311 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3312
3313 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3314 targetm.asm_out.print_operand.
3315 * config/sol2.c: Include target.h.
3316
3317 2011-05-04 Jan Hubicka <jh@suse.cz>
3318
3319 * ipa-inline.c (reset_edge_caches): New function.
3320 (update_caller_keys): Add check_inlinablity_for; do not
3321 reset edge caches; remove now unnecesary loop.
3322 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3323 (update_all_callee_keys): Likewise.
3324 (inline_small_functions): Sanity check cache; update code
3325 recomputing it.
3326
3327 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3328
3329 PR rtl-optimization/47612
3330 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3331 as the last insn of the sequence to be moved.
3332
3333 2011-05-04 Tobias Burnus <burnus@net-b.de>
3334
3335 PR fortran/48864
3336 * doc/invoke.texi (Ofast): Document that it
3337 enables Fortran's -fno-protect-parens.
3338
3339 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3340
3341 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3342
3343 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3344
3345 * stor-layout.c (variable_size): Do not issue errors.
3346
3347 2011-05-04 Richard Guenther <rguenther@suse.de>
3348
3349 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3350 for array-ref indices.
3351 (tree_coverage_counter_addr): Likewise.
3352 (build_fn_info_type): Use size_int for index types.
3353 (build_gcov_info): Likewise.
3354
3355 2011-05-04 Richard Guenther <rguenther@suse.de>
3356
3357 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3358 to build_int_cst.
3359 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3360 for constructor indices.
3361 (push_init_level): Likewise.
3362
3363 2011-05-04 Richard Guenther <rguenther@suse.de>
3364
3365 * explow.c (promote_mode): Move variable declarations before code.
3366
3367 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3368
3369 * tree.h (build_function_type_array): Declare.
3370 (build_varargs_function_type_array): Declare.
3371 (build_function_type_vec, build_varargs_function_type_vec): Define.
3372 * tree.c (build_function_type_array_1): New function.
3373 (build_function_type_array): New function.
3374 (build_varargs_function_type_array): New function.
3375
3376 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3377
3378 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3379 before setting STMT_VINFO_TYPE.
3380
3381 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3382
3383 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3384 instead of spu_pass_by_reference.
3385
3386 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3387
3388 * calls.c (emit_library_call_value_1): Invoke
3389 promote_function_mode hook on libcall arguments.
3390 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3391 argument being NULL.
3392 * targhooks.c (default_promote_function_mode): Lisewise.
3393 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3394 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3395
3396 * doc/tm.texi: Document that TYPE argument might be NULL.
3397
3398 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3399
3400 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3401
3402 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3403
3404 From Bernd Schmidt
3405 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3406
3407 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3408
3409 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3410 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3411 Move ...
3412 * mips-tfile.c: ... here.
3413 Don't include coretypes.h, tm.h, filenames.h.
3414 (saber_stop): Remove definition and all calls.
3415 [__SABER__]: Remove.
3416 (__LINE__): Remove default.
3417 (Size_t, Ptrdiff_t): Remove definitions.
3418 Replace by size_t, ptrdiff_t.
3419 [!MIPS_DEBUGGING_INFO]: Remove.
3420 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3421 (progname): Add const.
3422 (STATIC): Remove.
3423 Replace all uses by static.
3424 (ALIGN_SYMTABLE_OFFSET): Remove default.
3425 * mips-tdump.c: Don't include coretypes.h, tm.h.
3426 Remove !MIPS_IS_STAB guard.
3427 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3428 $(TM_H), filenames.h dependencies.
3429 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3430
3431 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3432
3433 From Jie Zhang
3434 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3435 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3436
3437 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3438
3439 From Bernd Schmidt
3440 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3441 account and save/restore RETS.
3442 (PROFILE_BEFORE_PROLOGUE): Define.
3443 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3444 the push insn to use predecrement.
3445
3446 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3447
3448 From Jie Zhang
3449 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3450
3451 2011-05-04 Nick Clifton <nickc@redhat.com>
3452
3453 * config/mn10300/mn10300.c: Include cfgloop.h.
3454 (DUMP): New macro.
3455 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3456 Lcc or a FLcc insn into the instruction stream.
3457 (mn10300_block_contains_call): New function. Returns true if the
3458 given basic block contains a CALL insn.
3459 (mn10300_loop_contains_call_insn): New function. Returns true if
3460 the given loop contains a CALL insn.
3461 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3462 to use the SETLB and Lcc or FLcc insns.
3463 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3464 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3465 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3466 disable the SETLB optimization.
3467 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3468 __SETLB__ or __NO_SETLB__.
3469 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3470 (movsf_internal): Handle MDR register.
3471 (cmpsi): Make visible.
3472 (setlb): New pattern.
3473 (Lcc): New pattern.
3474 (FLcc): New pattern.
3475
3476 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3477
3478 PR target/48860
3479 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3480 for reg<->xmm moves.
3481 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3482 (vec_concatv2di_rex64_sse): Ditto.
3483 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3484 (*vec_extractv2di_1_rex64): Ditto.
3485
3486 Revert:
3487 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3488
3489 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3490 reg<->xmm moves.
3491 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3492
3493 2011-05-04 Richard Guenther <rguenther@suse.de>
3494
3495 * tree.h (int_const_binop): Remove notrunc argument.
3496 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3497 create integer constants that are properly truncated.
3498 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3499 (const_binop): Remove zero notrunc argument to int_const_binop.
3500 (size_binop_loc): Likewise.
3501 (fold_div_compare): Likewise.
3502 (maybe_canonicalize_comparison_1): Likewise.
3503 (fold_comparison): Likewise.
3504 (fold_binary_loc): Likewise.
3505 (multiple_of_p): Likewise.
3506 * expr.c (store_constructor): Likewise.
3507 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3508 (maybe_fold_stmt_addition): Likewise.
3509 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3510 * stor-layout.c (layout_type): Likewise.
3511 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3512 * tree-sra.c (build_ref_for_offset): Likewise.
3513 (build_user_friendly_ref_for_offset): Likewise.
3514 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3515 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3516 * tree-ssa-loop-niter.c (inverse): Likewise.
3517 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3518 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3519 * tree-switch-conversion.c (check_range): Likewise.
3520 (build_constructors): Likewise.
3521 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3522 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3523 (extract_range_from_assert): Likewise.
3524 (vrp_int_const_binop): Likewise.
3525 (extract_range_from_binary_expr): Likewise.
3526 (extract_range_from_unary_expr): Likewise.
3527 (check_array_ref): Likewise.
3528 (find_case_label_range): Likewise.
3529 (simplify_div_or_mod_using_ranges): Likewise.
3530 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3531 comparing case labels for merging.
3532
3533 2011-05-03 Mark Wielaard <mjw@redhat.com>
3534
3535 * dwarf2out.c (debug_str_hash_forced): Removed.
3536 (gen_label_for_indirect_string): Removed.
3537 (get_debug_string_label): Removed.
3538 (AT_string_form): Generate label directly.
3539 (output_indirect_string): Test indirect_string_node for
3540 DW_FORM_strp instead of checking label and refcount.
3541 (prune_indirect_string): Removed.
3542 (prune_unused_types): Don't check debug_str_hash_forced or
3543 call prune_indirect_string.
3544
3545 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3546
3547 PR other/48093
3548 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3549
3550 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3551
3552 PR debug/47994
3553 PR debug/47919
3554 * combine.c (try_combine): Skip debug insns at m_split tests.
3555
3556 2011-04-26 Mark Wielaard <mjw@redhat.com>
3557
3558 PR42288
3559 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3560 when info_section_emitted.
3561
3562 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3563
3564 * config/mips/mips-opts.h: New.
3565 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3566 to mips-opts.h.
3567 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3568 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3569 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3570 via opts pointer.
3571 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3572 mips-opts.h.
3573 (mips_abi, mips_code_readable): Don't declare.
3574 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3575 (mabi=): Use Enum and Var.
3576 (mips_abi): New Enum and EnumValue entries.
3577 (mcode-readable=): Use Enum and Var.
3578 (mips_code_readable_setting): New Enum and EnumValue entries.
3579 (mr10k-cache-barrier=): Use Enum and Var.
3580 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3581
3582 2011-05-03 Jan Hubicka <jh@suse.cz>
3583
3584 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3585 replace hash by pointer map.
3586 (cgraph_node_set_element_def, cgraph_node_set_element,
3587 const_cgraph_node_set_element, varpool_node_set_element_def,
3588 varpool_node_set_element, const_varpool_node_set_element): Remove.
3589 (free_cgraph_node_set, free_varpool_node_set): New function.
3590 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3591 * tree-emutls.c: Free varpool node set.
3592 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3593 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3594 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3595 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3596 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3597 Move here from ipa.c; implement using pointer_map
3598 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3599 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3600 debug_cgraph_node_set, varpool_node_set_new,
3601 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3602 dump_varpool_node_set, debug_varpool_node_set):
3603 Move to ipa-uitls.c.
3604 * passes.c (ipa_write_summaries): Update.
3605
3606 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3607
3608 From Mike Frysinger:
3609 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3610 bf542/bf544/bf547/bf548/bf549.
3611
3612 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3613
3614 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3615
3616 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3617
3618 From Bernd Schmidt:
3619 * config/bfin/bfin.md (MOVCC): New mode_macro.
3620 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3621 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3622 comments from generated assembly.
3623
3624 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3625
3626 From Bernd Schmidt
3627 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3628 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3629 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3630 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3631 * config/bfin/lib1funcs.asm (___muldi3): New function.
3632
3633 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3634
3635 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3636 build_function_type_list instead of build_function_type.
3637 Rearrange initialization of `args' to do so.
3638
3639 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3640
3641 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3642 instead of build_function_type.
3643
3644 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3645
3646 * config/rs6000/rs6000.c (spe_init_builtins): Call
3647 build_function_type_list instead of build_function_type.
3648 (paired_init_builtins, altivec_init_builtins): Likewise.
3649 (builtin_function_type): Likewise.
3650
3651 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3652
3653 * config/sh/sh.c (sh_media_init_builtins): Call
3654 build_function_type_list instead of build_function_type.
3655
3656 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3657
3658 * config/sparc/sparc.c (sparc_file_end): Call
3659 build_function_type_list instead of build_function_type.
3660
3661 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3662
3663 * config/alpha/alpha.c (alpha_init_builtins): Call
3664 build_function_type_list instead of build_function_type.
3665
3666 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3667
3668 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3669 build_function_type_list instead of build_function_type.
3670
3671 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3672
3673 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3674 build_function_type_list instead of build_function_type.
3675 Delete `endlink' variable.
3676
3677 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3678
3679 * config/avr/avr.c (avr_init_builtins): Call
3680 build_function_type_list instead of build_function_type.
3681
3682 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3683
3684 * config/picochip/picochip.c (picochip_init_builtins): Call
3685 build_function_type_list instead of build_function_type.
3686 Delete `endlink' variable.
3687
3688 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3689
3690 * config/bfin/bfin.c (bfin_init_builtins): Call
3691 build_function_type_list instead of build_function_type.
3692
3693 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3694
3695 From Bernd Schmidt
3696 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3697 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3698
3699 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3700
3701 From Jie Zhang:
3702 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3703 libbffastfp overrides libgcc when -mfast-fp.
3704
3705 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3706
3707 Originally from Bernd Schmidt
3708 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3709 * config/bfin/bfin.c (override_options): Test it and error if
3710 TARGET_FDPIC.
3711
3712 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3713
3714 Originally From Bernd Schmidt
3715 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3716 FD-PIC.
3717
3718 2011-05-03 Jeff Law <law@redhat.com>
3719
3720 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3721 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3722 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3723 than accessing AUX field directly. Free the AUX field before
3724 clearing it.
3725 (thread_block, thread_through_loop_header): Likewise.
3726 (thread_single_edge, mark_threaded_blocks): Likewise.
3727 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3728 (register_jump_thread): Do not attempt to thread to a NULL edge.
3729
3730 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3731
3732 * function.c (init_function_start): Call decide_function_section.
3733 * varasm.c (decide_function_section): New function.
3734 (assemble_start_function): When not using
3735 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3736 or first_function_block_is_cold.
3737 * rtl.h (decide_function_section): Declare.
3738
3739 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3740 Jakub Jelinek <jakub@redhat.com>
3741
3742 PR target/48774
3743 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3744 only succeed if req_mode is the same as set_mode.
3745
3746 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3747
3748 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3749 * genemit.c (gen_exp): Handle RETURN.
3750 * emit-rtl.c (verify_rtx_sharing): Likewise.
3751 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3752 * rtl.c (copy_rtx): RETURN is shared.
3753 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3754 (ret_rtx): New.
3755 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3756 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3757 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3758 * config/cris/cris.c (cris_expand_return): Likewise.
3759 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3760 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3761 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3762 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3763 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3764 Likewise.
3765 * config/v850/v850.c (expand_epilogue): Likewise.
3766 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3767 * config/arm/arm.md (epilogue): Likewise.
3768 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3769 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3770 variable to ret_reg.
3771
3772 2011-05-03 Richard Guenther <rguenther@suse.de>
3773
3774 PR lto/48846
3775 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3776 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3777 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3778
3779 2011-05-03 Richard Guenther <rguenther@suse.de>
3780
3781 * c-decl.c (grokdeclarator): Instead of looking at
3782 TREE_OVERFLOW check if the constant fits in the index type.
3783
3784 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3785
3786 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3787 (vec_store_lanes<mode><mode>): Likewise.
3788
3789 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3790
3791 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3792 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3793 convert_optab_index values.
3794 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3795 * genopinit.c (optabs): Initialize the new optabs.
3796 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3797 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3798 (expand_STORE_LANES): New functions.
3799 * tree.h (build_array_type_nelts): Declare.
3800 * tree.c (build_array_type_nelts): New function.
3801 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3802 (vect_model_load_cost): Likewise.
3803 (vect_store_lanes_supported, vect_load_lanes_supported)
3804 (vect_record_strided_load_vectors): Declare.
3805 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3806 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3807 (vect_transform_strided_load): Split out statement recording into...
3808 (vect_record_strided_load_vectors): ...this new function.
3809 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3810 (write_vector_array, create_array_ref): New functions.
3811 (vect_model_store_cost): Add store_lanes_p argument.
3812 (vect_model_load_cost): Add load_lanes_p argument.
3813 (vectorizable_store): Try to use store-lanes functions for
3814 interleaved stores.
3815 (vectorizable_load): Likewise load-lanes and loads.
3816 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3817 to vect_model_store_cost.
3818 (vect_build_slp_tree): Likewise vect_model_load_cost.
3819
3820 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3821
3822 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3823 * hooks.c (hook_bool_mode_uhwi_false): New function.
3824 * target.def (array_mode_supported_p): New hook.
3825 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3826 * doc/tm.texi: Regenerate.
3827 * stor-layout.c (mode_for_array): New function.
3828 (layout_type): Use it.
3829 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3830 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3831
3832 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3833
3834 PR target/48723
3835 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3836 for -fstack-check if the size to allocate is negative.
3837
3838 2011-05-02 Lawrence Crowl <crowl@google.com>
3839
3840 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3841 (timevar_cond_start): New for starting a timer only when it is not
3842 already running.
3843 (timevar_cond_stop): New for stopping a timer when it was not already
3844 running.
3845
3846 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3847 (timevar_cond_start): New as above.
3848 (timevar_cond_stop): New as above.
3849
3850 * timevar.def: Add start/stop timers for compiler phases,
3851 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3852 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3853 and TV_PHASE_FINALIZE.
3854 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3855 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3856 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3857 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3858 Make unused TV_OVERLOAD into a start/stop timer.
3859
3860 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3861 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3862 to indicate that they are start/stop timers.
3863
3864 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3865 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3866 Move initialization to do_compile.
3867 (do_compile): Add initialization from above.
3868 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3869
3870 * c-decl.c (c_write_global_declarations): Add start/stop of
3871 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3872
3873 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3874 or TV_PARSE_INLINE, as appropriate.
3875 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3876 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3877
3878 2011-05-02 Jason Merrill <jason@redhat.com>
3879
3880 PR c++/40975
3881 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3882
3883 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3884
3885 PR c/35445
3886 * c-decl.c (finish_decl): Only create a composite if the types are
3887 compatible.
3888
3889 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3890
3891 * config/fr30/fr30-protos.h (Mmode): Don't define.
3892 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3893 definition where used.
3894 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3895 define. Expand definitions where used.
3896 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3897 Expand definitions where used.
3898 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3899 rx_function_arg, rx_function_arg_advance,
3900 rx_function_arg_boundary): Expand definitions of those macros.
3901 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3902 definition where used.
3903
3904 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3905
3906 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3907 reg<->xmm moves.
3908 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3909 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3910 with *movv2sf_internal_rex64_avx.
3911 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3912 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3913 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3914 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3915 "vex" in "prefix" attribute calculation.
3916 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3917
3918 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3919
3920 PR target/47951
3921 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3922 inputs match the output.
3923
3924 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3925
3926 PR target/47955
3927 * config/m68k/m68k.c (m68k_expand_prologue): Set
3928 current_function_static_stack_size.
3929
3930 2011-05-02 Jan Hubicka <jh@suse.cz>
3931
3932 * lto-streamer.c (lto_streamer_cache_insert_1,
3933 lto_streamer_cache_lookup, lto_streamer_cache_create,
3934 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3935 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3936
3937 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3938
3939 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3940 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3941 config/m68k/t-opts: New files.
3942 * config/m68k/m68k-tables.opt: New file (generated).
3943 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3944 extra_options and m68k/t-opts to tmake_file.
3945 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3946 (all_isas): Initialize using m68k-isas.def.
3947 (all_microarchs): Initialize using m68k-microarchs.def.
3948 (m68k_find_selection): Remove.
3949 (m68k_handle_option): Don't assert that global structures are in
3950 use. Use error_at. Access variables via opts pointer. Don't
3951 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3952 directly for -m68020-40 and -m68020-60.
3953 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3954 m68k_tune_entry here.
3955 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3956 to m68k-opts.h.
3957 (m68k_library_id_string): Remove declaration.
3958 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3959 (m68k_library_id_string): New Variable.
3960 (march=, mcpu=, mtune=): Use Enum and Var.
3961
3962 2011-05-02 Richard Guenther <rguenther@suse.de>
3963
3964 * varasm.c (output_constructor_regular_field): Compute zero-based
3965 index with double-ints. Make sure to ICE instead of producing
3966 wrong code.
3967 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3968 in asserts. Properly use a signed type.
3969
3970 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3971
3972 * config/i386/sse.md (V): New mode iterator.
3973 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3974 TARGET_SSE2.
3975 (V_256): Rename from AVX256MODE.
3976 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3977 condition to all users.
3978 (VF1): Ditto.
3979 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3980 condition to all users.
3981 (VF_128): Make V4SF mode unconditional.
3982 (VF_256): Rename from AVX256MODEF2P.
3983 (VI4F_128): Rename from SSEMODE4S.
3984 (VI8F_128): Rename from SSEMODE2D.
3985 (VI4F_256): Rename from AVX256MODE8P.
3986 (VI8F_256): Rename from AVX256MODE4P.
3987 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3988 (ssescalarmodesuffix): Remove SF and DF modes.
3989 (SSEMODE124): Remove.
3990 (SSEMODE1248): Ditto.
3991 (SSEMODEF2P): Ditto.
3992 (AVXMODEF2P): Ditto.
3993 (AVXMODEFDP): Ditto.
3994 (AVXMODEFSP): Ditto.
3995 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3996 unconditional.
3997 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3998 unconditional.
3999 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4000 xop_pcmov_<mode>256. Use V mode iterator.
4001
4002 Adjust RTX patterns globally for renamed mode attributes.
4003
4004 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4005
4006 * haifa-sched.c (sched_emit_insn): Emit insn before first
4007 non-scheduled insn. Inform back-end about new insn. Add
4008 new insn to scheduled_insns list.
4009
4010 2011-05-02 Richard Guenther <rguenther@suse.de>
4011
4012 PR tree-optimization/48822
4013 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4014 (process_scc): Indicate which iteration we start.
4015
4016 2011-05-02 Jan Hubicka <jh@suse.cz>
4017
4018 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4019 (lto_section_overrun): New.
4020 * lto-section-out.c (append_block): Rename to ...
4021 (lto_append_block): ... this one; export.
4022 (lto_output_1_stream): Move lto lto-streamer.h
4023 (lto_output_data_stream): Update.
4024 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4025 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4026 functions.
4027
4028 2011-05-02 Richard Guenther <rguenther@suse.de>
4029
4030 * tree.c (tree_code_counts): New global array.
4031 (record_node_allocation_statistics): Count individual tree codes.
4032 (dump_tree_statistics): Dump individual code stats.
4033
4034 2011-05-01 Jan Hubicka <jh@suse.cz>
4035
4036 * ipa-inline.c (caller_growth_limits): Fix thinko when
4037 looking for largest stack frame.
4038 * ipa-inline.h (dump_inline_summary): Declare.
4039 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4040 on stack usage.
4041 (dump_inline_summary): Export.
4042 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4043
4044 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4045
4046 * reginfo.c (memory_move_cost): Change rclass argument type form
4047 'enum reg_class' to reg_class_t.
4048 * reload.h (memory_move_cost): Update prototype.
4049 * postreload.c reload_cse_simplify_set): Change type dclass var to
4050 reg_class_t.
4051 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4052 Update prototype.
4053 (ira_allocate_and_set_costs): Change aclass argument type form
4054 'enum reg_class' to reg_class_t.
4055 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4056 Change aclass argument type to reg_class_t.
4057 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4058 to reg_class_t.
4059 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4060 memory_move_cost call.
4061
4062 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4063 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4064 Change type tmp var to reg_class_t.
4065
4066 2011-04-30 Jan Hubicka <jh@suse.cz>
4067
4068 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4069 inlining into function with flatten attribute.
4070 (want_inline_small_function_p): Be more realistic about inlining
4071 cold calls where callee size grows.
4072
4073 2011-04-30 Jan Hubicka <jh@suse.cz>
4074
4075 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4076 flags.
4077
4078 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4079
4080 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4081 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4082 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4083 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4084 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4085 (print_operand): Rename to...
4086 (sparc_print_operand): ...this. Make static. Adjust
4087 sparc_print_operand function call.
4088 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4089 functions.
4090
4091 2011-04-30 Jan Hubicka <jh@suse.cz>
4092
4093 PR middle-end/48752
4094 * ipa-inline.c (early_inliner): Disable when doing late
4095 addition of function.
4096
4097 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4098
4099 * dwarf2out.c (get_address_mode): New inline.
4100 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4101 if not dwarf_strict emit
4102 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4103 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4104 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4105 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4106 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4107 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4108 mem_loc_descriptor callers.
4109 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4110 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4111 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4112 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4113 (base_types): New variable.
4114 (get_base_type_offset, calc_base_type_die_sizes,
4115 base_type_for_mode, mark_base_types, base_type_cmp,
4116 move_marked_base_types): New functions.
4117 (calc_die_sizes): Assert that die_offset is 0 or equal to
4118 next_die_offset.
4119 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4120 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4121 callers. If not dwarf_strict, call mem_loc_descriptor even for
4122 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4123 (gen_subprogram_die): Don't give up on call site parameters
4124 with non-integral or large integral modes. Adjust
4125 mem_loc_descriptor callers.
4126 (prune_unused_types): Call prune_unused_types_mark on base_types
4127 vector entries.
4128 (resolve_addr): Call mark_base_types.
4129 (dwarf2out_finish): Call move_marked_base_types.
4130
4131 PR tree-optimization/48809
4132 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4133 type.
4134 (gen_inbound_check): Don't compute index_expr - range_min in utype
4135 again, instead reuse SSA_NAME initialized in build_arrays.
4136 Remove two useless gsi_for_stmt calls.
4137
4138 2011-04-29 Jeff Law <law@redhat.com>
4139
4140 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4141
4142 2011-04-29 Martin Jambor <mjambor@suse.cz>
4143
4144 * cgraph.h (cgraph_postorder): Remove declaration.
4145 * ipa-utils.h (ipa_free_postorder_info): Declare.
4146 (ipa_reverse_postorder): Likewise.
4147 * cgraphunit.c: Include ipa-utils.h.
4148 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4149 * ipa-inline.c: Include ipa-utils.h.
4150 (ipa_inline): Update call to ipa_reverse_postorder.
4151 * ipa-pure-const.c (propagate_pure_const): Update call to
4152 ipa_reduced_postorder and ipa_print_order. Call
4153 ipa_free_postorder_info to clean up.
4154 (propagate_nothrow): Likewise.
4155 * ipa-reference.c (propagate): Removed a useless call to
4156 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4157 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4158 * ipa.c: Include ipa-utils.h.
4159 (ipa_profile): Update call to ipa_reverse_postorder.
4160 (cgraph_postorder): Moved to...
4161 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4162 (ipa_utils_print_order): Renamed to ipa_print_order.
4163 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4164 comments.
4165 (ipa_free_postorder_info): New function.
4166 * passes.c: Include ipa-utils.h.
4167 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4168 (ipa_write_summaries): Likewise.
4169 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4170 (cgraphunit.o): Likewise.
4171 (ipa.o): Likewise.
4172 (ipa-inline.o): Likewise.
4173
4174 2011-04-29 Jan Hubicka <jh@suse.cz>
4175
4176 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4177 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4178 * ipa-inline.h (clause_t): Turn into unsigned int.
4179 * ipa-inline-analysis.c (add_clause): Do more simplification.
4180 (and_predicates): Shortcut more cases.
4181 (predicates_equal_p): Move forward; check that clauses are properly
4182 ordered.
4183 (or_predicates): Shortcut more cases.
4184 (edge_execution_predicate): Rewrite as...
4185 (set_cond_stmt_execution_predicate): ... this function; handle
4186 __builtin_constant_p.
4187 (set_switch_stmt_execution_predicate): New .
4188 (compute_bb_predicates): New.
4189 (will_be_nonconstant_predicate): Update TODO.
4190 (estimate_function_body_sizes): Use compute_bb_predicates
4191 and free them later, always try to estimate if stmt is constant.
4192 (estimate_time_after_inlining, estimate_size_after_inlining):
4193 Gracefully handle optimized out edges.
4194 (read_predicate): Fix off by one error.
4195
4196 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4197
4198 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4199
4200 2011-04-27 Xinliang David Li <davidxl@google.com>
4201
4202 * tree-profile.c (init_ic_make_global_vars): Set
4203 tls attribute on ic vars.
4204 * coverage.c (coverage_end_function): Initialize
4205 function_list with zero.
4206
4207 2011-04-29 Richard Guenther <rguenther@suse.de>
4208
4209 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4210 for the type of the result.
4211 (fold_builtin_isascii): Likewise.
4212 (fold_builtin_toascii): Use integer_type_node where appropriate.
4213 (fold_builtin_logb): Likewise.
4214 (fold_builtin_frexp): Likewise.
4215 (fold_builtin_strstr): Likewise.
4216 (fold_builtin_strpbrk): Likewise.
4217 (fold_builtin_fputs): Likewise.
4218 (fold_builtin_sprintf): Likewise.
4219 (fold_builtin_snprintf): Likewise.
4220 (fold_builtin_printf): Likewise.
4221 (do_mpfr_remquo): Use a proper type for the assigned constant.
4222 (do_mpfr_lgamma_r): Likewise.
4223 * dwarf2out.c (resolve_one_addr): Use size_int.
4224 * except.c (init_eh): Likewise.
4225 (assign_filter_values): Use integer_type_node for filter values.
4226 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4227 indices.
4228 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4229 for EH region numbers.
4230 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4231 for the shift amount.
4232
4233 2011-04-29 Richard Guenther <rguenther@suse.de>
4234
4235 * expr.h (expand_shift): Rename to ...
4236 (expand_variable_shift): ... this.
4237 (expand_shift): Take a constant shift amount.
4238 * expmed.c (expand_shift): Rename to ...
4239 (expand_variable_shift): ... this.
4240 (expand_shift): New wrapper around expand_variable_shift.
4241 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4242 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4243 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4244 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4245 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4246 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4247 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4248 emit_store_flag_1, emit_store_flag): Likewise.
4249 * builtins.c (expand_builtin_signbit): Likewise.
4250 * calls.c (load_register_parameters): Likewise.
4251 * function.c (assign_parm_setup_block): Likewise.
4252 * lower-subreg.c (resolve_shift_zext): Likewise.
4253 * optabs.c (widen_bswap, expand_abs_nojump,
4254 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4255 * spu/spu.c (spu_expand_extv): Likewise.
4256 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4257
4258 2011-04-29 Richard Guenther <rguenther@suse.de>
4259
4260 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4261 for the remapped region number.
4262 * predict.c (build_predict_expr): Use integer_type_node for the
4263 predict kind.
4264 * fold-const.c (fold_binary_loc): Use integer_type_node for
4265 the shift amount. Use a proper type for the PLUS_EXPR operand.
4266
4267 2011-04-29 Michael Matz <matz@suse.de>
4268
4269 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4270 other trees that just builtins.
4271 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4272
4273 2011-04-29 Richard Guenther <rguenther@suse.de>
4274
4275 * tree-nested.c (get_trampoline_type): Use size_int.
4276 (get_nl_goto_field): Likewise.
4277 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4278 for all indexes.
4279 (lower_eh_constructs_2): Likewise.
4280 (lower_resx): Likewise.
4281 (lower_eh_dispatch): Likewise.
4282 * tree-mudflap.c (mf_build_string): Use size_int.
4283 (mudflap_register_call): Use integer_type_node for the flag.
4284 (mudflap_enqueue_constant): Use size_int.
4285 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4286 instead of rebuilding it.
4287
4288 2011-04-29 Richard Guenther <rguenther@suse.de>
4289
4290 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4291 Handle OBJ_TYPE_REF.
4292 (find_func_aliases_for_call): Use it more consistently.
4293
4294 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4295
4296 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4297 (rank_for_schedule): Use it.
4298 (schedule_block): Set it.
4299
4300 2011-04-28 David Li <davidxl@google.com>
4301
4302 * tree.c (crc32_string): Use crc32_byte.
4303 (crc32_byte): New function.
4304 * tree.h (crc32_byte): New function.
4305 * gcov.c (read_graph_file): Handle new cfg_cksum.
4306 (read_count_file): Ditto.
4307 * profile.c (instrument_values): Ditto.
4308 (get_exec_counts): Ditto.
4309 (read_profile_edge_counts): Ditto.
4310 (compute_branch_probabilities): Ditto.
4311 (compute_value_histograms): Ditto.
4312 (branch_prob): Ditto.
4313 (end_branch_prob): Ditto.
4314 * coverage.c (read_counts_file): Ditto.
4315 (get_coverage_counts): Ditto.
4316 (tree_coverage_counter_addr): Ditto.
4317 (coverage_checksum_string): Ditto.
4318 (coverage_begin_output): Ditto.
4319 (coverage_end_function): Ditto.
4320 (build_fn_info_type): Ditto.
4321 (build_fn_info_value): Ditto.
4322 * libgcov.c (gcov_exit): Ditto.
4323 * gcov-dump.c (tag_function): Ditto.
4324 (compute_checksum): Remove.
4325
4326 2011-04-29 Alan Modra <amodra@gmail.com>
4327
4328 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4329 unspec plus offset. Tidy macho code.
4330
4331 2011-04-29 Martin Jambor <mjambor@suse.cz>
4332
4333 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4334 node instead of a decl. Update all callers.
4335 * cgraph.h: Update declaration.
4336
4337 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4338
4339 PR tree-optimization/48765
4340 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4341 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4342 to indicate if loop aware SLP is being used. Scan the statements
4343 and update the vectorization factor according to the type of
4344 vectorization before statement analysis.
4345 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4346 pass it to vect_analyze_loop_operations.
4347 (vectorizable_reduction): Set number of copies to 1 in case of pure
4348 SLP statement.
4349 * tree-vect-stmts.c (vectorizable_conversion,
4350 vectorizable_assignment, vectorizable_shift,
4351 vectorizable_operation, vectorizable_type_demotion,
4352 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4353 Likewise.
4354 (vectorizable_condition): Move the check that it is not SLP
4355 vectorization before the number of copies check.
4356 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4357 to vectorize the loop using SLP.
4358
4359 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4360
4361 PR middle-end/48597
4362 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4363 inline asm.
4364
4365 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4366
4367 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4368 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4369 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4370 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4371 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4372 linux*.h headers.
4373 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4374 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4375 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4376 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4377 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4378 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4379 REG_NAME.
4380 * config/i386/linux.h (REG_NAME): Don't define.
4381 * config/i386/linux64.h (REG_NAME): Don't define.
4382 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4383 Undefine before defining.
4384
4385 2011-04-28 Jan Hubicka <jh@suse.cz>
4386
4387 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4388 nonconstant_names array.
4389 (estimate_function_body_sizes): Build nonconstant_names array; handle
4390 BUILT_IN_CONSTANT_P.
4391
4392 2011-04-28 Richard Guenther <rguenther@suse.de>
4393
4394 PR bootstrap/48804
4395 Revert
4396 2011-04-28 Richard Guenther <rguenther@suse.de>
4397
4398 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4399 as late as possible.
4400
4401 2011-04-28 Richard Guenther <rguenther@suse.de>
4402
4403 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4404 (debug_constraint): Do it here.
4405 (dump_constraints): And here.
4406 (rewrite_constraints): And here.
4407 (dump_constraint_edge): Remove.
4408 (dump_constraint_graph): Rewrite to produce DOT output.
4409 (solve_constraints): Build succ graph as late as possible.
4410 Dump constraint graphs before and after solving.
4411
4412 2011-04-28 Richard Guenther <rguenther@suse.de>
4413
4414 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4415 New function split out from ...
4416 (find_func_aliases): ... here. Call it.
4417 (find_func_aliases_for_call): Likewise.
4418
4419 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4420
4421 * internal-fn.h (internal_fn_name_array): Declare.
4422 (internal_fn_flags_array): Likewise.
4423
4424 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4425
4426 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4427 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4428 Move from sse.md.
4429 (ssemodefsuffix): Remove.
4430 (ssevecmodesuffix): New mode attribute.
4431 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4432 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4433 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4434 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4435 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4436 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4437 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4438 ssemodesuffix mode attribute.
4439 (float splitters): Use ssevecmodesuffix mode attribute.
4440 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4441 (sseinsmode): Rename from avxvecmode.
4442 (avxsizesuffix): Rename from avxmodesuffix.
4443 (sseintvecmode): Rename from avxpermvecmode.
4444 (ssedoublevecmode): Rename from ssedoublesizemode.
4445 (ssehalfvecmode): Rename from avxhalfvecmode.
4446 (ssescalarmode): Rename from avxscalarmode.
4447 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4448 templates for ssemodesuffix mode attribute.
4449 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4450 mode attribute.
4451
4452 Adjust RTX patterns globally for renamed mode attributes.
4453
4454 2011-04-27 Jan Hubcika <jh@suse.cz>
4455
4456 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4457 * ipa-inline-analysis.c: Include alloc-pool.h.
4458 (edge_predicate_pool): New.
4459 (trye_predicate_p): New function
4460 (false_predicate_p): New function.
4461 (add_clause): Sanity check that false clauses are "optimized";
4462 never add clauses to predicate that is already known to be false.
4463 (and_predicate): Use flase_predicate_p.
4464 (evaulate_predicate): Rename to ...
4465 (evaluate_predicate): ... this one; update all callers; assert
4466 that false is not listed among possible truths.
4467 (dump_predicate): Use true_predicate_p.
4468 (account_size_time): Use false_predicate_p.
4469 (evaulate_conditions_for_edge): Rename to ...
4470 (evaluate_conditions_for_edge) ... this one.
4471 (edge_set_predicate): New function.
4472 (inline_edge_duplication_hook): Duplicate edge predicates.
4473 (inline_edge_removal_hook): Free edge predicates.
4474 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4475 (dump_inline_summary): Update.
4476 (estimate_function_body_sizes): Set edge predicates.
4477 (estimate_calls_size_and_time): Handle predicates.
4478 (estimate_callee_size_and_time): Update.
4479 (remap_predicate): Add toplev_predicate; update comment.
4480 (remap_edge_predicates): New function.
4481 (inline_merge_summary): Compute toplev predicate; update.
4482 (read_predicate): New function.
4483 (read_inline_edge_summary): Use it.
4484 (inline_read_section): Likewise.
4485 (write_predicate): New function.
4486 (write_inline_edge_summary): Use it.
4487 (inline_write_summary): Likewise.
4488 (inline_free_summary): Free alloc pool and edge summary vec.
4489
4490 2011-04-27 Richard Guenther <rguenther@suse.de>
4491
4492 * tree-ssa-structalias.c (changed_count): Remove.
4493 (changed): Use a bitmap.
4494 (unify_nodes): Adjust.
4495 (do_sd_constraint): Likewise.
4496 (do_ds_constraint): Likewise.
4497 (do_complex_constraint): Likewise.
4498 (solve_graph): Likewise.
4499
4500 2011-04-27 Jan Hubicka <jh@suse.cz>
4501
4502 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4503
4504 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4505
4506 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4507 (avx_vperm2f128_*_operand): Ditto.
4508 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4509 Use avx_vpermilp_parallel in insn condition.
4510 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4511 Use avx_vperm2f128_parallel in insn condition.
4512
4513 2011-04-27 Richard Guenther <rguenther@suse.de>
4514
4515 * Makefile.in (tree-ssa-structalias.o): Remove
4516 gt-tree-ssa-structalias.h dependency.
4517 (GTFILES): Remove tree-ssa-structalias.c.
4518 * tree.c (allocate_decl_uid): New function.
4519 (make_node_stat): Use it.
4520 (copy_node_stat): Likewise.
4521 * tree.h (allocate_decl_uid): Declare.
4522 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4523 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4524 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4525 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4526 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4527 (struct heapvar_map): Likewise.
4528 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4529 heapvar_insert): Likewise.
4530 (make_heapvar_for): Rename to ...
4531 (make_heapvar): ... this. Simplify.
4532 (fake_var_decl_obstack): New global var.
4533 (build_fake_var_decl): New function.
4534 (make_constraint_from_heapvar): Adjust.
4535 (handle_lhs_call): Likewise.
4536 (create_function_info_for): Likewise.
4537 (intra_create_variable_infos): Likewise.
4538 (init_alias_vars): Allocate fake_var_decl_obstack.
4539 (init_alias_heapvars, delete_alias_heapvars): Remove.
4540 (compute_points_to_sets): Do not call init_alias_heapvars.
4541 (ipa_pta_execute): Likewise.
4542 (delete_points_to_sets): Free fake_var_decl_obstack.
4543
4544 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4545
4546 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4547 (si_from_UTItype, si_to_UTItype): New functions.
4548 (__udivmodti4): Use them to implement type-punning.
4549 * config/spu/multi3.c (union qword_TItype): New data type.
4550 (si_from_TItype, si_to_TItype): New functions.
4551 (__multi3): Use them to implement type-punning.
4552
4553 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4554
4555 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4556
4557 2011-04-27 Jan Hubicka <jh@suse.cz>
4558
4559 * ipa-prop.c (function_insertion_hook_holder): New holder.
4560 (ipa_add_new_function): New function.
4561 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4562 Register/deregister holder.
4563
4564 2011-04-27 Richard Guenther <rguenther@suse.de>
4565
4566 PR tree-optimization/48772
4567 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4568
4569 2011-04-27 Richard Guenther <rguenther@suse.de>
4570
4571 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4572 TARGET_MEM_REF handling.
4573
4574 2011-04-27 Nick Clifton <nickc@redhat.com>
4575
4576 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4577 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4578 (REG_CLASS_NAMES): Likewise.
4579 (REG_CLASS_CONTENTS): Likewise.
4580 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4581 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4582 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4583 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4584 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4585 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4586 duplicate register classes.
4587 (frv_class_likely_spilled_p): Likewise.
4588 (frv_register_move_cost): Likewise.
4589
4590 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4591 end of the regno_reg_class array.
4592
4593 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4594
4595 PR c/48742
4596 * c-typeck.c (build_binary_op): Don't wrap arguments if
4597 int_operands is true.
4598
4599 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4600
4601 PR target/48767
4602 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4603 targetm.calls.must_pass_in_stack for void type.
4604
4605 2011-04-26 Jan Hubicka <jh@suse.cz>
4606
4607 * cgraphbuild.c (build_cgraph_edges): Update call
4608 of cgraph_create_edge and cgraph_create_indirect_edge.
4609 * cgraph.c (cgraph_create_edge_including_clones,
4610 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4611 cgraph_update_edges_for_call_stmt_node): Do not take nest
4612 argument; do not initialize call_stmt_size/time.
4613 (dump_cgraph_node): Do not dump nest.
4614 (cgraph_clone_edge): Do not take loop_nest argument;
4615 do not propagate it; do not clone call_stmt_size/time.
4616 (cgraph_clone_node): Likewise.
4617 (cgraph_create_virtual_clone): Update.
4618 * cgraph.h (struct cgraph_edge): Remove
4619 call_stmt_size/call_stmt_time/loop_nest.
4620 (cgraph_create_edge, cgraph_create_indirect_edge,
4621 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4622 prototype.
4623 * tree-emutls.c (gen_emutls_addr): Update.
4624 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4625 loop_nest; handle indirect calls, too.
4626 (clone_inlined_nodes): Do not care about updating inline summaries.
4627 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4628 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4629 stream call_stmt_size/call_stmt_time/loop_nest.
4630 * ipa-inline.c (edge_badness): Update.
4631 (ipa_inline): dump summaries after inlining.
4632 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4633 New.
4634 (inline_edge_summary): New function.
4635 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4636 (inline_edge_removal_hook): Handle edge summaries.
4637 (inline_edge_duplication_hook): New hook.
4638 (inline_summary_alloc): Alloc hooks.
4639 (initialize_growth_caches): Do not register removal hooks.
4640 (free_growth_caches); Do not free removal hook.
4641 (dump_inline_edge_summary): New function.
4642 (dump_inline_summary): Use it.
4643 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4644 (inline_update_callee_summaries): New function.
4645 (inline_merge_summary): Use it.
4646 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4647 (read_inline_edge_summary): New function.
4648 (inline_read_section): Use it.
4649 (write_inline_edge_summary): New function.
4650 (inline_write_summary): Use it.
4651 (inline_free_summary): Free edge new holders.
4652 * tree-inline.c (copy_bb): Update.
4653
4654 2011-04-26 Jason Merrill <jason@redhat.com>
4655
4656 * tree-eh.c (lower_try_finally_switch): Create the label along with
4657 the CASE_LABEL_EXPR.
4658
4659 2011-04-26 David S. Miller <davem@davemloft.net>
4660 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4661
4662 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4663 * configure: Regenerate.
4664
4665 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4666
4667 PR target/48258
4668 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4669 reduction.
4670 (VEC_reduc): New code iterator and splitters for vector reduction.
4671 (VEC_reduc_name): Ditto.
4672 (VEC_reduc_rtx): Ditto.
4673 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4674 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4675
4676 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4677 support for extracting SF on VSX.
4678
4679 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4680 generating xscvspdp.
4681 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4682 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4683 double add, minimum, maximum vector reduction.
4684 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4685 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4686 optimize double vector reduction.
4687 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4688
4689 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4690
4691 * config/fr30/fr30.h (inhibit_libc): Don't define.
4692 * config/m32r/m32r-protos.h: Correct comment.
4693 * config/v850/v850.h (GHS_default_section_names,
4694 GHS_current_section_names): Use tree, not union tree_node *.
4695
4696 2011-04-26 Xinliang David Li <davidxl@google.com>
4697
4698 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4699 * c-family/c-opts.c (c_common_handle_option): Set
4700 warn_maybe_uninitialized.
4701 * opts.c (common_handle_option): Ditto.
4702 * common.opt: New option.
4703 * tree-ssa.c (warn_uninit): Add one more parameter.
4704 (warn_uninitialized_var): Pass warning code.
4705 * tree-flow.h: Interface change.
4706
4707 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4708
4709 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4710 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4711 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4712
4713 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4714
4715 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4716 * config/mips/mips.opt (mmips-tfile): Remove.
4717
4718 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4719 mips-tdump reference to ...
4720 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4721 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4722 reference by Tru64 UNIX.
4723
4724 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4725
4726 PR debug/48768
4727 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4728 is error_mark_node, set value to NULL.
4729
4730 PR tree-optimization/48734
4731 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4732 if return value from maybe_fold_*_comparsions isn't something
4733 the code is prepared to handle.
4734
4735 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4736
4737 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4738 mode check.
4739 (ext_QIreg_nomode_operands): Remove.
4740 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4741 (*andsi_1): Ditto.
4742 (*andhi_1): Ditto.
4743
4744 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4745
4746 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4747
4748 2011-04-26 Richard Guenther <rguenther@suse.de>
4749
4750 * c-typeck.c (build_unary_op): Do not expand array-refs via
4751 pointer arithmetic. Only adjust qualifiers for function types.
4752
4753 2011-04-26 Richard Guenther <rguenther@suse.de>
4754
4755 PR middle-end/48694
4756 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4757 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4758 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4759 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4760
4761 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4762
4763 * doc/extend.texi: Document __underlying_type.
4764
4765 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4766
4767 * config/rs6000/titan.md (automata_option "progress"): Remove.
4768
4769 2011-04-25 Jeff Law <law@redhat.com>
4770
4771 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4772
4773 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 * system.h (ENUM_BITFIELD): Remove.
4776
4777 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4778 Eric Botcazou <ebotcazou@adacore.com>
4779
4780 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4781 for STORE_FLAG_VALUE==-1 case.
4782
4783 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4784
4785 PR target/43804
4786 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4787 LEGITIMATE_PIC_OPERAND_P.
4788
4789 2011-04-24 Jan Hubicka <jh@suse.cz>
4790
4791 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4792 WPA hack.
4793 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4794 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4795 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4796 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4797 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4798 Sanity check predicate length.
4799 (remap_predicate): Likewise; sanity check jump functions.
4800 (inline_read_section, inline_write_summary): Sanity check
4801 predicate length.
4802
4803 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4804
4805 PR other/48748
4806 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4807 __is_literal_type, and __is_trivial; update throughout about
4808 possibly cv-qualified void types.
4809
4810 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4811
4812 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4813 testsuite and make it version agnostic.
4814
4815 2011-04-22 Jan Hubicka <jh@suse.cz>
4816
4817 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4818
4819 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4820
4821 PR c/48685
4822 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4823 to VOID_TYPE even around MODIFY_EXPR.
4824
4825 2011-04-22 Mike Stump <mikestump@comcast.net>
4826
4827 * gensupport.c (read_md_rtx): Fix typo in comment.
4828 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4829 comment.
4830
4831 2011-04-22 Jan Hubicka <jh@suse.cz>
4832
4833 * gengtype.c (open_base_files): Add ipa-inline.h include.
4834 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4835 ipa-prop.c; update all uses.
4836 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4837 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4838 merge summary of inlined function into former caller.
4839 * ipa-inline.c (max_benefit): Remove.
4840 (edge_badness): Compensate for removal of benefits.
4841 (update_caller_keys): Use
4842 reset_node_growth_cache/reset_edge_growth_cache.
4843 (update_callee_keys): Likewise.
4844 (update_all_callee_keys): Likewise.
4845 (inline_small_functions): Do not collect max_benefit; do not reset
4846 estimated_growth; call free_growth_caches and initialize_growth_caches.
4847 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4848 struct size_time_entry): New structures.
4849 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4850 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4851 and estimated_growth.
4852 (edge_growth_cache_entry): New structure.
4853 (node_growth_cache, edge_growth_cache): New global vars.
4854 (estimate_growth): Turn into inline.
4855 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4856 initialize_growth_caches, free_growth_caches): Declare.
4857 (estimate_edge_growth): Rewrite.
4858 (estimate_edge_time): Implement as inline cache lookup.
4859 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4860 functions.
4861 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4862 (NUM_CONDITIONS): New constant.
4863 (predicate_conditions): New enum.
4864 (IS_NOT_CONSTANT): New constant.
4865 (edge_removal_hook_holder): New var.
4866 (node_growth_cache, edge_growth_cache): New global vars.
4867 (true_predicate, single_cond_predicate, false_predicate,
4868 not_inlined_predicate, add_condition, add_clause, and_predicates,
4869 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4870 dump_clause, dump_predicate, account_size_time,
4871 evaulate_conditions_for_edge): New functions.
4872 (inline_summary_alloc): Move to heap.
4873 (inline_node_removal_hook): Clear condition and entry vectors.
4874 (inline_edge_removal_hook): New function.
4875 (initialize_growth_caches, free_growth_caches): New function.
4876 (dump_inline_summary): Update.
4877 (edge_execution_predicate): New function.
4878 (will_be_nonconstant_predicate): New function.
4879 (estimate_function_body_sizes): Compute BB and constantness predicates.
4880 (compute_inline_parameters): Do not clear estimated_growth.
4881 (estimate_edge_size_and_time): New function.
4882 (estimate_calls_size_and_time): New function.
4883 (estimate_callee_size_and_time): New function.
4884 (remap_predicate): New function.
4885 (inline_merge_summary): New function.
4886 (do_estimate_edge_time): New function based on...
4887 (estimate_edge_time): ... this one.
4888 (do_estimate_edge_growth): New function.
4889 (do_estimate_growth): New function based on....
4890 (estimate_growth): ... this one.
4891 (inline_analyze_function): Analyze after deciding on jump functions.
4892 (inline_read_section): New function.
4893 (inline_read_summary): Use it.
4894 (inline_write_summary): Write all the new data.
4895 * ipa-prop.c (ipa_get_param_decl_index): Export.
4896 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4897 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4898 Declare.
4899 (ipa_get_lattice): Move here from ipa-cp.c
4900 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4901 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4902 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4903 cgraph_edge_inlinable_p): Remove.
4904 * cgraphunit.c: Include ipainline.h
4905 (cgraph_process_new_functions): Update call of
4906 compute_inline_parameters.
4907
4908 2011-04-22 Richard Guenther <rguenther@suse.de>
4909
4910 * tree.c (build_int_cst): Properly create canonicalized integer
4911 constants.
4912 (build_int_cst_type): Remove scary comments.
4913
4914 2011-04-22 Xinliang David Li <davidxl@google.com>
4915
4916 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4917 by default when -Wno-error is not specified.
4918 * opts-global.c (decode_options): Remove call to
4919 control_warning_options.
4920
4921 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR tree-optimization/48717
4924 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4925 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4926
4927 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4928
4929 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4930 definition where used.
4931
4932 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4933
4934 PR c/48716
4935 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4936 TREE_STATIC variables declared inside of some OpenMP construct.
4937
4938 2011-04-22 Martin Jambor <mjambor@suse.cz>
4939
4940 PR middle-end/48585
4941 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4942
4943 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4944
4945 PR c/36750
4946 * c-typeck.c (pop_init_level): Do not warn about initializing
4947 with ` = {0}'.
4948
4949 2011-04-22 Alan Modra <amodra@gmail.com>
4950
4951 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4952 when returning call_cookie.
4953 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4954 pointers, to functions with no more vector args than the current
4955 function, and some non-local calls for ABI_V4.
4956 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4957 sibcall_nonlocal_aix64): Combine to ..
4958 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4959 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4960 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4961 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4962 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4963 operand.
4964 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4965 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4966 sibcall_value_symbolic_64): Delete.
4967
4968 2011-04-21 Xinliang David Li <davidxl@google.com>
4969
4970 * cgraph.h: Remove pid.
4971 * cgraph.c: Remove pid.
4972 * value-prof.c (init_node_map): New function.
4973 (del_node_map): New function.
4974 (find_func_by_funcdef_no): New function.
4975 (gimple_ic_transform): Call new function.
4976 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4977 * function.c (get_last_funcdef_no): New function.
4978 * function.h (get_last_funcdef_no): New function.
4979 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4980 to libgcov function.
4981 (tree-profiling): Call node map init and delete function.
4982
4983 2011-04-21 Ian Lance Taylor <iant@google.com>
4984
4985 * godump.c (go_format_type): Use exported Go name for anonymous
4986 field name.
4987
4988 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4989
4990 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4991 Call builtin_function_type_list instead of builtin_function_type.
4992 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4993
4994 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4995
4996 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4997 build_function_type_list instead of build_function_type.
4998 Delete variable `endlink'.
4999
5000 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5001
5002 * config/s390/s390.c (s390_init_builtins): Call
5003 build_function_type_list instead of build_function_type.
5004
5005 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5006
5007 * config/ia64/ia64.c (ia64_init_builtins): Call
5008 build_function_type_list instead of builtin_function_type.
5009
5010 2011-04-21 Easwaran Raman <eraman@google.com>
5011
5012 * cfgexpand.c (stack_var): Remove OFFSET...
5013 (add_stack_var): ...and its reference here...
5014 (expand_stack_vars): ...and here.
5015 (stack_var_cmp): Sort by descending order of size.
5016 (partition_stack_vars): Change heuristic.
5017 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5018 (dump_stack_var_partition): Add newline after each partition.
5019
5020 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5021 Jeff Law <law@redhat.com>
5022
5023 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5024 * gengtype.c (matching_file_name_substitute): Likewise.
5025
5026 2011-04-21 Richard Guenther <rguenther@suse.de>
5027
5028 PR lto/48703
5029 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5030
5031 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5032
5033 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5034
5035 2011-04-21 Richard Guenther <rguenther@suse.de>
5036
5037 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5038 file name.
5039
5040 2011-04-21 Richard Guenther <rguenther@suse.de>
5041
5042 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5043 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5044 Use DECL_P, not SSA_VAR_P.
5045 (ptr_derefs_may_alias_p): Likewise.
5046 (ptr_deref_may_alias_ref_p_1): Likewise.
5047 (decl_refs_may_alias_p): Likewise.
5048 (refs_may_alias_p_1): Likewise.
5049 (ref_maybe_used_by_call_p_1): Likewise.
5050 (call_may_clobber_ref_p_1): Likewise.
5051 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5052 are either MEM_REF or TARGET_MEM_REF.
5053 (indirect_refs_may_alias_p): Likewise.
5054 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5055 for MEM_EXPR of indirect calls.
5056
5057 2011-04-21 Tristan Gingold <gingold@adacore.com>
5058
5059 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5060 (dst_file_info_struct): Remove flen field.
5061 (lookup_filename): Remove code that set flen field.
5062
5063 2011-04-21 Tristan Gingold <gingold@adacore.com>
5064
5065 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5066
5067 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5068
5069 PR target/48708
5070 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5071 vec_extract and vec_concat for non-SSE4_1 targets.
5072
5073 2011-04-21 Richard Guenther <rguenther@suse.de>
5074
5075 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5076 return statements.
5077
5078 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5079
5080 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5081 undefine.
5082 (FILE): Don't undefine.
5083
5084 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5085
5086 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5087 struct rtx_def *.
5088 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5089 struct rtx_def *.
5090 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5091 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5092 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5093 rtx_def *.
5094 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5095 definitions where used.
5096 * config/microblaze/microblaze.h (struct microblaze_args): Use
5097 rtx, not struct rtx_def *.
5098 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5099 rtx_def *.
5100 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5101 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5102 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5103 not struct rtx_def *.
5104 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5105 struct rtx_def *.
5106 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5107 rtx_def *.
5108 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5109
5110 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5111
5112 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5113 operand_equal_p to compare DR_BASE_ADDRESSes.
5114 (vect_check_interleaving): Likewise.
5115
5116 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5117
5118 PR target/46329
5119 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5120 for all Neon struct constants.
5121
5122 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5123
5124 * target.def (legitimate_constant_p): New hook.
5125 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5126 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5127 * doc/tm.texi: Regenerate.
5128 * hooks.h (hook_bool_mode_rtx_true): Declare.
5129 * hooks.c (hook_bool_mode_rtx_true): Define.
5130 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5131 * calls.c (precompute_register_parameters): Replace uses of
5132 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5133 (emit_library_call_value_1): Likewise.
5134 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5135 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5136 * ira-costs.c (scan_one_insn): Likewise.
5137 * recog.c (general_operand, immediate_operand): Likewise.
5138 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5139 * reload1.c (init_eliminable_invariants): Likewise.
5140
5141 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5142 mode argument.
5143 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5144 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5145 argument.
5146 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5147 * config/alpha/predicates.md (input_operand): Update call to
5148 alpha_legitimate_constant_p.
5149
5150 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5151 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5152 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5153 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5154 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5155 (arm_legitimate_constant_p): New functions.
5156 (arm_cannot_force_const_mem): Make static.
5157
5158 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5159
5160 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5161 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5162 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5163 instead of bfin_legitimate_constant_p.
5164 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5165 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5166
5167 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5168
5169 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5170
5171 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5172 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5173 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5174 (frv_legitimate_constant_p): Make static. Add a mode argument.
5175
5176 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5177 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5178 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5179
5180 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5181 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5182 * config/i386/i386.c (legitimate_constant_p): Rename to...
5183 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5184 argument.
5185 (ix86_cannot_force_const_mem): Update accordingly.
5186 (ix86_legitimate_address_p): Likewise.
5187 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5188 * config/i386/i386.md: Update commentary.
5189
5190 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5191 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5192 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5193 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5194
5195 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5196
5197 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5198 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5199 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5200 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5201
5202 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5203 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5204 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5205
5206 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5207 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5208 (m32r_legitimate_constant_p): New function.
5209
5210 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5211 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5212 LEGITIMATE_CONSTANT_P.
5213 (LEGITIMATE_CONSTANT_P): Delete.
5214 * config/m68k/m68k.c (m68k_expand_prologue): Call
5215 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5216 (m68k_legitimate_constant_p): New function.
5217 * config/m68k/m68k.md: Update comments.
5218
5219 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5220 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5221 (mcore_legitimate_constant_p): New function.
5222
5223 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5224 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5225 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5226 Add a mode argument.
5227 (mep_legitimate_address): Update accordingly.
5228 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5229
5230 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5231 Delete.
5232 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5233 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5234 static. Check OP's mode for VOIDmode.
5235 (microblaze_legitimate_constant_p): New function.
5236 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5237
5238 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5239 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5240 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5241 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5242 * config/mips/predicates.md: Update comments.
5243
5244 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5245 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5246 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5247 (mmix_legitimate_constant_p): Make static, return a bool, and take
5248 a mode argument.
5249 (mmix_print_operand_address): Update accordingly.
5250
5251 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5252 Delete.
5253 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5254 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5255 static. Add a mode argument.
5256 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5257
5258 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5259
5260 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5261 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5262 (pa_legitimate_constant_p): New function.
5263
5264 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5265
5266 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5267 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5268 (pdp11_legitimate_constant_p): New function.
5269
5270 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5271 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5272 (rs6000_legitimate_constant_p): New function.
5273
5274 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5275 (rx_legitimate_constant_p): ...this.
5276 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5277 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5278 (rx_legitimate_constant_p): ...this.
5279 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5280 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5281
5282 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5283 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5284 * config/s390/s390.c (legitimate_constant_p): Rename to...
5285 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5286 and add a mode argument.
5287 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5288
5289 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5290
5291 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5292 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5293 (sh_legitimate_constant_p): New function.
5294
5295 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5296 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5297 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5298 (legitimate_constant_p): Rename to...
5299 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5300 argument.
5301 (constant_address_p): Update accordingly.
5302
5303 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5304 argument and return a bool.
5305 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5306 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5307 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5308 (spu_rtx_costs): Update accordingly.
5309 * config/spu/predicates.md (vec_imm_operand): Likewise.
5310
5311 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5312
5313 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5314 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5315 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5316
5317 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5318 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5319 * config/vax/vax.c (legitimate_constant_p): Likewise.
5320
5321 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5322 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5323 (xtensa_legitimate_constant_p): New function.
5324
5325 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5326
5327 * target.def (cannot_force_const_mem): Add a mode argument.
5328 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5329 * doc/tm.texi: Regenerate.
5330 * hooks.h (hook_bool_mode_rtx_false): Declare.
5331 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5332 (hook_bool_mode_const_rtx_true): Likewise.
5333 (hook_bool_mode_rtx_false): New function.
5334 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5335 to be non-VOID. Update call to cannot_force_const_mem.
5336 (find_reloads): Update accordingly.
5337 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5338 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5339 argument.
5340 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5341 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5342 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5343 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5344 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5345 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5346 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5347 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5348 (m68k_cannot_force_const_mem): ...this new function.
5349 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5350 argument.
5351 (mips_const_insns, mips_legitimize_const_move): Update calls.
5352 (mips_secondary_reload_class): Likewise.
5353 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5354 (pa_cannot_force_const_mem): ...this new function.
5355 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5356 (rs6000_cannot_force_const_mem): ...this new function.
5357 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5358 argument.
5359 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5360 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5361 to...
5362 (xtensa_cannot_force_const_mem): ...this new function.
5363
5364 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5365
5366 * config/mips/mips.c (mips16_build_function_stub): Call
5367 build_function_type_list instead of build_function_type.
5368 (mips16_build_call_stub): Likewise.
5369
5370 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5371
5372 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5373 instead of build_function_type.
5374
5375 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5376
5377 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5378 instead of build_function_type.
5379
5380 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5381
5382 PR target/48678
5383 * config/i386/i386.md (insv): Change operand 0 constraint to
5384 "register_operand". Change operand 1 and 2 constraint to
5385 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5386 * config/i386/sse.md (sse4_1_pinsrb): Export.
5387 (sse2_pinsrw): Ditto.
5388 (sse4_1_pinsrd): Ditto.
5389 (sse4_1_pinsrq): Ditto.
5390 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5391 * config/i386/i386.c (ix86_expand_pinsr): New.
5392
5393 2011-04-20 Easwaran Raman <eraman@google.com>
5394
5395 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5396 containing union type only with -fstrict-aliasing.
5397
5398 2011-04-20 Jim Meyering <meyering@redhat.com>
5399
5400 Remove useless if-before-free tests.
5401 * calls.c (expand_call, save_area): Likewise.
5402 * cfgcleanup.c (try_forward_edges): Likewise.
5403 * collect2.c (collect_execute): Likewise.
5404 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5405 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5406 * coverage.c (coverage_checksum_string): Likewise.
5407 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5408 * cselib.c (cselib_init): Likewise.
5409 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5410 (df_set_clean_cfg): Likewise.
5411 * function.c (free_after_compilation): Likewise.
5412 * gcc.c (do_spec_1, main): Likewise.
5413 * gcov.c (create_file_names): Likewise.
5414 * gensupport.c (identify_predicable_attribute): Likewise.
5415 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5416 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5417 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5418 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5419 * ipa-pure-const.c (local_pure_const): Likewise.
5420 * ipa-reference.c (propagate): Likewise.
5421 * ira-costs.c (free_ira_costs): Likewise.
5422 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5423 * matrix-reorg.c (mat_free): Likewise.
5424 * prefix.c (get_key_value): Likewise.
5425 * profile.c (compute_value_histograms): Likewise.
5426 * reload1.c (free_reg_equiv): Likewise.
5427 * sched-deps.c (free_deps): Likewise.
5428 * sel-sched-ir.c (fence_clear): Likewise.
5429 * sese.c (set_rename, if_region_set_false_region): Likewise.
5430 * tree-data-ref.c (free_rdg): Likewise.
5431 * tree-eh.c (lower_try_finally): Likewise.
5432 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5433 * tree-ssa-live.c (delete_var_map): Likewise.
5434 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5435 * tree-ssa-pre.c (phi_trans_add): Likewise.
5436
5437 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5438
5439 PR tree-optimization/48611
5440 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5441 beyond ERT_MUST_NOT_THROW region.
5442
5443 2011-04-20 Catherine Moore <clm@codesourcery.com>
5444
5445 * config/mips/mips.opt (mfix-24k): New.
5446 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5447 * config/mips/mips.md (length): Increase by 4 for stores if
5448 fixing 24K errata.
5449 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5450 all noreorder if fixing 24K errata.
5451 * doc/invoke.texi: Document mfix-24k.
5452
5453 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5454
5455 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5456 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5457
5458 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5459
5460 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5461 (const_ok_for_op): ... to here.
5462
5463 2011-04-20 Kai Tietz <ktietz@redhat.com>
5464
5465 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5466 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5467
5468 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5469
5470 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5471
5472 2011-04-20 Richard Guenther <rguenther@suse.de>
5473
5474 PR tree-optimization/47892
5475 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5476 are if-convertible.
5477
5478 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5479
5480 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5481
5482 2011-04-20 Tristan Gingold <gingold@adacore.com>
5483
5484 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5485
5486 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5487
5488 PR target/18145
5489
5490 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5491 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5492 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5493 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5494 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5495
5496 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5497 New prototype.
5498
5499 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5500 (avr_asm_named_section, avr_asm_output_aligned_common,
5501 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5502 New functions to update...
5503 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5504 (avr_asm_init_sections): Overwrite section callbacks for
5505 data_section, bss_section.
5506 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5507 from here to...
5508 (avr_file_end): ...here.
5509
5510 2011-04-20 Richard Guenther <rguenther@suse.de>
5511
5512 PR middle-end/48695
5513 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5514 objects and types here. Adjust for their offset before comparing.
5515
5516 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5517
5518 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5519 statement per copy.
5520
5521 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5522
5523 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5524 (GIMPLE_H): Include $(INTERNAL_FN_H).
5525 (OBJS-common): Add internal-fn.o.
5526 (internal-fn.o): New rule.
5527 * internal-fn.def: New file.
5528 * internal-fn.h: Likewise.
5529 * internal-fn.c: Likewise.
5530 * gimple.h: Include internal-fn.h.
5531 (GF_CALL_INTERNAL): New gf_mask.
5532 (gimple_statement_call): Put fntype into a union with a new
5533 internal_fn field.
5534 (gimple_build_call_internal): Declare.
5535 (gimple_build_call_internal_vec): Likewise.
5536 (gimple_call_same_target_p): Likewise.
5537 (gimple_call_internal_p): New function.
5538 (gimple_call_internal_fn): Likewise.
5539 (gimple_call_fntype): Return null for internal calls.
5540 (gimple_call_set_fntype): Assert that the function is not internal.
5541 (gimple_call_set_fn): Likewise.
5542 (gimple_call_set_fndecl): Likewise.
5543 (gimple_call_set_internal_fn): New function.
5544 (gimple_call_addr_fndecl): Handle null functions.
5545 (gimple_call_return_type): Likewise null types.
5546 * gimple.c (gimple_build_call_internal_1): New function.
5547 (gimple_build_call_internal): Likewise.
5548 (gimple_build_call_internal_vec): Likewise.
5549 (gimple_call_same_target_p): Likewise.
5550 (gimple_call_flags): Handle calls to internal functions.
5551 (gimple_call_fnspec): New function.
5552 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5553 (gimple_has_side_effects): Handle null functions.
5554 (gimple_rhs_has_side_effects): Likewise.
5555 (gimple_call_copy_skip_args): Handle calls to internal functions.
5556 * cfgexpand.c (expand_call_stmt): Likewise.
5557 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5558 * gimple-fold.c (gimple_fold_call): Handle null functions.
5559 (gimple_fold_stmt_to_constant_1): Don't fold
5560 calls to internal functions.
5561 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5562 functions.
5563 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5564 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5565 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5566 (do_warn_unused_result): Likewise.
5567 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5568 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5569 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5570 the target of a call.
5571 (initialize_hash_element): Update accordingly.
5572 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5573 (iterative_hash_hashable_expr): Handle calls to internal functions.
5574 (print_expr_hash_elt): Likewise.
5575 * tree-ssa-pre.c (can_value_number_call): Likewise.
5576 (eliminate): Handle null functions.
5577 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5578 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5579 (find_func_aliases): Likewise.
5580 * value-prof.c (gimple_ic_transform): Likewise.
5581 (gimple_indirect_call_to_profile): Likewise.
5582 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5583 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5584
5585 2011-04-19 Jan Hubicka <jh@suse.cz>
5586
5587 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5588 * ipa-inline.c (inline_small_functions): Compute summaries first,
5589 populate heap later.
5590
5591 2011-04-19 Jan Hubicka <jh@suse.cz>
5592
5593 * cgraph.h (save_inline_function_body): Remove.
5594 * ipa-inline-transform.c: New file, broke out of...
5595 * ipa-inline.c: ... this one; Update toplevel comment.
5596 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5597 make global.
5598 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5599 (cgraph_mark_inline_edge): Rename to inline_call; move to
5600 ipa-inline-transform.c.
5601 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5602 move to ipa-inline-transform.c
5603 (recursive_inlining, inline_small_functions, flatten_function,
5604 ipa_inline, inline_always_inline_functions,
5605 early_inline_small_functions): Update.
5606 (inline_transform): Move to ipa-inline-transform.c.
5607 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5608 Declare.
5609 * Makefile.in (ipa-inline-transform.o): New file.
5610 * cgraphunit.c (save_inline_function_body): Move to
5611 ipa-inline-transform.c
5612
5613 2011-04-19 DJ Delorie <dj@redhat.com>
5614
5615 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5616 registers if we already know there aren't any.
5617 (m32c_emit_epilogue): Don't emit a barrier here.
5618 (m32c_emit_eh_epilogue): Likewise.
5619 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5620 operands at expand time.
5621 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5622 int" wchar type.
5623 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5624 duplicates. Provide aliases instead.
5625 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5626 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5627 the compiler.
5628
5629 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5630
5631 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5632 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5633 (general_or_i64_p, sparc_register_move_cost): New function.
5634
5635 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5636
5637 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5638 Add lynx, mipssde. Sort table.
5639
5640 2011-04-19 Xinliang David Li <davidxl@google.com>
5641
5642 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5643 not negative.
5644
5645 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5646
5647 PR target/48678
5648 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5649 is a SUBREG with non-MODE_INT mode inside of it.
5650
5651 2011-04-19 Martin Jambor <mjambor@suse.cz>
5652
5653 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5654 also according to actual contants.
5655 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5656 (gimple_fold_call): Use it.
5657 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5658
5659 2011-04-19 Martin Jambor <mjambor@suse.cz>
5660
5661 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5662 non-pointer assignments.
5663
5664 2011-04-19 Martin Jambor <mjambor@suse.cz>
5665
5666 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5667 account anc_offset and otr_type from the indirect edge info.
5668 * ipa-prop.c (get_ancestor_addr_info): New function.
5669 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5670 get_ancestor_addr_info, call it.
5671 (ipa_note_param_call): Do not initialize information about polymorphic
5672 calls, return the indirect call graph edge. Remove the last
5673 parameter, adjust all callers.
5674 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5675 parameters. Initialize polymorphic information in the indirect edge.
5676
5677 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5678
5679 PR lto/48148
5680 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5681 the types if they have different enumeration identifiers.
5682
5683 2011-04-19 Jan Hubicka <jh@suse.cz>
5684
5685 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5686 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5687 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5688 (optimize_function_for_size_p) ... here.
5689
5690 2011-04-19 Richard Guenther <rguenther@suse.de>
5691
5692 PR lto/48207
5693 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5694 langhook.
5695
5696 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5697
5698 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5699 if DECL_NO_INLINE_WARNING_P is set on the function.
5700
5701 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5702
5703 PR fortran/47976
5704 * reload1.c (inc_for_reload): Return void. All callers changed.
5705 (emit_input_reload_insns): Don't try to delete previous output
5706 reloads to a register, or record spill_reg_store for autoincs.
5707
5708 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5709
5710 * gengtype.h: Updated copyright year.
5711 (struct input_file_st): Add inpisplugin field.
5712 (type_fileloc): New function.
5713 * gengtype.c
5714 (write_typed_struct_alloc_def): Add gcc_assert.
5715 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5716 (write_typed_alloc_defns): Don't output for plugin files.
5717 (input_file_by_name): Clear inpisplugin field.
5718 (main): Set inpisplugin field for plugin files.
5719
5720 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5721
5722 * gengtype-state.c (string_eq): New.
5723 (read_state): Use string_eq instead of strcmp when creating the
5724 state_ident_tab.
5725
5726 2011-04-19 Wei Guozhi <carrot@google.com>
5727
5728 PR target/47855
5729 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5730 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5731 linkage.
5732 * config/arm/constraints.md (Uu): New constraint.
5733 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5734
5735 2011-04-19 Tristan Gingold <gingold@adacore.com>
5736
5737 * config.gcc (-*-*-*vms): Added.
5738 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5739 definitions moved.
5740 * config/vms/vms-ld.c: New file.
5741 * config/vms/vms-ar.c: New file.
5742 * config/vms/t-vmsnative: New file.
5743
5744 2011-04-18 Xinliang David Li <davidxl@google.com>
5745
5746 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5747
5748 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5749
5750 PR middle-end/48661
5751 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5752 if TREE_TYPE (v) is non-NULL.
5753
5754 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5755 gimple_get_virt_mehtod_for_binfo.
5756 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5757 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5758 callers.
5759 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5760
5761 2011-04-18 Michael Matz <matz@suse.de>
5762 Steve Ellcey <sje@cup.hp.com>
5763
5764 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5765 use its mode as source mode if it isn't VOIDmode.
5766
5767 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5768
5769 * doc/passes.texi: Fill crossref nodes.
5770
5771 2011-04-18 Jim Meyering <meyering@redhat.com>
5772
5773 Fix doubled-word typos in comments and strings
5774 * config/alpha/vms-unwind.h: s/for for/for/
5775 * config/arm/unwind-arm.h: Likewise.
5776 * config/microblaze/microblaze.c: Likewise.
5777 * config/sh/constraints.md: s/in in/in/
5778 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5779
5780 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5781
5782 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5783 (AVX_FLOAT_MODE_P): Ditto.
5784 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5785 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5786 (AVX_VEC_FLOAT_MODE_P): Ditto.
5787 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5788 (UNSPEC_MASKSTORE): Ditto.
5789 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5790 Merge from <sse>_movmsk<ssemodesuffix> and
5791 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5792 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5793 iterator.
5794 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5795 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5796 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5797
5798 2011-04-18 Jan Hubicka <jh@suse.cz>
5799
5800 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5801
5802 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5803 (want_inline_function_called_once_p): Break out the logic from
5804 ipa_inline.
5805 (edge_badness): Ensure that profile is not misupdated.
5806 (lookup_recursive_calls): Prioritize by call frequencies.
5807 (inline_small_functions): Move program size estimates here;
5808 actually process whole queue even when unit growth has been
5809 met. (to properly compute inline_failed reasons and for the
5810 case unit size decrease.) Revisit comments on recursive inlining.
5811 (ipa_inline): Remove unit summary code; first inline hot calls
5812 of functions called once, cold calls next.
5813 (order, nnodes): Remove unused variables.
5814 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5815 (GTFILES): Remove ipa-inline.c
5816 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5817
5818 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5819
5820 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5821
5822 2011-04-18 Jie Zhang <jie@codesourcery.com>
5823 Richard Earnshaw <rearnsha@arm.com>
5824
5825 * arm.c (neon_builtin_type_bits): Remove.
5826 (typedef enum neon_builtin_mode): New.
5827 (T_MAX): Don't define.
5828 (typedef enum neon_builtin_datum): Remove bits, codes[],
5829 num_vars and base_fcode. Add mode, code and fcode.
5830 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5831 VAR10): Change accordingly.
5832 (neon_builtin_data[]): Change accordingly
5833 (arm_init_neon_builtins): Change accordingly.
5834 (neon_builtin_compare): Remove.
5835 (locate_neon_builtin_icode): Remove.
5836 (arm_expand_neon_builtin): Change accordingly.
5837
5838 * arm.h (enum arm_builtins): Move to ...
5839 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5840
5841 * arm.c (arm_builtin_decl): Declare.
5842 (TARGET_BUILTIN_DECL): Define.
5843 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5844 (arm_builtin_decls[]): New.
5845 (arm_init_neon_builtins): Store builtin declarations in
5846 arm_builtin_decls[].
5847 (arm_init_tls_builtins): Likewise.
5848 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5849 (arm_builtin_decl): New.
5850
5851 2011-04-18 Richard Guenther <rguenther@suse.de>
5852
5853 * tree.c (upper_bound_in_type): Build properly canonicalized
5854 INTEGER_CSTs.
5855 (lower_bound_in_type): Likewise.
5856
5857 2011-04-18 Richard Guenther <rguenther@suse.de>
5858
5859 * gimple.h (gimple_call_addr_fndecl): New function.
5860 (gimple_call_fndecl): Use it.
5861 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5862 for direct calls.
5863 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5864 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5865
5866 2011-04-18 Richard Guenther <rguenther@suse.de>
5867
5868 PR middle-end/48650
5869 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5870
5871 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5872
5873 PR lto/48492
5874 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5875 DECL_IN_CONSTANT_POOL without RTL.
5876
5877 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5878 Ira Rosen <ira.rosen@linaro.org>
5879
5880 PR target/48252
5881 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5882 to match neon_vzip/vuzp/vtrn_internal.
5883 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5884 outputs explicitly dependent on both inputs.
5885 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5886
5887 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5888
5889 PR tree-optimization/48616
5890 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5891 whether the shift is by scalar or vector based on whether all SLP
5892 scalar stmts have the same rhs.
5893
5894 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5895
5896 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5897 memory operands.
5898
5899 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5900
5901 PR target/43700
5902 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5903 registers.
5904
5905 2011-04-17 Jan Hubicka <jh@suse.cz>
5906
5907 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5908 * cgrpahunit.c (cgraph_finalize_function): Do not set
5909 finalized_by_frontend.
5910 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5911 finalized_by_frontend.
5912
5913 2011-04-17 Jan Hubicka <jh@suse.cz>
5914
5915 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5916 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5917 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5918 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5919 method.
5920 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5921 gimple-fold.c
5922 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5923
5924 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5925
5926 PR lto/48538
5927 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5928 is non-null before accessing it.
5929 (input_cgraph): Remove trailing spaces.
5930
5931 2011-04-17 Revital Eres <revital.eres@linaro.org>
5932
5933 * params.def (sms-min-sc): New param flag.
5934 * modulo-sched.c (sms_schedule): Use it.
5935 * doc/invoke.texi (sms-min-sc): Document it.
5936
5937 2011-04-17 Jan Hubicka <jh@suse.cz>
5938
5939 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5940 present, also set gimple_call_set_cannot_inline.
5941 * ipa-inline.c: Update toplevel comment.
5942 (MAX_TIME): Remove.
5943 (cgraph_clone_inlined_nodes): Fix linebreaks.
5944 (cgraph_check_inline_limits): Restructure to ...
5945 (caller_growth_limits): ... this one; be more tolerant
5946 on growth in nested inline chains; add explanatory comment;
5947 fix stack accounting thinko introduced by previous patch.
5948 (cgraph_default_inline_p): Remove.
5949 (report_inline_failed_reason): New function.
5950 (can_inline_edge_p): New function.
5951 (can_early_inline_edge_p): New function.
5952 (leaf_node_p): Move upwards in file.
5953 (want_early_inline_function_p): New function.
5954 (want_inline_small_function_p): New function.
5955 (want_inline_self_recursive_call_p): New function.
5956 (cgraph_edge_badness): Rename to ...
5957 (edge_badness) ... this one; fix linebreaks.
5958 (update_edge_key): Update call of edge_baddness; add
5959 detailed dump about queue updates.
5960 (update_caller_keys): Use can_inline_edge_p and
5961 want_inline_small_function_p.
5962 (cgraph_decide_recursive_inlining): Rename to...
5963 (recursive_inlining): Use can_inline_edge_p and
5964 want_inline_self_recursive_call_p; simplify and remove no longer
5965 valid FIXME.
5966 (cgraph_set_inline_failed): Remove.
5967 (add_new_edges_to_heap): Use can_inline_edge_p and
5968 want_inline_small_function_p.
5969 (cgraph_decide_inlining_of_small_functions): Rename to ...
5970 (inline_small_functions): ... this one; cleanup; use
5971 can/want predicates; cleanup debug ouput; work edges till fibheap
5972 is exhausted and do not stop once unit growth is reached; remove
5973 later loop processing remaining edges.
5974 (cgraph_flatten): Rename to ...
5975 (flatten_function): ... this one; use can_inline_edge_p
5976 and can_early_inline_edge_p predicates.
5977 (cgraph_decide_inlining): Rename to ...
5978 (ipa_inline): ... this one; remove unreachable nodes before
5979 inlining functions called once; simplify the pass.
5980 (cgraph_perform_always_inlining): Rename to ...
5981 (inline_always_inline_functions): ... this one; use
5982 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5983 (cgraph_decide_inlining_incrementally): Rename to ...
5984 (early_inline_small_functions): ... this one; simplify
5985 using new predicates; cleanup; make dumps prettier.
5986 (cgraph_early_inlining): Rename to ...
5987 (early_inliner): newer inline regular functions into always-inlines;
5988 fix updating of call stmt summaries.
5989 (pass_early_inline): Update for new names.
5990 (inline_transform): Fix formating.
5991 (gate_cgraph_decide_inlining): Rename to ...
5992 (pass_ipa_inline): ... this one.
5993 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5994 * ipa-inline-analysis.c (dump_inline_summary): Update.
5995 (compute_inline_parameters): Do not compute disregard_inline_limits;
5996 look for mismatching arguments.
5997 (estimate_growth): Fix handlig of non-trivial self recursion.
5998 (inline_read_summary): Do not read info->disregard_inline_limits.
5999 (inline_write_summary): Do not write info->disregard_inline_limits.
6000 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6001 and move all checks into can_inline_edge_p predicate; re-enable code
6002 comparing optimization levels.
6003 (expand_call_inline): Do not test inline_forbidden_into_p.
6004 * Makefile.in (ipa-inline.o): Update arguments.
6005
6006 2011-04-17 Revital Eres <revital.eres@linaro.org>
6007
6008 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6009
6010 2011-04-17 Revital Eres <revital.eres@linaro.org>
6011
6012 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6013
6014 2011-04-17 Michael Matz <matz@suse.de>
6015
6016 PR tree-optimization/48622
6017 PR lto/48645
6018 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6019 in same order as they're written.
6020
6021 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6022
6023 * config/pa/predicates.md: Reorganize and simplify predicates.
6024 Eliminate duplicate code checks.
6025 (arith_operand): Rename to arith14_operand
6026 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6027 * config/pa/pa.md: Use renamed operands.
6028 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6029 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6030 arith11_operand, adddi3_operand, indexed_memory_operand,
6031 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6032 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6033 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6034 move_dest_operand, move_src_operand, prefetch_cc_operand,
6035 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6036 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6037 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6038 div_operand, int5_operand, movb_comparison_operator,
6039 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6040 arith_double_operand, ireg_operand, lhs_lshift_operand,
6041 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6042 integer_store_memory_operand): Likewise.
6043 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6044 (integer_store_memory_operand, read_only_operand,
6045 function_label_operand, borx_reg_operand,
6046 non_hard_reg_operand): Likewise.
6047 (eq_neq_comparison_operator): Delete unused operator.
6048 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6049 function_label_operand.
6050 (emit_move_sequence): Likewise.
6051
6052 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6053
6054 * config/i386/sse.md (sseunpackmode): New mode attribute.
6055 (ssepackmode): Ditto.
6056 (vec_pack_trunc_<mode>): Macroize expander from
6057 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6058 (vec_unpacks_lo_<mode>): Macroize expander from
6059 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6060 (vec_unpacks_hi_<mode>): Macroize expander from
6061 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6062 (vec_unpacku_lo_<mode>): Macroize expander from
6063 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6064 (vec_unpacku_hi_<mode>): Macroize expander from
6065 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6066 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6067 ix86_expand_sse4_unpack.
6068 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6069
6070 2011-04-16 Jan Hubicka <jh@suse.cz>
6071
6072 * cgraphbuild.c: Include ipa-inline.h.
6073 (reset_inline_failed): Use initialize_inline_failed.
6074 * cgraph.c: Include ipa-inline.h.
6075 (cgraph_create_node_1): Do not initialize estimated_growth.
6076 (initialize_inline_failed): More to ipa-inline-analysis.c
6077 (dump_cgraph_node): Do not dump inline flags.
6078 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6079 and disregard_inline_limits flags.
6080 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6081 time, size, estimated_growth.
6082 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6083 Update.
6084 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6085 DECL_DISREGARD_INLINE_LIMITS.
6086 (cgraph_analyze_function): Do not initialize
6087 node->local.disregard_inline_limits.
6088 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6089 inlinable, versionable and disregard_inline_limits.
6090 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6091 cgraph_check_inline_limits, cgraph_default_inline_p,
6092 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6093 add_new_edges_to_heap): Update.
6094 (cgraph_decide_inlining_of_small_function): Update; set
6095 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6096 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6097 cgraph_decide_inlining_incrementally): Update.
6098 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6099 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6100 time, size and estimated_growth parameters.
6101 (estimate_edge_growth): Update.
6102 (initialize_inline_failed): Declare.
6103 * ipa-split.c: Include ipa-inline.h
6104 (execute_split_functions): Update.
6105 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6106 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6107 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6108 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6109 estimated_growth to INT_MIN.
6110 (inline_node_duplication_hook): Likewise.
6111 (dump_inline_summary): Dump new fields.
6112 (compute_inline_parameters): Update.
6113 (estimate_edge_time, estimate_time_after_inlining,
6114 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6115 inline_write_summary):
6116 (initialize_inline_failed): Move here from cgraph.c.
6117 * tree-sra.c: Include ipa-inline.h.
6118 (ipa_sra_preliminary_function_checks): Update.
6119 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6120 ipa-inline.h.
6121
6122 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6123
6124 * config/i386/sse.md (V16): New mode iterator.
6125 (VI1, VI8): Ditto.
6126 (AVXMODEQI, AVXMODEDI): Remove.
6127 (sse2, sse3): New mode attribute.
6128 (mov<mode>): Use V16 mode iterator.
6129 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6130 (push<mode>1): Use V16 mode iterator.
6131 (movmisalign<mode>): Ditto.
6132 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6133 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6134 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6135 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6136 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6137 avx_movdqu<avxmodesuffix>.
6138 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6139 *avx_movdqu<avxmodesuffix>.
6140 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6141 avx_lddqu<avxmodesuffix>.
6142 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6143 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6144 avx_movnt<AVXMODEDI:mode>.
6145 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6146 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6147
6148 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6149
6150 PR target/48629
6151 * haifa-sched.c (prune_ready_list, schedule_block): Use
6152 sched_pressure_p rather than flag_sched_pressure.
6153
6154 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6155
6156 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6157 cgraph_get_node instead of cgraph_get_create_node.
6158
6159 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6160
6161 * cfgexpand.c (expand_debug_expr): Use
6162 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6163
6164 2011-04-15 Michael Matz <matz@suse.de>
6165
6166 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6167 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6168 * function.c (gimplify_parameters): Ditto.
6169 * gimplify.c (gimplify_vla_decl): Ditto.
6170
6171 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6172 (gimple_call_set_alloca_for_var): New inline function.
6173 (gimple_call_alloca_for_var_p): Ditto.
6174 * gimple.c (gimple_build_call_from_tree): Remember
6175 CALL_ALLOCA_FOR_VAR_P state.
6176 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6177
6178 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6179 calls if they were for VLA objects.
6180
6181 2011-04-15 Martin Jambor <mjambor@suse.cz>
6182
6183 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6184 of ADR_EXPRs.
6185
6186 2011-04-15 Martin Jambor <mjambor@suse.cz>
6187
6188 PR middle-end/48601
6189 * tree-emutls.c (lower_emutls_function_body): Call
6190 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6191 result is non-NULL.
6192
6193 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6194
6195 * c-decl.c (detect_field_duplicates): Call
6196 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6197
6198 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6199
6200 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6201 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6202 * ipa-pure-const.c (check_stmt): Call it.
6203 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6204
6205 2011-04-15 Richard Guenther <rguenther@suse.de>
6206
6207 PR tree-optimization/48290
6208 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6209 Properly decide inhibiting propagation based on the valueized
6210 operand. Do loop-closed SSA form preserving here ...
6211 (init_copy_prop): ... not here.
6212
6213 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6214
6215 PR target/48612
6216 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6217 (*ieee_smax<mode>3): Likewise.
6218
6219 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6220
6221 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6222 Replace match_operand with match_dup for the third operand in
6223 these expanders.
6224
6225 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6226
6227 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6228 to track processing of conditionals. Update all callers.
6229 (try_combine, simplify_if_then_else): Update.
6230
6231 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6232
6233 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6234 -fsched-pressure.
6235
6236 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6237
6238 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6239 instead of match_operand for operand 3.
6240
6241 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6242
6243 * recog.h (insn_operand_data): Add an "allows_mem" field.
6244 * genoutput.c (output_operand_data): Initialize it.
6245 * optabs.c (maybe_legitimize_operand_same_code): New function.
6246 (maybe_legitimize_operand): Use it when matching the original
6247 op->value.
6248
6249 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6250
6251 * gimplify.c: Fix issues in comments throughout.
6252 (voidify_wrapper_expr): Fix long line.
6253 (build_stack_save_restore): Likewise.
6254 (gimplify_loop_expr): Likewise.
6255 (gimplify_compound_lval): Likewise.
6256 (gimplify_init_ctor_eval): Likewise.
6257 (gimplify_modify_expr_rhs): Likewise.
6258 (omp_notice_threadprivate_variable): Likewise.
6259
6260 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6261
6262 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6263 original one if this is not a builtin function.
6264
6265 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6266
6267 PR target/48605
6268 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6269 offset it as needed based on top 2 bits in operands[3], change
6270 MEM mode to SFmode and mask those 2 bits away from operands[3].
6271
6272 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6273
6274 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6275 change from objc_declare_protocols() to objc_declare_protocol().
6276
6277 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6278
6279 * config/i386/sse.md (sse4_1): New mode attribute.
6280 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6281 avx_blend<ssemodesuffix><avxmodesuffix> and
6282 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6283 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6284 avx_blendv<ssemodesuffix><avxmodesuffix> and
6285 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6286 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6287 avx_dp<ssemodesuffix><avxmodesuffix> and
6288 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6289 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6290 (sse4_1_packusdw): Merge with *avx_packusdw.
6291 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6292 (sse4_1_pblendw): Merge with *avx_pblendw.
6293 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6294 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6295 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6296 VF mode iterator.
6297 (sse4_1_round<ssescalarmodesuffix>): Merge with
6298 *avx_round<ssescalarmodesuffix>.
6299 (aesenc): Merge with *avx_aesenc.
6300 (aesenclast): Merge with *avx_aesenclast.
6301 (aesdec): Merge with *avx_aesdec.
6302 (aesdeclast): Merge with *avx_aesdeclast.
6303 (pclmulqdq): Merge with *pclmulqdq.
6304 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6305 New predicate.
6306 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6307
6308 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6309
6310 PR middle-end/48608
6311 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6312 (align_local_variable): This. Update DECL_ALIGN.
6313 (add_stack_var): Updated.
6314 (expand_one_stack_var): Likewise.
6315
6316 2011-04-14 Richard Guenther <rguenther@suse.de>
6317
6318 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6319 Remove.
6320 (dse_initialize_block_local_data, dse_leave_block,
6321 record_voperand_set, get_stmt_uid): Likewise.
6322 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6323 (dse_optimize_stmt): Remove voperand set handling code.
6324 Simplify and improve to handle any kind of killing stmt.
6325 (dse_record_phi): Remove.
6326 (dse_enter_block): Simplify.
6327 (tree_ssa_dse): Likewise.
6328 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6329
6330 2011-04-14 Jan Hubicka <jh@suse.cz>
6331
6332 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6333 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6334 (cgraph_local_info): Remove inline_summary.
6335 * ipa-cp.c: Include ipa-inline.h.
6336 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6337 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6338 accesor.
6339 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6340 (input_overwrite_node): Do not set inline summary.
6341 (input_node): Do not stream inline summary.
6342 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6343 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6344 growth; we do not have inline parameters computed for that anyway.
6345 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6346 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6347 (inline_summary_t): New type and VECtor.
6348 (debug_inline_summary, dump_inline_summaries): Declare.
6349 (inline_summary): Use VOCtor.
6350 (estimate_edge_growth): Kill hack computing call stmt size directly.
6351 * lto-section-in.c (lto_section_name): Add inline section.
6352 * ipa-inline-analysis.c: Include lto-streamer.h
6353 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6354 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6355 (inline_summary_vec): Define.
6356 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6357 dump_inline_summaries): New functions.
6358 (estimate_function_body_sizes): Properly compute size/time of outgoing
6359 calls.
6360 (compute_inline_parameters): Alloc inline_summary; do not compute
6361 size/time of incomming calls.
6362 (estimate_edge_time): Avoid missing time summary hack.
6363 (inline_read_summary): Read inline summary info.
6364 (inline_write_summary): Write inline summary info.
6365 (inline_free_summary): Free all hooks and inline summary vector.
6366 * lto-streamer.h: Add LTO_section_inline_summary section.
6367 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6368 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6369
6370 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6371
6372 * tree-vectorizer.h (vect_strided_store_supported): Add a
6373 HOST_WIDE_INT argument.
6374 (vect_strided_load_supported): Likewise.
6375 (vect_permute_store_chain): Return void.
6376 (vect_transform_strided_load): Likewise.
6377 (vect_permute_load_chain): Delete.
6378 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6379 count argument. Check that the count is a power of two.
6380 (vect_strided_load_supported): Likewise.
6381 (vect_permute_store_chain): Return void. Update after above changes.
6382 Assert that the access is supported.
6383 (vect_permute_load_chain): Likewise.
6384 (vect_transform_strided_load): Return void.
6385 * tree-vect-stmts.c (vectorizable_store): Update calls after
6386 above interface changes.
6387 (vectorizable_load): Likewise.
6388 (vect_analyze_stmt): Don't check for strided powers of two here.
6389
6390 2011-04-14 Richard Guenther <rguenther@suse.de>
6391
6392 PR tree-optimization/48590
6393 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6394 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6395 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6396 BUILT_IN_STACK_SAVE.
6397 * tree-ssa-dce.c (propagate_necessity): Handle
6398 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6399
6400 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6401
6402 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6403 objc_declare_class.
6404
6405 2011-04-14 Richard Guenther <rguenther@suse.de>
6406
6407 * tree.h (get_object_alignment_1): Declare.
6408 * builtins.c (get_object_alignment_1): Split out worker from ...
6409 (get_object_alignment): ... here.
6410 * fold-const.c (get_pointer_modulus_and_residue): Use
6411 get_object_alignment_1.
6412
6413 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6414
6415 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6416 type parameter.
6417 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6418 parameter. Generalise code to handle arrays as well as vectors.
6419 (vect_setup_realignment): Update accordingly.
6420 * tree-vect-stmts.c (vectorizable_store): Likewise.
6421 (vectorizable_load): Likewise.
6422
6423 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6424
6425 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6426 within the per-copy loop.
6427
6428 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6429
6430 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6431 in the dump file.
6432
6433 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6434
6435 * doc/options.texi (Negative): Explicitly mention that the
6436 Negative chain must be circular.
6437
6438 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6439
6440 * function.h (block_chainon): Declare.
6441 * function.c (block_chainon): Define.
6442
6443 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6444 Eric Weddington <eric.weddington@atmel.com>
6445 Georg-Johann Lay <avr@gjlay.de>
6446
6447 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6448 New Includes
6449 (avr_init_builtins, avr_expand_builtin,
6450 avr_expand_delay_cycles, avr_expand_unop_builtin,
6451 avr_expand_binop_builtin ): New functions.
6452 (avr_builtin_id): New enum
6453 (struct avr_builtin_description): New struct
6454 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6455 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6456
6457 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6458 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6459 UNSPECV_DELAY_CYCLES): new enumeration values
6460 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6461 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6462 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6463 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6464 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6465 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6466 "fmulsu"): New insns
6467
6468 * config/avr/avr-c.c: fix line endings
6469 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6470 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6471 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6472 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6473 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6474
6475 * doc/extend.texi (AVR Built-in Functions): New node
6476 (Target Builtins): Add documentation of AVR
6477 built-in functions.
6478
6479 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6480
6481 PR target/44643
6482 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6483 alone. Error if non-const data has attribute progmem.
6484
6485 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6486
6487 * tree.h (struct tree_constructor): Include tree_typed instead of
6488 tree_common.
6489 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6490 TS_TYPED instead of TS_COMMON.
6491
6492 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6493
6494 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6495 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6496 (sse2_psadbw): Merge with *avx_psadbw.
6497 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6498 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6499 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6500 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6501 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6502 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6503 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6504 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6505 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6506 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6507 (ssse3_palignrti): Merge with *avx_palignrti.
6508
6509 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6510
6511 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6512 * tree-ssanames.c (fini_ssanames): VEC_free it.
6513 (make_ssa_name_fn): Update for VECness of free_ssanames.
6514 (release_ssa_name, release_dead_ssa_names): Likewise.
6515 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6516 tree_common.
6517 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6518 TS_TYPED instead of TS_COMMON.
6519
6520 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6521
6522 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6523 statistics_counter_event.
6524 * tree-ssa-copyrename.c (stats): Define.
6525 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6526 statistics_counter_event.
6527 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6528 (bswap_stats, widen_mul_stats): Define.
6529 (insert_reciprocals): Increment rdivs_inserted.
6530 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6531 rfuncs_inserted. Add calls to statistics_counter_event.
6532 (execute_cse_sincos_1): Increment inserted.
6533 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6534 statistics_counter_event.
6535 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6536 of bswap_stats. Add calls to statistics_counter_event.
6537 (convert_mult_to_widen): Increment widen_mults_inserted.
6538 (convert_plusminus_to_widen): Increment maccs_inserted.
6539 (convert_mult_to_fma): Increment fmas_inserted.
6540 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6541 calls to statistics_counter_event.
6542
6543 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6544
6545 PR rtl-optimization/48455
6546 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6547 `temp_costs->mem_cost'.
6548
6549 2011-04-13 Jan Hubicka <jh@suse.cz>
6550
6551 * ipa-inline.h: New file.
6552 * ipa-inline-analysis.c: New file. Broken out of ...
6553 * ipa-inline.c: ... this file; update toplevel comment;
6554 include ipa-inline.h
6555 (inline_summary): Move to ipa-inline.h
6556 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6557 ipa-inline-analysis.c.
6558 (cgraph_estimate_time_after_inlining): Rename to
6559 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6560 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6561 to estimate_edge_growth.
6562 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6563 rename to estimate_size_after_inlining.
6564 (cgraph_mark_inline_edge): Update for new naming convention.
6565 (cgraph_check_inline_limits): Likewise.
6566 (cgraph_edge_badness): Likewise.
6567 (cgraph_decide_recursive_inlining): Likewise.
6568 (cgraph_decide_inlining_of_small_functions): Likewise.
6569 (cgraph_decide_inlining_incrementally): Likewise.
6570 (cgraph_estimate_growth): Rename to estimate_growth; move to
6571 ipa-inline-analysis.c.
6572 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6573 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6574 (compute_inline_parameters): Likewise.
6575 (compute_inline_parameters_for_current): Likewise.
6576 (pass_inline_parameters): Likewise.
6577 (inline_indirect_intraprocedural_analysis): Likewise.
6578 (analyze_function): Rename to inline_analyze_function; likewise.
6579 (add_new_function): Move to ipa-inline-analysis.c.
6580 (inline_generate_summary): Likewise.
6581 (inline_read_summary): Likewise.
6582 (inline_write_summary): Likewise.
6583 * Makefile.in (ipa-inline-analysis.c): New file.
6584
6585 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6586
6587 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6588 * configure: Regenerate.
6589
6590 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6591
6592 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6593 instead of tree_common.
6594 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6595 Likewise.
6596 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6597 TS_TYPED rather than TS_COMMON.
6598 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6599
6600 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6601
6602 PR target/45263
6603 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6604 r20 around calls of __tablejump_elpm__
6605
6606 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6607
6608 PR middle-end/48591
6609 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6610 NULL.
6611 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6612
6613 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6614
6615 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6616 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6617 (cfi_vec): New typedef.
6618 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6619 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6620 (cie_cfi_vec): New static variable.
6621 (cie_cfi_head): Delete.
6622 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6623 declaration changed. Use vector rather than list operations.
6624 (new_cfi): Don't initialize the dw_cfi_next field.
6625 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6626 rather than list operations.
6627 (lookup_cfa): Use vector rather than list operations.
6628 (output_cfis): New argument upto. Accept a cfi_vec rather than
6629 a dw_cfi_ref list head as argument. All callers changed.
6630 Iterate over the vector using upto as a maximum index.
6631 (output_all_cfis): New static function.
6632 (output_fde): Use vector rather than list operations. Use the
6633 new upto argument for output_cfis rather than manipulating a
6634 list.
6635 (dwarf2out_begin_prologue): Change initializations to match
6636 new struct members.
6637 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6638 from the vector length rather than searching for the end of a list.
6639 Use output_all_cfis.
6640 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6641
6642 2011-04-13 Nick Clifton <nickc@redhat.com>
6643
6644 * config/rx/rx.md (movmemsi): Do not use this pattern when
6645 volatile pointers are involved.
6646
6647 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6648
6649 * config/i386/sse.md (pinsrbits): Remove.
6650 (sse2_packsswb): Merge with *avx_packsswb.
6651 (sse2_packssdw): Merge with *avx_packssdw.
6652 (sse2_packuswb): Merge with *avx_packuswb.
6653 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6654 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6655 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6656 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6657 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6658 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6659 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6660 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6661 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6662 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6663 (sse2_loadld): Merge with *avx_loadld.
6664 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6665 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6666 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6667 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6668 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6669
6670 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6671
6672 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6673 calling TREE_CHAIN.
6674 * print-tree.c (print_node): Likewise.
6675 * tree-inline.c (copy_tree_r): Likewise.
6676 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6677 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6678 instead of TS_COMMON.
6679 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6680 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6681 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6682 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6683 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6684 ...and these...
6685 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6686 * tree.h: ...here.
6687 (TREE_CHAIN): Check for a TS_COMMON structure.
6688 (TREE_TYPE): Check for a TS_TYPED structure.
6689
6690 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6691
6692 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6693 cgraph_get_create_node instead of cgraph_node.
6694
6695 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6696
6697 * c-parser.c (c_parser_initelt): Updated call to
6698 objc_build_message_expr.
6699 (c_parser_postfix_expression): Likewise.
6700
6701 2011-04-12 Kai Tietz <ktietz@redhat.com>
6702
6703 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6704 MASK_MS_BITFIELD_LAYOUT bit.
6705
6706 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6707
6708 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6709 assert it is always true.
6710 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6711 moves.
6712
6713 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6714
6715 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6716 compiling Objective-C to be more efficient.
6717
6718 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6719
6720 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6721 argv_copied.
6722
6723 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6724
6725 * recog.h, genoutput.c, optabs.c: Revert last patch.
6726
6727 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6728
6729 PR target/48090
6730 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6731
6732 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6733
6734 * recog.h (insn_operand_data): Add an "allows_mem" field.
6735 * genoutput.c (output_operand_data): Initialize it.
6736 * optabs.c (maybe_legitimize_operand_same_code): New function.
6737 (maybe_legitimize_operand): Use it when matching the original
6738 op->value.
6739
6740 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6741
6742 * genpreds.c (process_define_predicate): Move most processing
6743 to gensupport.c. Continue to validate the expression.
6744 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6745 (process_define_predicate): Move processing to gensupport.c.
6746 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6747 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6748 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6749 argument.
6750 (valid_predicate_name_p): New function, split out from old
6751 genpreds.c:process_define_predicate.
6752 (process_define_predicate): New function, combining code from
6753 old genpreds.c and genrecog.c functions.
6754 (process_rtx): Call it for DEFINE_PREDICATE and
6755 DEFINE_SPECIAL_PREDICATE.
6756
6757 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6758
6759 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6760 size of a '%A' memory reference.
6761 (T_DREG, T_QREG): New neon_builtin_type_bits.
6762 (arm_init_neon_builtins): Assert that the load and store operands
6763 are neon_struct_operands.
6764 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6765 (NEON_ARG_MEMORY): New builtin_arg.
6766 (neon_dereference_pointer): New function.
6767 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6768 Handle NEON_ARG_MEMORY.
6769 (arm_expand_neon_builtin): Update after above interface changes.
6770 Use NEON_ARG_MEMORY for loads and stores.
6771 * config/arm/predicates.md (neon_struct_operand): New predicate.
6772 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6773 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6774 (V_four_elem): Tweak formatting.
6775 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6776 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6777 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6778 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6779 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6780 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6781 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6782 Use %A in the output template.
6783 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6784 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6785 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6786 the width of the memory access. Remove post-increment.
6787 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6788
6789 2011-04-12 Nick Clifton <nickc@redhat.com>
6790
6791 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6792 instruction for interrupt handlers if the target is the basic V850
6793 architecture.
6794 (expand_epilogue): Likewise.
6795
6796 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6797
6798 PR rtl-optimization/48549
6799 * combine.c (propagate_for_debug): Also stop after BB_END of
6800 this_basic_block. Process LAST and just stop processing after it.
6801 (combine_instructions): If last_combined_insn has been deleted,
6802 set last_combined_insn to its PREV_INSN.
6803
6804 2011-04-12 Richard Guenther <rguenther@suse.de>
6805
6806 PR tree-optimization/46076
6807 * gimple.h (struct gimple_statement_call): Add fntype field.
6808 (gimple_call_fntype): Adjust.
6809 (gimple_call_set_fntype): New function.
6810 * gimple.c (gimple_build_call_1): Set the call function type.
6811 * gimplify.c (gimplify_call_expr): Preserve the function
6812 type the frontend used for the call.
6813 (gimplify_modify_expr): Likewise.
6814 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6815 function type.
6816 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6817 function type.
6818 * tree-ssa.c (useless_type_conversion_p): Function pointer
6819 conversions are useless.
6820
6821 2011-04-12 Martin Jambor <mjambor@suse.cz>
6822
6823 * cgraph.h (cgraph_node): Remove function declaration.
6824 (cgraph_create_node): Declare.
6825 (cgraph_get_create_node): Likewise.
6826 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6827 Updated all callers.
6828 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6829 the decl does not already exist. Call cgraph_get_create_node instead
6830 of cgraph_node.
6831 (cgraph_get_create_node): New function.
6832 (cgraph_same_body_alias): Update comment.
6833 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6834 assert it does not return NULL.
6835 (cgraph_update_edges_for_call_stmt): Likewise.
6836 (cgraph_clone_edge): Likewise.
6837 (cgraph_create_virtual_clone): Likewise.
6838 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6839 instead of cgraph_node.
6840 (cgraph_add_new_function): Call cgraph_create_node or
6841 cgraph_get_create_node instead of cgraph_node.
6842 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6843 instead of cgraph_node.
6844 (record_eh_tables): Likewise.
6845 (mark_address): Likewise.
6846 (mark_load): Likewise.
6847 (build_cgraph_edges): Call cgraph_get_create_node instead
6848 of cgraph_node.
6849 (rebuild_cgraph_edges): Likewise.
6850 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6851 instead of cgraph_node.
6852 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6853 cgraph_node.
6854 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6855 cgraph_create_node instead of cgraph_node.
6856 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6857 of cgraph_node.
6858 * lto-cgraph.c (input_node): Likewise.
6859 * lto-streamer-in.c (input_function): Likewise.
6860 * varasm.c (mark_decl_referenced): Likewise.
6861 (assemble_alias): Likewise.
6862
6863 2011-04-12 Martin Jambor <mjambor@suse.cz>
6864
6865 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6866 instead of cgraph_node and assert it does not return NULL.
6867 * lto-streamer-in.c (lto_read_body): Likewise.
6868 * omp-low.c (new_omp_context): Likewise.
6869 (create_task_copyfn): Likewise.
6870 * tree-emutls.c (lower_emutls_function_body): Likewise.
6871 * matrix-reorg.c (transform_allocation_sites): Likewise.
6872
6873 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6874
6875 PR c/48552
6876 * c-typeck.c (build_asm_expr): Error out on attempts to use
6877 void type outputs or inputs for constraints that allow reg or
6878 don't allow memory.
6879
6880 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6881 Richard Earnshaw <rearnsha@arm.com>
6882
6883 PR target/48250
6884 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6885 to use sign-magnitude offsets. Reject unsupported unaligned
6886 cases. Add detailed description in comments.
6887 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6888 condition from TARGET_32BIT to TARGET_ARM.
6889
6890 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6891
6892 * tree.h (struct typed_tree): New.
6893 (struct tree_common): Include it instead of tree_base.
6894 (TREE_TYPE): Update for new location of type field.
6895 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6896 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6897 (union tree_node): Add typed field.
6898 * treestruct.def (TS_TYPED): New.
6899 * lto-streamer.c (check_handled_ts_structures): Handle it.
6900 * tree.c (MARK_TS_TYPED): New macro.
6901 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6902
6903 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6904
6905 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6906 (force_nonfallthru): Do not alter the loop nest if no basic block
6907 was created.
6908
6909 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6910
6911 * config/i386/sse.md (VI): New mode iterator.
6912 (SSEMODEI): Remove.
6913 (AVX256MODEI): Ditto.
6914 (AVXMODEF4P): Ditto.
6915 (avxvecpsmode): Ditto.
6916 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6917 (sse2_andnot<mode>3): New expander.
6918 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6919 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6920 (<any_logic:code><mode>3): Use VI mode iterator.
6921 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6922 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6923 (*andnottf3): Handle AVX three-operand constraints.
6924 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6925
6926 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6927 Robert Millan <rmh@gnu.org>
6928
6929 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6930 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6931 GNU_USER_DYNAMIC_LINKER64): Define.
6932 (REG_NAME): Don't undefine.
6933 (MD_UNWIND_SUPPORT): Undefine.
6934 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6935 (REG_NAME): Don't undefine.
6936 (MD_UNWIND_SUPPORT): Undefine.
6937 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6938
6939 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6940
6941 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6942 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6943
6944 2011-04-11 Xinliang David Li <davidxl@google.com>
6945
6946 * value-profile.c (check_ic_target): New function.
6947 (gimple_ic_transform): Sanity check indirect call target.
6948 * gimple-low.c (gimple_check_call_args): Interface change.
6949 (gimple_check_call_matching_types): New function.
6950 * tree-inline.c (tree_can_inline_p): Call new function.
6951
6952 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6953
6954 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6955 tree-pretty-print.h & realmpfr.h.
6956
6957 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6958
6959 PR middle-end/48464
6960 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6961 (setup_allocno_and_important_classes): Ditto.
6962
6963 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6964
6965 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6966 GNU_USER_DYNAMIC_LINKER.
6967 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6968 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6969 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6970 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6971 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6972 GNU_USER_TARGET_OS_CPP_BUILTINS.
6973 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6974 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6975 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6976 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6977 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6978 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6979 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6980 GNU_USER_TARGET_OS_CPP_BUILTINS.
6981 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6982 GNU_USER_DYNAMIC_LINKER.
6983 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6984 GNU_USER_TARGET_OS_CPP_BUILTINS.
6985 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6986 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6987 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6988 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6989 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6990 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6991 GNU_USER_DYNAMIC_LINKER64): Remove.
6992 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6993 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6994 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6995 GNU_USER_DYNAMIC_LINKER.
6996 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6997 GNU_USER_TARGET_OS_CPP_BUILTINS.
6998 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6999 GNU_USER_TARGET_OS_CPP_BUILTINS.
7000 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7001 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7002 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7003 GNU_USER_TARGET_OS_CPP_BUILTINS.
7004 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7005 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7006 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7007 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7009 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7010 GNU_USER_DYNAMIC_LINKER.
7011 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7012 GNU_USER_TARGET_OS_CPP_BUILTINS.
7013 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7015 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7016 GNU_USER_DYNAMIC_LINKER.
7017 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7019 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7020 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7021 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7022 GNU_USER_DYNAMIC_LINKER.
7023 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7024 GNU_USER_DYNAMIC_LINKERN32.
7025 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7026 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7027 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7028 GNU_USER_DYNAMIC_LINKER32.
7029 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7031 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7032 GNU_USER_DYNAMIC_LINKER.
7033 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7034 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7035 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7036 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7037 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7038 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7039 GNU_USER_DYNAMIC_LINKER32.
7040 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7041 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7042 GNU_USER_DYNAMIC_LINKER.
7043 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7044 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7045 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7046 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7047 GNU_USER_DYNAMIC_LINKER64.
7048 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7050 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7051 GNU_USER_DYNAMIC_LINKER.
7052 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7054 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7055 GNU_USER_DYNAMIC_LINKER.
7056 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7057 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7058 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7059 GNU_USER_DYNAMIC_LINKER32.
7060 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7061 GNU_USER_DYNAMIC_LINKER64.
7062 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7063 GNU_USER_DYNAMIC_LINKER64.
7064 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7066 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7067 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7068 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7069
7070 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7071
7072 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7073 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7074 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7075 GNU_USER_DYNAMIC_LINKER.
7076 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7077 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7078 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7079 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7080 GNU_USER_DYNAMIC_LINKER64.
7081 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7082 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7083 GNU_USER_LINK_EMULATION.
7084 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7085 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7086 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7087 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7088 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7089 CPP_SPEC, CC1_SPEC): Remove.
7090 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7091 (GNU_USER_DYNAMIC_LINKER): Define.
7092 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7093 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7094 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7095 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7096 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7097 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7098 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7099 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7100 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7101 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7102 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7103 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7104 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7105 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7106 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7107 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7108 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7109 GNU_USER_DYNAMIC_LINKER.
7110 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7111 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7112 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7113 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7114 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7115 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7116 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7117 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7118 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7119 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7120
7121 2011-04-11 Kai Tietz <ktietz@redhat.com>
7122
7123 PR target/9601
7124 PR target/11772
7125 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7126 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7127 comment.
7128 (ix86_is_msabi_thiscall): Removed.
7129 (ix86_is_type_thiscall): Likewise.
7130 (ix86_get_callcvt): New function.
7131 (ix86_comp_type_attributes): Simplify check.
7132 (ix86_function_regparm): Use ix86_get_callcvt for calling
7133 convention attribute checks.
7134 (ix86_return_pops_args): Likewise.
7135 (ix86_static_chain): Likewise.
7136 (x86_this_parameter): Likewise.
7137 (x86_output_mi_thunk): Likewise.
7138 (ix86_function_type_abi): Optimize check for types without attributes.
7139 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7140 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7141 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7142 by flag-values.
7143 (IX86_BASE_CALLCVT): Helper macro.
7144 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7145 Use ix86_get_callcvt for calling convention attribute checks and avoid
7146 symbol-decoration for stdcall in TARGET_RTD case.
7147 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7148 Likewise.
7149 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7150 for declaration.
7151
7152 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7153
7154 * config/i386/sse.md (VI_128): New mode iterator.
7155 (VI12_128): Rename from SSEMODE12.
7156 (VI14_128): Rename from SSEMODE14.
7157 (VI124_128): New mode iterator.
7158 (VI24_128): Rename from SSEMODE248.
7159 (VI248_128): Rename from SSEMODE248.
7160 (SSEMODE124C8): Remove.
7161 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7162 (*sse2_<plusminus_insn><mode>3): Merge with
7163 *avx_<plusminus_insn><mode>3.
7164 (*mulv8hi3): Merge with *avx_mulv8hi3.
7165 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7166 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7167 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7168 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7169 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7170 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7171 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7172 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7173 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7174 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7175 (*<smaxmin:code>v8hi3): Ditto.
7176 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7177 (*<smaxmin:code>v16qi3): Ditto.
7178 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7179 (*sse2_eq<mode>3): Ditto.
7180 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7181 (*sse2_gt<mode>3): Ditto.
7182 (vcondv2di): Split out of vcond<mode>.
7183 (vconduv2di): Split out of vcondu<mode>.
7184
7185 2011-04-11 Richard Guenther <rguenther@suse.de>
7186
7187 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7188 before calling tree_low_cst.
7189
7190 2011-04-11 Richard Guenther <rguenther@suse.de>
7191
7192 * stor-layout.c (layout_type): Compute all array index size operations
7193 in the original type.
7194 (initialize_sizetypes): Add comment.
7195 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7196
7197 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7198
7199 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7200
7201 2011-04-11 Martin Jambor <mjambor@suse.cz>
7202
7203 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7204 of cgraph_node, handle NULL return value.
7205 (cgraph_global_info): Likewise.
7206 (cgraph_rtl_info): Likewise.
7207 * tree-inline.c (estimate_num_insns): Likewise.
7208 * gimplify.c (unshare_body): Likewise.
7209 (unvisit_body): Likewise.
7210 (gimplify_body): Likewise.
7211 * predict.c (optimize_function_for_size_p): Likewise.
7212 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7213 (call_may_clobber_ref_p_1): Likewise.
7214 * varasm.c (function_section_1): Likewise.
7215 (assemble_start_function): Likewise.
7216
7217 2011-04-11 Martin Jambor <mjambor@suse.cz>
7218
7219 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7220 of cgraph_node.
7221 * final.c (rest_of_clean_state): Likewise.
7222 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7223 * passes.c (pass_init_dump_file): Likewise.
7224 (execute_all_ipa_transforms): Likewise.
7225 (function_called_by_processed_nodes_p): Likewise.
7226 * predict.c (maybe_hot_frequency_p): Likewise.
7227 (probably_never_executed_bb_p): Likewise.
7228 (compute_function_frequency): Likewise.
7229 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7230 (unnest_nesting_tree_1): Likewise.
7231 (lower_nested_functions): Likewise.
7232 * tree-optimize.c (execute_fixup_cfg): Likewise.
7233 (tree_rest_of_compilation): Likewise.
7234 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7235 * tree-sra.c (ipa_early_sra): Likewise.
7236 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7237 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7238 * ipa.c (record_cdtor_fn): Likewise.
7239 * ipa-inline.c (cgraph_early_inlining): Likewise.
7240 (compute_inline_parameters_for_current): Likewise.
7241 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7242 * ipa-pure-const.c (local_pure_const): Likewise.
7243 * ipa-split.c (split_function): Likewise.
7244 (execute_split_functions): Likewise.
7245 * cgraphbuild.c (build_cgraph_edges): Likewise.
7246 (rebuild_cgraph_edges): Likewise.
7247 (cgraph_rebuild_references): Likewise.
7248 (remove_cgraph_callee_edges): Likewise.
7249 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7250 (verify_cgraph_node): Likewise.
7251 (cgraph_analyze_functions): Likewise.
7252 (cgraph_preserve_function_body_p): Likewise.
7253 (save_inline_function_body): Likewise.
7254 (save_inline_function_body): Likewise.
7255 * tree-inline.c (copy_bb): Likewise.
7256 (optimize_inline_calls): Likewise.
7257
7258 2011-04-11 Martin Jambor <mjambor@suse.cz>
7259
7260 PR tree-optimization/48195
7261 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7262 ipa_check_create_edge_args.
7263 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7264 ipa_check_create_edge_args.
7265 * ipa-inline.c (inline_generate_summary): Do not call
7266 ipa_check_create_node_params and ipa_check_create_edge_args.
7267 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7268 ipa_check_create_edge_args.
7269
7270 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7271
7272 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7273 instead of loop.
7274 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7275 * function.c (record_hard_reg_sets): Likewise.
7276 * ira.c (compute_regs_asm_clobbered): Likewise.
7277 * sched-deps.c (sched_analyze_1): Likewise.
7278 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7279
7280 2011-04-09 Xinliang David Li <davidxl@google.com>
7281
7282 PR tree-optimization/PR48484
7283 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7284 has_valid_pred lazily
7285
7286 2011-04-09 Duncan Sands <baldrick@free.fr>
7287
7288 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7289
7290 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7291
7292 * combine.c (combine_validate_cost): Adjust comments. Set registered
7293 cost of I0 to zero at the end, if any.
7294
7295 2011-04-08 Xinliang David Li <davidxl@google.com>
7296
7297 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7298 to insane profile data.
7299
7300 2011-04-08 Xinliang David Li <davidxl@google.com>
7301
7302 * ipa-cp.c (ipcp_update_profiling): Correct
7303 negative scale factor due to insane profile data.
7304
7305 2011-04-08 Xinliang David Li <davidxl@google.com>
7306
7307 * final.c (dump_basic_block_info): New function.
7308 (final): Dump basic block.
7309 (final_scan_insn): Remove old dump.
7310
7311 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7312
7313 PR target/47829
7314 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7315 crtbegin/crtend.
7316
7317 2011-04-08 Michael Matz <matz@suse.de>
7318
7319 PR middle-end/48389
7320 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7321 functions.
7322 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7323 * rtl.h (rebuild_jump_labels_chain): Declare.
7324 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7325 insns inserted on edges.
7326
7327 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7328
7329 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7330 * config/arm/arm-arches.def: New.
7331 * config/arm/arm-opts.h: New.
7332 * config/arm/genopt.sh: New.
7333 * config/arm/arm-tables.opt: New (generated).
7334 * config/arm/arm.c (arm_handle_option, arm_target_help,
7335 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7336 (all_architectures): Get most table contents from arm-arches.def.
7337 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7338 arm_selected_tune here.
7339 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7340 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7341 (march=, mcpu=, mtune=): Use Enum and Var.
7342 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7343 (arm.o): Update dependencies.
7344
7345 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7346
7347 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7348 of header_file.
7349 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7350 (write_typed_alloc_defns): Likewise.
7351 (main): Calls write_typed_alloc_defns with output_header.
7352
7353 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7354
7355 PR inline-asm/48435
7356 * ira-color.c (setup_profitable_hard_regs): Add comments.
7357 Don't take prohibited hard regs into account.
7358 (setup_conflict_profitable_regs): Rename to
7359 get_conflict_profitable_regs.
7360 (check_hard_reg_p): Check prohibited hard regs.
7361
7362 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7363
7364 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7365 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7366 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7367
7368 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7369
7370 PR target/48366
7371 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7372 move from floating point to shift amount register.
7373 (emit_move_sequence): Remove secondary reload support for floating
7374 point to shift amount amount register copies.
7375 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7376 amount register copies.
7377 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7378 register, return false if mode isn't a scalar integer mode.
7379 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7380
7381 2011-04-08 Richard Guenther <rguenther@suse.de>
7382
7383 * gimple.c (gimple_call_flags): Remove kludge.
7384
7385 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7386
7387 * sel-sched.c (sel_region_init): Move call to
7388 sel_setup_region_sched_flags after setup_current_loop_nest.
7389
7390 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7391
7392 PR rtl-optimization/48272
7393 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7394 init_insn_reg_pressure_info. Adjust a caller.
7395 * sched-int.h (init_insn_reg_pressure_info): Declare.
7396 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7397 when sched-pressure is enabled.
7398
7399 2011-04-08 Richard Guenther <rguenther@suse.de>
7400
7401 * gimple.c (gimple_set_modified): Do not queue calls to
7402 MODIFIED_NORETURN_CALLS here ...
7403 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7404
7405 2011-04-08 Richard Guenther <rguenther@suse.de>
7406
7407 PR lto/48467
7408 * toplev.c (lang_dependent_init): Do not open asm_out_file
7409 in WPA mode, nor perform debug machinery initialization.
7410 (finalize): Do not unlink asm_out_file in WPA mode.
7411
7412 2011-04-08 Richard Guenther <rguenther@suse.de>
7413
7414 * gimple.h (gimple_call_fntype): New function.
7415 (gimple_call_return_type): Use it.
7416 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7417 * gimple-low.c (gimple_check_call_args): Likewise.
7418 * gimple.c (gimple_call_flags): Likewise.
7419 (gimple_call_arg_flags): Likewise.
7420 (gimple_call_return_flags): Likewise.
7421 * tree-cfg.c (verify_gimple_call): Likewise.
7422 (do_warn_unused_result): Likewise.
7423 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7424 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7425
7426 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7427
7428 PR rtl-optimization/48235
7429 * sel-sched.c (code_motion_process_successors): Recompute the last
7430 insn in basic block if control flow changed.
7431 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7432 Update condition for ilist_remove.
7433
7434 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7435
7436 PR rtl-optimization/48302
7437 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7438 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7439 it to record added preheader blocks.
7440 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7441 on to sel_add_loop_preheaders.
7442 (sel_region_init): Move call to setup_current_loop_nest after
7443 sel_init_bbs.
7444
7445 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7446
7447 PR target/48273
7448 * cfgloop.h (loop_has_exit_edges): New helper.
7449 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7450 non-clonable.
7451 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7452 that have no exit edges.
7453
7454 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7455
7456 PR rtl-optimization/48442
7457 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7458 all callers. Adjust assert.
7459
7460 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7461
7462 PR tree-optimization/48377
7463 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7464 is_packed to true even for types with smaller TYPE_ALIGN than
7465 TYPE_SIZE.
7466
7467 2011-04-08 Richard Guenther <rguenther@suse.de>
7468
7469 PR bootstrap/48513
7470 * doc/tm.texi: Re-generate.
7471
7472 2011-04-08 Wei Guozhi <carrot@google.com>
7473
7474 PR target/47855
7475 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7476 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7477 * config/arm/arm.md (*push_multi): Change the length computation to
7478 call a C function.
7479
7480 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7481
7482 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7483 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7484 * doc/tm.texi: Regenerate.
7485 * system.h (ASM_OUTPUT_BSS): Poison.
7486 * varasm.c (asm_output_bss): Remove function.
7487 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7488
7489 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7490 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7491 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7492 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7493 Likewise.
7494 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7495 Likewise.
7496 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7497 Likewise.
7498 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7499
7500 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7501
7502 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7503 EnumValue lines.
7504
7505 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7506
7507 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7508 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7509 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7510 OPT_mcpu32.
7511 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7512 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7513 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7514 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7515 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7516 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7517 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7518 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7519 options. Don't map other m68k options manually. Don't handle
7520 old-style options as canonical.
7521 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7522 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7523
7524 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7525
7526 * basic-block.h (force_nonfallthru): Move to...
7527 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7528 (force_nonfallthru): ...here.
7529 * cfghooks.c (force_nonfallthru): New function.
7530 * cfgrtl.c (force_nonfallthru): Rename into...
7531 (rtl_force_nonfallthru): ...this.
7532 (commit_one_edge_insertion): Do not set AUX field.
7533 (commit_edge_insertions): Do not discover new basic blocks.
7534 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7535 (cfg_layout_rtl_cfg_hooks): Likewise.
7536 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7537 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7538 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7539
7540 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7541
7542 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7543 Remove macros.
7544
7545 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7546
7547 * config/i386/sse.md: Update copyright year.
7548 (avxcvtvecmode): Remove.
7549 (sse_movhlps): Merge with *avx_movhlps.
7550 (sse_movlhps): Merge with *avx_movlhps.
7551 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7552 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7553 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7554 (sse_loadhps): Merge with *avx_loadhps.
7555 (sse_storelps): Merge with *avx_storelps.
7556 (sse_loadlps): Merge with *avx_loadlps.
7557 (sse_movss): Merge with *avx_movss.
7558 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7559 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7560 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7561 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7562 (vec_set<mode>_0): Ditto.
7563 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7564 (sse4_1_insertps): Merge with *avx_insertps.
7565 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7566 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7567 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7568 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7569 (sse2_storehpd): Merge with *avx_storehpd.
7570 (sse2_loadhpd): Merge with *avx_loadhpd.
7571 (sse2_loadlpd): Merge with *avx_loadlpd.
7572 (sse2_movsd): Merge with *avx_movsd.
7573 (*vec_concatv2df): Merge with *vec_concatv2df.
7574
7575 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7576
7577 PR debug/48343
7578 * combine.c (combine_instructions): Add last_combined_insn,
7579 update it if insn is after it, pass it to all try_combine calls.
7580 (try_combine): Add last_combined_insn parameter, pass it instead of
7581 i3 to propagate_for_debug.
7582
7583 2011-04-07 Nick Clifton <nickc@redhat.com>
7584
7585 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7586 to handle MDR <-> data register transfers.
7587 (movhi_internal): Likewise.
7588
7589 2011-04-07 Alan Modra <amodra@gmail.com>
7590
7591 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7592 previous stack info.
7593
7594 2011-04-07 Tom de Vries <tom@codesourcery.com>
7595
7596 PR target/43920
7597 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7598 flow_find_cross_jump. Swap variables to implement backward replacement.
7599 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7600
7601 2011-04-07 Tom de Vries <tom@codesourcery.com>
7602
7603 PR target/43920
7604 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7605 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7606 and bb2.
7607 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7608 src1 or src2. Redirect edges to the last basic block. Update
7609 frequency and count on multiple basic blocks in case of fallthru.
7610
7611 2011-04-07 Tom de Vries <tom@codesourcery.com>
7612
7613 PR target/43920
7614 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7615 function.
7616 (old_insns_match_p): Change return type. Replace return false/true
7617 with return dir_none/dir_both. Use can_replace_by.
7618 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7619 direction from dir_p. Register replacement direction in dir, last_dir
7620 and afterlast_dir. Handle new return type of old_insns_match_p using
7621 merge_dir. Return replacement direction in dir_p.
7622 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7623 return type of old_insns_match_p.
7624 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7625 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7626 flow_find_cross_jump.
7627 * basic-block.h (enum replace_direction): New type.
7628 (flow_find_cross_jump): Add parameter to declaration.
7629
7630 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7631
7632 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7633 (AVXMODEDCVTPS2DQ): Ditto.
7634 (VEC_FLOAT_MODE): Ditto.
7635 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7636 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7637 (<any_logic:code><mode>3): Use VF mode iterator.
7638 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7639 Use VF mode iterator.
7640 (copysign<mode>3): Use VF mode iterator.
7641 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7642 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7643 (*<any_logic:code><MODEF:mode>3): Merge with
7644 *avx_<any_logic:code><MODEF:mode>3.
7645 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7646 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7647 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7648 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7649 (sse2_cvtdq2ps): Use %v modifier.
7650 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7651 (avx_cvtps2dq<avxmodesuffix>): Remove.
7652 (sse2_cvtps2dq): Use %v modifier.
7653 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7654 (avx_cvttps2dq<avxmodesuffix>): Remove.
7655 (sse2_cvttps2dq): Use %v modifier.
7656 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7657 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7658 (sse2_cvtsd2siq): Fix insn template.
7659 (sse2_cvtsd2siq_2): Ditto.
7660 (sse2_cvttsd2siq): Ditto.
7661 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7662 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7663
7664 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7665
7666 * gcov-io.c: Use GCC Runtime Library Exception.
7667
7668 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7669
7670 PR debug/48466
7671 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7672 as base_reg whatever register reg has been eliminated to, instead
7673 of hardcoding STACK_POINTER_REGNUM.
7674
7675 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7676
7677 * doc/tm.texi.in: Document C target hooks as separate from general
7678 target hooks.
7679 * doc/tm.texi: Regenerate.
7680 * genhooks.c (struct hook_desc): Add docname field.
7681 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7682 docname field.
7683 (hook_array): Include c-target.def.
7684 (emit_documentation): Use docname field in output.
7685 (emit_init_macros): Take docname argument. Only emit definitions
7686 for hooks matching docname.
7687 (main): Expect additional arguments in all cases. Pass argument
7688 to emit_init_macros.
7689 * target.def: Move initial macro definitions and comments to
7690 target-hooks-macros.h.
7691 (gcc_targetcm): Move to c-family/c-target.def.
7692 * target.h (targetcm): Move declaration to c-family/c-target.h.
7693 * targhooks.c (default_handle_c_option): Move to
7694 c-family/c-opts.c.
7695 * targhooks.h (default_handle_c_option): Move declaration to
7696 c-family/c-common.h.
7697 * target-hooks-macros.h: New file.
7698 * config.gcc (target_has_targetcm): Define and use to add to
7699 c_target_objs and cxx_target_objs.
7700 * config/default-c.c: New file.
7701 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7702 of target.h and target-def.h.
7703 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7704 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7705 darwin_check_cfstring_format_arg): Make static.
7706 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7707 TARGET_STRING_OBJECT_REF_TYPE_P,
7708 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7709 * config/darwin-protos.h (darwin_objc_construct_string,
7710 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7711 declare.
7712 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7713 TARGET_STRING_OBJECT_REF_TYPE_P,
7714 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7715 * config/t-darwin (darwin-c.o): Update dependencies.
7716 * system.h (TARGET_HAS_TARGETCM): Poison.
7717 * Makefile.in (TARGET_H): Update.
7718 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7719 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7720 (default-c.o): New target.
7721 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7722 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7723 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7724 c-target.def.
7725 (build/genhooks.o): Update dependencies.
7726
7727 2011-04-06 Richard Guenther <rguenther@suse.de>
7728
7729 * ipa-inline.c (enum inlining_mode): Remove.
7730 (cgraph_flatten): Use some other token.
7731 (cgraph_edge_early_inlinable_p): New function, split out from ...
7732 (cgraph_perform_always_inlining): New function, split out from ...
7733 (cgraph_decide_inlining_incrementally): ... here.
7734 (cgraph_mark_inline_edge): Adjust.
7735 (cgraph_early_inlining): Re-structure.
7736 (pass_early_inline): Require SSA form.
7737
7738 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7739 Julian Brown <julian@codesourcery.com>
7740 Mark Shinwell <shinwell@codesourcery.com>
7741
7742 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7743 LO_REGS only for Thumb-1.
7744 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7745 be used in short instructions when optimising for size on Thumb-2.
7746
7747 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7748
7749 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7750 associated with user returns to be preserved.
7751
7752 2011-04-06 Tristan Gingold <gingold@adacore.com>
7753
7754 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7755 symbol_queue_size, DBXOUT_DECR_NESTING,
7756 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7757 if XCOFF_DEBUGGING_INFO.
7758
7759 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7760
7761 * config/i386/i386.md (attribute isa): New.
7762 (attribute enabled): New.
7763 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7764 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7765 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7766 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7767 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7768 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7769 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7770 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7771
7772 * config/i386/sse.md (VF): New mode iterator.
7773 (VF1): Ditto.
7774 (VF2): Ditto.
7775 (VF_128): Ditto.
7776 (SSEMODEF4): Remove.
7777 (attribute sse): Handle V8SF and V4DF modes.
7778 (<absneg:code><mode>2): Use VF mode iterator.
7779 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7780 mode iterator.
7781 (<plusminus_insn><mode>3): Use VF mode iterator.
7782 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7783 Use VF mode iterator.
7784 (<sse>_vm<plusminus_insn><mode>3): Merge with
7785 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7786 (mul<mode>3): Use VF mode iterator.
7787 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7788 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7789 mode iterator.
7790 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7791 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7792 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7793 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7794 mode iterator.
7795 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7796 Use VF1 mode iterator.
7797 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7798 (sqrt<VF2:mode>2): New expander.
7799 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7800 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7801 and sqrtv2df2. Use VF mode iterator.
7802 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7803 mode iterator.
7804 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7805 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7806 Use VF1 mode iterator.
7807 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7808 (<smaxmin:code><mode>3): Use VF mode iterator.
7809 (*<smaxmin:code><mode>3_finite): Merge with
7810 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7811 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7812 (<sse>_vm<smaxmin:code><mode>2): Merge with
7813 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7814 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7815 mode iterator.
7816 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7817 mode iterator.
7818 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7819 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7820 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7821 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7822 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7823 VF mode iterator.
7824 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7825 Use VF_128 mode iterator.
7826 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7827 mode iterator.
7828 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7829 VF_128 mode iterator.
7830 (vcond<mode>): Use VF mode iterator.
7831 * config/i386/predicates.md (sse_comparison_operator): Merge with
7832 avx_comparison_float_operator. Do not declare as special_predicate.
7833 * config/i386/i386.c (struct builtin_description): Update for renamed
7834 compare patterns.
7835 (ix86_expand_args_builtin): Ditto.
7836 (ix86_expand_sse_compare_mask): Ditto.
7837
7838 2011-04-06 Richard Guenther <rguenther@suse.de>
7839
7840 * tree-inline.c (estimate_num_insns): For calls simply account
7841 for all passed arguments and a used return value.
7842
7843 2011-04-06 Richard Guenther <rguenther@suse.de>
7844
7845 PR tree-optimization/47663
7846 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7847 call_stmt_time fields.
7848 (cgraph_edge_inlinable_p): Declare.
7849 (cgraph_edge_recursive_p): New inline function.
7850 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7851 (cgraph_clone_edge): Copy it.
7852 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7853 Account for call stmt time.
7854 (cgraph_estimate_time_after_inlining): Take edge argument.
7855 (cgraph_estimate_edge_growth): Account call stmt size.
7856 (cgraph_estimate_size_after_inlining): Take edge argument.
7857 (cgraph_mark_inline_edge): Adjust.
7858 (cgraph_check_inline_limits): Likewise.
7859 (cgraph_recursive_inlining_p): Remove.
7860 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7861 (cgraph_decide_recursive_inlining): Take edge argument and
7862 adjust.
7863 (cgraph_decide_inlining_of_small_functions): Do not avoid
7864 diags for recursive inlining here.
7865 (cgraph_flatten): Adjust.
7866 (cgraph_decide_inlining_incrementally): Likewise.
7867 (estimate_function_body_sizes): Remove call cost handling.
7868 (compute_inline_parameters): Initialize caller edge call costs.
7869 (cgraph_estimate_edge_growth): New function.
7870 (cgraph_estimate_growth): Use it.
7871 (cgraph_edge_badness): Likewise.
7872 (cgraph_check_inline_limits): Take an edge argument.
7873 (cgraph_decide_inlining_of_small_functions): Adjust.
7874 (cgraph_decide_inlining): Likewise.
7875 * tree-inline.c (estimate_num_insns): Only account for call
7876 return value if it is used.
7877 (expand_call_inline): Avoid diagnostics on recursive inline
7878 functions here.
7879 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7880 (input_edge): Input edge call costs.
7881
7882 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7883
7884 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7885
7886 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7887
7888 * doc/invoke.texi (Spec Files): Fix typo.
7889
7890 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7891
7892 * profile.c (branch_prob): Move declaration of local variable. Remove
7893 obsolete ??? comment. Expand the location explicitly instead of using
7894 the LOCATION_FILE and LOCATION_LINE macros.
7895
7896 2011-04-06 Wei Guozhi <carrot@google.com>
7897
7898 PR target/47855
7899 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7900 (arm_cond_branch): Likewise.
7901 (arm_cond_branch_reversed): Likewise.
7902 (arm_jump): Likewise.
7903 (push_multi): Likewise.
7904 * config/arm/constraints.md (Py): New constraint.
7905
7906 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7907
7908 PR bootstrap/48471
7909 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7910 Move these...
7911 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7912 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7913 #ifdef DBX_DEBUGGING_INFO.
7914
7915 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7916
7917 PR bootstrap/48403
7918 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7919 if old and new states differ.
7920
7921 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7922
7923 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7924 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7925 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7926 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7927 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7928 mcfv4e): Use Alias.
7929 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7930 ColdFire options to -mcpu= options.
7931
7932 2011-04-05 Jeff Law <law@redhat.com>
7933
7934 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7935 check if BB is a successor of LOOP->header and return
7936 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7937
7938 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7939
7940 * cprop.c (struct reg_use): Remove.
7941 (reg_use_table): Make an array of RTX.
7942 (find_used_regs, constprop_register, local_cprop_pass,
7943 bypass_block): Simplify users of reg_use_table.
7944 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7945 on one of the uses found by find_used_regs.
7946
7947 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7948
7949 PR bootstrap/48469
7950 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7951 declaration.
7952
7953 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7954
7955 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7956 as an rtx.
7957 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7958
7959 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7960
7961 PR middle-end/48441
7962 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7963
7964 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7965
7966 * combine.c: Include obstack.h.
7967 (struct insn_link): Define.
7968 (uid_log_links): Adjust type.
7969 (FOR_EACH_LOG_LINK): New macro.
7970 (insn_link_obstack): Declare.
7971 (alloc_insn_link): Define.
7972 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7973 type of link variables.
7974 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7975 (try_combine, record_promoted_values, distribute_notes): Likewise.
7976 (distribute_links): Likewise. Tweak prototype.
7977 (clear_log_links): Delete.
7978 (adjust_for_new_dest): Call alloc_insn_link.
7979 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7980
7981 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7982
7983 * gcse.c (modify_mem_list): Convert to an array of VECs.
7984 (canon_modify_mem_list, compute_transp): Tweak formatting.
7985 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7986 (load_killed_in_block_p): Likewise.
7987 (record_last_mem_set_info): Likewise.
7988 (clear_modify_mem_tables): Likewise.
7989
7990 2011-04-05 Tom de Vries <tom@codesourcery.com>
7991
7992 PR middle-end/48461
7993 * function.c (emit_use_return_register_into_block): Only define if
7994 HAVE_return.
7995
7996 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7997
7998 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7999
8000 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8001
8002 * config/rx/rx-opts.h: New.
8003 * config/rx/rx.c (rx_cpu_type): Remove.
8004 (rx_handle_option): Don't assert that global structures are in
8005 use. Access variables via opts pointer. Defer most handling of
8006 OPT_mint_register_. Use error_at.
8007 (rx_option_override): Handle deferred OPT_mint_register_ here.
8008 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8009 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8010 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8011 (rx_cpu_types): New Enum and EnumValue entries.
8012 (mint-register=): Use Defer and use Var accordingly.
8013
8014 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8015
8016 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8017 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8018 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8019 Move these...
8020 (debug_free_queue, debug_nesting, symbol_queue_index):
8021 ...and these...
8022 * dbxout.c: ...to here. Make static.
8023
8024 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8025
8026 * gcse.c (modify_pair): Define. Define a VEC of it.
8027 (canon_modify_mem_list): Convert to an array of VECs.
8028 (free_insn_expr_list_list): Delete.
8029 (clear_modify_mem_tables): Call VEC_free instead.
8030 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8031 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8032 (canon_list_insert, compute_transp): Likewise.
8033
8034 2011-04-05 Tom de Vries <tom@codesourcery.com>
8035
8036 PR target/43920
8037 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8038 for size.
8039
8040 2011-04-05 Tom de Vries <tom@codesourcery.com>
8041
8042 PR target/43920
8043 * function.c (emit_use_return_register_into_block): New function.
8044 (thread_prologue_and_epilogue_insns): Use
8045 emit_use_return_register_into_block.
8046
8047 2011-04-05 Tom de Vries <tom@codesourcery.com>
8048
8049 PR target/43920
8050 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8051 insn.
8052
8053 2011-04-05 Tom de Vries <tom@codesourcery.com>
8054
8055 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8056
8057 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8058
8059 * config/arm/arm.md (define_constants for unspec): Replace with
8060 define_c_enum.
8061 (define_constants for unspecv): Replace with define_c_enum.
8062 * config/arm/neon.md (define_constants for unspec): Replace with
8063 define_c_enum.
8064
8065 2011-04-04 Richard Henderson <rth@redhat.com>
8066
8067 PR bootstrap/48400
8068 * dwarf2out.c (output_line_info): Always emit line info from
8069 at least one section.
8070 (dwarf2out_init): Create text_section_line_info here ...
8071 (set_cur_line_info_table): ... not here.
8072
8073 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8074
8075 PR target/48380
8076 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8077 not called.
8078
8079 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8080
8081 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8082
8083 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8084 (expr_equiv_p): Remove.
8085 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8086 (hash_scan_set): Update call to insert_set_in_table.
8087 (dump_hash_table): Dump <dest, src> pair.
8088 (lookup_set): Simplify. Lookup <dest, src> pair.
8089 (compute_transp): Remove, fold heavily simplified code into...
8090 (compute_local_properties): ...here. Expect COMP and TRANSP
8091 unconditionally.
8092 (find_avail_set): Take set directly from struct expr.
8093 (find_bypass-set): Likewise.
8094 (bypass_block): Likewise.
8095 (cprop_insn): Likewise. Remove redundant INSN_P test.
8096
8097 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8098 checks on form of COND from find_implicit_sets to here.
8099 (find_implicit_sets): Cleanup control flow. Split critical edges
8100 if it exposes implicit sets. Allocate/resize implicit_sets as
8101 necessary.
8102 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8103 changed something. Run df_analyze after find_implicit_sets if any
8104 edges were split. Do not allocate implicit_sets here.
8105
8106 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8107 (gcse_obstack): Renamed to cprop_obstack.
8108 (GNEW, GNEWVEC, GNEWVAR): Remove.
8109 (gmalloc): Remove.
8110 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8111 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8112 (gcse_alloc): Likewise, and rename to cprop_alloc.
8113 (alloc_gcse_men, free_gcse_mem): Remove.
8114 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8115 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8116 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8117
8118 * cprop.c (oprs_not_set_p): Remove.
8119 (mark_set, mark_clobber): Remove.
8120 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8121 (reg_not_set_p): New function.
8122 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8123 (cprop_insn): Likewise.
8124 (cprop_jump): Use FOR_EACH_EDGE.
8125
8126 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8127
8128 PR bootstrap/48403
8129 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8130 (rank_for_schedule): Use scheduled_insns vector instead of
8131 last_scheduled_insn.
8132 (ok_for_early_queue_removal): Likewise.
8133 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8134 we have a dbg_cnt.
8135 (choose_ready): Likewise.
8136 (commit_schedule): Use VEC_iterate.
8137 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8138 a dbg_cnt, use it and ensure the first insn is in the ready list.
8139 (haifa_sched_init): Allocate scheduled_insns.
8140 (sched_extend_ready_list): Don't allocate it; reserve space.
8141 (haifa_sched_finish): Free it.
8142
8143 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8144
8145 * optc-gen.awk: Always remove type from Variable entry before
8146 recording in var_seen.
8147
8148 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8149
8150 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8151 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8152 call to tidy_fallthru_edges.
8153
8154 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8155
8156 * doc/options.texi (ToLower): Document.
8157 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8158 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8159 * opts.h (cl_option): Add cl_tolower field.
8160 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8161 arguments with lowercase strings.
8162 * config/rx/rx.opt (mcpu=): Add ToLower.
8163 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8164 argument.
8165
8166 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8167
8168 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8169
8170 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8171
8172 * config/vax/vax.c: Include reload.h.
8173
8174 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8175
8176 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8177 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8178 (sparc_preferred_reload_class): New function.
8179
8180 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8181
8182 PR debug/48401
8183 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8184 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8185
8186 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8187
8188 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8189 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8190
8191 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8192
8193 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8194 (ASM_OUTPUT_ALIGNED_BSS): Define.
8195
8196 2011-04-03 Michael Matz <matz@suse.de>
8197
8198 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8199 and next_slot members.
8200 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8201 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8202 (lto_streamer_cache_append): Declare.
8203 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8204 unsigned index, remove offset parameter, ensure that we append
8205 or update existing entries.
8206 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8207 parameter, update next_slot for append.
8208 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8209 parameter.
8210 (lto_streamer_cache_insert_at): Likewise.
8211 (lto_streamer_cache_append): New function.
8212 (lto_streamer_cache_lookup): Use unsigned index.
8213 (lto_streamer_cache_get): Likewise.
8214 (lto_record_common_node): Don't test tree_node_can_be_shared.
8215 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8216 (lto_streamer_cache_delete): Don't free offsets member.
8217 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8218 (lto_output_string_with_length): Use lto_output_data_stream.
8219 (lto_output_tree_header): Remove ix parameter, don't write it.
8220 (lto_output_builtin_tree): Likewise.
8221 (lto_write_tree): Adjust callers to above, don't track and write
8222 offset, write unsigned index.
8223 (output_unreferenced_globals): Don't emit all global vars.
8224 (write_global_references): Use unsigned indices.
8225 (lto_output_decl_state_refs): Likewise.
8226 (write_symbol): Likewise.
8227 * lto-streamer-in.c (lto_input_chain): Move earlier.
8228 (input_function): Use unsigned index.
8229 (input_alias_pairs): Don't read and then ignore all global vars.
8230 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8231 don't pass it back, use lto_streamer_cache_append.
8232 (lto_register_var_decl_in_symtab): Use unsigned index.
8233 (lto_register_function_decl_in_symtab): Likewise.
8234 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8235 index.
8236 (lto_get_builtin_tree): Don't read index, use
8237 lto_streamer_cache_append.
8238 (lto_read_tree): Adjust call to lto_materialize_tree.
8239
8240 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8241 don't use function calls in arguments to MIN.
8242
8243 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8244 twice.
8245
8246 * gimple.c (gimple_type_leader_entry): Mark deletable.
8247
8248 2011-04-03 Alan Modra <amodra@gmail.com>
8249
8250 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8251
8252 2011-04-03 Michael Matz <matz@suse.de>
8253
8254 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8255 an integer.
8256 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8257
8258 2011-04-03 Michael Matz <matz@suse.de>
8259
8260 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8261 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8262 without function context.
8263 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8264 current_function_decl and cfun.
8265
8266 2011-04-03 Michael Matz <matz@suse.de>
8267
8268 * tree.c (decl_init_priority_insert): Don't create entry for
8269 default priority.
8270 (decl_fini_priority_insert): Ditto.
8271 (fields_compatible_p, find_compatible_field): Remove.
8272 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8273 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8274
8275 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8276
8277 * combine.c (try_combine): Remove useless local variable.
8278
8279 2011-04-03 Richard Guenther <rguenther@suse.de>
8280 Ira Rosen <ira.rosen@linaro.org>
8281
8282 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8283 non-variable offsets and compare the remaining bases of the two
8284 accesses instead of looking for exact same data-ref.
8285
8286 2011-04-02 Kai Tietz <ktietz@redhat.com>
8287
8288 PR target/48416
8289 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8290
8291 * i386.c (ix86_is_msabi_thiscall): New helper function.
8292 (ix86_is_type_thiscall): New helper function.
8293 (ix86_comp_type_attributes): Handle thiscall for method-functions
8294 special.
8295 (init_cumulative_args): Likewise.
8296 (find_drap_reg): Likewise.
8297 (ix86_static_chain): Likewise.
8298 (x86_this_parameter): Likewise.
8299 (x86_output_mi_thunk): Likewise.
8300
8301 2011-04-01 Olivier Hainque <hainque@adacore.com>
8302 Nicolas Setton <setton@adacore.com>
8303 Eric Botcazou <ebotcazou@adacore.com>
8304
8305 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8306 (add_gnat_descriptive_type_attribute): New function.
8307 (gen_array_type_die): Call it.
8308 (gen_enumeration_type_die): Likewise.
8309 (gen_struct_or_union_type_die): Likewise.
8310 (modified_type_die): Likewise.
8311 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8312 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8313 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8314
8315 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8316
8317 PR bootstrap/48148
8318 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8319 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8320
8321 Revert:
8322 2011-03-17 Richard Guenther <rguenther@suse.de>
8323
8324 PR bootstrap/48148
8325 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8326 origin for decls in other ltrans units.
8327 (input_varpool_node): Likewise.
8328
8329 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8330
8331 PR middle-end/48335
8332 * expr.c (expand_assignment): Handle all possibilities
8333 if TO_RTX is CONCAT.
8334 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8335 (store_split_bit_field): If SUBREG_REG (op0) or
8336 op0 itself has smaller mode than word, return it
8337 for offset 0 and const0_rtx for out-of-bounds stores.
8338 If word is const0_rtx, skip it.
8339
8340 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8341
8342 * config/h8300/h8300.c (print_operand_address): Rename to...
8343 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8344 Call h8300_print_operand and h8300_print_operand_address instead of
8345 print_operand and print_operand_address. Declare.
8346 (print_operand): Renake to...
8347 (h8300_print_operand): ...this. Make static. Adjust comments.
8348 Call h8300_print_operand instead of print_operand. Declare.
8349 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8350 (h8300_register_move_cost): Likewise.
8351 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8352 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8353 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8354 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8355 * config/h8300/h8300-protos.h (print_operand): Delete.
8356 (print_operand_address): Delete.
8357
8358 2011-04-01 Richard Henderson <rth@redhat.com>
8359
8360 PR 48400
8361 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8362 in strict mode before dwarf4. Re-order tests to early out
8363 before switching sections.
8364
8365 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8366
8367 * config/h8300/constraints.md: New file.
8368 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8369 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8370 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8371 * config/h8300/predicates.md (bit_operand): Likewise.
8372 (incdec_operand): Use satisfies_constraint_M and
8373 satisfies_constraint_O. Don't use C code block.
8374 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8375 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8376 (compute_mov_length): Use satisfies_constraint_G.
8377 (fix_bit_operand): Use satisfies_constraint_U.
8378 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8379 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8380 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8381 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8382 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8383 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8384 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8385 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8386 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8387 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8388 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8389 (EXTRA_MEMORY_CONSTRAINT): Delete.
8390
8391 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8392 Michael Meissner <meissner@linux.vnet.ibm.com>
8393
8394 PR target/48262
8395 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8396 operands, as per the specifications.
8397
8398 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8399 (vec_extract_evenv4sf): Ditto.
8400 (vec_extract_evenv8hi): Ditto.
8401 (vec_extract_evenv16qi): Ditto.
8402 (vec_extract_oddv4si): Ditto.
8403
8404 2011-03-31 Mark Wielaard <mjw@redhat.com>
8405
8406 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8407 high_pc attribute if the CU has no associated code. Only output
8408 DW_AT_entry_pc for CU if not generating strict dwarf and
8409 dwarf_version < 4.
8410
8411 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8412
8413 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8414 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8415 out of ...
8416 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8417 * final.c (final_start_function): Call the new function rather
8418 than using a NULL argument for dwarf2out_frame_debug.
8419
8420 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8421 that contains the prologue.
8422
8423 * haifa-sched.c (queue_insn): New arg REASON. All callers
8424 changed. Print it in debugging output.
8425
8426 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8427
8428 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8429 Split most of the code into...
8430 (begin_move_insn): ... here. New function.
8431 (ebb_sched_info): Add a pointer to it.
8432 * haifa-sched.c (scheduled_insns): New static variable.
8433 (sched_extend_ready_list): Allocate it.
8434 (schedule_block): Use it to record the order of scheduled insns.
8435 Perform RTL changes to move insns only after all scheduling
8436 decisions have been made.
8437 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8438 begin_move_insn field.
8439 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8440 * sched-int.h (struct haifa_sched_info): Remove second argument
8441 from begin_schedule_ready hook. Add new member begin_move_insn.
8442 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8443 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8444
8445 * haifa-sched.c (prune_ready_list): New function, broken out of
8446 schedule_block.
8447 (schedule_block): Use it.
8448
8449 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8450
8451 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8452
8453 2011-04-01 Kai Tietz <ktietz@redhat.com>
8454
8455 * config.gcc (*-*-mingw*): Allow as option the
8456 posix threading model.
8457 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8458 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8459 definition.
8460 (CPP_SPEC): Add pthread/no-pthread handling.
8461 (LIB_SPEC): Likewise.
8462 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8463 (LIB_SPEC): Likewise.
8464 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8465 flag to pass -pthread option for shared libgcc build.
8466 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8467 for shared libgcc build.
8468 * config/i386/t-mingw-pthread: New file.
8469 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8470 New define to enable use of library pthread by default.
8471 * config/i386/mingw.opt (pthread): New driver option.
8472 (no-pthread): New driver option.
8473 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8474 * config/i386/mingw-w64.opt: Likewise.
8475
8476 2011-04-01 Gary Funck <gary@intrepid.com>
8477
8478 * c-decl.c (grokdeclarator): Fix formatting.
8479
8480 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8481
8482 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8483 instead of n_operands.
8484 (set_storage_via_setmem): Likewise.
8485 * optabs.c (maybe_gen_insn): Likewise.
8486 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8487 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8488 (mips_expand_builtin_direct): Likewise.
8489 * config/spu/spu.c (expand_builtin_args): Likewise.
8490
8491 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8492
8493 * recog.h (insn_data_d): Add n_generator_args.
8494 * genoutput.c (data): Likewise.
8495 (output_insn_data): Print it.
8496 (max_opno, num_dups): Delete.
8497 (scan_operands): Just fill in "d->operand[...]".
8498 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8499
8500 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8501
8502 * gensupport.h (pattern_stats): New structure.
8503 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8504 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8505 (max_operand_1, max_operand_vec): Delete.
8506 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8507
8508 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8509
8510 * emit-rtl.c (emit_pattern_after_setloc): New function.
8511 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8512 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8513 (emit_pattern_after): New function.
8514 (emit_insn_after, emit_jump_insn_after): Call it.
8515 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8516 (emit_pattern_before_setloc): New function.
8517 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8518 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8519 Likewise.
8520 (emit_pattern_before): New function.
8521 (emit_insn_before, emit_jump_insn_before): Call it.
8522 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8523
8524 2011-03-31 Richard Henderson <rth@redhat.com>
8525
8526 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8527 (dw_separate_line_info_entry): Remove.
8528 (enum dw_line_info_opcode): New.
8529 (dw_line_info_entry): Use it.
8530 (dw_line_info_table, dw_line_info_table_p): New.
8531 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8532 (line_info_table, line_info_label_num): Remove.
8533 (line_info_table_in_use): Remove.
8534 (separate_line_info_table): Remove.
8535 (separate_line_info_table_allocated): Remove.
8536 (separate_line_info_table_in_use): Remove.
8537 (LINE_INFO_TABLE_INCREMENT): Remove.
8538 (line_info_label_num): New.
8539 (cur_line_info_table): New.
8540 (text_section_line_info, cold_text_section_line_info): New.
8541 (separate_line_info): New.
8542 (SEPARATE_LINE_CODE_LABEL): Remove.
8543 (print_dwarf_line_table): Remove.
8544 (debug_dwarf): Don't dump it.
8545 (output_one_line_info_table): New.
8546 (output_line_info): Use it.
8547 (new_line_info_table): New.
8548 (set_cur_line_info_table): New.
8549 (dwarf2out_switch_text_section): Use it.
8550 (dwarf2out_begin_function): Likewise.
8551 (push_dw_line_info_entry): New.
8552 (dwarf2out_source_line): Rewrite for new line info tables.
8553 (dwarf2out_init): Remove dead initailizations.
8554
8555 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8556
8557 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8558 various flags.
8559 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8560 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8561 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8562 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8563 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8564 * opt-functions.awk (flag_init, switch_bit_fields): New.
8565 (switch_flags): Don't handle flags moved to bit-fields. Don't
8566 generate CL_MISSING_OK or CL_SAVE.
8567 * optc-gen.awk: Update to generate bit-field output as well as
8568 flags field.
8569 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8570 bit-field instead of CL_REJECT_DRIVER flag.
8571 * opts-common.c (generate_canonical_option,
8572 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8573 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8574 instead of CL_REJECT_NEGATIVE flag.
8575 * toplev.c (print_switch_values): Use cl_report bit-field instead
8576 of CL_REPORT flag.
8577
8578 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8579
8580 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8581 a zero minimum index only if it is redundant.
8582
8583 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8584
8585 PR rtl-optimization/48381
8586 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8587 instead of ira_class_hard_reg_index for calculating conflicting
8588 hard registers.
8589
8590 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8591
8592 * cprop.c: Clean up hash table building.
8593 (reg_avail_info): Remove.
8594 (oprs_available_p): Remove.
8595 (record_last_reg_set_info): Remove.
8596 (record_last_set_info): Remove.
8597 (reg_available_p): New function.
8598 (gcse_constant_p): Do not treat unfolded conditions as constants.
8599 (make_set_regs_unavailable): New function.
8600 (hash_scan_set): Simplify with new reg_available_p.
8601 (compute_hash_table_work): Traverse insns stream only once.
8602 Do not compute reg_avail_info. Traverse insns in reverse order.
8603 Record implicit sets after recording explicit sets from the block.
8604
8605 2011-03-31 Michael Matz <matz@suse.de>
8606
8607 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8608
8609 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8610
8611 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8612 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8613 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8614 (h8300_mode_dependent_address_p): New function.
8615 (h8300_get_index): Make static.
8616
8617 2011-03-31 Jeff Law <law@redhat.com>
8618
8619 * reload1.c (elimination_effects): Fix typo in recent change.
8620
8621 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8622 typo potentially leading to null pointer dereference.
8623
8624 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8625 (setup_save_areas): Corresponding changes to avoid useless
8626 assignments.
8627
8628 * jump.c (reversed_comparison_code_parts): Avoid successive return
8629 statements when REVERSE_CONDITION is defined.
8630
8631 * expr.c (expand_assignment): Avoid useless assignments.
8632 (expand_expr_real_1): Likewise.
8633 (expand_expr_real_2): Avoid useless statements.
8634
8635 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8636
8637 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8638
8639 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8640 statements.
8641
8642 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8643
8644 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8645
8646 PR target/47109
8647 * doc/tm.texi.in (TARGET_VERSION): Remove.
8648 * doc/tm.texi: Regenerate.
8649 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8650 * collect2.c (main): Don't use TARGET_VERSION.
8651 * mips-tdump.c (main): Don't use TARGET_VERSION.
8652 * mips-tfile.c (main): Don't use TARGET_VERSION.
8653 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8654 * config/rs6000/vxworksae.h: Remove.
8655 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8656 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8657 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8658 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8659 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8660 * config/arm/arm.h (TARGET_VERSION): Remove.
8661 * config/arm/coff.h (TARGET_VERSION): Remove.
8662 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8663 * config/arm/elf.h (TARGET_VERSION): Remove.
8664 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8665 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8666 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8667 * config/arm/pe.h (TARGET_VERSION): Remove.
8668 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8669 * config/arm/semi.h (TARGET_VERSION): Remove.
8670 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8671 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8672 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8673 * config/avr/avr.h (TARGET_VERSION): Remove.
8674 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8675 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8676 * config/frv/frv.h (TARGET_VERSION): Remove.
8677 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8678 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8679 * config/i386/darwin.h (TARGET_VERSION): Remove.
8680 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8681 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8682 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8683 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8684 * config/i386/gnu.h (TARGET_VERSION): Remove.
8685 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8686 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8687 * config/i386/linux.h (TARGET_VERSION): Remove.
8688 * config/i386/linux64.h (TARGET_VERSION): Remove.
8689 * config/i386/lynx.h (TARGET_VERSION): Remove.
8690 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8691 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8692 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8693 * config/i386/netware.h (TARGET_VERSION): Remove.
8694 * config/i386/nto.h (TARGET_VERSION): Remove.
8695 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8696 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8697 * config/ia64/elf.h (TARGET_VERSION): Remove.
8698 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8699 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8700 * config/ia64/linux.h (TARGET_VERSION): Remove.
8701 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8702 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8703 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8704 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8705 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8706 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8707 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8708 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8709 * config/m68k/linux.h (TARGET_VERSION): Remove.
8710 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8711 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8712 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8713 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8714 * config/mep/mep.h (TARGET_VERSION): Remove.
8715 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8716 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8717 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8718 * config/mips/linux.h (TARGET_VERSION): Remove.
8719 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8720 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8721 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8722 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8723 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8724 * config/pa/pa.h (TARGET_VERSION): Remove.
8725 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8726 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8727 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8728 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8729 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8730 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8731 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8732 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8733 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8734 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8735 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8736 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8737 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8738 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8739 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8740 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8741 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8742 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8743 * config/s390/linux.h (TARGET_VERSION): Remove.
8744 * config/s390/s390.h (TARGET_VERSION): Remove.
8745 * config/s390/tpf.h (TARGET_VERSION): Remove.
8746 * config/score/score.h (TARGET_VERSION): Remove.
8747 * config/sh/linux.h (TARGET_VERSION): Remove.
8748 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8749 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8750 * config/sh/sh.h (TARGET_VERSION): Remove.
8751 * config/sh/sh64.h (TARGET_VERSION): Remove.
8752 * config/sh/superh.h (TARGET_VERSION): Remove.
8753 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8754 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8755 * config/sparc/linux.h (TARGET_VERSION): Remove.
8756 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8757 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8758 TARGET_NAME32, TARGET_NAME): Remove.
8759 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8760 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8761 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8762 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8763 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8764 * config/spu/spu.h (TARGET_VERSION): Remove.
8765 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8766 * config/v850/v850.h (TARGET_VERSION): Remove.
8767 * config/vax/linux.h (TARGET_VERSION): Remove.
8768 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8769 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8770 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8771
8772 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8773
8774 PR target/48142
8775 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8776 frame-related from frame-unrelated adjustments to the stack pointer.
8777
8778 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8779
8780 * common.opt (fdebug-types-section): Move earlier.
8781 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8782
8783 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8784
8785 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8786 var.
8787
8788 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8789
8790 * tree.h (CASE_CHAIN): Define.
8791 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8792 (gimple_redirect_edge_and_branch): Likewise.
8793
8794 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8795
8796 PR middle-end/48367
8797 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8798 calculation.
8799
8800 2011-03-30 Jeff Law <law@redhat.com>
8801
8802 * PR bootstrap/48371
8803 * reload1.c (reload): Fix botch in last change.
8804
8805 * reload.h (struct reload): Fix typo introduced in last change.
8806
8807 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8808
8809 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8810 Undocumented. Remove help text.
8811 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8812 -mhard-float.
8813
8814 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8815
8816 * doc/options.texi (NegativeAlias): Document.
8817 (Alias): Mention NegativeAlias.
8818 * opt-functions.awk: Handle NegativeAlias.
8819 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8820 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8821 * opts.h (CL_NEGATIVE_ALIAS): Define.
8822 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8823 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8824 OPT_mspe_.
8825 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8826 Alias entries.
8827 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8828 mno-spe and mno-isel instead of mspe=no and -misel=no.
8829
8830 2011-03-29 Mark Wielaard <mjw@redhat.com>
8831
8832 * common.opt (fdebug-types-section): New flag.
8833 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8834 * dwarf2out.c (use_debug_types): New define.
8835 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8836 (print_die): Guard output of type unit signatures using
8837 use_debug_types.
8838 (build_abbrev_table): Replace assert of dwarf_version >= 4
8839 with assert on use_debug_types.
8840 (size_of_die): Likewise.
8841 (unmark_dies): Likewise.
8842 (value_format): Decide AT_ref_external form on use_debug_types.
8843 (output_die): Replace dwarf_version version check guard with
8844 use_debug_types where appropriate.
8845 (modified_type_die): Likewise.
8846 (gen_reference_type_die): Likewise.
8847 (dwarf2out_start_source_file): Likewise.
8848 (dwarf2out_end_source_file): Likewise.
8849 (prune_unused_types_walk_attribs): Likewise.
8850 (dwarf2out_finish): Likewise.
8851
8852 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8853
8854 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8855
8856 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8857
8858 PR rtl-optimization/48332
8859 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8860 mode of input operand N and modeN to its actual mode.
8861
8862 2011-03-30 Jeff Law <law@redhat.com>
8863
8864 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8865 define accessor macro.
8866 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8867 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8868 (reg_equiv_init): Likewise.
8869 (reg_equivs_size): New variable.
8870 (reg_equiv_init_size): Remove.
8871 (allocate_initial_values): Move prototype to here from....
8872 * integrate.h (allocate_initial_values): Remove prototype.
8873 * integrate.c: Include reload.h.
8874 (allocate_initial_values): Corresponding changes.
8875 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8876 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8877 (update_equiv_regs): Corresponding changes.
8878 (ira): Corresponding changes.
8879 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8880 (push_secondary_reload): Corresponding changes.
8881 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8882 (make_memloc, find_reloads_address): Corresponding changes.
8883 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8884 (find_reloads_address_1): Corresponding changes.
8885 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8886 (refers_to_regno_for_reload_p): Corresponding changes.
8887 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8888 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8889 * reload1.c: Include ggc.h.
8890 (grow_reg_equivs): New function.
8891 (replace_pseudos_in, reload): Corresponding changes.
8892 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8893 (eliminate_regs_1, elimination_effects): Corresponding changes.
8894 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8895 (delete_output_reload): Likewise.
8896 * caller-save.c (mark_referenced_regs): Corresponding changes.
8897 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8898 * frv/predicates.md (frv_load_operand): Corresponding changes.
8899 * microblaze/microblaze.c (double_memory_operand): Corresponding
8900 changes.
8901 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8902 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8903 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8904 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8905 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8906 changes.
8907 * pa/pa.c (emit_move_sequence): Corresponding changes.
8908 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8909
8910 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8911
8912 PR target/47551
8913 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8914 structure modes. Don't check neon_vector_mem_operand for
8915 vector or structure modes.
8916
8917 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8918 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8919
8920 PR target/43590
8921 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8922 operand 1 and reshuffle the operands to match.
8923 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8924
8925 2011-03-30 Christian Schüler <cschueler@gmx.de>
8926
8927 PR driver/48208
8928 * config/c.opt (F): Added 'Driver' to -F option.
8929
8930 PR driver/48260
8931 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8932 handler function.
8933 * config/darwin.opt: Added '-arch' option.
8934
8935 2011-03-30 Nick Clifton <nickc@redhat.com>
8936
8937 * config/rx/rx.md: Add peepholes and patterns to combine
8938 extending loads and simple arithmetic instructions.
8939 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8940 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8941 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8942 modes to use pre-decrement and post-increment addressing.
8943 (rx_is_restricted_memory_address): Add range checking of REG+INT
8944 addresses.
8945 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8946 (rx_memory_move_cost): Adjust cost of stores.
8947 (rx_adjust_insn_length): New function.
8948
8949 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8950
8951 PR c/48305
8952 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8953 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8954 matching arg00/arg01 types.
8955
8956 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8957
8958 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8959 last_location to UNKNOWN_LOCATION.
8960
8961 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8962
8963 PR target/48349
8964 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8965 FLOAT_SSE_REGS.
8966
8967 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8968 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8969
8970 PR bootstrap/48337
8971 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8972 Init(PROCESSOR_V7).
8973 (sparc_cpu): Likewise.
8974 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8975 PROCESSOR_V7.
8976
8977 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8978
8979 PR target/48336
8980 PR middle-end/48342
8981 PR rtl-optimization/48345
8982 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8983 hard regs for given mode from profitable regs when doing secondary
8984 allocation.
8985
8986 2011-03-29 Jeff Law <law@redhat.com>
8987
8988 PR bootstrap/48327
8989 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8990 do_not_duplicate field.
8991 (lookup_redirection_data): Corresponding changes.
8992 (create_duplicates): Always create a template block.
8993 (redirect_edges): Remove code which reused the original block
8994 when it was going to become unreachable code.
8995 (thread_block): Don't set do_not_duplicate field.
8996
8997 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8998
8999 * lto-opts.c (register_user_option_p, lto_register_user_option):
9000 Make type argument unsigned.
9001 * lto-streamer.h (lto_register_user_option): Make type argument
9002 unsigned.
9003 * opth-gen.awk: Make CL_* macros unsigned.
9004 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9005 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9006 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9007 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9008 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9009 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9010 (find_opt): Make lang_mask argument unsigned.
9011
9012 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9013
9014 PR rtl-optimization/48331
9015 PR rtl-optimization/48334
9016 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9017 for any used algorithm.
9018
9019 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9020
9021 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9022 to parent_max.
9023
9024 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9025
9026 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9027 (alpha_option_override): Don't set alpha_sr_alias_set.
9028 (emit_frame_store_1): Use gen_frame_mem rather than calling
9029 set_mem_alias_set.
9030 (alpha_expand_epilogue): Ditto.
9031
9032 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9033
9034 PR tree-optimization/48290
9035 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9036 vectorization, check that relevant phis in the basic block after
9037 the inner loop are really inner loop's exit phis.
9038
9039 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9040
9041 PR debug/48190
9042 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9043 (cached_dw_loc_list_def): New structure.
9044 (cached_dw_loc_list): New typedef.
9045 (cached_dw_loc_list_table): New variable.
9046 (cached_dw_loc_list_table_hash): New function.
9047 (cached_dw_loc_list_table_eq): Likewise.
9048 (add_location_or_const_value_attribute): Take a bool cache_p.
9049 Cache the list when the parameter is true.
9050 (gen_formal_parameter_die): Update caller.
9051 (gen_variable_die): Likewise.
9052 (dwarf2out_finish): Likewise.
9053 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9054 while generating debug info for the decl.
9055 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9056 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9057 (resolve_addr): Cache the result of resolving a chain of
9058 location lists.
9059
9060 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9061
9062 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9063 conflict object hard regset nodes have intersecting hard reg sets.
9064
9065 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9066 after regstat_init_n_sets_and_refs.
9067
9068 * ira.c: Add more comments at the top.
9069 (setup_stack_reg_pressure_class, setup_pressure_classes):
9070 Add comments how we compute the register pressure classes.
9071 (setup_allocno_and_important_classes): Add more comments.
9072 (setup_class_translate_array, reorder_important_classes)
9073 (setup_reg_class_relations): Add comments.
9074
9075 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9076 start of the file.
9077
9078 * ira-color.c: Add 2011 to the Copyright line.
9079 (assign_hard_reg): Add more comments.
9080 (improve_allocation): Ditto.
9081
9082 * ira-costs.c: Add 2011 to the Copyright line.
9083 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9084 comments.
9085 (setup_regno_cost_classes_by_mode): Ditto.
9086
9087 Initial patches from ira-improv branch:
9088
9089 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9090
9091 * ira-build.c (ira_create_object): Remove initialization of
9092 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9093 (ira_create_allocno): Remove initialization of
9094 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9095 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9096 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9097 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9098 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9099 Initialize ALLOCNO_ADD_DATA.
9100 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9101 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9102 ALLOCNO_REG.
9103 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9104 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9105
9106 * ira.c (ira_reallocate): Remove.
9107 (setup_pressure_classes): Call
9108 ira_init_register_move_cost_if_necessary. Use
9109 ira_register_move_cost instead of ira_get_register_move_cost.
9110 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9111 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9112
9113 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9114 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9115 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9116 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9117 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9118 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9119 Fix formatting.
9120 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9121 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9122 (struct allocno_color_data): New.
9123 (allocno_color_data_t): New typedef.
9124 (allocno_color_data): New definition.
9125 (ALLOCNO_COLOR_DATA): New macro.
9126 (struct object_color_data): New.
9127 (object_color_data_t): New typedef.
9128 (object_color_data): New definition.
9129 (OBJECT_COLOR_DATA): New macro.
9130 (update_copy_costs, calculate_allocno_spill_cost): Call
9131 ira_init_register_move_cost_if_necessary. Use
9132 ira_register_move_cost instead of ira_get_register_move_cost.
9133 (move_spill_restore, update_curr_costs): Ditto.
9134 (allocno_spill_priority): Make it inline.
9135 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9136 (struct coalesce_data, coalesce_data_t): New.
9137 (allocno_coalesce_data): New definition.
9138 (ALLOCNO_COALESCE_DATA): New macro.
9139 (merge_allocnos, coalesced_allocno_conflict_p): Use
9140 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9141 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9142 (coalesce_allocnos): Ditto.
9143 (setup_coalesced_allocno_costs_and_nums): Ditto.
9144 (collect_spilled_coalesced_allocnos): Ditto.
9145 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9146 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9147 (coalesce_spill_slots): Ditto.
9148 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9149 free allocno_coalesce_data.
9150
9151 * ira-conflicts.c: Fix formatting.
9152 (process_regs_for_copy): Call
9153 ira_init_register_move_cost_if_necessary. Use
9154 ira_register_move_cost instead of ira_get_register_move_cost.
9155 (build_object_conflicts): Optimize.
9156
9157 * ira-costs.c (record_reg_classes): Optimize. Call
9158 ira_init_register_move_cost_if_necessary. Use
9159 ira_register_move_cost, ira_may_move_in_cost, and
9160 ira_may_move_out_cost instead of ira_get_register_move_cost and
9161 ira_get_may_move_cost.
9162 (record_address_regs): Ditto.
9163 (scan_one_insn): Optimize.
9164 (find_costs_and_classes): Optimize.
9165 (process_bb_node_for_hard_reg_moves): Call
9166 ira_init_register_move_cost_if_necessary. Use
9167 ira_register_move_cost instead of ira_get_register_move_cost.
9168
9169 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9170 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9171 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9172 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9173 definitions.
9174 (ira_initiate_emit_data, ira_finish_emit_data)
9175 (create_new_allocno): New functions.
9176 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9177 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9178 Use ira_register_move_cost instead of ira_get_register_move_cost.
9179
9180 * ira-int.h: Fix some comments.
9181 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9182 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9183 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9184 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9185 add_data.
9186 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9187 bitfield after mode. Make hard_regno a short int. Make
9188 hard_regno short. Remove first_coalesced_allocno and
9189 next_coalesced_allocno. Move mem_optimized_dest_p,
9190 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9191 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9192 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9193 temp, colorable_p. Add new member add_data.
9194 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9195 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9196 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9197 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9198 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9199 (ALLOCNO_ADD_DATA): New macro.
9200 (ira_emit_data_t): New typedef.
9201 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9202 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9203 from struct ira_allocno.
9204 (ALLOCNO_EMIT_DATA): New macro.
9205 (ira_allocno_emit_data, allocno_emit_reg): New.
9206 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9207 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9208 (OBJECT_ADD_DATA): New macro.
9209 (ira_reallocate): Remove.
9210 (ira_initiate_emit_data, ira_finish_emit_data): New.
9211 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9212 (ira_init_register_move_cost_if_necessary): New.
9213 (ira_object_conflict_iter_next): Merge into
9214 ira_object_conflict_iter_cond.
9215 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9216
9217 * ira-live.c (process_single_reg_class_operands): Call
9218 ira_init_register_move_cost_if_necessary. Use
9219 ira_register_move_cost instead of ira_get_register_move_cost.
9220
9221 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9222
9223 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9224
9225 * ira-costs.c: Fix formatting.
9226 (cost_classes, cost_classes_num): Remove.
9227 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9228 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9229 (cost_classes_del, cost_classes_htab): New.
9230 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9231 (initiate_regno_cost_classes, setup_cost_classes): New.
9232 (setup_regno_cost_classes_by_aclass): New.
9233 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9234 (record_reg_classes): Use regno_cost_classes instead of
9235 cost_classes. Move checking opposite operand up.
9236 (record_address_regs): Use regno_cost_classes
9237 instead of cost_classes.
9238 (scan_one_insn): Ditto. Use always general register.
9239 (print_allocno_costs): Use regno_cost_classes instead of
9240 cost_classes.
9241 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9242 (find_costs_and_classes): Set up cost classes for each registers.
9243 Use also their mode for this. Use regno_cost_classes instead of
9244 cost_classes.
9245 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9246 cost_classes.
9247 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9248 (ira_costs, ira_set_pseudo_classes): Call
9249 initiate_regno_cost_classes and finish_regno_cost_classes.
9250
9251 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9252
9253 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9254
9255 * target.def (ira_cover_classes): Remove.
9256
9257 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9258
9259 * doc/tm.texi.in: Ditto.
9260
9261 * ira-conflicts.c: Remove mentioning cover classes from the file.
9262 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9263 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9264
9265 * targhooks.c (default_ira_cover_classes): Remove.
9266
9267 * targhooks.h (default_ira_cover_classes): Ditto.
9268
9269 * haifa-sched.c: Remove mentioning cover classes from the file.
9270 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9271 ira_pressure_classes and ira_pressure_classes_num instead of
9272 ira_reg_class_cover_size and ira_reg_class_cover. Use
9273 sched_regno_pressure_class instead of sched_regno_cover_class.
9274 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9275 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9276
9277 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9278 classes from the file.
9279 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9280 (struct object_hard_regs, struct object_hard_regs_node): New.
9281 (struct ira_object): New members profitable_hard_regs,
9282 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9283 (struct ira_allocno): Rename cover_class to aclass. Rename
9284 cover_class_cost and updated_cover_class_cost to class_cost and
9285 updated_class_cost. Remove splay_removed_p and
9286 left_conflict_size. Add new members colorable_p.
9287 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9288 (ALLOCNO_COLORABLE_P): New macro.
9289 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9290 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9291 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9292 (OBJECT_...): Rename parameter C to O.
9293 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9294 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9295 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9296 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9297 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9298 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9299 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9300 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9301 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9302 x_ira_reg_class_subunion.
9303 (ira_max_memory_move_cost, ira_max_register_move_cost)
9304 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9305 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9306 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9307 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9308 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9309 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9310 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9311 (ira_tune_allocno_costs_and_cover_classes): Rename to
9312 ira_tune_allocno_costs.
9313 (ira_debug_hard_regs_forest): New.
9314 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9315 (ira_object_conflict_iter_next): Fix comments.
9316 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9317 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9318 cover_class to aclass.
9319 (ira_allocate_and_accumulate_costs): Ditto.
9320 (ira_allocate_and_set_or_copy_costs): Ditto.
9321
9322 * opts.c (decode_options): Remove ira_cover_class check.
9323
9324 * ira-color.c: Remove mentioning cover classes from the file. Use
9325 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9326 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9327 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9328 (splay-tree.h): Remove include.
9329 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9330 before copy_freq_compare_func.
9331 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9332 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9333 New definitions.
9334 (hard_regs_roots, hard_regs_node_vec): Ditto.
9335 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9336 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9337 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9338 (create_new_object_hard_regs_node): Ditto.
9339 (add_new_object_hard_regs_node_to_forest): Ditto.
9340 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9341 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9342 Ditto.
9343 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9344 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9345 (remove_unused_object_hard_regs_nodes): Ditto.
9346 (enumerate_object_hard_regs_nodes): Ditto.
9347 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9348 (object_hard_regs_subnode_t): Ditto.
9349 (struct object_hard_regs_subnode): Ditto.
9350 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9351 (setup_object_hard_regs_subnode_index): Ditto.
9352 (get_object_hard_regs_subnodes_num): Ditto.
9353 (form_object_hard_regs_nodes_forest): Ditto.
9354 (finish_object_hard_regs_nodes_tree): Ditto.
9355 (finish_object_hard_regs_nodes_forest): Ditto.
9356 (allocnos_have_intersected_live_ranges_p): Rename to
9357 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9358 (pseudos_have_intersected_live_ranges_p): Rename to
9359 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9360 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9361 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9362 (update_copy_costs): Remove assert. Skip cost update if the hard
9363 reg does not belong the class.
9364 (assign_hard_reg): Process only profitable hard regs.
9365 (uncolorable_allocnos_num): Make it scalar.
9366 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9367 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9368 and ira_reg_class_max_nregs.
9369 (bucket_allocno_compare_func): Check frequency first.
9370 (sort_bucket): Add compare function as a parameter.
9371 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9372 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9373 (push_allocno_to_stack): Rewrite for checking new allocno
9374 colorability.
9375 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9376 (push_only_colorable): Pass new parameter to sort_bucket.
9377 (push_allocno_to_spill): Remove.
9378 (allocno_spill_priority_compare): Make it inline and rewrite.
9379 (splay_tree_allocate, splay_tree_free): Remove.
9380 (allocno_spill_sort_compare): New function.
9381 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9382 build and use splay tree. Choose first allocno in uncolorable
9383 allocno bucket to spill. Remove setting spill cost.
9384 (all_conflicting_hard_regs): Remove.
9385 (setup_allocno_available_regs_num): Check only profitable hard
9386 regs. Print info about hard regs nodes.
9387 (setup_allocno_left_conflicts_size): Remove.
9388 (put_allocno_into_bucket): Don't call
9389 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9390 (improve_allocation): New.
9391 (color_allocnos): Call setup_profitable_hard_regs,
9392 form_object_hard_regs_nodes_forest, improve_allocation,
9393 finish_object_hard_regs_nodes_forest. Setup spill cost.
9394 (print_loop_title): Use pressure classes.
9395 (color_allocnso): Ditto.
9396 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9397 and allocnos_for_spilling.
9398 (ira_sort_regnos_for_alter_reg): Don't setup members
9399 {first,next}_coalesced_allocno.
9400 (color): Remove allocating and freeing removed_splay_allocno_vec.
9401 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9402 prohibited_class_mode_regs.
9403
9404 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9405 formatting.
9406 (update_allocno_pressure_excess_length): Use pressure classes.
9407 (inc_register_pressure, dec_register_pressure): Check for pressure
9408 class.
9409 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9410 pressure class. Use ira_reg_class_nregs instead of
9411 ira_reg_class_max_nregs.
9412 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9413 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9414 (single_reg_class): Use ira_reg_class_nregs instead of
9415 ira_reg_class_max_nregs.
9416 (process_bb_node_lives): Use pressure classes.
9417
9418 * ira-emit.c: Remove mentioning cover classes from the file. Use
9419 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9420 (change_loop): Use pressure classes.
9421 (modify_move_list): Call ira_set_allocno_class instead of
9422 ira_set_allocno_cover_class.
9423
9424 * ira-build.c: Remove mentioning cover classes from the file. Use
9425 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9426 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9427 ALLOCNO_UPDATED_CLASS_COST instead of
9428 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9429 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9430 (ira_create_allocno): Remove initialization of
9431 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9432 ALLOCNO_COLORABLE_P.
9433 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9434 Update conflict regs for the objects.
9435 (create_cap_allocno): Remove assert. Don't propagate
9436 ALLOCNO_AVAILABLE_REGS_NUM.
9437 (ira_free_allocno_costs): New function.
9438 (finish_allocno): Change a part of code into call of
9439 ira_free_allocno_costs.
9440 (low_pressure_loop_node_p): Use pressure classes.
9441 (object_range_compare_func): Don't compare classes.
9442 (setup_min_max_conflict_allocno_ids): Ditto.
9443
9444 * loop-invariant.c: Remove mentioning cover classes from the file.
9445 Use ira_pressure_classes and ira_pressure_classes_num instead of
9446 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9447 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9448 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9449 Use reg_allocno_class instead of reg_cover_class.
9450 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9451 STACK_REG_COVER_CLASS.
9452 (get_regno_cover_class): Rename to get_regno_pressure_class.
9453 (move_loop_invariants): Initialize and finalize regstat.
9454
9455 * ira.c: Remove mentioning cover classes from the file. Add
9456 comments about coloring without cover classes. Use ALLOCNO_CLASS
9457 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9458 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9459 setup_class_subset_and_memory_move_costs.
9460 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9461 (setup_cover_and_important_classes): Rename to
9462 setup_allocno_and_important_classes.
9463 (setup_class_translate_array): New.
9464 (setup_class_translate): Call it for allocno and pressure classes.
9465 (cover_class_order): Rename to allocno_class_order.
9466 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9467 of ira_class_translate.
9468 (reorder_important_classes): Set up ira_important_class_nums.
9469 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9470 (print_class_cover): Rename to print_classes. Add parameter.
9471 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9472 Print pressure classes too.
9473 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9474 setup_reg_subclasses.
9475 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9476 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9477 (setup_prohibited_class_mode_regs): Use
9478 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9479 (clarify_prohibited_class_mode_regs): New function.
9480 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9481 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9482 (ira_init_once): Initialize them.
9483 (free_register_move_costs): Process them.
9484 (ira_init): Move calls of find_reg_classes and
9485 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9486 Call clarify_prohibited_class_mode_regs.
9487 (ira_no_alloc_reg): Remove.
9488 (too_high_register_pressure_p): Use pressure classes.
9489
9490 * sched-deps.c: Remove mentioning cover classes from the file.
9491 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9492 ira_pressure_classes and ira_pressure_classes_num instead of
9493 ira_reg_class_cover_size and ira_reg_class_cover.
9494 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9495 sched_regno_pressure_class instead of sched_regno_cover_class.
9496 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9497 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9498
9499 * ira.h: Add 2010 to Copyright.
9500 (ira_no_alloc_reg): Remove external.
9501 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9502 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9503 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9504 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9505 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9506 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9507 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9508 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9509 x_ira_no_alloc_regs.
9510 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9511 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9512 ira_allocno_classes_num and ira_allocno_classes.
9513 (ira_class_translate): Rename to ira_allocno_class_translate.
9514 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9515 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9516 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9517 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9518 (ira_no_alloc_regs): New.
9519
9520 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9521 classes from the file. Use ALLOCNO_CLASS instead of
9522 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9523 ALLOCNO_COVER_CLASS_COST.
9524 (regno_cover_class): Rename to regno_aclass.
9525 (record_reg_classes): Use ira_reg_class_subunion instead of
9526 ira_reg_class_union.
9527 (record_address_regs): Check overflow.
9528 (scan_one_insn): Ditto.
9529 (print_allocno_costs): Print total mem cost fore regional allocation.
9530 (print_pseudo_costs): Use REG_N_REFS.
9531 (find_costs_and_classes): Use classes intersected with them on the
9532 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9533 ira_reg_class_union. Use ira_allocno_class_translate and
9534 regno_aclass instead of ira_class_translate and regno_cover_class.
9535 Modify code for finding regno_aclass. Setup preferred classes for
9536 the next pass.
9537 (setup_allocno_cover_class_and_costs): Rename to
9538 setup_allocno_class_and_costs. Use regno_aclass instead of
9539 regno_cover_class. Use ira_set_allocno_class instead of
9540 ira_set_allocno_cover_class.
9541 (init_costs, finish_costs): Use regno_aclass instead of
9542 regno_cover_class.
9543 (ira_costs): Use setup_allocno_class_and_costs instead of
9544 setup_allocno_cover_class_and_costs.
9545 (ira_tune_allocno_costs_and_cover_classes): Rename to
9546 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9547 by processing objects. Use ira_reg_class_max_nregs instead of
9548 ira_reg_class_nregs.
9549
9550 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9551
9552 * sched-int.h: Remove mentioning cover classes from the file.
9553 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9554
9555 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9556 classes from the file.
9557 (struct reg_pref): Rename coverclass into allocnoclass.
9558 (reg_cover_class): Rename to reg_allocno_class.
9559
9560 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9561
9562 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9563
9564 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9565
9566 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9567
9568 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9569
9570 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9571
9572 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9573
9574 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9575
9576 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9577
9578 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9579
9580 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9581 (i386_ira_cover_classes): Ditto.
9582
9583 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9584
9585 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9586
9587 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9588
9589 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9590
9591 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9592
9593 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9594
9595 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9596 (mips_ira_cover_classes): Ditto.
9597
9598 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9599
9600 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9601
9602 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9603
9604 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9605
9606 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9607
9608 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9609 (IRA_COVER_CLASSES_VSX): Ditto.
9610
9611 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9612 (rs6000_ira_cover_classes): Ditto.
9613
9614 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9615
9616 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9617
9618 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9619
9620 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9621
9622 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9623
9624 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9625
9626 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9627
9628 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9629
9630 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9631
9632 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9633
9634 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9635
9636 PR debug/48253
9637 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9638 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9639 dw_fde_unlikely_section_end_label, cold_in_std_section,
9640 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9641 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9642 fields.
9643 (output_fde): Use dw_fde_second_{begin,end} if second is
9644 true, otherwise dw_fde_{begin,end}.
9645 (output_call_frame_info): Test dw_fde_second_begin != NULL
9646 instead of dw_fde_switched_sections.
9647 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9648 fields, initialize new fields. Initialize in_std_section
9649 unconditionally from the first partition.
9650 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9651 dw_fde_second_begin is non-NULL.
9652 (dwarf2out_switch_text_section): Stop initializing removed
9653 dw_fde_struct fields, initialize new fields, initialize
9654 also dw_fde_end here. Set dw_fde_switch_cfi even when
9655 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9656 (struct var_loc_list_def): Add last_before_switch field.
9657 (arange_table, arange_table_allocated, arange_table_in_use,
9658 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9659 (size_of_aranges): Count !in_std_section and !second_in_std_section
9660 hunks in fdes, instead of looking at arange_table_in_use.
9661 (output_aranges): Add aranges_length argument, don't call
9662 size_of_aranges here. Instead of using aranges_table*
9663 emit ranges for fdes when !in_std_section resp.
9664 !second_in_std_section.
9665 (dw_loc_list): Break ranges crossing section switch.
9666 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9667 use dw_fde_second_end instead of dw_fde_end as end of last range.
9668 (gen_subprogram_die): Don't call add_arange. Use
9669 dw_fde_{begin,end} for first partition and if switched
9670 section dw_fde_second_{begin,end} for the second.
9671 (var_location_switch_text_section_1,
9672 var_location_switch_text_section): New functions.
9673 (dwarf2out_begin_function): Initialize cold_text_section even
9674 when function_section () isn't text_section.
9675 (prune_unused_types): Don't walk arange_table.
9676 (dwarf2out_finish): Don't needlessly test
9677 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9678 If info_section_emitted, call size_of_aranges and if it indicates
9679 non-empty .debug_aranges, call output_aranges with the computed
9680 size. Stop using removed dw_fde_struct fields, use
9681 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9682 for second.
9683
9684 PR debug/48203
9685 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9686 create ENTRY_VALUE if incoming or address of incoming's MEM
9687 is a hard REG.
9688 * dwarf2out.c (mem_loc_descriptor): Don't emit
9689 DW_OP_GNU_entry_value of DW_OP_fbreg.
9690 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9691 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9692 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9693 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9694 ENTRY_VALUE_EXPs.
9695 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9696 is a REG_P or MEM_P with REG_P address, compute hash directly
9697 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9698 (preserve_only_constants): Don't clear VALUES forwaring
9699 ENTRY_VALUE to some other VALUE.
9700
9701 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9702
9703 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9704 instead of GEN_INT.
9705
9706 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9707
9708 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9709 block before expanding the statement.
9710 (expand_gimple_stmt_1): Likewise. Set them here...
9711 (expand_gimple_stmt): ...and not here. Tidy.
9712 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9713 unknown.
9714
9715 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9716
9717 * Makefile.in: New rule for cprop.o.
9718 * gcse.c: Move constant/copy propagation to cprop.c.
9719 (compute_local_properties): Only handle expression tables.
9720 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9721 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9722 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9723 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9724 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9725 compute_cprop_data, find_used_regs, try_replace_reg,
9726 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9727 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9728 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9729 find_bypass_set, reg_killed_on_edge, bypass_block,
9730 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9731 execute_rtl_cprop, pass_rtl_cprop): Move to...
9732 * cprop.c: ...here. New file, constant/copy propagation for RTL
9733 moved from gcse.c to here with minor cleanups in duplicated code.
9734
9735 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9736
9737 * config/i386/i386.c (flag_opts): Fix a typo in
9738 -mavx256-split-unaligned-store.
9739
9740 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9741
9742 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9743 LIBCALL_VALUE): Remove macros.
9744 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9745 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9746 (h8300_function_value, h8300_libcall_value,
9747 h8300_function_value_regno_p): New functions.
9748
9749 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9750
9751 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9752
9753 2011-03-28 Jeff Law <law@redhat.com>
9754
9755 * tree-ssa-threadupdate.c (redirect_edges): Call
9756 create_edge_and_update_destination_phis as needed.
9757 (create_edge_and_update_destination_phis): Accept new BB argument.
9758 All callers updated.
9759 (thread_block): Do not update the profile when threading around
9760 intermediate blocks.
9761 (thread_single_edge): Likewise.
9762 (determine_bb_domination_status): If BB is not a successor of the
9763 loop header, return NONDOMINATING.
9764 (register_jump_thread): Note when we register a jump thread around
9765 an intermediate block.
9766 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9767 (thread_across_edge): Use it.
9768
9769 2011-03-28 Tristan Gingold <gingold@adacore.com>
9770
9771 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9772 when for_return is 2.
9773
9774 2011-03-28 Jeff Law <law@redhat.com>
9775
9776 * var-tracking.c (canonicalize_values_mark): Delete unused
9777 lhs assignment.
9778 (canonicalize_values_star, set_variable_part): Likewise.
9779 (clobber_variable_part, delete_variable_part): Likewise.
9780
9781 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9782
9783 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9784
9785 2011-03-28 Martin Jambor <mjambor@suse.cz>
9786
9787 * tree-inline.c (expand_call_inline): Do not check that destination
9788 node is analyzed.
9789 (optimize_inline_calls): Assert that destination node is analyzed.
9790 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9791 not call tree_lowering_passes.
9792 * cgraph.h (cgraph_analyze_function): Declare.
9793 * cgraphunit.c (cgraph_analyze_function): Make public.
9794
9795 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9796
9797 * config/sparc/sparc-opts.h: New.
9798 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9799 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9800 (sparc_option_override): Store processor_type enumeration rather
9801 than string in cpu_default. Remove name and enumeration from
9802 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9803 without using sparc_select. Use target_flags_explicit instead of
9804 fpu_option_set.
9805 * config/sparc/sparc.h (enum processor_type): Move to
9806 sparc-opts.h.
9807 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9808 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9809 HeaderInclude entry.
9810 (mcpu=, mtune=): Use Var and Enum.
9811 (sparc_processor_type): New Enum and EnumValue entries.
9812
9813 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9814 Iain Sandoe <iains@gcc.gnu.org>
9815
9816 PR target/48245
9817 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9818
9819 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9820
9821 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9822 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9823 Insert new statements at it in lieu of STMT.
9824 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9825 * tree-vect-stmts.c (vectorizable_store): Likewise.
9826 (vectorizable_load): Likewise.
9827
9828 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9829
9830 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9831 (divtf3): Ditto.
9832 (multf3): Ditto.
9833 (subtf3): Ditto.
9834
9835 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9836
9837 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9838 unaligned 256bit load/store.
9839 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9840 (*avx_movdqu<avxmodesuffix>): Likewise.
9841
9842 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9843
9844 PR target/48288
9845 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9846 * config/pa/pa.md (iordi3): Use new predicate in expander.
9847 (iorsi3): Likewise.
9848
9849 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9850
9851 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9852 FUNCTION_VALUE_REGNO_P): Remove macros.
9853 * config/mips/mips-protos.h (mips_function_value): Remove.
9854 * config/mips/mips.c (mips_function_value): Rename to...
9855 (mips_function_value_1): ... this. Make static. Handle receiving
9856 the function type in 'fn_decl_or_type' argument.
9857 (mips_function_value, mips_libcall_value,
9858 mips_function_value_regno_p): New function.
9859 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9860 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9861
9862 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9863
9864 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9865 and -mavx256-split-unaligned-store.
9866 (ix86_option_override_internal): Split 32-byte AVX unaligned
9867 load/store by default.
9868 (ix86_avx256_split_vector_move_misalign): New.
9869 (ix86_expand_vector_move_misalign): Use it.
9870
9871 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9872 -mavx256-split-unaligned-store.
9873
9874 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9875 256bit load/store. Generate unaligned store on misaligned memory
9876 operand.
9877 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9878 256bit load/store.
9879 (*avx_movdqu<avxmodesuffix>): Likewise.
9880
9881 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9882 -mavx256-split-unaligned-store.
9883
9884 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9885
9886 PR target/38598
9887 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9888 Update commentary.
9889
9890 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9891
9892 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9893 opno arguments with an expand_operand. Use create_input_operand.
9894 (mips_prepare_builtin_target): Delete.
9895 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9896 functions.
9897 (mips_expand_builtin_direct): Use create_output_operand and
9898 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9899 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9900 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9901
9902 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9903
9904 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9905 function.
9906 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9907
9908 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9909
9910 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9911 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9912 basic blocks and call commit_edge_insertions directly.
9913 (fixup_abnormal_edges): Move from here to...
9914 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9915 on the edges and return whether some have actually been inserted.
9916 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9917 compensation code.
9918
9919 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9920
9921 PR rtl-optimization/48144
9922 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9923 (merge_expr_data): ... here.
9924 (av_set_intersect): Rename to av_set_code_motion_filter.
9925 Update all callers. Call merge_history_vect when an expression
9926 is found in both sets.
9927 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9928
9929 2011-03-26 Alan Modra <amodra@gmail.com>
9930
9931 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9932 cmodel medium addresses.
9933 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9934 64-bit gpr loads and stores.
9935 (rs6000_secondary_reload_ppc64): New function.
9936 * config/rs6000/rs6000-protos.h: Declare it.
9937 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9938
9939 2011-03-26 Alan Modra <amodra@gmail.com>
9940
9941 PR target/47487
9942 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9943 GNU Go in traceback table.
9944
9945 2011-03-25 Richard Henderson <rth@redhat.com>
9946
9947 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9948 if there are exactly 6 operands.
9949 (set_storage_via_setmem): Similarly.
9950
9951 2011-03-25 Kai Tietz <ktietz@redhat.com>
9952
9953 * collect2.c (write_c_file_stat): Handle backslash
9954 as right-hand directory separator.
9955 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9956 checking just for slash.
9957 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9958 instead of checking for trailing slash.
9959 * gcc.c (record_temp_file): Use filename_cmp instead
9960 of strcmp.
9961 (do_spec_1): Likewise.
9962 (replace_outfile_spec_function): Likewise.
9963 (is_directory): Use filename_ncmp instead of strncmp.
9964 (print_multilib_info): Likewise.
9965 * gcov.c (find_source): Use filename_cmp instead
9966 instead of strcmp.
9967 (make_gcov_file_name): Fix order of slash/backslash
9968 checks.
9969 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9970 (add_standard_paths): Likewise.
9971 * mips-tfile.c (saber_stop): Handle backslash.
9972 * prefix.c (update_path): Use filename_ncmp instead of
9973 strncmp.
9974 * profile.c (output_location): Use filename_cmp instead
9975 of strcmp.
9976 * read-md.c (handle_toplevel_file): Handle backslash.
9977 * tlink.c (frob_extension): Likewise.
9978 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9979 strcmp.
9980 * tree-dump.c (dequeue_and_dump): Handle backslash.
9981 * tree.c (get_file_function_name): Likewise.
9982 * gengtype.c (read_input_list): Likewise.
9983 (get_file_realbasename): Likewise.
9984 (get_output_file_with_visibility): Use filename_cmp
9985 instead of strcmp.
9986
9987 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9988
9989 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9990 case to VFPv1.
9991
9992 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9993
9994 * fold-const.c (expr_location_or): New function.
9995 (fold_truth_not_expr): Call it.
9996
9997 2011-03-25 Jeff Law <law@redhat.com>
9998
9999 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10000 va_end.
10001 * c-family/c-common.c (def_fn_type): Likewise.
10002 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10003 * emit-rtl.c (gen_rtvec): Likewise.
10004 * lto/lto-lang.c (def_fn_type): Likewise.
10005
10006 2011-03-25 Richard Guenther <rguenther@suse.de>
10007
10008 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10009 also generate copies.
10010 (fini_copy_prop): Handle constant values properly.
10011
10012 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10013
10014 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10015 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10016 (hash_loc_operands, compare_loc_operands): Handle
10017 DW_OP_GNU_entry_value.
10018
10019 2011-03-25 Kai Tietz <ktietz@redhat.com>
10020
10021 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10022 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10023 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10024 comment and use macro TARGET_64BIT_MS_ABI instead.
10025 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10026 and change default behavior for 32-bit MS_ABI.
10027 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10028 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10029 32-bit, too.
10030 (ix86_cfun_abi): Likewise.
10031 (ix86_maybe_switch_abi): Adjust comment.
10032 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10033 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10034 instead of checking for SYSV_ABI.
10035 (ix86_nsaved_sseregs): Likewise.
10036 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10037 to 16 bytes.
10038 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10039 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10040 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10041 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10042 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10043
10044 2011-03-25 Richard Guenther <rguenther@suse.de>
10045
10046 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10047 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10048 (verify_gimple): Remove.
10049 * tree-cfg.c (verify_gimple_call): Merge verification
10050 from verify_stmts.
10051 (verify_gimple_phi): Merge verification from verify_stmts.
10052 (verify_gimple_label): New function.
10053 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10054 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10055 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10056 (verify_stmts): Rename to verify_gimple_in_cfg.
10057 (verify_gimple_in_cfg): New function.
10058 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10059 * tree-ssa.c (verify_ssa): Likewise.
10060 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10061
10062 2011-03-25 Richard Guenther <rguenther@suse.de>
10063
10064 * passes.c (init_optimization_passes): Add FRE pass after
10065 early SRA.
10066
10067 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10068 Andrew Stubbs <ams@codesourcery.com>
10069
10070 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10071 for Cortex-A8.
10072 (arm_movdi_vfp_cortexa8): New pattern.
10073 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10074 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10075 instructions when tuning for Cortex-A8. Set attribute "arch".
10076 * config/arm/arm.md: Move include arm-tune.md up a bit.
10077 (define_attr "arch"): Add "onlya8" and "nota8" values.
10078 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10079
10080 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10081
10082 PR bootstrap/48282
10083 Revert:
10084 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10085
10086 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10087 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10088 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10089 * passes.c (init_optimization_passes): Move
10090 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10091
10092 2011-03-25 Kai Tietz <ktietz@redhat.com>
10093
10094 * c-typeck.c (comptypes_internal): Replace target
10095 hook call of comp_type_attributes by version in tree.c file.
10096 * gimple.c (gimple_types_compatible_p_1): Likewise.
10097 * tree-ssa.c (useless_type_conversion_p): Likewise.
10098 * tree.c (build_type_attribute_qual_variant): Likewise.
10099 (attribute_value_equal): New static helper function.
10100 (comp_type_attributes): New function.
10101 (merge_attributes): Use attribute_value_equal for comparison.
10102 (attribute_list_contained): Likewise.
10103 * tree.h (comp_type_attributes): New prototype.
10104
10105 2011-03-25 Richard Guenther <rguenther@suse.de>
10106
10107 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10108 of complex types at -O0.
10109 (verify_gimple_assign_binary): Likewise.
10110 (verify_gimple_assign_ternary): Likewise.
10111
10112 2011-03-24 Mark Wielaard <mjw@redhat.com>
10113
10114 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10115 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10116
10117 2011-03-24 Mark Wielaard <mjw@redhat.com>
10118
10119 PR debug/48041
10120 * dwarf2out.c (output_abbrev_section): Only write table when
10121 abbrev_die_table_in_use > 1.
10122
10123 2011-02-24 Richard Henderson <rth@redhat.com>
10124
10125 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10126 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10127 (alpha_expand_unaligned_load_words): Use extql.
10128 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10129 (emit_insxl): Handle all modes for consistency.
10130
10131 2011-02-24 Richard Henderson <rth@redhat.com>
10132
10133 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10134 (alpha_expand_unaligned_load): Likewise.
10135 (alpha_expand_unaligned_store): Likewise.
10136 (alpha_expand_unaligned_load_words): Likewise.
10137 (alpha_expand_unaligned_store_words): Likewise.
10138 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10139 (alpha_split_lock_test_and_set_12): Likewise.
10140 (print_operand, alpha_fold_builtin_extxx): Likewise.
10141 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10142 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10143 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10144 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10145 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10146 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10147 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10148 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10149 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10150 (extwl, extll, extql): Similarly.
10151 (inswh, inslh, insqh): Similarly.
10152 (mskbl, mskwl, mskll, mskql): Similarly.
10153 (mskwh, msklh, mskqh): Similarly.
10154
10155 2011-02-24 Richard Henderson <rth@redhat.com>
10156
10157 * config/alpha/alpha.md (attribute isa): Add er, ner.
10158 (attribute enabled): Handle them.
10159 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10160
10161 2011-02-24 Richard Henderson <rth@redhat.com>
10162
10163 * config/alpha/alpha.md (attribute isa): Add vms.
10164 (attribute enabled): Handle it.
10165 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10166 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10167 (*movtf): Rename from *movtf_internal for consistency.
10168 (*movsi): Merge with *movsi_nt_vms.
10169 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10170 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10171 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10172 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10173
10174 2011-02-24 Richard Henderson <rth@redhat.com>
10175
10176 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10177 (extendqisi2, extendhisi2): Likewise.
10178 (extendqidi2): Simplify BWX/non-BWX expansions.
10179 (extendhidi2): Similarly.
10180
10181 2011-02-24 Richard Henderson <rth@redhat.com>
10182
10183 * config/alpha/alpha.md (attribute isa): New.
10184 (attribute enabled): New.
10185 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10186 (zero_extendqisi2, zero_extendqidi2): Similarly.
10187 (zero_extendhisi2, zero_extendhidi2): Similarly.
10188 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10189
10190 2011-02-24 Richard Henderson <rth@redhat.com>
10191
10192 * config/alpha/predicates.md (input_operand): Revert last change;
10193 update comment to mention 32-bit VMS rather than Windows.
10194
10195 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10196
10197 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10198 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10199 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10200 * passes.c (init_optimization_passes): Move
10201 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10202
10203 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10204
10205 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10206
10207 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10208
10209 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10210 correctly.
10211
10212 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10213
10214 PR debug/48204
10215 * simplify-rtx.c (simplify_const_unary_operation): Call
10216 real_convert when changing mode class with FLOAT_EXTEND.
10217
10218 2011-03-24 Nick Clifton <nickc@redhat.com>
10219
10220 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10221 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10222 * config/rx/rx.c (rx_option_override): Set align_jumps,
10223 align_loops and align_labels if not set by the user.
10224 (rx_align_for_label): New function.
10225 (rx_max_skip_for_label): New function.
10226 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10227 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10228 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10229 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10230 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10231
10232 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10233
10234 PR rtl-optimization/48263
10235 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10236 and original commutative_p handling. Use maybe_gen_insn.
10237
10238 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10239
10240 * reload.c (find_reloads_subreg_address): Add address_reloaded
10241 parameter and return true there if the full address has been
10242 reloaded.
10243 (find_reloads_toplev): Pass address_reloaded flag.
10244 (find_reloads_address_1): Don't use address_reloaded parameter.
10245
10246 2011-03-24 Jeff Law <law@redhat.com>
10247
10248 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10249 unused variable "ann".
10250 (remove_unused_locals): Likewise.
10251
10252 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10253 statement.
10254
10255 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10256 after it is freed.
10257
10258 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10259
10260 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10261 for invalid symbolic addresses.
10262 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10263 larl operands.
10264
10265 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10266
10267 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10268 the argument in calls to fold_truth_not_expr.
10269
10270 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10271
10272 * tree.c (record_node_allocation_statistics): New function.
10273 (make_node_stat, copy_node_stat, build_string): Call it.
10274 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10275 (build1_stat, build_omp_clause): Likewise.
10276
10277 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10278
10279 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10280 last commit.
10281
10282 2011-03-24 Richard Guenther <rguenther@suse.de>
10283
10284 PR tree-optimization/48271
10285 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10286 blocks that still exist.
10287
10288 2011-03-24 Richard Guenther <rguenther@suse.de>
10289
10290 PR tree-optimization/48270
10291 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10292 not free datarefs before ddrs.
10293
10294 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10295
10296 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10297 from the address built for a reference with variable offset.
10298
10299 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10300
10301 PR target/48237
10302 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10303 alternatives that can be handled with movq or movabsq insn.
10304 (*movdf_internal): Disable for !TARGET_64BIT.
10305 (*movdf_internal_nointeger): Ditto.
10306 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10307
10308 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10309
10310 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10311 (FUNCTION_ARG_ADVANCE): Likewise.
10312 * tm.texi.in: Change references to them to hook references.
10313 * tm.texi: Regenerate.
10314 * targhooks.c (default_function_arg): Eliminate check for target macro.
10315 (default_function_incoming_arg): Likewise.
10316 (default_function_arg_advance): Likewise.
10317 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10318 (function_arg_advance): Likewise.
10319 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10320
10321 2011-03-24 Richard Guenther <rguenther@suse.de>
10322
10323 PR middle-end/48269
10324 * tree-object-size.c (addr_object_size): Do not double-account
10325 for MEM_REF offsets.
10326
10327 2011-03-24 Diego Novillo <dnovillo@google.com>
10328
10329 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10330 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10331 (lto_input_data_block): Move from lto-opts.c. Make extern.
10332 Update all users.
10333 (lto_input_string): Rename from input_string. Make extern.
10334 Update all users.
10335 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10336 output_string_with_length.
10337 Output 0 to indicate a non-NULL string. Update all callers to
10338 not emit 0.
10339 (lto_output_string): Rename from output_string. Make extern.
10340 Update all users.
10341 (lto_output_decl_state_streams): Make extern.
10342 (lto_output_decl_state_refs): Make extern.
10343 * lto-streamer.h (lto_input_string): Declare.
10344 (lto_input_data_block): Declare.
10345 (lto_output_string): Declare.
10346 (lto_output_string_with_length): Declare.
10347 (lto_output_decl_state_streams): Declare.
10348 (lto_output_decl_state_refs): Declare.
10349
10350 2011-03-24 Richard Guenther <rguenther@suse.de>
10351
10352 PR tree-optimization/46562
10353 * tree.c (build_invariant_address): New function.
10354 * tree.h (build_invariant_address): Declare.
10355 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10356 a renamed function moved ...
10357 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10358 Take valueization callback parameter.
10359 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10360 * gimple-fold.h: New file.
10361 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10362 (ccp_fold, fold_const_aggregate_ref,
10363 fold_ctor_reference, fold_nonarray_ctor_reference,
10364 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10365 get_base_constructor): Move ...
10366 * gimple-fold.c: ... here.
10367 (gimple_fold_stmt_to_constant_1): New function
10368 split out from ccp_fold. Take a valueization callback parameter.
10369 Valueize all operands.
10370 (gimple_fold_stmt_to_constant): New wrapper function.
10371 (fold_const_aggregate_ref_1): New function split out from
10372 fold_const_aggregate_ref. Take a valueization callback parameter.
10373 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10374 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10375 invariant POINTER_PLUS_EXPRs to invariant form.
10376 (vn_valueize): New function.
10377 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10378 * tree-vrp.c (vrp_valueize): New function.
10379 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10380 to fold statements to constants.
10381 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10382 function declarations.
10383 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10384 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10385
10386 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10387
10388 * config/h8300/predicates.md (jump_address_operand): Fix register
10389 mode check.
10390
10391 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10392
10393 * doc/invoke.texi (max-stores-to-sink): Document.
10394 * params.h (MAX_STORES_TO_SINK): Define.
10395 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10396 if either vectorization or if-conversion is disabled.
10397 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10398 tree-vect-data-refs.c vect_equal_offsets.
10399 (dr_equal_offsets_p): New function.
10400 (find_data_references_in_bb): Remove static.
10401 * tree-data-ref.h (find_data_references_in_bb): Declare.
10402 (dr_equal_offsets_p): Likewise.
10403 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10404 (vect_drs_dependent_in_basic_block): Update calls to
10405 vect_equal_offsets.
10406 (vect_check_interleaving): Likewise.
10407 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10408 (cond_if_else_store_replacement): Rename to...
10409 (cond_if_else_store_replacement_1): ... this. Change arguments and
10410 documentation.
10411 (cond_if_else_store_replacement): New function.
10412 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10413 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10414
10415 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10416
10417 PR target/46934
10418 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10419 to subtract lower bound instead of GEN_INT().
10420
10421 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10422
10423 PR other/48179
10424 PR other/48221
10425 PR other/48234
10426 * doc/extend.texi (Alignment): Move section to match order in TOC.
10427 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10428 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10429
10430 2011-03-23 Jeff Law <law@redhat.com>
10431
10432 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10433 before removing the edge.
10434
10435 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10436 it may have been freed by redirect_branch_edge or
10437 redirect_edge_succ_nodup.
10438
10439 2011-03-23 Richard Guenther <rguenther@suse.de>
10440
10441 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10442 (check_va_list_escapes): Likewise.
10443 (check_all_va_list_escapes): Likewise.
10444
10445 2011-03-23 Richard Guenther <rguenther@suse.de>
10446
10447 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10448 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10449 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10450 (alias.o): Likewise.
10451 (ipa-type-escape.o): Remove.
10452 (ipa-struct-reorg.o): Likewise.
10453 (GTFILES): Remove ipa-struct-reorg.c.
10454 * alias.c: Do not include ipa-type-escape.h.
10455 * tree-ssa-alias.c: Likewise.
10456 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10457 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10458 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10459 and ipa-type-escape passes.
10460 * tree-pass.h (pass_ipa_type_escape): Remove.
10461 (pass_ipa_struct_reorg): Likewise.
10462 * ipa-struct-reorg.h: Remove.
10463 * ipa-struct-reorg.c: Likewise.
10464 * ipa-type-escape.h: Likewise.
10465 * ipa-type-escape.c: Likewise.
10466 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10467 (--param struct-reorg-cold-struct-ratio): Likewise.
10468 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10469 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10470 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10471
10472 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10473
10474 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10475 cpu attribute value.
10476 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10477 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10478 * config/s390/s390.c (processor_flags_table): New constant array.
10479 (s390_handle_arch_option): Remove.
10480 (s390_handle_option): Remove s390_handle_arch_option invocations
10481 and OPT_mwarn_framesize_ handling.
10482 (s390_option_override): Remove s390_handle_arch_option invocation.
10483 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10484 warnings.
10485 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10486 * config/s390/s390.opt (s390_tune, s390_arch)
10487 (march=): Replace s390_arch_option enum and values with
10488 processor_type. Set variable name to s390_arch. Set
10489 initialization value.
10490 (mtune=): Replace s390_arch_option with processor_type. Set
10491 variable name to s390_tune. Set initialization value.
10492
10493 2011-03-23 Julian Brown <julian@codesourcery.com>
10494
10495 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10496 accesses which are not naturally aligned.
10497
10498 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10499
10500 PR target/47553
10501 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10502
10503 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10504
10505 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10506 parameter from "int" to "enum insn_code".
10507 (expand_operand_type): New enum.
10508 (expand_operand): New structure.
10509 (create_expand_operand): New function.
10510 (create_fixed_operand, create_output_operand): Likewise
10511 (create_input_operand, create_convert_operand_to): Likewise.
10512 (create_convert_operand_from, create_address_operand): Likewise.
10513 (create_integer_operand): Likewise.
10514 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10515 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10516 (expand_insn, expand_jump_insn): Likewise.
10517 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10518 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10519 (expand_movstr, expand_builtin___clear_cache): Likewise.
10520 (expand_builtin_lock_release): Likewise.
10521 * explow.c (allocate_dynamic_stack_space): Likewise.
10522 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10523 and use the default handling in that case.
10524 * expmed.c (check_predicate_volatile_ok): Delete.
10525 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10526 (emit_cstore): Likewise.
10527 * expr.c (emit_block_move_via_movmem): Likewise.
10528 (set_storage_via_setmem, expand_assignment): Likewise.
10529 (emit_storent_insn, try_casesi): Likewise.
10530 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10531 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10532 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10533 (expand_twoval_unop, expand_twoval_binop): Likewise.
10534 (expand_unop_direct, emit_indirect_jump): Likewise.
10535 (emit_conditional_move, vector_compare_rtx): Likewise.
10536 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10537 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10538 (expand_sync_lock_test_and_set): Likewise.
10539 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10540 (emit_unop_insn): Likewise.
10541 (expand_copysign_absneg): Change icode to an insn_code.
10542 (create_convert_operand_from_type): New function.
10543 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10544 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10545 (expand_insn, expand_jump_insn): Likewise.
10546 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10547 than const_int_operand for operand 2.
10548
10549 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10550
10551 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10552 if possible.
10553
10554 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10555
10556 * emit-rtl.c (emit_pattern_before_noloc): New function.
10557 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10558 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10559 (emit_pattern_after_noloc): New function.
10560 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10561 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10562
10563 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10564
10565 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10566 (__ffsDI2): Likewise.
10567
10568 2011-03-22 Richard Henderson <rth@redhat.com>
10569
10570 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10571 of !TARGET_ABI_OPEN_VMS.
10572 (alpha_trampoline_init, alpha_start_function): Likewise.
10573 (alpha_expand_epilogue, alpha_file_start): Likewise.
10574 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10575 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10576 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10577 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10578 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10579
10580 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10581
10582 * config/s390/s390-opts.h: New.
10583 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10584 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10585 s390_stack_guard): Remove.
10586 (s390_handle_arch_option): Return void. Take enum
10587 s390_arch_option value instead of string and searching array.
10588 (s390_handle_option): Don't assert that global structures are in
10589 use. Access variables via opts pointer. Use error_at. Don't use
10590 sscanf for -mstack-guard= or -mstack-size=. Update call to
10591 s390_handle_arch_option.
10592 (s390_option_override): Update call to s390_handle_arch_option.
10593 (s390_emit_prologue): Use %d format for s390_stack_size in
10594 diagnostic. Use %wd for HOST_WIDE_INT.
10595 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10596 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10597 * config/s390/s390.opt (config/s390/s390-opts.h): New
10598 HeaderInclude entry.
10599 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10600 s390_arch_flags, s390_warn_framesize): New Variable entries.
10601 (s390_arch_option): New Enum and EnumValue entries.
10602 (march=): Use Enum instead of Var.
10603 (mstack-guard=, mstack-size=): Use UInteger and Var.
10604 (mtune=): Use Enum.
10605
10606 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10607
10608 * config/score/score.c (score_handle_option): Don't assert that
10609 global structures are in use. Access target_flags via opts
10610 pointer. Use value of -march= option to determine target_flags
10611 settings.
10612 * config/score/score.opt (march=): Use Enum.
10613 (score_arch): New Enum and EnumValue entries.
10614
10615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10616
10617 * config/mep/mep.c (option_mtiny_specified): Remove.
10618 (mep_option_override): Move register handling for -mivc2 from
10619 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10620 instead of option_mtiny_specified.
10621 (mep_handle_option): Access target_flags via opts pointer. Don't
10622 assert that global structures are in use. Defer part of -mivc2
10623 handling and move it to mep_option_override.
10624 * config/mep/mep.opt (IVC2): New Mask entry.
10625 (mivc2): Use Var and Defer instead of Mask.
10626
10627 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10628
10629 * config/v850/v850-opts.h: New.
10630 * config/v850/v850.c (small_memory): Replace with
10631 small_memory_physical_max array. Make that array static const.
10632 (v850_handle_memory_option): Take integer value of argument. Take
10633 gcc_options pointer, option text and location. Return void.
10634 Update for changes to small memory structures.
10635 (v850_handle_option): Access target_flags via opts pointer. Don't
10636 assert that global structures are in use. Update calls to
10637 v850_handle_memory_option.
10638 (v850_encode_data_area): Update references to small memory settings.
10639 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10640 (enum small_memory_type): Move to v850-opts.h.
10641 * config/v850/v850.opt (config/v850/v850-opts.h): New
10642 HeaderInclude entry.
10643 (small_memory_max): New Variable entry.
10644 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10645 (mtda, mzda): Likewise.
10646
10647 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10648
10649 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10650 pointer. Don't assert that global structures are in use.
10651
10652 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10653
10654 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10655 via opts pointer. Don't assert that global structures are in use.
10656
10657 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10658
10659 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10660 (munix=93): Use Var.
10661 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10662 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10663 * config/pa/pa-opts.h: New.
10664 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10665 (pa_handle_option): Don't assert that global structures are in
10666 use. Access target_flags via opts pointer. Don't handle
10667 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10668 OPT_munix_98 here.
10669 (pa_option_override): Handle deferred OPT_mfixed_range_.
10670
10671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10672
10673 * config/mn10300/mn10300-opts.h: New.
10674 * config/mn10300/mn10300.c (mn10300_processor,
10675 mn10300_tune_string): Remove.
10676 (mn10300_handle_option): Don't assert that global structures are
10677 in use. Access mn10300_processor via opts pointer. Don't handle
10678 OPT_mtune_ here.
10679 * config/mn10300/mn10300.h (enum processor_type): Move to
10680 mn10300-opts.h.
10681 (mn10300_processor): Remove.
10682 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10683 HeaderInclude entry.
10684 (mn10300_processor): New Variable entry.
10685 (mtune=): Use Var.
10686
10687 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10688
10689 * config/microblaze/microblaze.c: Don't include opts.h.
10690 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10691 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10692 (mno-clearbss): Use Var and Warn.
10693
10694 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10695
10696 * config/m32r/m32r-opts.h: New.
10697 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10698 (m32r_handle_option): Don't assert that global structures are in
10699 use. Access target_flags and m32r_cache_flush_func via opts
10700 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10701 OPT_mno_flush_trap here.
10702 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10703 include of m32r-opts.h.
10704 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10705 HeaderInclude entry.
10706 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10707 (mmodel=): Use Enum and Var.
10708 (m32r_model): New Enum and EnumValue entries.
10709 (mno-flush-trap): Use Var.
10710 (msdata=): Use Enum and Var.
10711 (m32r_sdata): New Enum and EnumValue entries.
10712
10713 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10714
10715 * config/m32c/m32c.c: Don't include opts.h.
10716 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10717 m32c_handle_option): Remove.
10718 (m32c_option_override): Check global_options_set.x_target_memregs
10719 instead of target_memregs_set.
10720 * config/m32c/m32c.h (target_memregs): Remove.
10721 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10722 variable.
10723
10724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10725
10726 * config/iq2000/iq2000-opts.h: New.
10727 * config/iq2000/iq2000.c: Don't include opts.h.
10728 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10729 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10730 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10731 HeaderInclude entry.
10732 (iq2000_tune): New Variable entry.
10733 (march=): Add comment. Use Enum.
10734 (iq2000_arch): New Enum and EnumValue entries.
10735 (mcpu=): Use Enum and Var.
10736 (iq2000_tune): New Enum and EnumValue entries.
10737
10738 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10739
10740 * config/ia64/ia64-opts.h: New.
10741 * config/ia64/ia64.c (ia64_tune): Remove.
10742 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10743 here. Use error_at.
10744 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10745 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10746 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10747 HeaderInclude entry.
10748 (ia64_tune): New Variable entry.
10749 (mfixed-range=): Use Defer and Var.
10750 (mtune=): Use Enum and Var.
10751 (ia64_tune): New Enum and EnumValue entries.
10752
10753 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10754
10755 * config/frv/frv-opts.h: New.
10756 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10757 frv-opts.h.
10758 (frv_cpu_type): Remove.
10759 * config/frv/frv.c: Don't include opts.h.
10760 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10761 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10762 (frv_cpu_type): New Variable entry.
10763 (frv_cpu): New Enum and EnumValue entries.
10764
10765 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10766
10767 * config/cris/cris.c (cris_handle_option): Access target_flags via
10768 opts pointer. Don't assert that global structures are in use.
10769 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10770 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10771
10772 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10773
10774 * config/bfin/bfin-opts.h: New.
10775 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10776 bfin_si_revision, bfin_workarounds): Remove.
10777 (bfin_cpus): Make static const.
10778 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10779 not bfin_lib_id_given.
10780 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10781 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10782 pointer. Use error_at. Don't assert that global structures are in use.
10783 * config/bfin/bfin.h: Include bfin-opts.h.
10784 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10785 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10786 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10787 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10788 entries.
10789
10790 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10791
10792 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10793 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10794 or -msoft-float here.
10795 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10796 -msoft-float and -mhard-float.
10797 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10798 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10799 msoft-float.
10800 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10801 -msoft-float.
10802 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10803 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10804 not mhard-float.
10805 (LIBGCC_SPEC): Don't handle -msoft-float.
10806 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10807 -mhard-float.
10808 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10809 msoft-float.
10810 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10811 -mfloat-abi=*, not -msoft-float and -mhard-float.
10812 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10813 -msoft-float.
10814 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10815 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10816 mhard-float and msoft-float.
10817 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10818 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10819 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10820 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10821 mhard-float.
10822 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10823 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10824 msoft-float.
10825 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10826 not mhard-float.
10827 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10828 not msoft-float.
10829
10830 2011-03-22 Richard Henderson <rth@redhat.com>
10831
10832 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10833 TARGET_ABI_WINDOWS_NT.
10834 (alpha_output_function_end_prologue): Likewise.
10835 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10836 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10837 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10838 (trap, *movsi_nt_vms): Likewise.
10839 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10840 (*tablejump_osf_nt_internal): Remove.
10841 * config/alpha/predicates.md (input_operand): Only test Pmode.
10842
10843 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10844
10845 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10846 via opts pointer. Use error_at. Don't assert that global
10847 structures are in use.
10848
10849 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10850
10851 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10852 (ix86_handle_option): Access ix86_isa_flags and
10853 ix86_isa_flags_explicit via opts pointer. Don't assert that
10854 global structures are in use.
10855 (ix86_function_specific_save, ix86_function_specific_restore):
10856 Update ix86_isa_flags_explicit field name.
10857 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10858 (ix86_isa_flags_explicit): Rename TargetSave entry to
10859 x_ix86_isa_flags_explicit.
10860
10861 2011-03-22 Richard Henderson <rth@redhat.com>
10862
10863 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10864 (alpha_option_override, direct_return): Likewise.
10865 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10866 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10867 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10868 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10869 (alpha_expand_epilogue, alpha_end_function): Likewise.
10870 (alpha_init_libfuncs): Likewise.
10871 (struct machine_function): Remove unicosmk members.
10872 (print_operand) ['t']: Remove.
10873 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10874 unicosmk_output_module_name, unicosmk_output_common,
10875 current_section_align, unicosmk_output_text_section_asm_op,
10876 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10877 unicosmk_section_type_flags, unicosmk_unique_section,
10878 unicosmk_asm_named_section, unicosmk_insert_attributes,
10879 unicosmk_output_align, unicosmk_defer_case_vector,
10880 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10881 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10882 unicosmk_output_ssib, unicosmk_add_call_info_word,
10883 unicosmk_extern_head, unicosmk_output_default_externs,
10884 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10885 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10886 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10887 * config/alpha/alpha-protos.h: Update.
10888 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10889 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10890 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10891 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10892 (*mulsi_se, mulvsi3): Likewise.
10893 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10894 (*divmodsi_internal, call, call_value, realign): Likewise.
10895 (moddi3, umoddi3): Likewise; remove duplicate expander.
10896 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10897 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10898 (*movdi_nofix): Remove r/U alternative.
10899 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10900 * config/alpha/constraints.md ("U"): Remove.
10901 * config/alpha/predicates.md (call_operand"): Don't test
10902 TARGET_ABI_UNICOSMK.
10903
10904 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10905
10906 * target.def (handle_option): Take gcc_options and
10907 cl_decoded_option pointers and location_t.
10908 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10909 * doc/tm.texi: Regenerate.
10910 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10911 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10912 * lto-opts.c (lto_reissue_options): Generate option structure for
10913 targetm.handle_option call.
10914 * opts.c (target_handle_option): Update call to
10915 targetm.handle_option. Remove assertions about values now passed
10916 down to hook.
10917 * targhooks.c (default_target_handle_option): New.
10918 * targhooks.h (default_target_handle_option): Declare.
10919 * config/alpha/alpha.c: Include opts.h.
10920 (alpha_handle_option): Update to new hook interface.
10921 * config/arm/arm.c: Include opts.h.
10922 (arm_handle_option): Update to new hook interface.
10923 * config/arm/t-arm (arm.o): Update dependencies.
10924 * config/bfin/bfin.c: Include opts.h.
10925 (bfin_handle_option): Update to new hook interface.
10926 * config/cris/cris.c: Include opts.h.
10927 (cris_handle_option): Update to new hook interface.
10928 * config/frv/frv.c: Include opts.h.
10929 (frv_handle_option): Update to new hook interface.
10930 * config/i386/i386.c: Include opts.h.
10931 (ix86_handle_option): Update to new hook interface.
10932 (ix86_valid_target_attribute_inner_p): Generate option structure
10933 for call to ix86_handle_option.
10934 * config/i386/t-i386 (i386.o): Update dependencies.
10935 * config/ia64/ia64.c: Include opts.h.
10936 (ia64_handle_option): Update to new hook interface.
10937 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10938 * config/iq2000/iq2000.c: Include opts.h.
10939 (iq2000_handle_option): Update to new hook interface.
10940 * config/m32c/m32c.c: Include opts.h.
10941 (m32c_handle_option): Update to new hook interface.
10942 * config/m32r/m32r.c: Include opts.h.
10943 (m32r_handle_option): Update to new hook interface.
10944 * config/m68k/m68k.c: Include opts.h.
10945 (m68k_handle_option): Update to new hook interface.
10946 * config/mep/mep.c: Include opts.h.
10947 (mep_handle_option): Update to new hook interface.
10948 * config/microblaze/microblaze.c: Include opts.h.
10949 (microblaze_handle_option): Update to new hook interface.
10950 * config/mips/mips.c: Include opts.h.
10951 (mips_handle_option): Update to new hook interface.
10952 * config/mn10300/mn10300.c: Include opts.h.
10953 (mn10300_handle_option): Update to new hook interface.
10954 * config/pa/pa.c: Include opts.h.
10955 (pa_handle_option): Update to new hook interface.
10956 * config/pdp11/pdp11.c: Include opts.h.
10957 (pdp11_handle_option): Update to new hook interface.
10958 * config/rs6000/rs6000.c: Include opts.h.
10959 (rs6000_handle_option): Update to new hook interface.
10960 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10961 * config/rx/rx.c: Include opts.h.
10962 (rx_handle_option): Update to new hook interface.
10963 * config/s390/s390.c: Include opts.h.
10964 (s390_handle_option): Update to new hook interface.
10965 * config/score/score.c: Include opts.h.
10966 (score_handle_option): Update to new hook interface.
10967 * config/sh/sh.c: Include opts.h.
10968 (sh_handle_option): Update to new hook interface.
10969 * config/sparc/sparc.c: Include opts.h.
10970 (sparc_handle_option): Update to new hook interface.
10971 * config/v850/v850.c: Include opts.h.
10972 (v850_handle_option): Update to new hook interface.
10973
10974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10975
10976 * gcc.c (driver_unknown_option_callback): Only permit and save
10977 unknown -Wno- options.
10978 (driver_wrong_lang_callback): Save options directly instead of via
10979 driver_unknown_option_callback.
10980
10981 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10982
10983 * combine.c (simplify_set): Try harder to find the best CC mode when
10984 simplifying a nested COMPARE on the RHS.
10985
10986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10987
10988 * config/alpha/gnu.h: Remove.
10989 * config/arc: Remove directory.
10990 * config/arm/netbsd.h: Remove.
10991 * config/arm/t-pe: Remove.
10992 * config/crx: Remove directory.
10993 * config/i386/netbsd.h: Remove.
10994 * config/m68hc11: Remove directory.
10995 * config/m68k/uclinux-oldabi.h: Remove.
10996 * config/mcore/mcore-pe.h: Remove.
10997 * config/mcore/t-mcore-pe: Remove.
10998 * config/netbsd-aout.h: Remove.
10999 * config/rs6000/gnu.h: Remove.
11000 * config/sh/sh-symbian.h: Remove.
11001 * config/sh/symbian-base.c: Remove.
11002 * config/sh/symbian-c.c: Remove.
11003 * config/sh/symbian-cxx.c: Remove.
11004 * config/sh/symbian-post.h: Remove.
11005 * config/sh/symbian-pre.h: Remove.
11006 * config/sh/t-symbian: Remove.
11007 * config/svr3.h: Remove.
11008 * config/vax/netbsd.h: Remove.
11009 * config.build: Don't handle i[34567]86-*-pe.
11010 * config.gcc: Remove handling of deprecations for most deprecated
11011 targets.
11012 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11013 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11014 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11015 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11016 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11017 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11018 Remove cases.
11019 * config.host: Don't handle i[34567]86-*-pe.
11020 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11021 (ASM_SPEC32): Don't handle -mcall-gnu.
11022 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11023 -mcall-gnu.
11024 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11025 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11026 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11027 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11028 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11029 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11030 conditional on SYMBIAN.
11031 * configure.ac: Don't handle powerpc*-*-gnu*.
11032 * configure: Regenerate.
11033 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11034 * doc/install-old.texi (m6811, m6812): Don't mention.
11035 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11036 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11037 (m68k-uclinuxoldabi): Don't mention.
11038 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11039 Remove.
11040 (-mcall-gnu): Remove.
11041 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11042 families): Remove constraint documentation.
11043
11044 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11045
11046 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11047 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11048 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11049
11050 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11051
11052 PR target/48226
11053 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11054 vector when peeking at the next token for vector, don't expand the
11055 keywords.
11056
11057 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11058
11059 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11060 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11061 * config/avr/avr.c (init_cumulative_args)
11062 (avr_function_arg_advance): Use it.
11063 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11064 sibcall epilogues.
11065 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11066 (avr_function_ok_for_sibcall): ...this new function.
11067 (avr_lookup_function_attribute1): New static Function.
11068 (avr_naked_function_p, interrupt_function_p)
11069 (signal_function_p, avr_OS_task_function_p)
11070 (avr_OS_main_function_p): Use it.
11071 * config/avr/avr.md ("sibcall", "sibcall_value")
11072 ("sibcall_epilogue"): New expander.
11073 ("*call_insn", "*call_value_insn"): New insn.
11074 ("call_insn", "call_value_insn"): Remove
11075 ("call", "call_value", "epilogue"): Change expander to handle
11076 sibling calls.
11077
11078 2011-03-21 Nick Clifton <nickc@redhat.com>
11079
11080 * doc/invoke.texi (Overall Options): Move closing brace to end of
11081 options list.
11082 (Optimization Options): Add missing @gol.
11083 (Directory Options): Likewise.
11084 (i386 and x86-64 Options): Likewise.
11085 (RS6000 and PowerPC Options): Likewise.
11086 (i386 and x86-64 Windows Options): Likewise.
11087 (V850 Options): Add text missing from descriptions.
11088
11089 2011-03-22 Richard Henderson <rth@redhat.com>
11090
11091 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11092 (avr_incoming_return_addr_rtx): New.
11093 (emit_push_byte): New.
11094 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11095 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11096 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11097 (emit_pop_byte): New.
11098 (expand_epilogue): Use it. Pop frame pointer by bytes.
11099 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11100 (INCOMING_RETURN_ADDR_RTX): New.
11101 (INCOMING_FRAME_SP_OFFSET): New.
11102 (ARG_POINTER_CFA_OFFSET): New.
11103 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11104 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11105 (pophi): Remove.
11106
11107 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11108
11109 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11110
11111 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11112 (FUNCTION_ARG_ADVANCE): Likewise.
11113 * tm.texi.in: Change references to them to hook references.
11114 * tm.texi: Regenerate.
11115 * targhooks.c (default_function_arg): Eliminate check for target
11116 macro.
11117 (default_function_incoming_arg): Likewise.
11118 (default_function_arg_advance): Likewise.
11119 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11120 (function_arg_advance): Likewise.
11121 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11122
11123 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11124
11125 * tree.c (build_call_1): New function.
11126 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11127
11128 2011-03-22 Richard Guenther <rguenther@suse.de>
11129
11130 PR tree-optimization/48228
11131 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11132 for single-arg PHIs.
11133
11134 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11135
11136 PR rtl-optimization/48143
11137 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11138 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11139 sse2_cvtps2pd): Likewise.
11140
11141 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11142
11143 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11144
11145 2011-03-22 Richard Guenther <rguenther@suse.de>
11146
11147 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11148 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11149 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11150 and REALIGN_LOAD_EXPR.
11151 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11152 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11153 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11154 DOT_PROD_EXPR case ...
11155 (expand_expr_real_2): ... here.
11156 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11157 and REALIGN_LOAD_EXPR.
11158 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11159 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11160 (vect_create_epilog_for_reduction): Likewise.
11161 (vectorizable_reduction): Likewise.
11162 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11163 * tree-vect-stmts.c (vectorizable_load): Likewise.
11164
11165 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11166
11167 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11168
11169 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11170
11171 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11172 handling for PLTOFF/GOTOFF.
11173
11174 2011-03-22 Nick Clifton <nickc@redhat.com>
11175
11176 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11177 trailing backslash from the end of the macro definition.
11178
11179 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11180
11181 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11182 and PLT unspecs.
11183
11184 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11185
11186 * expr.h (prepare_operand): Move to...
11187 * optabs.h (prepare_operand): ...here and change the insn code
11188 parameter from "int" to "enum insn_code".
11189 (insn_operand_matches): Declare.
11190 * expr.c (init_expr_target): Use insn_operand_matches.
11191 (compress_float_constant): Likewise.
11192 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11193 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11194 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11195 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11196 Likewise.
11197 (gen_cond_trap): Likewise.
11198 (prepare_operand): Likewise. Change icode to an insn_code.
11199 (insn_operand_matches): New function.
11200 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11201 * reload1.c (gen_reload): Likewise.
11202 * targhooks.c (default_secondary_reload): Likewise.
11203
11204 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11205
11206 * config/alpha/alpha.md (unspec): New define_c_enum.
11207 (unspecv): Ditto.
11208
11209 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11210
11211 PR debug/48214
11212 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11213 between a call and its CALL_ARG_LOCATION note.
11214
11215 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11216
11217 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11218
11219 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11220
11221 PR c/42544
11222 PR c/48197
11223 * c-common.c (shorten_compare): If primopN is first sign-extended
11224 to opN and then zero-extended to result type, set primopN to opN.
11225
11226 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11227
11228 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11229 for barrier handlers.
11230
11231 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11232
11233 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11234 UNSPEC constants to be in the unspec enumeration, and redefine
11235 all UNSPECV constants to be in the unspecv enumeration, so that
11236 dumps print which unspec/unspec_volatile this is.
11237 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11238 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11239 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11240 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11241 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11242
11243 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11244 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11245 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11246 * config/rs6000/sync.md (isync, lwsync): Ditto.
11247
11248 2011-03-21 Richard Guenther <rguenther@suse.de>
11249
11250 * params.def (lto-min-partition): Fix typo.
11251
11252 2011-03-21 Richard Guenther <rguenther@suse.de>
11253
11254 PR c/47939
11255 * c-decl.c (grokdeclarator): Drop to the main variant only
11256 for array types. Drop flag_gen_aux_info check.
11257
11258 2011-03-21 Richard Guenther <rguenther@suse.de>
11259
11260 PR translation/47911
11261 * params.def (lto-partitions): Fix typo.
11262 (lto-min-partition): Fix wording.
11263
11264 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11265
11266 * config/rs6000/t-freebsd: Remove duplication from file.
11267
11268 2011-03-21 Richard Guenther <rguenther@suse.de>
11269
11270 PR middle-end/47661
11271 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11272
11273 2011-03-21 Richard Guenther <rguenther@suse.de>
11274
11275 PR lto/48210
11276 * params.def (lto-partitions): Require at least 1 partition.
11277
11278 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11279
11280 * gthr-solaris.h: Remove.
11281 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11282 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11283 (LIB_SPEC): Likewise.
11284 * config/sol2.opt (threads): Remove.
11285 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11286 (sparc*-*-solaris2*): Likewise.
11287 * configure.ac (enable_threads): Enable solaris support.
11288 * configure: Regenerate.
11289 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11290 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11291 solaris.
11292
11293 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11294
11295 * config.gcc: Obsolete *-*-solaris2.8*.
11296 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11297
11298 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11299
11300 PR bootstrap/48135
11301 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11302 reference. Solaris 8 perl works.
11303
11304 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11305
11306 PR bootstrap/48135
11307 * doc/install.texi (Prerequisites): Move jar etc. up.
11308 Explain support library version requirements.
11309
11310 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11311
11312 PR bootstrap/48135
11313 * doc/install.texi (Prerequisites): Move Perl to build
11314 requirements. Always necessary on Solaris 2 with Sun ld.
11315
11316 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11317
11318 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11319 binutils 2.21.
11320 (Specific, i?86-*-solaris2.[89]): Likewise.
11321 (Specific, i?86-*-solaris2.10): Likewise.
11322 (Specific, mips-sgi-irix6): Likewise.
11323 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11324 Update for binutils 2.21.
11325
11326 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11327
11328 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11329 Allow -fuse-linker-plugin for non-default plugin linker.
11330 * configure: Regenerate.
11331
11332 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11333
11334 PR bootstrap/48167
11335 * gengtype.c (files_rules): Added rule for cp/parser.h.
11336
11337 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11338
11339 PR target/48213
11340 * config/s390/s390.c (s390_delegitimize_address): Don't call
11341 lowpart_subreg if orig_x has BLKmode.
11342
11343 2011-03-21 Kai Tietz <ktietz@redhat.com>
11344
11345 PR target/12171
11346 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11347 * tree.h (attribute_spec): Add new member affects_type_identity.
11348 * attribs.c (empty_attribute_table): Adjust attribute_spec
11349 initializers.
11350 * config/alpha/alpha.c: Likewise.
11351 * config/arc/arc.c: Likewise.
11352 * config/arm/arm.c: Likewise.
11353 * config/avr/avr.c: Likewise.
11354 * config/bfin/bfin.c: Likewise.
11355 * config/crx/crx.c: Likewise.
11356 * config/darwin.h: Likewise.
11357 * config/h8300/h8300.c: Likewise.
11358 * config/i386/cygming.h: Likewise.
11359 * config/i386/i386.c: Likewise.
11360 * config/ia64/ia64.c: Likewise.
11361 * config/m32c/m32c.c: Likewise.
11362 * config/m32r/m32r.c: Likewise.
11363 * config/m68hc11/m68hc11.c: Likewise.
11364 * config/m68k/m68k.c: Likewise.
11365 * config/mcore/mcore.c: Likewise.
11366 * config/mep/mep.c: Likewise.
11367 * config/microblaze/microblaze.c: Likewise.
11368 * config/mips/mips.c: Likewise.
11369 * config/rs6000/rs6000.c: Likewise.
11370 * config/rx/rx.c: Likewise.
11371 * config/sh/sh.c: Likewise.
11372 * config/sol2.h: Likewise.
11373 * config/sparc/sparc.c: Likewise.
11374 * config/spu/spu.c: Likewise.
11375 * config/stormy16/stormy16.c: Likewise.
11376 * config/v850/v850.c: Likewise.
11377
11378 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11379
11380 * simplify-rtx.c (simplify_binary_operation_1): Handle
11381 (xor (and A B) C) case when B and C are both constants.
11382
11383 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11384
11385 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11386
11387 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11388
11389 PR bootstrap/48168
11390 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11391
11392 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11393
11394 PR rtl-optimization/48156
11395 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11396 assume df and df_lr are not NULL.
11397
11398 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11399
11400 PR debug/48023
11401 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11402 between a call and its CALL_ARG_LOCATION note.
11403
11404 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11405
11406 PR debug/48178
11407 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11408 between a call and its corresponding CALL_ARG_LOCATION note.
11409
11410 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11411
11412 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11413 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11414 * haifa-sched.c (setup_ref_regs): Ditto.
11415 * caller-save.c (add_used_regs_1): Ditto.
11416 * dse.c (look_for_hardregs): Ditto.
11417 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11418 * sched-rgn.c (check_live_1): Ditto.
11419
11420 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11421
11422 * c-decl.c (diagnose_mismatched_decls): Give an error for
11423 redefining a typedef with variably modified type.
11424
11425 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11426
11427 * c-decl.c (grokfield): Don't allow typedefs for structures or
11428 unions with no tag by default.
11429 * doc/extend.texi (Unnamed Fields): Update.
11430
11431 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11432
11433 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11434 Rewrite using indirect functions.
11435 (lwp_slwpcb): Ditto.
11436 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11437 (avx_vinsertf128<mode>): Ditto.
11438
11439 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11440
11441 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11442 unspecs.
11443
11444 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11445
11446 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11447 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11448
11449 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11450
11451 PR rtl-optimization/48170
11452 * gcse.c (hoist_code): Remove bogus asserts.
11453
11454 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11455
11456 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11457 computation for prologue/epilogue.
11458
11459 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11460
11461 * Makefile.in (check-consistency): Remove.
11462
11463 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11464
11465 PR debug/48176
11466 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11467 arange_table_in_use is 0, but either text_section_used or
11468 cold_text_section_used is true. Don't call it if
11469 !info_section_emitted.
11470
11471 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11472
11473 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11474 FUNCTION_VALUE_REGNO_P): Remove.
11475 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11476 Remove.
11477 * config/avr/avr.c (avr_ret_register): Make static inline.
11478 (avr_function_value_regno_p): New function.
11479 (avr_libcall_value): Make static. Add 'func' argument.
11480 (avr_function_value): Make static. Rename 'func' argument to
11481 'fn_decl_or_type', forward it to avr_libcall_value. Call
11482 avr_ret_register function instead of RET_REGISTER macro.
11483 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11484
11485 2011-03-18 Jason Merrill <jason@redhat.com>
11486
11487 PR c++/23372
11488 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11489
11490 2011-03-18 Richard Guenther <rguenther@suse.de>
11491
11492 * doc/install.texi (--enable-gold): Remove.
11493 (--with-plugin-ld): Document.
11494 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11495
11496 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11497
11498 PR middle-end/47790
11499 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11500 again after expansion changes.
11501
11502 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11503
11504 * combine.c (try_combine): Do simplification only call of
11505 subst() on i2 even when i1 is present. Update comments.
11506
11507 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11508
11509 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11510 and UNSPEC_PCREL_SYMOFF.
11511
11512 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11513
11514 * config/s390/s390.md: Use define_c_enum for the unspec constant
11515 definitions.
11516
11517 2011-03-18 Richard Henderson <rth@redhat.com>
11518 Jakub Jelinek <jakub@redhat.com>
11519
11520 PR bootstrap/48161
11521 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11522 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11523
11524 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11525
11526 PR middle-end/47725
11527 * combine.c (cant_combine_insn_p): Don't check zero/sign
11528 extended hard registers.
11529
11530 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11531
11532 PR middle-end/47725
11533 * combine.c (cant_combine_insn_p): Check zero/sign extended
11534 hard registers.
11535
11536 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11537
11538 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11539 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11540 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11541 Change return type to bool.
11542 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11543
11544 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11545
11546 PR debug/48163
11547 * var-tracking.c (prepare_call_arguments): If CALL target
11548 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11549 pc instead of looking it up using cselib_lookup and use
11550 Pmode for it if x has VOIDmode.
11551 * dwarf2out.c (gen_subprogram_die): If also both first and
11552 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11553
11554 PR debug/48163
11555 * function.c (assign_parms): For data.passed_pointer parms
11556 use MEM of data.entry_parm instead of data.entry_parm itself
11557 as DECL_INCOMING_RTL.
11558 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11559 also when passed and declared mode is the same, DECL_RTL
11560 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11561 a MEM too.
11562
11563 2011-03-16 Jeff Law <law@redhat.com>
11564
11565 PR rtl-optimization/37273
11566 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11567 handle them like argument loads from stack slots. Do not double
11568 count memory for memory constants and argument loads from stack slots.
11569
11570 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11571
11572 PR debug/48160
11573 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11574
11575 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11576
11577 PR target/48171
11578 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11579
11580 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11581
11582 PR bootstrap/48153
11583 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11584 if dwarf_strict.
11585 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11586 Clear call_arg_locations and call_arg_loc_last always.
11587
11588 PR middle-end/48152
11589 * var-tracking.c (prepare_call_arguments): If argument needs to be
11590 passed by reference, adjust argtype and mode.
11591
11592 2011-03-17 Richard Guenther <rguenther@suse.de>
11593
11594 PR middle-end/48134
11595 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11596 a value make sure to fold the statement.
11597
11598 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11599
11600 PR target/43872
11601 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11602 return condition with !cfun->calls_alloca.
11603
11604 2011-03-17 Richard Guenther <rguenther@suse.de>
11605
11606 PR bootstrap/48148
11607 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11608 origin for decls in other ltrans units.
11609 (input_varpool_node): Likewise.
11610
11611 2011-03-17 Richard Guenther <rguenther@suse.de>
11612
11613 PR middle-end/48165
11614 * tree-object-size.c (compute_object_offset): Properly return
11615 the offset operand of MEM_REFs as sizetype.
11616
11617 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11618
11619 PR rtl-optimization/48141
11620 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11621 * dse.c: Include params.h.
11622 (active_local_stores_len): New variable.
11623 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11624 to NULL.
11625 (record_store, check_mem_read_rtx): Decrease it when removing
11626 from the chain.
11627 (scan_insn): Likewise. Increase it when adding to chain, if it
11628 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11629 set active_local_stores to NULL before the addition.
11630 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11631
11632 PR rtl-optimization/48141
11633 * dse.c (record_store): If no positions are needed in an insn
11634 that cannot be deleted, at least unchain it from active_local_stores.
11635
11636 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11637
11638 PR debug/47510
11639 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11640 (lookup_type_die_strip_naming_typedef): ... here.
11641 (get_context_die): Use it.
11642 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11643 the anonymous struct named by the naming typedef.
11644
11645 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11646
11647 PR target/48154
11648 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11649 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11650
11651 2011-03-16 Jeff Law <law@redhat.com>
11652
11653 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11654 check for operands of conditional. Allow type to be a pointer.
11655
11656 2011-03-16 Richard Guenther <rguenther@suse.de>
11657
11658 PR tree-optimization/48149
11659 * fold-const.c (fold_binary_loc): Fold
11660 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11661
11662 2011-03-16 Richard Guenther <rguenther@suse.de>
11663
11664 PR tree-optimization/26134
11665 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11666 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11667 (non_rewritable_mem_ref_base): Handle complex type component
11668 accesses, constrain offsets for vector and complex extracts
11669 more properly.
11670
11671 2011-03-16 Richard Guenther <rguenther@suse.de>
11672
11673 PR tree-optimization/48146
11674 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11675 operands avoiding the need for renaming.
11676
11677 2011-03-16 Richard Guenther <rguenther@suse.de>
11678
11679 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11680 constant folding. Move MEM_REF canonicalization first.
11681 Rely on fold_const_aggregate_ref for initializer folding.
11682 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11683
11684 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11685
11686 PR middle-end/48136
11687 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11688 arg0/arg1 or their arguments are always fold converted to matching
11689 types.
11690
11691 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11692 to nargs.
11693
11694 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11695
11696 PR lto/46944
11697 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11698 Handle in-tree gold.
11699 (ld_vers): Extract binutils version for gold.
11700 (gcc_cv_ld_hidden): Handle gold here.
11701 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11702 * configure: Regenerate.
11703 * config.in: Regenerate.
11704 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11705 -fuse-linker-plugin otherwise.
11706 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11707 (LINK_COMMAND_SPEC): Use it.
11708 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11709
11710 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11711
11712 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11713 * calls.c: Remove debug.h include.
11714 (emit_call_1): Don't call virtual_call_token debug hook.
11715 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11716 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11717 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11718 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11719 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11720 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11721 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11722 dwarf2out_virtual_call): Remove.
11723 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11724 copy_call_info and virtual_call hooks.
11725 (dwarf2out_init): Don't initialize vcall_insn_table,
11726 debug_dcall_section and debug_vcall_section.
11727 (prune_unused_types): Don't mark nodes from dcall_table.
11728 (dwarf2out_finish): Don't output dcall or vcall tables.
11729 * final.c (final_scan_insn): Don't call direct_call or
11730 virtual_call debug hooks.
11731 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11732 virtual_call_token, copy_call_info and virtual_call hooks.
11733 (debug_nothing_uid): Remove prototype.
11734 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11735 copy_call_info and virtual_call hooks.
11736 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11737 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11738 * debug.c (do_nothing_debug_hooks): Likewise.
11739 (debug_nothing_uid): Remove.
11740 * doc/invoke.texi (-fenable-icf-debug): Remove.
11741 * common.opt (-fenable-icf-debug): Likewise.
11742
11743 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11744 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11745 call's MEM. Handle functions returning aggregate through a hidden
11746 first pointer. For virtual calls add clobbered pc to call arguments
11747 chain.
11748 * dwarf2out.c (gen_subprogram_die): Emit
11749 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11750 can't be emitted.
11751
11752 PR debug/45882
11753 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11754 * rtl.h (ENTRY_VALUE_EXP): Define.
11755 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11756 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11757 * print-rtl.c (print_rtx): Likewise.
11758 * gengtype.c (adjust_field_rtx_def): Likewise.
11759 * var-tracking.c (vt_add_function_parameter): Adjust
11760 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11761 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11762 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11763 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11764 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11765
11766 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11767 Call var_location debug hook even on CALL_INSNs.
11768 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11769 * rtl.def (ENTRY_VALUE): New.
11770 * dwarf2out.c: Include cfglayout.h.
11771 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11772 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11773 (struct call_arg_loc_node): New type.
11774 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11775 tail_call_site_count): New variables.
11776 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11777 DW_TAG_GNU_call_site_parameter.
11778 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11779 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11780 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11781 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11782 and DW_AT_GNU_all_source_call_sites.
11783 (mem_loc_descriptor): Handle ENTRY_VALUE.
11784 (add_src_coords_attributes): Don't add enything if
11785 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11786 (dwarf2out_abstract_function): Save and clear call_arg_location,
11787 call_site_count and tail_call_site_count around dwarf2out_decl call.
11788 (gen_call_site_die): New function.
11789 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11790 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11791 (dwarf2out_function_decl): Clear call_arg_locations,
11792 call_arg_loc_last, set call_site_count and tail_call_site_count
11793 to -1 and free block_map.
11794 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11795 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11796 followed by any real instructions.
11797 (dwarf2out_begin_function): Set call_site_count and
11798 tail_call_site_count to 0.
11799 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11800 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11801 attempt to force a DIE for it and worst case remove the attribute.
11802 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11803 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11804 the decl itself.
11805 * var-tracking.c: Include tm_p.h.
11806 (vt_stack_adjustments): For calls call note_register_arguments.
11807 (argument_reg_set): New variable.
11808 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11809 ensure the VALUE is resolved.
11810 (call_arguments): New variable.
11811 (prepare_call_arguments): New function.
11812 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11813 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11814 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11815 always use the best expression.
11816 (vt_expand_loc): Add ignore_cur_loc argument.
11817 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11818 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11819 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11820 note for all calls.
11821 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11822 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11823 argument. Don't call cselib_preserve_only_values and
11824 cselib_reset_table.
11825 (note_register_arguments): New function.
11826 (vt_initialize): Compute argument_reg_set. Call
11827 vt_add_function_parameters before processing basic blocks instead of
11828 afterwards. For calls call prepare_call_arguments before calling
11829 cselib_process_insn.
11830 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11831 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11832 (var-tracking.o): Depend on $(TM_P_H).
11833 * cfglayout.h (insn_scope): New prototype.
11834 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11835 * cfglayout.c (insn_scope): No longer static.
11836 * insn-notes.def (CALL_ARG_LOCATION): New.
11837 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11838 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11839 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11840 nothing for DECL_EXTERNAL BLOCK_VARS.
11841
11842 2011-03-16 Alan Modra <amodra@gmail.com>
11843
11844 PR target/45844
11845 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11846 create invalid offset address for vsx splat insn.
11847 * config/rs6000/predicates.md (splat_input_operand): New.
11848 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11849
11850 2011-03-15 Xinliang David Li <davidxl@google.com>
11851
11852 PR c/47837
11853 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11854 (normalize_preds): New function.
11855 (is_use_properly_guarded): Normalize def predicates.
11856
11857 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11858
11859 PR target/46788
11860 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11861 in the output template.
11862
11863 2011-03-15 Richard Guenther <rguenther@suse.de>
11864
11865 PR middle-end/47650
11866 * tree-pretty-print.c (dump_function_declaration): Properly
11867 dump unprototyped and varargs function types.
11868
11869 2011-03-15 Richard Guenther <rguenther@suse.de>
11870
11871 PR tree-optimization/13954
11872 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11873 and friends.
11874
11875 2011-03-15 Richard Guenther <rguenther@suse.de>
11876
11877 PR tree-optimization/48037
11878 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11879 selects into BIT_FIELD_REFs.
11880 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11881 vector select.
11882
11883 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11884
11885 PR tree-optimization/48129
11886 * builtins.c (fold_builtin_snprintf): Convert to type of
11887 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11888 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11889
11890 2011-03-15 Richard Guenther <rguenther@suse.de>
11891
11892 PR tree-optimization/41490
11893 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11894 value but with VUSE.
11895 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11896 return statements.
11897 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11898 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11899 * tree-tailcall.c (find_tail_calls): Ignore returns.
11900
11901 2011-03-15 Richard Guenther <rguenther@suse.de>
11902
11903 PR middle-end/48031
11904 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11905 or variable-indexed array accesses when in gimple form.
11906
11907 2011-03-15 Richard Guenther <rguenther@suse.de>
11908
11909 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11910
11911 2011-03-15 Alan Modra <amodra@gmail.com>
11912
11913 PR target/48032
11914 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11915 presume symbol_refs without a symbol_ref_decl are suitably
11916 aligned, nor other trees we may see here. Handle anchor symbols.
11917 (legitimate_constant_pool_address_p): Comment. Add mode param.
11918 Check cmodel=medium addresses. Adjust all calls.
11919 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11920 creating cmodel=medium optimized access to locals.
11921 * config/rs6000/constraints.md (R): Pass QImode to
11922 legitimate_constant_pool_address_p.
11923 * config/rs6000/predicates.md (input_operand): Pass mode to
11924 legitimate_constant_pool_address_p.
11925 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11926 Update prototype.
11927
11928 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11929
11930 PR target/48053
11931 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11932 64-bit constants being loaded into registers other than GPRs such
11933 as loading 0 into a VSX register.
11934
11935 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11936
11937 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11938
11939 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11940
11941 PR middle-end/47917
11942 * builtins.c (fold_builtin_snprintf): New function.
11943 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11944 (fold_builtin_4): Likewise.
11945
11946 PR middle-end/38878
11947 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11948 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11949 and C - X == X also strip nops from +/-/p+ operand.
11950 When optimizing -X == C, fold C to arg0's type.
11951
11952 PR debug/47946
11953 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11954 emit it as add_AT_int instead of add_AT_unsigned.
11955
11956 2011-03-14 Tom Tromey <tromey@redhat.com>
11957
11958 * unwind-dw2.c: Include sys/sdt.h if it exists.
11959 (_Unwind_DebugHook): Use STAP_PROBE2.
11960 * config.in, configure: Rebuild.
11961 * configure.ac: Check for sys/sdt.h.
11962
11963 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11964
11965 * config/i386/i386.md (ROUND_FLOOR): New constant.
11966 (ROUND_CEIL): Ditto.
11967 (ROUND_TRUNC): Ditto.
11968 (ROUND_MXCSR): Ditto.
11969 (ROUND_NO_EXC): Ditto.
11970 (rint<mode>2): Use new defines instead of numerical constants.
11971 (floor<mode>2): Ditto.
11972 (ceil<mode>2): Ditto.
11973 (btrunc<mode>2): Ditto.
11974 * config/i386/i386-builtin-types.def: Define ROUND function type
11975 aliases.
11976 * config/i386/i386.c (enum ix86_builtins): Add
11977 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11978 (struct builtin_description): Add
11979 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11980 (ix86_expand_sse_round): New static function.
11981 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11982 function types.
11983 (ix86_builtin_vectorized_function): Handle
11984 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11985
11986 2011-03-14 Tom Tromey <tromey@redhat.com>
11987
11988 * c-parser.c (c_parser_asm_string_literal): Clear
11989 warn_overlength_strings.
11990
11991 2011-03-14 Tom Tromey <tromey@redhat.com>
11992
11993 * c-parser.c (disable_extension_diagnostics): Save
11994 warn_overlength_strings.
11995 (restore_extension_diagnostics): Restore warn_overlength_strings.
11996
11997 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11998
11999 * BASE-VER: Change to 4.7.0.
12000
12001 2011-03-14 Richard Guenther <rguenther@suse.de>
12002
12003 PR middle-end/48098
12004 * tree.c (build_vector_from_val): Adjust assert to requirements
12005 and reality.
12006
12007 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12008
12009 PR bootstrap/48102
12010 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12011
12012 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12013
12014 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12015 terms of target_flags_explicit. Adjust copyright year.
12016
12017 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12018 * config/rs6000/t-freebsd: New file. Add override for
12019 LIB2FUNCS_EXTRA.
12020
12021 2011-03-13 Chris Demetriou <cgd@google.com>
12022
12023 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12024 (-fno-diagnostics-show-option): this, to reflect current default.
12025 (-Werror=): Update text about -fno-diagnostics-show-option.
12026
12027 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12028
12029 PR target/48053
12030 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12031 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12032 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12033 mode is not V2DImode or V2DFmode.
12034 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12035 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12036 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12037 registers to 0.
12038 (movdi_internal64): Likewise.
12039
12040 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12041
12042 PR tree-optimization/47127
12043 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12044 parameter.
12045 (set_cloog_options): Same.
12046 (scop_to_clast): Same.
12047 (print_clast_stmt): Do not call cloog_state_malloc and
12048 cloog_state_free.
12049 (print_generated_program): Same.
12050 (gloog): Same.
12051 * graphite-clast-to-gimple.h (cloog_state): Declared.
12052 (scop_to_clast): Adjust declaration.
12053 * graphite.c (cloog_state): Defined here.
12054 (graphite_initialize): Call cloog_state_malloc.
12055 (graphite_finalize): Call cloog_state_free.
12056
12057 2011-03-11 Jason Merrill <jason@redhat.com>
12058
12059 * attribs.c (lookup_attribute_spec): Take const_tree.
12060 * tree.h: Adjust.
12061
12062 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12063
12064 * config/sparc/sparc.c (sparc_option_override): Use
12065 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12066
12067 2011-03-11 Richard Guenther <rguenther@suse.de>
12068
12069 PR tree-optimization/48067
12070 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12071 multiplication result will be only used once on the target
12072 stmt.
12073
12074 2011-03-11 Richard Guenther <rguenther@suse.de>
12075
12076 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12077
12078 2011-03-11 Richard Guenther <rguenther@suse.de>
12079
12080 PR lto/48073
12081 * tree.c (find_decls_types_r): Do not walk types only reachable
12082 from IDENTIFIER_NODEs.
12083
12084 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12085
12086 PR middle-end/48044
12087 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12088 all vnode->force_output nodes as needed.
12089
12090 2011-03-11 Jason Merrill <jason@redhat.com>
12091
12092 PR c++/48069
12093 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12094 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12095
12096 2011-03-11 Martin Jambor <mjambor@suse.cz>
12097
12098 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12099 cgraph_node.
12100
12101 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12102
12103 PR tree-optimization/48063
12104 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12105 inline functions called once if !tree_can_inline_p (node->callers).
12106
12107 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12108
12109 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12110 extra_objs.
12111 * config/score/score3.c: Delete.
12112 * config/score/score3.h: Delete.
12113 * config/score/mul-div.S: Delete.
12114 * config/score/sfp-machine.h: Add new file.
12115 * config/score/constraints.md: Add new file.
12116 * config/score/t-score-softfp: Add new file.
12117 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12118 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12119 (score7_extra_constraint): Delete.
12120 (score7_option_override): Remove unused code.
12121 * config/score/score.c: Remove score3 and score5 define and code.
12122 * config/score/score.h: Remove score3 and score5 define and code.
12123 * config/score/score.md: Remove score3 template and unusual insn.
12124 * config/score/score.opt: Remove score3 and score5 options.
12125
12126 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12127
12128 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12129 when _HPUX_SOURCE is defined.
12130 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12131
12132 2011-03-10 Jason Merrill <jason@redhat.com>
12133
12134 PR c++/48029
12135 * stor-layout.c (layout_type): Don't set structural equality
12136 on arrays of incomplete type.
12137 * tree.c (type_hash_eq): Handle comparing them properly.
12138
12139 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12140
12141 PR debug/48043
12142 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12143 result mode matches original rtl mode.
12144
12145 2011-03-10 Nick Clifton <nickc@redhat.com>
12146
12147 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12148 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12149
12150 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12151
12152 PR rtl-optimization/47866
12153 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12154 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12155 if target wasn't scalar.
12156 * function.c (assign_stack_temp_for_type): Assert that neither
12157 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12158 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12159 macro.
12160 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12161
12162 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12163
12164 * config/s390/s390-protos.h (s390_label_align): New prototype.
12165 * config/s390/s390.c (s390_label_align): New function.
12166 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12167
12168 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12169
12170 PR target/47755
12171 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12172 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12173 (output_vec_const_move): Ditto.
12174
12175 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12176
12177 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12178 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12179 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12180 Change 'rclass' argument and result type to reg_class_t.
12181 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12182
12183 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12184
12185 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12186 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12187 (TARGET_MEMORY_MOVE_COST): Define.
12188 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12189
12190 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12191
12192 PR debug/47881
12193 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12194 removed anything.
12195
12196 PR tree-optimization/48022
12197 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12198 for EQ/NE_EXPR.
12199
12200 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12201
12202 PR debug/47991
12203 * var-tracking.c (find_use_val): Return NULL for
12204 cui->sets && cui->store_p BLKmode MEMs.
12205
12206 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12207
12208 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12209 Remove.
12210 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12211 xstormy16_print_operand_address): Remove.
12212 * config/stormy16/stormy16.c (xstormy16_print_operand,
12213 xstormy16_print_operand_address): Make static.
12214 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12215
12216 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12217
12218 PR target/47862
12219 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12220 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12221 before definition.
12222
12223 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12224
12225 PR bootstrap/48000
12226 * cfgloopmanip.c (fix_bb_placements): Return immediately
12227 if FROM is BASE_LOOP's header.
12228
12229 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12230
12231 * gimplify.c (gimplify_function_tree): Fix building calls
12232 to __builtin_return_address.
12233
12234 2011-03-07 Alan Modra <amodra@gmail.com>
12235
12236 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12237 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12238 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12239 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12240 return_mode args.
12241 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12242 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12243 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12244 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12245 * config/rs6000/rs6000.c
12246 (rs6000_elf_end_indicate_exec_stack): Rename to..
12247 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12248 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12249 (rs6000_file_start): ..here.
12250 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12251 file scope variables.
12252 (call_ABI_of_interest): New function.
12253 (init_cumulative_args): Set above vars when function return value
12254 is a float, vector, or small struct.
12255 (rs6000_function_arg_advance_1): Likewise for function args.
12256 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12257 references float args.
12258
12259 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12260
12261 * doc/cfg.texi: Remove "See" before @ref.
12262 * doc/invoke.texi: Likewise.
12263
12264 2011-03-05 Jason Merrill <jason@redhat.com>
12265
12266 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12267
12268 2011-03-05 Anthony Green <green@moxielogic.com>
12269
12270 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12271
12272 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12273
12274 PR rtl-optimization/47899
12275 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12276 to flow_loop_nested_p when moving the loop upward.
12277
12278 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12279
12280 PR target/47719
12281 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12282
12283 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12284
12285 PR tree-optimization/47967
12286 * ipa-cp.c (build_const_val): Return NULL instead of creating
12287 VIEW_CONVERT_EXPR for mismatching sizes.
12288 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12289 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12290 give up on versioning.
12291
12292 2011-03-05 Alan Modra <amodra@gmail.com>
12293
12294 PR target/47986
12295 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12296 full cmodel medium/large lo_sum + high addresses.
12297
12298 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12299
12300 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12301 pool references in UNSPEC_LTREL_OFFSET.
12302
12303 2011-03-04 Jan Hubicka <jh@suse.cz>
12304
12305 PR lto/47497
12306 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12307 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12308 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12309 Add node pointers.
12310 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12311 cgraph_add_thunk): Add node pointers.
12312 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12313 associated to right node.
12314 (input_node): Update use of cgraph_same_body_alias
12315 and cgraph_add_thunk.
12316
12317 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12318
12319 * config/i386/i386.opt (mprefer-avx128): New flag.
12320 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12321 modes when the flag -mprefer-avx128 is on.
12322
12323 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12324
12325 * dwarf2out.c (compare_loc_operands): Fix address handling.
12326
12327 2011-03-04 Alan Modra <amodra@gmail.com>
12328
12329 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12330
12331 2011-03-04 Richard Guenther <rguenther@suse.de>
12332
12333 PR middle-end/47968
12334 * expmed.c (extract_bit_field_1): Prefer vector modes that
12335 vec_extract patterns can handle.
12336
12337 2011-03-04 Richard Guenther <rguenther@suse.de>
12338
12339 PR middle-end/47975
12340 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12341
12342 2011-03-04 Richard Henderson <rth@redhat.com>
12343
12344 * explow.c (emit_stack_save): Remove 'after' parameter.
12345 (emit_stack_restore): Likewise.
12346 * expr.h: Update to match.
12347 * builtins.c, calls.c, stmt.c: Likewise.
12348 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12349 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12350 * function.c (expand_function_end): Insert the emit_stack_save
12351 sequence before parm_birth_insn instead of after.
12352
12353 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12354
12355 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12356 (ssse3_pmaddubsw128): Ditto.
12357 (ssse3_pmaddubsw): Ditto.
12358
12359 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12360
12361 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12362
12363 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12364
12365 PR c/47963
12366 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12367 on TYPE_SIZE_UNIT if it is a DECL.
12368
12369 PR debug/47283
12370 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12371 first operand is not is_gimple_mem_ref_addr, try to fold it.
12372 If the operand still isn't is_gimple_mem_ref_addr, clear
12373 MEM_EXPR on op0.
12374
12375 2011-03-03 Richard Guenther <rguenther@suse.de>
12376
12377 PR middle-end/47283
12378 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12379 match comment.
12380 (refs_may_alias_p_1): For release branches return true if
12381 we are confused by our input.
12382
12383 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12384
12385 * config/s390/s390.c (s390_function_value): Rename to ...
12386 (s390_function_and_libcall_value): ... this.
12387 (s390_function_value): New function.
12388 (s390_libcall_value): New function.
12389 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12390 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12391 target macro definitions.
12392 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12393
12394 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12395
12396 * config/i386/freebsd64.h (CC1_SPEC): Define.
12397 * config/i386/linux64.h (CC1_SPEC): Define.
12398 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12399
12400 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12401
12402 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12403 Remove.
12404 * config/stormy16/stormy16.c: Include reload.h.
12405 (xstormy16_memory_move_cost): New function.
12406 (TARGET_MEMORY_MOVE_COST): Define.
12407
12408 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12409
12410 PR rtl-optimization/47925
12411 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12412 with side effects. Remove the more-specific check for volatile asms.
12413
12414 2011-03-02 Alan Modra <amodra@gmail.com>
12415
12416 PR target/47935
12417 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12418 toc relative addresses for valid offsets.
12419
12420 2011-03-01 Richard Guenther <rguenther@suse.de>
12421
12422 PR tree-optimization/47890
12423 * tree-vect-loop.c (get_initial_def_for_induction): Set
12424 related stmt properly.
12425
12426 2011-03-01 Richard Guenther <rguenther@suse.de>
12427
12428 PR lto/47924
12429 * lto-streamer.c (lto_record_common_node): Also register
12430 the canonical type.
12431
12432 2011-03-01 Richard Guenther <rguenther@suse.de>
12433
12434 PR lto/46911
12435 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12436 Do not stream DECL_ABSTRACT_ORIGIN.
12437 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12438 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12439 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12440 Do not stream DECL_ABSTRACT_ORIGIN.
12441 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12442 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12443
12444 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12445
12446 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12447 FUNCTION_VALUE_REGNO_P): Remove.
12448 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12449 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12450 Add 'outgoing' argument.
12451 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12452 function.
12453 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12454 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12455
12456 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12457
12458 PR debug/28047
12459 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12460 (lookup_filename): Likewise.
12461 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12462
12463 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12464 Jakub Jelinek <jakub@redhat.com>
12465
12466 PR middle-end/47893
12467 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12468 (assign_stack_local_1): Change last argument type to int.
12469 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12470 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12471 don't record padding space into frame_space_list nor use those areas.
12472 (assign_stack_local): Adjust caller.
12473 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12474 of assign_stack_local, pass 0 as last argument.
12475 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12476 callers.
12477
12478 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12479
12480 PR debug/47283
12481 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12482 Use target address_mode and pointer_mode hooks instead of hardcoded
12483 Pmode and ptr_mode. Handle some simple cases of extending if
12484 POINTERS_EXTEND_UNSIGNED < 0.
12485 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12486 Call convert_debug_memory_address.
12487 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12488 convert_debug_memory_address.
12489
12490 PR middle-end/46790
12491 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12492 * configure: Regenerated.
12493 * config.in: Regenerated.
12494 * varasm.c (default_function_section): Return NULL
12495 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12496
12497 2011-02-28 Martin Jambor <mjambor@suse.cz>
12498
12499 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12500 the description to match the printed values.
12501
12502 2011-02-28 Richard Guenther <rguenther@suse.de>
12503
12504 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12505 of the copied scope tree.
12506
12507 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12508
12509 * doc/extend.texi (Function Attributes): Avoid deeply (and
12510 wrongly) nested tables.
12511
12512 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12513
12514 PR middle-end/47903
12515 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12516 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12517 r isn't op0 nor op1.
12518
12519 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12520
12521 * config/avr/avr.md: Remove magic comment for emacs.
12522
12523 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12524
12525 PR target/45261
12526 * config/avr/avr.c (avr_option_override): Use error on bad options.
12527 (avr_help): New function.
12528 (TARGET_HELP): Define.
12529
12530 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12531
12532 PR target/42240
12533 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12534 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12535
12536 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12537
12538 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12539 (ARM Options): Ditto.
12540 (i386 and x86-64 Options): Ditto.
12541 (RX Options): Ditto.
12542 (SPARC Options): Ditto.
12543
12544 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12545
12546 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12547 FreeBSD 6 and later. Generally use cpu generic.
12548
12549 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12550
12551 * doc/cpp.texi: Update copyright years.
12552
12553 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12554
12555 PR target/46898
12556 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12557
12558 2011-02-25 Jon Beniston <jon@beniston.com>
12559
12560 PR target/46898
12561 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12562 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12563 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12564 (lm32_block_move_inline): Add type cast to remove warning.
12565 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12566 (gen_int_relational): Move declarations to start of function.
12567
12568 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12569
12570 PR tree-optimization/45470
12571 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12572 can throw internally only.
12573 * tree-vect-stmts.c (vectorizable_call): Likewise.
12574
12575 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12576
12577 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12578 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12579 * config/stormy16/stormy16-protos.h
12580 (xstormy16_preferred_reload_class): Remove.
12581 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12582 static. Change 'rclass' argument and return type to reg_class_t.
12583 (TARGET_PREFERRED_RELOAD_CLASS,
12584 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12585
12586 2011-02-24 Richard Guenther <rguenther@suse.de>
12587
12588 * lto-streamer-in.c (input_bb): Do not find referenced vars
12589 in debug statements.
12590
12591 2011-02-23 Jason Merrill <jason@redhat.com>
12592
12593 * common.opt (fabi-version): Document v5 and v6.
12594
12595 2011-02-23 Richard Guenther <rguenther@suse.de>
12596
12597 PR tree-optimization/47849
12598 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12599
12600 2011-02-23 Jie Zhang <jie@codesourcery.com>
12601
12602 * opts-common.c (decode_cmdline_option): Print empty string
12603 argument as "" in decoded->orig_option_with_args_text.
12604 * gcc.c (execute): Print empty string argument as ""
12605 in the verbose output.
12606 (do_spec_1): Keep empty string argument.
12607
12608 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12609
12610 * config.gcc: Declare score-* and crx-* obsolete.
12611
12612 2011-02-23 Jie Zhang <jie@codesourcery.com>
12613
12614 PR rtl-optimization/47763
12615 * web.c (web_main): Ignore naked clobber when replacing register.
12616
12617 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12618
12619 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12620 Remove.
12621
12622 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12623
12624 PR doc/47848
12625 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12626
12627 2011-02-22 Mike Stump <mikestump@comcast.net>
12628
12629 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12630 assembler.
12631 * configure: Regenerate.
12632
12633 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12634
12635 PR rtl-optimization/46002
12636 * ira-color.c (update_copy_costs): Change class intersection
12637 test to reg_class_contents[] test of 'hard_regno'.
12638
12639 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12640
12641 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12642 than Driver option.
12643 * config/hpux11.opt (mt): Likewise.
12644 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12645 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12646 * config/vax/elf.opt (mno-asm-pic): Likewise.
12647 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12648
12649 2011-02-21 Mike Stump <mikestump@comcast.net>
12650
12651 PR target/47822
12652 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12653 tree so we can get save the type.
12654 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12655 for CFString instead of trying to use past the end of the builtins.
12656 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12657 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12658 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12659 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12660 Rename to darwin_builtin_cfstring.
12661 (darwin_init_cfstring_builtins): Return the built type.
12662
12663 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12664
12665 PR target/47840
12666 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12667 (_mm256_insert_epi64): Use _mm_insert_epi64.
12668
12669 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12670
12671 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12672 * config/stormy16/stormy16-protos.h
12673 (xstormy16_mode_dependent_address_p): Remove.
12674 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12675 Make static. Change return type to bool. Change argument type to
12676 const_rtx. Remove dead code.
12677 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12678
12679 2011-02-21 Richard Guenther <rguenther@suse.de>
12680
12681 PR lto/47820
12682 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12683 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12684 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12685 TUs context.
12686 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12687 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12688
12689 2011-02-20 Richard Guenther <rguenther@suse.de>
12690
12691 PR lto/47822
12692 * tree.c (free_lang_data_in_decl): Clean builtins from
12693 the TU decl BLOCK_VARS.
12694
12695 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12696
12697 PR debug/47620
12698 PR debug/47630
12699 * haifa-sched.c (fix_tick_ready): Skip tick computation
12700 for debug insns.
12701
12702 2011-02-19 Richard Guenther <rguenther@suse.de>
12703
12704 PR lto/47647
12705 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12706 Remove lazy BLOCK_VARS streaming.
12707 (lto_input_ts_block_tree_pointers): Likewise.
12708 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12709
12710 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12711
12712 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12713
12714 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12715
12716 * config/i386/biarch32.h, config/i386/mach.h,
12717 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12718
12719 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12720
12721 PR target/47800
12722 * config/i386/i386.md (peephole2 for shift and plus): Use
12723 operands[1] original mode in the first insn.
12724
12725 2011-02-18 Mike Stump <mikestump@comcast.net>
12726
12727 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12728
12729 2011-02-18 Jan Hubicka <jh@suse.cz>
12730
12731 PR middle-end/47788
12732 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12733 to zero when the function is not inlinable at all.
12734
12735 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12736
12737 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12738 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12739 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12740 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12741 * config/pa/t-pa64: Likewise.
12742 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12743
12744 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12745
12746 PR driver/47787
12747 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12748
12749 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12750
12751 PR target/47792
12752 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12753
12754 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12755
12756 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12757 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12758 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12759 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12760 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12761 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12762 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12763 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12764 m32r_legitimate_address_p): New functions.
12765 * config/m32r/constraints.md (constraint "S"): Don't use
12766 STORE_PREINC_PREDEC_P.
12767 (constraint "U"): Don't use LOAD_POSTINC_P.
12768
12769 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12770
12771 PR rtl-optimization/46178
12772 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12773 compute ira_hard_regno_cover_class[].
12774
12775 2011-02-18 Richard Guenther <rguenther@suse.de>
12776
12777 PR lto/47798
12778 * lto-streamer.h (lto_global_var_decls): Declare.
12779 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12780 statics for global var processing.
12781
12782 2011-02-18 Richard Guenther <rguenther@suse.de>
12783
12784 PR tree-optimization/47737
12785 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12786 edge dominance check.
12787
12788 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12789
12790 PR debug/47780
12791 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12792 avoid invalid rtx sharing.
12793
12794 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12795
12796 * doc/cpp.texi (Obsolete Features): Add background on the
12797 origin of assertions.
12798
12799 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12800
12801 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12802 objc_abi == 2.
12803 * config/darwin.c (output_objc_section_asm_op): Added support for
12804 ABI v1 and v2.
12805 (is_objc_metadata): New.
12806 (darwin_objc2_section): New.
12807 (darwin_objc1_section): New.
12808 (machopic_select_section): Added support for ABI v1 and v2.
12809 (darwin_emit_objc_zeroed): New.
12810 (darwin_output_aligned_bss): Detect objc metadata and treat it
12811 appropriately.
12812 (darwin_asm_output_aligned_decl_common): Same.
12813 (darwin_asm_output_aligned_decl_local): Same.
12814 * config/darwin-sections.def: Updated for ABI v1 and v2.
12815 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12816 compiling Objective-C code for the NeXT runtime, default to using
12817 ABI version 0 for 32-bit, and version 2 for 64-bit.
12818
12819 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12820
12821 * common.opt (optimize_fast): New Variable.
12822 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12823 instead of local variable ofast.
12824
12825 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12826
12827 * doc/invoke.texi (fobjc-abi-version): Documented.
12828 (fobjc-nilcheck): Documented.
12829 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12830 version.
12831
12832 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12833
12834 PR driver/47390
12835 * common.opt (export-dynamic): New Driver option.
12836 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12837
12838 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12839
12840 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12841
12842 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12843 Jan Hubicka <jh@suse.cz>
12844
12845 PR debug/47106
12846 PR debug/47402
12847 * cfgexpand.c (account_used_vars_for_block): Remove.
12848 (estimated_stack_frame_size): Use referenced vars.
12849 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12850 that were referenced in the original function. Test src_fn
12851 rather than cfun. Drop redundant get_var_ann.
12852 (setup_one_parameter): Drop redundant get_var_ann.
12853 (declare_return_variable): Likewise.
12854 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12855 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12856 * ipa-inline.c (compute_inline_parameters): Do not compute
12857 disregard_inline_limits here.
12858 (compute_inlinable_for_current, pass_inlinable): New.
12859 (pass_inline_parameters): Require PROP_referenced_vars.
12860 * cgraphunit.c (cgraph_process_new_functions): Don't run
12861 compute_inline_parameters explicitly unless function is in SSA form.
12862 (cgraph_analyze_function): Set .disregard_inline_limits.
12863 * tree-sra.c (convert_callers): Compute inliner parameters
12864 only for functions already in SSA form.
12865
12866 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12867
12868 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12869 -mlittle-endian-data.
12870
12871 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12872
12873 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12874 -mno-fpu, not -fpu and -no-fpu.
12875 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12876 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12877
12878 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12879
12880 PR target/43653
12881 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12882 input reload with PLUS RTX.
12883
12884 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12885
12886 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12887 of InverseVar(MDMX).
12888
12889 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12890
12891 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12892 --m4-340.
12893
12894 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12895
12896 * config/mn10300/mn10300.opt (mno-crt0): New.
12897
12898 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12899
12900 * config/m68k/uclinux.opt (static-libc): New Driver option.
12901
12902 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12903
12904 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12905
12906 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12907
12908 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12909 %{muser-extend-enabled}.
12910
12911 2011-02-16 Richard Guenther <rguenther@suse.de>
12912
12913 PR tree-optimization/47738
12914 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12915 the TODO from tree_predictive_commoning.
12916
12917 2011-02-15 Jeff Law <law@redhat.com>
12918
12919 Revert
12920 2011-01-25 Jeff Law <law@redhat.com>
12921
12922 PR rtl-optimization/37273
12923 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12924 handle them like argument loads from stack slots. Do not double
12925 count memory for memory constants and argument loads from stack slots.
12926
12927 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12928
12929 PR middle-end/47725
12930 * combine.c (cant_combine_insn_p): Revert the last change.
12931
12932 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12933
12934 PR target/47755
12935 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12936 mode for vector constants. Remove code that checks for TImode.
12937
12938 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12939
12940 PR debug/47106
12941 PR debug/47402
12942 * cgraph.h (compute_inline_parameters): Return void.
12943 * ipa-inline.c (compute_inline_parameters): Adjust.
12944
12945 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12946
12947 PR debug/47106
12948 PR debug/47402
12949 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12950 rather than decl.
12951 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12952 * ipa-inline.c (compute_inline_parameters): Adjust.
12953
12954 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12955
12956 PR debug/47106
12957 PR debug/47402
12958 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12959 Adjust all users. Pass FN to...
12960 * tree-flow-inline.h (first_referenced_var): ... this. Add
12961 fn argument.
12962 * ipa-struct-reorg.c: Adjust.
12963 * tree-dfa.c: Adjust.
12964 * tree-into-ssa.c: Adjust.
12965 * tree-sra.c: Adjust.
12966 * tree-ssa-alias.c: Adjust.
12967 * tree-ssa-live.c: Adjust.
12968 * tree-ssa.c: Adjust.
12969 * tree-ssanames.c: Adjust.
12970 * tree-tailcall.c: Adjust.
12971
12972 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12973
12974 PR debug/47106
12975 PR debug/47402
12976 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12977 Adjust all callers.
12978 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12979 * tree-flow-inline.h: Adjust.
12980 * gimple-pretty-print.c: Adjust.
12981 * tree-into-ssa.c: Adjust.
12982 * tree-ssa.c: Adjust.
12983 * cfgexpand.c: Adjust.
12984
12985 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12986
12987 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12988 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12989 (EXTRA_CONSTRAINT): Delete.
12990 * config/iq2000/constraints.md: New file.
12991 * config/iq2000/iq2000.md: Include it.
12992 (define_insn ""): Delete.
12993 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12994 unsupported constraint letters from patterns.
12995 (call_value, call_value_internal1): Likewise.
12996 (call_value_multiple_internal1): Likewise.
12997
12998 2011-02-15 Nick Clifton <nickc@redhat.com>
12999
13000 * config/mn10300/mn10300.c: Include tm-constrs.h.
13001 (struct liw_data): New data structure describing an LIW candidate
13002 instruction.
13003 (extract_bundle): Use struct liw_data. Allow small integer
13004 operands for some instructions.
13005 (check_liw_constraints): Use struct liw_data. Remove swapped
13006 parameter. Add comments describing the checks. Fix bug when
13007 assigning the source of liw1 to the source of liw2.
13008 (liw_candidate): Delete. Code moved into extract_bundle.
13009 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13010 before swapping.
13011 * config/mn10300/predicates.md (liw_operand): New predicate.
13012 Allows registers and small integer constants.
13013 * config/mn10300/constraints.md (O): New constraint. Accetps
13014 integers in the range -8 to +7 inclusive.
13015 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13016 for moving a small integer into a register. Give this alternative
13017 LIW attributes.
13018 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13019 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13020 using the J,K,L and M constraints,
13021 (liw): Remove SI mode on second operands to allow for HI and QI
13022 mode values.
13023 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13024 instruction.
13025
13026 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13027
13028 PR middle-end/47725
13029 * combine.c (cant_combine_insn_p): Check zero/sign extended
13030 hard registers.
13031
13032 2011-02-15 Richard Guenther <rguenther@suse.de>
13033
13034 PR tree-optimization/47743
13035 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13036 for a non-type-compatible VN lookup bail out.
13037
13038 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13039
13040 * config/fr30/constraints.md: New file.
13041 * config/fr30/fr30.md: Include it.
13042 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13043 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13044 (EXTRA_CONSTRAINT): Delete.
13045
13046 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13047
13048 * config/frv/constraints.md: New file.
13049 * config/frv/predicates.md: Include it.
13050 * config/frv/frv.c (reg_class_from_letter): Delete.
13051 (frv_option_override): Don't initialize it.
13052 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13053 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13054 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13055 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13056 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13057 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13058 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13059 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13060 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13061 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13062 (REG_CLASS_FROM_CONSTRAINT): Delete.
13063
13064 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13065
13066 PR middle-end/47581
13067 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13068 if frame size is 0 in a leaf function.
13069
13070 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13071
13072 PR pch/14940
13073 * config/alpha/host-osf.c: New file.
13074 * config/alpha/x-osf: New file.
13075 * config.host (alpha*-dec-osf*): Use it.
13076
13077 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13078
13079 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13080 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13081 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13082 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13083 type to const_rtx.
13084 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13085
13086 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13087
13088 * config/stormy16/constraints.md: New file.
13089 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13090 Use satisfies_constraint_Q and satisfies_constraint_R.
13091 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13092 Delete.
13093 (xstormy16_legitiamte_address_p): Declare.
13094 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13095 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13096 (EXTRA_CONSTRAINT): Delete.
13097 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13098 Un-staticize.
13099 (xstormy16_extra_constraint_p): Delete.
13100
13101 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13102
13103 PR tree-optimization/46494
13104 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13105 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13106 (pass_rtl_loop_done): Add TODO_verify_flow.
13107 * fwprop.c (pass_rtl_fwprop): Likewise.
13108 * modulo-sched.c (pass_sms): Likewise.
13109 * tree-ssa-dom.c (pass_dominator): Likewise.
13110 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13111 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13112 (pass_tree_loop_done): Likewise.
13113 * tree-ssa-pre.c (execute_pre): Likewise.
13114 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13115 * tree-ssa-sink.c (pass_sink_code): Likewise.
13116 * tree-vrp.c (pass_vrp): Likewise.
13117
13118 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13119
13120 * config/v850/constraints.md: New file.
13121 * config/v850/v850.md: Include it.
13122 * config/v850/predicates.md (reg_or_0_operand): Use
13123 satisfies_constraint_G.
13124 (special_symbolref_operand): Use satisfies_constraint_K.
13125 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13126 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13127 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13128 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13129 (EXTRA_CONSTRAINT): Delete.
13130 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13131 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13132 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13133
13134 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13135
13136 PR target/47696
13137 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13138 description.
13139
13140 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13141
13142 * config/mcore/constraints.md: New file.
13143 * config/mcore/mcore.md: Include it.
13144 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13145 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13146 (REG_CLASS_FROM_LETTER): Delete.
13147 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13148 insn_const_int_ok_for_constraint.
13149 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13150 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13151 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13152 (EXTRA_CONSTRAINT): Delete.
13153
13154 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13155
13156 PR ada/41929
13157 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13158 (IS_SIGHANDLER): Define.
13159 (sparc64_is_sighandler): New function, split off from
13160 sparc64_fallback_frame_state.
13161 (sparc_is_sighandler): New function, split off from
13162 sparc_fallback_frame_state.
13163 (sparc64_fallback_frame_state): Merge with ...
13164 (sparc_fallback_frame_state): ... this into ...
13165 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13166 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13167 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13168 stack instead of hardcoded offsets.
13169
13170 2011-02-14 Andriy Gapon <avg@freebsd.org>
13171
13172 PR target/45808
13173 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13174
13175 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13176
13177 * configure: Regenerate.
13178
13179 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13180
13181 PR driver/45731
13182 * gcc.c (asm_options): Correct spec matching --target-help.
13183
13184 2011-02-12 Martin Jambor <mjambor@suse.cz>
13185
13186 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13187 to gimple call error.
13188
13189 2011-02-12 Mike Stump <mikestump@comcast.net>
13190
13191 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13192 comments in backslash regions.
13193
13194 2011-02-12 Mike Stump <mikestump@comcast.net>
13195 Jakub Jelinek <jakub@redhat.com>
13196 Iain Sandoe <iains@gcc.gnu.org>
13197
13198 PR target/47324
13199 * dwarf2out.c (output_cfa_loc): When required, apply the
13200 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13201 (output_loc_sequence): Likewise.
13202 (output_loc_operands_raw): Likewise.
13203 (output_loc_sequence_raw): Likewise.
13204 (output_cfa_loc): Likewise.
13205 (output_loc_list): Suppress register number adjustment when
13206 calling output_loc_sequence()
13207 (output_die): Likewise.
13208
13209 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13210
13211 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13212 Remove macros.
13213 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13214 xtensa_memory_move_cost): New functions.
13215 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13216
13217 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13218
13219 PR lto/47225
13220 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13221 in the current directory.
13222 * configure: Rebuilt.
13223
13224 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13225
13226 * config/darwin.c (darwin_override_options): Add a hunk missed
13227 from the commit of r168571. Trim comment line lengths and
13228 correct indents of the preceding block.
13229
13230 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13231
13232 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13233 the switch.
13234
13235 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13236
13237 * common.opt (nostartfiles): New Driver option.
13238
13239 2011-02-11 Xinliang David Li <davidxl@google.com>
13240
13241 PR tree-optimization/47707
13242 * tree-chrec.c (convert_affine_scev): Keep type precision.
13243
13244 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13245
13246 PR tree-optimization/47420
13247 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13248
13249 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13250
13251 PR rtl-optimization/47614
13252 * rtl.h (check_for_inc_dec): Declare.
13253 * dse.c (check_for_inc_dec): Externalize...
13254 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13255 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13256
13257 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13258
13259 PR driver/47678
13260 * gcc.c (main): Do not compile inputs if there were errors in
13261 option handling.
13262 * opts-common.c (read_cmdline_option): Check for wrong language
13263 after other error checks.
13264
13265 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13266
13267 * cgraph.c: Fix comment typos.
13268 * cgraph.h: Likewise.
13269 * cgraphunit.c: Likewise.
13270 * ipa-cp.c: Likewise.
13271 * ipa-inline.c: Likewise.
13272 * ipa-prop.c: Likewise.
13273 * ipa-pure-const.c: Likewise.
13274 * ipa-ref.c: Likewise.
13275 * ipa-reference.c: Likewise.
13276
13277 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13278
13279 PR debug/47684
13280 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13281
13282 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13283
13284 PR testsuite/47400
13285 * doc/sourcebuild.texi (Require Support): Document
13286 dg-require-ascii-locale.
13287
13288 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13289
13290 * doc/lto.texi (Write summary): Fix missing parentheses.
13291
13292 2011-02-10 DJ Delorie <dj@redhat.com>
13293
13294 * config/m32c/m32c.c (m32c_option_override): Disable
13295 -fcombine-stack-adjustments until flag value tracking and compare
13296 optimization can be rewritten.
13297
13298 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13299
13300 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13301 PROCESSOR_POWER7.
13302 (PROCESSOR_DEFAULT64): Likewise.
13303
13304 2011-02-10 Richard Henderson <rth@redhat.com>
13305
13306 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13307 change from 2011-02-03.
13308 * config/rx/rx.c (flags_from_code): Likewise.
13309 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13310 is valid, n/pz otherwise.
13311 (rx_select_cc_mode): Return CCmode if Y is not zero.
13312
13313 2011-02-10 Richard Guenther <rguenther@suse.de>
13314
13315 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13316
13317 2011-02-10 Richard Guenther <rguenther@suse.de>
13318
13319 PR tree-optimization/47677
13320 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13321
13322 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13323
13324 PR target/47665
13325 * combine.c (make_compound_operation): Only change shifts into
13326 multiplication for SCALAR_INT_MODE_P.
13327
13328 2011-02-10 Jie Zhang <jie@codesourcery.com>
13329
13330 PR testsuite/47622
13331 Revert
13332 2011-02-05 Jie Zhang <jie@codesourcery.com>
13333 PR debug/42631
13334 * web.c (entry_register): Don't clobber the number of the
13335 first uninitialized reference in used[].
13336
13337 2011-02-09 Richard Guenther <rguenther@suse.de>
13338
13339 PR tree-optimization/47664
13340 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13341 all edges again.
13342
13343 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13344
13345 PR target/46481
13346 PR target/47032
13347 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13348 PROCESSOR_POWER7.
13349 (PROCESSOR_DEFAULT64): Same.
13350 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13351
13352 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13353
13354 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13355
13356 2011-02-09 Martin Jambor <mjambor@suse.cz>
13357
13358 PR middle-end/45505
13359 * tree-sra.c (struct access): New flags grp_scalar_read and
13360 grp_scalar_write. Changed description of assignment read and write
13361 flags.
13362 (dump_access): Dump new flags, reorder all of them.
13363 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13364 to detect multiple scalar reads.
13365 (analyze_access_subtree): Use the new scalar read write flags instead
13366 of the old flags. Adjusted comments.
13367
13368 2011-02-08 DJ Delorie <dj@redhat.com>
13369
13370 PR target/47548
13371 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13372 patterns.
13373
13374 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13375
13376 * config/m68k/uclinux.opt: New.
13377 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13378
13379 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13380
13381 * config/cris/elf.opt (sim): New Driver option.
13382
13383 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13384
13385 * config/xtensa/elf.opt: New.
13386 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13387
13388 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13389
13390 * config/vax/elf.opt: New.
13391 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13392
13393 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13394
13395 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13396
13397 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13398
13399 * config/gnu-user.opt: New.
13400 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13401 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13402 *-*-uclinux*): Use gnu-user.opt.
13403
13404 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13405
13406 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13407 * config/i386/gnu.h (CPP_SPEC): Likewise.
13408
13409 2011-02-08 Ian Lance Taylor <iant@google.com>
13410
13411 * common.opt (fcx-limited-range): Add SetByCombined flag.
13412 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13413 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13414 (fassociative-math, freciprocal-math): Likewise.
13415 (funsafe-math-optimizations): Likewise.
13416 * opth-gen.awk: Handle SetByCombined.
13417 * optc-gen.awk: Likewise.
13418 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13419 (set_unsafe_math_optimizations_flags): Likewise.
13420 * doc/options.texi (Option properties): Document SetByCombined.
13421
13422 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13423
13424 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13425 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13426 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13427 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13428 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13429
13430 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13431
13432 PR tree-optimization/46834
13433 PR tree-optimization/46994
13434 PR tree-optimization/46995
13435 * graphite-sese-to-poly.c (used_outside_reduction): New.
13436 (detect_commutative_reduction): Call used_outside_reduction.
13437 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13438 translate_scalar_reduction_to_array only when at least one
13439 loop-phi/close-phi tuple has been detected.
13440
13441 2011-02-08 Richard Guenther <rguenther@suse.de>
13442
13443 PR middle-end/47639
13444 * tree-vect-generic.c (expand_vector_operations_1): Update
13445 stmts here ...
13446 (expand_vector_operations): ... not here. Cleanup EH info
13447 and the CFG if required.
13448
13449 2011-02-08 Richard Guenther <rguenther@suse.de>
13450
13451 PR tree-optimization/47641
13452 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13453 require type compatibility.
13454
13455 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13456
13457 * gimple-low.c (lower_function_body): Don't remove the location of
13458 the return statement here.
13459 (lower_gimple_return): Do it here instead but only if the return
13460 statement is actually used twice.
13461
13462 2011-02-08 Richard Guenther <rguenther@suse.de>
13463
13464 PR tree-optimization/47632
13465 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13466 unused up_to_stmt parameter, return whether cfg-cleanup is
13467 necessary, remove EH info properly.
13468 (forward_propagate_into_gimple_cond): Adjust caller.
13469 (forward_propagate_into_cond): Likewise.
13470 (forward_propagate_comparison): Likewise.
13471 (tree_ssa_forward_propagate_single_use_vars): Make
13472 forward_propagate_comparison case similar to the two others.
13473
13474 2011-02-08 Nick Clifton <nickc@redhat.com>
13475
13476 * config/mn10300/mn10300.opt (mliw): New command line option.
13477 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13478 (liw_bundling): New automaton.
13479 (liw): New attribute.
13480 (liw_op): New attribute.
13481 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13482 (movsi_internal): Add LIW attributes.
13483 (andsi3): Likewise.
13484 (iorsi3): Likewise.
13485 (xorsi3): Likewise.
13486 (addsi3): Separate register and immediate alternatives.
13487 Add LIW attributes.
13488 (subsi3): Likewise.
13489 (cmpsi): Likewise.
13490 (aslsi3): Likewise.
13491 (lshrsi3): Likewise.
13492 (ashrsi3): Likewise.
13493 (liw): New pattern.
13494 * config/mn10300/mn10300.c (liw_op_names): New
13495 (mn10300_print_operand): Handle 'W' operand descriptor.
13496 (extract_bundle): New function.
13497 (check_liw_constraints): New function.
13498 (liw_candidate): New function.
13499 (mn10300_bundle_liw): New function.
13500 (mn10300_reorg): New function.
13501 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13502 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13503 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13504 __LIW__ or __NO_LIW__.
13505 * doc/invoke.texi: Describe the -mliw command line option.
13506
13507 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13508
13509 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13510 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13511 pthread_mutex_unlock): Remove.
13512 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13513 * config/pa/t-pa64: Likewise.
13514 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13515 shared libc if not linking against libpthread.
13516 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13517
13518 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13519
13520 PR target/47558
13521 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13522 on 10.6 and later to ensure that we always use the unwinder from
13523 the system. Only add -no_compact_unwind when tarteting darwin
13524 10.6 or later.
13525
13526 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13527
13528 PR target/46997
13529 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13530 (vec_interleave_lowv2sf): Ditto.
13531 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13532 (vec_extract_oddv2sf): Ditto.
13533
13534 2011-02-07 Mike Stump <mikestump@comcast.net>
13535
13536 PR target/42333
13537 Add __ieee_divdc3 entry point.
13538 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13539 entry point.
13540 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13541 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13542 * config/darwin.c (darwin_rename_builtins): Add.
13543 * config/darwin-protos.h (darwin_rename_builtins): Add.
13544
13545 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13546
13547 PR target/47636
13548 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13549 for the condition.
13550
13551 2011-02-07 Mike Stump <mikestump@comcast.net>
13552
13553 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13554
13555 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13556
13557 PR target/47534
13558 * config/avr/libgcc.S (exit): Move .endfunc
13559
13560 2011-02-07 Richard Guenther <rguenther@suse.de>
13561
13562 PR tree-optimization/47615
13563 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13564 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13565 (run_scc_vn): Initialize it.
13566 (visit_reference_op_load): Use it.
13567 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13568
13569 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13570
13571 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13572 DImode trapping arithmetic libfuncs.
13573
13574 2011-02-07 Richard Guenther <rguenther@suse.de>
13575
13576 PR tree-optimization/47621
13577 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13578 two duplicates ...
13579 (execute_update_addresses_taken): ... here. Make it more
13580 conservative in what we accept.
13581
13582 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13583
13584 * config/sparc/freebsd.h (ASM_SPEC): Define.
13585 * config/sparc/vxworks.h (ASM_SPEC): Define.
13586
13587 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13588
13589 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13590
13591 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13592
13593 * doc/invoke.texi: Remove reference to compiler internals from
13594 user documentation.
13595
13596 * reg-notes.def: Remove REG_VALUE_PROFILE.
13597 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13598
13599 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13600
13601 PR middle-end/47610
13602 * varasm.c (default_section_type_flags): If decl is NULL,
13603 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13604
13605 2011-02-05 Jie Zhang <jie@codesourcery.com>
13606
13607 PR debug/42631
13608 * web.c (entry_register): Don't clobber the number of the
13609 first uninitialized reference in used[].
13610
13611 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13612
13613 PR tree-optimization/46194
13614 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13615 (build_classic_dist_vector_1): Do not represent classic distance
13616 vectors when the access functions are variating in different loops.
13617
13618 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13619
13620 * config/mips/iris6.opt: New.
13621 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13622
13623 2011-02-04 Richard Henderson <rth@redhat.com>
13624 Steve Ellcey <sje@cup.hp.com>
13625
13626 PR target/46997
13627 * config/ia64/predicates.md (mux1_brcst_element): New.
13628 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13629 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13630 (ia64_unpack_sign): New.
13631 (ia64_expand_unpack): Rewrite using new routines.
13632 (ia64_expand_widen_sum): Ditto.
13633 (ia64_expand_dot_prod_v8qi): Ditto.
13634 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13635 routines, add endian check.
13636 (pmpy2_even): Rename from pmpy2_r, add endian check.
13637 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13638 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13639 (vec_widen_smult_hi_v4hi): Ditto.
13640 (vec_widen_umult_lo_v4hi): Ditto.
13641 (vec_widen_umult_hi_v4hi): Ditto.
13642 (mulv2si3): Change endian checks.
13643 (sdot_prodv4hi): Rewrite with new calls.
13644 (udot_prodv4hi): New.
13645 (vec_pack_ssat_v4hi): Add endian check.
13646 (vec_pack_usat_v4hi): Ditto.
13647 (vec_pack_ssat_v2si): Ditto.
13648 (max1_even): Rename from max1_r, add endian check.
13649 (max1_odd): Rename from max1_l, add endian check.
13650 (*mux1_rev): Format change.
13651 (*mux1_mix): Ditto.
13652 (*mux1_shuf): Ditto.
13653 (*mux1_alt): Ditto.
13654 (*mux1_brcst_v8qi): Use new predicate.
13655 (vec_extract_evenv8qi): Remove endian check.
13656 (vec_extract_oddv8qi): Ditto.
13657 (vec_interleave_lowv4hi): Format change.
13658 (vec_interleave_highv4hi): Ditto.
13659 (mix2_even): Rename from mix2_r, add endian check.
13660 (mix2_odd): Rename from mux2_l, add endian check.
13661 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13662 (vec_extract_evenodd_helper): Format change.
13663 (vec_extract_evenv4hi): Remove endian check.
13664 (vec_extract_oddv4hi): Remove endian check.
13665 (vec_interleave_lowv2si): Format change.
13666 (vec_interleave_highv2si): Format change.
13667 (vec_initv2si): Remove endian check.
13668 (vecinit_v2si): Add endian check.
13669 (reduc_splus_v2sf): Add endian check.
13670 (reduc_smax_v2sf): Ditto.
13671 (reduc_smin_v2sf): Ditto.
13672 (vec_initv2sf): Remove endian check.
13673 (fpack): Add endian check.
13674 (fswap): Add endian check.
13675 (vec_interleave_highv2sf): Add endian check.
13676 (vec_interleave_lowv2sf): Add endian check.
13677 (fmix_lr): Add endian check.
13678 (vec_setv2sf): Format change.
13679 (*vec_extractv2sf_0_be): Use shift to extract operand.
13680 (*vec_extractv2sf_1_be): New.
13681 (vec_pack_trunc_v4hi): Add endian check.
13682 (vec_pack_trunc_v2si): Format change.
13683
13684 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13685
13686 PR inline-asm/23200
13687 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13688 do bb, locus and block comparison and disallow loads if it is not set.
13689 (stmt_is_replaceable_p): New function.
13690 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13691 callers.
13692 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13693 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13694 SSA_NAME_DEF_STMT.
13695 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13696
13697 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13698
13699 * config/rs6000/xilinx.opt: New.
13700 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13701
13702 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13703
13704 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13705
13706 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13707
13708 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13709 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13710 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13711 secondary_reload_info, xtensa_secondary_reload): Remove.
13712 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13713 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13714 (xtensa_preferred_reload_class): Make static. Change return and
13715 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13716 Use CONST_DOUBLE_P predicate.
13717 (xtensa_preferred_output_reload_class): New function.
13718 (xtensa_secondary_reload): Make static.
13719
13720 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13721
13722 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13723 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13724 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13725
13726 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13727
13728 PR middle-end/31490
13729 * output.h (SECTION_RELRO): Define.
13730 (SECTION_MACH_DEP): Adjust.
13731 (get_variable_section): New prototype.
13732 * varpool.c (varpool_finalize_named_section_flags): New function.
13733 (varpool_assemble_pending_decls): Call it.
13734 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13735 * cgraphunit.c (cgraph_output_in_order): Call
13736 varpool_finalize_named_section_flags.
13737 * varasm.c (get_section): Allow section flags conflicts between
13738 relro and read-only sections if the section hasn't been declared yet.
13739 Set SECTION_OVERRIDE after diagnosing section type conflict.
13740 (get_variable_section): No longer static.
13741 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13742 readonly sections that need relocations.
13743 (decl_readonly_section_1): New function.
13744 (decl_readonly_section): Use it.
13745
13746 Revert:
13747 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13748 Steve Ellcey <sje@cup.hp.com>
13749
13750 PR middle-end/31490
13751 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13752 if section attribute used.
13753
13754 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13755
13756 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13757 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13758 (darwin_init_sections): Remove assertion.
13759
13760 2011-02-03 Nick Clifton <nickc@redhat.com>
13761
13762 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13763 lt and ge.
13764 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13765 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13766 instead of "n" and "pz".
13767 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13768 CC_FLAG_S.
13769
13770 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13771
13772 PR target/47312
13773 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13774 fma, expand FMA_EXPR as fma{,f,l} call.
13775
13776 PR lto/47274
13777 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13778 copy them into a unsigned char variable and pass address of it to
13779 lto_output_data_stream.
13780
13781 PR target/47564
13782 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13783 around backend_init_target and lang_dependent_init_target calls.
13784 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13785 (verify_cgraph_node): Don't call set_cfun here. Use
13786 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13787 Set error_found for incorrectly represented calls to thunks.
13788
13789 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13790
13791 PR debug/43092
13792 PR rtl-optimization/43494
13793 * rtl.h (for_each_inc_dec_fn): New type.
13794 (for_each_inc_dec): Declare.
13795 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13796 (for_each_inc_dec_find_inc_dec): New fn.
13797 (for_each_inc_dec_find_mem): New fn.
13798 (for_each_inc_dec): New fn.
13799 * dse.c (struct insn_size): Remove.
13800 (replace_inc_dec, replace_inc_dec_mem): Remove.
13801 (emit_inc_dec_insn_before): New fn.
13802 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13803 (canon_address): Pass mem modes to cselib_lookup.
13804 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13805 (cselib_lookup_from_insn): Likewise.
13806 (cselib_subst_to_values): Likewise.
13807 * cselib.c (find_slot_memmode): New var.
13808 (cselib_find_slot): New fn. Use it instead of
13809 htab_find_slot_with_hash everywhere.
13810 (entry_and_rtx_equal_p): Use find_slot_memmode.
13811 (autoinc_split): New fn.
13812 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13813 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13814 Deal with autoinc. Special-case recursion into MEMs.
13815 (cselib_hash_rtx): Likewise.
13816 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13817 address and MEM modes.
13818 (cselib_subst_to_values): Add memmode, pass it on.
13819 Deal with autoinc.
13820 (cselib_lookup): Add memmode argument, pass it on.
13821 (cselib_lookup_from_insn): Add memmode.
13822 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13823 (struct cselib_record_autoinc_data): New.
13824 (cselib_record_autoinc_cb): New fn.
13825 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13826 mode to cselib_lookup. Reset autoinced REGs here instead of...
13827 (cselib_process_insn): ... here.
13828 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13829 to cselib_lookup.
13830 (add_uses): Likewise, also to cselib_subst_to_values.
13831 (add_stores): Likewise.
13832 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13833 cselib_subst_to_values.
13834 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13835 * gcse.c (do_local_cprop): Adjusted.
13836 * postreload.c (reload_cse_simplify_set): Adjusted.
13837 (reload_cse_simplify_operands): Adjusted.
13838 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13839
13840 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13841
13842 PR tree-optimization/45122
13843 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13844 unsafe assumptions when there's more than one loop exit.
13845
13846 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13847
13848 PR target/47272
13849 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13850 Document using vector double with the load/store builtins, and
13851 that the load/store builtins always use Altivec instructions.
13852
13853 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13854 to use altivec memory instructions, even on VSX.
13855 (vector_altivec_store_<mode>): Ditto.
13856
13857 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13858 function.
13859
13860 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13861 V2DF, V2DI support to load/store overloaded builtins.
13862
13863 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13864 altivec load/store builtins for V2DF/V2DI types.
13865
13866 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13867 set avoid indexed addresses on power6 if -maltivec.
13868 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13869 vector_altivec_load/vector_altivec_store builtins.
13870 (altivec_expand_st_builtin): Ditto.
13871 (altivec_expand_builtin): Add VSX memory builtins.
13872 (rs6000_init_builtins): Add V2DI types to internal types.
13873 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13874 load/store builtins.
13875 (rs6000_address_for_altivec): Insure memory address is appropriate
13876 for Altivec.
13877
13878 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13879 vec_vsx_ld and vec_vsx_st.
13880 (vsx_store_<mode>): Ditto.
13881
13882 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13883 variables to hold long long types for VSX vector memory builtins.
13884 (RS6000_BTI_unsigned_long_long): Ditto.
13885 (long_long_integer_type_internal_node): Ditti.
13886 (long_long_unsigned_type_internal_node): Ditti.
13887
13888 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13889 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13890 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13891
13892 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13893 short cuts.
13894 (vec_vsx_st): Ditto.
13895
13896 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13897
13898 * config/pa/pa-hpux10.opt: New.
13899 * config/hpux11.opt (pthread): New Driver option.
13900 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13901 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13902
13903 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13904
13905 * config/ia64/vms.opt: New.
13906 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13907
13908 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13909
13910 PR target/47580
13911 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13912 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13913 generator functions.
13914 (vsx_floatuns<VSi><mode>2): Ditto.
13915 (vsx_fix_trunc<mode><VSi>2): Ditto.
13916 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13917
13918 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13919
13920 * config/i386/djgpp.opt (posix): New Driver option.
13921
13922 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13923
13924 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13925 Move to the unsupported targets list.
13926
13927 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13928
13929 PR rtl-optimization/47525
13930 * df-scan.c: Update copyright years.
13931 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13932 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13933
13934 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13935
13936 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13937 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13938 (ASM_OUTPUT_ASCII): Remove.
13939 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13940
13941 2011-02-02 Jeff Law <law@redhat.com>
13942
13943 PR middle-end/47543
13944 * reload.c (find_reloads_address): Handle reg+d address where both
13945 components are invalid by reloading the entire address.
13946
13947 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13948 Richard Guenther <rguenther@suse.de>
13949
13950 PR tree-optimization/40979
13951 PR bootstrap/47044
13952 * passes.c (init_optimization_passes): After LIM call copy_prop
13953 and DCE to clean up.
13954 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13955
13956 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13957
13958 PR tree-optimization/47576
13959 PR tree-optimization/47555
13960 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13961 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13962 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13963 * tree-scalar-evolution.c (follow_ssa_edge): Use
13964 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13965
13966 2011-02-02 Richard Guenther <rguenther@suse.de>
13967
13968 PR tree-optimization/47566
13969 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13970
13971 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13972
13973 PR debug/47106
13974 PR debug/47402
13975 * tree-inline.c (declare_return_variable): Remove unused caller
13976 variable.
13977
13978 PR debug/47106
13979 PR debug/47402
13980 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13981 * cfgexpand.c (account_used_vars_for_block): Use them.
13982 * tree-nrv.c (tree_nrv): Likewise.
13983 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13984 (dump_scope_block): Likewise.
13985 (remove_unused_locals): Likewise.
13986
13987 PR debug/47106
13988 PR debug/47402
13989 * tree-inline.c (declare_return_variable): Add result decl to
13990 local decls only once.
13991 * gimple-low.c (record_vars_into): Mark newly-created variables
13992 as referenced.
13993
13994 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13995
13996 PR debug/47498
13997 PR debug/47501
13998 PR debug/45136
13999 PR debug/45130
14000 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14001 debug insns.
14002 (no_real_insns_p, schedule_block, set_priorities): Drop special
14003 treatment of boundary debug insns.
14004 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14005 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14006 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14007 (BOUNDARY_DEBUG_INSN_P): Likewise.
14008 (SCHEDULE_DEBUG_INSN_P): Likewise.
14009 * sched-rgn.c (init_ready_list): Drop special treatment of
14010 boundary debug insns.
14011 * final.c (rest_of_clean_state): Clear notes' BB.
14012
14013 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14014
14015 * config/openbsd.opt (assert=): New Driver option.
14016
14017 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14018
14019 * config/i386/nto.opt: New.
14020 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14021
14022 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14023
14024 * config/i386/netware.opt: New.
14025 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14026
14027 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14028
14029 * config/interix.opt (posix): New Driver option.
14030
14031 2011-02-01 DJ Delorie <dj@redhat.com>
14032
14033 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14034
14035 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14036 class for A0/A1.
14037
14038 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14039
14040 PR tree-optimization/47561
14041 * toplev.c (process_options): Print the Graphite flags. Add
14042 flag_loop_flatten to the list of options requiring Graphite.
14043
14044 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14045
14046 * config/i386/cygming.opt (posix): New Driver option.
14047
14048 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14049
14050 * config/arm/vxworks.opt: New.
14051 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14052
14053 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14054
14055 * config/alpha/elf.opt: New.
14056 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14057 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14058
14059 2011-02-01 Richard Guenther <rguenther@suse.de>
14060
14061 PR tree-optimization/47559
14062 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14063 store-motion on references that can throw.
14064
14065 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14066
14067 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14068 * tree-pass.h (TDF_CSELIB): New macro.
14069 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14070 cselib_lookup): Check for it rather than for TDF_DETAILS.
14071
14072 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14073
14074 PR driver/47547
14075 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14076 is HOST_BIT_BUCKET.
14077
14078 * opts.c (finish_options): Don't add x_aux_base_name if it is
14079 HOST_BIT_BUCKET.
14080
14081 2011-02-01 Richard Guenther <rguenther@suse.de>
14082
14083 PR tree-optimization/47555
14084 Revert
14085 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14086
14087 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14088
14089 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14090
14091 PR gcc/46692
14092 * config/lm32/t-lm32: Add multilib for all CPU options.
14093
14094 2011-02-01 Richard Guenther <rguenther@suse.de>
14095
14096 PR tree-optimization/47541
14097 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14098 sure to have a field at offset zero.
14099
14100 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14101
14102 * config/arc/arc.opt (EB, EL): New Driver options.
14103
14104 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14105
14106 * config/alpha/osf5.opt: New.
14107 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14108
14109 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14110
14111 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14112
14113 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14114
14115 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14116 -floop-interchange.
14117 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14118 is an alias of -floop-interchange and that it requires the
14119 Graphite infrastructure.
14120 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14121 flag_loop_interchange based on the value of flag_tree_loop_linear.
14122
14123 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14124 Richard Guenther <rguenther@suse.de>
14125
14126 PR tree-optimization/47538
14127 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14128 type instead of r1type, except for comparisons. For right
14129 shifts and comparisons punt if there are mismatches in
14130 sizetype vs. non-sizetype types.
14131
14132 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14133
14134 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14135 avx_runtime.
14136
14137 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14138
14139 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14140 version number.
14141 * configure: Regenerate.
14142
14143 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14144
14145 * configure.ac (gcc_cv_ld_static_option): Define.
14146 (gcc_cv_ld_dynamic_option): Define.
14147 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14148 instead.
14149 (HAVE_LD_STATIC_DYNAMIC): Update message.
14150 (LD_STATIC_OPTION): Define.
14151 (LD_DYNAMIC_OPTION): Define.
14152 * configure: Regenerate.
14153 * config.in: Regenerate.
14154 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14155 HAVE_LD_STATIC_DYNAMIC]: Use them.
14156
14157 2011-01-31 Nick Clifton <nickc@redhat.com>
14158
14159 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14160 registers inside interrupt handlers if the handler is not a leaf
14161 function.
14162
14163 2011-01-31 Nick Clifton <nickc@redhat.com>
14164
14165 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14166 reg_renumber returning an INVALID_REGNUM.
14167
14168 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14169
14170 PR libgcj/44341
14171 * doc/install.texi: Document host options discarded when cross
14172 configuring target libraries.
14173
14174 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14175
14176 Reverted:
14177 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14178 PR debug/45136
14179 PR debug/45130
14180 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14181 debug insns.
14182 (no_real_insns_p, schedule_block, set_priorities): Drop special
14183 treatment of boundary debug insns.
14184 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14185 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14186 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14187 (BOUNDARY_DEBUG_INSN_P): Likewise.
14188 (SCHEDULE_DEBUG_INSN_P): Likewise.
14189 * sched-rgn.c (init_ready_list): Drop special treatment of
14190 boundary debug insns.
14191 * final.c (rest_of_clean-state): Clear notes' BB.
14192
14193 2011-01-31 Alan Modra <amodra@gmail.com>
14194
14195 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14196 toc relative expressions as we do in print_operand_address.
14197
14198 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14199
14200 * doc/extend.texi: Follow spelling conventions.
14201 * doc/invoke.texi: Fix a typo.
14202
14203 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14204
14205 * config/hpux11.opt: New.
14206 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14207 ia64*-*-hpux*): Use hpux11.opt.
14208
14209 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14210
14211 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14212 to tmake_file.
14213
14214 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14215
14216 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14217 support sites.
14218
14219 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14220
14221 * doc/install.texi (Binaries): Remove outdated reference for
14222 Motorola 68HC11/68HC12 downloads.
14223
14224 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14225
14226 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14227 Drepper's paper.
14228
14229 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14230
14231 PR bootstrap/47147
14232 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14233 used by NetBSD.
14234
14235 2011-01-28 Ahmad Sharif <asharif@google.com>
14236
14237 * value-prof.c (check_counter): Corrected error message.
14238
14239 2011-01-29 Jie Zhang <jie@codesourcery.com>
14240
14241 * config/arm/arm.c (arm_legitimize_reload_address): New.
14242 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14243 arm_legitimize_reload_address.
14244 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14245
14246 2011-01-28 Ian Lance Taylor <iant@google.com>
14247
14248 * godump.c (go_define): Ignore macros whose definitions include
14249 two adjacent operands.
14250
14251 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14252
14253 PR target/42894
14254 * varasm.c (force_const_mem): Store copy of x in desc->constant
14255 instead of x itself.
14256 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14257 itself into REG_EQUAL note.
14258
14259 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14260
14261 * config/freebsd.opt (posix, rdynamic): New Driver options.
14262
14263 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14264
14265 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14266 -Bstatic/-Bdynamic.
14267 * configure: Regenerate.
14268
14269 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14270
14271 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14272 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14273
14274 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14275
14276 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14277 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14278 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14279 (s390_preferred_reload_class): Make static. Change return and
14280 'rclass' argument type to reg_class_t.
14281
14282 2011-01-27 Jan Hubicka <jh@suse.cz>
14283
14284 PR middle-end/46949
14285 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14286 (process_function_and_variable_attributes): Check defined weakrefs.
14287
14288 2011-01-27 Martin Jambor <mjambor@suse.cz>
14289
14290 PR tree-optimization/47228
14291 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14292 build_ref_for_offset.
14293
14294 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14295
14296 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14297
14298 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14299
14300 PR rtl-optimization/46856
14301 * postreload.c (reload_combine_recognize_const_pattern): Do not
14302 separate cc0 setter and user on cc0 targets.
14303
14304 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14305
14306 PR c/43082
14307 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14308 passed a VOID_TYPE expression, immediately emit an error and
14309 return error_mark_node.
14310
14311 2011-01-26 Jeff Law <law@redhat.com>
14312
14313 PR rtl-optimization/47464
14314 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14315 rather than may_trap_p as needed.
14316
14317 2011-01-26 DJ Delorie <dj@redhat.com>
14318
14319 PR rtl-optimization/46878
14320 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14321 setter/user dependency as well.
14322
14323 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14324
14325 PR rtl-optimization/44469
14326 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14327 after removing trivially dead basic blocks.
14328
14329 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14330
14331 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14332 * config/frv/frv.h (LINK_SPEC): Likewise.
14333 * config/i386/netware.h (LINK_SPEC): Likewise.
14334 * config/m68k/linux.h (ASM_SPEC): Likewise.
14335 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14336 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14337 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14338 * config/sparc/linux.h (ASM_SPEC): Likewise.
14339 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14340 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14341
14342 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14343
14344 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14345 * config/frv/frv.h (ASM_SPEC): Likewise.
14346 * config/m68k/linux.h (ASM_SPEC): Likewise.
14347 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14348 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14349 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14350 * config/sparc/linux.h (ASM_SPEC): Likewise.
14351 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14352 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14353
14354 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14355
14356 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14357 * config/frv/frv.h (LINK_SPEC): Likewise.
14358 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14359
14360 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14361
14362 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14363 * config/frv/frv.h (ASM_SPEC): Likewise.
14364 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14365 * config/m68k/linux.h (ASM_SPEC): Likewise.
14366 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14367 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14368 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14369 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14370 * config/sparc/linux.h (ASM_SPEC): Likewise.
14371 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14372 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14373 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14374
14375 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14376
14377 PR target/46997
14378 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14379 (*mux2): Ditto.
14380 (vec_extract_evenodd_help): Ditto.
14381 (vec_extract_evenv4hi): Ditto.
14382 (vec_extract_oddv4hi): Ditto.
14383 (vec_interleave_lowv2si): Ditto.
14384 (vec_interleave_highv2si): Ditto.
14385 (vec_extract_evenv2si): Ditto.
14386 (vec_extract_oddv2si: Ditto.
14387 (vec_pack_trunc_v2si): Ditto.
14388
14389 2011-01-22 Jan Hubicka <jh@suse.cz>
14390
14391 PR target/47237
14392 * cgraph.h (cgraph_local_info): New field can_change_signature.
14393 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14394 signature can change.
14395 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14396 can change.
14397 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14398 (cgraph_function_versioning): We can not change signature of functions
14399 that don't allow that.
14400 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14401 (lto_input_node): Likewise.
14402 * ipa-inline.c (compute_inline_parameters): Compute
14403 local.can_change_signature.
14404 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14405 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14406 functions that can not change signature.
14407 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14408 init_cumulative_args): Do not use local calling conventions
14409 for functions that can not change signature.
14410
14411 2011-01-22 Jan Hubicka <jh@suse.cz>
14412
14413 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14414
14415 2011-01-26 Richard Guenther <rguenther@suse.de>
14416
14417 PR tree-optimization/47190
14418 * cgraphunit.c (process_common_attributes): New function.
14419 (process_function_and_variable_attributes): Use it.
14420
14421 2011-01-26 Richard Guenther <rguenther@suse.de>
14422
14423 PR lto/47423
14424 * cgraphbuild.c (record_eh_tables): Record reference to personality
14425 function.
14426
14427 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14428
14429 PR debug/45454
14430 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14431 non-debug insns from moving up.
14432
14433 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14434
14435 PR target/40125
14436 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14437 t-dlldir{,-x} fragment for build and add it to tmake_file.
14438 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14439 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14440 * config/i386/t-dlldir: New file.
14441 (SHLIB_DLLDIR): Define.
14442 * config/i386/t-dlldir-x: New file.
14443 (SHLIB_DLLDIR): Define.
14444 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14445 (SHLIB_INSTALL): Use it.
14446
14447 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14448
14449 PR target/47246
14450 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14451 lower bound of the allowed Thumb-2 coprocessor load/store
14452 index range to -256. Add explaining comment.
14453
14454 2011-01-25 Ian Lance Taylor <iant@google.com>
14455
14456 * godump.c (go_define): Improve lexing of macro expansion to only
14457 accept expressions which match Go spec.
14458
14459 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14460
14461 PR c++/43601
14462 * tree.c (handle_dll_attribute): Handle it.
14463 * doc/extend.texi (@item dllexport): Mention it.
14464 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14465
14466 2011-01-25 Ian Lance Taylor <iant@google.com>
14467
14468 PR tree-optimization/26854
14469 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14470 (decl_jump_unsafe): Move higher in file, with no other change.
14471 (bind): Set has_jump_unsafe_decl if appropriate.
14472 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14473 (check_earlier_gotos): Likewise.
14474 (c_check_switch_jump_warnings): Likewise.
14475
14476 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14477
14478 * doc/invoke.texi (Warning Options): Add missing hyphen.
14479 (-fprofile-dir): Minor grammatical fixes.
14480 (-fbranch-probabilities): Likewise.
14481
14482 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14483
14484 PR debug/45136
14485 PR debug/45130
14486 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14487 debug insns.
14488 (no_real_insns_p, schedule_block, set_priorities): Drop special
14489 treatment of boundary debug insns.
14490 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14491 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14492 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14493 (BOUNDARY_DEBUG_INSN_P): Likewise.
14494 (SCHEDULE_DEBUG_INSN_P): Likewise.
14495 * sched-rgn.c (init_ready_list): Drop special treatment of
14496 boundary debug insns.
14497 * final.c (rest_of_clean-state): Clear notes' BB.
14498
14499 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14500
14501 * Makefile.in (LAMBDA_H): Removed.
14502 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14503 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14504 lambda-trans.o, and tree-loop-linear.o.
14505 (lto-symtab.o): Remove dependence on LAMBDA_H.
14506 (tree-loop-linear.o): Remove rule.
14507 (lambda-mat.o): Same.
14508 (lambda-trans.o): Same.
14509 (lambda-code.o): Same.
14510 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14511 (tree-vect-slp.o): Same.
14512 * hwint.h (gcd): Moved here.
14513 (least_common_multiple): Same.
14514 * lambda-code.c: Removed.
14515 * lambda-mat.c: Removed.
14516 * lambda-trans.c: Removed.
14517 * lambda.h: Removed.
14518 * tree-loop-linear.c: Removed.
14519 * lto-symtab.c: Do not include lambda.h.
14520 * omega.c (gcd): Removed.
14521 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14522 * tree-data-ref.c (print_lambda_vector): Moved here.
14523 (lambda_vector_copy): Same.
14524 (lambda_matrix_copy): Same.
14525 (lambda_matrix_id): Same.
14526 (lambda_vector_first_nz): Same.
14527 (lambda_matrix_row_add): Same.
14528 (lambda_matrix_row_exchange): Same.
14529 (lambda_vector_mult_const): Same.
14530 (lambda_vector_negate): Same.
14531 (lambda_matrix_row_negate): Same.
14532 (lambda_vector_equal): Same.
14533 (lambda_matrix_right_hermite): Same.
14534 * tree-data-ref.h: Do not include lambda.h.
14535 (lambda_vector): Moved here.
14536 (lambda_matrix): Same.
14537 (dependence_level): Same.
14538 (lambda_transform_legal_p): Removed declaration.
14539 (lambda_collect_parameters): Same.
14540 (lambda_compute_access_matrices): Same.
14541 (lambda_vector_gcd): Same.
14542 (lambda_vector_new): Same.
14543 (lambda_vector_clear): Same.
14544 (lambda_vector_lexico_pos): Same.
14545 (lambda_vector_zerop): Same.
14546 (lambda_matrix_new): Same.
14547 * tree-flow.h (least_common_multiple): Removed declaration.
14548 * tree-parloops.c (lambda_trans_matrix): Moved here.
14549 (LTM_MATRIX): Same.
14550 (LTM_ROWSIZE): Same.
14551 (LTM_COLSIZE): Same.
14552 (LTM_DENOMINATOR): Same.
14553 (lambda_trans_matrix_new): Same.
14554 (lambda_matrix_vector_mult): Same.
14555 (lambda_transform_legal_p): Same.
14556 * tree-pass.h (pass_linear_transform): Removed declaration.
14557 * tree-ssa-loop.c (tree_linear_transform): Removed.
14558 (gate_tree_linear_transform): Removed.
14559 (pass_linear_transform): Removed.
14560 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14561 flag_loop_interchange.
14562
14563 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14564
14565 PR tree-optimization/47265
14566 PR tree-optimization/47443
14567 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14568 if name still has some uses.
14569
14570 2011-01-25 Martin Jambor <mjambor@suse.cz>
14571
14572 PR tree-optimization/47382
14573 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14574 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14575
14576 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14577
14578 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14579 sjlj_except_unwind_info.
14580
14581 2011-01-25 Richard Guenther <rguenther@suse.de>
14582
14583 PR tree-optimization/47426
14584 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14585 visible functions results escape.
14586
14587 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14588
14589 PR target/45701
14590 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14591 (arm_get_frame_offsets): Use it.
14592
14593 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14594 Jakub Jelinek <jakub@redhat.com>
14595
14596 PR tree-optimization/47271
14597 * tree-if-conv.c (bb_postdominates_preds): New.
14598 (if_convertible_bb_p): Call bb_postdominates_preds.
14599 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14600 (predicate_scalar_phi): Call bb_postdominates_preds.
14601
14602 2011-01-25 Nick Clifton <nickc@redhat.com>
14603
14604 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14605 * config/rx/rx.c (rx_function_value): Likewise.
14606 (rx_promote_function_mode): Likewise.
14607 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14608 in order to make it legitimate.
14609 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14610 make sure that the first operand is the same as the result register.
14611 (addsi3_unspec): Delete.
14612 (subdi3): Do not accept immediate operands.
14613 (subdi3_internal): Likewise.
14614
14615 2011-01-25 Jeff Law <law@redhat.com>
14616
14617 PR rtl-optimization/37273
14618 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14619 handle them like argument loads from stack slots. Do not double
14620 count memory for memory constants and argument loads from stack slots.
14621
14622 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14623
14624 PR tree-optimization/47427
14625 PR tree-optimization/47428
14626 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14627 coalesce if the new root var would be TREE_READONLY.
14628
14629 2011-01-25 Richard Guenther <rguenther@suse.de>
14630
14631 PR middle-end/47414
14632 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14633 correct type for TBAA.
14634
14635 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14636
14637 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14638 (close_phi_written_to_memory): Call for_each_index with
14639 dr_indices_valid_in_loop.
14640
14641 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14642
14643 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14644 when it is initialized.
14645
14646 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14647
14648 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14649 call to graphite_find_data_references_in_stmt.
14650 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14651 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14652 call to graphite_find_data_references_in_stmt.
14653 (analyze_drs_in_stmts): Same.
14654 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14655 in which the scalar analysis of indices is performed.
14656 (create_data_ref): Same. Update call to dr_analyze_indices.
14657 (find_data_references_in_stmt): Update call to create_data_ref.
14658 (graphite_find_data_references_in_stmt): Same.
14659 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14660 declaration.
14661 (create_data_ref): Same.
14662 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14663 call to create_data_ref.
14664
14665 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14666
14667 * graphite-sese-to-poly.c (build_poly_scop): Move
14668 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14669
14670 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14671
14672 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14673 VAR_DECL, PARM_DECL, and RESULT_DECL.
14674
14675 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14676
14677 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14678 in a reduction PBB.
14679 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14680 that have already been marked as PBB_IS_REDUCTION.
14681
14682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14683
14684 * graphite-scop-detection.c (same_close_phi_node): New.
14685 (remove_duplicate_close_phi): New.
14686 (make_close_phi_nodes_unique): New.
14687 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14688
14689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14690
14691 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14692 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14693 of both data references to be the same.
14694
14695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14696
14697 * graphite-dependences.c (build_lexicographical_constraint): Remove
14698 the gdim parameter.
14699 (build_lexicographical_constraint): Adjust call to
14700 ppl_powerset_is_empty.
14701 (dependence_polyhedron): Same.
14702 (graphite_legal_transform_dr): Same.
14703 (graphite_carried_dependence_level_k): Same.
14704 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14705 parameter.
14706 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14707
14708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14709
14710 * graphite-sese-to-poly.c
14711 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14712 (close_phi_written_to_memory): New.
14713 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14714 and unshare_expr.
14715
14716 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14717
14718 * doc/install.texi: Update the expected version number of PPL to 0.11.
14719 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14720 #if PPL_VERSION_MINOR < 11.
14721
14722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14723
14724 * graphite-dependences.c: Include graphite-cloog-util.h.
14725 (new_poly_ddr): Inlined into dependence_polyhedron.
14726 (free_poly_ddr): Moved close by new_poly_ddr.
14727 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14728 Early return NULL when ppl_powerset_is_empty returns true.
14729 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14730 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14731 (graphite_legal_transform_dr): Call new_poly_ddr.
14732 (graphite_carried_dependence_level_k): Same.
14733 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14734 (dot_transformed_deps_stmt_1): Removed.
14735 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14736 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14737 (dot_deps_1): Call dot_deps_2.
14738 * Makefile.in (graphite-dependences.o): Add missing dependence on
14739 graphite-cloog-util.h.
14740
14741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14742
14743 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14744 (build_lexicographical_constraint): Same.
14745 (dependence_polyhedron_1): Same.
14746 (graphite_legal_transform_dr): Same.
14747 (graphite_carried_dependence_level_k): Same.
14748 * graphite-ppl.c (ppl_powerset_is_empty): New.
14749 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14750 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14751
14752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14753
14754 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14755 the "a followed by b" relation and document it.
14756
14757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14758
14759 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14760 iteration when the bag of constraints is empty.
14761
14762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14763
14764 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14765
14766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14767
14768 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14769 nest and two loop depths as parameters.
14770 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14771 lst_perfect_nestify.
14772
14773 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14774
14775 * graphite-dependences.c (print_pddr): Call
14776 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14777
14778 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14779
14780 * graphite-ppl.c (debug_gmp_value): New.
14781 * graphite-ppl.h (debug_gmp_value): Declared.
14782
14783 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14784
14785 * doc/install.texi: Document availability of cloog-0.16.
14786
14787 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14788
14789 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14790 invalid postdominance info.
14791
14792 2011-01-24 Jan Hubicka <jh@suse.cz>
14793
14794 PR c/21659
14795 * doc/extend.texi (weak pragma): Drop claim that it must
14796 appear before definition.
14797 * varasm.c (merge_weak, declare_weak): Only sanity check
14798 that DECL is not output at a time it is declared weak.
14799
14800 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14801
14802 * machmode.def: Fixed comments.
14803
14804 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14805
14806 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14807
14808 2011-01-24 Paul Koning <ni1d@arrl.net>
14809
14810 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14811 WORDS_BIG_ENDIAN.
14812
14813 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14814
14815 PR target/46519
14816 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14817 (block_info): Add scanned and prev.
14818 (move_or_delete_vzeroupper_2): Return if the basic block
14819 has been scanned and the upper 128bit state is unchanged
14820 from the last scan.
14821 (move_or_delete_vzeroupper_1): Return true if the exit
14822 state is changed.
14823 (move_or_delete_vzeroupper): Visit basic blocks using the
14824 work-list based algorithm based on vt_find_locations in
14825 var-tracking.c.
14826
14827 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14828
14829 2011-01-24 Nick Clifton <nickc@redhat.com>
14830
14831 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14832 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14833 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14834 then define __v850e1__.
14835 * doc/invoke.texi: Document -mv850es.
14836
14837 2011-01-24 Richard Henderson <rth@redhat.com>
14838
14839 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14840 compound unordered comparisons.
14841 * config/rx/rx.c (rx_split_fp_compare): Remove.
14842 * config/rx/rx-protos.h: Update.
14843 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14844 (cbranchsf4): Don't call rx_split_fp_compare.
14845 (*cbranchsf4): Use rx_split_cbranch.
14846 (*cmpsf): Don't accept "i" constraint.
14847 (*conditional_branch): Only valid after reload.
14848 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14849
14850 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14851
14852 PR target/47385
14853 * config/rs6000/altivec.md (vector constant splitters): Add
14854 support for creating vector single precision constants if -mvsx is
14855 used and we would create the constant using Altivec primitives.
14856
14857 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14858 Richard Sandiford <rdsandiford@googlemail.com>
14859
14860 PR rtl-optimization/47166
14861 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14862 mechanism for PRE_MODIFY and POST_MODIFY.
14863 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14864 reloadreg.
14865
14866 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14867
14868 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14869
14870 2011-01-22 Jan Hubicka <jh@suse.cz>
14871
14872 PR lto/47333
14873 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14874
14875 2011-01-22 Jan Hubicka <jh@suse.cz>
14876
14877 PR tree-optimization/43884
14878 PR lto/44334
14879 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14880 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14881
14882 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14883
14884 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14885 * config/s390/s390.c (s390_register_move_cost,
14886 s390_memory_move_cost): New.
14887 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14888
14889 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14890
14891 PR middle-end/47401
14892 * except.c (sjlj_assign_call_site_values): Move setting the
14893 crtl->uses_eh_lsda flag to ...
14894 (sjlj_mark_call_sites): ... here.
14895 (sjlj_emit_function_enter): Support NULL dispatch label.
14896 (sjlj_build_landing_pads): In a function with no landing pads
14897 that still has must-not-throw regions, generate code to register
14898 a personality function with empty LSDA.
14899
14900 2011-01-21 Richard Henderson <rth@redhat.com>
14901
14902 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14903
14904 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14905
14906 * compare-elim.c: New file.
14907 * Makefile.in (OBJS-common): Add it.
14908 (compare-elim.o): New.
14909 * common.opt (fcompare-elim): New.
14910 * opts.c (default_options_table): Add OPT_fcompare_elim.
14911 * tree-pass.h (pass_compare_elim_after_reload): New.
14912 * passes.c (init_optimization_passes): Add it.
14913 * recog.h: Protect against re-inclusion.
14914 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14915 * doc/invoke.texi (-fcompare-elim): Document it.
14916 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14917 * doc/tm.texi: Rebuild.
14918
14919 2011-01-22 Nick Clifton <nickc@redhat.com>
14920
14921 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14922 rx_split_fp_compare.
14923
14924 2011-01-22 Nick Clifton <nickc@redhat.com>
14925
14926 * config/rx/rx.md (UNSPEC_CONST): New.
14927 (deallocate_and_return): Wrap the amount popped off the stack in
14928 an UNSPEC_CONST in order to stop it being rejected by
14929 -mmax-constant-size.
14930 (pop_and_return): Add a "(return)" rtx.
14931 (call): Drop the immediate operand.
14932 (call_internal): Likewise.
14933 (call_value): Likewise.
14934 (call_value_internal): Likewise.
14935 (sibcall_internal): Likewise.
14936 (sibcall_value_internal): Likewise.
14937 (sibcall): Likewise. Generate an explicit call using
14938 sibcall_internal.
14939 (sibcall_value): Likewise.
14940 (mov<>): FAIL if a constant operand is not legitimate.
14941 (addsi3_unpsec): New pattern.
14942
14943 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14944 (ok_for_max_constant): New function.
14945 (gen_safe_add): New function.
14946 (rx_expand_prologue): Use gen_safe_add.
14947 (rx_expand_epilogue): Likewise.
14948 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14949 UNSPEC CONSTs.
14950
14951 2011-01-21 Jeff Law <law@redhat.com>
14952
14953 PR tree-optimization/47053
14954 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14955 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14956 statements are deleted.
14957 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14958 is nonempty, then purge dead edges and cleanup the CFG.
14959
14960 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14961
14962 PR debug/47402
14963 Temporarily revert:
14964 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14965 PR debug/47106
14966 * tree-dfa.c (create_var_ann): Mark variable as used.
14967
14968 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14969
14970 PR middle-end/45566
14971 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14972 notes from other section in hot/cold partitioning even if
14973 last_action is -3. Increment call_site_base.
14974
14975 PR rtl-optimization/47366
14976 * fwprop.c (forward_propagate_into): Return bool. If
14977 any changes are made, -fnon-call-exceptions is used and
14978 REG_EH_REGION note is present, call purge_dead_edges
14979 and return true if it purged anything.
14980 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14981 any EH edges were purged.
14982
14983 2011-01-21 Jeff Law <law@redhat.com>
14984
14985 PR rtl-optimization/41619
14986 * caller-save.c (setup_save_areas): Break out code to determine
14987 which hard regs are live across calls by examining the reload chains
14988 so that it is always used.
14989 Eliminate code which checked REG_N_CALLS_CROSSED.
14990
14991 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14992
14993 PR tree-optimization/47355
14994 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14995 NOP has non-debug uses beyond PHIs in new_bb.
14996
14997 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14998
14999 PR debug/47106
15000 * cfgexpand.c (account_used_vars_for_block): Only account vars
15001 that are annotated as used.
15002 (estimated_stack_frame_size): Don't set TREE_USED.
15003 * tree-dfa.c (create_var_ann): Mark variable as used.
15004
15005 2011-01-21 Richard Guenther <rguenther@suse.de>
15006
15007 PR middle-end/47395
15008 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15009
15010 2011-01-21 Richard Guenther <rguenther@suse.de>
15011
15012 PR tree-optimization/47365
15013 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15014 (vn_reference_lookup_pieces): Adjust.
15015 (vn_reference_lookup): Likewise.
15016 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15017 (vn_reference_lookup_3): Only look through kills if in
15018 VN_WALKREWRITE mode.
15019 (vn_reference_lookup_pieces): Adjust.
15020 (vn_reference_lookup): Likewise.
15021 (visit_reference_op_load): Likewise.
15022 (visit_reference_op_store): Likewise.
15023 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15024 (compute_avail): Likewise.
15025 (eliminate): Likewise.
15026
15027 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15028
15029 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15030 DECL_IGNORED_P non-reg vars if they are used.
15031
15032 PR tree-optimization/47391
15033 * varpool.c (const_value_known_p): Return false if
15034 decl is volatile.
15035
15036 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15037
15038 PR bootstrap/47215
15039 * config/i386/i386.c (ix86_local_alignment): Handle
15040 case for va_list_type_node is nil.
15041 (ix86_canonical_va_list_type): Likewise.
15042
15043 2011-01-21 Alan Modra <amodra@gmail.com>
15044
15045 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15046 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15047
15048 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15049
15050 * config/arm/arm.md (define_attr type): Rename f_load
15051 and f_store to f_fpa_load and f_fpa_store. Update.
15052 (write_conflict): Deal with rename fallout.
15053 (*push_fp_multi): Likewise.
15054 * config/arm/fpa.md (f_load): Use f_fpa_load.
15055 (f_store): Use f_fpa_store.
15056 (*movsf_fpa): Likewise.
15057 (*movdf_fpa): Likewise.
15058 (*movxf_fpa): Likewise.
15059 (*thumb2_movsf_fpa): Likewise.
15060 (*thumb2_movdf_fpa): Likewise.
15061 (*thumb2_movxf_fpa): Likewise.
15062 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15063 f_loadd and f_stored.
15064 (*thumb2_movdi_vfp): Likewise.
15065 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15066 (*thumb2_movsi_vfp): Likewise.
15067 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15068 Use f_loads instead of f_load.
15069 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15070
15071 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15072
15073 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15074 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15075 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15076 (xtensa_mode_dependent_address_p): New function.
15077 (constantpool_address_p): Make static. Change return type to bool.
15078 Change argument type to const_rtx. Use CONST_INT_P predicate.
15079
15080 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15081
15082 PR debug/46583
15083 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15084
15085 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15086
15087 PR debug/47283
15088 * cfgexpand.c (expand_debug_expr): Instead of generating
15089 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15090 etc. handling.
15091
15092 2011-01-20 Richard Guenther <rguenther@suse.de>
15093
15094 PR middle-end/47370
15095 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15096 the pointer operand of MEM_REFs.
15097
15098 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15099
15100 PR tree-optimization/46130
15101 * ipa-split.c (consider_split): If return_bb contains non-virtual
15102 PHIs other than for retval or if split_function would not adjust it,
15103 refuse to split.
15104
15105 2011-01-20 Richard Guenther <rguenther@suse.de>
15106
15107 PR tree-optimization/47167
15108 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15109 Revert previous change, only avoid enumeral type changes.
15110
15111 2011-01-19 Mike Stump <mikestump@comcast.net>
15112
15113 * doc/tm.texi.in (BRANCH_COST): Englishify.
15114 * doc/tm.texi (BRANCH_COST): Likewise.
15115
15116 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15117
15118 PR c++/47291
15119 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15120 (gen_scheduled_generic_parms_dies): New functions.
15121 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15122 generation for the end of CU compilation.
15123 (dwarf2out_finish): Generate template parameters DIEs here.
15124
15125 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15126
15127 PR debug/46240
15128 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15129 debug bind stmt on merge edges.
15130
15131 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15132
15133 PR debug/47079
15134 PR debug/46724
15135 * function.c (instantiate_expr): Instantiate incoming rtl of
15136 implicit arguments, and recurse on VALUE_EXPRs.
15137 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15138 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15139
15140 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15141
15142 * c-parser.c (c_parser_for_statement): Initialize
15143 collection_expression.
15144
15145 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15146
15147 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15148
15149 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15150
15151 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15152 (LINK_SHLIB_SPEC): Don't use %(link_path).
15153 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15154
15155 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15156
15157 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15158 (NO_SHARED_LIB_SUPPORT): Remove.
15159 (LINK_SHLIB_SPEC): Remove one conditional definition.
15160
15161 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15162
15163 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15164 %{call_shared}.
15165 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15166 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15167 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15168 %{call_shared} and conditionals on these options not being passed.
15169 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15170 %{call_shared}.
15171
15172 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15173
15174 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15175 simplify.
15176
15177 * ipa-split.c: Spelling fixes.
15178
15179 2011-01-19 Richard Henderson <rth@redhat.com>
15180
15181 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15182 (*mulsi3): Likewise.
15183
15184 * longlong.h [__mn10300__] (count_leading_zeros): New.
15185 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15186 [__mn10300__] (add_ssaaaa, subddmmss): New.
15187 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15188 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15189
15190 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15191
15192 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15193
15194 2011-01-19 Richard Henderson <rth@redhat.com>
15195
15196 * config/mn10300/mn10300.md (addsi3_flags): New.
15197 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15198 (subsi3_flags, subc_internal, subdi3): New.
15199 (subdi3_internal, *subdi3_degenerate): New.
15200 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15201
15202 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15203 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15204 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15205 * config/mn10300/mn10300-protos.h: Update.
15206 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15207 (return_ret): Likewise. Rename from return_internal_regs.
15208 (return_internal): Remove.
15209
15210 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15211 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15212 (mn10300_legitimate_constant_p): Likewise.
15213 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15214 (mn10300_frame_size): New.
15215 (mn10300_expand_prologue): Use it.
15216 (mn10300_expand_epilogue): Likewise.
15217 (mn10300_initial_offset): Likewise.
15218 * config/mn10300/mn10300-protos.h: Update.
15219 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15220 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15221 (prologue, epilogue, return_internal): Tidy output code.
15222 (mn10300_store_multiple_operation, return): Likewise.
15223 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15224 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15225 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15226 (load_pic, am33_load_pic): New.
15227 (mn10300_load_pic0, mn10300_load_pic1): New.
15228
15229 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15230 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15231 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15232 (cc_flags_for_mode, cc_flags_for_code): New.
15233 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15234 overflow flag is not valid. Validate that the flags we need
15235 for the comparison are valid.
15236 (mn10300_output_cmp): Remove.
15237 (mn10300_output_add): New.
15238 (mn10300_select_cc_mode): Use cc_flags_for_code.
15239 (mn10300_split_cbranch): New.
15240 (mn10300_match_ccmode): New.
15241 (mn10300_split_and_operand_count): New.
15242 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15243 to the function.
15244 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15245 (addsi3): ... here. Use mn10300_output_add.
15246 (*addsi3_flags): New.
15247 (*am33_subsi3, *mn10300_subsi3): Merge...
15248 (subsi3): ... here. Use attribute isa.
15249 (*subsi3_flags): New.
15250 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15251 when possible.
15252 (*am33_andsi3, *mn10300_andsi3): Merge...
15253 (andsi3): ... here.
15254 (*andsi3_flags): New.
15255 (andsi3 splitters): New.
15256 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15257 (iorsi3): ... here.
15258 (*iorsi3_flags): New.
15259 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15260 (xorsi3): ... here.
15261 (*xorsi3_flags): New.
15262 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15263 (one_cmplsi2): ... here.
15264 (*one_cmplsi2_flags): New.
15265 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15266 instead of "dax" in constraints. Use mn10300_split_cbranch.
15267 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15268 use matching constraints to eliminate a self-comparison.
15269 (*integer_conditional_branch): Rename from integer_conditional_branch.
15270 Use int_mode_flags to match CC_REG.
15271 (*cbranchsi4_btst, *btstsi): New.
15272 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15273 mn10300_split_cbranch.
15274 (*am33_cmpsf): Rename from am33_cmpsf.
15275 (*float_conditional_branch): Rename from float_conditional_branch.
15276 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15277 (zero_extendqisi2): ... here.
15278 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15279 (zero_extendhisi2): ... here.
15280 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15281 (extendqisi2): ... here.
15282 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15283 (extendhisi2): ... here.
15284 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15285 (ashlsi3): ... here.
15286 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15287 (lshrsi3): ... here.
15288 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15289 (ashrsi3): ... here.
15290 (consecutive add peephole): Remove.
15291 * config/mn10300/predicates.md (label_ref_operand): New.
15292 (int_mode_flags): New.
15293 (CCZN_comparison_operator): New.
15294
15295 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15296 (throughput_42_latency_43): New reservation.
15297 (mulsidi3, umulsidi3): New expanders.
15298 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15299 the MDR register to allocation; separately allocate the low and
15300 high parts of the DImode result.
15301 (umulsidi3_internal): Similarly.
15302 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15303 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15304 (udivsi3, umodsi3): Remove.
15305 (udivmodsi4, divmodsi4): New expanders.
15306 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15307 (*divmodsi4): Simiarly.
15308 (ext_internal): New.
15309
15310 * config/mn10300/constraints.md ("z"): New constraint.
15311 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15312 (FIXED_REGISTERS): Don't fix MDR.
15313 (CALL_USED_REGSITERS): Reformat nicely.
15314 (REG_ALLOC_ORDER): Add MDR.
15315 (enum regclass): Add MDR_REGS.
15316 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15317 (IRA_COVER_CLASSES): Add MDR_REGS.
15318 (REGNO_REG_CLASS): Handle MDR_REG.
15319 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15320 (mn10300_register_move_cost): Likewise.
15321 * config/mn10300/mn10300.md (MDR_REG): New.
15322 (*movsi_internal): Handle moves to/from MDR_REGS.
15323
15324 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15325 POST_MODIFY.
15326 (mn10300_secondary_reload): Tidy combination reload classes.
15327 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15328 addresses for AM33. Allow symbolic offsets for reg+imm.
15329 (mn10300_regno_in_class_p): New.
15330 (mn10300_legitimize_reload_address): New.
15331 * config/mn10300/mn10300.h (enum reg_class): Remove
15332 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15333 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15334 SP_OR_GENERAL_REGS.
15335 (REG_CLASS_NAMES): Update to match.
15336 (REG_CLASS_CONTENTS): Likewise.
15337 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15338 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15339 (REGNO_IN_RANGE_P): Remove.
15340 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15341 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15342 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15343 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15344 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15345 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15346 (REGNO_GENERAL_P): New.
15347 (HAVE_POST_MODIFY_DISP): New.
15348 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15349 (LEGITIMIZE_RELOAD_ADDRESS): New.
15350 * config/mn10300/mn10300-protos.h: Update.
15351
15352 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15353 DATA_REGS for AM33 stack-pointer destination.
15354 (mn10300_preferred_output_reload_class): Likewise.
15355 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15356 into a form appropriate for ...
15357 (TARGET_SECONDARY_RELOAD): New.
15358 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15359 * config/mn10300/mn10300-protos.h: Update.
15360 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15361 reload_insi; use the "A" constraint for the scratch; handle AM33
15362 moves of sp to non-address registers.
15363
15364 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15365 (*movqi_internal): ... here.
15366 (*am33_movhi, *mn10300_movhi): Merge into...
15367 (*movhi_internal): ... here.
15368 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15369 as the source/destination of moves from/to SP.
15370 (movsf): Only allow for AM33-2.
15371 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15372 any integer constant constraint. Only allow for AM33-2. Tidy
15373 all of the alternative outputs.
15374 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15375 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15376 for MN103.
15377 (udivsi3, umodsi3): New patterns for MN103 only.
15378
15379 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15380
15381 * doc/tm.texi.in: Spell out that a lack of register class unions
15382 can lead to ICEs.
15383 * doc/tm.texi: Regenerate.
15384
15385 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15386
15387 PR rtl-optimization/47337
15388 * dce.c (check_argument_store): New function.
15389 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15390
15391 PR tree-optimization/47290
15392 * tree-eh.c (infinite_empty_loop_p): New function.
15393 (cleanup_empty_eh): Use it.
15394
15395 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15396
15397 PR target/46997
15398 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15399 (a64_expand_widen_sum): Ditto.
15400 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15401 (vec_extract_evenodd_help): Ditto.
15402 (vec_extract_evenv4hi): Ditto.
15403 (vec_extract_oddv4hi): Ditto.
15404 (vec_extract_evenv2si): Ditto.
15405 (vec_extract_oddv2si): Ditto.
15406 (vec_extract_evenv2sf): Ditto.
15407 (vec_extract_oddv2sf): Ditto.
15408 (vec_pack_trunc_v4hi: Ditto.
15409 (vec_pack_trunc_v2si): Ditto.
15410 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15411 (vec_interleave_highv8qi): Ditto.
15412 (mix1_r): Ditto.
15413 (vec_extract_oddv8qi): Ditto.
15414 (vec_interleave_lowv4hi): Ditto.
15415 (vec_interleave_highv4hi): Ditto.
15416 (vec_interleave_lowv2si): Ditto.
15417 (vec_interleave_highv2si): Ditto.
15418
15419 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15420
15421 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15422 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15423 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15424 (pa_c_mode_for_suffix): New.
15425 (TARGET_EXPAND_BUILTIN): Define.
15426 (TARGET_C_MODE_FOR_SUFFIX): Define.
15427 (pa_builtins): Define.
15428 (pa_init_builtins): Register __float128 type and init new support
15429 builtins.
15430 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15431 * config/pa/quadlib.c (_U_Qfcopysign): New.
15432
15433 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15434
15435 PR middle-end/46894
15436 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15437 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15438 are defined.
15439
15440 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15441
15442 PR tree-optimization/47179
15443 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15444 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15445
15446 2011-01-18 Richard Guenther <rguenther@suse.de>
15447
15448 PR rtl-optimization/47216
15449 * emit-rtl.c: Include tree-flow.h.
15450 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15451 of replicating it with different semantics.
15452 * Makefile.in (emit-rtl.o): Adjust.
15453
15454 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15455
15456 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15457 (cortex_a9_dp): Handle neon types correctly.
15458
15459 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15460
15461 PR rtl-optimization/47299
15462 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15463 subtarget. Use normal multiplication if both operands are constants.
15464 * expmed.c (expand_widening_mult): Don't try to optimize constant
15465 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15466 before using it.
15467
15468 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15469
15470 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15471 spacing after 'e.g.', typos, comma, hyphenation.
15472
15473 2011-01-17 Richard Henderson <rth@redhat.com>
15474
15475 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15476 (rx_restricted_mem_operand): New.
15477 (rx_shift_operand): Use register_operand.
15478 (rx_source_operand, rx_compare_operand): Likewise.
15479 * config/rx/rx.md (addsi3_flags): New expander.
15480 (adddi3): Rewrite as expander.
15481 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15482 (subsi3_flags): New expander.
15483 (subdi3): Rewrite as expander.
15484 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15485
15486 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15487 (rx_init_builtins): Remove sat builtin.
15488 (rx_expand_builtin): Likewise.
15489 * config/rx/rx.md (ssaddsi3): New.
15490 (*sat): Rename from sat. Represent the CC_REG input.
15491
15492 * config/rx/predicates.md (rshift_operator): New.
15493 * config/rx/rx.c (rx_expand_insv): Remove.
15494 * config/rx/rx-protos.h: Update.
15495 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15496 operand to the canonical position.
15497 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15498 (*bitclr, *bitclr_in_memory): Similarly.
15499 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15500 (insv): Retain the zero_extract in the expansion.
15501
15502 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15503 (bswaphi2, bitinvert, revw): Likewise.
15504
15505 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15506 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15507 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15508 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15509 (bitset, bitset_in_memory): Likewise.
15510 (bitinvert, bitinvert_in_memory): Likewise.
15511 (bitclr, bitclr_in_memory): Likewise.
15512 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15513 (rx_strend, rx_cmpstrn): Likewise.
15514 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15515 (bitop peep2 patterns): Remove.
15516
15517 * config/rx/rx.c (rx_match_ccmode): New.
15518 * config/rx/rx-protos.h: Update.
15519 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15520 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15521 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15522 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15523 (fix_truncsfsi2, floatsisf2): Likewise.
15524 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15525 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15526 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15527 (*subsi3_flags, *xorsi3_flags): New.
15528
15529 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15530
15531 * config/rx/rx.c (rx_print_operand): Remove workaround for
15532 unsplit comparison operations.
15533
15534 * config/rx/rx.md (movsicc): Split after reload.
15535 (*movsicc): Merge *movsieq and *movsine via match_operator.
15536 (*stcc): New pattern.
15537
15538 * config/rx/rx.c (rx_float_compare_mode): Remove.
15539 * config/rx/rx.h (rx_float_compare_mode): Remove.
15540 * config/rx/rx.md (cstoresi4): Split after reload.
15541 (*sccc): New pattern.
15542
15543 * config/rx/predicates.md (label_ref_operand): New.
15544 (rx_z_comparison_operator): New.
15545 (rx_zs_comparison_operator): New.
15546 (rx_fp_comparison_operator): New.
15547 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15548 Validate that the flags are set properly for the comparison.
15549 (rx_gen_cond_branch_template): Remove.
15550 (rx_cc_modes_compatible): Remove.
15551 (mode_from_flags): New.
15552 (flags_from_code): Rename from flags_needed_for_conditional.
15553 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15554 (rx_select_cc_mode): Likewise.
15555 (rx_split_fp_compare): New.
15556 (rx_split_cbranch): New.
15557 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15558 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15559 (*cbranchsf4): Similarly.
15560 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15561 match_operator and rx_split_cbranch.
15562 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15563 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15564 (*cmpsi): Rename from cmpsi.
15565 (*tstsi): Rename from tstsi.
15566 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15567 (*conditional_branch): Rename from conditional_branch.
15568 (*reveresed_conditional_branch): Remove.
15569 (b<code>): Remove expander.
15570 * config/rx/rx-protos.h: Update.
15571
15572 * config/rx/rx.c (rx_compare_redundant): Remove.
15573 * config/rx/rx.md (cmpsi): Don't use it.
15574 * config/rx/rx-protos.h: Update.
15575
15576 * config/rx/rx-modes.def (CC_F): New mode.
15577 * config/rx/rx.c (rx_select_cc_mode): New.
15578 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15579 * config/rx/rx-protos.h: Update.
15580
15581 2011-01-17 Richard Henderson <rth@redhat.com>
15582
15583 * except.c (dump_eh_tree): Fix stray ; after for statement.
15584
15585 2011-01-17 Richard Guenther <rguenther@suse.de>
15586
15587 PR tree-optimization/47313
15588 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15589 handling before copying the body. Properly deal with
15590 by-reference result in SSA form.
15591
15592 2011-01-17 Ian Lance Taylor <iant@google.com>
15593
15594 PR target/47219
15595 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15596 (struct_value_alias_set): Don't define.
15597 (sparc_option_override): Don't set sparc_sr_alias_set and
15598 struct_value_alias_set.
15599 (save_or_restore_regs): Use gen_frame_mem rather than calling
15600 set_mem_alias_set.
15601 (sparc_struct_value_rtx): Likewise.
15602
15603 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15604
15605 PR target/47318
15606 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15607 (_mm_maskstore_pd): Likewise.
15608 (_mm_maskload_ps): Likewise.
15609 (_mm_maskstore_ps): Likewise.
15610 (_mm256_maskload_pd): Change mask to __m256i.
15611 (_mm256_maskstore_pd): Likewise.
15612 (_mm256_maskload_ps): Likewise.
15613 (_mm256_maskstore_ps): Likewise.
15614
15615 * config/i386/i386-builtin-types.def: Updated.
15616 (ix86_expand_special_args_builtin): Likewise.
15617
15618 * config/i386/i386.c (bdesc_special_args): Update
15619 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15620 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15621 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15622 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15623
15624 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15625 Use <avxpermvecmode> on mask register.
15626 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15627
15628 2011-01-17 Olivier Hainque <hainque@adacore.com>
15629 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15630 Eric Botcazou <ebotcazou@adacore.com>
15631
15632 PR target/46655
15633 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15634 if <= USHRT_MAX in 32-bit mode.
15635
15636 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15637
15638 * doc/install.texi (Configuration, Specific): Wrap long
15639 lines in examples. Allow line wrapping in long options
15640 and URLs where beneficial for PDF output.
15641
15642 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15643
15644 * config/mips/mips.c (mips_classify_symbol): Don't return
15645 SYMBOL_PC_RELATIVE for nonlocal labels.
15646
15647 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15648
15649 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15650
15651 2011-01-15 Jan Hubicka <jh@suse.cz>
15652
15653 PR tree-optimization/47276
15654 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15655 declarations as needed.
15656
15657 2011-01-15 Martin Jambor <mjambor@suse.cz>
15658
15659 * common.opt (fdevirtualize): New flag.
15660 * doc/invoke.texi (Option Summary): Document it.
15661 * opts.c (default_options_table): Add devirtualize flag.
15662 * ipa-prop.c (detect_type_change): Return immediately if
15663 devirtualize flag is not set.
15664 (detect_type_change_ssa): Likewise.
15665 (compute_known_type_jump_func): Likewise.
15666 (ipa_analyze_virtual_call_uses): Likewise.
15667
15668 2011-01-14 Martin Jambor <mjambor@suse.cz>
15669
15670 PR tree-optimization/45934
15671 PR tree-optimization/46302
15672 * ipa-prop.c (type_change_info): New type.
15673 (stmt_may_be_vtbl_ptr_store): New function.
15674 (check_stmt_for_type_change): Likewise.
15675 (detect_type_change): Likewise.
15676 (detect_type_change_ssa): Likewise.
15677 (compute_complex_assign_jump_func): Check for dynamic type change.
15678 (compute_complex_ancestor_jump_func): Likewise.
15679 (compute_known_type_jump_func): Likewise.
15680 (compute_scalar_jump_functions): Likewise.
15681 (ipa_analyze_virtual_call_uses): Likewise.
15682 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15683
15684 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15685
15686 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15687 * config/i386/i386.opt (msse5): New Alias.
15688
15689 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15690
15691 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15692 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15693 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15694 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15695
15696 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15697
15698 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15699 -mcpu options.
15700 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15701 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15702 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15703 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15704 Likewise.
15705 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15706
15707 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15708
15709 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15710
15711 2011-01-14 Mike Stump <mikestump@comcast.net>
15712
15713 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15714 * config/fr30/fr30.md: Likweise
15715 (movsi_push): Likewise.
15716 (movsi_pop): Likewise.
15717 (enter_func): Likewise.
15718 * config/moxie/moxie.md (movsi_push): Likewise.
15719 (movsi_pop): Likewise.
15720
15721 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15722
15723 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15724 %{no_archive} %{exact_version}.
15725 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15726 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15727 %{no_archive} %{exact_version}.
15728 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15729 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15730 * config/mips/vxworks.h: Likewise.
15731
15732 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15733
15734 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15735
15736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15737
15738 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15739 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15740
15741 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15742
15743 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15744 -nodefaultlib.
15745
15746 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15747
15748 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15749 for mcpu not cpu.
15750 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15751 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15752 not cpu.
15753 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15754 Don't handle -shlib.
15755
15756 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15757
15758 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15759 (CC1_SPEC): Don't handle -profile.
15760
15761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15762
15763 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15764 * config/mips/mips.h (CC1_SPEC): Likewise.
15765
15766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15767
15768 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15769 * config/mips/mips.h (CC1_SPEC): Likewise.
15770
15771 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15772
15773 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15774 * config/m32r/linux.h (LINK_SPEC): Likewise.
15775 * config/mips/linux.h (LINK_SPEC): Likewise.
15776 * config/mips/linux64.h (LINK_SPEC): Likewise.
15777 * config/sparc/linux.h (LINK_SPEC): Likewise.
15778 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15779 LINK_SPEC): Likewise.
15780 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15781
15782 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15783
15784 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15785 %{version:-v}.
15786 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15787
15788 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15789
15790 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15791 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15792
15793 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15794
15795 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15796
15797 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15798
15799 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15800 supports -Bstatic/-Bdynamic.
15801 * configure: Regenerate.
15802
15803 2011-01-14 Jan Hubicka <jh@suse.cz>
15804 Jack Howarth <howarth@bromo.med.uc.edu>
15805
15806 PR target/46037
15807 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15808 when checking debug_info_level. Test write_symbols instead of
15809 debug_hooks->var_location when setting flag_var_tracking_uninit.
15810
15811 2011-01-14 Richard Guenther <rguenther@suse.de>
15812
15813 PR tree-optimization/47179
15814 * target.def (ref_may_alias_errno): New target hook.
15815 * targhooks.h (default_ref_may_alias_errno): Declare.
15816 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15817 (default_ref_may_alias_errno): New function.
15818 * target.h (struct ao_ref_s): Declare.
15819 * tree-ssa-alias.c: Include target.h.
15820 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15821 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15822 (targhooks.o): Likewise.
15823 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15824 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15825
15826 2011-01-14 Richard Guenther <rguenther@suse.de>
15827
15828 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15829
15830 2011-01-14 Richard Guenther <rguenther@suse.de>
15831
15832 PR tree-optimization/47280
15833 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15834 return CFG changes.
15835 (tree_ssa_forward_propagate_single_use_vars): Deal with
15836 CFG changes from associate_plusminus.
15837
15838 2011-01-14 Richard Guenther <rguenther@suse.de>
15839
15840 PR middle-end/47281
15841 Revert
15842 2011-01-11 Richard Guenther <rguenther@suse.de>
15843
15844 PR tree-optimization/46076
15845 * tree-ssa.c (useless_type_conversion_p): Conversions from
15846 unprototyped to empty argument list function types are useless.
15847
15848 2011-01-14 Richard Guenther <rguenther@suse.de>
15849
15850 PR tree-optimization/47286
15851 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15852
15853 2011-01-14 Martin Jambor <mjambor@suse.cz>
15854
15855 PR middle-end/46823
15856 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15857
15858 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15859
15860 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15861 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15862 * config/xtensa/xtensa.c (xtensa_libcall_value,
15863 xtensa_function_value_regno_p): New functions.
15864 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15865
15866 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15867
15868 PR c++/47213
15869 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15870 PE specific hook.
15871 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15872 New function prototype.
15873 * config/i386/winnt.c (i386_pe_assemble_visibility):
15874 Warn only if attribute was specified by user.
15875
15876 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15877
15878 PR target/47251
15879 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15880 floating point.
15881 (floatunsdidf2_fcfidu): Ditto.
15882
15883 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15884
15885 * config/s390/s390.c (print_operand_address): Replace 'error' with
15886 'output_operand_lossage'.
15887 (print_operand): Likewise.
15888
15889 2011-01-13 Jeff Law <law@redhat.com>
15890
15891 PR rtl-optimization/39077
15892 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15893 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15894 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15895 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15896 * gcse.c (prune_insertions_deletions): New function.
15897 (compute_pre_data): Use it.
15898
15899 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15900
15901 PR debug/PR46973
15902 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15903 static function.
15904 (prune_unused_types_mark): Use it.
15905
15906 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15907
15908 PR rtl-optimization/45352
15909 * sel-sched.c: Update copyright years.
15910 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15911 in the advancing loop when we have issued issue_rate insns.
15912
15913 2011-01-12 Richard Henderson <rth@redhat.com>
15914
15915 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15916 (TARGET_MD_ASM_CLOBBERS): New.
15917
15918 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15919 (TARGET_DELEGITIMIZE_ADDRESS): New.
15920
15921 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15922 (clzsi2, *bsch): New patterns.
15923
15924 * config/mn10300/mn10300.md (INT): New mode iterator.
15925 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15926
15927 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15928 flag_split_wide_types.
15929
15930 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15931 (mn10300_trampoline_init): Rewrite without a template, an immediate
15932 load and a direct branch.
15933 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15934
15935 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15936
15937 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15938 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15939 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15940 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15941
15942 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15943
15944 PR debug/47209
15945 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15946 of type.
15947
15948 2011-01-12 Jan Hubicka <jh@suse.cz>
15949
15950 PR driver/47244
15951 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15952 (PLUGIN_COND_CLOSE): New macro.
15953 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15954
15955 2011-01-12 Richard Guenther <rguenther@suse.de>
15956
15957 PR lto/47259
15958 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15959 register variables in a MEM_REF.
15960
15961 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15962
15963 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15964 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15965 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15966 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15967 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15968 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15969 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15970 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15971 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15972 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15973 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15974 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15975 * config/gnu-user.h: New. Copied from linux.h.
15976 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15977 GNU_USER_TARGET_STARTFILE_SPEC.
15978 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15979 GNU_USER_TARGET_ENDFILE_SPEC.
15980 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15981 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15982 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15983 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15984 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15985 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15986 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15987 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15988 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15989 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15990 * config/arm/linux-eabi.h (CC1_SPEC): Use
15991 GNU_USER_TARGET_CC1_SPEC.
15992 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15993 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15994 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15995 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15996 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15997 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15998 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15999 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16000
16001 2011-01-12 Richard Guenther <rguenther@suse.de>
16002
16003 PR other/46946
16004 * doc/invoke.texi (ffast-math): Document it is turned on
16005 with -Ofast.
16006
16007 2011-01-12 Jan Hubicka <jh@suse.cz>
16008
16009 PR tree-optimization/47233
16010 * opts.c (common_handle_option): Disable ipa-reference with profile
16011 feedback.
16012
16013 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16014
16015 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16016 error message.
16017
16018 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16019
16020 * c-parser.c (c_lex_one_token): Updated and reindented some
16021 comments. No changes in code.
16022
16023 2011-01-11 Ian Lance Taylor <iant@google.com>
16024
16025 * godump.c (go_output_var): Don't output the variable if there is
16026 already a type with the same name.
16027
16028 2011-01-11 Ian Lance Taylor <iant@google.com>
16029
16030 * godump.c (go_format_type): Don't generate float80.
16031
16032 2011-01-11 Richard Henderson <rth@redhat.com>
16033
16034 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16035 declaration. Rewrite for both speed and size.
16036 (mn10300_address_cost_1): Remove.
16037 (mn10300_register_move_cost): New.
16038 (mn10300_memory_move_cost): New.
16039 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16040 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16041 extensions, shifts, BSWAP, CLZ.
16042 (mn10300_wide_const_load_uses_clr): Remove.
16043 (TARGET_REGISTER_MOVE_COST): New.
16044 (TARGET_MEMORY_MOVE_COST): New.
16045 * config/mn10300/mn10300-protos.h: Update.
16046 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16047
16048 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16049 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16050 * config/mn10300/mn10300-protos.h: Update.
16051 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16052 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16053 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16054 (*test_int_bitfield, *test_byte_bitfield): Remove.
16055 (*bit_test, *subreg_bit_test): Remove.
16056 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16057
16058 * config/mn10300/constraints.md ("c"): Rename from "A".
16059 ("A", "D"): New constraint letters.
16060 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16061 (fmssf4, fnmasf4, fnmssf4): Likewise.
16062
16063 * config/mn10300/mn10300.md (isa): New attribute.
16064 (enabled): New attribute.
16065
16066 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16067 (abssf2, negsf2): Define only for hardware fp.
16068 (sqrtsf2): Reformat.
16069 (addsf3, subsf3, mulsf3): Merge expander and insn.
16070
16071 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16072 (DEBUGGER_AUTO_OFFSET): Remove.
16073 (DEBUGGER_ARG_OFFSET): Remove.
16074
16075 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16076 Emit register stores with the same offsets as the hardware.
16077 (mn10300_store_multiple_operation): Don't check that the register
16078 save offsets are monotonic.
16079 * config/mn10300/mn10300-protos.h: Update.
16080
16081 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16082
16083 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16084 in terms of the value on the stack, not the MDR register.
16085
16086 2011-01-11 Jan Hubicka <jh@suse.cz>
16087
16088 PR lto/45721
16089 PR lto/45375
16090 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16091 (symbol_alias_set_destroy, symbol_alias_set_contains,
16092 propagate_aliases_backward): Declare.
16093 * lto-streamer-out.c (struct sets): New sturcture.
16094 (trivally_defined_alias): New function.
16095 (output_alias_pair_p): Rewrite.
16096 (output_unreferenced_globals): Fix output of alias pairs.
16097 (produce_symtab): Likewise.
16098 * ipa.c (function_and_variable_visibility): Set weak alias destination
16099 as needed in lto.
16100 * varasm.c (symbol_alias_set_t): Remove.
16101 (symbol_alias_set_destroy): Export.
16102 (propagate_aliases_forward, propagate_aliases_backward): New functions
16103 based on ...
16104 (compute_visible_aliases): ... this one; remove.
16105 (trivially_visible_alias): New
16106 (trivially_defined_alias): New.
16107 (remove_unreachable_alias_pairs): Rewrite.
16108 (finish_aliases_1): Reorganize code checking if alias is defined.
16109 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16110 in LTO mode.
16111
16112 2011-01-11 Richard Guenther <rguenther@suse.de>
16113
16114 PR tree-optimization/46076
16115 * tree-ssa.c (useless_type_conversion_p): Conversions from
16116 unprototyped to empty argument list function types are useless.
16117
16118 2011-01-11 Richard Guenther <rguenther@suse.de>
16119
16120 PR middle-end/45235
16121 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16122 volatile MEMs as MEM_READONLY_P.
16123
16124 2011-01-11 Richard Guenther <rguenther@suse.de>
16125
16126 PR tree-optimization/47239
16127 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16128
16129 2011-01-11 Jeff Law <law@redhat.com>
16130
16131 PR tree-optimization/47086
16132 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16133 IVs from statements that might throw.
16134
16135 2011-01-10 Jan Hubicka <jh@suse.cz>
16136
16137 PR lto/45375
16138 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16139
16140 2011-01-10 Jan Hubicka <jh@suse.cz>
16141
16142 PR lto/45375
16143 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16144 when correcting profile.
16145
16146 2011-01-10 Jan Hubicka <jh@suse.cz>
16147
16148 PR lto/46083
16149 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16150 DECL_FINI_PRIORITY.
16151 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16152 Restore DECL_FINI_PRIORITY.
16153
16154 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16155
16156 * doc/gimple.texi: Fix quoting of multi-word return values in
16157 @deftypefn statements. Ensure presence of return value. Wrap
16158 overlong @deftypefn lines.
16159 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16160 descriptions of removed functions.
16161 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16162 of multi-word return value in @deftypefn statement.
16163
16164 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16165
16166 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16167 (Conditional Expressions, Logical Operators)
16168 (Statement and operand traversals): Do not indent smallexample
16169 code. Fix duplicate function argument in example.
16170
16171 2011-01-10 Jeff Law <law@redhat.com>
16172
16173 PR tree-optimization/47141
16174 * ipa-split.c (split_function): Handle case where we are
16175 returning a value and the return block has a virtual operand phi.
16176
16177 2011-01-10 Jan Hubicka <jh@suse.cz>
16178
16179 PR tree-optimization/47234
16180 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16181 (pass_feedback_split_functions): Declare.
16182 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16183 tree-profile.
16184 * ipa-split.c (gate_split_functions): Update comments; disable
16185 split-functions for profile_arc_flag and branch_probabilities.
16186 (gate_feedback_split_functions): New function.
16187 (execute_feedback_split_functions): New function.
16188 (pass_feedback_split_functions): New global var.
16189
16190 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16191
16192 PR lto/46760
16193 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16194 calling gimple_call_set_cannot_inline.
16195
16196 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16197
16198 * config/darwin-sections.def: Remove unused section.
16199
16200 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16201
16202 PR c++/47218
16203 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16204
16205 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16206
16207 PR objc/47232
16208 * c-parser.c (c_parser_declaration_or_fndef): Improved
16209 error message.
16210
16211 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16212
16213 * config/i386/winnt.c (i386_pe_start_function): Make sure
16214 to switch back to function's section.
16215
16216 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16217
16218 PR gcc/46902
16219 PR testsuite/46912
16220 * plugin.c: Move include of dlfcn.h from here...
16221 * system.h: ... to here.
16222
16223 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16224
16225 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16226 file name.
16227 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16228 two extra empty pages in PDF output.
16229
16230 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16231
16232 PR objc/47078
16233 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16234 for error recovery purposes behave as if it was not specified so
16235 that the default type is usd.
16236
16237 2011-01-07 Jan Hubicka <jh@suse.cz>
16238
16239 PR tree-optmization/46469
16240 * ipa.c (function_and_variable_visibility): Clear needed flags on
16241 nodes with external decls; handle weakrefs merging correctly.
16242
16243 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16244
16245 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16246 not false.
16247
16248 2011-01-07 Jan Hubicka <jh@suse.cz>
16249
16250 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16251 and no longer claim that gold is required for linker plugin.
16252 * configure: Regenerate.
16253 * gcc.c (PLUGIN_COND): New macro.
16254 (LINK_COMMAND_SPEC): Use it.
16255 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16256 * config.in (HAVE_LTO_PLUGIN): New.
16257 * configure.ac (--with-lto-plugin): New parameter; autodetect
16258 HAVE_LTO_PLUGIN.
16259
16260 2011-01-07 Jan Hubicka <jh@suse.cz>
16261
16262 PR tree-optimization/46367
16263 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16264 when we can update original.
16265 (cgraph_mark_inline_edge): Sanity check.
16266 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16267
16268 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16269
16270 * config/spu/spu.h (ASM_COMMENT_START): Define.
16271
16272 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16273
16274 PR driver/42445
16275 * gcc.c (%>S): New.
16276 (SWITCH_KEEP_FOR_GCC): Likewise.
16277 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16278 (do_spec_1): Handle "%>".
16279
16280 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16281
16282 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16283
16284 PR target/47201
16285 * config/i386/i386.c (ix86_delegitimize_address): If
16286 simplify_gen_subreg fails, return orig_x.
16287
16288 PR bootstrap/47187
16289 * value-prof.c (gimple_stringop_fixed_value): Handle
16290 lhs of the call properly.
16291
16292 2011-01-07 Jan Hubicka <jh@suse.cz>
16293
16294 PR lto/45375
16295 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16296
16297 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16298
16299 * target.def (function_switched_text_sections): New hook.
16300 * doc/tm.texi: Regenerated.
16301 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16302 * final.c (default_function_switched_text_sections): New.
16303 (final_scan_insn): Call function_switched_text_sections when a
16304 mid-function section change occurs.
16305 * output.h (default_function_switched_text_sections): Declare.
16306 * config/darwin-protos.h (darwin_function_switched_text_sections):
16307 Likewise.
16308 * config/darwin.c (darwin_function_switched_text_sections): New.
16309 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16310
16311 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16312
16313 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16314 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16315 the secondary code fragment when outputting for DWARF == 2.
16316
16317 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16318
16319 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16320 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16321 Remove.
16322 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16323 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16324
16325 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16326
16327 PR debug/46704
16328 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16329 when it is not empty.
16330
16331 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16332
16333 Bobcat Enablement
16334 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16335 (case ${target}): Add btver1.
16336 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16337 -march=native recognize btver1 processors.
16338 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16339 btver1 def_and_undef
16340 * config/i386/i386.c (struct processor_costs btver1_cost): New
16341 btver1 cost table.
16342 (m_BTVER1): New definition.
16343 (m_AMD_MULTIPLE): Includes m_BTVER1.
16344 (initial_ix86_tune_features): Add btver1 tune.
16345 (processor_target_table): Add btver1 entry.
16346 (static const char *const cpu_names): Add btver1 entry.
16347 (software_prefetching_beneficial_p): Add btver1.
16348 (ix86_option_override_internal): Add btver1 instruction sets.
16349 (ix86_issue_rate): Add btver1.
16350 (ix86_adjust_cost): Add btver1.
16351 * config/i386/i386.h (TARGET_BTVER1): New definition.
16352 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16353 (enum processor_type): Add PROCESSOR_BTVER1.
16354 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16355
16356 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16357
16358 PR target/43309
16359 * config/i386/i386.c (legitimize_tls_address)
16360 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16361 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16362 (tls_initial_exec_64_sun): New pattern.
16363
16364 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16365
16366 * doc/invoke.texi (Overall Options): Improve wording and markup
16367 of the description of -wrapper.
16368
16369 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16370
16371 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16372 rdynamic, threads): New Driver options.
16373
16374 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16375
16376 PR target/38118
16377 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16378 if coming from .tdata.
16379 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16380
16381 2011-01-06 Jan Hubicka <jh@suse.cz>
16382
16383 PR lto/47188
16384 * collect2.c (main): Do not enable LTOmode when plugin is active.
16385
16386 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16387
16388 PR other/45915
16389 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16390 --version output if supported.
16391 * configure: Regenerate.
16392
16393 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16394
16395 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16396 Driver options.
16397
16398 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16399
16400 PR c/47150
16401 * c-convert.c (convert): When converting a complex expression
16402 other than COMPLEX_EXPR to a different complex type, ensure
16403 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16404 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16405 when converting COMPLEX_TYPE.
16406
16407 2011-01-06 Ira Rosen <irar@il.ibm.com>
16408
16409 PR tree-optimization/47139
16410 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16411 only the last reduction value is used outside the loop. Update
16412 documentation.
16413
16414 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16415
16416 * config/rtems.opt: New.
16417 * config.gcc (*-*-rtems*): Use rtems.opt.
16418
16419 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16420
16421 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16422 processors do not support 3DNow instructions.
16423
16424 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16425
16426 * config/spu/spu.c (spu_option_override): Set parameter
16427 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16428
16429 2011-01-05 Jan Hubicka <jh@suse.cz>
16430
16431 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16432 at the command line.
16433
16434 2011-01-05 Martin Jambor <mjambor@suse.cz>
16435
16436 PR lto/47162
16437 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16438 deltas on streamed outgoing edges.
16439 (output_node_opt_summary): Output info for outgoing edges only when
16440 the node is in new parameter set.
16441 (output_cgraph_opt_summary): New parameter set, passed to the two
16442 aforementioned functions. Update its forward declaration and its
16443 callee too.
16444
16445 2011-01-05 Tom Tromey <tromey@redhat.com>
16446
16447 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16448 operator to c_finish_omp_atomic.
16449 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16450 (build_unary_op): Update.
16451 (build_modify_expr): Update.
16452 (build_asm_expr): Update.
16453
16454 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16455
16456 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16457 newly inserted insns.
16458 (pad_bb): Likewise.
16459 (spu_emit_branch_hint): Likewise.
16460 (insert_hbrp_for_ilb_runout): Likewise.
16461 (spu_machine_dependent_reorg): Call df_finish_pass after
16462 schedule_insns returns.
16463
16464 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16465
16466 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16467
16468 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16469
16470 PR tree-optimization/47005
16471 * tree-sra.c (struct access): Add 'non_addressable' bit.
16472 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16473 (decide_one_param_reduction): Return 0 if the parameter is passed by
16474 reference and one of the accesses in the group is non_addressable.
16475
16476 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16477
16478 PR tree-optimization/47056
16479 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16480 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16481 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16482
16483 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16484
16485 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16486 initializer. Skip view conversions from aggregate types.
16487
16488 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16489
16490 PR bootstrap/47055
16491 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16492
16493 2011-01-04 Philipp Thomas <pth@suse.de>
16494
16495 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16496 obvious typo.
16497
16498 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16499
16500 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16501 on empty epilogue sequences.
16502
16503 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16504
16505 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16506 non-static): New Driver options.
16507
16508 2011-01-04 Jie Zhang <jie@codesourcery.com>
16509
16510 PR driver/47137
16511 * gcc.c (default_compilers[]): Set combinable field to 0
16512 for all assembly languages.
16513
16514 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16515
16516 * config/mips/loongson3a.md: New file.
16517 * config/mips/mips.md: Include loongson3a.md.
16518 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16519 TUNE_LOONGSON_3A.
16520
16521 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16522
16523 PR middle-end/47017
16524 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16525 instead of convert_memory_address_addr_space on the base expression.
16526
16527 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16528
16529 * config/spu/spu.c (spu_option_override): Update error text
16530 for bad -march= / -mtune= values.
16531
16532 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16533
16534 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16535 if branch-hint optimization will be performed.
16536
16537 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16538
16539 PR tree-optimization/47148
16540 * ipa-split.c (split_function): Convert arguments to
16541 DECL_ARG_TYPE if possible.
16542
16543 PR tree-optimization/47155
16544 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16545 when computing uns.
16546
16547 PR rtl-optimization/47157
16548 * combine.c (try_combine): If undobuf.other_insn becomes
16549 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16550 and set *new_direct_jump_p too.
16551
16552 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16553
16554 PR tree-optimization/47021
16555 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16556
16557 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16558
16559 * gcc.c (process_command): Update copyright notice dates.
16560 * gcov.c (print_version): Likewise.
16561 * gcov-dump.c (print_version): Likewise.
16562 * mips-tfile.c (main): Likewise.
16563 * mips-tdump.c (main): Likewise.
16564
16565 2011-01-03 Martin Jambor <mjambor@suse.cz>
16566
16567 PR tree-optimization/46801
16568 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16569 aggregate fields start at byte boundary instead of the bit-field flag.
16570
16571 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16572
16573 PR driver/47137
16574 * gcc.c (main): Revert revision 168407.
16575
16576 2011-01-03 Martin Jambor <mjambor@suse.cz>
16577
16578 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16579
16580 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16581
16582 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16583 vector optab to expand vector/scalar shift, update gimple to vector.
16584
16585 2011-01-03 Martin Jambor <mjambor@suse.cz>
16586
16587 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16588 a thunk.
16589
16590 2011-01-03 Martin Jambor <mjambor@suse.cz>
16591
16592 PR tree-optimization/46984
16593 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16594 HOST_WIDE_INT.
16595 (cgraph_create_indirect_edge): Fixed line length.
16596 (cgraph_indirect_call_info): Declare.
16597 (cgraph_make_edge_direct) Update declaration.
16598 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16599 (cgraph_create_indirect_edge): Use it.
16600 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16601 callees.
16602 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16603 the new thunk_delta representation.
16604 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16605 HOST_WIDE_INT.
16606 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16607 (ipa_read_indirect_edge_info): Likewise.
16608 * lto-cgraph.c (output_edge_opt_summary): New function.
16609 (output_node_opt_summary): Call it on all outgoing edges.
16610 (input_edge_opt_summary): New function.
16611 (input_node_opt_summary): Call it on all outgoing edges.
16612
16613 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16614
16615 PR driver/47137
16616 * gcc.c (main): Don't check have_o when settting combine_inputs.
16617
16618 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16619
16620 * regrename.c: Add general comment describing the pass.
16621 (struct du_head): Remove 'length' field.
16622 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16623 (regrename_optimize): Do not sort chains. Rework comments, add others.
16624 Force renaming to the preferred class (if any) in the first pass and do
16625 not consider registers that belong to it in the second pass.
16626 (create_new_chain): Do not set 'length' field.
16627 (scan_rtx_reg): Likewise.
16628
16629 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16630
16631 PR tree-optimization/47140
16632 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16633 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16634 to bit_value_binop.
16635
16636 PR rtl-optimization/47028
16637 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16638 parm_birth_insn instead of at the beginning of first bb.
16639
16640 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16641
16642 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16643 Remove the word "see" before "@pxref".
16644 * doc/rtl.texi: Remove the word "see" before "@pxref".
16645
16646 2011-01-01 Jan Hubicka <jh@suse.cz>
16647
16648 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16649 memory.
16650
16651 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16652
16653 PR target/38662
16654 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16655
16656 \f
16657 Copyright (C) 2011 Free Software Foundation, Inc.
16658
16659 Copying and distribution of this file, with or without modification,
16660 are permitted in any medium without royalty provided the copyright
16661 notice and this notice are preserved.